From 4bd98d450e092fe79bd6243ea8e18c242a2fa991 Mon Sep 17 00:00:00 2001 From: David Rempel Date: Mon, 27 Nov 2023 12:07:34 -0800 Subject: [PATCH 01/41] XML only commit for 1.3 Thermostat spec changes. Cluster xml file generated using Hasty's tool, as a result some of the stuff that didn't follow our normal standards and norms for matter have also been corrected (renaming types for example). --- .../all-clusters-app.matter | 297 ++- .../all-clusters-common/all-clusters-app.zap | 336 ++- .../ameba/main/include/ThermostatCommands.h | 4 +- .../esp32/main/DeviceWithDisplay.cpp | 18 +- .../all-clusters-minimal-app.matter | 203 +- ...umiditysensor_thermostat_56de3d5f45.matter | 207 +- ...tnode_heatingcoolingunit_ncdGai1E5a.matter | 337 ++- ...tnode_roomairconditioner_9cf3607804.matter | 215 +- .../rootnode_thermostat_bm3fb8dhYi.matter | 235 +- .../placeholder/linux/apps/app1/config.matter | 592 ++++- .../placeholder/linux/apps/app2/config.matter | 592 ++++- .../nxp/zap/thermostat_matter_thread.matter | 227 +- .../nxp/zap/thermostat_matter_wifi.matter | 227 +- .../thermostat-common/thermostat.matter | 225 +- .../all-clusters-app/app-templates/access.h | 21 - .../app-templates/endpoint_config.h | 24 +- .../thermostat-server/thermostat-server.cpp | 97 +- .../data-model/chip/thermostat-cluster.xml | 469 ++-- .../zcl/zcl-with-test-extensions.json | 3 +- src/app/zap-templates/zcl/zcl.json | 3 +- .../data_model/controller-clusters.matter | 337 ++- .../chip/devicecontroller/ChipClusters.java | 726 +++++- .../chip/devicecontroller/ChipStructs.java | 602 ++++- .../devicecontroller/ClusterIDMapping.java | 98 +- .../devicecontroller/ClusterInfoMapping.java | 358 ++- .../devicecontroller/ClusterReadMapping.java | 175 +- .../devicecontroller/ClusterWriteMapping.java | 38 +- ...olClusterAccessControlEntryChangedEvent.kt | 99 +- ...usterAccessControlExtensionChangedEvent.kt | 99 +- .../ActionsClusterActionFailedEvent.kt | 21 +- .../ActionsClusterStateChangedEvent.kt | 15 +- .../BasicInformationClusterLeaveEvent.kt | 13 +- ...InformationClusterReachableChangedEvent.kt | 13 +- .../BasicInformationClusterStartUpEvent.kt | 13 +- ...igurationClusterAlarmsStateChangedEvent.kt | 43 +- .../BooleanStateClusterStateChangeEvent.kt | 13 +- ...InformationClusterReachableChangedEvent.kt | 16 +- ...viceBasicInformationClusterStartUpEvent.kt | 16 +- ...lusterLoadControlEventStatusChangeEvent.kt | 281 +-- .../DishwasherAlarmClusterNotifyEvent.kt | 21 +- .../DoorLockClusterDoorLockAlarmEvent.kt | 13 +- .../DoorLockClusterDoorStateChangeEvent.kt | 13 +- .../DoorLockClusterLockOperationErrorEvent.kt | 161 +- .../DoorLockClusterLockOperationEvent.kt | 158 +- .../DoorLockClusterLockUserChangeEvent.kt | 121 +- ...eneralDiagnosticsClusterBootReasonEvent.kt | 13 +- ...gnosticsClusterHardwareFaultChangeEvent.kt | 49 +- ...agnosticsClusterNetworkFaultChangeEvent.kt | 49 +- ...DiagnosticsClusterRadioFaultChangeEvent.kt | 46 +- ...nalStateClusterOperationCompletionEvent.kt | 99 +- ...tionalStateClusterOperationalErrorEvent.kt | 21 +- ...pdateRequestorClusterDownloadErrorEvent.kt | 73 +- ...ateRequestorClusterStateTransitionEvent.kt | 52 +- ...dateRequestorClusterVersionAppliedEvent.kt | 20 +- ...rSourceClusterBatChargeFaultChangeEvent.kt | 46 +- .../PowerSourceClusterBatFaultChangeEvent.kt | 43 +- ...PowerSourceClusterWiredFaultChangeEvent.kt | 43 +- .../RefrigeratorAlarmClusterNotifyEvent.kt | 21 +- ...nalStateClusterOperationCompletionEvent.kt | 99 +- ...tionalStateClusterOperationalErrorEvent.kt | 24 +- .../SmokeCoAlarmClusterCOAlarmEvent.kt | 13 +- ...eCoAlarmClusterInterconnectCOAlarmEvent.kt | 13 +- ...AlarmClusterInterconnectSmokeAlarmEvent.kt | 13 +- .../SmokeCoAlarmClusterLowBatteryEvent.kt | 13 +- .../SmokeCoAlarmClusterSmokeAlarmEvent.kt | 13 +- ...areDiagnosticsClusterSoftwareFaultEvent.kt | 54 +- .../SwitchClusterInitialPressEvent.kt | 13 +- .../SwitchClusterLongPressEvent.kt | 13 +- .../SwitchClusterLongReleaseEvent.kt | 13 +- .../SwitchClusterMultiPressCompleteEvent.kt | 20 +- .../SwitchClusterMultiPressOngoingEvent.kt | 20 +- .../SwitchClusterShortReleaseEvent.kt | 13 +- .../SwitchClusterSwitchLatchedEvent.kt | 13 +- ...DiagnosticsClusterConnectionStatusEvent.kt | 16 +- ...agnosticsClusterNetworkFaultChangeEvent.kt | 49 +- ...imeSynchronizationClusterDSTStatusEvent.kt | 13 +- ...nchronizationClusterTimeZoneStatusEvent.kt | 32 +- .../UnitTestingClusterTestEventEvent.kt | 65 +- ...estingClusterTestFabricScopedEventEvent.kt | 13 +- ...urationAndControlClusterValveFaultEvent.kt | 16 +- ...AndControlClusterValveStateChangedEvent.kt | 16 +- ...agnosticsClusterAssociationFailureEvent.kt | 23 +- ...DiagnosticsClusterConnectionStatusEvent.kt | 16 +- ...orkDiagnosticsClusterDisconnectionEvent.kt | 16 +- .../chip/devicecontroller/cluster/files.gni | 8 +- ...sControlClusterAccessControlEntryStruct.kt | 108 +- ...trolClusterAccessControlExtensionStruct.kt | 17 +- ...ControlClusterAccessControlTargetStruct.kt | 82 +- .../structs/ActionsClusterActionStruct.kt | 34 +- .../ActionsClusterEndpointListStruct.kt | 35 +- ...nitoringClusterReplacementProductStruct.kt | 28 +- ...pplicationBasicClusterApplicationStruct.kt | 17 +- ...ationLauncherClusterApplicationEPStruct.kt | 41 +- ...icationLauncherClusterApplicationStruct.kt | 17 +- .../AudioOutputClusterOutputInfoStruct.kt | 15 +- ...nformationClusterCapabilityMinimaStruct.kt | 28 +- ...formationClusterProductAppearanceStruct.kt | 35 +- .../structs/BindingClusterTargetStruct.kt | 92 +- ...formationClusterProductAppearanceStruct.kt | 41 +- .../ChannelClusterChannelInfoStruct.kt | 83 +- .../structs/ChannelClusterLineupInfoStruct.kt | 56 +- ...tentLauncherClusterAdditionalInfoStruct.kt | 14 +- ...auncherClusterBrandingInformationStruct.kt | 148 +- ...ntentLauncherClusterContentSearchStruct.kt | 29 +- .../ContentLauncherClusterDimensionStruct.kt | 19 +- .../ContentLauncherClusterParameterStruct.kt | 56 +- ...ntLauncherClusterStyleInformationStruct.kt | 73 +- ...dControlClusterAverageLoadControlStruct.kt | 16 +- ...oadControlClusterDutyCycleControlStruct.kt | 16 +- ...ontrolClusterHeatingSourceControlStruct.kt | 16 +- ...oadControlClusterLoadControlEventStruct.kt | 122 +- ...ClusterLoadControlEventTransitionStruct.kt | 151 +- ...dControlClusterLoadControlProgramStruct.kt | 97 +- ...ControlClusterPowerSavingsControlStruct.kt | 16 +- ...dControlClusterTemperatureControlStruct.kt | 172 +- .../DescriptorClusterDeviceTypeStruct.kt | 14 +- .../DescriptorClusterSemanticTagStruct.kt | 78 +- .../DishwasherModeClusterModeOptionStruct.kt | 33 +- .../DishwasherModeClusterModeTagStruct.kt | 32 +- .../DoorLockClusterCredentialStruct.kt | 14 +- .../structs/FixedLabelClusterLabelStruct.kt | 14 +- ...missioningClusterBasicCommissioningInfo.kt | 31 +- ...neralDiagnosticsClusterNetworkInterface.kt | 117 +- ...pKeyManagementClusterGroupInfoMapStruct.kt | 53 +- ...upKeyManagementClusterGroupKeyMapStruct.kt | 19 +- ...upKeyManagementClusterGroupKeySetStruct.kt | 169 +- ...nitoringClusterReplacementProductStruct.kt | 28 +- ...mentClusterMonitoringRegistrationStruct.kt | 28 +- ...aundryWasherModeClusterModeOptionStruct.kt | 33 +- .../LaundryWasherModeClusterModeTagStruct.kt | 32 +- .../MediaInputClusterInputInfoStruct.kt | 21 +- ...iaPlaybackClusterPlaybackPositionStruct.kt | 35 +- ...icrowaveOvenModeClusterModeOptionStruct.kt | 33 +- .../MicrowaveOvenModeClusterModeTagStruct.kt | 32 +- .../ModeSelectClusterModeOptionStruct.kt | 33 +- .../ModeSelectClusterSemanticTagStruct.kt | 14 +- ...rkCommissioningClusterNetworkInfoStruct.kt | 99 +- ...gClusterThreadInterfaceScanResultStruct.kt | 43 +- ...ingClusterWiFiInterfaceScanResultStruct.kt | 37 +- ...redentialsClusterFabricDescriptorStruct.kt | 37 +- .../OperationalCredentialsClusterNOCStruct.kt | 40 +- ...OperationalStateClusterErrorStateStruct.kt | 60 +- ...ionalStateClusterOperationalStateStruct.kt | 40 +- ...eUpdateRequestorClusterProviderLocation.kt | 28 +- .../OvenModeClusterModeOptionStruct.kt | 33 +- .../structs/OvenModeClusterModeTagStruct.kt | 32 +- ...erSourceClusterBatChargeFaultChangeType.kt | 46 +- .../PowerSourceClusterBatFaultChangeType.kt | 43 +- .../PowerSourceClusterWiredFaultChangeType.kt | 43 +- ...olledCabinetModeClusterModeOptionStruct.kt | 47 +- ...ntrolledCabinetModeClusterModeTagStruct.kt | 38 +- .../RvcCleanModeClusterModeOptionStruct.kt | 33 +- .../RvcCleanModeClusterModeTagStruct.kt | 32 +- ...OperationalStateClusterErrorStateStruct.kt | 60 +- ...ionalStateClusterOperationalStateStruct.kt | 43 +- .../RvcRunModeClusterModeOptionStruct.kt | 33 +- .../structs/RvcRunModeClusterModeTagStruct.kt | 32 +- .../ScenesClusterAttributeValuePair.kt | 14 +- .../structs/ScenesClusterExtensionFieldSet.kt | 31 +- .../structs/ScenesClusterSceneInfoStruct.kt | 34 +- ...reDiagnosticsClusterThreadMetricsStruct.kt | 100 +- .../TargetNavigatorClusterTargetInfoStruct.kt | 14 +- .../structs/ThermostatClusterPresetStruct.kt | 130 + .../ThermostatClusterPresetTypeStruct.kt | 67 + .../ThermostatClusterQueuedPresetStruct.kt | 80 + .../ThermostatClusterScheduleStruct.kt | 131 + ...ermostatClusterScheduleTransitionStruct.kt | 110 + .../ThermostatClusterScheduleTypeStruct.kt | 67 + ...usterThermostatScheduleTransitionStruct.kt | 67 + ...rkDiagnosticsClusterNeighborTableStruct.kt | 103 +- ...ticsClusterOperationalDatasetComponents.kt | 70 +- ...tworkDiagnosticsClusterRouteTableStruct.kt | 49 +- ...NetworkDiagnosticsClusterSecurityPolicy.kt | 14 +- ...meSynchronizationClusterDSTOffsetStruct.kt | 40 +- ...sterFabricScopedTrustedTimeSourceStruct.kt | 20 +- ...imeSynchronizationClusterTimeZoneStruct.kt | 37 +- ...onizationClusterTrustedTimeSourceStruct.kt | 22 +- ...nitTestingClusterDoubleNestedStructList.kt | 27 +- .../structs/UnitTestingClusterNestedStruct.kt | 19 +- .../UnitTestingClusterNestedStructList.kt | 86 +- ...stingClusterNullablesAndOptionalsStruct.kt | 412 ++- .../structs/UnitTestingClusterSimpleStruct.kt | 29 +- .../UnitTestingClusterTestFabricScoped.kt | 147 +- .../UnitTestingClusterTestListStructOctet.kt | 14 +- .../structs/UserLabelClusterLabelStruct.kt | 14 +- .../cluster/clusters/AccessControlCluster.kt | 68 +- .../cluster/clusters/AccountLoginCluster.kt | 51 +- .../cluster/clusters/ActionsCluster.kt | 103 +- .../ActivatedCarbonFilterMonitoringCluster.kt | 69 +- .../AdministratorCommissioningCluster.kt | 69 +- .../cluster/clusters/AirQualityCluster.kt | 36 +- .../clusters/ApplicationBasicCluster.kt | 74 +- .../clusters/ApplicationLauncherCluster.kt | 71 +- .../cluster/clusters/AudioOutputCluster.kt | 44 +- .../clusters/BallastConfigurationCluster.kt | 168 +- .../cluster/clusters/BarrierControlCluster.kt | 116 +- .../clusters/BasicInformationCluster.kt | 162 +- .../clusters/BinaryInputBasicCluster.kt | 123 +- .../cluster/clusters/BindingCluster.kt | 49 +- .../BooleanSensorConfigurationCluster.kt | 72 +- .../cluster/clusters/BooleanStateCluster.kt | 41 +- .../BridgedDeviceBasicInformationCluster.kt | 108 +- ...nDioxideConcentrationMeasurementCluster.kt | 81 +- ...MonoxideConcentrationMeasurementCluster.kt | 81 +- .../cluster/clusters/ChannelCluster.kt | 70 +- .../cluster/clusters/ColorControlCluster.kt | 561 +++-- .../clusters/ContentLauncherCluster.kt | 63 +- .../DemandResponseLoadControlCluster.kt | 105 +- .../cluster/clusters/DescriptorCluster.kt | 61 +- .../cluster/clusters/DiagnosticLogsCluster.kt | 51 +- .../clusters/DishwasherAlarmCluster.kt | 60 +- .../cluster/clusters/DishwasherModeCluster.kt | 84 +- .../cluster/clusters/DoorLockCluster.kt | 443 ++-- .../clusters/ElectricalMeasurementCluster.kt | 556 ++++- .../EthernetNetworkDiagnosticsCluster.kt | 85 +- .../cluster/clusters/FanControlCluster.kt | 140 +- .../cluster/clusters/FaultInjectionCluster.kt | 64 +- .../cluster/clusters/FixedLabelCluster.kt | 40 +- .../clusters/FlowMeasurementCluster.kt | 53 +- ...aldehydeConcentrationMeasurementCluster.kt | 81 +- .../clusters/GeneralCommissioningCluster.kt | 96 +- .../clusters/GeneralDiagnosticsCluster.kt | 87 +- .../clusters/GroupKeyManagementCluster.kt | 90 +- .../cluster/clusters/GroupsCluster.kt | 102 +- .../clusters/HepaFilterMonitoringCluster.kt | 69 +- .../cluster/clusters/IcdManagementCluster.kt | 85 +- .../cluster/clusters/IdentifyCluster.kt | 58 +- .../clusters/IlluminanceMeasurementCluster.kt | 57 +- .../cluster/clusters/KeypadInputCluster.kt | 37 +- .../clusters/LaundryDryerControlsCluster.kt | 51 +- .../clusters/LaundryWasherControlsCluster.kt | 67 +- .../clusters/LaundryWasherModeCluster.kt | 84 +- .../cluster/clusters/LevelControlCluster.kt | 228 +- .../LocalizationConfigurationCluster.kt | 52 +- .../cluster/clusters/LowPowerCluster.kt | 33 +- .../cluster/clusters/MediaInputCluster.kt | 53 +- .../cluster/clusters/MediaPlaybackCluster.kt | 113 +- .../clusters/MicrowaveOvenControlCluster.kt | 72 +- .../clusters/MicrowaveOvenModeCluster.kt | 45 +- .../cluster/clusters/ModeSelectCluster.kt | 78 +- .../clusters/NetworkCommissioningCluster.kt | 181 +- ...nDioxideConcentrationMeasurementCluster.kt | 81 +- .../clusters/OccupancySensingCluster.kt | 82 +- .../cluster/clusters/OnOffCluster.kt | 101 +- .../OnOffSwitchConfigurationCluster.kt | 53 +- .../clusters/OperationalCredentialsCluster.kt | 152 +- .../clusters/OperationalStateCluster.kt | 70 +- .../OtaSoftwareUpdateProviderCluster.kt | 85 +- .../OtaSoftwareUpdateRequestorCluster.kt | 66 +- .../cluster/clusters/OvenModeCluster.kt | 79 +- .../OzoneConcentrationMeasurementCluster.kt | 81 +- .../Pm10ConcentrationMeasurementCluster.kt | 81 +- .../Pm1ConcentrationMeasurementCluster.kt | 81 +- .../Pm25ConcentrationMeasurementCluster.kt | 81 +- .../cluster/clusters/PowerSourceCluster.kt | 169 +- .../PowerSourceConfigurationCluster.kt | 45 +- .../clusters/PressureMeasurementCluster.kt | 75 +- .../clusters/ProxyConfigurationCluster.kt | 36 +- .../cluster/clusters/ProxyDiscoveryCluster.kt | 36 +- .../cluster/clusters/ProxyValidCluster.kt | 31 +- .../clusters/PulseWidthModulationCluster.kt | 36 +- .../PumpConfigurationAndControlCluster.kt | 186 +- .../RadonConcentrationMeasurementCluster.kt | 81 +- .../clusters/RefrigeratorAlarmCluster.kt | 51 +- ...TemperatureControlledCabinetModeCluster.kt | 80 +- .../RelativeHumidityMeasurementCluster.kt | 53 +- .../cluster/clusters/RvcCleanModeCluster.kt | 73 +- .../clusters/RvcOperationalStateCluster.kt | 70 +- .../cluster/clusters/RvcRunModeCluster.kt | 68 +- .../cluster/clusters/SampleMeiCluster.kt | 57 +- .../cluster/clusters/ScenesCluster.kt | 217 +- .../cluster/clusters/SmokeCoAlarmCluster.kt | 110 +- .../clusters/SoftwareDiagnosticsCluster.kt | 52 +- .../cluster/clusters/SwitchCluster.kt | 46 +- .../clusters/TargetNavigatorCluster.kt | 58 +- .../clusters/TemperatureControlCluster.kt | 68 +- .../clusters/TemperatureMeasurementCluster.kt | 53 +- .../cluster/clusters/ThermostatCluster.kt | 741 ++++-- ...mostatUserInterfaceConfigurationCluster.kt | 64 +- .../ThreadNetworkDiagnosticsCluster.kt | 329 ++- .../clusters/TimeFormatLocalizationCluster.kt | 64 +- .../clusters/TimeSynchronizationCluster.kt | 151 +- .../cluster/clusters/TimerCluster.kt | 54 +- ...ompoundsConcentrationMeasurementCluster.kt | 81 +- .../clusters/UnitLocalizationCluster.kt | 48 +- .../cluster/clusters/UnitTestingCluster.kt | 1202 ++++++--- .../cluster/clusters/UserLabelCluster.kt | 44 +- .../ValveConfigurationAndControlCluster.kt | 110 +- .../cluster/clusters/WakeOnLanCluster.kt | 41 +- .../clusters/WiFiNetworkDiagnosticsCluster.kt | 100 +- .../cluster/clusters/WindowCoveringCluster.kt | 161 +- ...olClusterAccessControlEntryChangedEvent.kt | 60 +- ...usterAccessControlExtensionChangedEvent.kt | 60 +- .../ActionsClusterActionFailedEvent.kt | 6 +- .../ActionsClusterStateChangedEvent.kt | 6 +- .../BasicInformationClusterLeaveEvent.kt | 10 +- ...InformationClusterReachableChangedEvent.kt | 10 +- .../BasicInformationClusterStartUpEvent.kt | 10 +- ...igurationClusterAlarmsStateChangedEvent.kt | 24 +- .../BooleanStateClusterStateChangeEvent.kt | 10 +- ...InformationClusterReachableChangedEvent.kt | 13 +- ...viceBasicInformationClusterStartUpEvent.kt | 13 +- ...lusterLoadControlEventStatusChangeEvent.kt | 214 +- .../DishwasherAlarmClusterNotifyEvent.kt | 6 +- .../DoorLockClusterDoorLockAlarmEvent.kt | 10 +- .../DoorLockClusterDoorStateChangeEvent.kt | 10 +- .../DoorLockClusterLockOperationErrorEvent.kt | 108 +- .../DoorLockClusterLockOperationEvent.kt | 107 +- .../DoorLockClusterLockUserChangeEvent.kt | 68 +- ...eneralDiagnosticsClusterBootReasonEvent.kt | 10 +- ...gnosticsClusterHardwareFaultChangeEvent.kt | 34 +- ...agnosticsClusterNetworkFaultChangeEvent.kt | 34 +- ...DiagnosticsClusterRadioFaultChangeEvent.kt | 31 +- ...nalStateClusterOperationCompletionEvent.kt | 68 +- ...tionalStateClusterOperationalErrorEvent.kt | 12 +- ...pdateRequestorClusterDownloadErrorEvent.kt | 42 +- ...ateRequestorClusterStateTransitionEvent.kt | 29 +- ...dateRequestorClusterVersionAppliedEvent.kt | 9 +- ...rSourceClusterBatChargeFaultChangeEvent.kt | 31 +- .../PowerSourceClusterBatFaultChangeEvent.kt | 36 +- ...PowerSourceClusterWiredFaultChangeEvent.kt | 36 +- .../RefrigeratorAlarmClusterNotifyEvent.kt | 6 +- ...nalStateClusterOperationCompletionEvent.kt | 68 +- ...tionalStateClusterOperationalErrorEvent.kt | 15 +- .../SmokeCoAlarmClusterCOAlarmEvent.kt | 10 +- ...eCoAlarmClusterInterconnectCOAlarmEvent.kt | 10 +- ...AlarmClusterInterconnectSmokeAlarmEvent.kt | 10 +- .../SmokeCoAlarmClusterLowBatteryEvent.kt | 10 +- .../SmokeCoAlarmClusterSmokeAlarmEvent.kt | 10 +- ...areDiagnosticsClusterSoftwareFaultEvent.kt | 27 +- .../SwitchClusterInitialPressEvent.kt | 10 +- .../SwitchClusterLongPressEvent.kt | 10 +- .../SwitchClusterLongReleaseEvent.kt | 10 +- .../SwitchClusterMultiPressCompleteEvent.kt | 9 +- .../SwitchClusterMultiPressOngoingEvent.kt | 9 +- .../SwitchClusterShortReleaseEvent.kt | 10 +- .../SwitchClusterSwitchLatchedEvent.kt | 10 +- ...DiagnosticsClusterConnectionStatusEvent.kt | 13 +- ...agnosticsClusterNetworkFaultChangeEvent.kt | 34 +- ...imeSynchronizationClusterDSTStatusEvent.kt | 10 +- ...nchronizationClusterTimeZoneStatusEvent.kt | 21 +- .../UnitTestingClusterTestEventEvent.kt | 42 +- ...estingClusterTestFabricScopedEventEvent.kt | 10 +- ...urationAndControlClusterValveFaultEvent.kt | 13 +- ...AndControlClusterValveStateChangedEvent.kt | 13 +- ...agnosticsClusterAssociationFailureEvent.kt | 12 +- ...DiagnosticsClusterConnectionStatusEvent.kt | 13 +- ...orkDiagnosticsClusterDisconnectionEvent.kt | 13 +- .../matter/devicecontroller/cluster/files.gni | 8 +- ...sControlClusterAccessControlEntryStruct.kt | 77 +- ...trolClusterAccessControlExtensionStruct.kt | 9 +- ...ControlClusterAccessControlTargetStruct.kt | 43 +- .../structs/ActionsClusterActionStruct.kt | 13 +- .../ActionsClusterEndpointListStruct.kt | 18 +- ...nitoringClusterReplacementProductStruct.kt | 17 +- ...pplicationBasicClusterApplicationStruct.kt | 4 +- ...ationLauncherClusterApplicationEPStruct.kt | 20 +- ...icationLauncherClusterApplicationStruct.kt | 4 +- .../AudioOutputClusterOutputInfoStruct.kt | 10 +- ...nformationClusterCapabilityMinimaStruct.kt | 15 +- ...formationClusterProductAppearanceStruct.kt | 22 +- .../structs/BindingClusterTargetStruct.kt | 47 +- ...formationClusterProductAppearanceStruct.kt | 22 +- .../ChannelClusterChannelInfoStruct.kt | 44 +- .../structs/ChannelClusterLineupInfoStruct.kt | 25 +- ...tentLauncherClusterAdditionalInfoStruct.kt | 9 +- ...auncherClusterBrandingInformationStruct.kt | 97 +- ...ntentLauncherClusterContentSearchStruct.kt | 18 +- .../ContentLauncherClusterDimensionStruct.kt | 4 +- .../ContentLauncherClusterParameterStruct.kt | 35 +- ...ntLauncherClusterStyleInformationStruct.kt | 38 +- ...dControlClusterAverageLoadControlStruct.kt | 13 +- ...oadControlClusterDutyCycleControlStruct.kt | 13 +- ...ontrolClusterHeatingSourceControlStruct.kt | 13 +- ...oadControlClusterLoadControlEventStruct.kt | 75 +- ...ClusterLoadControlEventTransitionStruct.kt | 98 +- ...dControlClusterLoadControlProgramStruct.kt | 56 +- ...ControlClusterPowerSavingsControlStruct.kt | 13 +- ...dControlClusterTemperatureControlStruct.kt | 123 +- .../DescriptorClusterDeviceTypeStruct.kt | 9 +- .../DescriptorClusterSemanticTagStruct.kt | 43 +- .../DishwasherModeClusterModeOptionStruct.kt | 18 +- .../DishwasherModeClusterModeTagStruct.kt | 19 +- .../DoorLockClusterCredentialStruct.kt | 9 +- .../structs/FixedLabelClusterLabelStruct.kt | 9 +- ...missioningClusterBasicCommissioningInfo.kt | 20 +- ...neralDiagnosticsClusterNetworkInterface.kt | 80 +- ...pKeyManagementClusterGroupInfoMapStruct.kt | 28 +- ...upKeyManagementClusterGroupKeyMapStruct.kt | 4 +- ...upKeyManagementClusterGroupKeySetStruct.kt | 96 +- ...nitoringClusterReplacementProductStruct.kt | 17 +- ...mentClusterMonitoringRegistrationStruct.kt | 15 +- ...aundryWasherModeClusterModeOptionStruct.kt | 18 +- .../LaundryWasherModeClusterModeTagStruct.kt | 19 +- .../MediaInputClusterInputInfoStruct.kt | 4 +- ...iaPlaybackClusterPlaybackPositionStruct.kt | 22 +- ...icrowaveOvenModeClusterModeOptionStruct.kt | 18 +- .../MicrowaveOvenModeClusterModeTagStruct.kt | 19 +- .../ModeSelectClusterModeOptionStruct.kt | 18 +- .../ModeSelectClusterSemanticTagStruct.kt | 9 +- ...rkCommissioningClusterNetworkInfoStruct.kt | 64 +- ...gClusterThreadInterfaceScanResultStruct.kt | 20 +- ...ingClusterWiFiInterfaceScanResultStruct.kt | 18 +- ...redentialsClusterFabricDescriptorStruct.kt | 18 +- .../OperationalCredentialsClusterNOCStruct.kt | 17 +- ...OperationalStateClusterErrorStateStruct.kt | 31 +- ...ionalStateClusterOperationalStateStruct.kt | 19 +- ...eUpdateRequestorClusterProviderLocation.kt | 15 +- .../OvenModeClusterModeOptionStruct.kt | 18 +- .../structs/OvenModeClusterModeTagStruct.kt | 19 +- ...erSourceClusterBatChargeFaultChangeType.kt | 33 +- .../PowerSourceClusterBatFaultChangeType.kt | 38 +- .../PowerSourceClusterWiredFaultChangeType.kt | 38 +- ...olledCabinetModeClusterModeOptionStruct.kt | 34 +- ...ntrolledCabinetModeClusterModeTagStruct.kt | 19 +- .../RvcCleanModeClusterModeOptionStruct.kt | 18 +- .../RvcCleanModeClusterModeTagStruct.kt | 19 +- ...OperationalStateClusterErrorStateStruct.kt | 31 +- ...ionalStateClusterOperationalStateStruct.kt | 24 +- .../RvcRunModeClusterModeOptionStruct.kt | 18 +- .../structs/RvcRunModeClusterModeTagStruct.kt | 19 +- .../ScenesClusterAttributeValuePair.kt | 9 +- .../structs/ScenesClusterExtensionFieldSet.kt | 18 +- .../structs/ScenesClusterSceneInfoStruct.kt | 13 +- ...reDiagnosticsClusterThreadMetricsStruct.kt | 55 +- .../TargetNavigatorClusterTargetInfoStruct.kt | 9 +- .../structs/ThermostatClusterPresetStruct.kt | 129 + .../ThermostatClusterPresetTypeStruct.kt | 66 + .../ThermostatClusterQueuedPresetStruct.kt | 79 + .../ThermostatClusterScheduleStruct.kt | 130 + ...ermostatClusterScheduleTransitionStruct.kt | 109 + .../ThermostatClusterScheduleTypeStruct.kt | 66 + ...usterThermostatScheduleTransitionStruct.kt | 66 + ...rkDiagnosticsClusterNeighborTableStruct.kt | 52 +- ...ticsClusterOperationalDatasetComponents.kt | 39 +- ...tworkDiagnosticsClusterRouteTableStruct.kt | 22 +- ...NetworkDiagnosticsClusterSecurityPolicy.kt | 9 +- ...meSynchronizationClusterDSTOffsetStruct.kt | 17 +- ...sterFabricScopedTrustedTimeSourceStruct.kt | 9 +- ...imeSynchronizationClusterTimeZoneStruct.kt | 14 +- ...onizationClusterTrustedTimeSourceStruct.kt | 9 +- ...nitTestingClusterDoubleNestedStructList.kt | 22 +- .../structs/UnitTestingClusterNestedStruct.kt | 4 +- .../UnitTestingClusterNestedStructList.kt | 63 +- ...stingClusterNullablesAndOptionalsStruct.kt | 295 +-- .../structs/UnitTestingClusterSimpleStruct.kt | 4 +- .../UnitTestingClusterTestFabricScoped.kt | 100 +- .../UnitTestingClusterTestListStructOctet.kt | 9 +- .../structs/UserLabelClusterLabelStruct.kt | 9 +- .../CHIPAttributeTLVValueDecoder.cpp | 766 +++++- .../java/zap-generated/CHIPClientCallbacks.h | 12 + .../zap-generated/CHIPClustersWrite-JNI.cpp | 460 +++- .../zap-generated/CHIPInvokeCallbacks.cpp | 188 +- .../java/zap-generated/CHIPInvokeCallbacks.h | 15 + .../java/zap-generated/CHIPReadCallbacks.cpp | 932 +++++++ .../python/chip/clusters/CHIPClusters.py | 158 +- .../python/chip/clusters/Objects.py | 822 +++++- .../MTRAttributeSpecifiedCheck.mm | 50 +- .../MTRAttributeTLVValueDecoder.mm | 405 ++- .../CHIP/zap-generated/MTRBaseClusters.h | 413 ++- .../CHIP/zap-generated/MTRBaseClusters.mm | 1409 ++++++++--- .../CHIP/zap-generated/MTRClusterConstants.h | 33 +- .../CHIP/zap-generated/MTRClusters.h | 62 +- .../CHIP/zap-generated/MTRClusters.mm | 357 ++- .../zap-generated/MTRCommandPayloadsObjc.h | 267 +- .../zap-generated/MTRCommandPayloadsObjc.mm | 784 +++++- .../MTRCommandPayloads_Internal.h | 54 + .../CHIP/zap-generated/MTRStructsObjc.h | 60 +- .../CHIP/zap-generated/MTRStructsObjc.mm | 230 +- .../zap-generated/attributes/Accessors.cpp | 577 ++++- .../zap-generated/attributes/Accessors.h | 169 +- .../app-common/zap-generated/callback.h | 48 + .../zap-generated/cluster-enums-check.h | 144 +- .../app-common/zap-generated/cluster-enums.h | 246 +- .../zap-generated/cluster-objects.cpp | 648 ++++- .../zap-generated/cluster-objects.h | 1072 ++++++-- .../app-common/zap-generated/ids/Attributes.h | 68 +- .../app-common/zap-generated/ids/Commands.h | 36 + .../zap-generated/cluster/Commands.h | 508 +++- .../cluster/ComplexArgumentParser.cpp | 310 ++- .../cluster/ComplexArgumentParser.h | 35 +- .../cluster/logging/DataModelLogger.cpp | 397 ++- .../cluster/logging/DataModelLogger.h | 23 +- .../zap-generated/cluster/Commands.h | 2209 +++++++++++++++-- 484 files changed, 33218 insertions(+), 12006 deletions(-) create mode 100644 src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterPresetStruct.kt create mode 100644 src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterPresetTypeStruct.kt create mode 100644 src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterQueuedPresetStruct.kt create mode 100644 src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleStruct.kt create mode 100644 src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleTransitionStruct.kt create mode 100644 src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleTypeStruct.kt create mode 100644 src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterPresetStruct.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterPresetTypeStruct.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterQueuedPresetStruct.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleStruct.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleTransitionStruct.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleTypeStruct.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter index 0557d6764fb511..8fdaf2da11742b 100644 --- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter +++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter @@ -3679,17 +3679,82 @@ server cluster PumpConfigurationAndControl = 512 { readonly attribute int16u clusterRevision = 65533; } -/** An interface for configuring and controlling the functionality of a thermostat. */ +/** This cluster provides an interface to the functionality of a thermostat. */ server cluster Thermostat = 513 { revision 6; - enum SetpointAdjustMode : enum8 { + enum ACCapacityFormatEnum : enum8 { + kBTUh = 0; + } + + enum ACCompressorTypeEnum : enum8 { + kUnknown = 0; + kT1 = 1; + kT2 = 2; + kT3 = 3; + } + + enum ACLouverPositionEnum : enum8 { + kClosed = 1; + kOpen = 2; + kQuarter = 3; + kHalf = 4; + kThreeQuarters = 5; + } + + enum ACRefrigerantTypeEnum : enum8 { + kUnknown = 0; + kR22 = 1; + kR410a = 2; + kR407c = 3; + } + + enum ACTypeEnum : enum8 { + kUnknown = 0; + kCoolingFixed = 1; + kHeatPumpFixed = 2; + kCoolingInverter = 3; + kHeatPumpInverter = 4; + } + + enum PresetScenarioEnum : enum8 { + kUnspecified = 0; + kOccupied = 1; + kUnoccupied = 2; + kSleep = 3; + kWake = 4; + kVacation = 5; + kUserDefined = 6; + } + + enum SetpointAdjustModeEnum : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : enum8 { + enum SetpointChangeSourceEnum : enum8 { + kManual = 0; + kSchedule = 1; + kExternal = 2; + } + + enum StartOfWeekEnum : enum8 { + kSunday = 0; + kMonday = 1; + kTuesday = 2; + kWednesday = 3; + kThursday = 4; + kFriday = 5; + kSaturday = 6; + } + + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatControlSequenceEnum : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -3698,13 +3763,13 @@ server cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : enum8 { + enum ThermostatRunningModeEnum : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : enum8 { + enum ThermostatSystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -3716,7 +3781,21 @@ server cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : bitmap8 { + bitmap ACErrorCodeBitmap : bitmap32 { + kCompressorFail = 0x1; + kRoomSensorFail = 0x2; + kOutdoorSensorFail = 0x4; + kCoilSensorFail = 0x8; + kFanFail = 0x10; + } + + bitmap AlarmCodeBitmap : bitmap8 { + kInitialization = 0x1; + kHardware = 0x2; + kSelfCalibration = 0x4; + } + + bitmap DayOfWeekBitmap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -3731,37 +3810,142 @@ server cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kScheduleConfiguration = 0x8; + kZigbeeScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; + kMatterScheduleConfiguration = 0x80; + kPresets = 0x100; + kSetpoints = 0x200; + kQueuedPresetsSupported = 0x400; + } + + bitmap HVACSystemTypeBitmap : bitmap8 { + kHeatingType = 0x10; + kHeatingFuel = 0x20; } - bitmap ModeForSequence : bitmap8 { + bitmap ModeForSequenceBitmap : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } - struct ThermostatScheduleTransition { + bitmap PresetTypeFeaturesBitmap : bitmap16 { + kAutomatic = 0x1; + kSupportsNames = 0x2; + } + + bitmap ProgrammingOperationModeBitmap : bitmap8 { + kScheduleActive = 0x1; + kAutoRecovery = 0x2; + kEconomy = 0x4; + } + + bitmap RelayStateBitmap : bitmap16 { + kHeat = 0x1; + kCool = 0x2; + kFan = 0x4; + kHeatStage2 = 0x8; + kCoolStage2 = 0x10; + kFanStage2 = 0x20; + kFanStage3 = 0x40; + } + + bitmap RemoteSensingBitmap : bitmap8 { + kLocalTemperature = 0x1; + kOutdoorTemperature = 0x2; + kOccupancy = 0x4; + } + + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { + kSupportsPresets = 0x1; + kSupportsSetpoints = 0x2; + kSupportsNames = 0x4; + kSupportsOff = 0x8; + } + + bitmap TemperatureSetpointHoldPolicyBitmap : bitmap8 { + kHoldDurationElapsed = 0x1; + kHoldDurationElapsedOrPresetChanged = 0x2; + } + + struct ScheduleTransitionStruct { + DayOfWeekBitmap dayOfWeek = 0; + int16u transitionTime = 1; + optional octet_string<16> presetHandle = 2; + optional ThermostatSystemModeEnum systemMode = 3; + optional temperature coolingSetpoint = 4; + optional temperature heatingSetpoint = 5; + } + + struct ScheduleStruct { + nullable octet_string<16> scheduleHandle = 0; + ThermostatSystemModeEnum systemMode = 1; + optional char_string<64> name = 2; + optional octet_string<16> presetHandle = 3; + ScheduleTransitionStruct transitions[] = 4; + optional nullable boolean builtIn = 5; + } + + struct PresetStruct { + nullable octet_string<16> presetHandle = 0; + PresetScenarioEnum presetScenario = 1; + optional nullable char_string<64> name = 2; + optional temperature coolingSetpoint = 3; + optional temperature heatingSetpoint = 4; + nullable boolean builtIn = 5; + } + + struct PresetTypeStruct { + PresetScenarioEnum presetScenario = 0; + int8u numberOfPresets = 1; + PresetTypeFeaturesBitmap presetTypeFeatures = 2; + } + + struct QueuedPresetStruct { + nullable octet_string<16> presetHandle = 0; + nullable epoch_s transitionTimestamp = 1; + } + + struct ScheduleTypeStruct { + ThermostatSystemModeEnum systemMode = 0; + int8u numberOfSchedules = 1; + ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; + } + + struct ThermostatScheduleTransitionStruct { int16u transitionTime = 0; - nullable int16s heatSetpoint = 1; - nullable int16s coolSetpoint = 2; - } - - readonly attribute nullable int16s localTemperature = 0; - readonly attribute int16s absMinHeatSetpointLimit = 3; - readonly attribute int16s absMaxHeatSetpointLimit = 4; - readonly attribute int16s absMinCoolSetpointLimit = 5; - readonly attribute int16s absMaxCoolSetpointLimit = 6; - attribute int16s occupiedCoolingSetpoint = 17; - attribute int16s occupiedHeatingSetpoint = 18; - attribute access(write: manage) int16s minHeatSetpointLimit = 21; - attribute access(write: manage) int16s maxHeatSetpointLimit = 22; - attribute access(write: manage) int16s minCoolSetpointLimit = 23; - attribute access(write: manage) int16s maxCoolSetpointLimit = 24; + temperature heatSetpoint = 1; + temperature coolSetpoint = 2; + } + + readonly attribute nullable temperature localTemperature = 0; + readonly attribute temperature absMinHeatSetpointLimit = 3; + readonly attribute temperature absMaxHeatSetpointLimit = 4; + readonly attribute temperature absMinCoolSetpointLimit = 5; + readonly attribute temperature absMaxCoolSetpointLimit = 6; + attribute temperature occupiedCoolingSetpoint = 17; + attribute temperature occupiedHeatingSetpoint = 18; + attribute access(write: manage) temperature minHeatSetpointLimit = 21; + attribute access(write: manage) temperature maxHeatSetpointLimit = 22; + attribute access(write: manage) temperature minCoolSetpointLimit = 23; + attribute access(write: manage) temperature maxCoolSetpointLimit = 24; attribute access(write: manage) int8s minSetpointDeadBand = 25; - attribute access(write: manage) ThermostatControlSequence controlSequenceOfOperation = 27; - attribute access(write: manage) enum8 systemMode = 28; + attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; + attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; + readonly attribute PresetTypeStruct presetTypes[] = 72; + readonly attribute ScheduleTypeStruct scheduleTypes[] = 73; + readonly attribute int8u numberOfPresets = 74; + readonly attribute int8u numberOfSchedules = 75; + readonly attribute nullable int8u numberOfScheduleTransitionPerDay = 77; + readonly attribute nullable octet_string<16> activePresetHandle = 78; + readonly attribute nullable octet_string<16> activeScheduleHandle = 79; + attribute access(write: manage) PresetStruct presets[] = 80; + attribute access(write: manage) ScheduleStruct schedules[] = 81; + readonly attribute boolean presetsSchedulesEditable = 82; + readonly attribute TemperatureSetpointHoldPolicyBitmap temperatureSetpointHoldPolicy = 83; + readonly attribute nullable epoch_s setpointHoldExpiryTimestamp = 84; + readonly attribute nullable QueuedPresetStruct queuedPreset = 85; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; readonly attribute event_id eventList[] = 65530; @@ -3770,11 +3954,45 @@ server cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustMode mode = 0; + SetpointAdjustModeEnum mode = 0; int8s amount = 1; } + request struct SetActiveScheduleRequestRequest { + octet_string<16> scheduleHandle = 0; + } + + request struct SetActivePresetRequestRequest { + octet_string<16> presetHandle = 0; + optional int16u delayMinutes = 1; + } + + request struct StartPresetsSchedulesEditRequestRequest { + int16u timeoutSeconds = 0; + } + + request struct SetTemperatureSetpointHoldPolicyRequest { + TemperatureSetpointHoldPolicyBitmap temperatureSetpointHoldPolicy = 0; + } + + response struct GetRelayStatusLogResponse = 1 { + int16u timeOfDay = 0; + RelayStateBitmap relayStatus = 1; + nullable temperature localTemperature = 2; + nullable int8u humidityInPercentage = 3; + temperature setPoint = 4; + int16u unreadEntries = 5; + } + command SetpointRaiseLower(SetpointRaiseLowerRequest): DefaultSuccess = 0; + command GetRelayStatusLog(): GetRelayStatusLogResponse = 4; + command SetActiveScheduleRequest(SetActiveScheduleRequestRequest): DefaultSuccess = 5; + command SetActivePresetRequest(SetActivePresetRequestRequest): DefaultSuccess = 6; + command access(invoke: manage) StartPresetsSchedulesEditRequest(StartPresetsSchedulesEditRequestRequest): DefaultSuccess = 7; + command access(invoke: manage) CancelPresetsSchedulesEditRequest(): DefaultSuccess = 8; + command access(invoke: manage) CommitPresetsSchedulesRequest(): DefaultSuccess = 9; + command access(invoke: manage) CancelSetActivePresetRequest(): DefaultSuccess = 10; + command SetTemperatureSetpointHoldPolicy(SetTemperatureSetpointHoldPolicyRequest): DefaultSuccess = 11; } /** An interface for controlling a fan in a heating/cooling system. */ @@ -6401,13 +6619,36 @@ endpoint 1 { ram attribute minSetpointDeadBand default = 0x19; ram attribute controlSequenceOfOperation default = 0x04; ram attribute systemMode default = 0x01; + callback attribute presetTypes; + callback attribute scheduleTypes; + ram attribute numberOfPresets default = 0; + ram attribute numberOfSchedules default = 0; + ram attribute numberOfScheduleTransitionPerDay default = 0xFF; + ram attribute activePresetHandle; + ram attribute activeScheduleHandle; + callback attribute presets; + callback attribute schedules; + ram attribute presetsSchedulesEditable; + ram attribute temperatureSetpointHoldPolicy default = 0; + ram attribute setpointHoldExpiryTimestamp; + callback attribute queuedPreset; callback attribute generatedCommandList; callback attribute acceptedCommandList; + callback attribute eventList; callback attribute attributeList; - ram attribute featureMap default = 0x0023; + ram attribute featureMap default = 0x03A3; ram attribute clusterRevision default = 6; handle command SetpointRaiseLower; + handle command GetRelayStatusLogResponse; + handle command GetRelayStatusLog; + handle command SetActiveScheduleRequest; + handle command SetActivePresetRequest; + handle command StartPresetsSchedulesEditRequest; + handle command CancelPresetsSchedulesEditRequest; + handle command CommitPresetsSchedulesRequest; + handle command CancelSetActivePresetRequest; + handle command SetTemperatureSetpointHoldPolicy; } server cluster FanControl { diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap b/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap index 08a758eab09fd7..dc1e90fc17d0af 100644 --- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap +++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap @@ -6681,7 +6681,7 @@ "side": "server", "type": "array", "included": 1, - "storageOption": "RAM", + "storageOption": "External", "singleton": 0, "bounded": 0, "defaultValue": "", @@ -12573,6 +12573,78 @@ "source": "client", "isIncoming": 1, "isEnabled": 1 + }, + { + "name": "GetRelayStatusLogResponse", + "code": 1, + "mfgCode": null, + "source": "server", + "isIncoming": 0, + "isEnabled": 1 + }, + { + "name": "GetRelayStatusLog", + "code": 4, + "mfgCode": null, + "source": "client", + "isIncoming": 1, + "isEnabled": 1 + }, + { + "name": "SetActiveScheduleRequest", + "code": 5, + "mfgCode": null, + "source": "client", + "isIncoming": 1, + "isEnabled": 1 + }, + { + "name": "SetActivePresetRequest", + "code": 6, + "mfgCode": null, + "source": "client", + "isIncoming": 1, + "isEnabled": 1 + }, + { + "name": "StartPresetsSchedulesEditRequest", + "code": 7, + "mfgCode": null, + "source": "client", + "isIncoming": 1, + "isEnabled": 1 + }, + { + "name": "CancelPresetsSchedulesEditRequest", + "code": 8, + "mfgCode": null, + "source": "client", + "isIncoming": 1, + "isEnabled": 1 + }, + { + "name": "CommitPresetsSchedulesRequest", + "code": 9, + "mfgCode": null, + "source": "client", + "isIncoming": 1, + "isEnabled": 1 + }, + { + "name": "CancelSetActivePresetRequest", + "code": 10, + "mfgCode": null, + "source": "client", + "isIncoming": 1, + "isEnabled": 1 + }, + { + "name": "SetTemperatureSetpointHoldPolicy", + "code": 11, + "mfgCode": null, + "source": "client", + "isIncoming": 1, + "isEnabled": 1 } ], "attributes": [ @@ -12581,7 +12653,7 @@ "code": 0, "mfgCode": null, "side": "server", - "type": "int16s", + "type": "temperature", "included": 1, "storageOption": "RAM", "singleton": 0, @@ -12597,7 +12669,7 @@ "code": 3, "mfgCode": null, "side": "server", - "type": "int16s", + "type": "temperature", "included": 1, "storageOption": "RAM", "singleton": 0, @@ -12613,7 +12685,7 @@ "code": 4, "mfgCode": null, "side": "server", - "type": "int16s", + "type": "temperature", "included": 1, "storageOption": "RAM", "singleton": 0, @@ -12629,7 +12701,7 @@ "code": 5, "mfgCode": null, "side": "server", - "type": "int16s", + "type": "temperature", "included": 1, "storageOption": "RAM", "singleton": 0, @@ -12645,7 +12717,7 @@ "code": 6, "mfgCode": null, "side": "server", - "type": "int16s", + "type": "temperature", "included": 1, "storageOption": "RAM", "singleton": 0, @@ -12661,7 +12733,7 @@ "code": 17, "mfgCode": null, "side": "server", - "type": "int16s", + "type": "temperature", "included": 1, "storageOption": "RAM", "singleton": 0, @@ -12677,7 +12749,7 @@ "code": 18, "mfgCode": null, "side": "server", - "type": "int16s", + "type": "temperature", "included": 1, "storageOption": "RAM", "singleton": 0, @@ -12693,7 +12765,7 @@ "code": 21, "mfgCode": null, "side": "server", - "type": "int16s", + "type": "temperature", "included": 1, "storageOption": "RAM", "singleton": 0, @@ -12709,7 +12781,7 @@ "code": 22, "mfgCode": null, "side": "server", - "type": "int16s", + "type": "temperature", "included": 1, "storageOption": "RAM", "singleton": 0, @@ -12725,7 +12797,7 @@ "code": 23, "mfgCode": null, "side": "server", - "type": "int16s", + "type": "temperature", "included": 1, "storageOption": "RAM", "singleton": 0, @@ -12741,7 +12813,7 @@ "code": 24, "mfgCode": null, "side": "server", - "type": "int16s", + "type": "temperature", "included": 1, "storageOption": "RAM", "singleton": 0, @@ -12773,7 +12845,7 @@ "code": 27, "mfgCode": null, "side": "server", - "type": "ThermostatControlSequence", + "type": "ThermostatControlSequenceEnum", "included": 1, "storageOption": "RAM", "singleton": 0, @@ -12789,7 +12861,7 @@ "code": 28, "mfgCode": null, "side": "server", - "type": "enum8", + "type": "ThermostatSystemModeEnum", "included": 1, "storageOption": "RAM", "singleton": 0, @@ -12800,6 +12872,214 @@ "maxInterval": 65344, "reportableChange": 0 }, + { + "name": "PresetTypes", + "code": 72, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "ScheduleTypes", + "code": 73, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "NumberOfPresets", + "code": 74, + "mfgCode": null, + "side": "server", + "type": "int8u", + "included": 1, + "storageOption": "RAM", + "singleton": 0, + "bounded": 0, + "defaultValue": "0", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "NumberOfSchedules", + "code": 75, + "mfgCode": null, + "side": "server", + "type": "int8u", + "included": 1, + "storageOption": "RAM", + "singleton": 0, + "bounded": 0, + "defaultValue": "0", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "NumberOfScheduleTransitionPerDay", + "code": 77, + "mfgCode": null, + "side": "server", + "type": "int8u", + "included": 1, + "storageOption": "RAM", + "singleton": 0, + "bounded": 0, + "defaultValue": "0xFF", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "ActivePresetHandle", + "code": 78, + "mfgCode": null, + "side": "server", + "type": "octet_string", + "included": 1, + "storageOption": "RAM", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "ActiveScheduleHandle", + "code": 79, + "mfgCode": null, + "side": "server", + "type": "octet_string", + "included": 1, + "storageOption": "RAM", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "Presets", + "code": 80, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "Schedules", + "code": 81, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "PresetsSchedulesEditable", + "code": 82, + "mfgCode": null, + "side": "server", + "type": "boolean", + "included": 1, + "storageOption": "RAM", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "TemperatureSetpointHoldPolicy", + "code": 83, + "mfgCode": null, + "side": "server", + "type": "TemperatureSetpointHoldPolicyBitmap", + "included": 1, + "storageOption": "RAM", + "singleton": 0, + "bounded": 0, + "defaultValue": "0", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "SetpointHoldExpiryTimestamp", + "code": 84, + "mfgCode": null, + "side": "server", + "type": "epoch_s", + "included": 1, + "storageOption": "RAM", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, + { + "name": "QueuedPreset", + "code": 85, + "mfgCode": null, + "side": "server", + "type": "QueuedPresetStruct", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, { "name": "GeneratedCommandList", "code": 65528, @@ -12832,6 +13112,22 @@ "maxInterval": 65534, "reportableChange": 0 }, + { + "name": "EventList", + "code": 65530, + "mfgCode": null, + "side": "server", + "type": "array", + "included": 1, + "storageOption": "External", + "singleton": 0, + "bounded": 0, + "defaultValue": "", + "reportable": 1, + "minInterval": 1, + "maxInterval": 65534, + "reportableChange": 0 + }, { "name": "AttributeList", "code": 65531, @@ -12858,7 +13154,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "0x0023", + "defaultValue": "0x03A3", "reportable": 1, "minInterval": 0, "maxInterval": 65344, @@ -20348,7 +20644,7 @@ "side": "server", "type": "array", "included": 1, - "storageOption": "RAM", + "storageOption": "External", "singleton": 0, "bounded": 0, "defaultValue": "", @@ -21724,8 +22020,6 @@ "endpointId": 65534, "networkId": 0 } - - ] -} - - + ], + "log": [] +} \ No newline at end of file diff --git a/examples/all-clusters-app/ameba/main/include/ThermostatCommands.h b/examples/all-clusters-app/ameba/main/include/ThermostatCommands.h index 31ff5098869680..a0405eafc78fc8 100644 --- a/examples/all-clusters-app/ameba/main/include/ThermostatCommands.h +++ b/examples/all-clusters-app/ameba/main/include/ThermostatCommands.h @@ -154,7 +154,7 @@ void ProcessThermostatUnicastBindingCommand(BindingCommandData * data, const Emb switch (data->commandId) { case Clusters::Thermostat::Commands::SetpointRaiseLower::Id: - setpointRaiseLowerCommand.mode = static_cast(data->args[0]); + setpointRaiseLowerCommand.mode = static_cast(data->args[0]); setpointRaiseLowerCommand.amount = static_cast(data->args[1]); Controller::InvokeCommandRequest(peer_device->GetExchangeManager(), peer_device->GetSecureSession().Value(), binding.remote, setpointRaiseLowerCommand, onSuccess, onFailure); @@ -171,7 +171,7 @@ void ProcessThermostatGroupBindingCommand(BindingCommandData * data, const Ember switch (data->commandId) { case Clusters::Thermostat::Commands::SetpointRaiseLower::Id: - setpointRaiseLowerCommand.mode = static_cast(data->args[0]); + setpointRaiseLowerCommand.mode = static_cast(data->args[0]); setpointRaiseLowerCommand.amount = static_cast(data->args[1]); Controller::InvokeGroupCommandRequest(&exchangeMgr, binding.fabricIndex, binding.groupId, setpointRaiseLowerCommand); break; diff --git a/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp b/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp index c0caa12cc2eebe..0a33fc1bafc6b0 100644 --- a/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp +++ b/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp @@ -141,14 +141,14 @@ class EditAttributeListModel : public TouchesMatterStackModel // false otherwise. bool isValidThermostatSystemMode(uint8_t systemMode) { - chip::app::Clusters::Thermostat::ThermostatSystemMode mode = - static_cast(systemMode); + chip::app::Clusters::Thermostat::ThermostatSystemModeEnum mode = + static_cast(systemMode); switch (mode) { - case chip::app::Clusters::Thermostat::ThermostatSystemMode::kOff: - case chip::app::Clusters::Thermostat::ThermostatSystemMode::kAuto: - case chip::app::Clusters::Thermostat::ThermostatSystemMode::kCool: - case chip::app::Clusters::Thermostat::ThermostatSystemMode::kHeat: + case chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kOff: + case chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kAuto: + case chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kCool: + case chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kHeat: return true; default: return false; @@ -240,7 +240,7 @@ class EditAttributeListModel : public TouchesMatterStackModel ESP_LOGI(TAG, "System Mode changed to : %d", mode); app::Clusters::Thermostat::Attributes::SystemMode::Set(1, static_cast(mode)); // If system mode is auto set running mode to off otherwise set it to what the system mode is set to - if (mode == static_cast(chip::app::Clusters::Thermostat::ThermostatSystemMode::kAuto)) + if (mode == static_cast(chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kAuto)) { app::Clusters::Thermostat::Attributes::ThermostatRunningMode::Set( 1, static_cast(chip::app::Clusters::Thermostat::ThermostatRunningMode::kOff)); @@ -268,7 +268,7 @@ class EditAttributeListModel : public TouchesMatterStackModel // Get the system mode uint8_t systemMode = static_cast(chip::app::Clusters::Thermostat::ThermostatRunningMode::kOff); app::Clusters::Thermostat::Attributes::SystemMode::Get(1, static_cast(&systemMode)); - if (systemMode != static_cast(chip::app::Clusters::Thermostat::ThermostatSystemMode::kAuto)) + if (systemMode != static_cast(chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kAuto)) { ESP_LOGI(TAG, "Running mode can be changed only for system mode auto. Current system mode %d", systemMode); } @@ -608,7 +608,7 @@ void SetupPretendDevices() app::Clusters::Thermostat::Attributes::LocalTemperature::Set(1, static_cast(21 * 100)); AddAttribute("SystemMode", "4"); app::Clusters::Thermostat::Attributes::SystemMode::Set( - 1, static_cast(chip::app::Clusters::Thermostat::ThermostatSystemMode::kHeat)); + 1, static_cast(chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kHeat)); AddAttribute("CoolSetpoint", "19"); app::Clusters::Thermostat::Attributes::OccupiedCoolingSetpoint::Set(1, static_cast(19 * 100)); AddAttribute("HeatSetpoint", "25"); diff --git a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter index 5908594f643e6f..25bfdb30974205 100644 --- a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter +++ b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter @@ -2844,17 +2844,82 @@ server cluster PumpConfigurationAndControl = 512 { readonly attribute int16u clusterRevision = 65533; } -/** An interface for configuring and controlling the functionality of a thermostat. */ +/** This cluster provides an interface to the functionality of a thermostat. */ server cluster Thermostat = 513 { revision 6; - enum SetpointAdjustMode : enum8 { + enum ACCapacityFormatEnum : enum8 { + kBTUh = 0; + } + + enum ACCompressorTypeEnum : enum8 { + kUnknown = 0; + kT1 = 1; + kT2 = 2; + kT3 = 3; + } + + enum ACLouverPositionEnum : enum8 { + kClosed = 1; + kOpen = 2; + kQuarter = 3; + kHalf = 4; + kThreeQuarters = 5; + } + + enum ACRefrigerantTypeEnum : enum8 { + kUnknown = 0; + kR22 = 1; + kR410a = 2; + kR407c = 3; + } + + enum ACTypeEnum : enum8 { + kUnknown = 0; + kCoolingFixed = 1; + kHeatPumpFixed = 2; + kCoolingInverter = 3; + kHeatPumpInverter = 4; + } + + enum PresetScenarioEnum : enum8 { + kUnspecified = 0; + kOccupied = 1; + kUnoccupied = 2; + kSleep = 3; + kWake = 4; + kVacation = 5; + kUserDefined = 6; + } + + enum SetpointAdjustModeEnum : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : enum8 { + enum SetpointChangeSourceEnum : enum8 { + kManual = 0; + kSchedule = 1; + kExternal = 2; + } + + enum StartOfWeekEnum : enum8 { + kSunday = 0; + kMonday = 1; + kTuesday = 2; + kWednesday = 3; + kThursday = 4; + kFriday = 5; + kSaturday = 6; + } + + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatControlSequenceEnum : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -2863,13 +2928,13 @@ server cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : enum8 { + enum ThermostatRunningModeEnum : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : enum8 { + enum ThermostatSystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -2881,7 +2946,21 @@ server cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : bitmap8 { + bitmap ACErrorCodeBitmap : bitmap32 { + kCompressorFail = 0x1; + kRoomSensorFail = 0x2; + kOutdoorSensorFail = 0x4; + kCoilSensorFail = 0x8; + kFanFail = 0x10; + } + + bitmap AlarmCodeBitmap : bitmap8 { + kInitialization = 0x1; + kHardware = 0x2; + kSelfCalibration = 0x4; + } + + bitmap DayOfWeekBitmap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -2896,27 +2975,119 @@ server cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kScheduleConfiguration = 0x8; + kZigbeeScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; + kMatterScheduleConfiguration = 0x80; + kPresets = 0x100; + kSetpoints = 0x200; + kQueuedPresetsSupported = 0x400; } - bitmap ModeForSequence : bitmap8 { + bitmap HVACSystemTypeBitmap : bitmap8 { + kHeatingType = 0x10; + kHeatingFuel = 0x20; + } + + bitmap ModeForSequenceBitmap : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } - struct ThermostatScheduleTransition { + bitmap PresetTypeFeaturesBitmap : bitmap16 { + kAutomatic = 0x1; + kSupportsNames = 0x2; + } + + bitmap ProgrammingOperationModeBitmap : bitmap8 { + kScheduleActive = 0x1; + kAutoRecovery = 0x2; + kEconomy = 0x4; + } + + bitmap RelayStateBitmap : bitmap16 { + kHeat = 0x1; + kCool = 0x2; + kFan = 0x4; + kHeatStage2 = 0x8; + kCoolStage2 = 0x10; + kFanStage2 = 0x20; + kFanStage3 = 0x40; + } + + bitmap RemoteSensingBitmap : bitmap8 { + kLocalTemperature = 0x1; + kOutdoorTemperature = 0x2; + kOccupancy = 0x4; + } + + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { + kSupportsPresets = 0x1; + kSupportsSetpoints = 0x2; + kSupportsNames = 0x4; + kSupportsOff = 0x8; + } + + bitmap TemperatureSetpointHoldPolicyBitmap : bitmap8 { + kHoldDurationElapsed = 0x1; + kHoldDurationElapsedOrPresetChanged = 0x2; + } + + struct ScheduleTransitionStruct { + DayOfWeekBitmap dayOfWeek = 0; + int16u transitionTime = 1; + optional octet_string<16> presetHandle = 2; + optional ThermostatSystemModeEnum systemMode = 3; + optional temperature coolingSetpoint = 4; + optional temperature heatingSetpoint = 5; + } + + struct ScheduleStruct { + nullable octet_string<16> scheduleHandle = 0; + ThermostatSystemModeEnum systemMode = 1; + optional char_string<64> name = 2; + optional octet_string<16> presetHandle = 3; + ScheduleTransitionStruct transitions[] = 4; + optional nullable boolean builtIn = 5; + } + + struct PresetStruct { + nullable octet_string<16> presetHandle = 0; + PresetScenarioEnum presetScenario = 1; + optional nullable char_string<64> name = 2; + optional temperature coolingSetpoint = 3; + optional temperature heatingSetpoint = 4; + nullable boolean builtIn = 5; + } + + struct PresetTypeStruct { + PresetScenarioEnum presetScenario = 0; + int8u numberOfPresets = 1; + PresetTypeFeaturesBitmap presetTypeFeatures = 2; + } + + struct QueuedPresetStruct { + nullable octet_string<16> presetHandle = 0; + nullable epoch_s transitionTimestamp = 1; + } + + struct ScheduleTypeStruct { + ThermostatSystemModeEnum systemMode = 0; + int8u numberOfSchedules = 1; + ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; + } + + struct ThermostatScheduleTransitionStruct { int16u transitionTime = 0; - nullable int16s heatSetpoint = 1; - nullable int16s coolSetpoint = 2; + temperature heatSetpoint = 1; + temperature coolSetpoint = 2; } - readonly attribute nullable int16s localTemperature = 0; - attribute int16s occupiedHeatingSetpoint = 18; - attribute access(write: manage) ThermostatControlSequence controlSequenceOfOperation = 27; - attribute access(write: manage) enum8 systemMode = 28; + readonly attribute nullable temperature localTemperature = 0; + attribute temperature occupiedHeatingSetpoint = 18; + attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; + attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; readonly attribute event_id eventList[] = 65530; @@ -2925,7 +3096,7 @@ server cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustMode mode = 0; + SetpointAdjustModeEnum mode = 0; int8s amount = 1; } diff --git a/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter b/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter index 55d65cc9100c0c..f46078f3252219 100644 --- a/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter +++ b/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter @@ -1058,17 +1058,82 @@ server cluster ActivatedCarbonFilterMonitoring = 114 { readonly attribute int16u clusterRevision = 65533; } -/** An interface for configuring and controlling the functionality of a thermostat. */ +/** This cluster provides an interface to the functionality of a thermostat. */ server cluster Thermostat = 513 { revision 6; - enum SetpointAdjustMode : enum8 { + enum ACCapacityFormatEnum : enum8 { + kBTUh = 0; + } + + enum ACCompressorTypeEnum : enum8 { + kUnknown = 0; + kT1 = 1; + kT2 = 2; + kT3 = 3; + } + + enum ACLouverPositionEnum : enum8 { + kClosed = 1; + kOpen = 2; + kQuarter = 3; + kHalf = 4; + kThreeQuarters = 5; + } + + enum ACRefrigerantTypeEnum : enum8 { + kUnknown = 0; + kR22 = 1; + kR410a = 2; + kR407c = 3; + } + + enum ACTypeEnum : enum8 { + kUnknown = 0; + kCoolingFixed = 1; + kHeatPumpFixed = 2; + kCoolingInverter = 3; + kHeatPumpInverter = 4; + } + + enum PresetScenarioEnum : enum8 { + kUnspecified = 0; + kOccupied = 1; + kUnoccupied = 2; + kSleep = 3; + kWake = 4; + kVacation = 5; + kUserDefined = 6; + } + + enum SetpointAdjustModeEnum : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : enum8 { + enum SetpointChangeSourceEnum : enum8 { + kManual = 0; + kSchedule = 1; + kExternal = 2; + } + + enum StartOfWeekEnum : enum8 { + kSunday = 0; + kMonday = 1; + kTuesday = 2; + kWednesday = 3; + kThursday = 4; + kFriday = 5; + kSaturday = 6; + } + + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatControlSequenceEnum : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -1077,13 +1142,13 @@ server cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : enum8 { + enum ThermostatRunningModeEnum : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : enum8 { + enum ThermostatSystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -1095,7 +1160,21 @@ server cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : bitmap8 { + bitmap ACErrorCodeBitmap : bitmap32 { + kCompressorFail = 0x1; + kRoomSensorFail = 0x2; + kOutdoorSensorFail = 0x4; + kCoilSensorFail = 0x8; + kFanFail = 0x10; + } + + bitmap AlarmCodeBitmap : bitmap8 { + kInitialization = 0x1; + kHardware = 0x2; + kSelfCalibration = 0x4; + } + + bitmap DayOfWeekBitmap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -1110,29 +1189,121 @@ server cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kScheduleConfiguration = 0x8; + kZigbeeScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; + kMatterScheduleConfiguration = 0x80; + kPresets = 0x100; + kSetpoints = 0x200; + kQueuedPresetsSupported = 0x400; } - bitmap ModeForSequence : bitmap8 { + bitmap HVACSystemTypeBitmap : bitmap8 { + kHeatingType = 0x10; + kHeatingFuel = 0x20; + } + + bitmap ModeForSequenceBitmap : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } - struct ThermostatScheduleTransition { + bitmap PresetTypeFeaturesBitmap : bitmap16 { + kAutomatic = 0x1; + kSupportsNames = 0x2; + } + + bitmap ProgrammingOperationModeBitmap : bitmap8 { + kScheduleActive = 0x1; + kAutoRecovery = 0x2; + kEconomy = 0x4; + } + + bitmap RelayStateBitmap : bitmap16 { + kHeat = 0x1; + kCool = 0x2; + kFan = 0x4; + kHeatStage2 = 0x8; + kCoolStage2 = 0x10; + kFanStage2 = 0x20; + kFanStage3 = 0x40; + } + + bitmap RemoteSensingBitmap : bitmap8 { + kLocalTemperature = 0x1; + kOutdoorTemperature = 0x2; + kOccupancy = 0x4; + } + + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { + kSupportsPresets = 0x1; + kSupportsSetpoints = 0x2; + kSupportsNames = 0x4; + kSupportsOff = 0x8; + } + + bitmap TemperatureSetpointHoldPolicyBitmap : bitmap8 { + kHoldDurationElapsed = 0x1; + kHoldDurationElapsedOrPresetChanged = 0x2; + } + + struct ScheduleTransitionStruct { + DayOfWeekBitmap dayOfWeek = 0; + int16u transitionTime = 1; + optional octet_string<16> presetHandle = 2; + optional ThermostatSystemModeEnum systemMode = 3; + optional temperature coolingSetpoint = 4; + optional temperature heatingSetpoint = 5; + } + + struct ScheduleStruct { + nullable octet_string<16> scheduleHandle = 0; + ThermostatSystemModeEnum systemMode = 1; + optional char_string<64> name = 2; + optional octet_string<16> presetHandle = 3; + ScheduleTransitionStruct transitions[] = 4; + optional nullable boolean builtIn = 5; + } + + struct PresetStruct { + nullable octet_string<16> presetHandle = 0; + PresetScenarioEnum presetScenario = 1; + optional nullable char_string<64> name = 2; + optional temperature coolingSetpoint = 3; + optional temperature heatingSetpoint = 4; + nullable boolean builtIn = 5; + } + + struct PresetTypeStruct { + PresetScenarioEnum presetScenario = 0; + int8u numberOfPresets = 1; + PresetTypeFeaturesBitmap presetTypeFeatures = 2; + } + + struct QueuedPresetStruct { + nullable octet_string<16> presetHandle = 0; + nullable epoch_s transitionTimestamp = 1; + } + + struct ScheduleTypeStruct { + ThermostatSystemModeEnum systemMode = 0; + int8u numberOfSchedules = 1; + ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; + } + + struct ThermostatScheduleTransitionStruct { int16u transitionTime = 0; - nullable int16s heatSetpoint = 1; - nullable int16s coolSetpoint = 2; + temperature heatSetpoint = 1; + temperature coolSetpoint = 2; } - readonly attribute nullable int16s localTemperature = 0; - attribute int16s occupiedHeatingSetpoint = 18; - attribute access(write: manage) int16s minHeatSetpointLimit = 21; - attribute access(write: manage) int16s maxHeatSetpointLimit = 22; - attribute access(write: manage) ThermostatControlSequence controlSequenceOfOperation = 27; - attribute access(write: manage) enum8 systemMode = 28; + readonly attribute nullable temperature localTemperature = 0; + attribute temperature occupiedHeatingSetpoint = 18; + attribute access(write: manage) temperature minHeatSetpointLimit = 21; + attribute access(write: manage) temperature maxHeatSetpointLimit = 22; + attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; + attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; readonly attribute event_id eventList[] = 65530; @@ -1141,7 +1312,7 @@ server cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustMode mode = 0; + SetpointAdjustModeEnum mode = 0; int8s amount = 1; } diff --git a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter index 9187a209f8d703..e537fc5dd112fe 100644 --- a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter +++ b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter @@ -1367,17 +1367,82 @@ server cluster FixedLabel = 64 { readonly attribute int16u clusterRevision = 65533; } -/** An interface for configuring and controlling the functionality of a thermostat. */ +/** This cluster provides an interface to the functionality of a thermostat. */ client cluster Thermostat = 513 { revision 6; - enum SetpointAdjustMode : enum8 { + enum ACCapacityFormatEnum : enum8 { + kBTUh = 0; + } + + enum ACCompressorTypeEnum : enum8 { + kUnknown = 0; + kT1 = 1; + kT2 = 2; + kT3 = 3; + } + + enum ACLouverPositionEnum : enum8 { + kClosed = 1; + kOpen = 2; + kQuarter = 3; + kHalf = 4; + kThreeQuarters = 5; + } + + enum ACRefrigerantTypeEnum : enum8 { + kUnknown = 0; + kR22 = 1; + kR410a = 2; + kR407c = 3; + } + + enum ACTypeEnum : enum8 { + kUnknown = 0; + kCoolingFixed = 1; + kHeatPumpFixed = 2; + kCoolingInverter = 3; + kHeatPumpInverter = 4; + } + + enum PresetScenarioEnum : enum8 { + kUnspecified = 0; + kOccupied = 1; + kUnoccupied = 2; + kSleep = 3; + kWake = 4; + kVacation = 5; + kUserDefined = 6; + } + + enum SetpointAdjustModeEnum : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : enum8 { + enum SetpointChangeSourceEnum : enum8 { + kManual = 0; + kSchedule = 1; + kExternal = 2; + } + + enum StartOfWeekEnum : enum8 { + kSunday = 0; + kMonday = 1; + kTuesday = 2; + kWednesday = 3; + kThursday = 4; + kFriday = 5; + kSaturday = 6; + } + + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatControlSequenceEnum : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -1386,13 +1451,13 @@ client cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : enum8 { + enum ThermostatRunningModeEnum : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : enum8 { + enum ThermostatSystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -1404,7 +1469,21 @@ client cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : bitmap8 { + bitmap ACErrorCodeBitmap : bitmap32 { + kCompressorFail = 0x1; + kRoomSensorFail = 0x2; + kOutdoorSensorFail = 0x4; + kCoilSensorFail = 0x8; + kFanFail = 0x10; + } + + bitmap AlarmCodeBitmap : bitmap8 { + kInitialization = 0x1; + kHardware = 0x2; + kSelfCalibration = 0x4; + } + + bitmap DayOfWeekBitmap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -1419,55 +1498,147 @@ client cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kScheduleConfiguration = 0x8; + kZigbeeScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; + kMatterScheduleConfiguration = 0x80; + kPresets = 0x100; + kSetpoints = 0x200; + kQueuedPresetsSupported = 0x400; + } + + bitmap HVACSystemTypeBitmap : bitmap8 { + kHeatingType = 0x10; + kHeatingFuel = 0x20; } - bitmap ModeForSequence : bitmap8 { + bitmap ModeForSequenceBitmap : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } - struct ThermostatScheduleTransition { + bitmap PresetTypeFeaturesBitmap : bitmap16 { + kAutomatic = 0x1; + kSupportsNames = 0x2; + } + + bitmap ProgrammingOperationModeBitmap : bitmap8 { + kScheduleActive = 0x1; + kAutoRecovery = 0x2; + kEconomy = 0x4; + } + + bitmap RelayStateBitmap : bitmap16 { + kHeat = 0x1; + kCool = 0x2; + kFan = 0x4; + kHeatStage2 = 0x8; + kCoolStage2 = 0x10; + kFanStage2 = 0x20; + kFanStage3 = 0x40; + } + + bitmap RemoteSensingBitmap : bitmap8 { + kLocalTemperature = 0x1; + kOutdoorTemperature = 0x2; + kOccupancy = 0x4; + } + + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { + kSupportsPresets = 0x1; + kSupportsSetpoints = 0x2; + kSupportsNames = 0x4; + kSupportsOff = 0x8; + } + + bitmap TemperatureSetpointHoldPolicyBitmap : bitmap8 { + kHoldDurationElapsed = 0x1; + kHoldDurationElapsedOrPresetChanged = 0x2; + } + + struct ScheduleTransitionStruct { + DayOfWeekBitmap dayOfWeek = 0; + int16u transitionTime = 1; + optional octet_string<16> presetHandle = 2; + optional ThermostatSystemModeEnum systemMode = 3; + optional temperature coolingSetpoint = 4; + optional temperature heatingSetpoint = 5; + } + + struct ScheduleStruct { + nullable octet_string<16> scheduleHandle = 0; + ThermostatSystemModeEnum systemMode = 1; + optional char_string<64> name = 2; + optional octet_string<16> presetHandle = 3; + ScheduleTransitionStruct transitions[] = 4; + optional nullable boolean builtIn = 5; + } + + struct PresetStruct { + nullable octet_string<16> presetHandle = 0; + PresetScenarioEnum presetScenario = 1; + optional nullable char_string<64> name = 2; + optional temperature coolingSetpoint = 3; + optional temperature heatingSetpoint = 4; + nullable boolean builtIn = 5; + } + + struct PresetTypeStruct { + PresetScenarioEnum presetScenario = 0; + int8u numberOfPresets = 1; + PresetTypeFeaturesBitmap presetTypeFeatures = 2; + } + + struct QueuedPresetStruct { + nullable octet_string<16> presetHandle = 0; + nullable epoch_s transitionTimestamp = 1; + } + + struct ScheduleTypeStruct { + ThermostatSystemModeEnum systemMode = 0; + int8u numberOfSchedules = 1; + ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; + } + + struct ThermostatScheduleTransitionStruct { int16u transitionTime = 0; - nullable int16s heatSetpoint = 1; - nullable int16s coolSetpoint = 2; + temperature heatSetpoint = 1; + temperature coolSetpoint = 2; } - readonly attribute nullable int16s localTemperature = 0; - readonly attribute optional nullable int16s outdoorTemperature = 1; + readonly attribute nullable temperature localTemperature = 0; + readonly attribute optional nullable temperature outdoorTemperature = 1; readonly attribute optional bitmap8 occupancy = 2; - readonly attribute optional int16s absMinHeatSetpointLimit = 3; - readonly attribute optional int16s absMaxHeatSetpointLimit = 4; - readonly attribute optional int16s absMinCoolSetpointLimit = 5; - readonly attribute optional int16s absMaxCoolSetpointLimit = 6; + readonly attribute optional temperature absMinHeatSetpointLimit = 3; + readonly attribute optional temperature absMaxHeatSetpointLimit = 4; + readonly attribute optional temperature absMinCoolSetpointLimit = 5; + readonly attribute optional temperature absMaxCoolSetpointLimit = 6; readonly attribute optional int8u PICoolingDemand = 7; readonly attribute optional int8u PIHeatingDemand = 8; - attribute access(write: manage) optional bitmap8 HVACSystemTypeConfiguration = 9; attribute access(write: manage) optional int8s localTemperatureCalibration = 16; - attribute optional int16s occupiedCoolingSetpoint = 17; - attribute optional int16s occupiedHeatingSetpoint = 18; - attribute optional int16s unoccupiedCoolingSetpoint = 19; - attribute optional int16s unoccupiedHeatingSetpoint = 20; - attribute access(write: manage) optional int16s minHeatSetpointLimit = 21; - attribute access(write: manage) optional int16s maxHeatSetpointLimit = 22; - attribute access(write: manage) optional int16s minCoolSetpointLimit = 23; - attribute access(write: manage) optional int16s maxCoolSetpointLimit = 24; + attribute optional temperature occupiedCoolingSetpoint = 17; + attribute optional temperature occupiedHeatingSetpoint = 18; + attribute optional temperature unoccupiedCoolingSetpoint = 19; + attribute optional temperature unoccupiedHeatingSetpoint = 20; + attribute access(write: manage) optional temperature minHeatSetpointLimit = 21; + attribute access(write: manage) optional temperature maxHeatSetpointLimit = 22; + attribute access(write: manage) optional temperature minCoolSetpointLimit = 23; + attribute access(write: manage) optional temperature maxCoolSetpointLimit = 24; attribute access(write: manage) optional int8s minSetpointDeadBand = 25; - attribute access(write: manage) optional bitmap8 remoteSensing = 26; - attribute access(write: manage) ThermostatControlSequence controlSequenceOfOperation = 27; - attribute access(write: manage) enum8 systemMode = 28; - readonly attribute optional enum8 thermostatRunningMode = 30; - readonly attribute optional enum8 startOfWeek = 32; + attribute access(write: manage) optional RemoteSensingBitmap remoteSensing = 26; + attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; + attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; + readonly attribute optional AlarmCodeBitmap alarmMask = 29; + readonly attribute optional ThermostatRunningModeEnum thermostatRunningMode = 30; + readonly attribute optional StartOfWeekEnum startOfWeek = 32; readonly attribute optional int8u numberOfWeeklyTransitions = 33; readonly attribute optional int8u numberOfDailyTransitions = 34; - attribute access(write: manage) optional enum8 temperatureSetpointHold = 35; + attribute access(write: manage) optional TemperatureSetpointHoldEnum temperatureSetpointHold = 35; attribute access(write: manage) optional nullable int16u temperatureSetpointHoldDuration = 36; - attribute access(write: manage) optional bitmap8 thermostatProgrammingOperationMode = 37; - readonly attribute optional bitmap16 thermostatRunningState = 41; - readonly attribute optional enum8 setpointChangeSource = 48; + attribute access(write: manage) optional ProgrammingOperationModeBitmap thermostatProgrammingOperationMode = 37; + readonly attribute optional RelayStateBitmap thermostatRunningState = 41; + readonly attribute optional SetpointChangeSourceEnum setpointChangeSource = 48; readonly attribute optional nullable int16s setpointChangeAmount = 49; readonly attribute optional epoch_s setpointChangeSourceTimestamp = 50; attribute access(write: manage) optional nullable int8u occupiedSetback = 52; @@ -1477,14 +1648,28 @@ client cluster Thermostat = 513 { readonly attribute optional nullable int8u unoccupiedSetbackMin = 56; readonly attribute optional nullable int8u unoccupiedSetbackMax = 57; attribute access(write: manage) optional int8u emergencyHeatDelta = 58; - attribute access(write: manage) optional enum8 ACType = 64; + attribute access(write: manage) optional ACTypeEnum ACType = 64; attribute access(write: manage) optional int16u ACCapacity = 65; - attribute access(write: manage) optional enum8 ACRefrigerantType = 66; - attribute access(write: manage) optional enum8 ACCompressorType = 67; - attribute access(write: manage) optional bitmap32 ACErrorCode = 68; - attribute access(write: manage) optional enum8 ACLouverPosition = 69; - readonly attribute optional nullable int16s ACCoilTemperature = 70; - attribute access(write: manage) optional enum8 ACCapacityformat = 71; + attribute access(write: manage) optional ACRefrigerantTypeEnum ACRefrigerantType = 66; + attribute access(write: manage) optional ACCompressorTypeEnum ACCompressorType = 67; + attribute access(write: manage) optional ACErrorCodeBitmap ACErrorCode = 68; + attribute access(write: manage) optional ACLouverPositionEnum ACLouverPosition = 69; + readonly attribute optional nullable temperature ACCoilTemperature = 70; + attribute access(write: manage) optional ACCapacityFormatEnum ACCapacityFormat = 71; + readonly attribute optional PresetTypeStruct presetTypes[] = 72; + readonly attribute optional ScheduleTypeStruct scheduleTypes[] = 73; + readonly attribute optional int8u numberOfPresets = 74; + readonly attribute optional int8u numberOfSchedules = 75; + readonly attribute optional int8u numberOfScheduleTransitions = 76; + readonly attribute optional nullable int8u numberOfScheduleTransitionPerDay = 77; + readonly attribute optional nullable octet_string<16> activePresetHandle = 78; + readonly attribute optional nullable octet_string<16> activeScheduleHandle = 79; + attribute access(write: manage) optional PresetStruct presets[] = 80; + attribute access(write: manage) optional ScheduleStruct schedules[] = 81; + readonly attribute optional boolean presetsSchedulesEditable = 82; + readonly attribute optional TemperatureSetpointHoldPolicyBitmap temperatureSetpointHoldPolicy = 83; + readonly attribute optional nullable epoch_s setpointHoldExpiryTimestamp = 84; + readonly attribute optional nullable QueuedPresetStruct queuedPreset = 85; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; readonly attribute event_id eventList[] = 65530; @@ -1493,37 +1678,79 @@ client cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustMode mode = 0; + SetpointAdjustModeEnum mode = 0; int8s amount = 1; } response struct GetWeeklyScheduleResponse = 0 { int8u numberOfTransitionsForSequence = 0; - DayOfWeek dayOfWeekForSequence = 1; - ModeForSequence modeForSequence = 2; - ThermostatScheduleTransition transitions[] = 3; + DayOfWeekBitmap dayOfWeekforSequence = 1; + ModeForSequenceBitmap modeForSequence = 2; + ThermostatScheduleTransitionStruct transitions[] = 3; } request struct SetWeeklyScheduleRequest { int8u numberOfTransitionsForSequence = 0; - DayOfWeek dayOfWeekForSequence = 1; - ModeForSequence modeForSequence = 2; - ThermostatScheduleTransition transitions[] = 3; + DayOfWeekBitmap dayOfWeekforSequence = 1; + ModeForSequenceBitmap modeForSequence = 2; + ThermostatScheduleTransitionStruct transitions[] = 3; + } + + response struct GetRelayStatusLogResponse = 1 { + int16u timeOfDay = 0; + RelayStateBitmap relayStatus = 1; + nullable temperature localTemperature = 2; + nullable int8u humidityInPercentage = 3; + temperature setPoint = 4; + int16u unreadEntries = 5; } request struct GetWeeklyScheduleRequest { - DayOfWeek daysToReturn = 0; - ModeForSequence modeToReturn = 1; + DayOfWeekBitmap daysToReturn = 0; + ModeForSequenceBitmap modeToReturn = 1; + } + + request struct SetActiveScheduleRequestRequest { + octet_string<16> scheduleHandle = 0; + } + + request struct SetActivePresetRequestRequest { + octet_string<16> presetHandle = 0; + optional int16u delayMinutes = 1; + } + + request struct StartPresetsSchedulesEditRequestRequest { + int16u timeoutSeconds = 0; + } + + request struct SetTemperatureSetpointHoldPolicyRequest { + TemperatureSetpointHoldPolicyBitmap temperatureSetpointHoldPolicy = 0; } - /** Command description for SetpointRaiseLower */ + /** Upon receipt, the attributes for the indicated setpoint(s) SHALL have the amount specified in the Amount field added to them. If the resulting value is outside the limits imposed by */ command SetpointRaiseLower(SetpointRaiseLowerRequest): DefaultSuccess = 0; - /** Command description for SetWeeklySchedule */ + /** Upon receipt, the weekly schedule for updating setpoints SHALL be stored in the thermostat and SHOULD begin at the time of receipt. A status code SHALL be sent in response. */ command access(invoke: manage) SetWeeklySchedule(SetWeeklyScheduleRequest): DefaultSuccess = 1; - /** Command description for GetWeeklySchedule */ + /** Upon receipt, the unit SHOULD send in return the Get Weekly Schedule Response command. The Days to Return and Mode to Return fields are defined as bitmask for the flexibility to support multiple days and multiple modes within one command. If thermostat cannot handle incoming command with multiple days and/or multiple modes within one command, it SHALL send default response of INVALID_COMMAND in return. */ command GetWeeklySchedule(GetWeeklyScheduleRequest): GetWeeklyScheduleResponse = 2; - /** The Clear Weekly Schedule command is used to clear the weekly schedule. */ + /** This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. */ command access(invoke: manage) ClearWeeklySchedule(): DefaultSuccess = 3; + /** This command is used to query the thermostat internal relay status log. This command has no payload. */ + command GetRelayStatusLog(): GetRelayStatusLogResponse = 4; + /** Upon receipt, if the */ + command SetActiveScheduleRequest(SetActiveScheduleRequestRequest): DefaultSuccess = 5; + /** Upon receipt, this SHALL set the thermostat */ + command SetActivePresetRequest(SetActivePresetRequestRequest): DefaultSuccess = 6; + /** Upon receipt, this SHALL attempt to enable editing of the */ + command access(invoke: manage) StartPresetsSchedulesEditRequest(StartPresetsSchedulesEditRequestRequest): DefaultSuccess = 7; + /** Upon receipt, this SHALL attempt to cancel any active editing of the */ + command access(invoke: manage) CancelPresetsSchedulesEditRequest(): DefaultSuccess = 8; + /** Upon receipt, this SHALL attempt to commit any pending changes to the */ + command access(invoke: manage) CommitPresetsSchedulesRequest(): DefaultSuccess = 9; + /** This command is sent to cancel a queued preset specified by */ + command access(invoke: manage) CancelSetActivePresetRequest(): DefaultSuccess = 10; + /** This command is sent to set the */ + command SetTemperatureSetpointHoldPolicy(SetTemperatureSetpointHoldPolicyRequest): DefaultSuccess = 11; } /** An interface for controlling a fan in a heating/cooling system. */ diff --git a/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter b/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter index fd516663144de9..66dafa9d16a967 100644 --- a/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter +++ b/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter @@ -984,17 +984,82 @@ server cluster GroupKeyManagement = 63 { fabric command access(invoke: administer) KeySetReadAllIndices(): KeySetReadAllIndicesResponse = 4; } -/** An interface for configuring and controlling the functionality of a thermostat. */ +/** This cluster provides an interface to the functionality of a thermostat. */ server cluster Thermostat = 513 { revision 6; - enum SetpointAdjustMode : enum8 { + enum ACCapacityFormatEnum : enum8 { + kBTUh = 0; + } + + enum ACCompressorTypeEnum : enum8 { + kUnknown = 0; + kT1 = 1; + kT2 = 2; + kT3 = 3; + } + + enum ACLouverPositionEnum : enum8 { + kClosed = 1; + kOpen = 2; + kQuarter = 3; + kHalf = 4; + kThreeQuarters = 5; + } + + enum ACRefrigerantTypeEnum : enum8 { + kUnknown = 0; + kR22 = 1; + kR410a = 2; + kR407c = 3; + } + + enum ACTypeEnum : enum8 { + kUnknown = 0; + kCoolingFixed = 1; + kHeatPumpFixed = 2; + kCoolingInverter = 3; + kHeatPumpInverter = 4; + } + + enum PresetScenarioEnum : enum8 { + kUnspecified = 0; + kOccupied = 1; + kUnoccupied = 2; + kSleep = 3; + kWake = 4; + kVacation = 5; + kUserDefined = 6; + } + + enum SetpointAdjustModeEnum : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : enum8 { + enum SetpointChangeSourceEnum : enum8 { + kManual = 0; + kSchedule = 1; + kExternal = 2; + } + + enum StartOfWeekEnum : enum8 { + kSunday = 0; + kMonday = 1; + kTuesday = 2; + kWednesday = 3; + kThursday = 4; + kFriday = 5; + kSaturday = 6; + } + + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatControlSequenceEnum : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -1003,13 +1068,13 @@ server cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : enum8 { + enum ThermostatRunningModeEnum : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : enum8 { + enum ThermostatSystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -1021,7 +1086,21 @@ server cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : bitmap8 { + bitmap ACErrorCodeBitmap : bitmap32 { + kCompressorFail = 0x1; + kRoomSensorFail = 0x2; + kOutdoorSensorFail = 0x4; + kCoilSensorFail = 0x8; + kFanFail = 0x10; + } + + bitmap AlarmCodeBitmap : bitmap8 { + kInitialization = 0x1; + kHardware = 0x2; + kSelfCalibration = 0x4; + } + + bitmap DayOfWeekBitmap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -1036,31 +1115,123 @@ server cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kScheduleConfiguration = 0x8; + kZigbeeScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; + kMatterScheduleConfiguration = 0x80; + kPresets = 0x100; + kSetpoints = 0x200; + kQueuedPresetsSupported = 0x400; + } + + bitmap HVACSystemTypeBitmap : bitmap8 { + kHeatingType = 0x10; + kHeatingFuel = 0x20; } - bitmap ModeForSequence : bitmap8 { + bitmap ModeForSequenceBitmap : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } - struct ThermostatScheduleTransition { + bitmap PresetTypeFeaturesBitmap : bitmap16 { + kAutomatic = 0x1; + kSupportsNames = 0x2; + } + + bitmap ProgrammingOperationModeBitmap : bitmap8 { + kScheduleActive = 0x1; + kAutoRecovery = 0x2; + kEconomy = 0x4; + } + + bitmap RelayStateBitmap : bitmap16 { + kHeat = 0x1; + kCool = 0x2; + kFan = 0x4; + kHeatStage2 = 0x8; + kCoolStage2 = 0x10; + kFanStage2 = 0x20; + kFanStage3 = 0x40; + } + + bitmap RemoteSensingBitmap : bitmap8 { + kLocalTemperature = 0x1; + kOutdoorTemperature = 0x2; + kOccupancy = 0x4; + } + + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { + kSupportsPresets = 0x1; + kSupportsSetpoints = 0x2; + kSupportsNames = 0x4; + kSupportsOff = 0x8; + } + + bitmap TemperatureSetpointHoldPolicyBitmap : bitmap8 { + kHoldDurationElapsed = 0x1; + kHoldDurationElapsedOrPresetChanged = 0x2; + } + + struct ScheduleTransitionStruct { + DayOfWeekBitmap dayOfWeek = 0; + int16u transitionTime = 1; + optional octet_string<16> presetHandle = 2; + optional ThermostatSystemModeEnum systemMode = 3; + optional temperature coolingSetpoint = 4; + optional temperature heatingSetpoint = 5; + } + + struct ScheduleStruct { + nullable octet_string<16> scheduleHandle = 0; + ThermostatSystemModeEnum systemMode = 1; + optional char_string<64> name = 2; + optional octet_string<16> presetHandle = 3; + ScheduleTransitionStruct transitions[] = 4; + optional nullable boolean builtIn = 5; + } + + struct PresetStruct { + nullable octet_string<16> presetHandle = 0; + PresetScenarioEnum presetScenario = 1; + optional nullable char_string<64> name = 2; + optional temperature coolingSetpoint = 3; + optional temperature heatingSetpoint = 4; + nullable boolean builtIn = 5; + } + + struct PresetTypeStruct { + PresetScenarioEnum presetScenario = 0; + int8u numberOfPresets = 1; + PresetTypeFeaturesBitmap presetTypeFeatures = 2; + } + + struct QueuedPresetStruct { + nullable octet_string<16> presetHandle = 0; + nullable epoch_s transitionTimestamp = 1; + } + + struct ScheduleTypeStruct { + ThermostatSystemModeEnum systemMode = 0; + int8u numberOfSchedules = 1; + ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; + } + + struct ThermostatScheduleTransitionStruct { int16u transitionTime = 0; - nullable int16s heatSetpoint = 1; - nullable int16s coolSetpoint = 2; - } - - readonly attribute nullable int16s localTemperature = 0; - readonly attribute int16s absMinCoolSetpointLimit = 5; - readonly attribute int16s absMaxCoolSetpointLimit = 6; - attribute int16s occupiedCoolingSetpoint = 17; - attribute access(write: manage) int16s minCoolSetpointLimit = 23; - attribute access(write: manage) int16s maxCoolSetpointLimit = 24; - attribute access(write: manage) ThermostatControlSequence controlSequenceOfOperation = 27; - attribute access(write: manage) enum8 systemMode = 28; + temperature heatSetpoint = 1; + temperature coolSetpoint = 2; + } + + readonly attribute nullable temperature localTemperature = 0; + readonly attribute temperature absMinCoolSetpointLimit = 5; + readonly attribute temperature absMaxCoolSetpointLimit = 6; + attribute temperature occupiedCoolingSetpoint = 17; + attribute access(write: manage) temperature minCoolSetpointLimit = 23; + attribute access(write: manage) temperature maxCoolSetpointLimit = 24; + attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; + attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; readonly attribute event_id eventList[] = 65530; @@ -1069,7 +1240,7 @@ server cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustMode mode = 0; + SetpointAdjustModeEnum mode = 0; int8s amount = 1; } diff --git a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter index 7357b6b73b7f34..78b349b733bcb8 100644 --- a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter +++ b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter @@ -1218,17 +1218,82 @@ server cluster FixedLabel = 64 { readonly attribute int16u clusterRevision = 65533; } -/** An interface for configuring and controlling the functionality of a thermostat. */ +/** This cluster provides an interface to the functionality of a thermostat. */ server cluster Thermostat = 513 { revision 6; - enum SetpointAdjustMode : enum8 { + enum ACCapacityFormatEnum : enum8 { + kBTUh = 0; + } + + enum ACCompressorTypeEnum : enum8 { + kUnknown = 0; + kT1 = 1; + kT2 = 2; + kT3 = 3; + } + + enum ACLouverPositionEnum : enum8 { + kClosed = 1; + kOpen = 2; + kQuarter = 3; + kHalf = 4; + kThreeQuarters = 5; + } + + enum ACRefrigerantTypeEnum : enum8 { + kUnknown = 0; + kR22 = 1; + kR410a = 2; + kR407c = 3; + } + + enum ACTypeEnum : enum8 { + kUnknown = 0; + kCoolingFixed = 1; + kHeatPumpFixed = 2; + kCoolingInverter = 3; + kHeatPumpInverter = 4; + } + + enum PresetScenarioEnum : enum8 { + kUnspecified = 0; + kOccupied = 1; + kUnoccupied = 2; + kSleep = 3; + kWake = 4; + kVacation = 5; + kUserDefined = 6; + } + + enum SetpointAdjustModeEnum : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : enum8 { + enum SetpointChangeSourceEnum : enum8 { + kManual = 0; + kSchedule = 1; + kExternal = 2; + } + + enum StartOfWeekEnum : enum8 { + kSunday = 0; + kMonday = 1; + kTuesday = 2; + kWednesday = 3; + kThursday = 4; + kFriday = 5; + kSaturday = 6; + } + + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatControlSequenceEnum : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -1237,13 +1302,13 @@ server cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : enum8 { + enum ThermostatRunningModeEnum : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : enum8 { + enum ThermostatSystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -1255,7 +1320,21 @@ server cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : bitmap8 { + bitmap ACErrorCodeBitmap : bitmap32 { + kCompressorFail = 0x1; + kRoomSensorFail = 0x2; + kOutdoorSensorFail = 0x4; + kCoilSensorFail = 0x8; + kFanFail = 0x10; + } + + bitmap AlarmCodeBitmap : bitmap8 { + kInitialization = 0x1; + kHardware = 0x2; + kSelfCalibration = 0x4; + } + + bitmap DayOfWeekBitmap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -1270,48 +1349,139 @@ server cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kScheduleConfiguration = 0x8; + kZigbeeScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; + kMatterScheduleConfiguration = 0x80; + kPresets = 0x100; + kSetpoints = 0x200; + kQueuedPresetsSupported = 0x400; } - bitmap ModeForSequence : bitmap8 { + bitmap HVACSystemTypeBitmap : bitmap8 { + kHeatingType = 0x10; + kHeatingFuel = 0x20; + } + + bitmap ModeForSequenceBitmap : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } - struct ThermostatScheduleTransition { + bitmap PresetTypeFeaturesBitmap : bitmap16 { + kAutomatic = 0x1; + kSupportsNames = 0x2; + } + + bitmap ProgrammingOperationModeBitmap : bitmap8 { + kScheduleActive = 0x1; + kAutoRecovery = 0x2; + kEconomy = 0x4; + } + + bitmap RelayStateBitmap : bitmap16 { + kHeat = 0x1; + kCool = 0x2; + kFan = 0x4; + kHeatStage2 = 0x8; + kCoolStage2 = 0x10; + kFanStage2 = 0x20; + kFanStage3 = 0x40; + } + + bitmap RemoteSensingBitmap : bitmap8 { + kLocalTemperature = 0x1; + kOutdoorTemperature = 0x2; + kOccupancy = 0x4; + } + + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { + kSupportsPresets = 0x1; + kSupportsSetpoints = 0x2; + kSupportsNames = 0x4; + kSupportsOff = 0x8; + } + + bitmap TemperatureSetpointHoldPolicyBitmap : bitmap8 { + kHoldDurationElapsed = 0x1; + kHoldDurationElapsedOrPresetChanged = 0x2; + } + + struct ScheduleTransitionStruct { + DayOfWeekBitmap dayOfWeek = 0; + int16u transitionTime = 1; + optional octet_string<16> presetHandle = 2; + optional ThermostatSystemModeEnum systemMode = 3; + optional temperature coolingSetpoint = 4; + optional temperature heatingSetpoint = 5; + } + + struct ScheduleStruct { + nullable octet_string<16> scheduleHandle = 0; + ThermostatSystemModeEnum systemMode = 1; + optional char_string<64> name = 2; + optional octet_string<16> presetHandle = 3; + ScheduleTransitionStruct transitions[] = 4; + optional nullable boolean builtIn = 5; + } + + struct PresetStruct { + nullable octet_string<16> presetHandle = 0; + PresetScenarioEnum presetScenario = 1; + optional nullable char_string<64> name = 2; + optional temperature coolingSetpoint = 3; + optional temperature heatingSetpoint = 4; + nullable boolean builtIn = 5; + } + + struct PresetTypeStruct { + PresetScenarioEnum presetScenario = 0; + int8u numberOfPresets = 1; + PresetTypeFeaturesBitmap presetTypeFeatures = 2; + } + + struct QueuedPresetStruct { + nullable octet_string<16> presetHandle = 0; + nullable epoch_s transitionTimestamp = 1; + } + + struct ScheduleTypeStruct { + ThermostatSystemModeEnum systemMode = 0; + int8u numberOfSchedules = 1; + ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; + } + + struct ThermostatScheduleTransitionStruct { int16u transitionTime = 0; - nullable int16s heatSetpoint = 1; - nullable int16s coolSetpoint = 2; + temperature heatSetpoint = 1; + temperature coolSetpoint = 2; } - readonly attribute nullable int16s localTemperature = 0; - readonly attribute nullable int16s outdoorTemperature = 1; + readonly attribute nullable temperature localTemperature = 0; + readonly attribute nullable temperature outdoorTemperature = 1; readonly attribute bitmap8 occupancy = 2; - readonly attribute int16s absMinHeatSetpointLimit = 3; - readonly attribute int16s absMaxHeatSetpointLimit = 4; - readonly attribute int16s absMinCoolSetpointLimit = 5; - readonly attribute int16s absMaxCoolSetpointLimit = 6; + readonly attribute temperature absMinHeatSetpointLimit = 3; + readonly attribute temperature absMaxHeatSetpointLimit = 4; + readonly attribute temperature absMinCoolSetpointLimit = 5; + readonly attribute temperature absMaxCoolSetpointLimit = 6; readonly attribute int8u PICoolingDemand = 7; readonly attribute int8u PIHeatingDemand = 8; - attribute access(write: manage) bitmap8 HVACSystemTypeConfiguration = 9; attribute access(write: manage) int8s localTemperatureCalibration = 16; - attribute int16s occupiedCoolingSetpoint = 17; - attribute int16s occupiedHeatingSetpoint = 18; - attribute int16s unoccupiedCoolingSetpoint = 19; - attribute int16s unoccupiedHeatingSetpoint = 20; - attribute access(write: manage) int16s minHeatSetpointLimit = 21; - attribute access(write: manage) int16s maxHeatSetpointLimit = 22; - attribute access(write: manage) int16s minCoolSetpointLimit = 23; - attribute access(write: manage) int16s maxCoolSetpointLimit = 24; + attribute temperature occupiedCoolingSetpoint = 17; + attribute temperature occupiedHeatingSetpoint = 18; + attribute temperature unoccupiedCoolingSetpoint = 19; + attribute temperature unoccupiedHeatingSetpoint = 20; + attribute access(write: manage) temperature minHeatSetpointLimit = 21; + attribute access(write: manage) temperature maxHeatSetpointLimit = 22; + attribute access(write: manage) temperature minCoolSetpointLimit = 23; + attribute access(write: manage) temperature maxCoolSetpointLimit = 24; attribute access(write: manage) int8s minSetpointDeadBand = 25; - attribute access(write: manage) bitmap8 remoteSensing = 26; - attribute access(write: manage) ThermostatControlSequence controlSequenceOfOperation = 27; - attribute access(write: manage) enum8 systemMode = 28; - readonly attribute enum8 thermostatRunningMode = 30; - readonly attribute enum8 startOfWeek = 32; + attribute access(write: manage) RemoteSensingBitmap remoteSensing = 26; + attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; + attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; + readonly attribute ThermostatRunningModeEnum thermostatRunningMode = 30; + readonly attribute StartOfWeekEnum startOfWeek = 32; readonly attribute int8u numberOfWeeklyTransitions = 33; readonly attribute int8u numberOfDailyTransitions = 34; readonly attribute command_id generatedCommandList[] = 65528; @@ -1322,7 +1492,7 @@ server cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustMode mode = 0; + SetpointAdjustModeEnum mode = 0; int8s amount = 1; } @@ -1800,7 +1970,6 @@ endpoint 1 { ram attribute absMaxCoolSetpointLimit default = 3200; ram attribute PICoolingDemand default = 0; ram attribute PIHeatingDemand default = 0; - ram attribute HVACSystemTypeConfiguration default = 0x00; ram attribute localTemperatureCalibration default = 0; ram attribute occupiedCoolingSetpoint default = 0x0A28; ram attribute occupiedHeatingSetpoint default = 0x07D0; diff --git a/examples/placeholder/linux/apps/app1/config.matter b/examples/placeholder/linux/apps/app1/config.matter index 6eca51cf360d29..a4610249a2db1c 100644 --- a/examples/placeholder/linux/apps/app1/config.matter +++ b/examples/placeholder/linux/apps/app1/config.matter @@ -4339,17 +4339,82 @@ server cluster PumpConfigurationAndControl = 512 { readonly attribute int16u clusterRevision = 65533; } -/** An interface for configuring and controlling the functionality of a thermostat. */ +/** This cluster provides an interface to the functionality of a thermostat. */ client cluster Thermostat = 513 { revision 6; - enum SetpointAdjustMode : enum8 { + enum ACCapacityFormatEnum : enum8 { + kBTUh = 0; + } + + enum ACCompressorTypeEnum : enum8 { + kUnknown = 0; + kT1 = 1; + kT2 = 2; + kT3 = 3; + } + + enum ACLouverPositionEnum : enum8 { + kClosed = 1; + kOpen = 2; + kQuarter = 3; + kHalf = 4; + kThreeQuarters = 5; + } + + enum ACRefrigerantTypeEnum : enum8 { + kUnknown = 0; + kR22 = 1; + kR410a = 2; + kR407c = 3; + } + + enum ACTypeEnum : enum8 { + kUnknown = 0; + kCoolingFixed = 1; + kHeatPumpFixed = 2; + kCoolingInverter = 3; + kHeatPumpInverter = 4; + } + + enum PresetScenarioEnum : enum8 { + kUnspecified = 0; + kOccupied = 1; + kUnoccupied = 2; + kSleep = 3; + kWake = 4; + kVacation = 5; + kUserDefined = 6; + } + + enum SetpointAdjustModeEnum : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : enum8 { + enum SetpointChangeSourceEnum : enum8 { + kManual = 0; + kSchedule = 1; + kExternal = 2; + } + + enum StartOfWeekEnum : enum8 { + kSunday = 0; + kMonday = 1; + kTuesday = 2; + kWednesday = 3; + kThursday = 4; + kFriday = 5; + kSaturday = 6; + } + + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatControlSequenceEnum : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -4358,13 +4423,13 @@ client cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : enum8 { + enum ThermostatRunningModeEnum : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : enum8 { + enum ThermostatSystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -4376,7 +4441,21 @@ client cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : bitmap8 { + bitmap ACErrorCodeBitmap : bitmap32 { + kCompressorFail = 0x1; + kRoomSensorFail = 0x2; + kOutdoorSensorFail = 0x4; + kCoilSensorFail = 0x8; + kFanFail = 0x10; + } + + bitmap AlarmCodeBitmap : bitmap8 { + kInitialization = 0x1; + kHardware = 0x2; + kSelfCalibration = 0x4; + } + + bitmap DayOfWeekBitmap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -4391,55 +4470,147 @@ client cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kScheduleConfiguration = 0x8; + kZigbeeScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; + kMatterScheduleConfiguration = 0x80; + kPresets = 0x100; + kSetpoints = 0x200; + kQueuedPresetsSupported = 0x400; } - bitmap ModeForSequence : bitmap8 { + bitmap HVACSystemTypeBitmap : bitmap8 { + kHeatingType = 0x10; + kHeatingFuel = 0x20; + } + + bitmap ModeForSequenceBitmap : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } - struct ThermostatScheduleTransition { + bitmap PresetTypeFeaturesBitmap : bitmap16 { + kAutomatic = 0x1; + kSupportsNames = 0x2; + } + + bitmap ProgrammingOperationModeBitmap : bitmap8 { + kScheduleActive = 0x1; + kAutoRecovery = 0x2; + kEconomy = 0x4; + } + + bitmap RelayStateBitmap : bitmap16 { + kHeat = 0x1; + kCool = 0x2; + kFan = 0x4; + kHeatStage2 = 0x8; + kCoolStage2 = 0x10; + kFanStage2 = 0x20; + kFanStage3 = 0x40; + } + + bitmap RemoteSensingBitmap : bitmap8 { + kLocalTemperature = 0x1; + kOutdoorTemperature = 0x2; + kOccupancy = 0x4; + } + + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { + kSupportsPresets = 0x1; + kSupportsSetpoints = 0x2; + kSupportsNames = 0x4; + kSupportsOff = 0x8; + } + + bitmap TemperatureSetpointHoldPolicyBitmap : bitmap8 { + kHoldDurationElapsed = 0x1; + kHoldDurationElapsedOrPresetChanged = 0x2; + } + + struct ScheduleTransitionStruct { + DayOfWeekBitmap dayOfWeek = 0; + int16u transitionTime = 1; + optional octet_string<16> presetHandle = 2; + optional ThermostatSystemModeEnum systemMode = 3; + optional temperature coolingSetpoint = 4; + optional temperature heatingSetpoint = 5; + } + + struct ScheduleStruct { + nullable octet_string<16> scheduleHandle = 0; + ThermostatSystemModeEnum systemMode = 1; + optional char_string<64> name = 2; + optional octet_string<16> presetHandle = 3; + ScheduleTransitionStruct transitions[] = 4; + optional nullable boolean builtIn = 5; + } + + struct PresetStruct { + nullable octet_string<16> presetHandle = 0; + PresetScenarioEnum presetScenario = 1; + optional nullable char_string<64> name = 2; + optional temperature coolingSetpoint = 3; + optional temperature heatingSetpoint = 4; + nullable boolean builtIn = 5; + } + + struct PresetTypeStruct { + PresetScenarioEnum presetScenario = 0; + int8u numberOfPresets = 1; + PresetTypeFeaturesBitmap presetTypeFeatures = 2; + } + + struct QueuedPresetStruct { + nullable octet_string<16> presetHandle = 0; + nullable epoch_s transitionTimestamp = 1; + } + + struct ScheduleTypeStruct { + ThermostatSystemModeEnum systemMode = 0; + int8u numberOfSchedules = 1; + ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; + } + + struct ThermostatScheduleTransitionStruct { int16u transitionTime = 0; - nullable int16s heatSetpoint = 1; - nullable int16s coolSetpoint = 2; + temperature heatSetpoint = 1; + temperature coolSetpoint = 2; } - readonly attribute nullable int16s localTemperature = 0; - readonly attribute optional nullable int16s outdoorTemperature = 1; + readonly attribute nullable temperature localTemperature = 0; + readonly attribute optional nullable temperature outdoorTemperature = 1; readonly attribute optional bitmap8 occupancy = 2; - readonly attribute optional int16s absMinHeatSetpointLimit = 3; - readonly attribute optional int16s absMaxHeatSetpointLimit = 4; - readonly attribute optional int16s absMinCoolSetpointLimit = 5; - readonly attribute optional int16s absMaxCoolSetpointLimit = 6; + readonly attribute optional temperature absMinHeatSetpointLimit = 3; + readonly attribute optional temperature absMaxHeatSetpointLimit = 4; + readonly attribute optional temperature absMinCoolSetpointLimit = 5; + readonly attribute optional temperature absMaxCoolSetpointLimit = 6; readonly attribute optional int8u PICoolingDemand = 7; readonly attribute optional int8u PIHeatingDemand = 8; - attribute access(write: manage) optional bitmap8 HVACSystemTypeConfiguration = 9; attribute access(write: manage) optional int8s localTemperatureCalibration = 16; - attribute optional int16s occupiedCoolingSetpoint = 17; - attribute optional int16s occupiedHeatingSetpoint = 18; - attribute optional int16s unoccupiedCoolingSetpoint = 19; - attribute optional int16s unoccupiedHeatingSetpoint = 20; - attribute access(write: manage) optional int16s minHeatSetpointLimit = 21; - attribute access(write: manage) optional int16s maxHeatSetpointLimit = 22; - attribute access(write: manage) optional int16s minCoolSetpointLimit = 23; - attribute access(write: manage) optional int16s maxCoolSetpointLimit = 24; + attribute optional temperature occupiedCoolingSetpoint = 17; + attribute optional temperature occupiedHeatingSetpoint = 18; + attribute optional temperature unoccupiedCoolingSetpoint = 19; + attribute optional temperature unoccupiedHeatingSetpoint = 20; + attribute access(write: manage) optional temperature minHeatSetpointLimit = 21; + attribute access(write: manage) optional temperature maxHeatSetpointLimit = 22; + attribute access(write: manage) optional temperature minCoolSetpointLimit = 23; + attribute access(write: manage) optional temperature maxCoolSetpointLimit = 24; attribute access(write: manage) optional int8s minSetpointDeadBand = 25; - attribute access(write: manage) optional bitmap8 remoteSensing = 26; - attribute access(write: manage) ThermostatControlSequence controlSequenceOfOperation = 27; - attribute access(write: manage) enum8 systemMode = 28; - readonly attribute optional enum8 thermostatRunningMode = 30; - readonly attribute optional enum8 startOfWeek = 32; + attribute access(write: manage) optional RemoteSensingBitmap remoteSensing = 26; + attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; + attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; + readonly attribute optional AlarmCodeBitmap alarmMask = 29; + readonly attribute optional ThermostatRunningModeEnum thermostatRunningMode = 30; + readonly attribute optional StartOfWeekEnum startOfWeek = 32; readonly attribute optional int8u numberOfWeeklyTransitions = 33; readonly attribute optional int8u numberOfDailyTransitions = 34; - attribute access(write: manage) optional enum8 temperatureSetpointHold = 35; + attribute access(write: manage) optional TemperatureSetpointHoldEnum temperatureSetpointHold = 35; attribute access(write: manage) optional nullable int16u temperatureSetpointHoldDuration = 36; - attribute access(write: manage) optional bitmap8 thermostatProgrammingOperationMode = 37; - readonly attribute optional bitmap16 thermostatRunningState = 41; - readonly attribute optional enum8 setpointChangeSource = 48; + attribute access(write: manage) optional ProgrammingOperationModeBitmap thermostatProgrammingOperationMode = 37; + readonly attribute optional RelayStateBitmap thermostatRunningState = 41; + readonly attribute optional SetpointChangeSourceEnum setpointChangeSource = 48; readonly attribute optional nullable int16s setpointChangeAmount = 49; readonly attribute optional epoch_s setpointChangeSourceTimestamp = 50; attribute access(write: manage) optional nullable int8u occupiedSetback = 52; @@ -4449,14 +4620,28 @@ client cluster Thermostat = 513 { readonly attribute optional nullable int8u unoccupiedSetbackMin = 56; readonly attribute optional nullable int8u unoccupiedSetbackMax = 57; attribute access(write: manage) optional int8u emergencyHeatDelta = 58; - attribute access(write: manage) optional enum8 ACType = 64; + attribute access(write: manage) optional ACTypeEnum ACType = 64; attribute access(write: manage) optional int16u ACCapacity = 65; - attribute access(write: manage) optional enum8 ACRefrigerantType = 66; - attribute access(write: manage) optional enum8 ACCompressorType = 67; - attribute access(write: manage) optional bitmap32 ACErrorCode = 68; - attribute access(write: manage) optional enum8 ACLouverPosition = 69; - readonly attribute optional nullable int16s ACCoilTemperature = 70; - attribute access(write: manage) optional enum8 ACCapacityformat = 71; + attribute access(write: manage) optional ACRefrigerantTypeEnum ACRefrigerantType = 66; + attribute access(write: manage) optional ACCompressorTypeEnum ACCompressorType = 67; + attribute access(write: manage) optional ACErrorCodeBitmap ACErrorCode = 68; + attribute access(write: manage) optional ACLouverPositionEnum ACLouverPosition = 69; + readonly attribute optional nullable temperature ACCoilTemperature = 70; + attribute access(write: manage) optional ACCapacityFormatEnum ACCapacityFormat = 71; + readonly attribute optional PresetTypeStruct presetTypes[] = 72; + readonly attribute optional ScheduleTypeStruct scheduleTypes[] = 73; + readonly attribute optional int8u numberOfPresets = 74; + readonly attribute optional int8u numberOfSchedules = 75; + readonly attribute optional int8u numberOfScheduleTransitions = 76; + readonly attribute optional nullable int8u numberOfScheduleTransitionPerDay = 77; + readonly attribute optional nullable octet_string<16> activePresetHandle = 78; + readonly attribute optional nullable octet_string<16> activeScheduleHandle = 79; + attribute access(write: manage) optional PresetStruct presets[] = 80; + attribute access(write: manage) optional ScheduleStruct schedules[] = 81; + readonly attribute optional boolean presetsSchedulesEditable = 82; + readonly attribute optional TemperatureSetpointHoldPolicyBitmap temperatureSetpointHoldPolicy = 83; + readonly attribute optional nullable epoch_s setpointHoldExpiryTimestamp = 84; + readonly attribute optional nullable QueuedPresetStruct queuedPreset = 85; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; readonly attribute event_id eventList[] = 65530; @@ -4465,50 +4650,157 @@ client cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustMode mode = 0; + SetpointAdjustModeEnum mode = 0; int8s amount = 1; } response struct GetWeeklyScheduleResponse = 0 { int8u numberOfTransitionsForSequence = 0; - DayOfWeek dayOfWeekForSequence = 1; - ModeForSequence modeForSequence = 2; - ThermostatScheduleTransition transitions[] = 3; + DayOfWeekBitmap dayOfWeekforSequence = 1; + ModeForSequenceBitmap modeForSequence = 2; + ThermostatScheduleTransitionStruct transitions[] = 3; } request struct SetWeeklyScheduleRequest { int8u numberOfTransitionsForSequence = 0; - DayOfWeek dayOfWeekForSequence = 1; - ModeForSequence modeForSequence = 2; - ThermostatScheduleTransition transitions[] = 3; + DayOfWeekBitmap dayOfWeekforSequence = 1; + ModeForSequenceBitmap modeForSequence = 2; + ThermostatScheduleTransitionStruct transitions[] = 3; + } + + response struct GetRelayStatusLogResponse = 1 { + int16u timeOfDay = 0; + RelayStateBitmap relayStatus = 1; + nullable temperature localTemperature = 2; + nullable int8u humidityInPercentage = 3; + temperature setPoint = 4; + int16u unreadEntries = 5; } request struct GetWeeklyScheduleRequest { - DayOfWeek daysToReturn = 0; - ModeForSequence modeToReturn = 1; + DayOfWeekBitmap daysToReturn = 0; + ModeForSequenceBitmap modeToReturn = 1; + } + + request struct SetActiveScheduleRequestRequest { + octet_string<16> scheduleHandle = 0; + } + + request struct SetActivePresetRequestRequest { + octet_string<16> presetHandle = 0; + optional int16u delayMinutes = 1; + } + + request struct StartPresetsSchedulesEditRequestRequest { + int16u timeoutSeconds = 0; + } + + request struct SetTemperatureSetpointHoldPolicyRequest { + TemperatureSetpointHoldPolicyBitmap temperatureSetpointHoldPolicy = 0; } - /** Command description for SetpointRaiseLower */ + /** Upon receipt, the attributes for the indicated setpoint(s) SHALL have the amount specified in the Amount field added to them. If the resulting value is outside the limits imposed by */ command SetpointRaiseLower(SetpointRaiseLowerRequest): DefaultSuccess = 0; - /** Command description for SetWeeklySchedule */ + /** Upon receipt, the weekly schedule for updating setpoints SHALL be stored in the thermostat and SHOULD begin at the time of receipt. A status code SHALL be sent in response. */ command access(invoke: manage) SetWeeklySchedule(SetWeeklyScheduleRequest): DefaultSuccess = 1; - /** Command description for GetWeeklySchedule */ + /** Upon receipt, the unit SHOULD send in return the Get Weekly Schedule Response command. The Days to Return and Mode to Return fields are defined as bitmask for the flexibility to support multiple days and multiple modes within one command. If thermostat cannot handle incoming command with multiple days and/or multiple modes within one command, it SHALL send default response of INVALID_COMMAND in return. */ command GetWeeklySchedule(GetWeeklyScheduleRequest): GetWeeklyScheduleResponse = 2; - /** The Clear Weekly Schedule command is used to clear the weekly schedule. */ + /** This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. */ command access(invoke: manage) ClearWeeklySchedule(): DefaultSuccess = 3; + /** This command is used to query the thermostat internal relay status log. This command has no payload. */ + command GetRelayStatusLog(): GetRelayStatusLogResponse = 4; + /** Upon receipt, if the */ + command SetActiveScheduleRequest(SetActiveScheduleRequestRequest): DefaultSuccess = 5; + /** Upon receipt, this SHALL set the thermostat */ + command SetActivePresetRequest(SetActivePresetRequestRequest): DefaultSuccess = 6; + /** Upon receipt, this SHALL attempt to enable editing of the */ + command access(invoke: manage) StartPresetsSchedulesEditRequest(StartPresetsSchedulesEditRequestRequest): DefaultSuccess = 7; + /** Upon receipt, this SHALL attempt to cancel any active editing of the */ + command access(invoke: manage) CancelPresetsSchedulesEditRequest(): DefaultSuccess = 8; + /** Upon receipt, this SHALL attempt to commit any pending changes to the */ + command access(invoke: manage) CommitPresetsSchedulesRequest(): DefaultSuccess = 9; + /** This command is sent to cancel a queued preset specified by */ + command access(invoke: manage) CancelSetActivePresetRequest(): DefaultSuccess = 10; + /** This command is sent to set the */ + command SetTemperatureSetpointHoldPolicy(SetTemperatureSetpointHoldPolicyRequest): DefaultSuccess = 11; } -/** An interface for configuring and controlling the functionality of a thermostat. */ +/** This cluster provides an interface to the functionality of a thermostat. */ server cluster Thermostat = 513 { revision 6; - enum SetpointAdjustMode : enum8 { + enum ACCapacityFormatEnum : enum8 { + kBTUh = 0; + } + + enum ACCompressorTypeEnum : enum8 { + kUnknown = 0; + kT1 = 1; + kT2 = 2; + kT3 = 3; + } + + enum ACLouverPositionEnum : enum8 { + kClosed = 1; + kOpen = 2; + kQuarter = 3; + kHalf = 4; + kThreeQuarters = 5; + } + + enum ACRefrigerantTypeEnum : enum8 { + kUnknown = 0; + kR22 = 1; + kR410a = 2; + kR407c = 3; + } + + enum ACTypeEnum : enum8 { + kUnknown = 0; + kCoolingFixed = 1; + kHeatPumpFixed = 2; + kCoolingInverter = 3; + kHeatPumpInverter = 4; + } + + enum PresetScenarioEnum : enum8 { + kUnspecified = 0; + kOccupied = 1; + kUnoccupied = 2; + kSleep = 3; + kWake = 4; + kVacation = 5; + kUserDefined = 6; + } + + enum SetpointAdjustModeEnum : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : enum8 { + enum SetpointChangeSourceEnum : enum8 { + kManual = 0; + kSchedule = 1; + kExternal = 2; + } + + enum StartOfWeekEnum : enum8 { + kSunday = 0; + kMonday = 1; + kTuesday = 2; + kWednesday = 3; + kThursday = 4; + kFriday = 5; + kSaturday = 6; + } + + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatControlSequenceEnum : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -4517,13 +4809,13 @@ server cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : enum8 { + enum ThermostatRunningModeEnum : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : enum8 { + enum ThermostatSystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -4535,7 +4827,21 @@ server cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : bitmap8 { + bitmap ACErrorCodeBitmap : bitmap32 { + kCompressorFail = 0x1; + kRoomSensorFail = 0x2; + kOutdoorSensorFail = 0x4; + kCoilSensorFail = 0x8; + kFanFail = 0x10; + } + + bitmap AlarmCodeBitmap : bitmap8 { + kInitialization = 0x1; + kHardware = 0x2; + kSelfCalibration = 0x4; + } + + bitmap DayOfWeekBitmap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -4550,55 +4856,146 @@ server cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kScheduleConfiguration = 0x8; + kZigbeeScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; + kMatterScheduleConfiguration = 0x80; + kPresets = 0x100; + kSetpoints = 0x200; + kQueuedPresetsSupported = 0x400; + } + + bitmap HVACSystemTypeBitmap : bitmap8 { + kHeatingType = 0x10; + kHeatingFuel = 0x20; } - bitmap ModeForSequence : bitmap8 { + bitmap ModeForSequenceBitmap : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } - struct ThermostatScheduleTransition { + bitmap PresetTypeFeaturesBitmap : bitmap16 { + kAutomatic = 0x1; + kSupportsNames = 0x2; + } + + bitmap ProgrammingOperationModeBitmap : bitmap8 { + kScheduleActive = 0x1; + kAutoRecovery = 0x2; + kEconomy = 0x4; + } + + bitmap RelayStateBitmap : bitmap16 { + kHeat = 0x1; + kCool = 0x2; + kFan = 0x4; + kHeatStage2 = 0x8; + kCoolStage2 = 0x10; + kFanStage2 = 0x20; + kFanStage3 = 0x40; + } + + bitmap RemoteSensingBitmap : bitmap8 { + kLocalTemperature = 0x1; + kOutdoorTemperature = 0x2; + kOccupancy = 0x4; + } + + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { + kSupportsPresets = 0x1; + kSupportsSetpoints = 0x2; + kSupportsNames = 0x4; + kSupportsOff = 0x8; + } + + bitmap TemperatureSetpointHoldPolicyBitmap : bitmap8 { + kHoldDurationElapsed = 0x1; + kHoldDurationElapsedOrPresetChanged = 0x2; + } + + struct ScheduleTransitionStruct { + DayOfWeekBitmap dayOfWeek = 0; + int16u transitionTime = 1; + optional octet_string<16> presetHandle = 2; + optional ThermostatSystemModeEnum systemMode = 3; + optional temperature coolingSetpoint = 4; + optional temperature heatingSetpoint = 5; + } + + struct ScheduleStruct { + nullable octet_string<16> scheduleHandle = 0; + ThermostatSystemModeEnum systemMode = 1; + optional char_string<64> name = 2; + optional octet_string<16> presetHandle = 3; + ScheduleTransitionStruct transitions[] = 4; + optional nullable boolean builtIn = 5; + } + + struct PresetStruct { + nullable octet_string<16> presetHandle = 0; + PresetScenarioEnum presetScenario = 1; + optional nullable char_string<64> name = 2; + optional temperature coolingSetpoint = 3; + optional temperature heatingSetpoint = 4; + nullable boolean builtIn = 5; + } + + struct PresetTypeStruct { + PresetScenarioEnum presetScenario = 0; + int8u numberOfPresets = 1; + PresetTypeFeaturesBitmap presetTypeFeatures = 2; + } + + struct QueuedPresetStruct { + nullable octet_string<16> presetHandle = 0; + nullable epoch_s transitionTimestamp = 1; + } + + struct ScheduleTypeStruct { + ThermostatSystemModeEnum systemMode = 0; + int8u numberOfSchedules = 1; + ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; + } + + struct ThermostatScheduleTransitionStruct { int16u transitionTime = 0; - nullable int16s heatSetpoint = 1; - nullable int16s coolSetpoint = 2; + temperature heatSetpoint = 1; + temperature coolSetpoint = 2; } - readonly attribute nullable int16s localTemperature = 0; - readonly attribute nullable int16s outdoorTemperature = 1; + readonly attribute nullable temperature localTemperature = 0; + readonly attribute nullable temperature outdoorTemperature = 1; readonly attribute bitmap8 occupancy = 2; - readonly attribute int16s absMinHeatSetpointLimit = 3; - readonly attribute int16s absMaxHeatSetpointLimit = 4; - readonly attribute int16s absMinCoolSetpointLimit = 5; - readonly attribute int16s absMaxCoolSetpointLimit = 6; + readonly attribute temperature absMinHeatSetpointLimit = 3; + readonly attribute temperature absMaxHeatSetpointLimit = 4; + readonly attribute temperature absMinCoolSetpointLimit = 5; + readonly attribute temperature absMaxCoolSetpointLimit = 6; readonly attribute int8u PICoolingDemand = 7; readonly attribute int8u PIHeatingDemand = 8; - attribute access(write: manage) bitmap8 HVACSystemTypeConfiguration = 9; attribute access(write: manage) int8s localTemperatureCalibration = 16; - attribute int16s occupiedCoolingSetpoint = 17; - attribute int16s occupiedHeatingSetpoint = 18; - attribute int16s unoccupiedCoolingSetpoint = 19; - attribute int16s unoccupiedHeatingSetpoint = 20; - attribute access(write: manage) int16s minHeatSetpointLimit = 21; - attribute access(write: manage) int16s maxHeatSetpointLimit = 22; - attribute access(write: manage) int16s minCoolSetpointLimit = 23; - attribute access(write: manage) int16s maxCoolSetpointLimit = 24; + attribute temperature occupiedCoolingSetpoint = 17; + attribute temperature occupiedHeatingSetpoint = 18; + attribute temperature unoccupiedCoolingSetpoint = 19; + attribute temperature unoccupiedHeatingSetpoint = 20; + attribute access(write: manage) temperature minHeatSetpointLimit = 21; + attribute access(write: manage) temperature maxHeatSetpointLimit = 22; + attribute access(write: manage) temperature minCoolSetpointLimit = 23; + attribute access(write: manage) temperature maxCoolSetpointLimit = 24; attribute access(write: manage) int8s minSetpointDeadBand = 25; - attribute access(write: manage) bitmap8 remoteSensing = 26; - attribute access(write: manage) ThermostatControlSequence controlSequenceOfOperation = 27; - attribute access(write: manage) enum8 systemMode = 28; - readonly attribute enum8 thermostatRunningMode = 30; - readonly attribute enum8 startOfWeek = 32; + attribute access(write: manage) RemoteSensingBitmap remoteSensing = 26; + attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; + attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; + readonly attribute ThermostatRunningModeEnum thermostatRunningMode = 30; + readonly attribute StartOfWeekEnum startOfWeek = 32; readonly attribute int8u numberOfWeeklyTransitions = 33; readonly attribute int8u numberOfDailyTransitions = 34; - attribute access(write: manage) enum8 temperatureSetpointHold = 35; + attribute access(write: manage) TemperatureSetpointHoldEnum temperatureSetpointHold = 35; attribute access(write: manage) nullable int16u temperatureSetpointHoldDuration = 36; - attribute access(write: manage) bitmap8 thermostatProgrammingOperationMode = 37; - readonly attribute bitmap16 thermostatRunningState = 41; - readonly attribute enum8 setpointChangeSource = 48; + attribute access(write: manage) ProgrammingOperationModeBitmap thermostatProgrammingOperationMode = 37; + readonly attribute RelayStateBitmap thermostatRunningState = 41; + readonly attribute SetpointChangeSourceEnum setpointChangeSource = 48; readonly attribute nullable int16s setpointChangeAmount = 49; readonly attribute epoch_s setpointChangeSourceTimestamp = 50; attribute access(write: manage) nullable int8u occupiedSetback = 52; @@ -4608,13 +5005,13 @@ server cluster Thermostat = 513 { readonly attribute nullable int8u unoccupiedSetbackMin = 56; readonly attribute nullable int8u unoccupiedSetbackMax = 57; attribute access(write: manage) int8u emergencyHeatDelta = 58; - attribute access(write: manage) enum8 ACType = 64; + attribute access(write: manage) ACTypeEnum ACType = 64; attribute access(write: manage) int16u ACCapacity = 65; - attribute access(write: manage) enum8 ACRefrigerantType = 66; - attribute access(write: manage) enum8 ACCompressorType = 67; - attribute access(write: manage) enum8 ACLouverPosition = 69; - readonly attribute nullable int16s ACCoilTemperature = 70; - attribute access(write: manage) enum8 ACCapacityformat = 71; + attribute access(write: manage) ACRefrigerantTypeEnum ACRefrigerantType = 66; + attribute access(write: manage) ACCompressorTypeEnum ACCompressorType = 67; + attribute access(write: manage) ACLouverPositionEnum ACLouverPosition = 69; + readonly attribute nullable temperature ACCoilTemperature = 70; + attribute access(write: manage) ACCapacityFormatEnum ACCapacityFormat = 71; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; readonly attribute event_id eventList[] = 65530; @@ -7323,7 +7720,6 @@ endpoint 0 { ram attribute absMaxCoolSetpointLimit default = 0x0C80; ram attribute PICoolingDemand; ram attribute PIHeatingDemand; - callback attribute HVACSystemTypeConfiguration default = 0; callback attribute localTemperatureCalibration default = 0; ram attribute occupiedCoolingSetpoint default = 0x0A28; ram attribute occupiedHeatingSetpoint default = 0x07D0; @@ -7361,7 +7757,7 @@ endpoint 0 { callback attribute ACCompressorType default = 0x00; callback attribute ACLouverPosition default = 0x00; callback attribute ACCoilTemperature; - callback attribute ACCapacityformat default = 0x00; + callback attribute ACCapacityFormat default = 0x00; ram attribute featureMap default = 0x000b; ram attribute clusterRevision default = 6; } diff --git a/examples/placeholder/linux/apps/app2/config.matter b/examples/placeholder/linux/apps/app2/config.matter index d7b0e66b4c88f9..24bdeebee4f062 100644 --- a/examples/placeholder/linux/apps/app2/config.matter +++ b/examples/placeholder/linux/apps/app2/config.matter @@ -4294,17 +4294,82 @@ server cluster PumpConfigurationAndControl = 512 { readonly attribute int16u clusterRevision = 65533; } -/** An interface for configuring and controlling the functionality of a thermostat. */ +/** This cluster provides an interface to the functionality of a thermostat. */ client cluster Thermostat = 513 { revision 6; - enum SetpointAdjustMode : enum8 { + enum ACCapacityFormatEnum : enum8 { + kBTUh = 0; + } + + enum ACCompressorTypeEnum : enum8 { + kUnknown = 0; + kT1 = 1; + kT2 = 2; + kT3 = 3; + } + + enum ACLouverPositionEnum : enum8 { + kClosed = 1; + kOpen = 2; + kQuarter = 3; + kHalf = 4; + kThreeQuarters = 5; + } + + enum ACRefrigerantTypeEnum : enum8 { + kUnknown = 0; + kR22 = 1; + kR410a = 2; + kR407c = 3; + } + + enum ACTypeEnum : enum8 { + kUnknown = 0; + kCoolingFixed = 1; + kHeatPumpFixed = 2; + kCoolingInverter = 3; + kHeatPumpInverter = 4; + } + + enum PresetScenarioEnum : enum8 { + kUnspecified = 0; + kOccupied = 1; + kUnoccupied = 2; + kSleep = 3; + kWake = 4; + kVacation = 5; + kUserDefined = 6; + } + + enum SetpointAdjustModeEnum : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : enum8 { + enum SetpointChangeSourceEnum : enum8 { + kManual = 0; + kSchedule = 1; + kExternal = 2; + } + + enum StartOfWeekEnum : enum8 { + kSunday = 0; + kMonday = 1; + kTuesday = 2; + kWednesday = 3; + kThursday = 4; + kFriday = 5; + kSaturday = 6; + } + + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatControlSequenceEnum : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -4313,13 +4378,13 @@ client cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : enum8 { + enum ThermostatRunningModeEnum : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : enum8 { + enum ThermostatSystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -4331,7 +4396,21 @@ client cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : bitmap8 { + bitmap ACErrorCodeBitmap : bitmap32 { + kCompressorFail = 0x1; + kRoomSensorFail = 0x2; + kOutdoorSensorFail = 0x4; + kCoilSensorFail = 0x8; + kFanFail = 0x10; + } + + bitmap AlarmCodeBitmap : bitmap8 { + kInitialization = 0x1; + kHardware = 0x2; + kSelfCalibration = 0x4; + } + + bitmap DayOfWeekBitmap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -4346,55 +4425,147 @@ client cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kScheduleConfiguration = 0x8; + kZigbeeScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; + kMatterScheduleConfiguration = 0x80; + kPresets = 0x100; + kSetpoints = 0x200; + kQueuedPresetsSupported = 0x400; } - bitmap ModeForSequence : bitmap8 { + bitmap HVACSystemTypeBitmap : bitmap8 { + kHeatingType = 0x10; + kHeatingFuel = 0x20; + } + + bitmap ModeForSequenceBitmap : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } - struct ThermostatScheduleTransition { + bitmap PresetTypeFeaturesBitmap : bitmap16 { + kAutomatic = 0x1; + kSupportsNames = 0x2; + } + + bitmap ProgrammingOperationModeBitmap : bitmap8 { + kScheduleActive = 0x1; + kAutoRecovery = 0x2; + kEconomy = 0x4; + } + + bitmap RelayStateBitmap : bitmap16 { + kHeat = 0x1; + kCool = 0x2; + kFan = 0x4; + kHeatStage2 = 0x8; + kCoolStage2 = 0x10; + kFanStage2 = 0x20; + kFanStage3 = 0x40; + } + + bitmap RemoteSensingBitmap : bitmap8 { + kLocalTemperature = 0x1; + kOutdoorTemperature = 0x2; + kOccupancy = 0x4; + } + + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { + kSupportsPresets = 0x1; + kSupportsSetpoints = 0x2; + kSupportsNames = 0x4; + kSupportsOff = 0x8; + } + + bitmap TemperatureSetpointHoldPolicyBitmap : bitmap8 { + kHoldDurationElapsed = 0x1; + kHoldDurationElapsedOrPresetChanged = 0x2; + } + + struct ScheduleTransitionStruct { + DayOfWeekBitmap dayOfWeek = 0; + int16u transitionTime = 1; + optional octet_string<16> presetHandle = 2; + optional ThermostatSystemModeEnum systemMode = 3; + optional temperature coolingSetpoint = 4; + optional temperature heatingSetpoint = 5; + } + + struct ScheduleStruct { + nullable octet_string<16> scheduleHandle = 0; + ThermostatSystemModeEnum systemMode = 1; + optional char_string<64> name = 2; + optional octet_string<16> presetHandle = 3; + ScheduleTransitionStruct transitions[] = 4; + optional nullable boolean builtIn = 5; + } + + struct PresetStruct { + nullable octet_string<16> presetHandle = 0; + PresetScenarioEnum presetScenario = 1; + optional nullable char_string<64> name = 2; + optional temperature coolingSetpoint = 3; + optional temperature heatingSetpoint = 4; + nullable boolean builtIn = 5; + } + + struct PresetTypeStruct { + PresetScenarioEnum presetScenario = 0; + int8u numberOfPresets = 1; + PresetTypeFeaturesBitmap presetTypeFeatures = 2; + } + + struct QueuedPresetStruct { + nullable octet_string<16> presetHandle = 0; + nullable epoch_s transitionTimestamp = 1; + } + + struct ScheduleTypeStruct { + ThermostatSystemModeEnum systemMode = 0; + int8u numberOfSchedules = 1; + ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; + } + + struct ThermostatScheduleTransitionStruct { int16u transitionTime = 0; - nullable int16s heatSetpoint = 1; - nullable int16s coolSetpoint = 2; + temperature heatSetpoint = 1; + temperature coolSetpoint = 2; } - readonly attribute nullable int16s localTemperature = 0; - readonly attribute optional nullable int16s outdoorTemperature = 1; + readonly attribute nullable temperature localTemperature = 0; + readonly attribute optional nullable temperature outdoorTemperature = 1; readonly attribute optional bitmap8 occupancy = 2; - readonly attribute optional int16s absMinHeatSetpointLimit = 3; - readonly attribute optional int16s absMaxHeatSetpointLimit = 4; - readonly attribute optional int16s absMinCoolSetpointLimit = 5; - readonly attribute optional int16s absMaxCoolSetpointLimit = 6; + readonly attribute optional temperature absMinHeatSetpointLimit = 3; + readonly attribute optional temperature absMaxHeatSetpointLimit = 4; + readonly attribute optional temperature absMinCoolSetpointLimit = 5; + readonly attribute optional temperature absMaxCoolSetpointLimit = 6; readonly attribute optional int8u PICoolingDemand = 7; readonly attribute optional int8u PIHeatingDemand = 8; - attribute access(write: manage) optional bitmap8 HVACSystemTypeConfiguration = 9; attribute access(write: manage) optional int8s localTemperatureCalibration = 16; - attribute optional int16s occupiedCoolingSetpoint = 17; - attribute optional int16s occupiedHeatingSetpoint = 18; - attribute optional int16s unoccupiedCoolingSetpoint = 19; - attribute optional int16s unoccupiedHeatingSetpoint = 20; - attribute access(write: manage) optional int16s minHeatSetpointLimit = 21; - attribute access(write: manage) optional int16s maxHeatSetpointLimit = 22; - attribute access(write: manage) optional int16s minCoolSetpointLimit = 23; - attribute access(write: manage) optional int16s maxCoolSetpointLimit = 24; + attribute optional temperature occupiedCoolingSetpoint = 17; + attribute optional temperature occupiedHeatingSetpoint = 18; + attribute optional temperature unoccupiedCoolingSetpoint = 19; + attribute optional temperature unoccupiedHeatingSetpoint = 20; + attribute access(write: manage) optional temperature minHeatSetpointLimit = 21; + attribute access(write: manage) optional temperature maxHeatSetpointLimit = 22; + attribute access(write: manage) optional temperature minCoolSetpointLimit = 23; + attribute access(write: manage) optional temperature maxCoolSetpointLimit = 24; attribute access(write: manage) optional int8s minSetpointDeadBand = 25; - attribute access(write: manage) optional bitmap8 remoteSensing = 26; - attribute access(write: manage) ThermostatControlSequence controlSequenceOfOperation = 27; - attribute access(write: manage) enum8 systemMode = 28; - readonly attribute optional enum8 thermostatRunningMode = 30; - readonly attribute optional enum8 startOfWeek = 32; + attribute access(write: manage) optional RemoteSensingBitmap remoteSensing = 26; + attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; + attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; + readonly attribute optional AlarmCodeBitmap alarmMask = 29; + readonly attribute optional ThermostatRunningModeEnum thermostatRunningMode = 30; + readonly attribute optional StartOfWeekEnum startOfWeek = 32; readonly attribute optional int8u numberOfWeeklyTransitions = 33; readonly attribute optional int8u numberOfDailyTransitions = 34; - attribute access(write: manage) optional enum8 temperatureSetpointHold = 35; + attribute access(write: manage) optional TemperatureSetpointHoldEnum temperatureSetpointHold = 35; attribute access(write: manage) optional nullable int16u temperatureSetpointHoldDuration = 36; - attribute access(write: manage) optional bitmap8 thermostatProgrammingOperationMode = 37; - readonly attribute optional bitmap16 thermostatRunningState = 41; - readonly attribute optional enum8 setpointChangeSource = 48; + attribute access(write: manage) optional ProgrammingOperationModeBitmap thermostatProgrammingOperationMode = 37; + readonly attribute optional RelayStateBitmap thermostatRunningState = 41; + readonly attribute optional SetpointChangeSourceEnum setpointChangeSource = 48; readonly attribute optional nullable int16s setpointChangeAmount = 49; readonly attribute optional epoch_s setpointChangeSourceTimestamp = 50; attribute access(write: manage) optional nullable int8u occupiedSetback = 52; @@ -4404,14 +4575,28 @@ client cluster Thermostat = 513 { readonly attribute optional nullable int8u unoccupiedSetbackMin = 56; readonly attribute optional nullable int8u unoccupiedSetbackMax = 57; attribute access(write: manage) optional int8u emergencyHeatDelta = 58; - attribute access(write: manage) optional enum8 ACType = 64; + attribute access(write: manage) optional ACTypeEnum ACType = 64; attribute access(write: manage) optional int16u ACCapacity = 65; - attribute access(write: manage) optional enum8 ACRefrigerantType = 66; - attribute access(write: manage) optional enum8 ACCompressorType = 67; - attribute access(write: manage) optional bitmap32 ACErrorCode = 68; - attribute access(write: manage) optional enum8 ACLouverPosition = 69; - readonly attribute optional nullable int16s ACCoilTemperature = 70; - attribute access(write: manage) optional enum8 ACCapacityformat = 71; + attribute access(write: manage) optional ACRefrigerantTypeEnum ACRefrigerantType = 66; + attribute access(write: manage) optional ACCompressorTypeEnum ACCompressorType = 67; + attribute access(write: manage) optional ACErrorCodeBitmap ACErrorCode = 68; + attribute access(write: manage) optional ACLouverPositionEnum ACLouverPosition = 69; + readonly attribute optional nullable temperature ACCoilTemperature = 70; + attribute access(write: manage) optional ACCapacityFormatEnum ACCapacityFormat = 71; + readonly attribute optional PresetTypeStruct presetTypes[] = 72; + readonly attribute optional ScheduleTypeStruct scheduleTypes[] = 73; + readonly attribute optional int8u numberOfPresets = 74; + readonly attribute optional int8u numberOfSchedules = 75; + readonly attribute optional int8u numberOfScheduleTransitions = 76; + readonly attribute optional nullable int8u numberOfScheduleTransitionPerDay = 77; + readonly attribute optional nullable octet_string<16> activePresetHandle = 78; + readonly attribute optional nullable octet_string<16> activeScheduleHandle = 79; + attribute access(write: manage) optional PresetStruct presets[] = 80; + attribute access(write: manage) optional ScheduleStruct schedules[] = 81; + readonly attribute optional boolean presetsSchedulesEditable = 82; + readonly attribute optional TemperatureSetpointHoldPolicyBitmap temperatureSetpointHoldPolicy = 83; + readonly attribute optional nullable epoch_s setpointHoldExpiryTimestamp = 84; + readonly attribute optional nullable QueuedPresetStruct queuedPreset = 85; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; readonly attribute event_id eventList[] = 65530; @@ -4420,50 +4605,157 @@ client cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustMode mode = 0; + SetpointAdjustModeEnum mode = 0; int8s amount = 1; } response struct GetWeeklyScheduleResponse = 0 { int8u numberOfTransitionsForSequence = 0; - DayOfWeek dayOfWeekForSequence = 1; - ModeForSequence modeForSequence = 2; - ThermostatScheduleTransition transitions[] = 3; + DayOfWeekBitmap dayOfWeekforSequence = 1; + ModeForSequenceBitmap modeForSequence = 2; + ThermostatScheduleTransitionStruct transitions[] = 3; } request struct SetWeeklyScheduleRequest { int8u numberOfTransitionsForSequence = 0; - DayOfWeek dayOfWeekForSequence = 1; - ModeForSequence modeForSequence = 2; - ThermostatScheduleTransition transitions[] = 3; + DayOfWeekBitmap dayOfWeekforSequence = 1; + ModeForSequenceBitmap modeForSequence = 2; + ThermostatScheduleTransitionStruct transitions[] = 3; + } + + response struct GetRelayStatusLogResponse = 1 { + int16u timeOfDay = 0; + RelayStateBitmap relayStatus = 1; + nullable temperature localTemperature = 2; + nullable int8u humidityInPercentage = 3; + temperature setPoint = 4; + int16u unreadEntries = 5; } request struct GetWeeklyScheduleRequest { - DayOfWeek daysToReturn = 0; - ModeForSequence modeToReturn = 1; + DayOfWeekBitmap daysToReturn = 0; + ModeForSequenceBitmap modeToReturn = 1; + } + + request struct SetActiveScheduleRequestRequest { + octet_string<16> scheduleHandle = 0; + } + + request struct SetActivePresetRequestRequest { + octet_string<16> presetHandle = 0; + optional int16u delayMinutes = 1; + } + + request struct StartPresetsSchedulesEditRequestRequest { + int16u timeoutSeconds = 0; + } + + request struct SetTemperatureSetpointHoldPolicyRequest { + TemperatureSetpointHoldPolicyBitmap temperatureSetpointHoldPolicy = 0; } - /** Command description for SetpointRaiseLower */ + /** Upon receipt, the attributes for the indicated setpoint(s) SHALL have the amount specified in the Amount field added to them. If the resulting value is outside the limits imposed by */ command SetpointRaiseLower(SetpointRaiseLowerRequest): DefaultSuccess = 0; - /** Command description for SetWeeklySchedule */ + /** Upon receipt, the weekly schedule for updating setpoints SHALL be stored in the thermostat and SHOULD begin at the time of receipt. A status code SHALL be sent in response. */ command access(invoke: manage) SetWeeklySchedule(SetWeeklyScheduleRequest): DefaultSuccess = 1; - /** Command description for GetWeeklySchedule */ + /** Upon receipt, the unit SHOULD send in return the Get Weekly Schedule Response command. The Days to Return and Mode to Return fields are defined as bitmask for the flexibility to support multiple days and multiple modes within one command. If thermostat cannot handle incoming command with multiple days and/or multiple modes within one command, it SHALL send default response of INVALID_COMMAND in return. */ command GetWeeklySchedule(GetWeeklyScheduleRequest): GetWeeklyScheduleResponse = 2; - /** The Clear Weekly Schedule command is used to clear the weekly schedule. */ + /** This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. */ command access(invoke: manage) ClearWeeklySchedule(): DefaultSuccess = 3; + /** This command is used to query the thermostat internal relay status log. This command has no payload. */ + command GetRelayStatusLog(): GetRelayStatusLogResponse = 4; + /** Upon receipt, if the */ + command SetActiveScheduleRequest(SetActiveScheduleRequestRequest): DefaultSuccess = 5; + /** Upon receipt, this SHALL set the thermostat */ + command SetActivePresetRequest(SetActivePresetRequestRequest): DefaultSuccess = 6; + /** Upon receipt, this SHALL attempt to enable editing of the */ + command access(invoke: manage) StartPresetsSchedulesEditRequest(StartPresetsSchedulesEditRequestRequest): DefaultSuccess = 7; + /** Upon receipt, this SHALL attempt to cancel any active editing of the */ + command access(invoke: manage) CancelPresetsSchedulesEditRequest(): DefaultSuccess = 8; + /** Upon receipt, this SHALL attempt to commit any pending changes to the */ + command access(invoke: manage) CommitPresetsSchedulesRequest(): DefaultSuccess = 9; + /** This command is sent to cancel a queued preset specified by */ + command access(invoke: manage) CancelSetActivePresetRequest(): DefaultSuccess = 10; + /** This command is sent to set the */ + command SetTemperatureSetpointHoldPolicy(SetTemperatureSetpointHoldPolicyRequest): DefaultSuccess = 11; } -/** An interface for configuring and controlling the functionality of a thermostat. */ +/** This cluster provides an interface to the functionality of a thermostat. */ server cluster Thermostat = 513 { revision 6; - enum SetpointAdjustMode : enum8 { + enum ACCapacityFormatEnum : enum8 { + kBTUh = 0; + } + + enum ACCompressorTypeEnum : enum8 { + kUnknown = 0; + kT1 = 1; + kT2 = 2; + kT3 = 3; + } + + enum ACLouverPositionEnum : enum8 { + kClosed = 1; + kOpen = 2; + kQuarter = 3; + kHalf = 4; + kThreeQuarters = 5; + } + + enum ACRefrigerantTypeEnum : enum8 { + kUnknown = 0; + kR22 = 1; + kR410a = 2; + kR407c = 3; + } + + enum ACTypeEnum : enum8 { + kUnknown = 0; + kCoolingFixed = 1; + kHeatPumpFixed = 2; + kCoolingInverter = 3; + kHeatPumpInverter = 4; + } + + enum PresetScenarioEnum : enum8 { + kUnspecified = 0; + kOccupied = 1; + kUnoccupied = 2; + kSleep = 3; + kWake = 4; + kVacation = 5; + kUserDefined = 6; + } + + enum SetpointAdjustModeEnum : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : enum8 { + enum SetpointChangeSourceEnum : enum8 { + kManual = 0; + kSchedule = 1; + kExternal = 2; + } + + enum StartOfWeekEnum : enum8 { + kSunday = 0; + kMonday = 1; + kTuesday = 2; + kWednesday = 3; + kThursday = 4; + kFriday = 5; + kSaturday = 6; + } + + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatControlSequenceEnum : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -4472,13 +4764,13 @@ server cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : enum8 { + enum ThermostatRunningModeEnum : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : enum8 { + enum ThermostatSystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -4490,7 +4782,21 @@ server cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : bitmap8 { + bitmap ACErrorCodeBitmap : bitmap32 { + kCompressorFail = 0x1; + kRoomSensorFail = 0x2; + kOutdoorSensorFail = 0x4; + kCoilSensorFail = 0x8; + kFanFail = 0x10; + } + + bitmap AlarmCodeBitmap : bitmap8 { + kInitialization = 0x1; + kHardware = 0x2; + kSelfCalibration = 0x4; + } + + bitmap DayOfWeekBitmap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -4505,55 +4811,146 @@ server cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kScheduleConfiguration = 0x8; + kZigbeeScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; + kMatterScheduleConfiguration = 0x80; + kPresets = 0x100; + kSetpoints = 0x200; + kQueuedPresetsSupported = 0x400; + } + + bitmap HVACSystemTypeBitmap : bitmap8 { + kHeatingType = 0x10; + kHeatingFuel = 0x20; } - bitmap ModeForSequence : bitmap8 { + bitmap ModeForSequenceBitmap : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } - struct ThermostatScheduleTransition { + bitmap PresetTypeFeaturesBitmap : bitmap16 { + kAutomatic = 0x1; + kSupportsNames = 0x2; + } + + bitmap ProgrammingOperationModeBitmap : bitmap8 { + kScheduleActive = 0x1; + kAutoRecovery = 0x2; + kEconomy = 0x4; + } + + bitmap RelayStateBitmap : bitmap16 { + kHeat = 0x1; + kCool = 0x2; + kFan = 0x4; + kHeatStage2 = 0x8; + kCoolStage2 = 0x10; + kFanStage2 = 0x20; + kFanStage3 = 0x40; + } + + bitmap RemoteSensingBitmap : bitmap8 { + kLocalTemperature = 0x1; + kOutdoorTemperature = 0x2; + kOccupancy = 0x4; + } + + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { + kSupportsPresets = 0x1; + kSupportsSetpoints = 0x2; + kSupportsNames = 0x4; + kSupportsOff = 0x8; + } + + bitmap TemperatureSetpointHoldPolicyBitmap : bitmap8 { + kHoldDurationElapsed = 0x1; + kHoldDurationElapsedOrPresetChanged = 0x2; + } + + struct ScheduleTransitionStruct { + DayOfWeekBitmap dayOfWeek = 0; + int16u transitionTime = 1; + optional octet_string<16> presetHandle = 2; + optional ThermostatSystemModeEnum systemMode = 3; + optional temperature coolingSetpoint = 4; + optional temperature heatingSetpoint = 5; + } + + struct ScheduleStruct { + nullable octet_string<16> scheduleHandle = 0; + ThermostatSystemModeEnum systemMode = 1; + optional char_string<64> name = 2; + optional octet_string<16> presetHandle = 3; + ScheduleTransitionStruct transitions[] = 4; + optional nullable boolean builtIn = 5; + } + + struct PresetStruct { + nullable octet_string<16> presetHandle = 0; + PresetScenarioEnum presetScenario = 1; + optional nullable char_string<64> name = 2; + optional temperature coolingSetpoint = 3; + optional temperature heatingSetpoint = 4; + nullable boolean builtIn = 5; + } + + struct PresetTypeStruct { + PresetScenarioEnum presetScenario = 0; + int8u numberOfPresets = 1; + PresetTypeFeaturesBitmap presetTypeFeatures = 2; + } + + struct QueuedPresetStruct { + nullable octet_string<16> presetHandle = 0; + nullable epoch_s transitionTimestamp = 1; + } + + struct ScheduleTypeStruct { + ThermostatSystemModeEnum systemMode = 0; + int8u numberOfSchedules = 1; + ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; + } + + struct ThermostatScheduleTransitionStruct { int16u transitionTime = 0; - nullable int16s heatSetpoint = 1; - nullable int16s coolSetpoint = 2; + temperature heatSetpoint = 1; + temperature coolSetpoint = 2; } - readonly attribute nullable int16s localTemperature = 0; - readonly attribute nullable int16s outdoorTemperature = 1; + readonly attribute nullable temperature localTemperature = 0; + readonly attribute nullable temperature outdoorTemperature = 1; readonly attribute bitmap8 occupancy = 2; - readonly attribute int16s absMinHeatSetpointLimit = 3; - readonly attribute int16s absMaxHeatSetpointLimit = 4; - readonly attribute int16s absMinCoolSetpointLimit = 5; - readonly attribute int16s absMaxCoolSetpointLimit = 6; + readonly attribute temperature absMinHeatSetpointLimit = 3; + readonly attribute temperature absMaxHeatSetpointLimit = 4; + readonly attribute temperature absMinCoolSetpointLimit = 5; + readonly attribute temperature absMaxCoolSetpointLimit = 6; readonly attribute int8u PICoolingDemand = 7; readonly attribute int8u PIHeatingDemand = 8; - attribute access(write: manage) bitmap8 HVACSystemTypeConfiguration = 9; attribute access(write: manage) int8s localTemperatureCalibration = 16; - attribute int16s occupiedCoolingSetpoint = 17; - attribute int16s occupiedHeatingSetpoint = 18; - attribute int16s unoccupiedCoolingSetpoint = 19; - attribute int16s unoccupiedHeatingSetpoint = 20; - attribute access(write: manage) int16s minHeatSetpointLimit = 21; - attribute access(write: manage) int16s maxHeatSetpointLimit = 22; - attribute access(write: manage) int16s minCoolSetpointLimit = 23; - attribute access(write: manage) int16s maxCoolSetpointLimit = 24; + attribute temperature occupiedCoolingSetpoint = 17; + attribute temperature occupiedHeatingSetpoint = 18; + attribute temperature unoccupiedCoolingSetpoint = 19; + attribute temperature unoccupiedHeatingSetpoint = 20; + attribute access(write: manage) temperature minHeatSetpointLimit = 21; + attribute access(write: manage) temperature maxHeatSetpointLimit = 22; + attribute access(write: manage) temperature minCoolSetpointLimit = 23; + attribute access(write: manage) temperature maxCoolSetpointLimit = 24; attribute access(write: manage) int8s minSetpointDeadBand = 25; - attribute access(write: manage) bitmap8 remoteSensing = 26; - attribute access(write: manage) ThermostatControlSequence controlSequenceOfOperation = 27; - attribute access(write: manage) enum8 systemMode = 28; - readonly attribute enum8 thermostatRunningMode = 30; - readonly attribute enum8 startOfWeek = 32; + attribute access(write: manage) RemoteSensingBitmap remoteSensing = 26; + attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; + attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; + readonly attribute ThermostatRunningModeEnum thermostatRunningMode = 30; + readonly attribute StartOfWeekEnum startOfWeek = 32; readonly attribute int8u numberOfWeeklyTransitions = 33; readonly attribute int8u numberOfDailyTransitions = 34; - attribute access(write: manage) enum8 temperatureSetpointHold = 35; + attribute access(write: manage) TemperatureSetpointHoldEnum temperatureSetpointHold = 35; attribute access(write: manage) nullable int16u temperatureSetpointHoldDuration = 36; - attribute access(write: manage) bitmap8 thermostatProgrammingOperationMode = 37; - readonly attribute bitmap16 thermostatRunningState = 41; - readonly attribute enum8 setpointChangeSource = 48; + attribute access(write: manage) ProgrammingOperationModeBitmap thermostatProgrammingOperationMode = 37; + readonly attribute RelayStateBitmap thermostatRunningState = 41; + readonly attribute SetpointChangeSourceEnum setpointChangeSource = 48; readonly attribute nullable int16s setpointChangeAmount = 49; readonly attribute epoch_s setpointChangeSourceTimestamp = 50; attribute access(write: manage) nullable int8u occupiedSetback = 52; @@ -4563,13 +4960,13 @@ server cluster Thermostat = 513 { readonly attribute nullable int8u unoccupiedSetbackMin = 56; readonly attribute nullable int8u unoccupiedSetbackMax = 57; attribute access(write: manage) int8u emergencyHeatDelta = 58; - attribute access(write: manage) enum8 ACType = 64; + attribute access(write: manage) ACTypeEnum ACType = 64; attribute access(write: manage) int16u ACCapacity = 65; - attribute access(write: manage) enum8 ACRefrigerantType = 66; - attribute access(write: manage) enum8 ACCompressorType = 67; - attribute access(write: manage) enum8 ACLouverPosition = 69; - readonly attribute nullable int16s ACCoilTemperature = 70; - attribute access(write: manage) enum8 ACCapacityformat = 71; + attribute access(write: manage) ACRefrigerantTypeEnum ACRefrigerantType = 66; + attribute access(write: manage) ACCompressorTypeEnum ACCompressorType = 67; + attribute access(write: manage) ACLouverPositionEnum ACLouverPosition = 69; + readonly attribute nullable temperature ACCoilTemperature = 70; + attribute access(write: manage) ACCapacityFormatEnum ACCapacityFormat = 71; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; readonly attribute event_id eventList[] = 65530; @@ -7285,7 +7682,6 @@ endpoint 0 { ram attribute absMaxCoolSetpointLimit default = 0x0C80; ram attribute PICoolingDemand; ram attribute PIHeatingDemand; - callback attribute HVACSystemTypeConfiguration default = 0; callback attribute localTemperatureCalibration default = 0; ram attribute occupiedCoolingSetpoint default = 0x0A28; ram attribute occupiedHeatingSetpoint default = 0x07D0; @@ -7323,7 +7719,7 @@ endpoint 0 { callback attribute ACCompressorType default = 0x00; callback attribute ACLouverPosition default = 0x00; callback attribute ACCoilTemperature; - callback attribute ACCapacityformat default = 0x00; + callback attribute ACCapacityFormat default = 0x00; ram attribute featureMap default = 0x000b; ram attribute clusterRevision default = 6; } diff --git a/examples/thermostat/nxp/zap/thermostat_matter_thread.matter b/examples/thermostat/nxp/zap/thermostat_matter_thread.matter index e41f8fc45f88c9..e7a51780b84d4f 100644 --- a/examples/thermostat/nxp/zap/thermostat_matter_thread.matter +++ b/examples/thermostat/nxp/zap/thermostat_matter_thread.matter @@ -1768,17 +1768,82 @@ server cluster UserLabel = 65 { readonly attribute int16u clusterRevision = 65533; } -/** An interface for configuring and controlling the functionality of a thermostat. */ +/** This cluster provides an interface to the functionality of a thermostat. */ server cluster Thermostat = 513 { revision 6; - enum SetpointAdjustMode : enum8 { + enum ACCapacityFormatEnum : enum8 { + kBTUh = 0; + } + + enum ACCompressorTypeEnum : enum8 { + kUnknown = 0; + kT1 = 1; + kT2 = 2; + kT3 = 3; + } + + enum ACLouverPositionEnum : enum8 { + kClosed = 1; + kOpen = 2; + kQuarter = 3; + kHalf = 4; + kThreeQuarters = 5; + } + + enum ACRefrigerantTypeEnum : enum8 { + kUnknown = 0; + kR22 = 1; + kR410a = 2; + kR407c = 3; + } + + enum ACTypeEnum : enum8 { + kUnknown = 0; + kCoolingFixed = 1; + kHeatPumpFixed = 2; + kCoolingInverter = 3; + kHeatPumpInverter = 4; + } + + enum PresetScenarioEnum : enum8 { + kUnspecified = 0; + kOccupied = 1; + kUnoccupied = 2; + kSleep = 3; + kWake = 4; + kVacation = 5; + kUserDefined = 6; + } + + enum SetpointAdjustModeEnum : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : enum8 { + enum SetpointChangeSourceEnum : enum8 { + kManual = 0; + kSchedule = 1; + kExternal = 2; + } + + enum StartOfWeekEnum : enum8 { + kSunday = 0; + kMonday = 1; + kTuesday = 2; + kWednesday = 3; + kThursday = 4; + kFriday = 5; + kSaturday = 6; + } + + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatControlSequenceEnum : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -1787,13 +1852,13 @@ server cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : enum8 { + enum ThermostatRunningModeEnum : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : enum8 { + enum ThermostatSystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -1805,7 +1870,21 @@ server cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : bitmap8 { + bitmap ACErrorCodeBitmap : bitmap32 { + kCompressorFail = 0x1; + kRoomSensorFail = 0x2; + kOutdoorSensorFail = 0x4; + kCoilSensorFail = 0x8; + kFanFail = 0x10; + } + + bitmap AlarmCodeBitmap : bitmap8 { + kInitialization = 0x1; + kHardware = 0x2; + kSelfCalibration = 0x4; + } + + bitmap DayOfWeekBitmap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -1820,38 +1899,129 @@ server cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kScheduleConfiguration = 0x8; + kZigbeeScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; + kMatterScheduleConfiguration = 0x80; + kPresets = 0x100; + kSetpoints = 0x200; + kQueuedPresetsSupported = 0x400; } - bitmap ModeForSequence : bitmap8 { + bitmap HVACSystemTypeBitmap : bitmap8 { + kHeatingType = 0x10; + kHeatingFuel = 0x20; + } + + bitmap ModeForSequenceBitmap : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } - struct ThermostatScheduleTransition { + bitmap PresetTypeFeaturesBitmap : bitmap16 { + kAutomatic = 0x1; + kSupportsNames = 0x2; + } + + bitmap ProgrammingOperationModeBitmap : bitmap8 { + kScheduleActive = 0x1; + kAutoRecovery = 0x2; + kEconomy = 0x4; + } + + bitmap RelayStateBitmap : bitmap16 { + kHeat = 0x1; + kCool = 0x2; + kFan = 0x4; + kHeatStage2 = 0x8; + kCoolStage2 = 0x10; + kFanStage2 = 0x20; + kFanStage3 = 0x40; + } + + bitmap RemoteSensingBitmap : bitmap8 { + kLocalTemperature = 0x1; + kOutdoorTemperature = 0x2; + kOccupancy = 0x4; + } + + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { + kSupportsPresets = 0x1; + kSupportsSetpoints = 0x2; + kSupportsNames = 0x4; + kSupportsOff = 0x8; + } + + bitmap TemperatureSetpointHoldPolicyBitmap : bitmap8 { + kHoldDurationElapsed = 0x1; + kHoldDurationElapsedOrPresetChanged = 0x2; + } + + struct ScheduleTransitionStruct { + DayOfWeekBitmap dayOfWeek = 0; + int16u transitionTime = 1; + optional octet_string<16> presetHandle = 2; + optional ThermostatSystemModeEnum systemMode = 3; + optional temperature coolingSetpoint = 4; + optional temperature heatingSetpoint = 5; + } + + struct ScheduleStruct { + nullable octet_string<16> scheduleHandle = 0; + ThermostatSystemModeEnum systemMode = 1; + optional char_string<64> name = 2; + optional octet_string<16> presetHandle = 3; + ScheduleTransitionStruct transitions[] = 4; + optional nullable boolean builtIn = 5; + } + + struct PresetStruct { + nullable octet_string<16> presetHandle = 0; + PresetScenarioEnum presetScenario = 1; + optional nullable char_string<64> name = 2; + optional temperature coolingSetpoint = 3; + optional temperature heatingSetpoint = 4; + nullable boolean builtIn = 5; + } + + struct PresetTypeStruct { + PresetScenarioEnum presetScenario = 0; + int8u numberOfPresets = 1; + PresetTypeFeaturesBitmap presetTypeFeatures = 2; + } + + struct QueuedPresetStruct { + nullable octet_string<16> presetHandle = 0; + nullable epoch_s transitionTimestamp = 1; + } + + struct ScheduleTypeStruct { + ThermostatSystemModeEnum systemMode = 0; + int8u numberOfSchedules = 1; + ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; + } + + struct ThermostatScheduleTransitionStruct { int16u transitionTime = 0; - nullable int16s heatSetpoint = 1; - nullable int16s coolSetpoint = 2; - } - - readonly attribute nullable int16s localTemperature = 0; - readonly attribute int16s absMinHeatSetpointLimit = 3; - readonly attribute int16s absMaxHeatSetpointLimit = 4; - readonly attribute int16s absMinCoolSetpointLimit = 5; - readonly attribute int16s absMaxCoolSetpointLimit = 6; - attribute access(write: manage) bitmap8 HVACSystemTypeConfiguration = 9; - attribute int16s occupiedCoolingSetpoint = 17; - attribute int16s occupiedHeatingSetpoint = 18; - attribute access(write: manage) int16s minHeatSetpointLimit = 21; - attribute access(write: manage) int16s maxHeatSetpointLimit = 22; - attribute access(write: manage) int16s minCoolSetpointLimit = 23; - attribute access(write: manage) int16s maxCoolSetpointLimit = 24; + temperature heatSetpoint = 1; + temperature coolSetpoint = 2; + } + + readonly attribute nullable temperature localTemperature = 0; + readonly attribute temperature absMinHeatSetpointLimit = 3; + readonly attribute temperature absMaxHeatSetpointLimit = 4; + readonly attribute temperature absMinCoolSetpointLimit = 5; + readonly attribute temperature absMaxCoolSetpointLimit = 6; + attribute temperature occupiedCoolingSetpoint = 17; + attribute temperature occupiedHeatingSetpoint = 18; + attribute access(write: manage) temperature minHeatSetpointLimit = 21; + attribute access(write: manage) temperature maxHeatSetpointLimit = 22; + attribute access(write: manage) temperature minCoolSetpointLimit = 23; + attribute access(write: manage) temperature maxCoolSetpointLimit = 24; attribute access(write: manage) int8s minSetpointDeadBand = 25; - attribute access(write: manage) ThermostatControlSequence controlSequenceOfOperation = 27; - attribute access(write: manage) enum8 systemMode = 28; + attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; + attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; readonly attribute event_id eventList[] = 65530; @@ -1860,7 +2030,7 @@ server cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustMode mode = 0; + SetpointAdjustModeEnum mode = 0; int8s amount = 1; } @@ -2257,7 +2427,6 @@ endpoint 1 { ram attribute absMaxHeatSetpointLimit default = 3000; ram attribute absMinCoolSetpointLimit default = 1600; ram attribute absMaxCoolSetpointLimit default = 3200; - ram attribute HVACSystemTypeConfiguration; persist attribute occupiedCoolingSetpoint default = 0x0A28; persist attribute occupiedHeatingSetpoint default = 0x07D0; ram attribute minHeatSetpointLimit default = 700; diff --git a/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter b/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter index 95fd9225885c95..6bbdd849c00ebf 100644 --- a/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter +++ b/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter @@ -1677,17 +1677,82 @@ server cluster UserLabel = 65 { readonly attribute int16u clusterRevision = 65533; } -/** An interface for configuring and controlling the functionality of a thermostat. */ +/** This cluster provides an interface to the functionality of a thermostat. */ server cluster Thermostat = 513 { revision 6; - enum SetpointAdjustMode : enum8 { + enum ACCapacityFormatEnum : enum8 { + kBTUh = 0; + } + + enum ACCompressorTypeEnum : enum8 { + kUnknown = 0; + kT1 = 1; + kT2 = 2; + kT3 = 3; + } + + enum ACLouverPositionEnum : enum8 { + kClosed = 1; + kOpen = 2; + kQuarter = 3; + kHalf = 4; + kThreeQuarters = 5; + } + + enum ACRefrigerantTypeEnum : enum8 { + kUnknown = 0; + kR22 = 1; + kR410a = 2; + kR407c = 3; + } + + enum ACTypeEnum : enum8 { + kUnknown = 0; + kCoolingFixed = 1; + kHeatPumpFixed = 2; + kCoolingInverter = 3; + kHeatPumpInverter = 4; + } + + enum PresetScenarioEnum : enum8 { + kUnspecified = 0; + kOccupied = 1; + kUnoccupied = 2; + kSleep = 3; + kWake = 4; + kVacation = 5; + kUserDefined = 6; + } + + enum SetpointAdjustModeEnum : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : enum8 { + enum SetpointChangeSourceEnum : enum8 { + kManual = 0; + kSchedule = 1; + kExternal = 2; + } + + enum StartOfWeekEnum : enum8 { + kSunday = 0; + kMonday = 1; + kTuesday = 2; + kWednesday = 3; + kThursday = 4; + kFriday = 5; + kSaturday = 6; + } + + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatControlSequenceEnum : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -1696,13 +1761,13 @@ server cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : enum8 { + enum ThermostatRunningModeEnum : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : enum8 { + enum ThermostatSystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -1714,7 +1779,21 @@ server cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : bitmap8 { + bitmap ACErrorCodeBitmap : bitmap32 { + kCompressorFail = 0x1; + kRoomSensorFail = 0x2; + kOutdoorSensorFail = 0x4; + kCoilSensorFail = 0x8; + kFanFail = 0x10; + } + + bitmap AlarmCodeBitmap : bitmap8 { + kInitialization = 0x1; + kHardware = 0x2; + kSelfCalibration = 0x4; + } + + bitmap DayOfWeekBitmap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -1729,38 +1808,129 @@ server cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kScheduleConfiguration = 0x8; + kZigbeeScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; + kMatterScheduleConfiguration = 0x80; + kPresets = 0x100; + kSetpoints = 0x200; + kQueuedPresetsSupported = 0x400; } - bitmap ModeForSequence : bitmap8 { + bitmap HVACSystemTypeBitmap : bitmap8 { + kHeatingType = 0x10; + kHeatingFuel = 0x20; + } + + bitmap ModeForSequenceBitmap : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } - struct ThermostatScheduleTransition { + bitmap PresetTypeFeaturesBitmap : bitmap16 { + kAutomatic = 0x1; + kSupportsNames = 0x2; + } + + bitmap ProgrammingOperationModeBitmap : bitmap8 { + kScheduleActive = 0x1; + kAutoRecovery = 0x2; + kEconomy = 0x4; + } + + bitmap RelayStateBitmap : bitmap16 { + kHeat = 0x1; + kCool = 0x2; + kFan = 0x4; + kHeatStage2 = 0x8; + kCoolStage2 = 0x10; + kFanStage2 = 0x20; + kFanStage3 = 0x40; + } + + bitmap RemoteSensingBitmap : bitmap8 { + kLocalTemperature = 0x1; + kOutdoorTemperature = 0x2; + kOccupancy = 0x4; + } + + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { + kSupportsPresets = 0x1; + kSupportsSetpoints = 0x2; + kSupportsNames = 0x4; + kSupportsOff = 0x8; + } + + bitmap TemperatureSetpointHoldPolicyBitmap : bitmap8 { + kHoldDurationElapsed = 0x1; + kHoldDurationElapsedOrPresetChanged = 0x2; + } + + struct ScheduleTransitionStruct { + DayOfWeekBitmap dayOfWeek = 0; + int16u transitionTime = 1; + optional octet_string<16> presetHandle = 2; + optional ThermostatSystemModeEnum systemMode = 3; + optional temperature coolingSetpoint = 4; + optional temperature heatingSetpoint = 5; + } + + struct ScheduleStruct { + nullable octet_string<16> scheduleHandle = 0; + ThermostatSystemModeEnum systemMode = 1; + optional char_string<64> name = 2; + optional octet_string<16> presetHandle = 3; + ScheduleTransitionStruct transitions[] = 4; + optional nullable boolean builtIn = 5; + } + + struct PresetStruct { + nullable octet_string<16> presetHandle = 0; + PresetScenarioEnum presetScenario = 1; + optional nullable char_string<64> name = 2; + optional temperature coolingSetpoint = 3; + optional temperature heatingSetpoint = 4; + nullable boolean builtIn = 5; + } + + struct PresetTypeStruct { + PresetScenarioEnum presetScenario = 0; + int8u numberOfPresets = 1; + PresetTypeFeaturesBitmap presetTypeFeatures = 2; + } + + struct QueuedPresetStruct { + nullable octet_string<16> presetHandle = 0; + nullable epoch_s transitionTimestamp = 1; + } + + struct ScheduleTypeStruct { + ThermostatSystemModeEnum systemMode = 0; + int8u numberOfSchedules = 1; + ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; + } + + struct ThermostatScheduleTransitionStruct { int16u transitionTime = 0; - nullable int16s heatSetpoint = 1; - nullable int16s coolSetpoint = 2; - } - - readonly attribute nullable int16s localTemperature = 0; - readonly attribute int16s absMinHeatSetpointLimit = 3; - readonly attribute int16s absMaxHeatSetpointLimit = 4; - readonly attribute int16s absMinCoolSetpointLimit = 5; - readonly attribute int16s absMaxCoolSetpointLimit = 6; - attribute access(write: manage) bitmap8 HVACSystemTypeConfiguration = 9; - attribute int16s occupiedCoolingSetpoint = 17; - attribute int16s occupiedHeatingSetpoint = 18; - attribute access(write: manage) int16s minHeatSetpointLimit = 21; - attribute access(write: manage) int16s maxHeatSetpointLimit = 22; - attribute access(write: manage) int16s minCoolSetpointLimit = 23; - attribute access(write: manage) int16s maxCoolSetpointLimit = 24; + temperature heatSetpoint = 1; + temperature coolSetpoint = 2; + } + + readonly attribute nullable temperature localTemperature = 0; + readonly attribute temperature absMinHeatSetpointLimit = 3; + readonly attribute temperature absMaxHeatSetpointLimit = 4; + readonly attribute temperature absMinCoolSetpointLimit = 5; + readonly attribute temperature absMaxCoolSetpointLimit = 6; + attribute temperature occupiedCoolingSetpoint = 17; + attribute temperature occupiedHeatingSetpoint = 18; + attribute access(write: manage) temperature minHeatSetpointLimit = 21; + attribute access(write: manage) temperature maxHeatSetpointLimit = 22; + attribute access(write: manage) temperature minCoolSetpointLimit = 23; + attribute access(write: manage) temperature maxCoolSetpointLimit = 24; attribute access(write: manage) int8s minSetpointDeadBand = 25; - attribute access(write: manage) ThermostatControlSequence controlSequenceOfOperation = 27; - attribute access(write: manage) enum8 systemMode = 28; + attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; + attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; readonly attribute event_id eventList[] = 65530; @@ -1769,7 +1939,7 @@ server cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustMode mode = 0; + SetpointAdjustModeEnum mode = 0; int8s amount = 1; } @@ -2111,7 +2281,6 @@ endpoint 1 { ram attribute absMaxHeatSetpointLimit default = 3000; ram attribute absMinCoolSetpointLimit default = 1600; ram attribute absMaxCoolSetpointLimit default = 3200; - ram attribute HVACSystemTypeConfiguration; persist attribute occupiedCoolingSetpoint default = 0x0A28; persist attribute occupiedHeatingSetpoint default = 0x07D0; ram attribute minHeatSetpointLimit default = 700; diff --git a/examples/thermostat/thermostat-common/thermostat.matter b/examples/thermostat/thermostat-common/thermostat.matter index 6db895f284557e..45c8d7b6b0cf36 100644 --- a/examples/thermostat/thermostat-common/thermostat.matter +++ b/examples/thermostat/thermostat-common/thermostat.matter @@ -1596,17 +1596,82 @@ server cluster UserLabel = 65 { readonly attribute int16u clusterRevision = 65533; } -/** An interface for configuring and controlling the functionality of a thermostat. */ +/** This cluster provides an interface to the functionality of a thermostat. */ server cluster Thermostat = 513 { revision 6; - enum SetpointAdjustMode : enum8 { + enum ACCapacityFormatEnum : enum8 { + kBTUh = 0; + } + + enum ACCompressorTypeEnum : enum8 { + kUnknown = 0; + kT1 = 1; + kT2 = 2; + kT3 = 3; + } + + enum ACLouverPositionEnum : enum8 { + kClosed = 1; + kOpen = 2; + kQuarter = 3; + kHalf = 4; + kThreeQuarters = 5; + } + + enum ACRefrigerantTypeEnum : enum8 { + kUnknown = 0; + kR22 = 1; + kR410a = 2; + kR407c = 3; + } + + enum ACTypeEnum : enum8 { + kUnknown = 0; + kCoolingFixed = 1; + kHeatPumpFixed = 2; + kCoolingInverter = 3; + kHeatPumpInverter = 4; + } + + enum PresetScenarioEnum : enum8 { + kUnspecified = 0; + kOccupied = 1; + kUnoccupied = 2; + kSleep = 3; + kWake = 4; + kVacation = 5; + kUserDefined = 6; + } + + enum SetpointAdjustModeEnum : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : enum8 { + enum SetpointChangeSourceEnum : enum8 { + kManual = 0; + kSchedule = 1; + kExternal = 2; + } + + enum StartOfWeekEnum : enum8 { + kSunday = 0; + kMonday = 1; + kTuesday = 2; + kWednesday = 3; + kThursday = 4; + kFriday = 5; + kSaturday = 6; + } + + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatControlSequenceEnum : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -1615,13 +1680,13 @@ server cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : enum8 { + enum ThermostatRunningModeEnum : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : enum8 { + enum ThermostatSystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -1633,7 +1698,21 @@ server cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : bitmap8 { + bitmap ACErrorCodeBitmap : bitmap32 { + kCompressorFail = 0x1; + kRoomSensorFail = 0x2; + kOutdoorSensorFail = 0x4; + kCoilSensorFail = 0x8; + kFanFail = 0x10; + } + + bitmap AlarmCodeBitmap : bitmap8 { + kInitialization = 0x1; + kHardware = 0x2; + kSelfCalibration = 0x4; + } + + bitmap DayOfWeekBitmap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -1648,37 +1727,129 @@ server cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kScheduleConfiguration = 0x8; + kZigbeeScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; + kMatterScheduleConfiguration = 0x80; + kPresets = 0x100; + kSetpoints = 0x200; + kQueuedPresetsSupported = 0x400; } - bitmap ModeForSequence : bitmap8 { + bitmap HVACSystemTypeBitmap : bitmap8 { + kHeatingType = 0x10; + kHeatingFuel = 0x20; + } + + bitmap ModeForSequenceBitmap : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } - struct ThermostatScheduleTransition { + bitmap PresetTypeFeaturesBitmap : bitmap16 { + kAutomatic = 0x1; + kSupportsNames = 0x2; + } + + bitmap ProgrammingOperationModeBitmap : bitmap8 { + kScheduleActive = 0x1; + kAutoRecovery = 0x2; + kEconomy = 0x4; + } + + bitmap RelayStateBitmap : bitmap16 { + kHeat = 0x1; + kCool = 0x2; + kFan = 0x4; + kHeatStage2 = 0x8; + kCoolStage2 = 0x10; + kFanStage2 = 0x20; + kFanStage3 = 0x40; + } + + bitmap RemoteSensingBitmap : bitmap8 { + kLocalTemperature = 0x1; + kOutdoorTemperature = 0x2; + kOccupancy = 0x4; + } + + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { + kSupportsPresets = 0x1; + kSupportsSetpoints = 0x2; + kSupportsNames = 0x4; + kSupportsOff = 0x8; + } + + bitmap TemperatureSetpointHoldPolicyBitmap : bitmap8 { + kHoldDurationElapsed = 0x1; + kHoldDurationElapsedOrPresetChanged = 0x2; + } + + struct ScheduleTransitionStruct { + DayOfWeekBitmap dayOfWeek = 0; + int16u transitionTime = 1; + optional octet_string<16> presetHandle = 2; + optional ThermostatSystemModeEnum systemMode = 3; + optional temperature coolingSetpoint = 4; + optional temperature heatingSetpoint = 5; + } + + struct ScheduleStruct { + nullable octet_string<16> scheduleHandle = 0; + ThermostatSystemModeEnum systemMode = 1; + optional char_string<64> name = 2; + optional octet_string<16> presetHandle = 3; + ScheduleTransitionStruct transitions[] = 4; + optional nullable boolean builtIn = 5; + } + + struct PresetStruct { + nullable octet_string<16> presetHandle = 0; + PresetScenarioEnum presetScenario = 1; + optional nullable char_string<64> name = 2; + optional temperature coolingSetpoint = 3; + optional temperature heatingSetpoint = 4; + nullable boolean builtIn = 5; + } + + struct PresetTypeStruct { + PresetScenarioEnum presetScenario = 0; + int8u numberOfPresets = 1; + PresetTypeFeaturesBitmap presetTypeFeatures = 2; + } + + struct QueuedPresetStruct { + nullable octet_string<16> presetHandle = 0; + nullable epoch_s transitionTimestamp = 1; + } + + struct ScheduleTypeStruct { + ThermostatSystemModeEnum systemMode = 0; + int8u numberOfSchedules = 1; + ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; + } + + struct ThermostatScheduleTransitionStruct { int16u transitionTime = 0; - nullable int16s heatSetpoint = 1; - nullable int16s coolSetpoint = 2; - } - - readonly attribute nullable int16s localTemperature = 0; - readonly attribute int16s absMinHeatSetpointLimit = 3; - readonly attribute int16s absMaxHeatSetpointLimit = 4; - readonly attribute int16s absMinCoolSetpointLimit = 5; - readonly attribute int16s absMaxCoolSetpointLimit = 6; - attribute int16s occupiedCoolingSetpoint = 17; - attribute int16s occupiedHeatingSetpoint = 18; - attribute access(write: manage) int16s minHeatSetpointLimit = 21; - attribute access(write: manage) int16s maxHeatSetpointLimit = 22; - attribute access(write: manage) int16s minCoolSetpointLimit = 23; - attribute access(write: manage) int16s maxCoolSetpointLimit = 24; + temperature heatSetpoint = 1; + temperature coolSetpoint = 2; + } + + readonly attribute nullable temperature localTemperature = 0; + readonly attribute temperature absMinHeatSetpointLimit = 3; + readonly attribute temperature absMaxHeatSetpointLimit = 4; + readonly attribute temperature absMinCoolSetpointLimit = 5; + readonly attribute temperature absMaxCoolSetpointLimit = 6; + attribute temperature occupiedCoolingSetpoint = 17; + attribute temperature occupiedHeatingSetpoint = 18; + attribute access(write: manage) temperature minHeatSetpointLimit = 21; + attribute access(write: manage) temperature maxHeatSetpointLimit = 22; + attribute access(write: manage) temperature minCoolSetpointLimit = 23; + attribute access(write: manage) temperature maxCoolSetpointLimit = 24; attribute access(write: manage) int8s minSetpointDeadBand = 25; - attribute access(write: manage) ThermostatControlSequence controlSequenceOfOperation = 27; - attribute access(write: manage) enum8 systemMode = 28; + attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; + attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; readonly attribute event_id eventList[] = 65530; @@ -1687,7 +1858,7 @@ server cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustMode mode = 0; + SetpointAdjustModeEnum mode = 0; int8s amount = 1; } diff --git a/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/access.h b/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/access.h index c1e762de1b2526..e8f62eb9e4888a 100644 --- a/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/access.h +++ b/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/access.h @@ -67,13 +67,6 @@ /* Cluster: Pump Configuration and Control, Attribute: LifetimeEnergyConsumed, Privilege: view */ \ /* Cluster: Pump Configuration and Control, Attribute: OperationMode, Privilege: view */ \ /* Cluster: Pump Configuration and Control, Attribute: ControlMode, Privilege: view */ \ - /* Cluster: Thermostat, Attribute: MinHeatSetpointLimit, Privilege: view */ \ - /* Cluster: Thermostat, Attribute: MaxHeatSetpointLimit, Privilege: view */ \ - /* Cluster: Thermostat, Attribute: MinCoolSetpointLimit, Privilege: view */ \ - /* Cluster: Thermostat, Attribute: MaxCoolSetpointLimit, Privilege: view */ \ - /* Cluster: Thermostat, Attribute: MinSetpointDeadBand, Privilege: view */ \ - /* Cluster: Thermostat, Attribute: ControlSequenceOfOperation, Privilege: view */ \ - /* Cluster: Thermostat, Attribute: SystemMode, Privilege: view */ \ /* Cluster: Thermostat User Interface Configuration, Attribute: KeypadLockout, Privilege: view */ \ /* Cluster: Thermostat User Interface Configuration, Attribute: ScheduleProgrammingVisibility, Privilege: view */ \ /* Cluster: Color Control, Attribute: WhitePointX, Privilege: view */ \ @@ -131,13 +124,6 @@ /* Cluster: Pump Configuration and Control, Attribute: LifetimeEnergyConsumed, Privilege: view */ \ /* Cluster: Pump Configuration and Control, Attribute: OperationMode, Privilege: view */ \ /* Cluster: Pump Configuration and Control, Attribute: ControlMode, Privilege: view */ \ - /* Cluster: Thermostat, Attribute: MinHeatSetpointLimit, Privilege: view */ \ - /* Cluster: Thermostat, Attribute: MaxHeatSetpointLimit, Privilege: view */ \ - /* Cluster: Thermostat, Attribute: MinCoolSetpointLimit, Privilege: view */ \ - /* Cluster: Thermostat, Attribute: MaxCoolSetpointLimit, Privilege: view */ \ - /* Cluster: Thermostat, Attribute: MinSetpointDeadBand, Privilege: view */ \ - /* Cluster: Thermostat, Attribute: ControlSequenceOfOperation, Privilege: view */ \ - /* Cluster: Thermostat, Attribute: SystemMode, Privilege: view */ \ /* Cluster: Thermostat User Interface Configuration, Attribute: KeypadLockout, Privilege: view */ \ /* Cluster: Thermostat User Interface Configuration, Attribute: ScheduleProgrammingVisibility, Privilege: view */ \ /* Cluster: Color Control, Attribute: WhitePointX, Privilege: view */ \ @@ -195,13 +181,6 @@ /* Cluster: Pump Configuration and Control, Attribute: LifetimeEnergyConsumed, Privilege: view */ \ /* Cluster: Pump Configuration and Control, Attribute: OperationMode, Privilege: view */ \ /* Cluster: Pump Configuration and Control, Attribute: ControlMode, Privilege: view */ \ - /* Cluster: Thermostat, Attribute: MinHeatSetpointLimit, Privilege: view */ \ - /* Cluster: Thermostat, Attribute: MaxHeatSetpointLimit, Privilege: view */ \ - /* Cluster: Thermostat, Attribute: MinCoolSetpointLimit, Privilege: view */ \ - /* Cluster: Thermostat, Attribute: MaxCoolSetpointLimit, Privilege: view */ \ - /* Cluster: Thermostat, Attribute: MinSetpointDeadBand, Privilege: view */ \ - /* Cluster: Thermostat, Attribute: ControlSequenceOfOperation, Privilege: view */ \ - /* Cluster: Thermostat, Attribute: SystemMode, Privilege: view */ \ /* Cluster: Thermostat User Interface Configuration, Attribute: KeypadLockout, Privilege: view */ \ /* Cluster: Thermostat User Interface Configuration, Attribute: ScheduleProgrammingVisibility, Privilege: view */ \ /* Cluster: Color Control, Attribute: WhitePointX, Privilege: view */ \ diff --git a/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h b/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h index 5c987480bc96ac..0d23d277bcad97 100644 --- a/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h +++ b/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h @@ -311,7 +311,7 @@ { (uint16_t) 0xBB8, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* MaxHeatSetpointLimit */ \ { (uint16_t) 0x640, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* MinCoolSetpointLimit */ \ { (uint16_t) 0xC80, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* MaxCoolSetpointLimit */ \ - { (uint16_t) 0x19, (uint16_t) 0x0, (uint16_t) 0x19 }, /* MinSetpointDeadBand */ \ + { (uint16_t) 0x19, (uint16_t) 0x0, (uint16_t) 0xFA }, /* MinSetpointDeadBand */ \ { (uint16_t) 0x4, (uint16_t) 0x0, (uint16_t) 0x5 }, /* ControlSequenceOfOperation */ \ { (uint16_t) 0x1, (uint16_t) 0x0, (uint16_t) 0x7 }, /* SystemMode */ \ \ @@ -1008,22 +1008,22 @@ { ZAP_SIMPLE_DEFAULT(3), 0x0000FFFD, 2, ZAP_TYPE(INT16U), 0 }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Thermostat (server) */ \ - { ZAP_EMPTY_DEFAULT(), 0x00000000, 2, ZAP_TYPE(INT16S), ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* LocalTemperature */ \ - { ZAP_SIMPLE_DEFAULT(0x02BC), 0x00000003, 2, ZAP_TYPE(INT16S), 0 }, /* AbsMinHeatSetpointLimit */ \ - { ZAP_SIMPLE_DEFAULT(0x0BB8), 0x00000004, 2, ZAP_TYPE(INT16S), 0 }, /* AbsMaxHeatSetpointLimit */ \ - { ZAP_SIMPLE_DEFAULT(0x0640), 0x00000005, 2, ZAP_TYPE(INT16S), 0 }, /* AbsMinCoolSetpointLimit */ \ - { ZAP_SIMPLE_DEFAULT(0x0C80), 0x00000006, 2, ZAP_TYPE(INT16S), 0 }, /* AbsMaxCoolSetpointLimit */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(13), 0x00000011, 2, ZAP_TYPE(INT16S), \ + { ZAP_EMPTY_DEFAULT(), 0x00000000, 2, ZAP_TYPE(TEMPERATURE), ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* LocalTemperature */ \ + { ZAP_SIMPLE_DEFAULT(0x02BC), 0x00000003, 2, ZAP_TYPE(TEMPERATURE), 0 }, /* AbsMinHeatSetpointLimit */ \ + { ZAP_SIMPLE_DEFAULT(0x0BB8), 0x00000004, 2, ZAP_TYPE(TEMPERATURE), 0 }, /* AbsMaxHeatSetpointLimit */ \ + { ZAP_SIMPLE_DEFAULT(0x0640), 0x00000005, 2, ZAP_TYPE(TEMPERATURE), 0 }, /* AbsMinCoolSetpointLimit */ \ + { ZAP_SIMPLE_DEFAULT(0x0C80), 0x00000006, 2, ZAP_TYPE(TEMPERATURE), 0 }, /* AbsMaxCoolSetpointLimit */ \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(13), 0x00000011, 2, ZAP_TYPE(TEMPERATURE), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* OccupiedCoolingSetpoint */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(14), 0x00000012, 2, ZAP_TYPE(INT16S), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(14), 0x00000012, 2, ZAP_TYPE(TEMPERATURE), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* OccupiedHeatingSetpoint */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(15), 0x00000015, 2, ZAP_TYPE(INT16S), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(15), 0x00000015, 2, ZAP_TYPE(TEMPERATURE), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* MinHeatSetpointLimit */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(16), 0x00000016, 2, ZAP_TYPE(INT16S), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(16), 0x00000016, 2, ZAP_TYPE(TEMPERATURE), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* MaxHeatSetpointLimit */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(17), 0x00000017, 2, ZAP_TYPE(INT16S), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(17), 0x00000017, 2, ZAP_TYPE(TEMPERATURE), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* MinCoolSetpointLimit */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(18), 0x00000018, 2, ZAP_TYPE(INT16S), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(18), 0x00000018, 2, ZAP_TYPE(TEMPERATURE), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* MaxCoolSetpointLimit */ \ { ZAP_MIN_MAX_DEFAULTS_INDEX(19), 0x00000019, 1, ZAP_TYPE(INT8S), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* MinSetpointDeadBand */ \ diff --git a/src/app/clusters/thermostat-server/thermostat-server.cpp b/src/app/clusters/thermostat-server/thermostat-server.cpp index 6c3504c6bea270..91fb5c5a7c88cb 100644 --- a/src/app/clusters/thermostat-server/thermostat-server.cpp +++ b/src/app/clusters/thermostat-server/thermostat-server.cpp @@ -97,14 +97,14 @@ CHIP_ERROR ThermostatAttrAccess::Read(const ConcreteReadAttributePath & aPath, A case RemoteSensing::Id: if (localTemperatureNotExposedSupported) { - uint8_t valueRemoteSensing; + chip::BitMask valueRemoteSensing; EmberAfStatus status = RemoteSensing::Get(aPath.mEndpointId, &valueRemoteSensing); if (status != EMBER_ZCL_STATUS_SUCCESS) { StatusIB statusIB(ToInteractionModelStatus(status)); return statusIB.ToChipError(); } - valueRemoteSensing &= 0xFE; // clear bit 1 (LocalTemperature RemoteSensing bit) + valueRemoteSensing.Clear(RemoteSensingBitmap::kLocalTemperature); // clear bit 1 (LocalTemperature RemoteSensing bit) return aEncoder.Encode(valueRemoteSensing); } break; @@ -395,37 +395,37 @@ MatterThermostatClusterServerPreAttributeChangedCallback(const app::ConcreteAttr case ControlSequenceOfOperation::Id: { uint8_t requestedCSO; requestedCSO = *value; - if (requestedCSO > to_underlying(ThermostatControlSequence::kCoolingAndHeatingWithReheat)) + if (requestedCSO > to_underlying(ThermostatControlSequenceEnum::kCoolingAndHeatingWithReheat)) return imcode::InvalidValue; return imcode::Success; } case SystemMode::Id: { - ThermostatControlSequence ControlSequenceOfOperation; + ThermostatControlSequenceEnum ControlSequenceOfOperation; EmberAfStatus status = ControlSequenceOfOperation::Get(endpoint, &ControlSequenceOfOperation); if (status != EMBER_ZCL_STATUS_SUCCESS) { return imcode::InvalidValue; } - auto RequestedSystemMode = static_cast(*value); - if (ControlSequenceOfOperation > ThermostatControlSequence::kCoolingAndHeatingWithReheat || - RequestedSystemMode > ThermostatSystemMode::kFanOnly) + auto RequestedSystemMode = static_cast(*value); + if (ControlSequenceOfOperation > ThermostatControlSequenceEnum::kCoolingAndHeatingWithReheat || + RequestedSystemMode > ThermostatSystemModeEnum::kFanOnly) { return imcode::InvalidValue; } switch (ControlSequenceOfOperation) { - case ThermostatControlSequence::kCoolingOnly: - case ThermostatControlSequence::kCoolingWithReheat: - if (RequestedSystemMode == ThermostatSystemMode::kHeat || RequestedSystemMode == ThermostatSystemMode::kEmergencyHeat) + case ThermostatControlSequenceEnum::kCoolingOnly: + case ThermostatControlSequenceEnum::kCoolingWithReheat: + if (RequestedSystemMode == ThermostatSystemModeEnum::kHeat || RequestedSystemMode == ThermostatSystemModeEnum::kEmergencyHeat) return imcode::InvalidValue; else return imcode::Success; - case ThermostatControlSequence::kHeatingOnly: - case ThermostatControlSequence::kHeatingWithReheat: - if (RequestedSystemMode == ThermostatSystemMode::kCool || RequestedSystemMode == ThermostatSystemMode::kPrecooling) + case ThermostatControlSequenceEnum::kHeatingOnly: + case ThermostatControlSequenceEnum::kHeatingWithReheat: + if (RequestedSystemMode == ThermostatSystemModeEnum::kCool || RequestedSystemMode == ThermostatSystemModeEnum::kPrecooling) return imcode::InvalidValue; else return imcode::Success; @@ -462,6 +462,70 @@ bool emberAfThermostatClusterSetWeeklyScheduleCallback(app::CommandHandler * com return false; } +bool emberAfThermostatClusterGetRelayStatusLogCallback( + chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, + const chip::app::Clusters::Thermostat::Commands::GetRelayStatusLog::DecodableType & commandData) +{ + // TODO + return false; +} + +bool emberAfThermostatClusterSetActiveScheduleRequestCallback( + chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, + const chip::app::Clusters::Thermostat::Commands::SetActiveScheduleRequest::DecodableType & commandData) +{ + // TODO + return false; +} + +bool emberAfThermostatClusterSetActivePresetRequestCallback( + chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, + const chip::app::Clusters::Thermostat::Commands::SetActivePresetRequest::DecodableType & commandData) +{ + // TODO + return false; +} + +bool emberAfThermostatClusterStartPresetsSchedulesEditRequestCallback( + chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, + const chip::app::Clusters::Thermostat::Commands::StartPresetsSchedulesEditRequest::DecodableType & commandData) +{ + // TODO + return false; +} + +bool emberAfThermostatClusterCancelPresetsSchedulesEditRequestCallback( + chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, + const chip::app::Clusters::Thermostat::Commands::CancelPresetsSchedulesEditRequest::DecodableType & commandData) +{ + // TODO + return false; +} + +bool emberAfThermostatClusterCommitPresetsSchedulesRequestCallback( + chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, + const chip::app::Clusters::Thermostat::Commands::CommitPresetsSchedulesRequest::DecodableType & commandData) +{ + // TODO + return false; +} + +bool emberAfThermostatClusterCancelSetActivePresetRequestCallback( + chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, + const chip::app::Clusters::Thermostat::Commands::CancelSetActivePresetRequest::DecodableType & commandData) +{ + // TODO + return false; +} + +bool emberAfThermostatClusterSetTemperatureSetpointHoldPolicyCallback( + chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, + const chip::app::Clusters::Thermostat::Commands::SetTemperatureSetpointHoldPolicy::DecodableType & commandData) +{ + // TODO + return false; +} + int16_t EnforceHeatingSetpointLimits(int16_t HeatingSetpoint, EndpointId endpoint) { // Optional Mfg supplied limits @@ -603,6 +667,7 @@ int16_t EnforceCoolingSetpointLimits(int16_t CoolingSetpoint, EndpointId endpoin return CoolingSetpoint; } + bool emberAfThermostatClusterSetpointRaiseLowerCallback(app::CommandHandler * commandObj, const app::ConcreteCommandPath & commandPath, const Commands::SetpointRaiseLower::DecodableType & commandData) @@ -644,7 +709,7 @@ bool emberAfThermostatClusterSetpointRaiseLowerCallback(app::CommandHandler * co switch (mode) { - case SetpointAdjustMode::kBoth: + case SetpointAdjustModeEnum::kBoth: if (HeatSupported && CoolSupported) { int16_t DesiredCoolingSetpoint, CoolLimit, DesiredHeatingSetpoint, HeatLimit; @@ -724,7 +789,7 @@ bool emberAfThermostatClusterSetpointRaiseLowerCallback(app::CommandHandler * co status = EMBER_ZCL_STATUS_SUCCESS; break; - case SetpointAdjustMode::kCool: + case SetpointAdjustModeEnum::kCool: if (CoolSupported) { if (OccupiedCoolingSetpoint::Get(aEndpointId, &CoolingSetpoint) == EMBER_ZCL_STATUS_SUCCESS) @@ -777,7 +842,7 @@ bool emberAfThermostatClusterSetpointRaiseLowerCallback(app::CommandHandler * co status = EMBER_ZCL_STATUS_INVALID_COMMAND; break; - case SetpointAdjustMode::kHeat: + case SetpointAdjustModeEnum::kHeat: if (HeatSupported) { if (OccupiedHeatingSetpoint::Get(aEndpointId, &HeatingSetpoint) == EMBER_ZCL_STATUS_SUCCESS) diff --git a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml index 1c15c5fc8b7fc8..7d64b3aefa9efd 100644 --- a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml @@ -16,19 +16,21 @@ limitations under the License. --> - - + - - + + + + + + - - + @@ -39,34 +41,31 @@ limitations under the License. - - + - - - - - - - - - - - - + + + + + + + + + + + - - + - - + + @@ -75,216 +74,196 @@ limitations under the License. - - - - - - - - - + + + + + + + + - - + + - - + - - - + + + - - + - - - - + + + - Thermostat - HVAC - An interface for configuring and controlling the functionality of a thermostat. + HVAC + This cluster provides an interface to the functionality of a thermostat. 0x0201 THERMOSTAT_CLUSTER true true - LocalTemperature - OutdoorTemperature - Occupancy - - AbsMinHeatSetpointLimit - AbsMaxHeatSetpointLimit - AbsMinCoolSetpointLimit - AbsMaxCoolSetpointLimit - PICoolingDemand - PIHeatingDemand - - HVACSystemTypeConfiguration - - - - + LocalTemperature + OutdoorTemperature + Occupancy + AbsMinHeatSetpointLimit + AbsMaxHeatSetpointLimit + AbsMinCoolSetpointLimit + AbsMaxCoolSetpointLimit + PICoolingDemand + PIHeatingDemand + LocalTemperatureCalibration - - OccupiedCoolingSetpoint - OccupiedHeatingSetpoint - UnoccupiedCoolingSetpoint - UnoccupiedHeatingSetpoint - + OccupiedCoolingSetpoint + OccupiedHeatingSetpoint + UnoccupiedCoolingSetpoint + UnoccupiedHeatingSetpoint + MinHeatSetpointLimit - - + MaxHeatSetpointLimit - - + MinCoolSetpointLimit - - + MaxCoolSetpointLimit - - + MinSetpointDeadBand - - + RemoteSensing - - + ControlSequenceOfOperation - - + SystemMode - - ThermostatRunningMode - StartOfWeek - NumberOfWeeklyTransitions - NumberOfDailyTransitions - + ThermostatRunningMode + StartOfWeek + NumberOfWeeklyTransitions + NumberOfDailyTransitions + TemperatureSetpointHold - TemperatureSetpointHoldDuration - - + ThermostatProgrammingOperationMode - - ThermostatRunningState - SetpointChangeSource - SetpointChangeAmount - SetpointChangeSourceTimestamp - + ThermostatRunningState + SetpointChangeSource + SetpointChangeAmount + SetpointChangeSourceTimestamp + OccupiedSetback - - OccupiedSetbackMin - OccupiedSetbackMax - + OccupiedSetbackMin + OccupiedSetbackMax + UnoccupiedSetback - - UnoccupiedSetbackMin - UnoccupiedSetbackMax + UnoccupiedSetbackMin + UnoccupiedSetbackMax EmergencyHeatDelta - - + ACType - - + ACCapacity - - + ACRefrigerantType - - + ACCompressorType - - + ACErrorCode - - + ACLouverPosition - - ACCoilTemperature - - ACCapacityformat - + ACCoilTemperature + + ACCapacityFormat + + + + Presets + + + TemperatureSetpointHoldPolicy + SetpointHoldExpiryTimestamp + NumberOfScheduleTransitionPerDay + ActiveScheduleHandle + NumberOfSchedules + AlarmMask + ScheduleTypes + PresetsSchedulesEditable + NumberOfPresets + + Schedules + NumberOfScheduleTransitions + PresetTypes + QueuedPreset + ActivePresetHandle - - Command description for SetpointRaiseLower - - + Upon receipt, the attributes for the indicated setpoint(s) SHALL have the amount specified in the Amount field added to them. If the resulting value is outside the limits imposed by + - - Command description for SetWeeklySchedule - - - - - + Upon receipt, the weekly schedule for updating setpoints SHALL be stored in the thermostat and SHOULD begin at the time of receipt. A status code SHALL be sent in response. + + + + - - Command description for GetWeeklySchedule - - - + Upon receipt, the unit SHOULD send in return the Get Weekly Schedule Response command. The Days to Return and Mode to Return fields are defined as bitmask for the flexibility to support multiple days and multiple modes within one command. If thermostat cannot handle incoming command with multiple days and/or multiple modes within one command, it SHALL send default response of INVALID_COMMAND in return. + + - - - The Clear Weekly Schedule command is used to clear the weekly schedule. - + + This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. @@ -292,9 +271,203 @@ limitations under the License. The Current Weekly Schedule Command is sent from the server in response to the Get Weekly Schedule Command. - - - + + + + + + Upon receipt, this SHALL set the thermostat + + + + + Upon receipt, this SHALL attempt to commit any pending changes to the + + + + This command is sent from the thermostat cluster server in response to the Get Relay Status Log. After the Relay Status Entry is sent over the air to the requesting client, the specific entry will be cleared from the thermostat internal log. + + + + + + + + + Upon receipt, if the + + + + This command is used to query the thermostat internal relay status log. This command has no payload. + + + This command is sent to cancel a queued preset specified by + + + + This command is sent to set the + + + + Upon receipt, this SHALL attempt to enable editing of the + + + + + Upon receipt, this SHALL attempt to cancel any active editing of the + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/app/zap-templates/zcl/zcl-with-test-extensions.json b/src/app/zap-templates/zcl/zcl-with-test-extensions.json index 2655fdad6367de..270579d8d50b7c 100644 --- a/src/app/zap-templates/zcl/zcl-with-test-extensions.json +++ b/src/app/zap-templates/zcl/zcl-with-test-extensions.json @@ -529,7 +529,8 @@ "LevelValue", "FeatureMap" ], - "Air Quality": ["AirQuality", "FeatureMap"] + "Air Quality": ["AirQuality", "FeatureMap"], + "Thermostat": ["QueuedPreset"] }, "defaultReportingPolicy": "mandatory", "ZCLDataTypes": ["ARRAY", "BITMAP", "ENUM", "NUMBER", "STRING", "STRUCT"], diff --git a/src/app/zap-templates/zcl/zcl.json b/src/app/zap-templates/zcl/zcl.json index 143615c32f8942..88e630cc43614a 100644 --- a/src/app/zap-templates/zcl/zcl.json +++ b/src/app/zap-templates/zcl/zcl.json @@ -527,7 +527,8 @@ "LevelValue", "FeatureMap" ], - "Air Quality": ["AirQuality", "FeatureMap"] + "Air Quality": ["AirQuality", "FeatureMap"], + "Thermostat": ["QueuedPreset"] }, "defaultReportingPolicy": "mandatory", "ZCLDataTypes": ["ARRAY", "BITMAP", "ENUM", "NUMBER", "STRING", "STRUCT"], diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter index 74c6b6f2502701..3e416b67ef4fa5 100644 --- a/src/controller/data_model/controller-clusters.matter +++ b/src/controller/data_model/controller-clusters.matter @@ -5176,17 +5176,82 @@ client cluster PumpConfigurationAndControl = 512 { readonly attribute int16u clusterRevision = 65533; } -/** An interface for configuring and controlling the functionality of a thermostat. */ +/** This cluster provides an interface to the functionality of a thermostat. */ client cluster Thermostat = 513 { revision 6; - enum SetpointAdjustMode : enum8 { + enum ACCapacityFormatEnum : enum8 { + kBTUh = 0; + } + + enum ACCompressorTypeEnum : enum8 { + kUnknown = 0; + kT1 = 1; + kT2 = 2; + kT3 = 3; + } + + enum ACLouverPositionEnum : enum8 { + kClosed = 1; + kOpen = 2; + kQuarter = 3; + kHalf = 4; + kThreeQuarters = 5; + } + + enum ACRefrigerantTypeEnum : enum8 { + kUnknown = 0; + kR22 = 1; + kR410a = 2; + kR407c = 3; + } + + enum ACTypeEnum : enum8 { + kUnknown = 0; + kCoolingFixed = 1; + kHeatPumpFixed = 2; + kCoolingInverter = 3; + kHeatPumpInverter = 4; + } + + enum PresetScenarioEnum : enum8 { + kUnspecified = 0; + kOccupied = 1; + kUnoccupied = 2; + kSleep = 3; + kWake = 4; + kVacation = 5; + kUserDefined = 6; + } + + enum SetpointAdjustModeEnum : enum8 { kHeat = 0; kCool = 1; kBoth = 2; } - enum ThermostatControlSequence : enum8 { + enum SetpointChangeSourceEnum : enum8 { + kManual = 0; + kSchedule = 1; + kExternal = 2; + } + + enum StartOfWeekEnum : enum8 { + kSunday = 0; + kMonday = 1; + kTuesday = 2; + kWednesday = 3; + kThursday = 4; + kFriday = 5; + kSaturday = 6; + } + + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatControlSequenceEnum : enum8 { kCoolingOnly = 0; kCoolingWithReheat = 1; kHeatingOnly = 2; @@ -5195,13 +5260,13 @@ client cluster Thermostat = 513 { kCoolingAndHeatingWithReheat = 5; } - enum ThermostatRunningMode : enum8 { + enum ThermostatRunningModeEnum : enum8 { kOff = 0; kCool = 3; kHeat = 4; } - enum ThermostatSystemMode : enum8 { + enum ThermostatSystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -5213,7 +5278,21 @@ client cluster Thermostat = 513 { kSleep = 9; } - bitmap DayOfWeek : bitmap8 { + bitmap ACErrorCodeBitmap : bitmap32 { + kCompressorFail = 0x1; + kRoomSensorFail = 0x2; + kOutdoorSensorFail = 0x4; + kCoilSensorFail = 0x8; + kFanFail = 0x10; + } + + bitmap AlarmCodeBitmap : bitmap8 { + kInitialization = 0x1; + kHardware = 0x2; + kSelfCalibration = 0x4; + } + + bitmap DayOfWeekBitmap : bitmap8 { kSunday = 0x1; kMonday = 0x2; kTuesday = 0x4; @@ -5228,55 +5307,147 @@ client cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kScheduleConfiguration = 0x8; + kZigbeeScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; + kMatterScheduleConfiguration = 0x80; + kPresets = 0x100; + kSetpoints = 0x200; + kQueuedPresetsSupported = 0x400; + } + + bitmap HVACSystemTypeBitmap : bitmap8 { + kHeatingType = 0x10; + kHeatingFuel = 0x20; } - bitmap ModeForSequence : bitmap8 { + bitmap ModeForSequenceBitmap : bitmap8 { kHeatSetpointPresent = 0x1; kCoolSetpointPresent = 0x2; } - struct ThermostatScheduleTransition { + bitmap PresetTypeFeaturesBitmap : bitmap16 { + kAutomatic = 0x1; + kSupportsNames = 0x2; + } + + bitmap ProgrammingOperationModeBitmap : bitmap8 { + kScheduleActive = 0x1; + kAutoRecovery = 0x2; + kEconomy = 0x4; + } + + bitmap RelayStateBitmap : bitmap16 { + kHeat = 0x1; + kCool = 0x2; + kFan = 0x4; + kHeatStage2 = 0x8; + kCoolStage2 = 0x10; + kFanStage2 = 0x20; + kFanStage3 = 0x40; + } + + bitmap RemoteSensingBitmap : bitmap8 { + kLocalTemperature = 0x1; + kOutdoorTemperature = 0x2; + kOccupancy = 0x4; + } + + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { + kSupportsPresets = 0x1; + kSupportsSetpoints = 0x2; + kSupportsNames = 0x4; + kSupportsOff = 0x8; + } + + bitmap TemperatureSetpointHoldPolicyBitmap : bitmap8 { + kHoldDurationElapsed = 0x1; + kHoldDurationElapsedOrPresetChanged = 0x2; + } + + struct ScheduleTransitionStruct { + DayOfWeekBitmap dayOfWeek = 0; + int16u transitionTime = 1; + optional octet_string<16> presetHandle = 2; + optional ThermostatSystemModeEnum systemMode = 3; + optional temperature coolingSetpoint = 4; + optional temperature heatingSetpoint = 5; + } + + struct ScheduleStruct { + nullable octet_string<16> scheduleHandle = 0; + ThermostatSystemModeEnum systemMode = 1; + optional char_string<64> name = 2; + optional octet_string<16> presetHandle = 3; + ScheduleTransitionStruct transitions[] = 4; + optional nullable boolean builtIn = 5; + } + + struct PresetStruct { + nullable octet_string<16> presetHandle = 0; + PresetScenarioEnum presetScenario = 1; + optional nullable char_string<64> name = 2; + optional temperature coolingSetpoint = 3; + optional temperature heatingSetpoint = 4; + nullable boolean builtIn = 5; + } + + struct PresetTypeStruct { + PresetScenarioEnum presetScenario = 0; + int8u numberOfPresets = 1; + PresetTypeFeaturesBitmap presetTypeFeatures = 2; + } + + struct QueuedPresetStruct { + nullable octet_string<16> presetHandle = 0; + nullable epoch_s transitionTimestamp = 1; + } + + struct ScheduleTypeStruct { + ThermostatSystemModeEnum systemMode = 0; + int8u numberOfSchedules = 1; + ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; + } + + struct ThermostatScheduleTransitionStruct { int16u transitionTime = 0; - nullable int16s heatSetpoint = 1; - nullable int16s coolSetpoint = 2; + temperature heatSetpoint = 1; + temperature coolSetpoint = 2; } - readonly attribute nullable int16s localTemperature = 0; - readonly attribute optional nullable int16s outdoorTemperature = 1; + readonly attribute nullable temperature localTemperature = 0; + readonly attribute optional nullable temperature outdoorTemperature = 1; readonly attribute optional bitmap8 occupancy = 2; - readonly attribute optional int16s absMinHeatSetpointLimit = 3; - readonly attribute optional int16s absMaxHeatSetpointLimit = 4; - readonly attribute optional int16s absMinCoolSetpointLimit = 5; - readonly attribute optional int16s absMaxCoolSetpointLimit = 6; + readonly attribute optional temperature absMinHeatSetpointLimit = 3; + readonly attribute optional temperature absMaxHeatSetpointLimit = 4; + readonly attribute optional temperature absMinCoolSetpointLimit = 5; + readonly attribute optional temperature absMaxCoolSetpointLimit = 6; readonly attribute optional int8u PICoolingDemand = 7; readonly attribute optional int8u PIHeatingDemand = 8; - attribute access(write: manage) optional bitmap8 HVACSystemTypeConfiguration = 9; attribute access(write: manage) optional int8s localTemperatureCalibration = 16; - attribute optional int16s occupiedCoolingSetpoint = 17; - attribute optional int16s occupiedHeatingSetpoint = 18; - attribute optional int16s unoccupiedCoolingSetpoint = 19; - attribute optional int16s unoccupiedHeatingSetpoint = 20; - attribute access(write: manage) optional int16s minHeatSetpointLimit = 21; - attribute access(write: manage) optional int16s maxHeatSetpointLimit = 22; - attribute access(write: manage) optional int16s minCoolSetpointLimit = 23; - attribute access(write: manage) optional int16s maxCoolSetpointLimit = 24; + attribute optional temperature occupiedCoolingSetpoint = 17; + attribute optional temperature occupiedHeatingSetpoint = 18; + attribute optional temperature unoccupiedCoolingSetpoint = 19; + attribute optional temperature unoccupiedHeatingSetpoint = 20; + attribute access(write: manage) optional temperature minHeatSetpointLimit = 21; + attribute access(write: manage) optional temperature maxHeatSetpointLimit = 22; + attribute access(write: manage) optional temperature minCoolSetpointLimit = 23; + attribute access(write: manage) optional temperature maxCoolSetpointLimit = 24; attribute access(write: manage) optional int8s minSetpointDeadBand = 25; - attribute access(write: manage) optional bitmap8 remoteSensing = 26; - attribute access(write: manage) ThermostatControlSequence controlSequenceOfOperation = 27; - attribute access(write: manage) enum8 systemMode = 28; - readonly attribute optional enum8 thermostatRunningMode = 30; - readonly attribute optional enum8 startOfWeek = 32; + attribute access(write: manage) optional RemoteSensingBitmap remoteSensing = 26; + attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; + attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; + readonly attribute optional AlarmCodeBitmap alarmMask = 29; + readonly attribute optional ThermostatRunningModeEnum thermostatRunningMode = 30; + readonly attribute optional StartOfWeekEnum startOfWeek = 32; readonly attribute optional int8u numberOfWeeklyTransitions = 33; readonly attribute optional int8u numberOfDailyTransitions = 34; - attribute access(write: manage) optional enum8 temperatureSetpointHold = 35; + attribute access(write: manage) optional TemperatureSetpointHoldEnum temperatureSetpointHold = 35; attribute access(write: manage) optional nullable int16u temperatureSetpointHoldDuration = 36; - attribute access(write: manage) optional bitmap8 thermostatProgrammingOperationMode = 37; - readonly attribute optional bitmap16 thermostatRunningState = 41; - readonly attribute optional enum8 setpointChangeSource = 48; + attribute access(write: manage) optional ProgrammingOperationModeBitmap thermostatProgrammingOperationMode = 37; + readonly attribute optional RelayStateBitmap thermostatRunningState = 41; + readonly attribute optional SetpointChangeSourceEnum setpointChangeSource = 48; readonly attribute optional nullable int16s setpointChangeAmount = 49; readonly attribute optional epoch_s setpointChangeSourceTimestamp = 50; attribute access(write: manage) optional nullable int8u occupiedSetback = 52; @@ -5286,14 +5457,28 @@ client cluster Thermostat = 513 { readonly attribute optional nullable int8u unoccupiedSetbackMin = 56; readonly attribute optional nullable int8u unoccupiedSetbackMax = 57; attribute access(write: manage) optional int8u emergencyHeatDelta = 58; - attribute access(write: manage) optional enum8 ACType = 64; + attribute access(write: manage) optional ACTypeEnum ACType = 64; attribute access(write: manage) optional int16u ACCapacity = 65; - attribute access(write: manage) optional enum8 ACRefrigerantType = 66; - attribute access(write: manage) optional enum8 ACCompressorType = 67; - attribute access(write: manage) optional bitmap32 ACErrorCode = 68; - attribute access(write: manage) optional enum8 ACLouverPosition = 69; - readonly attribute optional nullable int16s ACCoilTemperature = 70; - attribute access(write: manage) optional enum8 ACCapacityformat = 71; + attribute access(write: manage) optional ACRefrigerantTypeEnum ACRefrigerantType = 66; + attribute access(write: manage) optional ACCompressorTypeEnum ACCompressorType = 67; + attribute access(write: manage) optional ACErrorCodeBitmap ACErrorCode = 68; + attribute access(write: manage) optional ACLouverPositionEnum ACLouverPosition = 69; + readonly attribute optional nullable temperature ACCoilTemperature = 70; + attribute access(write: manage) optional ACCapacityFormatEnum ACCapacityFormat = 71; + readonly attribute optional PresetTypeStruct presetTypes[] = 72; + readonly attribute optional ScheduleTypeStruct scheduleTypes[] = 73; + readonly attribute optional int8u numberOfPresets = 74; + readonly attribute optional int8u numberOfSchedules = 75; + readonly attribute optional int8u numberOfScheduleTransitions = 76; + readonly attribute optional nullable int8u numberOfScheduleTransitionPerDay = 77; + readonly attribute optional nullable octet_string<16> activePresetHandle = 78; + readonly attribute optional nullable octet_string<16> activeScheduleHandle = 79; + attribute access(write: manage) optional PresetStruct presets[] = 80; + attribute access(write: manage) optional ScheduleStruct schedules[] = 81; + readonly attribute optional boolean presetsSchedulesEditable = 82; + readonly attribute optional TemperatureSetpointHoldPolicyBitmap temperatureSetpointHoldPolicy = 83; + readonly attribute optional nullable epoch_s setpointHoldExpiryTimestamp = 84; + readonly attribute optional nullable QueuedPresetStruct queuedPreset = 85; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; readonly attribute event_id eventList[] = 65530; @@ -5302,37 +5487,79 @@ client cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustMode mode = 0; + SetpointAdjustModeEnum mode = 0; int8s amount = 1; } response struct GetWeeklyScheduleResponse = 0 { int8u numberOfTransitionsForSequence = 0; - DayOfWeek dayOfWeekForSequence = 1; - ModeForSequence modeForSequence = 2; - ThermostatScheduleTransition transitions[] = 3; + DayOfWeekBitmap dayOfWeekforSequence = 1; + ModeForSequenceBitmap modeForSequence = 2; + ThermostatScheduleTransitionStruct transitions[] = 3; } request struct SetWeeklyScheduleRequest { int8u numberOfTransitionsForSequence = 0; - DayOfWeek dayOfWeekForSequence = 1; - ModeForSequence modeForSequence = 2; - ThermostatScheduleTransition transitions[] = 3; + DayOfWeekBitmap dayOfWeekforSequence = 1; + ModeForSequenceBitmap modeForSequence = 2; + ThermostatScheduleTransitionStruct transitions[] = 3; + } + + response struct GetRelayStatusLogResponse = 1 { + int16u timeOfDay = 0; + RelayStateBitmap relayStatus = 1; + nullable temperature localTemperature = 2; + nullable int8u humidityInPercentage = 3; + temperature setPoint = 4; + int16u unreadEntries = 5; } request struct GetWeeklyScheduleRequest { - DayOfWeek daysToReturn = 0; - ModeForSequence modeToReturn = 1; + DayOfWeekBitmap daysToReturn = 0; + ModeForSequenceBitmap modeToReturn = 1; + } + + request struct SetActiveScheduleRequestRequest { + octet_string<16> scheduleHandle = 0; + } + + request struct SetActivePresetRequestRequest { + octet_string<16> presetHandle = 0; + optional int16u delayMinutes = 1; + } + + request struct StartPresetsSchedulesEditRequestRequest { + int16u timeoutSeconds = 0; + } + + request struct SetTemperatureSetpointHoldPolicyRequest { + TemperatureSetpointHoldPolicyBitmap temperatureSetpointHoldPolicy = 0; } - /** Command description for SetpointRaiseLower */ + /** Upon receipt, the attributes for the indicated setpoint(s) SHALL have the amount specified in the Amount field added to them. If the resulting value is outside the limits imposed by */ command SetpointRaiseLower(SetpointRaiseLowerRequest): DefaultSuccess = 0; - /** Command description for SetWeeklySchedule */ + /** Upon receipt, the weekly schedule for updating setpoints SHALL be stored in the thermostat and SHOULD begin at the time of receipt. A status code SHALL be sent in response. */ command access(invoke: manage) SetWeeklySchedule(SetWeeklyScheduleRequest): DefaultSuccess = 1; - /** Command description for GetWeeklySchedule */ + /** Upon receipt, the unit SHOULD send in return the Get Weekly Schedule Response command. The Days to Return and Mode to Return fields are defined as bitmask for the flexibility to support multiple days and multiple modes within one command. If thermostat cannot handle incoming command with multiple days and/or multiple modes within one command, it SHALL send default response of INVALID_COMMAND in return. */ command GetWeeklySchedule(GetWeeklyScheduleRequest): GetWeeklyScheduleResponse = 2; - /** The Clear Weekly Schedule command is used to clear the weekly schedule. */ + /** This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. */ command access(invoke: manage) ClearWeeklySchedule(): DefaultSuccess = 3; + /** This command is used to query the thermostat internal relay status log. This command has no payload. */ + command GetRelayStatusLog(): GetRelayStatusLogResponse = 4; + /** Upon receipt, if the */ + command SetActiveScheduleRequest(SetActiveScheduleRequestRequest): DefaultSuccess = 5; + /** Upon receipt, this SHALL set the thermostat */ + command SetActivePresetRequest(SetActivePresetRequestRequest): DefaultSuccess = 6; + /** Upon receipt, this SHALL attempt to enable editing of the */ + command access(invoke: manage) StartPresetsSchedulesEditRequest(StartPresetsSchedulesEditRequestRequest): DefaultSuccess = 7; + /** Upon receipt, this SHALL attempt to cancel any active editing of the */ + command access(invoke: manage) CancelPresetsSchedulesEditRequest(): DefaultSuccess = 8; + /** Upon receipt, this SHALL attempt to commit any pending changes to the */ + command access(invoke: manage) CommitPresetsSchedulesRequest(): DefaultSuccess = 9; + /** This command is sent to cancel a queued preset specified by */ + command access(invoke: manage) CancelSetActivePresetRequest(): DefaultSuccess = 10; + /** This command is sent to set the */ + command SetTemperatureSetpointHoldPolicy(SetTemperatureSetpointHoldPolicyRequest): DefaultSuccess = 11; } /** An interface for controlling a fan in a heating/cooling system. */ diff --git a/src/controller/java/generated/java/chip/devicecontroller/ChipClusters.java b/src/controller/java/generated/java/chip/devicecontroller/ChipClusters.java index 6a3327b98b45ed..f0ea725da88145 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/ChipClusters.java +++ b/src/controller/java/generated/java/chip/devicecontroller/ChipClusters.java @@ -32790,7 +32790,6 @@ public static class ThermostatCluster extends BaseChipCluster { private static final long ABS_MAX_COOL_SETPOINT_LIMIT_ATTRIBUTE_ID = 6L; private static final long P_I_COOLING_DEMAND_ATTRIBUTE_ID = 7L; private static final long P_I_HEATING_DEMAND_ATTRIBUTE_ID = 8L; - private static final long H_V_A_C_SYSTEM_TYPE_CONFIGURATION_ATTRIBUTE_ID = 9L; private static final long LOCAL_TEMPERATURE_CALIBRATION_ATTRIBUTE_ID = 16L; private static final long OCCUPIED_COOLING_SETPOINT_ATTRIBUTE_ID = 17L; private static final long OCCUPIED_HEATING_SETPOINT_ATTRIBUTE_ID = 18L; @@ -32804,6 +32803,7 @@ public static class ThermostatCluster extends BaseChipCluster { private static final long REMOTE_SENSING_ATTRIBUTE_ID = 26L; private static final long CONTROL_SEQUENCE_OF_OPERATION_ATTRIBUTE_ID = 27L; private static final long SYSTEM_MODE_ATTRIBUTE_ID = 28L; + private static final long ALARM_MASK_ATTRIBUTE_ID = 29L; private static final long THERMOSTAT_RUNNING_MODE_ATTRIBUTE_ID = 30L; private static final long START_OF_WEEK_ATTRIBUTE_ID = 32L; private static final long NUMBER_OF_WEEKLY_TRANSITIONS_ATTRIBUTE_ID = 33L; @@ -32829,7 +32829,21 @@ public static class ThermostatCluster extends BaseChipCluster { private static final long A_C_ERROR_CODE_ATTRIBUTE_ID = 68L; private static final long A_C_LOUVER_POSITION_ATTRIBUTE_ID = 69L; private static final long A_C_COIL_TEMPERATURE_ATTRIBUTE_ID = 70L; - private static final long A_C_CAPACITYFORMAT_ATTRIBUTE_ID = 71L; + private static final long A_C_CAPACITY_FORMAT_ATTRIBUTE_ID = 71L; + private static final long PRESET_TYPES_ATTRIBUTE_ID = 72L; + private static final long SCHEDULE_TYPES_ATTRIBUTE_ID = 73L; + private static final long NUMBER_OF_PRESETS_ATTRIBUTE_ID = 74L; + private static final long NUMBER_OF_SCHEDULES_ATTRIBUTE_ID = 75L; + private static final long NUMBER_OF_SCHEDULE_TRANSITIONS_ATTRIBUTE_ID = 76L; + private static final long NUMBER_OF_SCHEDULE_TRANSITION_PER_DAY_ATTRIBUTE_ID = 77L; + private static final long ACTIVE_PRESET_HANDLE_ATTRIBUTE_ID = 78L; + private static final long ACTIVE_SCHEDULE_HANDLE_ATTRIBUTE_ID = 79L; + private static final long PRESETS_ATTRIBUTE_ID = 80L; + private static final long SCHEDULES_ATTRIBUTE_ID = 81L; + private static final long PRESETS_SCHEDULES_EDITABLE_ATTRIBUTE_ID = 82L; + private static final long TEMPERATURE_SETPOINT_HOLD_POLICY_ATTRIBUTE_ID = 83L; + private static final long SETPOINT_HOLD_EXPIRY_TIMESTAMP_ATTRIBUTE_ID = 84L; + private static final long QUEUED_PRESET_ATTRIBUTE_ID = 85L; private static final long GENERATED_COMMAND_LIST_ATTRIBUTE_ID = 65528L; private static final long ACCEPTED_COMMAND_LIST_ATTRIBUTE_ID = 65529L; private static final long EVENT_LIST_ATTRIBUTE_ID = 65530L; @@ -32871,11 +32885,11 @@ public void onResponse(StructType invokeStructValue) { }}, commandId, value, timedInvokeTimeoutMs); } - public void setWeeklySchedule(DefaultClusterCallback callback, Integer numberOfTransitionsForSequence, Integer dayOfWeekForSequence, Integer modeForSequence, ArrayList transitions) { - setWeeklySchedule(callback, numberOfTransitionsForSequence, dayOfWeekForSequence, modeForSequence, transitions, 0); + public void setWeeklySchedule(DefaultClusterCallback callback, Integer numberOfTransitionsForSequence, Integer dayOfWeekforSequence, Integer modeForSequence, ArrayList transitions) { + setWeeklySchedule(callback, numberOfTransitionsForSequence, dayOfWeekforSequence, modeForSequence, transitions, 0); } - public void setWeeklySchedule(DefaultClusterCallback callback, Integer numberOfTransitionsForSequence, Integer dayOfWeekForSequence, Integer modeForSequence, ArrayList transitions, int timedInvokeTimeoutMs) { + public void setWeeklySchedule(DefaultClusterCallback callback, Integer numberOfTransitionsForSequence, Integer dayOfWeekforSequence, Integer modeForSequence, ArrayList transitions, int timedInvokeTimeoutMs) { final long commandId = 1L; ArrayList elements = new ArrayList<>(); @@ -32883,9 +32897,9 @@ public void setWeeklySchedule(DefaultClusterCallback callback, Integer numberOfT BaseTLVType numberOfTransitionsForSequencetlvValue = new UIntType(numberOfTransitionsForSequence); elements.add(new StructElement(numberOfTransitionsForSequenceFieldID, numberOfTransitionsForSequencetlvValue)); - final long dayOfWeekForSequenceFieldID = 1L; - BaseTLVType dayOfWeekForSequencetlvValue = new UIntType(dayOfWeekForSequence); - elements.add(new StructElement(dayOfWeekForSequenceFieldID, dayOfWeekForSequencetlvValue)); + final long dayOfWeekforSequenceFieldID = 1L; + BaseTLVType dayOfWeekforSequencetlvValue = new UIntType(dayOfWeekforSequence); + elements.add(new StructElement(dayOfWeekforSequenceFieldID, dayOfWeekforSequencetlvValue)); final long modeForSequenceFieldID = 2L; BaseTLVType modeForSequencetlvValue = new UIntType(modeForSequence); @@ -32925,22 +32939,22 @@ public void getWeeklySchedule(GetWeeklyScheduleResponseCallback callback, Intege public void onResponse(StructType invokeStructValue) { final long numberOfTransitionsForSequenceFieldID = 0L; Integer numberOfTransitionsForSequence = null; - final long dayOfWeekForSequenceFieldID = 1L; - Integer dayOfWeekForSequence = null; + final long dayOfWeekforSequenceFieldID = 1L; + Integer dayOfWeekforSequence = null; final long modeForSequenceFieldID = 2L; Integer modeForSequence = null; final long transitionsFieldID = 3L; - ArrayList transitions = null; + ArrayList transitions = null; for (StructElement element: invokeStructValue.value()) { if (element.contextTagNum() == numberOfTransitionsForSequenceFieldID) { if (element.value(BaseTLVType.class).type() == TLVType.UInt) { UIntType castingValue = element.value(UIntType.class); numberOfTransitionsForSequence = castingValue.value(Integer.class); } - } else if (element.contextTagNum() == dayOfWeekForSequenceFieldID) { + } else if (element.contextTagNum() == dayOfWeekforSequenceFieldID) { if (element.value(BaseTLVType.class).type() == TLVType.UInt) { UIntType castingValue = element.value(UIntType.class); - dayOfWeekForSequence = castingValue.value(Integer.class); + dayOfWeekforSequence = castingValue.value(Integer.class); } } else if (element.contextTagNum() == modeForSequenceFieldID) { if (element.value(BaseTLVType.class).type() == TLVType.UInt) { @@ -32950,11 +32964,11 @@ public void onResponse(StructType invokeStructValue) { } else if (element.contextTagNum() == transitionsFieldID) { if (element.value(BaseTLVType.class).type() == TLVType.Array) { ArrayType castingValue = element.value(ArrayType.class); - transitions = castingValue.map((elementcastingValue) -> ChipStructs.ThermostatClusterThermostatScheduleTransition.decodeTlv(elementcastingValue)); + transitions = castingValue.map((elementcastingValue) -> ChipStructs.ThermostatClusterThermostatScheduleTransitionStruct.decodeTlv(elementcastingValue)); } } } - callback.onSuccess(numberOfTransitionsForSequence, dayOfWeekForSequence, modeForSequence, transitions); + callback.onSuccess(numberOfTransitionsForSequence, dayOfWeekforSequence, modeForSequence, transitions); }}, commandId, value, timedInvokeTimeoutMs); } @@ -32974,8 +32988,205 @@ public void onResponse(StructType invokeStructValue) { }}, commandId, value, timedInvokeTimeoutMs); } + public void getRelayStatusLog(GetRelayStatusLogResponseCallback callback) { + getRelayStatusLog(callback, 0); + } + + public void getRelayStatusLog(GetRelayStatusLogResponseCallback callback, int timedInvokeTimeoutMs) { + final long commandId = 4L; + + ArrayList elements = new ArrayList<>(); + StructType value = new StructType(elements); + invoke(new InvokeCallbackImpl(callback) { + @Override + public void onResponse(StructType invokeStructValue) { + final long timeOfDayFieldID = 0L; + Integer timeOfDay = null; + final long relayStatusFieldID = 1L; + Integer relayStatus = null; + final long localTemperatureFieldID = 2L; + @Nullable Integer localTemperature = null; + final long humidityInPercentageFieldID = 3L; + @Nullable Integer humidityInPercentage = null; + final long setPointFieldID = 4L; + Integer setPoint = null; + final long unreadEntriesFieldID = 5L; + Integer unreadEntries = null; + for (StructElement element: invokeStructValue.value()) { + if (element.contextTagNum() == timeOfDayFieldID) { + if (element.value(BaseTLVType.class).type() == TLVType.UInt) { + UIntType castingValue = element.value(UIntType.class); + timeOfDay = castingValue.value(Integer.class); + } + } else if (element.contextTagNum() == relayStatusFieldID) { + if (element.value(BaseTLVType.class).type() == TLVType.UInt) { + UIntType castingValue = element.value(UIntType.class); + relayStatus = castingValue.value(Integer.class); + } + } else if (element.contextTagNum() == localTemperatureFieldID) { + if (element.value(BaseTLVType.class).type() == TLVType.Int) { + IntType castingValue = element.value(IntType.class); + localTemperature = castingValue.value(Integer.class); + } + } else if (element.contextTagNum() == humidityInPercentageFieldID) { + if (element.value(BaseTLVType.class).type() == TLVType.UInt) { + UIntType castingValue = element.value(UIntType.class); + humidityInPercentage = castingValue.value(Integer.class); + } + } else if (element.contextTagNum() == setPointFieldID) { + if (element.value(BaseTLVType.class).type() == TLVType.Int) { + IntType castingValue = element.value(IntType.class); + setPoint = castingValue.value(Integer.class); + } + } else if (element.contextTagNum() == unreadEntriesFieldID) { + if (element.value(BaseTLVType.class).type() == TLVType.UInt) { + UIntType castingValue = element.value(UIntType.class); + unreadEntries = castingValue.value(Integer.class); + } + } + } + callback.onSuccess(timeOfDay, relayStatus, localTemperature, humidityInPercentage, setPoint, unreadEntries); + }}, commandId, value, timedInvokeTimeoutMs); + } + + public void setActiveScheduleRequest(DefaultClusterCallback callback, byte[] scheduleHandle) { + setActiveScheduleRequest(callback, scheduleHandle, 0); + } + + public void setActiveScheduleRequest(DefaultClusterCallback callback, byte[] scheduleHandle, int timedInvokeTimeoutMs) { + final long commandId = 5L; + + ArrayList elements = new ArrayList<>(); + final long scheduleHandleFieldID = 0L; + BaseTLVType scheduleHandletlvValue = new ByteArrayType(scheduleHandle); + elements.add(new StructElement(scheduleHandleFieldID, scheduleHandletlvValue)); + + StructType value = new StructType(elements); + invoke(new InvokeCallbackImpl(callback) { + @Override + public void onResponse(StructType invokeStructValue) { + callback.onSuccess(); + }}, commandId, value, timedInvokeTimeoutMs); + } + + public void setActivePresetRequest(DefaultClusterCallback callback, byte[] presetHandle, Optional delayMinutes) { + setActivePresetRequest(callback, presetHandle, delayMinutes, 0); + } + + public void setActivePresetRequest(DefaultClusterCallback callback, byte[] presetHandle, Optional delayMinutes, int timedInvokeTimeoutMs) { + final long commandId = 6L; + + ArrayList elements = new ArrayList<>(); + final long presetHandleFieldID = 0L; + BaseTLVType presetHandletlvValue = new ByteArrayType(presetHandle); + elements.add(new StructElement(presetHandleFieldID, presetHandletlvValue)); + + final long delayMinutesFieldID = 1L; + BaseTLVType delayMinutestlvValue = delayMinutes.map((nonOptionaldelayMinutes) -> new UIntType(nonOptionaldelayMinutes)).orElse(new EmptyType()); + elements.add(new StructElement(delayMinutesFieldID, delayMinutestlvValue)); + + StructType value = new StructType(elements); + invoke(new InvokeCallbackImpl(callback) { + @Override + public void onResponse(StructType invokeStructValue) { + callback.onSuccess(); + }}, commandId, value, timedInvokeTimeoutMs); + } + + public void startPresetsSchedulesEditRequest(DefaultClusterCallback callback, Integer timeoutSeconds) { + startPresetsSchedulesEditRequest(callback, timeoutSeconds, 0); + } + + public void startPresetsSchedulesEditRequest(DefaultClusterCallback callback, Integer timeoutSeconds, int timedInvokeTimeoutMs) { + final long commandId = 7L; + + ArrayList elements = new ArrayList<>(); + final long timeoutSecondsFieldID = 0L; + BaseTLVType timeoutSecondstlvValue = new UIntType(timeoutSeconds); + elements.add(new StructElement(timeoutSecondsFieldID, timeoutSecondstlvValue)); + + StructType value = new StructType(elements); + invoke(new InvokeCallbackImpl(callback) { + @Override + public void onResponse(StructType invokeStructValue) { + callback.onSuccess(); + }}, commandId, value, timedInvokeTimeoutMs); + } + + public void cancelPresetsSchedulesEditRequest(DefaultClusterCallback callback) { + cancelPresetsSchedulesEditRequest(callback, 0); + } + + public void cancelPresetsSchedulesEditRequest(DefaultClusterCallback callback, int timedInvokeTimeoutMs) { + final long commandId = 8L; + + ArrayList elements = new ArrayList<>(); + StructType value = new StructType(elements); + invoke(new InvokeCallbackImpl(callback) { + @Override + public void onResponse(StructType invokeStructValue) { + callback.onSuccess(); + }}, commandId, value, timedInvokeTimeoutMs); + } + + public void commitPresetsSchedulesRequest(DefaultClusterCallback callback) { + commitPresetsSchedulesRequest(callback, 0); + } + + public void commitPresetsSchedulesRequest(DefaultClusterCallback callback, int timedInvokeTimeoutMs) { + final long commandId = 9L; + + ArrayList elements = new ArrayList<>(); + StructType value = new StructType(elements); + invoke(new InvokeCallbackImpl(callback) { + @Override + public void onResponse(StructType invokeStructValue) { + callback.onSuccess(); + }}, commandId, value, timedInvokeTimeoutMs); + } + + public void cancelSetActivePresetRequest(DefaultClusterCallback callback) { + cancelSetActivePresetRequest(callback, 0); + } + + public void cancelSetActivePresetRequest(DefaultClusterCallback callback, int timedInvokeTimeoutMs) { + final long commandId = 10L; + + ArrayList elements = new ArrayList<>(); + StructType value = new StructType(elements); + invoke(new InvokeCallbackImpl(callback) { + @Override + public void onResponse(StructType invokeStructValue) { + callback.onSuccess(); + }}, commandId, value, timedInvokeTimeoutMs); + } + + public void setTemperatureSetpointHoldPolicy(DefaultClusterCallback callback, Integer temperatureSetpointHoldPolicy) { + setTemperatureSetpointHoldPolicy(callback, temperatureSetpointHoldPolicy, 0); + } + + public void setTemperatureSetpointHoldPolicy(DefaultClusterCallback callback, Integer temperatureSetpointHoldPolicy, int timedInvokeTimeoutMs) { + final long commandId = 11L; + + ArrayList elements = new ArrayList<>(); + final long temperatureSetpointHoldPolicyFieldID = 0L; + BaseTLVType temperatureSetpointHoldPolicytlvValue = new UIntType(temperatureSetpointHoldPolicy); + elements.add(new StructElement(temperatureSetpointHoldPolicyFieldID, temperatureSetpointHoldPolicytlvValue)); + + StructType value = new StructType(elements); + invoke(new InvokeCallbackImpl(callback) { + @Override + public void onResponse(StructType invokeStructValue) { + callback.onSuccess(); + }}, commandId, value, timedInvokeTimeoutMs); + } + public interface GetWeeklyScheduleResponseCallback extends BaseClusterCallback { - void onSuccess(Integer numberOfTransitionsForSequence, Integer dayOfWeekForSequence, Integer modeForSequence, ArrayList transitions); + void onSuccess(Integer numberOfTransitionsForSequence, Integer dayOfWeekforSequence, Integer modeForSequence, ArrayList transitions); + } + + public interface GetRelayStatusLogResponseCallback extends BaseClusterCallback { + void onSuccess(Integer timeOfDay, Integer relayStatus, @Nullable Integer localTemperature, @Nullable Integer humidityInPercentage, Integer setPoint, Integer unreadEntries); } public interface LocalTemperatureAttributeCallback extends BaseAttributeCallback { @@ -33022,6 +33233,42 @@ public interface ACCoilTemperatureAttributeCallback extends BaseAttributeCallbac void onSuccess(@Nullable Integer value); } + public interface PresetTypesAttributeCallback extends BaseAttributeCallback { + void onSuccess(List value); + } + + public interface ScheduleTypesAttributeCallback extends BaseAttributeCallback { + void onSuccess(List value); + } + + public interface NumberOfScheduleTransitionPerDayAttributeCallback extends BaseAttributeCallback { + void onSuccess(@Nullable Integer value); + } + + public interface ActivePresetHandleAttributeCallback extends BaseAttributeCallback { + void onSuccess(@Nullable byte[] value); + } + + public interface ActiveScheduleHandleAttributeCallback extends BaseAttributeCallback { + void onSuccess(@Nullable byte[] value); + } + + public interface PresetsAttributeCallback extends BaseAttributeCallback { + void onSuccess(List value); + } + + public interface SchedulesAttributeCallback extends BaseAttributeCallback { + void onSuccess(List value); + } + + public interface SetpointHoldExpiryTimestampAttributeCallback extends BaseAttributeCallback { + void onSuccess(@Nullable Long value); + } + + public interface QueuedPresetAttributeCallback extends BaseAttributeCallback { + void onSuccess(@Nullable ChipStructs.ThermostatClusterQueuedPresetStruct value); + } + public interface GeneratedCommandListAttributeCallback extends BaseAttributeCallback { void onSuccess(List value); } @@ -33263,40 +33510,6 @@ public void onSuccess(byte[] tlv) { }, P_I_HEATING_DEMAND_ATTRIBUTE_ID, minInterval, maxInterval); } - public void readHVACSystemTypeConfigurationAttribute( - IntegerAttributeCallback callback) { - ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, H_V_A_C_SYSTEM_TYPE_CONFIGURATION_ATTRIBUTE_ID); - - readAttribute(new ReportCallbackImpl(callback, path) { - @Override - public void onSuccess(byte[] tlv) { - Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); - callback.onSuccess(value); - } - }, H_V_A_C_SYSTEM_TYPE_CONFIGURATION_ATTRIBUTE_ID, true); - } - - public void writeHVACSystemTypeConfigurationAttribute(DefaultClusterCallback callback, Integer value) { - writeHVACSystemTypeConfigurationAttribute(callback, value, 0); - } - - public void writeHVACSystemTypeConfigurationAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - BaseTLVType tlvValue = new UIntType(value); - writeAttribute(new WriteAttributesCallbackImpl(callback), H_V_A_C_SYSTEM_TYPE_CONFIGURATION_ATTRIBUTE_ID, tlvValue, timedWriteTimeoutMs); - } - - public void subscribeHVACSystemTypeConfigurationAttribute( - IntegerAttributeCallback callback, int minInterval, int maxInterval) { - ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, H_V_A_C_SYSTEM_TYPE_CONFIGURATION_ATTRIBUTE_ID); - - subscribeAttribute(new ReportCallbackImpl(callback, path) { - @Override - public void onSuccess(byte[] tlv) { - Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); - } - }, H_V_A_C_SYSTEM_TYPE_CONFIGURATION_ATTRIBUTE_ID, minInterval, maxInterval); - } - public void readLocalTemperatureCalibrationAttribute( IntegerAttributeCallback callback) { ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, LOCAL_TEMPERATURE_CALIBRATION_ATTRIBUTE_ID); @@ -33739,6 +33952,31 @@ public void onSuccess(byte[] tlv) { }, SYSTEM_MODE_ATTRIBUTE_ID, minInterval, maxInterval); } + public void readAlarmMaskAttribute( + IntegerAttributeCallback callback) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, ALARM_MASK_ATTRIBUTE_ID); + + readAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + callback.onSuccess(value); + } + }, ALARM_MASK_ATTRIBUTE_ID, true); + } + + public void subscribeAlarmMaskAttribute( + IntegerAttributeCallback callback, int minInterval, int maxInterval) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, ALARM_MASK_ATTRIBUTE_ID); + + subscribeAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + } + }, ALARM_MASK_ATTRIBUTE_ID, minInterval, maxInterval); + } + public void readThermostatRunningModeAttribute( IntegerAttributeCallback callback) { ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, THERMOSTAT_RUNNING_MODE_ATTRIBUTE_ID); @@ -34472,9 +34710,9 @@ public void onSuccess(byte[] tlv) { }, A_C_COIL_TEMPERATURE_ATTRIBUTE_ID, minInterval, maxInterval); } - public void readACCapacityformatAttribute( + public void readACCapacityFormatAttribute( IntegerAttributeCallback callback) { - ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, A_C_CAPACITYFORMAT_ATTRIBUTE_ID); + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, A_C_CAPACITY_FORMAT_ATTRIBUTE_ID); readAttribute(new ReportCallbackImpl(callback, path) { @Override @@ -34482,28 +34720,396 @@ public void onSuccess(byte[] tlv) { Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); callback.onSuccess(value); } - }, A_C_CAPACITYFORMAT_ATTRIBUTE_ID, true); + }, A_C_CAPACITY_FORMAT_ATTRIBUTE_ID, true); } - public void writeACCapacityformatAttribute(DefaultClusterCallback callback, Integer value) { - writeACCapacityformatAttribute(callback, value, 0); + public void writeACCapacityFormatAttribute(DefaultClusterCallback callback, Integer value) { + writeACCapacityFormatAttribute(callback, value, 0); } - public void writeACCapacityformatAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { + public void writeACCapacityFormatAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { BaseTLVType tlvValue = new UIntType(value); - writeAttribute(new WriteAttributesCallbackImpl(callback), A_C_CAPACITYFORMAT_ATTRIBUTE_ID, tlvValue, timedWriteTimeoutMs); + writeAttribute(new WriteAttributesCallbackImpl(callback), A_C_CAPACITY_FORMAT_ATTRIBUTE_ID, tlvValue, timedWriteTimeoutMs); + } + + public void subscribeACCapacityFormatAttribute( + IntegerAttributeCallback callback, int minInterval, int maxInterval) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, A_C_CAPACITY_FORMAT_ATTRIBUTE_ID); + + subscribeAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + } + }, A_C_CAPACITY_FORMAT_ATTRIBUTE_ID, minInterval, maxInterval); + } + + public void readPresetTypesAttribute( + PresetTypesAttributeCallback callback) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, PRESET_TYPES_ATTRIBUTE_ID); + + readAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + List value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + callback.onSuccess(value); + } + }, PRESET_TYPES_ATTRIBUTE_ID, true); + } + + public void subscribePresetTypesAttribute( + PresetTypesAttributeCallback callback, int minInterval, int maxInterval) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, PRESET_TYPES_ATTRIBUTE_ID); + + subscribeAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + List value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + } + }, PRESET_TYPES_ATTRIBUTE_ID, minInterval, maxInterval); + } + + public void readScheduleTypesAttribute( + ScheduleTypesAttributeCallback callback) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, SCHEDULE_TYPES_ATTRIBUTE_ID); + + readAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + List value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + callback.onSuccess(value); + } + }, SCHEDULE_TYPES_ATTRIBUTE_ID, true); + } + + public void subscribeScheduleTypesAttribute( + ScheduleTypesAttributeCallback callback, int minInterval, int maxInterval) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, SCHEDULE_TYPES_ATTRIBUTE_ID); + + subscribeAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + List value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + } + }, SCHEDULE_TYPES_ATTRIBUTE_ID, minInterval, maxInterval); + } + + public void readNumberOfPresetsAttribute( + IntegerAttributeCallback callback) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, NUMBER_OF_PRESETS_ATTRIBUTE_ID); + + readAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + callback.onSuccess(value); + } + }, NUMBER_OF_PRESETS_ATTRIBUTE_ID, true); + } + + public void subscribeNumberOfPresetsAttribute( + IntegerAttributeCallback callback, int minInterval, int maxInterval) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, NUMBER_OF_PRESETS_ATTRIBUTE_ID); + + subscribeAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + } + }, NUMBER_OF_PRESETS_ATTRIBUTE_ID, minInterval, maxInterval); + } + + public void readNumberOfSchedulesAttribute( + IntegerAttributeCallback callback) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, NUMBER_OF_SCHEDULES_ATTRIBUTE_ID); + + readAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + callback.onSuccess(value); + } + }, NUMBER_OF_SCHEDULES_ATTRIBUTE_ID, true); + } + + public void subscribeNumberOfSchedulesAttribute( + IntegerAttributeCallback callback, int minInterval, int maxInterval) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, NUMBER_OF_SCHEDULES_ATTRIBUTE_ID); + + subscribeAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + } + }, NUMBER_OF_SCHEDULES_ATTRIBUTE_ID, minInterval, maxInterval); + } + + public void readNumberOfScheduleTransitionsAttribute( + IntegerAttributeCallback callback) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, NUMBER_OF_SCHEDULE_TRANSITIONS_ATTRIBUTE_ID); + + readAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + callback.onSuccess(value); + } + }, NUMBER_OF_SCHEDULE_TRANSITIONS_ATTRIBUTE_ID, true); + } + + public void subscribeNumberOfScheduleTransitionsAttribute( + IntegerAttributeCallback callback, int minInterval, int maxInterval) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, NUMBER_OF_SCHEDULE_TRANSITIONS_ATTRIBUTE_ID); + + subscribeAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + } + }, NUMBER_OF_SCHEDULE_TRANSITIONS_ATTRIBUTE_ID, minInterval, maxInterval); + } + + public void readNumberOfScheduleTransitionPerDayAttribute( + NumberOfScheduleTransitionPerDayAttributeCallback callback) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, NUMBER_OF_SCHEDULE_TRANSITION_PER_DAY_ATTRIBUTE_ID); + + readAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + @Nullable Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + callback.onSuccess(value); + } + }, NUMBER_OF_SCHEDULE_TRANSITION_PER_DAY_ATTRIBUTE_ID, true); + } + + public void subscribeNumberOfScheduleTransitionPerDayAttribute( + NumberOfScheduleTransitionPerDayAttributeCallback callback, int minInterval, int maxInterval) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, NUMBER_OF_SCHEDULE_TRANSITION_PER_DAY_ATTRIBUTE_ID); + + subscribeAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + @Nullable Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + } + }, NUMBER_OF_SCHEDULE_TRANSITION_PER_DAY_ATTRIBUTE_ID, minInterval, maxInterval); + } + + public void readActivePresetHandleAttribute( + ActivePresetHandleAttributeCallback callback) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, ACTIVE_PRESET_HANDLE_ATTRIBUTE_ID); + + readAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + @Nullable byte[] value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + callback.onSuccess(value); + } + }, ACTIVE_PRESET_HANDLE_ATTRIBUTE_ID, true); + } + + public void subscribeActivePresetHandleAttribute( + ActivePresetHandleAttributeCallback callback, int minInterval, int maxInterval) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, ACTIVE_PRESET_HANDLE_ATTRIBUTE_ID); + + subscribeAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + @Nullable byte[] value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + } + }, ACTIVE_PRESET_HANDLE_ATTRIBUTE_ID, minInterval, maxInterval); + } + + public void readActiveScheduleHandleAttribute( + ActiveScheduleHandleAttributeCallback callback) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, ACTIVE_SCHEDULE_HANDLE_ATTRIBUTE_ID); + + readAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + @Nullable byte[] value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + callback.onSuccess(value); + } + }, ACTIVE_SCHEDULE_HANDLE_ATTRIBUTE_ID, true); + } + + public void subscribeActiveScheduleHandleAttribute( + ActiveScheduleHandleAttributeCallback callback, int minInterval, int maxInterval) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, ACTIVE_SCHEDULE_HANDLE_ATTRIBUTE_ID); + + subscribeAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + @Nullable byte[] value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + } + }, ACTIVE_SCHEDULE_HANDLE_ATTRIBUTE_ID, minInterval, maxInterval); + } + + public void readPresetsAttribute( + PresetsAttributeCallback callback) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, PRESETS_ATTRIBUTE_ID); + + readAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + List value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + callback.onSuccess(value); + } + }, PRESETS_ATTRIBUTE_ID, true); + } + + public void writePresetsAttribute(DefaultClusterCallback callback, ArrayList value) { + writePresetsAttribute(callback, value, 0); + } + + public void writePresetsAttribute(DefaultClusterCallback callback, ArrayList value, int timedWriteTimeoutMs) { + BaseTLVType tlvValue = ArrayType.generateArrayType(value, (elementvalue) -> elementvalue.encodeTlv()); + writeAttribute(new WriteAttributesCallbackImpl(callback), PRESETS_ATTRIBUTE_ID, tlvValue, timedWriteTimeoutMs); + } + + public void subscribePresetsAttribute( + PresetsAttributeCallback callback, int minInterval, int maxInterval) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, PRESETS_ATTRIBUTE_ID); + + subscribeAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + List value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + } + }, PRESETS_ATTRIBUTE_ID, minInterval, maxInterval); + } + + public void readSchedulesAttribute( + SchedulesAttributeCallback callback) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, SCHEDULES_ATTRIBUTE_ID); + + readAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + List value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + callback.onSuccess(value); + } + }, SCHEDULES_ATTRIBUTE_ID, true); + } + + public void writeSchedulesAttribute(DefaultClusterCallback callback, ArrayList value) { + writeSchedulesAttribute(callback, value, 0); + } + + public void writeSchedulesAttribute(DefaultClusterCallback callback, ArrayList value, int timedWriteTimeoutMs) { + BaseTLVType tlvValue = ArrayType.generateArrayType(value, (elementvalue) -> elementvalue.encodeTlv()); + writeAttribute(new WriteAttributesCallbackImpl(callback), SCHEDULES_ATTRIBUTE_ID, tlvValue, timedWriteTimeoutMs); + } + + public void subscribeSchedulesAttribute( + SchedulesAttributeCallback callback, int minInterval, int maxInterval) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, SCHEDULES_ATTRIBUTE_ID); + + subscribeAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + List value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + } + }, SCHEDULES_ATTRIBUTE_ID, minInterval, maxInterval); } - public void subscribeACCapacityformatAttribute( + public void readPresetsSchedulesEditableAttribute( + BooleanAttributeCallback callback) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, PRESETS_SCHEDULES_EDITABLE_ATTRIBUTE_ID); + + readAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + Boolean value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + callback.onSuccess(value); + } + }, PRESETS_SCHEDULES_EDITABLE_ATTRIBUTE_ID, true); + } + + public void subscribePresetsSchedulesEditableAttribute( + BooleanAttributeCallback callback, int minInterval, int maxInterval) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, PRESETS_SCHEDULES_EDITABLE_ATTRIBUTE_ID); + + subscribeAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + Boolean value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + } + }, PRESETS_SCHEDULES_EDITABLE_ATTRIBUTE_ID, minInterval, maxInterval); + } + + public void readTemperatureSetpointHoldPolicyAttribute( + IntegerAttributeCallback callback) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, TEMPERATURE_SETPOINT_HOLD_POLICY_ATTRIBUTE_ID); + + readAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + callback.onSuccess(value); + } + }, TEMPERATURE_SETPOINT_HOLD_POLICY_ATTRIBUTE_ID, true); + } + + public void subscribeTemperatureSetpointHoldPolicyAttribute( IntegerAttributeCallback callback, int minInterval, int maxInterval) { - ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, A_C_CAPACITYFORMAT_ATTRIBUTE_ID); + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, TEMPERATURE_SETPOINT_HOLD_POLICY_ATTRIBUTE_ID); subscribeAttribute(new ReportCallbackImpl(callback, path) { @Override public void onSuccess(byte[] tlv) { Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); } - }, A_C_CAPACITYFORMAT_ATTRIBUTE_ID, minInterval, maxInterval); + }, TEMPERATURE_SETPOINT_HOLD_POLICY_ATTRIBUTE_ID, minInterval, maxInterval); + } + + public void readSetpointHoldExpiryTimestampAttribute( + SetpointHoldExpiryTimestampAttributeCallback callback) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, SETPOINT_HOLD_EXPIRY_TIMESTAMP_ATTRIBUTE_ID); + + readAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + @Nullable Long value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + callback.onSuccess(value); + } + }, SETPOINT_HOLD_EXPIRY_TIMESTAMP_ATTRIBUTE_ID, true); + } + + public void subscribeSetpointHoldExpiryTimestampAttribute( + SetpointHoldExpiryTimestampAttributeCallback callback, int minInterval, int maxInterval) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, SETPOINT_HOLD_EXPIRY_TIMESTAMP_ATTRIBUTE_ID); + + subscribeAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + @Nullable Long value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + } + }, SETPOINT_HOLD_EXPIRY_TIMESTAMP_ATTRIBUTE_ID, minInterval, maxInterval); + } + + public void readQueuedPresetAttribute( + QueuedPresetAttributeCallback callback) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, QUEUED_PRESET_ATTRIBUTE_ID); + + readAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + @Nullable ChipStructs.ThermostatClusterQueuedPresetStruct value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + callback.onSuccess(value); + } + }, QUEUED_PRESET_ATTRIBUTE_ID, true); + } + + public void subscribeQueuedPresetAttribute( + QueuedPresetAttributeCallback callback, int minInterval, int maxInterval) { + ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, QUEUED_PRESET_ATTRIBUTE_ID); + + subscribeAttribute(new ReportCallbackImpl(callback, path) { + @Override + public void onSuccess(byte[] tlv) { + @Nullable ChipStructs.ThermostatClusterQueuedPresetStruct value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv); + } + }, QUEUED_PRESET_ATTRIBUTE_ID, minInterval, maxInterval); } public void readGeneratedCommandListAttribute( diff --git a/src/controller/java/generated/java/chip/devicecontroller/ChipStructs.java b/src/controller/java/generated/java/chip/devicecontroller/ChipStructs.java index 843b68318831b9..828c5e201b92c6 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/ChipStructs.java +++ b/src/controller/java/generated/java/chip/devicecontroller/ChipStructs.java @@ -6020,18 +6020,594 @@ public String toString() { return output.toString(); } } -public static class ThermostatClusterThermostatScheduleTransition { +public static class ThermostatClusterScheduleTransitionStruct { + public Integer dayOfWeek; public Integer transitionTime; - public @Nullable Integer heatSetpoint; - public @Nullable Integer coolSetpoint; + public Optional presetHandle; + public Optional systemMode; + public Optional coolingSetpoint; + public Optional heatingSetpoint; + private static final long DAY_OF_WEEK_ID = 0L; + private static final long TRANSITION_TIME_ID = 1L; + private static final long PRESET_HANDLE_ID = 2L; + private static final long SYSTEM_MODE_ID = 3L; + private static final long COOLING_SETPOINT_ID = 4L; + private static final long HEATING_SETPOINT_ID = 5L; + + public ThermostatClusterScheduleTransitionStruct( + Integer dayOfWeek, + Integer transitionTime, + Optional presetHandle, + Optional systemMode, + Optional coolingSetpoint, + Optional heatingSetpoint + ) { + this.dayOfWeek = dayOfWeek; + this.transitionTime = transitionTime; + this.presetHandle = presetHandle; + this.systemMode = systemMode; + this.coolingSetpoint = coolingSetpoint; + this.heatingSetpoint = heatingSetpoint; + } + + public StructType encodeTlv() { + ArrayList values = new ArrayList<>(); + values.add(new StructElement(DAY_OF_WEEK_ID, new UIntType(dayOfWeek))); + values.add(new StructElement(TRANSITION_TIME_ID, new UIntType(transitionTime))); + values.add(new StructElement(PRESET_HANDLE_ID, presetHandle.map((nonOptionalpresetHandle) -> new ByteArrayType(nonOptionalpresetHandle)).orElse(new EmptyType()))); + values.add(new StructElement(SYSTEM_MODE_ID, systemMode.map((nonOptionalsystemMode) -> new UIntType(nonOptionalsystemMode)).orElse(new EmptyType()))); + values.add(new StructElement(COOLING_SETPOINT_ID, coolingSetpoint.map((nonOptionalcoolingSetpoint) -> new IntType(nonOptionalcoolingSetpoint)).orElse(new EmptyType()))); + values.add(new StructElement(HEATING_SETPOINT_ID, heatingSetpoint.map((nonOptionalheatingSetpoint) -> new IntType(nonOptionalheatingSetpoint)).orElse(new EmptyType()))); + + return new StructType(values); + } + + public static ThermostatClusterScheduleTransitionStruct decodeTlv(BaseTLVType tlvValue) { + if (tlvValue == null || tlvValue.type() != TLVType.Struct) { + return null; + } + Integer dayOfWeek = null; + Integer transitionTime = null; + Optional presetHandle = Optional.empty(); + Optional systemMode = Optional.empty(); + Optional coolingSetpoint = Optional.empty(); + Optional heatingSetpoint = Optional.empty(); + for (StructElement element: ((StructType)tlvValue).value()) { + if (element.contextTagNum() == DAY_OF_WEEK_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.UInt) { + UIntType castingValue = element.value(UIntType.class); + dayOfWeek = castingValue.value(Integer.class); + } + } else if (element.contextTagNum() == TRANSITION_TIME_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.UInt) { + UIntType castingValue = element.value(UIntType.class); + transitionTime = castingValue.value(Integer.class); + } + } else if (element.contextTagNum() == PRESET_HANDLE_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.ByteArray) { + ByteArrayType castingValue = element.value(ByteArrayType.class); + presetHandle = Optional.of(castingValue.value(byte[].class)); + } + } else if (element.contextTagNum() == SYSTEM_MODE_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.UInt) { + UIntType castingValue = element.value(UIntType.class); + systemMode = Optional.of(castingValue.value(Integer.class)); + } + } else if (element.contextTagNum() == COOLING_SETPOINT_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.Int) { + IntType castingValue = element.value(IntType.class); + coolingSetpoint = Optional.of(castingValue.value(Integer.class)); + } + } else if (element.contextTagNum() == HEATING_SETPOINT_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.Int) { + IntType castingValue = element.value(IntType.class); + heatingSetpoint = Optional.of(castingValue.value(Integer.class)); + } + } + } + return new ThermostatClusterScheduleTransitionStruct( + dayOfWeek, + transitionTime, + presetHandle, + systemMode, + coolingSetpoint, + heatingSetpoint + ); + } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(); + output.append("ThermostatClusterScheduleTransitionStruct {\n"); + output.append("\tdayOfWeek: "); + output.append(dayOfWeek); + output.append("\n"); + output.append("\ttransitionTime: "); + output.append(transitionTime); + output.append("\n"); + output.append("\tpresetHandle: "); + output.append(presetHandle.isPresent() ? Arrays.toString(presetHandle.get()) : ""); + output.append("\n"); + output.append("\tsystemMode: "); + output.append(systemMode); + output.append("\n"); + output.append("\tcoolingSetpoint: "); + output.append(coolingSetpoint); + output.append("\n"); + output.append("\theatingSetpoint: "); + output.append(heatingSetpoint); + output.append("\n"); + output.append("}\n"); + return output.toString(); + } +} +public static class ThermostatClusterScheduleStruct { + public @Nullable byte[] scheduleHandle; + public Integer systemMode; + public Optional name; + public Optional presetHandle; + public ArrayList transitions; + public @Nullable Optional builtIn; + private static final long SCHEDULE_HANDLE_ID = 0L; + private static final long SYSTEM_MODE_ID = 1L; + private static final long NAME_ID = 2L; + private static final long PRESET_HANDLE_ID = 3L; + private static final long TRANSITIONS_ID = 4L; + private static final long BUILT_IN_ID = 5L; + + public ThermostatClusterScheduleStruct( + @Nullable byte[] scheduleHandle, + Integer systemMode, + Optional name, + Optional presetHandle, + ArrayList transitions, + @Nullable Optional builtIn + ) { + this.scheduleHandle = scheduleHandle; + this.systemMode = systemMode; + this.name = name; + this.presetHandle = presetHandle; + this.transitions = transitions; + this.builtIn = builtIn; + } + + public StructType encodeTlv() { + ArrayList values = new ArrayList<>(); + values.add(new StructElement(SCHEDULE_HANDLE_ID, scheduleHandle != null ? new ByteArrayType(scheduleHandle) : new NullType())); + values.add(new StructElement(SYSTEM_MODE_ID, new UIntType(systemMode))); + values.add(new StructElement(NAME_ID, name.map((nonOptionalname) -> new StringType(nonOptionalname)).orElse(new EmptyType()))); + values.add(new StructElement(PRESET_HANDLE_ID, presetHandle.map((nonOptionalpresetHandle) -> new ByteArrayType(nonOptionalpresetHandle)).orElse(new EmptyType()))); + values.add(new StructElement(TRANSITIONS_ID, ArrayType.generateArrayType(transitions, (elementtransitions) -> elementtransitions.encodeTlv()))); + values.add(new StructElement(BUILT_IN_ID, builtIn != null ? builtIn.map((nonOptionalbuiltIn) -> new BooleanType(nonOptionalbuiltIn)).orElse(new EmptyType()) : new NullType())); + + return new StructType(values); + } + + public static ThermostatClusterScheduleStruct decodeTlv(BaseTLVType tlvValue) { + if (tlvValue == null || tlvValue.type() != TLVType.Struct) { + return null; + } + @Nullable byte[] scheduleHandle = null; + Integer systemMode = null; + Optional name = Optional.empty(); + Optional presetHandle = Optional.empty(); + ArrayList transitions = null; + @Nullable Optional builtIn = null; + for (StructElement element: ((StructType)tlvValue).value()) { + if (element.contextTagNum() == SCHEDULE_HANDLE_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.ByteArray) { + ByteArrayType castingValue = element.value(ByteArrayType.class); + scheduleHandle = castingValue.value(byte[].class); + } + } else if (element.contextTagNum() == SYSTEM_MODE_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.UInt) { + UIntType castingValue = element.value(UIntType.class); + systemMode = castingValue.value(Integer.class); + } + } else if (element.contextTagNum() == NAME_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.String) { + StringType castingValue = element.value(StringType.class); + name = Optional.of(castingValue.value(String.class)); + } + } else if (element.contextTagNum() == PRESET_HANDLE_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.ByteArray) { + ByteArrayType castingValue = element.value(ByteArrayType.class); + presetHandle = Optional.of(castingValue.value(byte[].class)); + } + } else if (element.contextTagNum() == TRANSITIONS_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.Array) { + ArrayType castingValue = element.value(ArrayType.class); + transitions = castingValue.map((elementcastingValue) -> ChipStructs.ThermostatClusterScheduleTransitionStruct.decodeTlv(elementcastingValue)); + } + } else if (element.contextTagNum() == BUILT_IN_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.Boolean) { + BooleanType castingValue = element.value(BooleanType.class); + builtIn = Optional.of(castingValue.value(Boolean.class)); + } + } + } + return new ThermostatClusterScheduleStruct( + scheduleHandle, + systemMode, + name, + presetHandle, + transitions, + builtIn + ); + } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(); + output.append("ThermostatClusterScheduleStruct {\n"); + output.append("\tscheduleHandle: "); + output.append(Arrays.toString(scheduleHandle)); + output.append("\n"); + output.append("\tsystemMode: "); + output.append(systemMode); + output.append("\n"); + output.append("\tname: "); + output.append(name); + output.append("\n"); + output.append("\tpresetHandle: "); + output.append(presetHandle.isPresent() ? Arrays.toString(presetHandle.get()) : ""); + output.append("\n"); + output.append("\ttransitions: "); + output.append(transitions); + output.append("\n"); + output.append("\tbuiltIn: "); + output.append(builtIn); + output.append("\n"); + output.append("}\n"); + return output.toString(); + } +} +public static class ThermostatClusterPresetStruct { + public @Nullable byte[] presetHandle; + public Integer presetScenario; + public @Nullable Optional name; + public Optional coolingSetpoint; + public Optional heatingSetpoint; + public @Nullable Boolean builtIn; + private static final long PRESET_HANDLE_ID = 0L; + private static final long PRESET_SCENARIO_ID = 1L; + private static final long NAME_ID = 2L; + private static final long COOLING_SETPOINT_ID = 3L; + private static final long HEATING_SETPOINT_ID = 4L; + private static final long BUILT_IN_ID = 5L; + + public ThermostatClusterPresetStruct( + @Nullable byte[] presetHandle, + Integer presetScenario, + @Nullable Optional name, + Optional coolingSetpoint, + Optional heatingSetpoint, + @Nullable Boolean builtIn + ) { + this.presetHandle = presetHandle; + this.presetScenario = presetScenario; + this.name = name; + this.coolingSetpoint = coolingSetpoint; + this.heatingSetpoint = heatingSetpoint; + this.builtIn = builtIn; + } + + public StructType encodeTlv() { + ArrayList values = new ArrayList<>(); + values.add(new StructElement(PRESET_HANDLE_ID, presetHandle != null ? new ByteArrayType(presetHandle) : new NullType())); + values.add(new StructElement(PRESET_SCENARIO_ID, new UIntType(presetScenario))); + values.add(new StructElement(NAME_ID, name != null ? name.map((nonOptionalname) -> new StringType(nonOptionalname)).orElse(new EmptyType()) : new NullType())); + values.add(new StructElement(COOLING_SETPOINT_ID, coolingSetpoint.map((nonOptionalcoolingSetpoint) -> new IntType(nonOptionalcoolingSetpoint)).orElse(new EmptyType()))); + values.add(new StructElement(HEATING_SETPOINT_ID, heatingSetpoint.map((nonOptionalheatingSetpoint) -> new IntType(nonOptionalheatingSetpoint)).orElse(new EmptyType()))); + values.add(new StructElement(BUILT_IN_ID, builtIn != null ? new BooleanType(builtIn) : new NullType())); + + return new StructType(values); + } + + public static ThermostatClusterPresetStruct decodeTlv(BaseTLVType tlvValue) { + if (tlvValue == null || tlvValue.type() != TLVType.Struct) { + return null; + } + @Nullable byte[] presetHandle = null; + Integer presetScenario = null; + @Nullable Optional name = null; + Optional coolingSetpoint = Optional.empty(); + Optional heatingSetpoint = Optional.empty(); + @Nullable Boolean builtIn = null; + for (StructElement element: ((StructType)tlvValue).value()) { + if (element.contextTagNum() == PRESET_HANDLE_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.ByteArray) { + ByteArrayType castingValue = element.value(ByteArrayType.class); + presetHandle = castingValue.value(byte[].class); + } + } else if (element.contextTagNum() == PRESET_SCENARIO_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.UInt) { + UIntType castingValue = element.value(UIntType.class); + presetScenario = castingValue.value(Integer.class); + } + } else if (element.contextTagNum() == NAME_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.String) { + StringType castingValue = element.value(StringType.class); + name = Optional.of(castingValue.value(String.class)); + } + } else if (element.contextTagNum() == COOLING_SETPOINT_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.Int) { + IntType castingValue = element.value(IntType.class); + coolingSetpoint = Optional.of(castingValue.value(Integer.class)); + } + } else if (element.contextTagNum() == HEATING_SETPOINT_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.Int) { + IntType castingValue = element.value(IntType.class); + heatingSetpoint = Optional.of(castingValue.value(Integer.class)); + } + } else if (element.contextTagNum() == BUILT_IN_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.Boolean) { + BooleanType castingValue = element.value(BooleanType.class); + builtIn = castingValue.value(Boolean.class); + } + } + } + return new ThermostatClusterPresetStruct( + presetHandle, + presetScenario, + name, + coolingSetpoint, + heatingSetpoint, + builtIn + ); + } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(); + output.append("ThermostatClusterPresetStruct {\n"); + output.append("\tpresetHandle: "); + output.append(Arrays.toString(presetHandle)); + output.append("\n"); + output.append("\tpresetScenario: "); + output.append(presetScenario); + output.append("\n"); + output.append("\tname: "); + output.append(name); + output.append("\n"); + output.append("\tcoolingSetpoint: "); + output.append(coolingSetpoint); + output.append("\n"); + output.append("\theatingSetpoint: "); + output.append(heatingSetpoint); + output.append("\n"); + output.append("\tbuiltIn: "); + output.append(builtIn); + output.append("\n"); + output.append("}\n"); + return output.toString(); + } +} +public static class ThermostatClusterPresetTypeStruct { + public Integer presetScenario; + public Integer numberOfPresets; + public Integer presetTypeFeatures; + private static final long PRESET_SCENARIO_ID = 0L; + private static final long NUMBER_OF_PRESETS_ID = 1L; + private static final long PRESET_TYPE_FEATURES_ID = 2L; + + public ThermostatClusterPresetTypeStruct( + Integer presetScenario, + Integer numberOfPresets, + Integer presetTypeFeatures + ) { + this.presetScenario = presetScenario; + this.numberOfPresets = numberOfPresets; + this.presetTypeFeatures = presetTypeFeatures; + } + + public StructType encodeTlv() { + ArrayList values = new ArrayList<>(); + values.add(new StructElement(PRESET_SCENARIO_ID, new UIntType(presetScenario))); + values.add(new StructElement(NUMBER_OF_PRESETS_ID, new UIntType(numberOfPresets))); + values.add(new StructElement(PRESET_TYPE_FEATURES_ID, new UIntType(presetTypeFeatures))); + + return new StructType(values); + } + + public static ThermostatClusterPresetTypeStruct decodeTlv(BaseTLVType tlvValue) { + if (tlvValue == null || tlvValue.type() != TLVType.Struct) { + return null; + } + Integer presetScenario = null; + Integer numberOfPresets = null; + Integer presetTypeFeatures = null; + for (StructElement element: ((StructType)tlvValue).value()) { + if (element.contextTagNum() == PRESET_SCENARIO_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.UInt) { + UIntType castingValue = element.value(UIntType.class); + presetScenario = castingValue.value(Integer.class); + } + } else if (element.contextTagNum() == NUMBER_OF_PRESETS_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.UInt) { + UIntType castingValue = element.value(UIntType.class); + numberOfPresets = castingValue.value(Integer.class); + } + } else if (element.contextTagNum() == PRESET_TYPE_FEATURES_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.UInt) { + UIntType castingValue = element.value(UIntType.class); + presetTypeFeatures = castingValue.value(Integer.class); + } + } + } + return new ThermostatClusterPresetTypeStruct( + presetScenario, + numberOfPresets, + presetTypeFeatures + ); + } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(); + output.append("ThermostatClusterPresetTypeStruct {\n"); + output.append("\tpresetScenario: "); + output.append(presetScenario); + output.append("\n"); + output.append("\tnumberOfPresets: "); + output.append(numberOfPresets); + output.append("\n"); + output.append("\tpresetTypeFeatures: "); + output.append(presetTypeFeatures); + output.append("\n"); + output.append("}\n"); + return output.toString(); + } +} +public static class ThermostatClusterQueuedPresetStruct { + public @Nullable byte[] presetHandle; + public @Nullable Long transitionTimestamp; + private static final long PRESET_HANDLE_ID = 0L; + private static final long TRANSITION_TIMESTAMP_ID = 1L; + + public ThermostatClusterQueuedPresetStruct( + @Nullable byte[] presetHandle, + @Nullable Long transitionTimestamp + ) { + this.presetHandle = presetHandle; + this.transitionTimestamp = transitionTimestamp; + } + + public StructType encodeTlv() { + ArrayList values = new ArrayList<>(); + values.add(new StructElement(PRESET_HANDLE_ID, presetHandle != null ? new ByteArrayType(presetHandle) : new NullType())); + values.add(new StructElement(TRANSITION_TIMESTAMP_ID, transitionTimestamp != null ? new UIntType(transitionTimestamp) : new NullType())); + + return new StructType(values); + } + + public static ThermostatClusterQueuedPresetStruct decodeTlv(BaseTLVType tlvValue) { + if (tlvValue == null || tlvValue.type() != TLVType.Struct) { + return null; + } + @Nullable byte[] presetHandle = null; + @Nullable Long transitionTimestamp = null; + for (StructElement element: ((StructType)tlvValue).value()) { + if (element.contextTagNum() == PRESET_HANDLE_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.ByteArray) { + ByteArrayType castingValue = element.value(ByteArrayType.class); + presetHandle = castingValue.value(byte[].class); + } + } else if (element.contextTagNum() == TRANSITION_TIMESTAMP_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.UInt) { + UIntType castingValue = element.value(UIntType.class); + transitionTimestamp = castingValue.value(Long.class); + } + } + } + return new ThermostatClusterQueuedPresetStruct( + presetHandle, + transitionTimestamp + ); + } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(); + output.append("ThermostatClusterQueuedPresetStruct {\n"); + output.append("\tpresetHandle: "); + output.append(Arrays.toString(presetHandle)); + output.append("\n"); + output.append("\ttransitionTimestamp: "); + output.append(transitionTimestamp); + output.append("\n"); + output.append("}\n"); + return output.toString(); + } +} +public static class ThermostatClusterScheduleTypeStruct { + public Integer systemMode; + public Integer numberOfSchedules; + public Integer scheduleTypeFeatures; + private static final long SYSTEM_MODE_ID = 0L; + private static final long NUMBER_OF_SCHEDULES_ID = 1L; + private static final long SCHEDULE_TYPE_FEATURES_ID = 2L; + + public ThermostatClusterScheduleTypeStruct( + Integer systemMode, + Integer numberOfSchedules, + Integer scheduleTypeFeatures + ) { + this.systemMode = systemMode; + this.numberOfSchedules = numberOfSchedules; + this.scheduleTypeFeatures = scheduleTypeFeatures; + } + + public StructType encodeTlv() { + ArrayList values = new ArrayList<>(); + values.add(new StructElement(SYSTEM_MODE_ID, new UIntType(systemMode))); + values.add(new StructElement(NUMBER_OF_SCHEDULES_ID, new UIntType(numberOfSchedules))); + values.add(new StructElement(SCHEDULE_TYPE_FEATURES_ID, new UIntType(scheduleTypeFeatures))); + + return new StructType(values); + } + + public static ThermostatClusterScheduleTypeStruct decodeTlv(BaseTLVType tlvValue) { + if (tlvValue == null || tlvValue.type() != TLVType.Struct) { + return null; + } + Integer systemMode = null; + Integer numberOfSchedules = null; + Integer scheduleTypeFeatures = null; + for (StructElement element: ((StructType)tlvValue).value()) { + if (element.contextTagNum() == SYSTEM_MODE_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.UInt) { + UIntType castingValue = element.value(UIntType.class); + systemMode = castingValue.value(Integer.class); + } + } else if (element.contextTagNum() == NUMBER_OF_SCHEDULES_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.UInt) { + UIntType castingValue = element.value(UIntType.class); + numberOfSchedules = castingValue.value(Integer.class); + } + } else if (element.contextTagNum() == SCHEDULE_TYPE_FEATURES_ID) { + if (element.value(BaseTLVType.class).type() == TLVType.UInt) { + UIntType castingValue = element.value(UIntType.class); + scheduleTypeFeatures = castingValue.value(Integer.class); + } + } + } + return new ThermostatClusterScheduleTypeStruct( + systemMode, + numberOfSchedules, + scheduleTypeFeatures + ); + } + + @Override + public String toString() { + StringBuilder output = new StringBuilder(); + output.append("ThermostatClusterScheduleTypeStruct {\n"); + output.append("\tsystemMode: "); + output.append(systemMode); + output.append("\n"); + output.append("\tnumberOfSchedules: "); + output.append(numberOfSchedules); + output.append("\n"); + output.append("\tscheduleTypeFeatures: "); + output.append(scheduleTypeFeatures); + output.append("\n"); + output.append("}\n"); + return output.toString(); + } +} +public static class ThermostatClusterThermostatScheduleTransitionStruct { + public Integer transitionTime; + public Integer heatSetpoint; + public Integer coolSetpoint; private static final long TRANSITION_TIME_ID = 0L; private static final long HEAT_SETPOINT_ID = 1L; private static final long COOL_SETPOINT_ID = 2L; - public ThermostatClusterThermostatScheduleTransition( + public ThermostatClusterThermostatScheduleTransitionStruct( Integer transitionTime, - @Nullable Integer heatSetpoint, - @Nullable Integer coolSetpoint + Integer heatSetpoint, + Integer coolSetpoint ) { this.transitionTime = transitionTime; this.heatSetpoint = heatSetpoint; @@ -6041,19 +6617,19 @@ public ThermostatClusterThermostatScheduleTransition( public StructType encodeTlv() { ArrayList values = new ArrayList<>(); values.add(new StructElement(TRANSITION_TIME_ID, new UIntType(transitionTime))); - values.add(new StructElement(HEAT_SETPOINT_ID, heatSetpoint != null ? new IntType(heatSetpoint) : new NullType())); - values.add(new StructElement(COOL_SETPOINT_ID, coolSetpoint != null ? new IntType(coolSetpoint) : new NullType())); + values.add(new StructElement(HEAT_SETPOINT_ID, new IntType(heatSetpoint))); + values.add(new StructElement(COOL_SETPOINT_ID, new IntType(coolSetpoint))); return new StructType(values); } - public static ThermostatClusterThermostatScheduleTransition decodeTlv(BaseTLVType tlvValue) { + public static ThermostatClusterThermostatScheduleTransitionStruct decodeTlv(BaseTLVType tlvValue) { if (tlvValue == null || tlvValue.type() != TLVType.Struct) { return null; } Integer transitionTime = null; - @Nullable Integer heatSetpoint = null; - @Nullable Integer coolSetpoint = null; + Integer heatSetpoint = null; + Integer coolSetpoint = null; for (StructElement element: ((StructType)tlvValue).value()) { if (element.contextTagNum() == TRANSITION_TIME_ID) { if (element.value(BaseTLVType.class).type() == TLVType.UInt) { @@ -6072,7 +6648,7 @@ public static ThermostatClusterThermostatScheduleTransition decodeTlv(BaseTLVTyp } } } - return new ThermostatClusterThermostatScheduleTransition( + return new ThermostatClusterThermostatScheduleTransitionStruct( transitionTime, heatSetpoint, coolSetpoint @@ -6082,7 +6658,7 @@ public static ThermostatClusterThermostatScheduleTransition decodeTlv(BaseTLVTyp @Override public String toString() { StringBuilder output = new StringBuilder(); - output.append("ThermostatClusterThermostatScheduleTransition {\n"); + output.append("ThermostatClusterThermostatScheduleTransitionStruct {\n"); output.append("\ttransitionTime: "); output.append(transitionTime); output.append("\n"); diff --git a/src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java b/src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java index 89ea408254a0c7..7329c6c16e0eaa 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java +++ b/src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java @@ -10058,7 +10058,6 @@ public enum Attribute { AbsMaxCoolSetpointLimit(6L), PICoolingDemand(7L), PIHeatingDemand(8L), - HVACSystemTypeConfiguration(9L), LocalTemperatureCalibration(16L), OccupiedCoolingSetpoint(17L), OccupiedHeatingSetpoint(18L), @@ -10072,6 +10071,7 @@ public enum Attribute { RemoteSensing(26L), ControlSequenceOfOperation(27L), SystemMode(28L), + AlarmMask(29L), ThermostatRunningMode(30L), StartOfWeek(32L), NumberOfWeeklyTransitions(33L), @@ -10097,7 +10097,21 @@ public enum Attribute { ACErrorCode(68L), ACLouverPosition(69L), ACCoilTemperature(70L), - ACCapacityformat(71L), + ACCapacityFormat(71L), + PresetTypes(72L), + ScheduleTypes(73L), + NumberOfPresets(74L), + NumberOfSchedules(75L), + NumberOfScheduleTransitions(76L), + NumberOfScheduleTransitionPerDay(77L), + ActivePresetHandle(78L), + ActiveScheduleHandle(79L), + Presets(80L), + Schedules(81L), + PresetsSchedulesEditable(82L), + TemperatureSetpointHoldPolicy(83L), + SetpointHoldExpiryTimestamp(84L), + QueuedPreset(85L), GeneratedCommandList(65528L), AcceptedCommandList(65529L), EventList(65530L), @@ -10147,7 +10161,15 @@ public enum Command { SetpointRaiseLower(0L), SetWeeklySchedule(1L), GetWeeklySchedule(2L), - ClearWeeklySchedule(3L),; + ClearWeeklySchedule(3L), + GetRelayStatusLog(4L), + SetActiveScheduleRequest(5L), + SetActivePresetRequest(6L), + StartPresetsSchedulesEditRequest(7L), + CancelPresetsSchedulesEditRequest(8L), + CommitPresetsSchedulesRequest(9L), + CancelSetActivePresetRequest(10L), + SetTemperatureSetpointHoldPolicy(11L),; private final long id; Command(long id) { this.id = id; @@ -10182,7 +10204,7 @@ public static SetpointRaiseLowerCommandField value(int id) throws NoSuchFieldErr } throw new NoSuchFieldError(); } - }public enum SetWeeklyScheduleCommandField {NumberOfTransitionsForSequence(0),DayOfWeekForSequence(1),ModeForSequence(2),Transitions(3),; + }public enum SetWeeklyScheduleCommandField {NumberOfTransitionsForSequence(0),DayOfWeekforSequence(1),ModeForSequence(2),Transitions(3),; private final int id; SetWeeklyScheduleCommandField(int id) { this.id = id; @@ -10216,6 +10238,74 @@ public static GetWeeklyScheduleCommandField value(int id) throws NoSuchFieldErro } throw new NoSuchFieldError(); } + }public enum SetActiveScheduleRequestCommandField {ScheduleHandle(0),; + private final int id; + SetActiveScheduleRequestCommandField(int id) { + this.id = id; + } + + public int getID() { + return id; + } + public static SetActiveScheduleRequestCommandField value(int id) throws NoSuchFieldError { + for (SetActiveScheduleRequestCommandField field : SetActiveScheduleRequestCommandField.values()) { + if (field.getID() == id) { + return field; + } + } + throw new NoSuchFieldError(); + } + }public enum SetActivePresetRequestCommandField {PresetHandle(0),DelayMinutes(1),; + private final int id; + SetActivePresetRequestCommandField(int id) { + this.id = id; + } + + public int getID() { + return id; + } + public static SetActivePresetRequestCommandField value(int id) throws NoSuchFieldError { + for (SetActivePresetRequestCommandField field : SetActivePresetRequestCommandField.values()) { + if (field.getID() == id) { + return field; + } + } + throw new NoSuchFieldError(); + } + }public enum StartPresetsSchedulesEditRequestCommandField {TimeoutSeconds(0),; + private final int id; + StartPresetsSchedulesEditRequestCommandField(int id) { + this.id = id; + } + + public int getID() { + return id; + } + public static StartPresetsSchedulesEditRequestCommandField value(int id) throws NoSuchFieldError { + for (StartPresetsSchedulesEditRequestCommandField field : StartPresetsSchedulesEditRequestCommandField.values()) { + if (field.getID() == id) { + return field; + } + } + throw new NoSuchFieldError(); + } + }public enum SetTemperatureSetpointHoldPolicyCommandField {TemperatureSetpointHoldPolicy(0),; + private final int id; + SetTemperatureSetpointHoldPolicyCommandField(int id) { + this.id = id; + } + + public int getID() { + return id; + } + public static SetTemperatureSetpointHoldPolicyCommandField value(int id) throws NoSuchFieldError { + for (SetTemperatureSetpointHoldPolicyCommandField field : SetTemperatureSetpointHoldPolicyCommandField.values()) { + if (field.getID() == id) { + return field; + } + } + throw new NoSuchFieldError(); + } }@Override public String getAttributeName(long id) throws NoSuchFieldError { return Attribute.value(id).toString(); diff --git a/src/controller/java/generated/java/chip/devicecontroller/ClusterInfoMapping.java b/src/controller/java/generated/java/chip/devicecontroller/ClusterInfoMapping.java index ba0190ef3abdfd..ff081ad810270e 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/ClusterInfoMapping.java +++ b/src/controller/java/generated/java/chip/devicecontroller/ClusterInfoMapping.java @@ -11070,16 +11070,16 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(Integer numberOfTransitionsForSequence, Integer dayOfWeekForSequence, Integer modeForSequence, ArrayList transitions) { + public void onSuccess(Integer numberOfTransitionsForSequence, Integer dayOfWeekforSequence, Integer modeForSequence, ArrayList transitions) { Map responseValues = new LinkedHashMap<>(); CommandResponseInfo numberOfTransitionsForSequenceResponseValue = new CommandResponseInfo("numberOfTransitionsForSequence", "Integer"); responseValues.put(numberOfTransitionsForSequenceResponseValue, numberOfTransitionsForSequence); - CommandResponseInfo dayOfWeekForSequenceResponseValue = new CommandResponseInfo("dayOfWeekForSequence", "Integer"); - responseValues.put(dayOfWeekForSequenceResponseValue, dayOfWeekForSequence); + CommandResponseInfo dayOfWeekforSequenceResponseValue = new CommandResponseInfo("dayOfWeekforSequence", "Integer"); + responseValues.put(dayOfWeekforSequenceResponseValue, dayOfWeekforSequence); CommandResponseInfo modeForSequenceResponseValue = new CommandResponseInfo("modeForSequence", "Integer"); responseValues.put(modeForSequenceResponseValue, modeForSequence); - // transitions: ThermostatScheduleTransition + // transitions: ThermostatScheduleTransitionStruct // Conversion from this type to Java is not properly implemented yet callback.onSuccess(responseValues); @@ -11090,6 +11090,38 @@ public void onError(Exception error) { callback.onFailure(error); } } + + public static class DelegatedThermostatClusterGetRelayStatusLogResponseCallback implements ChipClusters.ThermostatCluster.GetRelayStatusLogResponseCallback, DelegatedClusterCallback { + private ClusterCommandCallback callback; + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(Integer timeOfDay, Integer relayStatus, @Nullable Integer localTemperature, @Nullable Integer humidityInPercentage, Integer setPoint, Integer unreadEntries) { + Map responseValues = new LinkedHashMap<>(); + + CommandResponseInfo timeOfDayResponseValue = new CommandResponseInfo("timeOfDay", "Integer"); + responseValues.put(timeOfDayResponseValue, timeOfDay); + CommandResponseInfo relayStatusResponseValue = new CommandResponseInfo("relayStatus", "Integer"); + responseValues.put(relayStatusResponseValue, relayStatus); + CommandResponseInfo localTemperatureResponseValue = new CommandResponseInfo("localTemperature", "Integer"); + responseValues.put(localTemperatureResponseValue, localTemperature); + CommandResponseInfo humidityInPercentageResponseValue = new CommandResponseInfo("humidityInPercentage", "Integer"); + responseValues.put(humidityInPercentageResponseValue, humidityInPercentage); + CommandResponseInfo setPointResponseValue = new CommandResponseInfo("setPoint", "Integer"); + responseValues.put(setPointResponseValue, setPoint); + CommandResponseInfo unreadEntriesResponseValue = new CommandResponseInfo("unreadEntries", "Integer"); + responseValues.put(unreadEntriesResponseValue, unreadEntries); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception error) { + callback.onFailure(error); + } + } public static class DelegatedThermostatClusterLocalTemperatureAttributeCallback implements ChipClusters.ThermostatCluster.LocalTemperatureAttributeCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -11321,6 +11353,195 @@ public void onError(Exception ex) { } } + public static class DelegatedThermostatClusterPresetTypesAttributeCallback implements ChipClusters.ThermostatCluster.PresetTypesAttributeCallback, DelegatedClusterCallback { + private ClusterCommandCallback callback; + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(List valueList) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo commandResponseInfo = new CommandResponseInfo("valueList", "List"); + responseValues.put(commandResponseInfo, valueList); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception ex) { + callback.onFailure(ex); + } + } + + public static class DelegatedThermostatClusterScheduleTypesAttributeCallback implements ChipClusters.ThermostatCluster.ScheduleTypesAttributeCallback, DelegatedClusterCallback { + private ClusterCommandCallback callback; + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(List valueList) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo commandResponseInfo = new CommandResponseInfo("valueList", "List"); + responseValues.put(commandResponseInfo, valueList); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception ex) { + callback.onFailure(ex); + } + } + + public static class DelegatedThermostatClusterNumberOfScheduleTransitionPerDayAttributeCallback implements ChipClusters.ThermostatCluster.NumberOfScheduleTransitionPerDayAttributeCallback, DelegatedClusterCallback { + private ClusterCommandCallback callback; + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(@Nullable Integer value) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo commandResponseInfo = new CommandResponseInfo("value", "Integer"); + responseValues.put(commandResponseInfo, value); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception ex) { + callback.onFailure(ex); + } + } + + public static class DelegatedThermostatClusterActivePresetHandleAttributeCallback implements ChipClusters.ThermostatCluster.ActivePresetHandleAttributeCallback, DelegatedClusterCallback { + private ClusterCommandCallback callback; + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(@Nullable byte[] value) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo commandResponseInfo = new CommandResponseInfo("value", "byte[]"); + responseValues.put(commandResponseInfo, value); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception ex) { + callback.onFailure(ex); + } + } + + public static class DelegatedThermostatClusterActiveScheduleHandleAttributeCallback implements ChipClusters.ThermostatCluster.ActiveScheduleHandleAttributeCallback, DelegatedClusterCallback { + private ClusterCommandCallback callback; + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(@Nullable byte[] value) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo commandResponseInfo = new CommandResponseInfo("value", "byte[]"); + responseValues.put(commandResponseInfo, value); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception ex) { + callback.onFailure(ex); + } + } + + public static class DelegatedThermostatClusterPresetsAttributeCallback implements ChipClusters.ThermostatCluster.PresetsAttributeCallback, DelegatedClusterCallback { + private ClusterCommandCallback callback; + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(List valueList) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo commandResponseInfo = new CommandResponseInfo("valueList", "List"); + responseValues.put(commandResponseInfo, valueList); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception ex) { + callback.onFailure(ex); + } + } + + public static class DelegatedThermostatClusterSchedulesAttributeCallback implements ChipClusters.ThermostatCluster.SchedulesAttributeCallback, DelegatedClusterCallback { + private ClusterCommandCallback callback; + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(List valueList) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo commandResponseInfo = new CommandResponseInfo("valueList", "List"); + responseValues.put(commandResponseInfo, valueList); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception ex) { + callback.onFailure(ex); + } + } + + public static class DelegatedThermostatClusterSetpointHoldExpiryTimestampAttributeCallback implements ChipClusters.ThermostatCluster.SetpointHoldExpiryTimestampAttributeCallback, DelegatedClusterCallback { + private ClusterCommandCallback callback; + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(@Nullable Long value) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo commandResponseInfo = new CommandResponseInfo("value", "Long"); + responseValues.put(commandResponseInfo, value); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception ex) { + callback.onFailure(ex); + } + } + + public static class DelegatedThermostatClusterQueuedPresetAttributeCallback implements ChipClusters.ThermostatCluster.QueuedPresetAttributeCallback, DelegatedClusterCallback { + private ClusterCommandCallback callback; + @Override + public void setCallbackDelegate(ClusterCommandCallback callback) { + this.callback = callback; + } + + @Override + public void onSuccess(@Nullable ChipStructs.ThermostatClusterQueuedPresetStruct value) { + Map responseValues = new LinkedHashMap<>(); + CommandResponseInfo commandResponseInfo = new CommandResponseInfo("value", "ChipStructs.ThermostatClusterQueuedPresetStruct"); + responseValues.put(commandResponseInfo, value); + callback.onSuccess(responseValues); + } + + @Override + public void onError(Exception ex) { + callback.onFailure(ex); + } + } + public static class DelegatedThermostatClusterGeneratedCommandListAttributeCallback implements ChipClusters.ThermostatCluster.GeneratedCommandListAttributeCallback, DelegatedClusterCallback { private ClusterCommandCallback callback; @Override @@ -22073,8 +22294,8 @@ public Map> getCommandMap() { CommandParameterInfo thermostatsetWeeklySchedulenumberOfTransitionsForSequenceCommandParameterInfo = new CommandParameterInfo("numberOfTransitionsForSequence", Integer.class, Integer.class); thermostatsetWeeklyScheduleCommandParams.put("numberOfTransitionsForSequence",thermostatsetWeeklySchedulenumberOfTransitionsForSequenceCommandParameterInfo); - CommandParameterInfo thermostatsetWeeklyScheduledayOfWeekForSequenceCommandParameterInfo = new CommandParameterInfo("dayOfWeekForSequence", Integer.class, Integer.class); - thermostatsetWeeklyScheduleCommandParams.put("dayOfWeekForSequence",thermostatsetWeeklyScheduledayOfWeekForSequenceCommandParameterInfo); + CommandParameterInfo thermostatsetWeeklyScheduledayOfWeekforSequenceCommandParameterInfo = new CommandParameterInfo("dayOfWeekforSequence", Integer.class, Integer.class); + thermostatsetWeeklyScheduleCommandParams.put("dayOfWeekforSequence",thermostatsetWeeklyScheduledayOfWeekforSequenceCommandParameterInfo); CommandParameterInfo thermostatsetWeeklySchedulemodeForSequenceCommandParameterInfo = new CommandParameterInfo("modeForSequence", Integer.class, Integer.class); thermostatsetWeeklyScheduleCommandParams.put("modeForSequence",thermostatsetWeeklySchedulemodeForSequenceCommandParameterInfo); @@ -22086,10 +22307,10 @@ public Map> getCommandMap() { , (Integer) commandArguments.get("numberOfTransitionsForSequence") , (Integer) - commandArguments.get("dayOfWeekForSequence") + commandArguments.get("dayOfWeekforSequence") , (Integer) commandArguments.get("modeForSequence") - , (ArrayList) + , (ArrayList) commandArguments.get("transitions") ); }, @@ -22134,6 +22355,127 @@ public Map> getCommandMap() { ); thermostatClusterInteractionInfoMap.put("clearWeeklySchedule", thermostatclearWeeklyScheduleInteractionInfo); + Map thermostatgetRelayStatusLogCommandParams = new LinkedHashMap(); + InteractionInfo thermostatgetRelayStatusLogInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .getRelayStatusLog((ChipClusters.ThermostatCluster.GetRelayStatusLogResponseCallback) callback + ); + }, + () -> new DelegatedThermostatClusterGetRelayStatusLogResponseCallback(), + thermostatgetRelayStatusLogCommandParams + ); + thermostatClusterInteractionInfoMap.put("getRelayStatusLog", thermostatgetRelayStatusLogInteractionInfo); + + Map thermostatsetActiveScheduleRequestCommandParams = new LinkedHashMap(); + + CommandParameterInfo thermostatsetActiveScheduleRequestscheduleHandleCommandParameterInfo = new CommandParameterInfo("scheduleHandle", byte[].class, byte[].class); + thermostatsetActiveScheduleRequestCommandParams.put("scheduleHandle",thermostatsetActiveScheduleRequestscheduleHandleCommandParameterInfo); + InteractionInfo thermostatsetActiveScheduleRequestInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .setActiveScheduleRequest((DefaultClusterCallback) callback + , (byte[]) + commandArguments.get("scheduleHandle") + ); + }, + () -> new DelegatedDefaultClusterCallback(), + thermostatsetActiveScheduleRequestCommandParams + ); + thermostatClusterInteractionInfoMap.put("setActiveScheduleRequest", thermostatsetActiveScheduleRequestInteractionInfo); + + Map thermostatsetActivePresetRequestCommandParams = new LinkedHashMap(); + + CommandParameterInfo thermostatsetActivePresetRequestpresetHandleCommandParameterInfo = new CommandParameterInfo("presetHandle", byte[].class, byte[].class); + thermostatsetActivePresetRequestCommandParams.put("presetHandle",thermostatsetActivePresetRequestpresetHandleCommandParameterInfo); + + CommandParameterInfo thermostatsetActivePresetRequestdelayMinutesCommandParameterInfo = new CommandParameterInfo("delayMinutes", Optional.class, Integer.class); + thermostatsetActivePresetRequestCommandParams.put("delayMinutes",thermostatsetActivePresetRequestdelayMinutesCommandParameterInfo); + InteractionInfo thermostatsetActivePresetRequestInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .setActivePresetRequest((DefaultClusterCallback) callback + , (byte[]) + commandArguments.get("presetHandle") + , (Optional) + commandArguments.get("delayMinutes") + ); + }, + () -> new DelegatedDefaultClusterCallback(), + thermostatsetActivePresetRequestCommandParams + ); + thermostatClusterInteractionInfoMap.put("setActivePresetRequest", thermostatsetActivePresetRequestInteractionInfo); + + Map thermostatstartPresetsSchedulesEditRequestCommandParams = new LinkedHashMap(); + + CommandParameterInfo thermostatstartPresetsSchedulesEditRequesttimeoutSecondsCommandParameterInfo = new CommandParameterInfo("timeoutSeconds", Integer.class, Integer.class); + thermostatstartPresetsSchedulesEditRequestCommandParams.put("timeoutSeconds",thermostatstartPresetsSchedulesEditRequesttimeoutSecondsCommandParameterInfo); + InteractionInfo thermostatstartPresetsSchedulesEditRequestInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .startPresetsSchedulesEditRequest((DefaultClusterCallback) callback + , (Integer) + commandArguments.get("timeoutSeconds") + ); + }, + () -> new DelegatedDefaultClusterCallback(), + thermostatstartPresetsSchedulesEditRequestCommandParams + ); + thermostatClusterInteractionInfoMap.put("startPresetsSchedulesEditRequest", thermostatstartPresetsSchedulesEditRequestInteractionInfo); + + Map thermostatcancelPresetsSchedulesEditRequestCommandParams = new LinkedHashMap(); + InteractionInfo thermostatcancelPresetsSchedulesEditRequestInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .cancelPresetsSchedulesEditRequest((DefaultClusterCallback) callback + ); + }, + () -> new DelegatedDefaultClusterCallback(), + thermostatcancelPresetsSchedulesEditRequestCommandParams + ); + thermostatClusterInteractionInfoMap.put("cancelPresetsSchedulesEditRequest", thermostatcancelPresetsSchedulesEditRequestInteractionInfo); + + Map thermostatcommitPresetsSchedulesRequestCommandParams = new LinkedHashMap(); + InteractionInfo thermostatcommitPresetsSchedulesRequestInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .commitPresetsSchedulesRequest((DefaultClusterCallback) callback + ); + }, + () -> new DelegatedDefaultClusterCallback(), + thermostatcommitPresetsSchedulesRequestCommandParams + ); + thermostatClusterInteractionInfoMap.put("commitPresetsSchedulesRequest", thermostatcommitPresetsSchedulesRequestInteractionInfo); + + Map thermostatcancelSetActivePresetRequestCommandParams = new LinkedHashMap(); + InteractionInfo thermostatcancelSetActivePresetRequestInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .cancelSetActivePresetRequest((DefaultClusterCallback) callback + ); + }, + () -> new DelegatedDefaultClusterCallback(), + thermostatcancelSetActivePresetRequestCommandParams + ); + thermostatClusterInteractionInfoMap.put("cancelSetActivePresetRequest", thermostatcancelSetActivePresetRequestInteractionInfo); + + Map thermostatsetTemperatureSetpointHoldPolicyCommandParams = new LinkedHashMap(); + + CommandParameterInfo thermostatsetTemperatureSetpointHoldPolicytemperatureSetpointHoldPolicyCommandParameterInfo = new CommandParameterInfo("temperatureSetpointHoldPolicy", Integer.class, Integer.class); + thermostatsetTemperatureSetpointHoldPolicyCommandParams.put("temperatureSetpointHoldPolicy",thermostatsetTemperatureSetpointHoldPolicytemperatureSetpointHoldPolicyCommandParameterInfo); + InteractionInfo thermostatsetTemperatureSetpointHoldPolicyInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster) + .setTemperatureSetpointHoldPolicy((DefaultClusterCallback) callback + , (Integer) + commandArguments.get("temperatureSetpointHoldPolicy") + ); + }, + () -> new DelegatedDefaultClusterCallback(), + thermostatsetTemperatureSetpointHoldPolicyCommandParams + ); + thermostatClusterInteractionInfoMap.put("setTemperatureSetpointHoldPolicy", thermostatsetTemperatureSetpointHoldPolicyInteractionInfo); + commandMap.put("thermostat", thermostatClusterInteractionInfoMap); Map fanControlClusterInteractionInfoMap = new LinkedHashMap<>(); diff --git a/src/controller/java/generated/java/chip/devicecontroller/ClusterReadMapping.java b/src/controller/java/generated/java/chip/devicecontroller/ClusterReadMapping.java index 7219a083cad761..ba14e9c7becb6b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/ClusterReadMapping.java +++ b/src/controller/java/generated/java/chip/devicecontroller/ClusterReadMapping.java @@ -10345,17 +10345,6 @@ private static Map readThermostatInteractionInfo() { readThermostatPIHeatingDemandCommandParams ); result.put("readPIHeatingDemandAttribute", readThermostatPIHeatingDemandAttributeInteractionInfo); - Map readThermostatHVACSystemTypeConfigurationCommandParams = new LinkedHashMap(); - InteractionInfo readThermostatHVACSystemTypeConfigurationAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).readHVACSystemTypeConfigurationAttribute( - (ChipClusters.IntegerAttributeCallback) callback - ); - }, - () -> new ClusterInfoMapping.DelegatedIntegerAttributeCallback(), - readThermostatHVACSystemTypeConfigurationCommandParams - ); - result.put("readHVACSystemTypeConfigurationAttribute", readThermostatHVACSystemTypeConfigurationAttributeInteractionInfo); Map readThermostatLocalTemperatureCalibrationCommandParams = new LinkedHashMap(); InteractionInfo readThermostatLocalTemperatureCalibrationAttributeInteractionInfo = new InteractionInfo( (cluster, callback, commandArguments) -> { @@ -10499,6 +10488,17 @@ private static Map readThermostatInteractionInfo() { readThermostatSystemModeCommandParams ); result.put("readSystemModeAttribute", readThermostatSystemModeAttributeInteractionInfo); + Map readThermostatAlarmMaskCommandParams = new LinkedHashMap(); + InteractionInfo readThermostatAlarmMaskAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).readAlarmMaskAttribute( + (ChipClusters.IntegerAttributeCallback) callback + ); + }, + () -> new ClusterInfoMapping.DelegatedIntegerAttributeCallback(), + readThermostatAlarmMaskCommandParams + ); + result.put("readAlarmMaskAttribute", readThermostatAlarmMaskAttributeInteractionInfo); Map readThermostatThermostatRunningModeCommandParams = new LinkedHashMap(); InteractionInfo readThermostatThermostatRunningModeAttributeInteractionInfo = new InteractionInfo( (cluster, callback, commandArguments) -> { @@ -10774,17 +10774,160 @@ private static Map readThermostatInteractionInfo() { readThermostatACCoilTemperatureCommandParams ); result.put("readACCoilTemperatureAttribute", readThermostatACCoilTemperatureAttributeInteractionInfo); - Map readThermostatACCapacityformatCommandParams = new LinkedHashMap(); - InteractionInfo readThermostatACCapacityformatAttributeInteractionInfo = new InteractionInfo( + Map readThermostatACCapacityFormatCommandParams = new LinkedHashMap(); + InteractionInfo readThermostatACCapacityFormatAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).readACCapacityFormatAttribute( + (ChipClusters.IntegerAttributeCallback) callback + ); + }, + () -> new ClusterInfoMapping.DelegatedIntegerAttributeCallback(), + readThermostatACCapacityFormatCommandParams + ); + result.put("readACCapacityFormatAttribute", readThermostatACCapacityFormatAttributeInteractionInfo); + Map readThermostatPresetTypesCommandParams = new LinkedHashMap(); + InteractionInfo readThermostatPresetTypesAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).readPresetTypesAttribute( + (ChipClusters.ThermostatCluster.PresetTypesAttributeCallback) callback + ); + }, + () -> new ClusterInfoMapping.DelegatedThermostatClusterPresetTypesAttributeCallback(), + readThermostatPresetTypesCommandParams + ); + result.put("readPresetTypesAttribute", readThermostatPresetTypesAttributeInteractionInfo); + Map readThermostatScheduleTypesCommandParams = new LinkedHashMap(); + InteractionInfo readThermostatScheduleTypesAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).readScheduleTypesAttribute( + (ChipClusters.ThermostatCluster.ScheduleTypesAttributeCallback) callback + ); + }, + () -> new ClusterInfoMapping.DelegatedThermostatClusterScheduleTypesAttributeCallback(), + readThermostatScheduleTypesCommandParams + ); + result.put("readScheduleTypesAttribute", readThermostatScheduleTypesAttributeInteractionInfo); + Map readThermostatNumberOfPresetsCommandParams = new LinkedHashMap(); + InteractionInfo readThermostatNumberOfPresetsAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).readNumberOfPresetsAttribute( + (ChipClusters.IntegerAttributeCallback) callback + ); + }, + () -> new ClusterInfoMapping.DelegatedIntegerAttributeCallback(), + readThermostatNumberOfPresetsCommandParams + ); + result.put("readNumberOfPresetsAttribute", readThermostatNumberOfPresetsAttributeInteractionInfo); + Map readThermostatNumberOfSchedulesCommandParams = new LinkedHashMap(); + InteractionInfo readThermostatNumberOfSchedulesAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).readNumberOfSchedulesAttribute( + (ChipClusters.IntegerAttributeCallback) callback + ); + }, + () -> new ClusterInfoMapping.DelegatedIntegerAttributeCallback(), + readThermostatNumberOfSchedulesCommandParams + ); + result.put("readNumberOfSchedulesAttribute", readThermostatNumberOfSchedulesAttributeInteractionInfo); + Map readThermostatNumberOfScheduleTransitionsCommandParams = new LinkedHashMap(); + InteractionInfo readThermostatNumberOfScheduleTransitionsAttributeInteractionInfo = new InteractionInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).readACCapacityformatAttribute( + ((ChipClusters.ThermostatCluster) cluster).readNumberOfScheduleTransitionsAttribute( (ChipClusters.IntegerAttributeCallback) callback ); }, () -> new ClusterInfoMapping.DelegatedIntegerAttributeCallback(), - readThermostatACCapacityformatCommandParams + readThermostatNumberOfScheduleTransitionsCommandParams + ); + result.put("readNumberOfScheduleTransitionsAttribute", readThermostatNumberOfScheduleTransitionsAttributeInteractionInfo); + Map readThermostatNumberOfScheduleTransitionPerDayCommandParams = new LinkedHashMap(); + InteractionInfo readThermostatNumberOfScheduleTransitionPerDayAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).readNumberOfScheduleTransitionPerDayAttribute( + (ChipClusters.ThermostatCluster.NumberOfScheduleTransitionPerDayAttributeCallback) callback + ); + }, + () -> new ClusterInfoMapping.DelegatedThermostatClusterNumberOfScheduleTransitionPerDayAttributeCallback(), + readThermostatNumberOfScheduleTransitionPerDayCommandParams + ); + result.put("readNumberOfScheduleTransitionPerDayAttribute", readThermostatNumberOfScheduleTransitionPerDayAttributeInteractionInfo); + Map readThermostatActivePresetHandleCommandParams = new LinkedHashMap(); + InteractionInfo readThermostatActivePresetHandleAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).readActivePresetHandleAttribute( + (ChipClusters.ThermostatCluster.ActivePresetHandleAttributeCallback) callback + ); + }, + () -> new ClusterInfoMapping.DelegatedThermostatClusterActivePresetHandleAttributeCallback(), + readThermostatActivePresetHandleCommandParams + ); + result.put("readActivePresetHandleAttribute", readThermostatActivePresetHandleAttributeInteractionInfo); + Map readThermostatActiveScheduleHandleCommandParams = new LinkedHashMap(); + InteractionInfo readThermostatActiveScheduleHandleAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).readActiveScheduleHandleAttribute( + (ChipClusters.ThermostatCluster.ActiveScheduleHandleAttributeCallback) callback + ); + }, + () -> new ClusterInfoMapping.DelegatedThermostatClusterActiveScheduleHandleAttributeCallback(), + readThermostatActiveScheduleHandleCommandParams + ); + result.put("readActiveScheduleHandleAttribute", readThermostatActiveScheduleHandleAttributeInteractionInfo); + Map readThermostatPresetsCommandParams = new LinkedHashMap(); + InteractionInfo readThermostatPresetsAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).readPresetsAttribute( + (ChipClusters.ThermostatCluster.PresetsAttributeCallback) callback + ); + }, + () -> new ClusterInfoMapping.DelegatedThermostatClusterPresetsAttributeCallback(), + readThermostatPresetsCommandParams + ); + result.put("readPresetsAttribute", readThermostatPresetsAttributeInteractionInfo); + Map readThermostatSchedulesCommandParams = new LinkedHashMap(); + InteractionInfo readThermostatSchedulesAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).readSchedulesAttribute( + (ChipClusters.ThermostatCluster.SchedulesAttributeCallback) callback + ); + }, + () -> new ClusterInfoMapping.DelegatedThermostatClusterSchedulesAttributeCallback(), + readThermostatSchedulesCommandParams + ); + result.put("readSchedulesAttribute", readThermostatSchedulesAttributeInteractionInfo); + Map readThermostatPresetsSchedulesEditableCommandParams = new LinkedHashMap(); + InteractionInfo readThermostatPresetsSchedulesEditableAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).readPresetsSchedulesEditableAttribute( + (ChipClusters.BooleanAttributeCallback) callback + ); + }, + () -> new ClusterInfoMapping.DelegatedBooleanAttributeCallback(), + readThermostatPresetsSchedulesEditableCommandParams + ); + result.put("readPresetsSchedulesEditableAttribute", readThermostatPresetsSchedulesEditableAttributeInteractionInfo); + Map readThermostatTemperatureSetpointHoldPolicyCommandParams = new LinkedHashMap(); + InteractionInfo readThermostatTemperatureSetpointHoldPolicyAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).readTemperatureSetpointHoldPolicyAttribute( + (ChipClusters.IntegerAttributeCallback) callback + ); + }, + () -> new ClusterInfoMapping.DelegatedIntegerAttributeCallback(), + readThermostatTemperatureSetpointHoldPolicyCommandParams + ); + result.put("readTemperatureSetpointHoldPolicyAttribute", readThermostatTemperatureSetpointHoldPolicyAttributeInteractionInfo); + Map readThermostatSetpointHoldExpiryTimestampCommandParams = new LinkedHashMap(); + InteractionInfo readThermostatSetpointHoldExpiryTimestampAttributeInteractionInfo = new InteractionInfo( + (cluster, callback, commandArguments) -> { + ((ChipClusters.ThermostatCluster) cluster).readSetpointHoldExpiryTimestampAttribute( + (ChipClusters.ThermostatCluster.SetpointHoldExpiryTimestampAttributeCallback) callback + ); + }, + () -> new ClusterInfoMapping.DelegatedThermostatClusterSetpointHoldExpiryTimestampAttributeCallback(), + readThermostatSetpointHoldExpiryTimestampCommandParams ); - result.put("readACCapacityformatAttribute", readThermostatACCapacityformatAttributeInteractionInfo); + result.put("readSetpointHoldExpiryTimestampAttribute", readThermostatSetpointHoldExpiryTimestampAttributeInteractionInfo); Map readThermostatGeneratedCommandListCommandParams = new LinkedHashMap(); InteractionInfo readThermostatGeneratedCommandListAttributeInteractionInfo = new InteractionInfo( (cluster, callback, commandArguments) -> { diff --git a/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java b/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java index 1516fa1a7efa9a..c12d2ad24d9721 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java +++ b/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java @@ -1969,28 +1969,6 @@ public Map> getWriteAttributeMap() { writePumpConfigurationAndControlInteractionInfo.put("writeControlModeAttribute", writePumpConfigurationAndControlControlModeAttributeInteractionInfo); writeAttributeMap.put("pumpConfigurationAndControl", writePumpConfigurationAndControlInteractionInfo); Map writeThermostatInteractionInfo = new LinkedHashMap<>(); - Map writeThermostatHVACSystemTypeConfigurationCommandParams = new LinkedHashMap(); - CommandParameterInfo thermostatHVACSystemTypeConfigurationCommandParameterInfo = - new CommandParameterInfo( - "value", - Integer.class, - Integer.class - ); - writeThermostatHVACSystemTypeConfigurationCommandParams.put( - "value", - thermostatHVACSystemTypeConfigurationCommandParameterInfo - ); - InteractionInfo writeThermostatHVACSystemTypeConfigurationAttributeInteractionInfo = new InteractionInfo( - (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeHVACSystemTypeConfigurationAttribute( - (DefaultClusterCallback) callback, - (Integer) commandArguments.get("value") - ); - }, - () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatHVACSystemTypeConfigurationCommandParams - ); - writeThermostatInteractionInfo.put("writeHVACSystemTypeConfigurationAttribute", writeThermostatHVACSystemTypeConfigurationAttributeInteractionInfo); Map writeThermostatLocalTemperatureCalibrationCommandParams = new LinkedHashMap(); CommandParameterInfo thermostatlocalTemperatureCalibrationCommandParameterInfo = new CommandParameterInfo( @@ -2541,28 +2519,28 @@ public Map> getWriteAttributeMap() { writeThermostatACLouverPositionCommandParams ); writeThermostatInteractionInfo.put("writeACLouverPositionAttribute", writeThermostatACLouverPositionAttributeInteractionInfo); - Map writeThermostatACCapacityformatCommandParams = new LinkedHashMap(); - CommandParameterInfo thermostatACCapacityformatCommandParameterInfo = + Map writeThermostatACCapacityFormatCommandParams = new LinkedHashMap(); + CommandParameterInfo thermostatACCapacityFormatCommandParameterInfo = new CommandParameterInfo( "value", Integer.class, Integer.class ); - writeThermostatACCapacityformatCommandParams.put( + writeThermostatACCapacityFormatCommandParams.put( "value", - thermostatACCapacityformatCommandParameterInfo + thermostatACCapacityFormatCommandParameterInfo ); - InteractionInfo writeThermostatACCapacityformatAttributeInteractionInfo = new InteractionInfo( + InteractionInfo writeThermostatACCapacityFormatAttributeInteractionInfo = new InteractionInfo( (cluster, callback, commandArguments) -> { - ((ChipClusters.ThermostatCluster) cluster).writeACCapacityformatAttribute( + ((ChipClusters.ThermostatCluster) cluster).writeACCapacityFormatAttribute( (DefaultClusterCallback) callback, (Integer) commandArguments.get("value") ); }, () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(), - writeThermostatACCapacityformatCommandParams + writeThermostatACCapacityFormatCommandParams ); - writeThermostatInteractionInfo.put("writeACCapacityformatAttribute", writeThermostatACCapacityformatAttributeInteractionInfo); + writeThermostatInteractionInfo.put("writeACCapacityFormatAttribute", writeThermostatACCapacityFormatAttributeInteractionInfo); writeAttributeMap.put("thermostat", writeThermostatInteractionInfo); Map writeFanControlInteractionInfo = new LinkedHashMap<>(); Map writeFanControlFanModeCommandParams = new LinkedHashMap(); diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlEntryChangedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlEntryChangedEvent.kt index a206757d729531..75edd8da4997e5 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlEntryChangedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlEntryChangedEvent.kt @@ -17,20 +17,22 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class AccessControlClusterAccessControlEntryChangedEvent( - val adminNodeID: ULong?, - val adminPasscodeID: UInt?, - val changeType: UInt, - val latestValue: - chip.devicecontroller.cluster.structs.AccessControlClusterAccessControlEntryStruct?, - val fabricIndex: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class AccessControlClusterAccessControlEntryChangedEvent ( + val adminNodeID: ULong?, + val adminPasscodeID: UInt?, + val changeType: UInt, + val latestValue: chip.devicecontroller.cluster.structs.AccessControlClusterAccessControlEntryStruct?, + val fabricIndex: UInt) { + override fun toString(): String = buildString { append("AccessControlClusterAccessControlEntryChangedEvent {\n") append("\tadminNodeID : $adminNodeID\n") append("\tadminPasscodeID : $adminPasscodeID\n") @@ -44,21 +46,21 @@ class AccessControlClusterAccessControlEntryChangedEvent( tlvWriter.apply { startStructure(tlvTag) if (adminNodeID != null) { - put(ContextSpecificTag(TAG_ADMIN_NODE_I_D), adminNodeID) - } else { - putNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - } + put(ContextSpecificTag(TAG_ADMIN_NODE_I_D), adminNodeID) + } else { + putNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + } if (adminPasscodeID != null) { - put(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D), adminPasscodeID) - } else { - putNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - } + put(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D), adminPasscodeID) + } else { + putNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + } put(ContextSpecificTag(TAG_CHANGE_TYPE), changeType) if (latestValue != null) { - latestValue.toTlv(ContextSpecificTag(TAG_LATEST_VALUE), this) - } else { - putNull(ContextSpecificTag(TAG_LATEST_VALUE)) - } + latestValue.toTlv(ContextSpecificTag(TAG_LATEST_VALUE), this) + } else { + putNull(ContextSpecificTag(TAG_LATEST_VALUE)) + } put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) endStructure() } @@ -71,45 +73,32 @@ class AccessControlClusterAccessControlEntryChangedEvent( private const val TAG_LATEST_VALUE = 4 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): AccessControlClusterAccessControlEntryChangedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlEntryChangedEvent { tlvReader.enterStructure(tlvTag) - val adminNodeID = - if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - null - } - val adminPasscodeID = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - null - } + val adminNodeID = if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + null + } + val adminPasscodeID = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + null + } val changeType = tlvReader.getUInt(ContextSpecificTag(TAG_CHANGE_TYPE)) - val latestValue = - if (!tlvReader.isNull()) { - chip.devicecontroller.cluster.structs.AccessControlClusterAccessControlEntryStruct - .fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE)) - null - } + val latestValue = if (!tlvReader.isNull()) { + chip.devicecontroller.cluster.structs.AccessControlClusterAccessControlEntryStruct.fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE)) + null + } val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return AccessControlClusterAccessControlEntryChangedEvent( - adminNodeID, - adminPasscodeID, - changeType, - latestValue, - fabricIndex - ) + return AccessControlClusterAccessControlEntryChangedEvent(adminNodeID, adminPasscodeID, changeType, latestValue, fabricIndex) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlExtensionChangedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlExtensionChangedEvent.kt index 8377cc96d5f545..31aad754e04833 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlExtensionChangedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlExtensionChangedEvent.kt @@ -17,20 +17,22 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class AccessControlClusterAccessControlExtensionChangedEvent( - val adminNodeID: ULong?, - val adminPasscodeID: UInt?, - val changeType: UInt, - val latestValue: - chip.devicecontroller.cluster.structs.AccessControlClusterAccessControlExtensionStruct?, - val fabricIndex: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class AccessControlClusterAccessControlExtensionChangedEvent ( + val adminNodeID: ULong?, + val adminPasscodeID: UInt?, + val changeType: UInt, + val latestValue: chip.devicecontroller.cluster.structs.AccessControlClusterAccessControlExtensionStruct?, + val fabricIndex: UInt) { + override fun toString(): String = buildString { append("AccessControlClusterAccessControlExtensionChangedEvent {\n") append("\tadminNodeID : $adminNodeID\n") append("\tadminPasscodeID : $adminPasscodeID\n") @@ -44,21 +46,21 @@ class AccessControlClusterAccessControlExtensionChangedEvent( tlvWriter.apply { startStructure(tlvTag) if (adminNodeID != null) { - put(ContextSpecificTag(TAG_ADMIN_NODE_I_D), adminNodeID) - } else { - putNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - } + put(ContextSpecificTag(TAG_ADMIN_NODE_I_D), adminNodeID) + } else { + putNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + } if (adminPasscodeID != null) { - put(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D), adminPasscodeID) - } else { - putNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - } + put(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D), adminPasscodeID) + } else { + putNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + } put(ContextSpecificTag(TAG_CHANGE_TYPE), changeType) if (latestValue != null) { - latestValue.toTlv(ContextSpecificTag(TAG_LATEST_VALUE), this) - } else { - putNull(ContextSpecificTag(TAG_LATEST_VALUE)) - } + latestValue.toTlv(ContextSpecificTag(TAG_LATEST_VALUE), this) + } else { + putNull(ContextSpecificTag(TAG_LATEST_VALUE)) + } put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) endStructure() } @@ -71,45 +73,32 @@ class AccessControlClusterAccessControlExtensionChangedEvent( private const val TAG_LATEST_VALUE = 4 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): AccessControlClusterAccessControlExtensionChangedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlExtensionChangedEvent { tlvReader.enterStructure(tlvTag) - val adminNodeID = - if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - null - } - val adminPasscodeID = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - null - } + val adminNodeID = if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + null + } + val adminPasscodeID = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + null + } val changeType = tlvReader.getUInt(ContextSpecificTag(TAG_CHANGE_TYPE)) - val latestValue = - if (!tlvReader.isNull()) { - chip.devicecontroller.cluster.structs.AccessControlClusterAccessControlExtensionStruct - .fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE)) - null - } + val latestValue = if (!tlvReader.isNull()) { + chip.devicecontroller.cluster.structs.AccessControlClusterAccessControlExtensionStruct.fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE)) + null + } val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return AccessControlClusterAccessControlExtensionChangedEvent( - adminNodeID, - adminPasscodeID, - changeType, - latestValue, - fabricIndex - ) + return AccessControlClusterAccessControlExtensionChangedEvent(adminNodeID, adminPasscodeID, changeType, latestValue, fabricIndex) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ActionsClusterActionFailedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ActionsClusterActionFailedEvent.kt index ea2f1931564f35..59405162837cd8 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ActionsClusterActionFailedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ActionsClusterActionFailedEvent.kt @@ -17,18 +17,21 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ActionsClusterActionFailedEvent( - val actionID: UInt, - val invokeID: ULong, - val newState: UInt, - val error: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class ActionsClusterActionFailedEvent ( + val actionID: UInt, + val invokeID: ULong, + val newState: UInt, + val error: UInt) { + override fun toString(): String = buildString { append("ActionsClusterActionFailedEvent {\n") append("\tactionID : $actionID\n") append("\tinvokeID : $invokeID\n") @@ -54,13 +57,13 @@ class ActionsClusterActionFailedEvent( private const val TAG_NEW_STATE = 2 private const val TAG_ERROR = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ActionsClusterActionFailedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActionsClusterActionFailedEvent { tlvReader.enterStructure(tlvTag) val actionID = tlvReader.getUInt(ContextSpecificTag(TAG_ACTION_I_D)) val invokeID = tlvReader.getULong(ContextSpecificTag(TAG_INVOKE_I_D)) val newState = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_STATE)) val error = tlvReader.getUInt(ContextSpecificTag(TAG_ERROR)) - + tlvReader.exitContainer() return ActionsClusterActionFailedEvent(actionID, invokeID, newState, error) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ActionsClusterStateChangedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ActionsClusterStateChangedEvent.kt index d95c5e9d66480b..868fbace2ac50e 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ActionsClusterStateChangedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ActionsClusterStateChangedEvent.kt @@ -17,13 +17,20 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ActionsClusterStateChangedEvent(val actionID: UInt, val invokeID: ULong, val newState: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class ActionsClusterStateChangedEvent ( + val actionID: UInt, + val invokeID: ULong, + val newState: UInt) { + override fun toString(): String = buildString { append("ActionsClusterStateChangedEvent {\n") append("\tactionID : $actionID\n") append("\tinvokeID : $invokeID\n") @@ -46,12 +53,12 @@ class ActionsClusterStateChangedEvent(val actionID: UInt, val invokeID: ULong, v private const val TAG_INVOKE_I_D = 1 private const val TAG_NEW_STATE = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ActionsClusterStateChangedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActionsClusterStateChangedEvent { tlvReader.enterStructure(tlvTag) val actionID = tlvReader.getUInt(ContextSpecificTag(TAG_ACTION_I_D)) val invokeID = tlvReader.getULong(ContextSpecificTag(TAG_INVOKE_I_D)) val newState = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_STATE)) - + tlvReader.exitContainer() return ActionsClusterStateChangedEvent(actionID, invokeID, newState) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterLeaveEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterLeaveEvent.kt index 6d2c068c849afb..8ca5a2a0195e9c 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterLeaveEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterLeaveEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class BasicInformationClusterLeaveEvent(val fabricIndex: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class BasicInformationClusterLeaveEvent ( + val fabricIndex: UInt) { + override fun toString(): String = buildString { append("BasicInformationClusterLeaveEvent {\n") append("\tfabricIndex : $fabricIndex\n") append("}\n") @@ -40,10 +45,10 @@ class BasicInformationClusterLeaveEvent(val fabricIndex: UInt) { companion object { private const val TAG_FABRIC_INDEX = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterLeaveEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterLeaveEvent { tlvReader.enterStructure(tlvTag) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return BasicInformationClusterLeaveEvent(fabricIndex) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterReachableChangedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterReachableChangedEvent.kt index 4e6cb20e13c5e0..4a6bf00b468e48 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterReachableChangedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterReachableChangedEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class BasicInformationClusterReachableChangedEvent(val reachableNewValue: Boolean) { - override fun toString(): String = buildString { +import java.util.Optional + +class BasicInformationClusterReachableChangedEvent ( + val reachableNewValue: Boolean) { + override fun toString(): String = buildString { append("BasicInformationClusterReachableChangedEvent {\n") append("\treachableNewValue : $reachableNewValue\n") append("}\n") @@ -40,10 +45,10 @@ class BasicInformationClusterReachableChangedEvent(val reachableNewValue: Boolea companion object { private const val TAG_REACHABLE_NEW_VALUE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterReachableChangedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterReachableChangedEvent { tlvReader.enterStructure(tlvTag) val reachableNewValue = tlvReader.getBoolean(ContextSpecificTag(TAG_REACHABLE_NEW_VALUE)) - + tlvReader.exitContainer() return BasicInformationClusterReachableChangedEvent(reachableNewValue) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterStartUpEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterStartUpEvent.kt index 5ba3a8d3591e9a..b87f7ebee81d72 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterStartUpEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterStartUpEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class BasicInformationClusterStartUpEvent(val softwareVersion: ULong) { - override fun toString(): String = buildString { +import java.util.Optional + +class BasicInformationClusterStartUpEvent ( + val softwareVersion: ULong) { + override fun toString(): String = buildString { append("BasicInformationClusterStartUpEvent {\n") append("\tsoftwareVersion : $softwareVersion\n") append("}\n") @@ -40,10 +45,10 @@ class BasicInformationClusterStartUpEvent(val softwareVersion: ULong) { companion object { private const val TAG_SOFTWARE_VERSION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterStartUpEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterStartUpEvent { tlvReader.enterStructure(tlvTag) val softwareVersion = tlvReader.getULong(ContextSpecificTag(TAG_SOFTWARE_VERSION)) - + tlvReader.exitContainer() return BasicInformationClusterStartUpEvent(softwareVersion) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BooleanSensorConfigurationClusterAlarmsStateChangedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BooleanSensorConfigurationClusterAlarmsStateChangedEvent.kt index c51a8e06724875..412a372e5baadd 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BooleanSensorConfigurationClusterAlarmsStateChangedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BooleanSensorConfigurationClusterAlarmsStateChangedEvent.kt @@ -17,17 +17,19 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class BooleanSensorConfigurationClusterAlarmsStateChangedEvent( - val alarmsActive: UInt, - val alarmsSuppressed: Optional -) { - override fun toString(): String = buildString { +import java.util.Optional + +class BooleanSensorConfigurationClusterAlarmsStateChangedEvent ( + val alarmsActive: UInt, + val alarmsSuppressed: Optional) { + override fun toString(): String = buildString { append("BooleanSensorConfigurationClusterAlarmsStateChangedEvent {\n") append("\talarmsActive : $alarmsActive\n") append("\talarmsSuppressed : $alarmsSuppressed\n") @@ -39,9 +41,9 @@ class BooleanSensorConfigurationClusterAlarmsStateChangedEvent( startStructure(tlvTag) put(ContextSpecificTag(TAG_ALARMS_ACTIVE), alarmsActive) if (alarmsSuppressed.isPresent) { - val optalarmsSuppressed = alarmsSuppressed.get() - put(ContextSpecificTag(TAG_ALARMS_SUPPRESSED), optalarmsSuppressed) - } + val optalarmsSuppressed = alarmsSuppressed.get() + put(ContextSpecificTag(TAG_ALARMS_SUPPRESSED), optalarmsSuppressed) + } endStructure() } } @@ -50,25 +52,18 @@ class BooleanSensorConfigurationClusterAlarmsStateChangedEvent( private const val TAG_ALARMS_ACTIVE = 0 private const val TAG_ALARMS_SUPPRESSED = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): BooleanSensorConfigurationClusterAlarmsStateChangedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BooleanSensorConfigurationClusterAlarmsStateChangedEvent { tlvReader.enterStructure(tlvTag) val alarmsActive = tlvReader.getUInt(ContextSpecificTag(TAG_ALARMS_ACTIVE)) - val alarmsSuppressed = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_ALARMS_SUPPRESSED))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_ALARMS_SUPPRESSED))) - } else { - Optional.empty() - } - + val alarmsSuppressed = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ALARMS_SUPPRESSED))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_ALARMS_SUPPRESSED))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return BooleanSensorConfigurationClusterAlarmsStateChangedEvent( - alarmsActive, - alarmsSuppressed - ) + return BooleanSensorConfigurationClusterAlarmsStateChangedEvent(alarmsActive, alarmsSuppressed) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BooleanStateClusterStateChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BooleanStateClusterStateChangeEvent.kt index f133fd21988180..632226d00db082 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BooleanStateClusterStateChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BooleanStateClusterStateChangeEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class BooleanStateClusterStateChangeEvent(val stateValue: Boolean) { - override fun toString(): String = buildString { +import java.util.Optional + +class BooleanStateClusterStateChangeEvent ( + val stateValue: Boolean) { + override fun toString(): String = buildString { append("BooleanStateClusterStateChangeEvent {\n") append("\tstateValue : $stateValue\n") append("}\n") @@ -40,10 +45,10 @@ class BooleanStateClusterStateChangeEvent(val stateValue: Boolean) { companion object { private const val TAG_STATE_VALUE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BooleanStateClusterStateChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BooleanStateClusterStateChangeEvent { tlvReader.enterStructure(tlvTag) val stateValue = tlvReader.getBoolean(ContextSpecificTag(TAG_STATE_VALUE)) - + tlvReader.exitContainer() return BooleanStateClusterStateChangeEvent(stateValue) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterReachableChangedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterReachableChangedEvent.kt index 4a66dd930bf954..b5bbae742887b3 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterReachableChangedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterReachableChangedEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class BridgedDeviceBasicInformationClusterReachableChangedEvent(val reachableNewValue: Boolean) { - override fun toString(): String = buildString { +import java.util.Optional + +class BridgedDeviceBasicInformationClusterReachableChangedEvent ( + val reachableNewValue: Boolean) { + override fun toString(): String = buildString { append("BridgedDeviceBasicInformationClusterReachableChangedEvent {\n") append("\treachableNewValue : $reachableNewValue\n") append("}\n") @@ -40,13 +45,10 @@ class BridgedDeviceBasicInformationClusterReachableChangedEvent(val reachableNew companion object { private const val TAG_REACHABLE_NEW_VALUE = 0 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): BridgedDeviceBasicInformationClusterReachableChangedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BridgedDeviceBasicInformationClusterReachableChangedEvent { tlvReader.enterStructure(tlvTag) val reachableNewValue = tlvReader.getBoolean(ContextSpecificTag(TAG_REACHABLE_NEW_VALUE)) - + tlvReader.exitContainer() return BridgedDeviceBasicInformationClusterReachableChangedEvent(reachableNewValue) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterStartUpEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterStartUpEvent.kt index 33e897ec0dcc9c..ac2c49d2929233 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterStartUpEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterStartUpEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class BridgedDeviceBasicInformationClusterStartUpEvent(val softwareVersion: ULong) { - override fun toString(): String = buildString { +import java.util.Optional + +class BridgedDeviceBasicInformationClusterStartUpEvent ( + val softwareVersion: ULong) { + override fun toString(): String = buildString { append("BridgedDeviceBasicInformationClusterStartUpEvent {\n") append("\tsoftwareVersion : $softwareVersion\n") append("}\n") @@ -40,13 +45,10 @@ class BridgedDeviceBasicInformationClusterStartUpEvent(val softwareVersion: ULon companion object { private const val TAG_SOFTWARE_VERSION = 0 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): BridgedDeviceBasicInformationClusterStartUpEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BridgedDeviceBasicInformationClusterStartUpEvent { tlvReader.enterStructure(tlvTag) val softwareVersion = tlvReader.getULong(ContextSpecificTag(TAG_SOFTWARE_VERSION)) - + tlvReader.exitContainer() return BridgedDeviceBasicInformationClusterStartUpEvent(softwareVersion) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent.kt index a4ab48a89bc770..788512180453b2 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent.kt @@ -17,40 +17,27 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent( - val eventID: ByteArray, - val transitionIndex: UInt?, - val status: UInt, - val criticality: UInt, - val control: UInt, - val temperatureControl: - Optional< - chip.devicecontroller.cluster.structs.DemandResponseLoadControlClusterTemperatureControlStruct - >?, - val averageLoadControl: - Optional< - chip.devicecontroller.cluster.structs.DemandResponseLoadControlClusterAverageLoadControlStruct - >?, - val dutyCycleControl: - Optional< - chip.devicecontroller.cluster.structs.DemandResponseLoadControlClusterDutyCycleControlStruct - >?, - val powerSavingsControl: - Optional< - chip.devicecontroller.cluster.structs.DemandResponseLoadControlClusterPowerSavingsControlStruct - >?, - val heatingSourceControl: - Optional< - chip.devicecontroller.cluster.structs.DemandResponseLoadControlClusterHeatingSourceControlStruct - >? -) { - override fun toString(): String = buildString { +import java.util.Optional + +class DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent ( + val eventID: ByteArray, + val transitionIndex: UInt?, + val status: UInt, + val criticality: UInt, + val control: UInt, + val temperatureControl: Optional?, + val averageLoadControl: Optional?, + val dutyCycleControl: Optional?, + val powerSavingsControl: Optional?, + val heatingSourceControl: Optional?) { + override fun toString(): String = buildString { append("DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent {\n") append("\teventID : $eventID\n") append("\ttransitionIndex : $transitionIndex\n") @@ -70,53 +57,53 @@ class DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent( startStructure(tlvTag) put(ContextSpecificTag(TAG_EVENT_I_D), eventID) if (transitionIndex != null) { - put(ContextSpecificTag(TAG_TRANSITION_INDEX), transitionIndex) - } else { - putNull(ContextSpecificTag(TAG_TRANSITION_INDEX)) - } + put(ContextSpecificTag(TAG_TRANSITION_INDEX), transitionIndex) + } else { + putNull(ContextSpecificTag(TAG_TRANSITION_INDEX)) + } put(ContextSpecificTag(TAG_STATUS), status) put(ContextSpecificTag(TAG_CRITICALITY), criticality) put(ContextSpecificTag(TAG_CONTROL), control) if (temperatureControl != null) { - if (temperatureControl.isPresent) { - val opttemperatureControl = temperatureControl.get() - opttemperatureControl.toTlv(ContextSpecificTag(TAG_TEMPERATURE_CONTROL), this) - } - } else { - putNull(ContextSpecificTag(TAG_TEMPERATURE_CONTROL)) - } + if (temperatureControl.isPresent) { + val opttemperatureControl = temperatureControl.get() + opttemperatureControl.toTlv(ContextSpecificTag(TAG_TEMPERATURE_CONTROL), this) + } + } else { + putNull(ContextSpecificTag(TAG_TEMPERATURE_CONTROL)) + } if (averageLoadControl != null) { - if (averageLoadControl.isPresent) { - val optaverageLoadControl = averageLoadControl.get() - optaverageLoadControl.toTlv(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), this) - } - } else { - putNull(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL)) - } + if (averageLoadControl.isPresent) { + val optaverageLoadControl = averageLoadControl.get() + optaverageLoadControl.toTlv(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), this) + } + } else { + putNull(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL)) + } if (dutyCycleControl != null) { - if (dutyCycleControl.isPresent) { - val optdutyCycleControl = dutyCycleControl.get() - optdutyCycleControl.toTlv(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), this) - } - } else { - putNull(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL)) - } + if (dutyCycleControl.isPresent) { + val optdutyCycleControl = dutyCycleControl.get() + optdutyCycleControl.toTlv(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), this) + } + } else { + putNull(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL)) + } if (powerSavingsControl != null) { - if (powerSavingsControl.isPresent) { - val optpowerSavingsControl = powerSavingsControl.get() - optpowerSavingsControl.toTlv(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), this) - } - } else { - putNull(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL)) - } + if (powerSavingsControl.isPresent) { + val optpowerSavingsControl = powerSavingsControl.get() + optpowerSavingsControl.toTlv(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), this) + } + } else { + putNull(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL)) + } if (heatingSourceControl != null) { - if (heatingSourceControl.isPresent) { - val optheatingSourceControl = heatingSourceControl.get() - optheatingSourceControl.toTlv(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), this) - } - } else { - putNull(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL)) - } + if (heatingSourceControl.isPresent) { + val optheatingSourceControl = heatingSourceControl.get() + optheatingSourceControl.toTlv(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), this) + } + } else { + putNull(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL)) + } endStructure() } } @@ -133,112 +120,72 @@ class DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent( private const val TAG_POWER_SAVINGS_CONTROL = 8 private const val TAG_HEATING_SOURCE_CONTROL = 9 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent { tlvReader.enterStructure(tlvTag) val eventID = tlvReader.getByteArray(ContextSpecificTag(TAG_EVENT_I_D)) - val transitionIndex = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_TRANSITION_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TRANSITION_INDEX)) - null - } + val transitionIndex = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_TRANSITION_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TRANSITION_INDEX)) + null + } val status = tlvReader.getUInt(ContextSpecificTag(TAG_STATUS)) val criticality = tlvReader.getUInt(ContextSpecificTag(TAG_CRITICALITY)) val control = tlvReader.getUInt(ContextSpecificTag(TAG_CONTROL)) - val temperatureControl = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_TEMPERATURE_CONTROL))) { - Optional.of( - chip.devicecontroller.cluster.structs - .DemandResponseLoadControlClusterTemperatureControlStruct - .fromTlv(ContextSpecificTag(TAG_TEMPERATURE_CONTROL), tlvReader) - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TEMPERATURE_CONTROL)) - null - } - val averageLoadControl = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL))) { - Optional.of( - chip.devicecontroller.cluster.structs - .DemandResponseLoadControlClusterAverageLoadControlStruct - .fromTlv(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), tlvReader) - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL)) - null - } - val dutyCycleControl = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL))) { - Optional.of( - chip.devicecontroller.cluster.structs - .DemandResponseLoadControlClusterDutyCycleControlStruct - .fromTlv(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), tlvReader) - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL)) - null - } - val powerSavingsControl = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL))) { - Optional.of( - chip.devicecontroller.cluster.structs - .DemandResponseLoadControlClusterPowerSavingsControlStruct - .fromTlv(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), tlvReader) - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL)) - null - } - val heatingSourceControl = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL))) { - Optional.of( - chip.devicecontroller.cluster.structs - .DemandResponseLoadControlClusterHeatingSourceControlStruct - .fromTlv(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), tlvReader) - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL)) - null - } - + val temperatureControl = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_TEMPERATURE_CONTROL))) { + Optional.of(chip.devicecontroller.cluster.structs.DemandResponseLoadControlClusterTemperatureControlStruct.fromTlv(ContextSpecificTag(TAG_TEMPERATURE_CONTROL), tlvReader)) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TEMPERATURE_CONTROL)) + null + } + val averageLoadControl = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL))) { + Optional.of(chip.devicecontroller.cluster.structs.DemandResponseLoadControlClusterAverageLoadControlStruct.fromTlv(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), tlvReader)) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL)) + null + } + val dutyCycleControl = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL))) { + Optional.of(chip.devicecontroller.cluster.structs.DemandResponseLoadControlClusterDutyCycleControlStruct.fromTlv(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), tlvReader)) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL)) + null + } + val powerSavingsControl = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL))) { + Optional.of(chip.devicecontroller.cluster.structs.DemandResponseLoadControlClusterPowerSavingsControlStruct.fromTlv(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), tlvReader)) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL)) + null + } + val heatingSourceControl = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL))) { + Optional.of(chip.devicecontroller.cluster.structs.DemandResponseLoadControlClusterHeatingSourceControlStruct.fromTlv(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), tlvReader)) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL)) + null + } + tlvReader.exitContainer() - return DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent( - eventID, - transitionIndex, - status, - criticality, - control, - temperatureControl, - averageLoadControl, - dutyCycleControl, - powerSavingsControl, - heatingSourceControl - ) + return DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent(eventID, transitionIndex, status, criticality, control, temperatureControl, averageLoadControl, dutyCycleControl, powerSavingsControl, heatingSourceControl) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DishwasherAlarmClusterNotifyEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DishwasherAlarmClusterNotifyEvent.kt index 233b0d7030c8e5..71bdf0da0ad747 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DishwasherAlarmClusterNotifyEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DishwasherAlarmClusterNotifyEvent.kt @@ -17,18 +17,21 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DishwasherAlarmClusterNotifyEvent( - val active: ULong, - val inactive: ULong, - val state: ULong, - val mask: ULong -) { - override fun toString(): String = buildString { +import java.util.Optional + +class DishwasherAlarmClusterNotifyEvent ( + val active: ULong, + val inactive: ULong, + val state: ULong, + val mask: ULong) { + override fun toString(): String = buildString { append("DishwasherAlarmClusterNotifyEvent {\n") append("\tactive : $active\n") append("\tinactive : $inactive\n") @@ -54,13 +57,13 @@ class DishwasherAlarmClusterNotifyEvent( private const val TAG_STATE = 2 private const val TAG_MASK = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DishwasherAlarmClusterNotifyEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DishwasherAlarmClusterNotifyEvent { tlvReader.enterStructure(tlvTag) val active = tlvReader.getULong(ContextSpecificTag(TAG_ACTIVE)) val inactive = tlvReader.getULong(ContextSpecificTag(TAG_INACTIVE)) val state = tlvReader.getULong(ContextSpecificTag(TAG_STATE)) val mask = tlvReader.getULong(ContextSpecificTag(TAG_MASK)) - + tlvReader.exitContainer() return DishwasherAlarmClusterNotifyEvent(active, inactive, state, mask) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterDoorLockAlarmEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterDoorLockAlarmEvent.kt index 918abe443473eb..a64fa042cfcd15 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterDoorLockAlarmEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterDoorLockAlarmEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DoorLockClusterDoorLockAlarmEvent(val alarmCode: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class DoorLockClusterDoorLockAlarmEvent ( + val alarmCode: UInt) { + override fun toString(): String = buildString { append("DoorLockClusterDoorLockAlarmEvent {\n") append("\talarmCode : $alarmCode\n") append("}\n") @@ -40,10 +45,10 @@ class DoorLockClusterDoorLockAlarmEvent(val alarmCode: UInt) { companion object { private const val TAG_ALARM_CODE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterDoorLockAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterDoorLockAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmCode = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_CODE)) - + tlvReader.exitContainer() return DoorLockClusterDoorLockAlarmEvent(alarmCode) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterDoorStateChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterDoorStateChangeEvent.kt index 64b69e7e205eb0..bed611cb8674c0 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterDoorStateChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterDoorStateChangeEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DoorLockClusterDoorStateChangeEvent(val doorState: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class DoorLockClusterDoorStateChangeEvent ( + val doorState: UInt) { + override fun toString(): String = buildString { append("DoorLockClusterDoorStateChangeEvent {\n") append("\tdoorState : $doorState\n") append("}\n") @@ -40,10 +45,10 @@ class DoorLockClusterDoorStateChangeEvent(val doorState: UInt) { companion object { private const val TAG_DOOR_STATE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterDoorStateChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterDoorStateChangeEvent { tlvReader.enterStructure(tlvTag) val doorState = tlvReader.getUInt(ContextSpecificTag(TAG_DOOR_STATE)) - + tlvReader.exitContainer() return DoorLockClusterDoorStateChangeEvent(doorState) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationErrorEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationErrorEvent.kt index d943e5d8ece7b8..c57900a30d7946 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationErrorEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationErrorEvent.kt @@ -17,24 +17,24 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import java.util.Optional import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DoorLockClusterLockOperationErrorEvent( - val lockOperationType: UInt, - val operationSource: UInt, - val operationError: UInt, - val userIndex: UInt?, - val fabricIndex: UInt?, - val sourceNode: ULong?, - val credentials: - Optional>? -) { - override fun toString(): String = buildString { +import java.util.Optional + +class DoorLockClusterLockOperationErrorEvent ( + val lockOperationType: UInt, + val operationSource: UInt, + val operationError: UInt, + val userIndex: UInt?, + val fabricIndex: UInt?, + val sourceNode: ULong?, + val credentials: Optional>?) { + override fun toString(): String = buildString { append("DoorLockClusterLockOperationErrorEvent {\n") append("\tlockOperationType : $lockOperationType\n") append("\toperationSource : $operationSource\n") @@ -53,32 +53,32 @@ class DoorLockClusterLockOperationErrorEvent( put(ContextSpecificTag(TAG_OPERATION_SOURCE), operationSource) put(ContextSpecificTag(TAG_OPERATION_ERROR), operationError) if (userIndex != null) { - put(ContextSpecificTag(TAG_USER_INDEX), userIndex) - } else { - putNull(ContextSpecificTag(TAG_USER_INDEX)) - } + put(ContextSpecificTag(TAG_USER_INDEX), userIndex) + } else { + putNull(ContextSpecificTag(TAG_USER_INDEX)) + } if (fabricIndex != null) { - put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) - } else { - putNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - } + put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) + } else { + putNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + } if (sourceNode != null) { - put(ContextSpecificTag(TAG_SOURCE_NODE), sourceNode) - } else { - putNull(ContextSpecificTag(TAG_SOURCE_NODE)) - } + put(ContextSpecificTag(TAG_SOURCE_NODE), sourceNode) + } else { + putNull(ContextSpecificTag(TAG_SOURCE_NODE)) + } if (credentials != null) { - if (credentials.isPresent) { - val optcredentials = credentials.get() - startArray(ContextSpecificTag(TAG_CREDENTIALS)) - for (item in optcredentials.iterator()) { - item.toTlv(AnonymousTag, this) - } - endArray() - } - } else { - putNull(ContextSpecificTag(TAG_CREDENTIALS)) + if (credentials.isPresent) { + val optcredentials = credentials.get() + startArray(ContextSpecificTag(TAG_CREDENTIALS)) + for (item in optcredentials.iterator()) { + item.toTlv(AnonymousTag, this) } + endArray() + } + } else { + putNull(ContextSpecificTag(TAG_CREDENTIALS)) + } endStructure() } } @@ -92,68 +92,49 @@ class DoorLockClusterLockOperationErrorEvent( private const val TAG_SOURCE_NODE = 5 private const val TAG_CREDENTIALS = 6 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterLockOperationErrorEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterLockOperationErrorEvent { tlvReader.enterStructure(tlvTag) val lockOperationType = tlvReader.getUInt(ContextSpecificTag(TAG_LOCK_OPERATION_TYPE)) val operationSource = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATION_SOURCE)) val operationError = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATION_ERROR)) - val userIndex = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_USER_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) - null - } - val fabricIndex = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - null - } - val sourceNode = - if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) - null - } - val credentials = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_CREDENTIALS))) { - Optional.of( - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CREDENTIALS)) - while (!tlvReader.isEndOfContainer()) { - this.add( - chip.devicecontroller.cluster.structs.DoorLockClusterCredentialStruct.fromTlv( - AnonymousTag, - tlvReader - ) - ) - } - tlvReader.exitContainer() - } - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CREDENTIALS)) - null - } - + val userIndex = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_USER_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) + null + } + val fabricIndex = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + null + } + val sourceNode = if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) + null + } + val credentials = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_CREDENTIALS))) { + Optional.of(buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CREDENTIALS)) + while(!tlvReader.isEndOfContainer()) { + this.add(chip.devicecontroller.cluster.structs.DoorLockClusterCredentialStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + }) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_CREDENTIALS)) + null + } + tlvReader.exitContainer() - return DoorLockClusterLockOperationErrorEvent( - lockOperationType, - operationSource, - operationError, - userIndex, - fabricIndex, - sourceNode, - credentials - ) + return DoorLockClusterLockOperationErrorEvent(lockOperationType, operationSource, operationError, userIndex, fabricIndex, sourceNode, credentials) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationEvent.kt index 0e7c7e678bac46..e86a8e434ee3ae 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationEvent.kt @@ -17,23 +17,23 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import java.util.Optional import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DoorLockClusterLockOperationEvent( - val lockOperationType: UInt, - val operationSource: UInt, - val userIndex: UInt?, - val fabricIndex: UInt?, - val sourceNode: ULong?, - val credentials: - Optional>? -) { - override fun toString(): String = buildString { +import java.util.Optional + +class DoorLockClusterLockOperationEvent ( + val lockOperationType: UInt, + val operationSource: UInt, + val userIndex: UInt?, + val fabricIndex: UInt?, + val sourceNode: ULong?, + val credentials: Optional>?) { + override fun toString(): String = buildString { append("DoorLockClusterLockOperationEvent {\n") append("\tlockOperationType : $lockOperationType\n") append("\toperationSource : $operationSource\n") @@ -50,32 +50,32 @@ class DoorLockClusterLockOperationEvent( put(ContextSpecificTag(TAG_LOCK_OPERATION_TYPE), lockOperationType) put(ContextSpecificTag(TAG_OPERATION_SOURCE), operationSource) if (userIndex != null) { - put(ContextSpecificTag(TAG_USER_INDEX), userIndex) - } else { - putNull(ContextSpecificTag(TAG_USER_INDEX)) - } + put(ContextSpecificTag(TAG_USER_INDEX), userIndex) + } else { + putNull(ContextSpecificTag(TAG_USER_INDEX)) + } if (fabricIndex != null) { - put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) - } else { - putNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - } + put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) + } else { + putNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + } if (sourceNode != null) { - put(ContextSpecificTag(TAG_SOURCE_NODE), sourceNode) - } else { - putNull(ContextSpecificTag(TAG_SOURCE_NODE)) - } + put(ContextSpecificTag(TAG_SOURCE_NODE), sourceNode) + } else { + putNull(ContextSpecificTag(TAG_SOURCE_NODE)) + } if (credentials != null) { - if (credentials.isPresent) { - val optcredentials = credentials.get() - startArray(ContextSpecificTag(TAG_CREDENTIALS)) - for (item in optcredentials.iterator()) { - item.toTlv(AnonymousTag, this) - } - endArray() - } - } else { - putNull(ContextSpecificTag(TAG_CREDENTIALS)) + if (credentials.isPresent) { + val optcredentials = credentials.get() + startArray(ContextSpecificTag(TAG_CREDENTIALS)) + for (item in optcredentials.iterator()) { + item.toTlv(AnonymousTag, this) } + endArray() + } + } else { + putNull(ContextSpecificTag(TAG_CREDENTIALS)) + } endStructure() } } @@ -88,66 +88,48 @@ class DoorLockClusterLockOperationEvent( private const val TAG_SOURCE_NODE = 4 private const val TAG_CREDENTIALS = 5 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterLockOperationEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterLockOperationEvent { tlvReader.enterStructure(tlvTag) val lockOperationType = tlvReader.getUInt(ContextSpecificTag(TAG_LOCK_OPERATION_TYPE)) val operationSource = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATION_SOURCE)) - val userIndex = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_USER_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) - null - } - val fabricIndex = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - null - } - val sourceNode = - if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) - null - } - val credentials = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_CREDENTIALS))) { - Optional.of( - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CREDENTIALS)) - while (!tlvReader.isEndOfContainer()) { - this.add( - chip.devicecontroller.cluster.structs.DoorLockClusterCredentialStruct.fromTlv( - AnonymousTag, - tlvReader - ) - ) - } - tlvReader.exitContainer() - } - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CREDENTIALS)) - null - } - + val userIndex = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_USER_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) + null + } + val fabricIndex = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + null + } + val sourceNode = if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) + null + } + val credentials = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_CREDENTIALS))) { + Optional.of(buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CREDENTIALS)) + while(!tlvReader.isEndOfContainer()) { + this.add(chip.devicecontroller.cluster.structs.DoorLockClusterCredentialStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + }) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_CREDENTIALS)) + null + } + tlvReader.exitContainer() - return DoorLockClusterLockOperationEvent( - lockOperationType, - operationSource, - userIndex, - fabricIndex, - sourceNode, - credentials - ) + return DoorLockClusterLockOperationEvent(lockOperationType, operationSource, userIndex, fabricIndex, sourceNode, credentials) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockUserChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockUserChangeEvent.kt index a5fc3f3725485e..7ef7dc4931b846 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockUserChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockUserChangeEvent.kt @@ -17,21 +17,24 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DoorLockClusterLockUserChangeEvent( - val lockDataType: UInt, - val dataOperationType: UInt, - val operationSource: UInt, - val userIndex: UInt?, - val fabricIndex: UInt?, - val sourceNode: ULong?, - val dataIndex: UInt? -) { - override fun toString(): String = buildString { +import java.util.Optional + +class DoorLockClusterLockUserChangeEvent ( + val lockDataType: UInt, + val dataOperationType: UInt, + val operationSource: UInt, + val userIndex: UInt?, + val fabricIndex: UInt?, + val sourceNode: ULong?, + val dataIndex: UInt?) { + override fun toString(): String = buildString { append("DoorLockClusterLockUserChangeEvent {\n") append("\tlockDataType : $lockDataType\n") append("\tdataOperationType : $dataOperationType\n") @@ -50,25 +53,25 @@ class DoorLockClusterLockUserChangeEvent( put(ContextSpecificTag(TAG_DATA_OPERATION_TYPE), dataOperationType) put(ContextSpecificTag(TAG_OPERATION_SOURCE), operationSource) if (userIndex != null) { - put(ContextSpecificTag(TAG_USER_INDEX), userIndex) - } else { - putNull(ContextSpecificTag(TAG_USER_INDEX)) - } + put(ContextSpecificTag(TAG_USER_INDEX), userIndex) + } else { + putNull(ContextSpecificTag(TAG_USER_INDEX)) + } if (fabricIndex != null) { - put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) - } else { - putNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - } + put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) + } else { + putNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + } if (sourceNode != null) { - put(ContextSpecificTag(TAG_SOURCE_NODE), sourceNode) - } else { - putNull(ContextSpecificTag(TAG_SOURCE_NODE)) - } + put(ContextSpecificTag(TAG_SOURCE_NODE), sourceNode) + } else { + putNull(ContextSpecificTag(TAG_SOURCE_NODE)) + } if (dataIndex != null) { - put(ContextSpecificTag(TAG_DATA_INDEX), dataIndex) - } else { - putNull(ContextSpecificTag(TAG_DATA_INDEX)) - } + put(ContextSpecificTag(TAG_DATA_INDEX), dataIndex) + } else { + putNull(ContextSpecificTag(TAG_DATA_INDEX)) + } endStructure() } } @@ -82,51 +85,39 @@ class DoorLockClusterLockUserChangeEvent( private const val TAG_SOURCE_NODE = 5 private const val TAG_DATA_INDEX = 6 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterLockUserChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterLockUserChangeEvent { tlvReader.enterStructure(tlvTag) val lockDataType = tlvReader.getUInt(ContextSpecificTag(TAG_LOCK_DATA_TYPE)) val dataOperationType = tlvReader.getUInt(ContextSpecificTag(TAG_DATA_OPERATION_TYPE)) val operationSource = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATION_SOURCE)) - val userIndex = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_USER_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) - null - } - val fabricIndex = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - null - } - val sourceNode = - if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) - null - } - val dataIndex = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_DATA_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_DATA_INDEX)) - null - } - + val userIndex = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_USER_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) + null + } + val fabricIndex = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + null + } + val sourceNode = if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) + null + } + val dataIndex = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_DATA_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_DATA_INDEX)) + null + } + tlvReader.exitContainer() - return DoorLockClusterLockUserChangeEvent( - lockDataType, - dataOperationType, - operationSource, - userIndex, - fabricIndex, - sourceNode, - dataIndex - ) + return DoorLockClusterLockUserChangeEvent(lockDataType, dataOperationType, operationSource, userIndex, fabricIndex, sourceNode, dataIndex) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterBootReasonEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterBootReasonEvent.kt index ab8a2c3ad964b4..c3100ce31c6f9b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterBootReasonEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterBootReasonEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class GeneralDiagnosticsClusterBootReasonEvent(val bootReason: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class GeneralDiagnosticsClusterBootReasonEvent ( + val bootReason: UInt) { + override fun toString(): String = buildString { append("GeneralDiagnosticsClusterBootReasonEvent {\n") append("\tbootReason : $bootReason\n") append("}\n") @@ -40,10 +45,10 @@ class GeneralDiagnosticsClusterBootReasonEvent(val bootReason: UInt) { companion object { private const val TAG_BOOT_REASON = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GeneralDiagnosticsClusterBootReasonEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterBootReasonEvent { tlvReader.enterStructure(tlvTag) val bootReason = tlvReader.getUInt(ContextSpecificTag(TAG_BOOT_REASON)) - + tlvReader.exitContainer() return GeneralDiagnosticsClusterBootReasonEvent(bootReason) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterHardwareFaultChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterHardwareFaultChangeEvent.kt index e09f3961230b34..f93896c837f200 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterHardwareFaultChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterHardwareFaultChangeEvent.kt @@ -20,14 +20,16 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class GeneralDiagnosticsClusterHardwareFaultChangeEvent( - val current: List, - val previous: List -) { - override fun toString(): String = buildString { +import java.util.Optional + +class GeneralDiagnosticsClusterHardwareFaultChangeEvent ( + val current: List, + val previous: List) { + override fun toString(): String = buildString { append("GeneralDiagnosticsClusterHardwareFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -55,28 +57,23 @@ class GeneralDiagnosticsClusterHardwareFaultChangeEvent( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): GeneralDiagnosticsClusterHardwareFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterHardwareFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return GeneralDiagnosticsClusterHardwareFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterNetworkFaultChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterNetworkFaultChangeEvent.kt index 2d17b1773194dc..ebc04643e795f2 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterNetworkFaultChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterNetworkFaultChangeEvent.kt @@ -20,14 +20,16 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class GeneralDiagnosticsClusterNetworkFaultChangeEvent( - val current: List, - val previous: List -) { - override fun toString(): String = buildString { +import java.util.Optional + +class GeneralDiagnosticsClusterNetworkFaultChangeEvent ( + val current: List, + val previous: List) { + override fun toString(): String = buildString { append("GeneralDiagnosticsClusterNetworkFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -55,28 +57,23 @@ class GeneralDiagnosticsClusterNetworkFaultChangeEvent( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): GeneralDiagnosticsClusterNetworkFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterNetworkFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return GeneralDiagnosticsClusterNetworkFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterRadioFaultChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterRadioFaultChangeEvent.kt index 3fc425674dde60..238e8657f6984b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterRadioFaultChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterRadioFaultChangeEvent.kt @@ -20,14 +20,16 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class GeneralDiagnosticsClusterRadioFaultChangeEvent( - val current: List, - val previous: List -) { - override fun toString(): String = buildString { +import java.util.Optional + +class GeneralDiagnosticsClusterRadioFaultChangeEvent ( + val current: List, + val previous: List) { + override fun toString(): String = buildString { append("GeneralDiagnosticsClusterRadioFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -55,25 +57,23 @@ class GeneralDiagnosticsClusterRadioFaultChangeEvent( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GeneralDiagnosticsClusterRadioFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterRadioFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return GeneralDiagnosticsClusterRadioFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationCompletionEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationCompletionEvent.kt index 95cf699d416744..bd2f7895bfd1e2 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationCompletionEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationCompletionEvent.kt @@ -17,18 +17,20 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class OperationalStateClusterOperationCompletionEvent( - val completionErrorCode: UInt, - val totalOperationalTime: Optional?, - val pausedTime: Optional? -) { - override fun toString(): String = buildString { +import java.util.Optional + +class OperationalStateClusterOperationCompletionEvent ( + val completionErrorCode: UInt, + val totalOperationalTime: Optional?, + val pausedTime: Optional?) { + override fun toString(): String = buildString { append("OperationalStateClusterOperationCompletionEvent {\n") append("\tcompletionErrorCode : $completionErrorCode\n") append("\ttotalOperationalTime : $totalOperationalTime\n") @@ -41,21 +43,21 @@ class OperationalStateClusterOperationCompletionEvent( startStructure(tlvTag) put(ContextSpecificTag(TAG_COMPLETION_ERROR_CODE), completionErrorCode) if (totalOperationalTime != null) { - if (totalOperationalTime.isPresent) { - val opttotalOperationalTime = totalOperationalTime.get() - put(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME), opttotalOperationalTime) - } - } else { - putNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) - } + if (totalOperationalTime.isPresent) { + val opttotalOperationalTime = totalOperationalTime.get() + put(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME), opttotalOperationalTime) + } + } else { + putNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) + } if (pausedTime != null) { - if (pausedTime.isPresent) { - val optpausedTime = pausedTime.get() - put(ContextSpecificTag(TAG_PAUSED_TIME), optpausedTime) - } - } else { - putNull(ContextSpecificTag(TAG_PAUSED_TIME)) - } + if (pausedTime.isPresent) { + val optpausedTime = pausedTime.get() + put(ContextSpecificTag(TAG_PAUSED_TIME), optpausedTime) + } + } else { + putNull(ContextSpecificTag(TAG_PAUSED_TIME)) + } endStructure() } } @@ -65,42 +67,33 @@ class OperationalStateClusterOperationCompletionEvent( private const val TAG_TOTAL_OPERATIONAL_TIME = 1 private const val TAG_PAUSED_TIME = 2 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): OperationalStateClusterOperationCompletionEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalStateClusterOperationCompletionEvent { tlvReader.enterStructure(tlvTag) val completionErrorCode = tlvReader.getUInt(ContextSpecificTag(TAG_COMPLETION_ERROR_CODE)) - val totalOperationalTime = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) - null - } - val pausedTime = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_PAUSED_TIME))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_PAUSED_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PAUSED_TIME)) - null - } - + val totalOperationalTime = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) + null + } + val pausedTime = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_PAUSED_TIME))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_PAUSED_TIME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PAUSED_TIME)) + null + } + tlvReader.exitContainer() - return OperationalStateClusterOperationCompletionEvent( - completionErrorCode, - totalOperationalTime, - pausedTime - ) + return OperationalStateClusterOperationCompletionEvent(completionErrorCode, totalOperationalTime, pausedTime) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationalErrorEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationalErrorEvent.kt index 4ff0719f3d0f3b..f0cd196223d72c 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationalErrorEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationalErrorEvent.kt @@ -17,15 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class OperationalStateClusterOperationalErrorEvent( - val errorState: chip.devicecontroller.cluster.structs.OperationalStateClusterErrorStateStruct -) { - override fun toString(): String = buildString { +import java.util.Optional + +class OperationalStateClusterOperationalErrorEvent ( + val errorState: chip.devicecontroller.cluster.structs.OperationalStateClusterErrorStateStruct) { + override fun toString(): String = buildString { append("OperationalStateClusterOperationalErrorEvent {\n") append("\terrorState : $errorState\n") append("}\n") @@ -42,14 +45,10 @@ class OperationalStateClusterOperationalErrorEvent( companion object { private const val TAG_ERROR_STATE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalStateClusterOperationalErrorEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalStateClusterOperationalErrorEvent { tlvReader.enterStructure(tlvTag) - val errorState = - chip.devicecontroller.cluster.structs.OperationalStateClusterErrorStateStruct.fromTlv( - ContextSpecificTag(TAG_ERROR_STATE), - tlvReader - ) - + val errorState = chip.devicecontroller.cluster.structs.OperationalStateClusterErrorStateStruct.fromTlv(ContextSpecificTag(TAG_ERROR_STATE), tlvReader) + tlvReader.exitContainer() return OperationalStateClusterOperationalErrorEvent(errorState) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterDownloadErrorEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterDownloadErrorEvent.kt index 8156c9578afadc..67e9047f0532a4 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterDownloadErrorEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterDownloadErrorEvent.kt @@ -17,18 +17,21 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class OtaSoftwareUpdateRequestorClusterDownloadErrorEvent( - val softwareVersion: ULong, - val bytesDownloaded: ULong, - val progressPercent: UInt?, - val platformCode: Long? -) { - override fun toString(): String = buildString { +import java.util.Optional + +class OtaSoftwareUpdateRequestorClusterDownloadErrorEvent ( + val softwareVersion: ULong, + val bytesDownloaded: ULong, + val progressPercent: UInt?, + val platformCode: Long?) { + override fun toString(): String = buildString { append("OtaSoftwareUpdateRequestorClusterDownloadErrorEvent {\n") append("\tsoftwareVersion : $softwareVersion\n") append("\tbytesDownloaded : $bytesDownloaded\n") @@ -43,15 +46,15 @@ class OtaSoftwareUpdateRequestorClusterDownloadErrorEvent( put(ContextSpecificTag(TAG_SOFTWARE_VERSION), softwareVersion) put(ContextSpecificTag(TAG_BYTES_DOWNLOADED), bytesDownloaded) if (progressPercent != null) { - put(ContextSpecificTag(TAG_PROGRESS_PERCENT), progressPercent) - } else { - putNull(ContextSpecificTag(TAG_PROGRESS_PERCENT)) - } + put(ContextSpecificTag(TAG_PROGRESS_PERCENT), progressPercent) + } else { + putNull(ContextSpecificTag(TAG_PROGRESS_PERCENT)) + } if (platformCode != null) { - put(ContextSpecificTag(TAG_PLATFORM_CODE), platformCode) - } else { - putNull(ContextSpecificTag(TAG_PLATFORM_CODE)) - } + put(ContextSpecificTag(TAG_PLATFORM_CODE), platformCode) + } else { + putNull(ContextSpecificTag(TAG_PLATFORM_CODE)) + } endStructure() } } @@ -62,36 +65,26 @@ class OtaSoftwareUpdateRequestorClusterDownloadErrorEvent( private const val TAG_PROGRESS_PERCENT = 2 private const val TAG_PLATFORM_CODE = 3 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): OtaSoftwareUpdateRequestorClusterDownloadErrorEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OtaSoftwareUpdateRequestorClusterDownloadErrorEvent { tlvReader.enterStructure(tlvTag) val softwareVersion = tlvReader.getULong(ContextSpecificTag(TAG_SOFTWARE_VERSION)) val bytesDownloaded = tlvReader.getULong(ContextSpecificTag(TAG_BYTES_DOWNLOADED)) - val progressPercent = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_PROGRESS_PERCENT)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PROGRESS_PERCENT)) - null - } - val platformCode = - if (!tlvReader.isNull()) { - tlvReader.getLong(ContextSpecificTag(TAG_PLATFORM_CODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PLATFORM_CODE)) - null - } - + val progressPercent = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_PROGRESS_PERCENT)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PROGRESS_PERCENT)) + null + } + val platformCode = if (!tlvReader.isNull()) { + tlvReader.getLong(ContextSpecificTag(TAG_PLATFORM_CODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PLATFORM_CODE)) + null + } + tlvReader.exitContainer() - return OtaSoftwareUpdateRequestorClusterDownloadErrorEvent( - softwareVersion, - bytesDownloaded, - progressPercent, - platformCode - ) + return OtaSoftwareUpdateRequestorClusterDownloadErrorEvent(softwareVersion, bytesDownloaded, progressPercent, platformCode) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterStateTransitionEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterStateTransitionEvent.kt index 3843fe8b3b782a..99acba4d90a2dd 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterStateTransitionEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterStateTransitionEvent.kt @@ -17,18 +17,21 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class OtaSoftwareUpdateRequestorClusterStateTransitionEvent( - val previousState: UInt, - val newState: UInt, - val reason: UInt, - val targetSoftwareVersion: ULong? -) { - override fun toString(): String = buildString { +import java.util.Optional + +class OtaSoftwareUpdateRequestorClusterStateTransitionEvent ( + val previousState: UInt, + val newState: UInt, + val reason: UInt, + val targetSoftwareVersion: ULong?) { + override fun toString(): String = buildString { append("OtaSoftwareUpdateRequestorClusterStateTransitionEvent {\n") append("\tpreviousState : $previousState\n") append("\tnewState : $newState\n") @@ -44,10 +47,10 @@ class OtaSoftwareUpdateRequestorClusterStateTransitionEvent( put(ContextSpecificTag(TAG_NEW_STATE), newState) put(ContextSpecificTag(TAG_REASON), reason) if (targetSoftwareVersion != null) { - put(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION), targetSoftwareVersion) - } else { - putNull(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) - } + put(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION), targetSoftwareVersion) + } else { + putNull(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) + } endStructure() } } @@ -58,30 +61,21 @@ class OtaSoftwareUpdateRequestorClusterStateTransitionEvent( private const val TAG_REASON = 2 private const val TAG_TARGET_SOFTWARE_VERSION = 3 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): OtaSoftwareUpdateRequestorClusterStateTransitionEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OtaSoftwareUpdateRequestorClusterStateTransitionEvent { tlvReader.enterStructure(tlvTag) val previousState = tlvReader.getUInt(ContextSpecificTag(TAG_PREVIOUS_STATE)) val newState = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_STATE)) val reason = tlvReader.getUInt(ContextSpecificTag(TAG_REASON)) - val targetSoftwareVersion = - if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) - null - } - + val targetSoftwareVersion = if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) + null + } + tlvReader.exitContainer() - return OtaSoftwareUpdateRequestorClusterStateTransitionEvent( - previousState, - newState, - reason, - targetSoftwareVersion - ) + return OtaSoftwareUpdateRequestorClusterStateTransitionEvent(previousState, newState, reason, targetSoftwareVersion) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterVersionAppliedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterVersionAppliedEvent.kt index 43ec6b74bfc442..50dda1eeae85db 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterVersionAppliedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterVersionAppliedEvent.kt @@ -17,16 +17,19 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class OtaSoftwareUpdateRequestorClusterVersionAppliedEvent( - val softwareVersion: ULong, - val productID: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class OtaSoftwareUpdateRequestorClusterVersionAppliedEvent ( + val softwareVersion: ULong, + val productID: UInt) { + override fun toString(): String = buildString { append("OtaSoftwareUpdateRequestorClusterVersionAppliedEvent {\n") append("\tsoftwareVersion : $softwareVersion\n") append("\tproductID : $productID\n") @@ -46,14 +49,11 @@ class OtaSoftwareUpdateRequestorClusterVersionAppliedEvent( private const val TAG_SOFTWARE_VERSION = 0 private const val TAG_PRODUCT_I_D = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): OtaSoftwareUpdateRequestorClusterVersionAppliedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OtaSoftwareUpdateRequestorClusterVersionAppliedEvent { tlvReader.enterStructure(tlvTag) val softwareVersion = tlvReader.getULong(ContextSpecificTag(TAG_SOFTWARE_VERSION)) val productID = tlvReader.getUInt(ContextSpecificTag(TAG_PRODUCT_I_D)) - + tlvReader.exitContainer() return OtaSoftwareUpdateRequestorClusterVersionAppliedEvent(softwareVersion, productID) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterBatChargeFaultChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterBatChargeFaultChangeEvent.kt index fdb0b033a7616a..b09829b20efd50 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterBatChargeFaultChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterBatChargeFaultChangeEvent.kt @@ -20,14 +20,16 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class PowerSourceClusterBatChargeFaultChangeEvent( - val current: List, - val previous: List -) { - override fun toString(): String = buildString { +import java.util.Optional + +class PowerSourceClusterBatChargeFaultChangeEvent ( + val current: List, + val previous: List) { + override fun toString(): String = buildString { append("PowerSourceClusterBatChargeFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -55,25 +57,23 @@ class PowerSourceClusterBatChargeFaultChangeEvent( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterBatChargeFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterBatChargeFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterBatChargeFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterBatFaultChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterBatFaultChangeEvent.kt index 7a5d133299cef5..ef4689fff56f84 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterBatFaultChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterBatFaultChangeEvent.kt @@ -20,11 +20,16 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class PowerSourceClusterBatFaultChangeEvent(val current: List, val previous: List) { - override fun toString(): String = buildString { +import java.util.Optional + +class PowerSourceClusterBatFaultChangeEvent ( + val current: List, + val previous: List) { + override fun toString(): String = buildString { append("PowerSourceClusterBatFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -52,25 +57,23 @@ class PowerSourceClusterBatFaultChangeEvent(val current: List, val previou private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterBatFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterBatFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterBatFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterWiredFaultChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterWiredFaultChangeEvent.kt index 1f004191d406f0..5062e14fc47019 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterWiredFaultChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterWiredFaultChangeEvent.kt @@ -20,11 +20,16 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class PowerSourceClusterWiredFaultChangeEvent(val current: List, val previous: List) { - override fun toString(): String = buildString { +import java.util.Optional + +class PowerSourceClusterWiredFaultChangeEvent ( + val current: List, + val previous: List) { + override fun toString(): String = buildString { append("PowerSourceClusterWiredFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -52,25 +57,23 @@ class PowerSourceClusterWiredFaultChangeEvent(val current: List, val previ private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterWiredFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterWiredFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterWiredFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RefrigeratorAlarmClusterNotifyEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RefrigeratorAlarmClusterNotifyEvent.kt index 2584478cd02e39..0d0ec7f29f122c 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RefrigeratorAlarmClusterNotifyEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RefrigeratorAlarmClusterNotifyEvent.kt @@ -17,18 +17,21 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class RefrigeratorAlarmClusterNotifyEvent( - val active: ULong, - val inactive: ULong, - val state: ULong, - val mask: ULong -) { - override fun toString(): String = buildString { +import java.util.Optional + +class RefrigeratorAlarmClusterNotifyEvent ( + val active: ULong, + val inactive: ULong, + val state: ULong, + val mask: ULong) { + override fun toString(): String = buildString { append("RefrigeratorAlarmClusterNotifyEvent {\n") append("\tactive : $active\n") append("\tinactive : $inactive\n") @@ -54,13 +57,13 @@ class RefrigeratorAlarmClusterNotifyEvent( private const val TAG_STATE = 2 private const val TAG_MASK = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RefrigeratorAlarmClusterNotifyEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RefrigeratorAlarmClusterNotifyEvent { tlvReader.enterStructure(tlvTag) val active = tlvReader.getULong(ContextSpecificTag(TAG_ACTIVE)) val inactive = tlvReader.getULong(ContextSpecificTag(TAG_INACTIVE)) val state = tlvReader.getULong(ContextSpecificTag(TAG_STATE)) val mask = tlvReader.getULong(ContextSpecificTag(TAG_MASK)) - + tlvReader.exitContainer() return RefrigeratorAlarmClusterNotifyEvent(active, inactive, state, mask) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationCompletionEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationCompletionEvent.kt index cfea1b82753b91..a9817567e22677 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationCompletionEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationCompletionEvent.kt @@ -17,18 +17,20 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class RvcOperationalStateClusterOperationCompletionEvent( - val completionErrorCode: UInt, - val totalOperationalTime: Optional?, - val pausedTime: Optional? -) { - override fun toString(): String = buildString { +import java.util.Optional + +class RvcOperationalStateClusterOperationCompletionEvent ( + val completionErrorCode: UInt, + val totalOperationalTime: Optional?, + val pausedTime: Optional?) { + override fun toString(): String = buildString { append("RvcOperationalStateClusterOperationCompletionEvent {\n") append("\tcompletionErrorCode : $completionErrorCode\n") append("\ttotalOperationalTime : $totalOperationalTime\n") @@ -41,21 +43,21 @@ class RvcOperationalStateClusterOperationCompletionEvent( startStructure(tlvTag) put(ContextSpecificTag(TAG_COMPLETION_ERROR_CODE), completionErrorCode) if (totalOperationalTime != null) { - if (totalOperationalTime.isPresent) { - val opttotalOperationalTime = totalOperationalTime.get() - put(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME), opttotalOperationalTime) - } - } else { - putNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) - } + if (totalOperationalTime.isPresent) { + val opttotalOperationalTime = totalOperationalTime.get() + put(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME), opttotalOperationalTime) + } + } else { + putNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) + } if (pausedTime != null) { - if (pausedTime.isPresent) { - val optpausedTime = pausedTime.get() - put(ContextSpecificTag(TAG_PAUSED_TIME), optpausedTime) - } - } else { - putNull(ContextSpecificTag(TAG_PAUSED_TIME)) - } + if (pausedTime.isPresent) { + val optpausedTime = pausedTime.get() + put(ContextSpecificTag(TAG_PAUSED_TIME), optpausedTime) + } + } else { + putNull(ContextSpecificTag(TAG_PAUSED_TIME)) + } endStructure() } } @@ -65,42 +67,33 @@ class RvcOperationalStateClusterOperationCompletionEvent( private const val TAG_TOTAL_OPERATIONAL_TIME = 1 private const val TAG_PAUSED_TIME = 2 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): RvcOperationalStateClusterOperationCompletionEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcOperationalStateClusterOperationCompletionEvent { tlvReader.enterStructure(tlvTag) val completionErrorCode = tlvReader.getUInt(ContextSpecificTag(TAG_COMPLETION_ERROR_CODE)) - val totalOperationalTime = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) - null - } - val pausedTime = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_PAUSED_TIME))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_PAUSED_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PAUSED_TIME)) - null - } - + val totalOperationalTime = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) + null + } + val pausedTime = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_PAUSED_TIME))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_PAUSED_TIME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PAUSED_TIME)) + null + } + tlvReader.exitContainer() - return RvcOperationalStateClusterOperationCompletionEvent( - completionErrorCode, - totalOperationalTime, - pausedTime - ) + return RvcOperationalStateClusterOperationCompletionEvent(completionErrorCode, totalOperationalTime, pausedTime) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationalErrorEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationalErrorEvent.kt index 6ad8a5e8875408..406ef9431645cd 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationalErrorEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationalErrorEvent.kt @@ -17,15 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class RvcOperationalStateClusterOperationalErrorEvent( - val errorState: chip.devicecontroller.cluster.structs.RvcOperationalStateClusterErrorStateStruct -) { - override fun toString(): String = buildString { +import java.util.Optional + +class RvcOperationalStateClusterOperationalErrorEvent ( + val errorState: chip.devicecontroller.cluster.structs.RvcOperationalStateClusterErrorStateStruct) { + override fun toString(): String = buildString { append("RvcOperationalStateClusterOperationalErrorEvent {\n") append("\terrorState : $errorState\n") append("}\n") @@ -42,17 +45,10 @@ class RvcOperationalStateClusterOperationalErrorEvent( companion object { private const val TAG_ERROR_STATE = 0 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): RvcOperationalStateClusterOperationalErrorEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcOperationalStateClusterOperationalErrorEvent { tlvReader.enterStructure(tlvTag) - val errorState = - chip.devicecontroller.cluster.structs.RvcOperationalStateClusterErrorStateStruct.fromTlv( - ContextSpecificTag(TAG_ERROR_STATE), - tlvReader - ) - + val errorState = chip.devicecontroller.cluster.structs.RvcOperationalStateClusterErrorStateStruct.fromTlv(ContextSpecificTag(TAG_ERROR_STATE), tlvReader) + tlvReader.exitContainer() return RvcOperationalStateClusterOperationalErrorEvent(errorState) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterCOAlarmEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterCOAlarmEvent.kt index a34090499ca233..48acd74033fca2 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterCOAlarmEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterCOAlarmEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SmokeCoAlarmClusterCOAlarmEvent(val alarmSeverityLevel: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class SmokeCoAlarmClusterCOAlarmEvent ( + val alarmSeverityLevel: UInt) { + override fun toString(): String = buildString { append("SmokeCoAlarmClusterCOAlarmEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") append("}\n") @@ -40,10 +45,10 @@ class SmokeCoAlarmClusterCOAlarmEvent(val alarmSeverityLevel: UInt) { companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterCOAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterCOAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterCOAlarmEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectCOAlarmEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectCOAlarmEvent.kt index c3ec4fbf491c87..685a6ab5fc1059 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectCOAlarmEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectCOAlarmEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SmokeCoAlarmClusterInterconnectCOAlarmEvent(val alarmSeverityLevel: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class SmokeCoAlarmClusterInterconnectCOAlarmEvent ( + val alarmSeverityLevel: UInt) { + override fun toString(): String = buildString { append("SmokeCoAlarmClusterInterconnectCOAlarmEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") append("}\n") @@ -40,10 +45,10 @@ class SmokeCoAlarmClusterInterconnectCOAlarmEvent(val alarmSeverityLevel: UInt) companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterInterconnectCOAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterInterconnectCOAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterInterconnectCOAlarmEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectSmokeAlarmEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectSmokeAlarmEvent.kt index 3957d722ade622..1fb60bf24aec59 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectSmokeAlarmEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectSmokeAlarmEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SmokeCoAlarmClusterInterconnectSmokeAlarmEvent(val alarmSeverityLevel: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class SmokeCoAlarmClusterInterconnectSmokeAlarmEvent ( + val alarmSeverityLevel: UInt) { + override fun toString(): String = buildString { append("SmokeCoAlarmClusterInterconnectSmokeAlarmEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") append("}\n") @@ -40,10 +45,10 @@ class SmokeCoAlarmClusterInterconnectSmokeAlarmEvent(val alarmSeverityLevel: UIn companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterInterconnectSmokeAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterInterconnectSmokeAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterInterconnectSmokeAlarmEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterLowBatteryEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterLowBatteryEvent.kt index e855a9391a7491..91345969b757b4 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterLowBatteryEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterLowBatteryEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SmokeCoAlarmClusterLowBatteryEvent(val alarmSeverityLevel: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class SmokeCoAlarmClusterLowBatteryEvent ( + val alarmSeverityLevel: UInt) { + override fun toString(): String = buildString { append("SmokeCoAlarmClusterLowBatteryEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") append("}\n") @@ -40,10 +45,10 @@ class SmokeCoAlarmClusterLowBatteryEvent(val alarmSeverityLevel: UInt) { companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterLowBatteryEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterLowBatteryEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterLowBatteryEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterSmokeAlarmEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterSmokeAlarmEvent.kt index 5e5ff96385c265..3494dffe4f3d5b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterSmokeAlarmEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterSmokeAlarmEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SmokeCoAlarmClusterSmokeAlarmEvent(val alarmSeverityLevel: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class SmokeCoAlarmClusterSmokeAlarmEvent ( + val alarmSeverityLevel: UInt) { + override fun toString(): String = buildString { append("SmokeCoAlarmClusterSmokeAlarmEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") append("}\n") @@ -40,10 +45,10 @@ class SmokeCoAlarmClusterSmokeAlarmEvent(val alarmSeverityLevel: UInt) { companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterSmokeAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterSmokeAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterSmokeAlarmEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SoftwareDiagnosticsClusterSoftwareFaultEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SoftwareDiagnosticsClusterSoftwareFaultEvent.kt index d3389bbaf8f367..b0e0d4844fadca 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SoftwareDiagnosticsClusterSoftwareFaultEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SoftwareDiagnosticsClusterSoftwareFaultEvent.kt @@ -17,18 +17,20 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SoftwareDiagnosticsClusterSoftwareFaultEvent( - val id: ULong, - val name: Optional, - val faultRecording: Optional -) { - override fun toString(): String = buildString { +import java.util.Optional + +class SoftwareDiagnosticsClusterSoftwareFaultEvent ( + val id: ULong, + val name: Optional, + val faultRecording: Optional) { + override fun toString(): String = buildString { append("SoftwareDiagnosticsClusterSoftwareFaultEvent {\n") append("\tid : $id\n") append("\tname : $name\n") @@ -41,13 +43,13 @@ class SoftwareDiagnosticsClusterSoftwareFaultEvent( startStructure(tlvTag) put(ContextSpecificTag(TAG_ID), id) if (name.isPresent) { - val optname = name.get() - put(ContextSpecificTag(TAG_NAME), optname) - } + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } if (faultRecording.isPresent) { - val optfaultRecording = faultRecording.get() - put(ContextSpecificTag(TAG_FAULT_RECORDING), optfaultRecording) - } + val optfaultRecording = faultRecording.get() + put(ContextSpecificTag(TAG_FAULT_RECORDING), optfaultRecording) + } endStructure() } } @@ -57,22 +59,20 @@ class SoftwareDiagnosticsClusterSoftwareFaultEvent( private const val TAG_NAME = 1 private const val TAG_FAULT_RECORDING = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SoftwareDiagnosticsClusterSoftwareFaultEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SoftwareDiagnosticsClusterSoftwareFaultEvent { tlvReader.enterStructure(tlvTag) val id = tlvReader.getULong(ContextSpecificTag(TAG_ID)) - val name = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - val faultRecording = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_FAULT_RECORDING))) { - Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_FAULT_RECORDING))) - } else { - Optional.empty() - } - + val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + val faultRecording = if (tlvReader.isNextTag(ContextSpecificTag(TAG_FAULT_RECORDING))) { + Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_FAULT_RECORDING))) + } else { + Optional.empty() + } + tlvReader.exitContainer() return SoftwareDiagnosticsClusterSoftwareFaultEvent(id, name, faultRecording) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterInitialPressEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterInitialPressEvent.kt index 965bc1a81af5ac..fa3cf254ebdb96 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterInitialPressEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterInitialPressEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SwitchClusterInitialPressEvent(val newPosition: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class SwitchClusterInitialPressEvent ( + val newPosition: UInt) { + override fun toString(): String = buildString { append("SwitchClusterInitialPressEvent {\n") append("\tnewPosition : $newPosition\n") append("}\n") @@ -40,10 +45,10 @@ class SwitchClusterInitialPressEvent(val newPosition: UInt) { companion object { private const val TAG_NEW_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterInitialPressEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterInitialPressEvent { tlvReader.enterStructure(tlvTag) val newPosition = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_POSITION)) - + tlvReader.exitContainer() return SwitchClusterInitialPressEvent(newPosition) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterLongPressEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterLongPressEvent.kt index e986ef1d8d97fe..2748e8e6a44449 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterLongPressEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterLongPressEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SwitchClusterLongPressEvent(val newPosition: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class SwitchClusterLongPressEvent ( + val newPosition: UInt) { + override fun toString(): String = buildString { append("SwitchClusterLongPressEvent {\n") append("\tnewPosition : $newPosition\n") append("}\n") @@ -40,10 +45,10 @@ class SwitchClusterLongPressEvent(val newPosition: UInt) { companion object { private const val TAG_NEW_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterLongPressEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterLongPressEvent { tlvReader.enterStructure(tlvTag) val newPosition = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_POSITION)) - + tlvReader.exitContainer() return SwitchClusterLongPressEvent(newPosition) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterLongReleaseEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterLongReleaseEvent.kt index e99b119d906e8b..f4661d48d8e63e 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterLongReleaseEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterLongReleaseEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SwitchClusterLongReleaseEvent(val previousPosition: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class SwitchClusterLongReleaseEvent ( + val previousPosition: UInt) { + override fun toString(): String = buildString { append("SwitchClusterLongReleaseEvent {\n") append("\tpreviousPosition : $previousPosition\n") append("}\n") @@ -40,10 +45,10 @@ class SwitchClusterLongReleaseEvent(val previousPosition: UInt) { companion object { private const val TAG_PREVIOUS_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterLongReleaseEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterLongReleaseEvent { tlvReader.enterStructure(tlvTag) val previousPosition = tlvReader.getUInt(ContextSpecificTag(TAG_PREVIOUS_POSITION)) - + tlvReader.exitContainer() return SwitchClusterLongReleaseEvent(previousPosition) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressCompleteEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressCompleteEvent.kt index 381ec17ae29ac5..b5d580a7cf0c55 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressCompleteEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressCompleteEvent.kt @@ -17,16 +17,19 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SwitchClusterMultiPressCompleteEvent( - val previousPosition: UInt, - val totalNumberOfPressesCounted: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class SwitchClusterMultiPressCompleteEvent ( + val previousPosition: UInt, + val totalNumberOfPressesCounted: UInt) { + override fun toString(): String = buildString { append("SwitchClusterMultiPressCompleteEvent {\n") append("\tpreviousPosition : $previousPosition\n") append("\ttotalNumberOfPressesCounted : $totalNumberOfPressesCounted\n") @@ -46,12 +49,11 @@ class SwitchClusterMultiPressCompleteEvent( private const val TAG_PREVIOUS_POSITION = 0 private const val TAG_TOTAL_NUMBER_OF_PRESSES_COUNTED = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterMultiPressCompleteEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterMultiPressCompleteEvent { tlvReader.enterStructure(tlvTag) val previousPosition = tlvReader.getUInt(ContextSpecificTag(TAG_PREVIOUS_POSITION)) - val totalNumberOfPressesCounted = - tlvReader.getUInt(ContextSpecificTag(TAG_TOTAL_NUMBER_OF_PRESSES_COUNTED)) - + val totalNumberOfPressesCounted = tlvReader.getUInt(ContextSpecificTag(TAG_TOTAL_NUMBER_OF_PRESSES_COUNTED)) + tlvReader.exitContainer() return SwitchClusterMultiPressCompleteEvent(previousPosition, totalNumberOfPressesCounted) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressOngoingEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressOngoingEvent.kt index dd904f59cb9fdc..fcaf6c0ca5ef5f 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressOngoingEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressOngoingEvent.kt @@ -17,16 +17,19 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SwitchClusterMultiPressOngoingEvent( - val newPosition: UInt, - val currentNumberOfPressesCounted: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class SwitchClusterMultiPressOngoingEvent ( + val newPosition: UInt, + val currentNumberOfPressesCounted: UInt) { + override fun toString(): String = buildString { append("SwitchClusterMultiPressOngoingEvent {\n") append("\tnewPosition : $newPosition\n") append("\tcurrentNumberOfPressesCounted : $currentNumberOfPressesCounted\n") @@ -46,12 +49,11 @@ class SwitchClusterMultiPressOngoingEvent( private const val TAG_NEW_POSITION = 0 private const val TAG_CURRENT_NUMBER_OF_PRESSES_COUNTED = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterMultiPressOngoingEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterMultiPressOngoingEvent { tlvReader.enterStructure(tlvTag) val newPosition = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_POSITION)) - val currentNumberOfPressesCounted = - tlvReader.getUInt(ContextSpecificTag(TAG_CURRENT_NUMBER_OF_PRESSES_COUNTED)) - + val currentNumberOfPressesCounted = tlvReader.getUInt(ContextSpecificTag(TAG_CURRENT_NUMBER_OF_PRESSES_COUNTED)) + tlvReader.exitContainer() return SwitchClusterMultiPressOngoingEvent(newPosition, currentNumberOfPressesCounted) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterShortReleaseEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterShortReleaseEvent.kt index 477dc53e895a2a..91a786b4f78740 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterShortReleaseEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterShortReleaseEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SwitchClusterShortReleaseEvent(val previousPosition: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class SwitchClusterShortReleaseEvent ( + val previousPosition: UInt) { + override fun toString(): String = buildString { append("SwitchClusterShortReleaseEvent {\n") append("\tpreviousPosition : $previousPosition\n") append("}\n") @@ -40,10 +45,10 @@ class SwitchClusterShortReleaseEvent(val previousPosition: UInt) { companion object { private const val TAG_PREVIOUS_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterShortReleaseEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterShortReleaseEvent { tlvReader.enterStructure(tlvTag) val previousPosition = tlvReader.getUInt(ContextSpecificTag(TAG_PREVIOUS_POSITION)) - + tlvReader.exitContainer() return SwitchClusterShortReleaseEvent(previousPosition) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterSwitchLatchedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterSwitchLatchedEvent.kt index 6a2ea4883e4f6f..f6537ab66e931a 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterSwitchLatchedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterSwitchLatchedEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SwitchClusterSwitchLatchedEvent(val newPosition: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class SwitchClusterSwitchLatchedEvent ( + val newPosition: UInt) { + override fun toString(): String = buildString { append("SwitchClusterSwitchLatchedEvent {\n") append("\tnewPosition : $newPosition\n") append("}\n") @@ -40,10 +45,10 @@ class SwitchClusterSwitchLatchedEvent(val newPosition: UInt) { companion object { private const val TAG_NEW_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterSwitchLatchedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterSwitchLatchedEvent { tlvReader.enterStructure(tlvTag) val newPosition = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_POSITION)) - + tlvReader.exitContainer() return SwitchClusterSwitchLatchedEvent(newPosition) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterConnectionStatusEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterConnectionStatusEvent.kt index dc55e372090536..7a9290a163f25e 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterConnectionStatusEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterConnectionStatusEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ThreadNetworkDiagnosticsClusterConnectionStatusEvent(val connectionStatus: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class ThreadNetworkDiagnosticsClusterConnectionStatusEvent ( + val connectionStatus: UInt) { + override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterConnectionStatusEvent {\n") append("\tconnectionStatus : $connectionStatus\n") append("}\n") @@ -40,13 +45,10 @@ class ThreadNetworkDiagnosticsClusterConnectionStatusEvent(val connectionStatus: companion object { private const val TAG_CONNECTION_STATUS = 0 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): ThreadNetworkDiagnosticsClusterConnectionStatusEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterConnectionStatusEvent { tlvReader.enterStructure(tlvTag) val connectionStatus = tlvReader.getUInt(ContextSpecificTag(TAG_CONNECTION_STATUS)) - + tlvReader.exitContainer() return ThreadNetworkDiagnosticsClusterConnectionStatusEvent(connectionStatus) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.kt index f2ce60e4c710ba..384675b471a0d6 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.kt @@ -20,14 +20,16 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent( - val current: List, - val previous: List -) { - override fun toString(): String = buildString { +import java.util.Optional + +class ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent ( + val current: List, + val previous: List) { + override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -55,28 +57,23 @@ class ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterDSTStatusEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterDSTStatusEvent.kt index 7564293e97be61..d4162a1dd3f5ae 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterDSTStatusEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterDSTStatusEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class TimeSynchronizationClusterDSTStatusEvent(val DSTOffsetActive: Boolean) { - override fun toString(): String = buildString { +import java.util.Optional + +class TimeSynchronizationClusterDSTStatusEvent ( + val DSTOffsetActive: Boolean) { + override fun toString(): String = buildString { append("TimeSynchronizationClusterDSTStatusEvent {\n") append("\tDSTOffsetActive : $DSTOffsetActive\n") append("}\n") @@ -40,10 +45,10 @@ class TimeSynchronizationClusterDSTStatusEvent(val DSTOffsetActive: Boolean) { companion object { private const val TAG_D_S_T_OFFSET_ACTIVE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TimeSynchronizationClusterDSTStatusEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterDSTStatusEvent { tlvReader.enterStructure(tlvTag) val DSTOffsetActive = tlvReader.getBoolean(ContextSpecificTag(TAG_D_S_T_OFFSET_ACTIVE)) - + tlvReader.exitContainer() return TimeSynchronizationClusterDSTStatusEvent(DSTOffsetActive) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterTimeZoneStatusEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterTimeZoneStatusEvent.kt index 9e9d5ef9f1355f..52b2b4fd1e1dfa 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterTimeZoneStatusEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterTimeZoneStatusEvent.kt @@ -17,14 +17,19 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class TimeSynchronizationClusterTimeZoneStatusEvent(val offset: Long, val name: Optional) { - override fun toString(): String = buildString { +import java.util.Optional + +class TimeSynchronizationClusterTimeZoneStatusEvent ( + val offset: Long, + val name: Optional) { + override fun toString(): String = buildString { append("TimeSynchronizationClusterTimeZoneStatusEvent {\n") append("\toffset : $offset\n") append("\tname : $name\n") @@ -36,9 +41,9 @@ class TimeSynchronizationClusterTimeZoneStatusEvent(val offset: Long, val name: startStructure(tlvTag) put(ContextSpecificTag(TAG_OFFSET), offset) if (name.isPresent) { - val optname = name.get() - put(ContextSpecificTag(TAG_NAME), optname) - } + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } endStructure() } } @@ -47,16 +52,15 @@ class TimeSynchronizationClusterTimeZoneStatusEvent(val offset: Long, val name: private const val TAG_OFFSET = 0 private const val TAG_NAME = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TimeSynchronizationClusterTimeZoneStatusEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterTimeZoneStatusEvent { tlvReader.enterStructure(tlvTag) val offset = tlvReader.getLong(ContextSpecificTag(TAG_OFFSET)) - val name = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - + val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + tlvReader.exitContainer() return TimeSynchronizationClusterTimeZoneStatusEvent(offset, name) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/UnitTestingClusterTestEventEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/UnitTestingClusterTestEventEvent.kt index d92c0b6b531a6b..89dbdc9593b84e 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/UnitTestingClusterTestEventEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/UnitTestingClusterTestEventEvent.kt @@ -20,18 +20,20 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class UnitTestingClusterTestEventEvent( - val arg1: UInt, - val arg2: UInt, - val arg3: Boolean, - val arg4: chip.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct, - val arg5: List, - val arg6: List -) { - override fun toString(): String = buildString { +import java.util.Optional + +class UnitTestingClusterTestEventEvent ( + val arg1: UInt, + val arg2: UInt, + val arg3: Boolean, + val arg4: chip.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct, + val arg5: List, + val arg6: List) { + override fun toString(): String = buildString { append("UnitTestingClusterTestEventEvent {\n") append("\targ1 : $arg1\n") append("\targ2 : $arg2\n") @@ -71,38 +73,27 @@ class UnitTestingClusterTestEventEvent( private const val TAG_ARG5 = 5 private const val TAG_ARG6 = 6 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterTestEventEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterTestEventEvent { tlvReader.enterStructure(tlvTag) val arg1 = tlvReader.getUInt(ContextSpecificTag(TAG_ARG1)) val arg2 = tlvReader.getUInt(ContextSpecificTag(TAG_ARG2)) val arg3 = tlvReader.getBoolean(ContextSpecificTag(TAG_ARG3)) - val arg4 = - chip.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct.fromTlv( - ContextSpecificTag(TAG_ARG4), - tlvReader - ) - val arg5 = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ARG5)) - while (!tlvReader.isEndOfContainer()) { - this.add( - chip.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct.fromTlv( - AnonymousTag, - tlvReader - ) - ) - } - tlvReader.exitContainer() - } - val arg6 = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ARG6)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val arg4 = chip.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_ARG4), tlvReader) + val arg5 = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ARG5)) + while(!tlvReader.isEndOfContainer()) { + this.add(chip.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + val arg6 = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ARG6)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return UnitTestingClusterTestEventEvent(arg1, arg2, arg3, arg4, arg5, arg6) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/UnitTestingClusterTestFabricScopedEventEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/UnitTestingClusterTestFabricScopedEventEvent.kt index b6cc1c77125923..b71c9c788a3a76 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/UnitTestingClusterTestFabricScopedEventEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/UnitTestingClusterTestFabricScopedEventEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class UnitTestingClusterTestFabricScopedEventEvent(val fabricIndex: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class UnitTestingClusterTestFabricScopedEventEvent ( + val fabricIndex: UInt) { + override fun toString(): String = buildString { append("UnitTestingClusterTestFabricScopedEventEvent {\n") append("\tfabricIndex : $fabricIndex\n") append("}\n") @@ -40,10 +45,10 @@ class UnitTestingClusterTestFabricScopedEventEvent(val fabricIndex: UInt) { companion object { private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterTestFabricScopedEventEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterTestFabricScopedEventEvent { tlvReader.enterStructure(tlvTag) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return UnitTestingClusterTestFabricScopedEventEvent(fabricIndex) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveFaultEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveFaultEvent.kt index cb432d975e1275..cead9f186377e2 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveFaultEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveFaultEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ValveConfigurationAndControlClusterValveFaultEvent(val valveFault: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class ValveConfigurationAndControlClusterValveFaultEvent ( + val valveFault: UInt) { + override fun toString(): String = buildString { append("ValveConfigurationAndControlClusterValveFaultEvent {\n") append("\tvalveFault : $valveFault\n") append("}\n") @@ -40,13 +45,10 @@ class ValveConfigurationAndControlClusterValveFaultEvent(val valveFault: UInt) { companion object { private const val TAG_VALVE_FAULT = 0 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): ValveConfigurationAndControlClusterValveFaultEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ValveConfigurationAndControlClusterValveFaultEvent { tlvReader.enterStructure(tlvTag) val valveFault = tlvReader.getUInt(ContextSpecificTag(TAG_VALVE_FAULT)) - + tlvReader.exitContainer() return ValveConfigurationAndControlClusterValveFaultEvent(valveFault) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveStateChangedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveStateChangedEvent.kt index d015f73b2e61b5..235bd78e4bb88c 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveStateChangedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveStateChangedEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ValveConfigurationAndControlClusterValveStateChangedEvent(val valveState: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class ValveConfigurationAndControlClusterValveStateChangedEvent ( + val valveState: UInt) { + override fun toString(): String = buildString { append("ValveConfigurationAndControlClusterValveStateChangedEvent {\n") append("\tvalveState : $valveState\n") append("}\n") @@ -40,13 +45,10 @@ class ValveConfigurationAndControlClusterValveStateChangedEvent(val valveState: companion object { private const val TAG_VALVE_STATE = 0 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): ValveConfigurationAndControlClusterValveStateChangedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ValveConfigurationAndControlClusterValveStateChangedEvent { tlvReader.enterStructure(tlvTag) val valveState = tlvReader.getUInt(ContextSpecificTag(TAG_VALVE_STATE)) - + tlvReader.exitContainer() return ValveConfigurationAndControlClusterValveStateChangedEvent(valveState) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterAssociationFailureEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterAssociationFailureEvent.kt index 2f94dc8e6b1c58..353230c4664dc5 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterAssociationFailureEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterAssociationFailureEvent.kt @@ -17,16 +17,19 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class WiFiNetworkDiagnosticsClusterAssociationFailureEvent( - val associationFailureCause: UInt, - val status: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class WiFiNetworkDiagnosticsClusterAssociationFailureEvent ( + val associationFailureCause: UInt, + val status: UInt) { + override fun toString(): String = buildString { append("WiFiNetworkDiagnosticsClusterAssociationFailureEvent {\n") append("\tassociationFailureCause : $associationFailureCause\n") append("\tstatus : $status\n") @@ -46,15 +49,11 @@ class WiFiNetworkDiagnosticsClusterAssociationFailureEvent( private const val TAG_ASSOCIATION_FAILURE_CAUSE = 0 private const val TAG_STATUS = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): WiFiNetworkDiagnosticsClusterAssociationFailureEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : WiFiNetworkDiagnosticsClusterAssociationFailureEvent { tlvReader.enterStructure(tlvTag) - val associationFailureCause = - tlvReader.getUInt(ContextSpecificTag(TAG_ASSOCIATION_FAILURE_CAUSE)) + val associationFailureCause = tlvReader.getUInt(ContextSpecificTag(TAG_ASSOCIATION_FAILURE_CAUSE)) val status = tlvReader.getUInt(ContextSpecificTag(TAG_STATUS)) - + tlvReader.exitContainer() return WiFiNetworkDiagnosticsClusterAssociationFailureEvent(associationFailureCause, status) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterConnectionStatusEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterConnectionStatusEvent.kt index 34b126059fffd2..e106ddd9b7498d 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterConnectionStatusEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterConnectionStatusEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class WiFiNetworkDiagnosticsClusterConnectionStatusEvent(val connectionStatus: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class WiFiNetworkDiagnosticsClusterConnectionStatusEvent ( + val connectionStatus: UInt) { + override fun toString(): String = buildString { append("WiFiNetworkDiagnosticsClusterConnectionStatusEvent {\n") append("\tconnectionStatus : $connectionStatus\n") append("}\n") @@ -40,13 +45,10 @@ class WiFiNetworkDiagnosticsClusterConnectionStatusEvent(val connectionStatus: U companion object { private const val TAG_CONNECTION_STATUS = 0 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): WiFiNetworkDiagnosticsClusterConnectionStatusEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : WiFiNetworkDiagnosticsClusterConnectionStatusEvent { tlvReader.enterStructure(tlvTag) val connectionStatus = tlvReader.getUInt(ContextSpecificTag(TAG_CONNECTION_STATUS)) - + tlvReader.exitContainer() return WiFiNetworkDiagnosticsClusterConnectionStatusEvent(connectionStatus) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterDisconnectionEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterDisconnectionEvent.kt index 9c0875da20a177..33cb99c03f48a2 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterDisconnectionEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterDisconnectionEvent.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class WiFiNetworkDiagnosticsClusterDisconnectionEvent(val reasonCode: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class WiFiNetworkDiagnosticsClusterDisconnectionEvent ( + val reasonCode: UInt) { + override fun toString(): String = buildString { append("WiFiNetworkDiagnosticsClusterDisconnectionEvent {\n") append("\treasonCode : $reasonCode\n") append("}\n") @@ -40,13 +45,10 @@ class WiFiNetworkDiagnosticsClusterDisconnectionEvent(val reasonCode: UInt) { companion object { private const val TAG_REASON_CODE = 0 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): WiFiNetworkDiagnosticsClusterDisconnectionEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : WiFiNetworkDiagnosticsClusterDisconnectionEvent { tlvReader.enterStructure(tlvTag) val reasonCode = tlvReader.getUInt(ContextSpecificTag(TAG_REASON_CODE)) - + tlvReader.exitContainer() return WiFiNetworkDiagnosticsClusterDisconnectionEvent(reasonCode) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/files.gni b/src/controller/java/generated/java/chip/devicecontroller/cluster/files.gni index 3efc1df1f73f16..7b02bb18aff00a 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/files.gni +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/files.gni @@ -79,7 +79,13 @@ structs_sources = [ "${chip_root}/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterSceneInfoStruct.kt", "${chip_root}/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt", "${chip_root}/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt", - "${chip_root}/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransition.kt", + "${chip_root}/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterPresetStruct.kt", + "${chip_root}/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterPresetTypeStruct.kt", + "${chip_root}/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterQueuedPresetStruct.kt", + "${chip_root}/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleStruct.kt", + "${chip_root}/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleTransitionStruct.kt", + "${chip_root}/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleTypeStruct.kt", + "${chip_root}/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt", "${chip_root}/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt", "${chip_root}/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt", "${chip_root}/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt", diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlEntryStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlEntryStruct.kt index ad7257cc39f901..d228ef19fb8e79 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlEntryStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlEntryStruct.kt @@ -20,17 +20,19 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class AccessControlClusterAccessControlEntryStruct( - val privilege: UInt, - val authMode: UInt, - val subjects: List?, - val targets: List?, - val fabricIndex: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class AccessControlClusterAccessControlEntryStruct ( + val privilege: UInt, + val authMode: UInt, + val subjects: List?, + val targets: List?, + val fabricIndex: UInt) { + override fun toString(): String = buildString { append("AccessControlClusterAccessControlEntryStruct {\n") append("\tprivilege : $privilege\n") append("\tauthMode : $authMode\n") @@ -46,23 +48,23 @@ class AccessControlClusterAccessControlEntryStruct( put(ContextSpecificTag(TAG_PRIVILEGE), privilege) put(ContextSpecificTag(TAG_AUTH_MODE), authMode) if (subjects != null) { - startArray(ContextSpecificTag(TAG_SUBJECTS)) - for (item in subjects.iterator()) { - put(AnonymousTag, item) - } - endArray() - } else { - putNull(ContextSpecificTag(TAG_SUBJECTS)) + startArray(ContextSpecificTag(TAG_SUBJECTS)) + for (item in subjects.iterator()) { + put(AnonymousTag, item) } + endArray() + } else { + putNull(ContextSpecificTag(TAG_SUBJECTS)) + } if (targets != null) { - startArray(ContextSpecificTag(TAG_TARGETS)) - for (item in targets.iterator()) { - item.toTlv(AnonymousTag, this) - } - endArray() - } else { - putNull(ContextSpecificTag(TAG_TARGETS)) + startArray(ContextSpecificTag(TAG_TARGETS)) + for (item in targets.iterator()) { + item.toTlv(AnonymousTag, this) } + endArray() + } else { + putNull(ContextSpecificTag(TAG_TARGETS)) + } put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) endStructure() } @@ -75,47 +77,39 @@ class AccessControlClusterAccessControlEntryStruct( private const val TAG_TARGETS = 4 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): AccessControlClusterAccessControlEntryStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlEntryStruct { tlvReader.enterStructure(tlvTag) val privilege = tlvReader.getUInt(ContextSpecificTag(TAG_PRIVILEGE)) val authMode = tlvReader.getUInt(ContextSpecificTag(TAG_AUTH_MODE)) - val subjects = - if (!tlvReader.isNull()) { - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_SUBJECTS)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getULong(AnonymousTag)) - } - tlvReader.exitContainer() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SUBJECTS)) - null - } - val targets = - if (!tlvReader.isNull()) { - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_TARGETS)) - while (!tlvReader.isEndOfContainer()) { - add(AccessControlClusterAccessControlTargetStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TARGETS)) - null - } + val subjects = if (!tlvReader.isNull()) { + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_SUBJECTS)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getULong(AnonymousTag)) + } + tlvReader.exitContainer() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SUBJECTS)) + null + } + val targets = if (!tlvReader.isNull()) { + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_TARGETS)) + while(!tlvReader.isEndOfContainer()) { + add(AccessControlClusterAccessControlTargetStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TARGETS)) + null + } val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return AccessControlClusterAccessControlEntryStruct( - privilege, - authMode, - subjects, - targets, - fabricIndex - ) + return AccessControlClusterAccessControlEntryStruct(privilege, authMode, subjects, targets, fabricIndex) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlExtensionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlExtensionStruct.kt index c75c7632f06be3..b41ebafd9de72a 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlExtensionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlExtensionStruct.kt @@ -17,13 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class AccessControlClusterAccessControlExtensionStruct(val data: ByteArray, val fabricIndex: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class AccessControlClusterAccessControlExtensionStruct ( + val data: ByteArray, + val fabricIndex: UInt) { + override fun toString(): String = buildString { append("AccessControlClusterAccessControlExtensionStruct {\n") append("\tdata : $data\n") append("\tfabricIndex : $fabricIndex\n") @@ -43,14 +49,11 @@ class AccessControlClusterAccessControlExtensionStruct(val data: ByteArray, val private const val TAG_DATA = 1 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): AccessControlClusterAccessControlExtensionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlExtensionStruct { tlvReader.enterStructure(tlvTag) val data = tlvReader.getByteArray(ContextSpecificTag(TAG_DATA)) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return AccessControlClusterAccessControlExtensionStruct(data, fabricIndex) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlTargetStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlTargetStruct.kt index 5fb4de109d6c6a..1eab00f450d8f0 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlTargetStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlTargetStruct.kt @@ -17,17 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class AccessControlClusterAccessControlTargetStruct( - val cluster: ULong?, - val endpoint: UInt?, - val deviceType: ULong? -) { - override fun toString(): String = buildString { +import java.util.Optional + +class AccessControlClusterAccessControlTargetStruct ( + val cluster: ULong?, + val endpoint: UInt?, + val deviceType: ULong?) { + override fun toString(): String = buildString { append("AccessControlClusterAccessControlTargetStruct {\n") append("\tcluster : $cluster\n") append("\tendpoint : $endpoint\n") @@ -39,20 +42,20 @@ class AccessControlClusterAccessControlTargetStruct( tlvWriter.apply { startStructure(tlvTag) if (cluster != null) { - put(ContextSpecificTag(TAG_CLUSTER), cluster) - } else { - putNull(ContextSpecificTag(TAG_CLUSTER)) - } + put(ContextSpecificTag(TAG_CLUSTER), cluster) + } else { + putNull(ContextSpecificTag(TAG_CLUSTER)) + } if (endpoint != null) { - put(ContextSpecificTag(TAG_ENDPOINT), endpoint) - } else { - putNull(ContextSpecificTag(TAG_ENDPOINT)) - } + put(ContextSpecificTag(TAG_ENDPOINT), endpoint) + } else { + putNull(ContextSpecificTag(TAG_ENDPOINT)) + } if (deviceType != null) { - put(ContextSpecificTag(TAG_DEVICE_TYPE), deviceType) - } else { - putNull(ContextSpecificTag(TAG_DEVICE_TYPE)) - } + put(ContextSpecificTag(TAG_DEVICE_TYPE), deviceType) + } else { + putNull(ContextSpecificTag(TAG_DEVICE_TYPE)) + } endStructure() } } @@ -62,30 +65,27 @@ class AccessControlClusterAccessControlTargetStruct( private const val TAG_ENDPOINT = 1 private const val TAG_DEVICE_TYPE = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): AccessControlClusterAccessControlTargetStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlTargetStruct { tlvReader.enterStructure(tlvTag) - val cluster = - if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_CLUSTER)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CLUSTER)) - null - } - val endpoint = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ENDPOINT)) - null - } - val deviceType = - if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_DEVICE_TYPE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_DEVICE_TYPE)) - null - } - + val cluster = if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_CLUSTER)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_CLUSTER)) + null + } + val endpoint = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ENDPOINT)) + null + } + val deviceType = if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_DEVICE_TYPE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_DEVICE_TYPE)) + null + } + tlvReader.exitContainer() return AccessControlClusterAccessControlTargetStruct(cluster, endpoint, deviceType) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActionsClusterActionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActionsClusterActionStruct.kt index 5d5c21a6906968..8ae474f8e727db 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActionsClusterActionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActionsClusterActionStruct.kt @@ -17,20 +17,23 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ActionsClusterActionStruct( - val actionID: UInt, - val name: String, - val type: UInt, - val endpointListID: UInt, - val supportedCommands: UInt, - val state: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class ActionsClusterActionStruct ( + val actionID: UInt, + val name: String, + val type: UInt, + val endpointListID: UInt, + val supportedCommands: UInt, + val state: UInt) { + override fun toString(): String = buildString { append("ActionsClusterActionStruct {\n") append("\tactionID : $actionID\n") append("\tname : $name\n") @@ -62,7 +65,7 @@ class ActionsClusterActionStruct( private const val TAG_SUPPORTED_COMMANDS = 4 private const val TAG_STATE = 5 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ActionsClusterActionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActionsClusterActionStruct { tlvReader.enterStructure(tlvTag) val actionID = tlvReader.getUInt(ContextSpecificTag(TAG_ACTION_I_D)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) @@ -70,17 +73,10 @@ class ActionsClusterActionStruct( val endpointListID = tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT_LIST_I_D)) val supportedCommands = tlvReader.getUInt(ContextSpecificTag(TAG_SUPPORTED_COMMANDS)) val state = tlvReader.getUInt(ContextSpecificTag(TAG_STATE)) - + tlvReader.exitContainer() - return ActionsClusterActionStruct( - actionID, - name, - type, - endpointListID, - supportedCommands, - state - ) + return ActionsClusterActionStruct(actionID, name, type, endpointListID, supportedCommands, state) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActionsClusterEndpointListStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActionsClusterEndpointListStruct.kt index d5716531a18c99..a8f078a4ba75c6 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActionsClusterEndpointListStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActionsClusterEndpointListStruct.kt @@ -20,16 +20,18 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ActionsClusterEndpointListStruct( - val endpointListID: UInt, - val name: String, - val type: UInt, - val endpoints: List -) { - override fun toString(): String = buildString { +import java.util.Optional + +class ActionsClusterEndpointListStruct ( + val endpointListID: UInt, + val name: String, + val type: UInt, + val endpoints: List) { + override fun toString(): String = buildString { append("ActionsClusterEndpointListStruct {\n") append("\tendpointListID : $endpointListID\n") append("\tname : $name\n") @@ -59,20 +61,19 @@ class ActionsClusterEndpointListStruct( private const val TAG_TYPE = 2 private const val TAG_ENDPOINTS = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ActionsClusterEndpointListStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActionsClusterEndpointListStruct { tlvReader.enterStructure(tlvTag) val endpointListID = tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT_LIST_I_D)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) val type = tlvReader.getUInt(ContextSpecificTag(TAG_TYPE)) - val endpoints = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ENDPOINTS)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val endpoints = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ENDPOINTS)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ActionsClusterEndpointListStruct(endpointListID, name, type, endpoints) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActivatedCarbonFilterMonitoringClusterReplacementProductStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActivatedCarbonFilterMonitoringClusterReplacementProductStruct.kt index 138571f0342bb8..fa41e784da11de 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActivatedCarbonFilterMonitoringClusterReplacementProductStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActivatedCarbonFilterMonitoringClusterReplacementProductStruct.kt @@ -17,16 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ActivatedCarbonFilterMonitoringClusterReplacementProductStruct( - val productIdentifierType: UInt, - val productIdentifierValue: String -) { - override fun toString(): String = buildString { +import java.util.Optional + +class ActivatedCarbonFilterMonitoringClusterReplacementProductStruct ( + val productIdentifierType: UInt, + val productIdentifierValue: String) { + override fun toString(): String = buildString { append("ActivatedCarbonFilterMonitoringClusterReplacementProductStruct {\n") append("\tproductIdentifierType : $productIdentifierType\n") append("\tproductIdentifierValue : $productIdentifierValue\n") @@ -46,21 +49,14 @@ class ActivatedCarbonFilterMonitoringClusterReplacementProductStruct( private const val TAG_PRODUCT_IDENTIFIER_TYPE = 0 private const val TAG_PRODUCT_IDENTIFIER_VALUE = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): ActivatedCarbonFilterMonitoringClusterReplacementProductStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActivatedCarbonFilterMonitoringClusterReplacementProductStruct { tlvReader.enterStructure(tlvTag) val productIdentifierType = tlvReader.getUInt(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_TYPE)) - val productIdentifierValue = - tlvReader.getString(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_VALUE)) - + val productIdentifierValue = tlvReader.getString(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_VALUE)) + tlvReader.exitContainer() - return ActivatedCarbonFilterMonitoringClusterReplacementProductStruct( - productIdentifierType, - productIdentifierValue - ) + return ActivatedCarbonFilterMonitoringClusterReplacementProductStruct(productIdentifierType, productIdentifierValue) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationBasicClusterApplicationStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationBasicClusterApplicationStruct.kt index 1fb108656c7973..f052c51f03c144 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationBasicClusterApplicationStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationBasicClusterApplicationStruct.kt @@ -17,16 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ApplicationBasicClusterApplicationStruct( - val catalogVendorID: UInt, - val applicationID: String -) { - override fun toString(): String = buildString { +import java.util.Optional + +class ApplicationBasicClusterApplicationStruct ( + val catalogVendorID: UInt, + val applicationID: String) { + override fun toString(): String = buildString { append("ApplicationBasicClusterApplicationStruct {\n") append("\tcatalogVendorID : $catalogVendorID\n") append("\tapplicationID : $applicationID\n") @@ -46,11 +49,11 @@ class ApplicationBasicClusterApplicationStruct( private const val TAG_CATALOG_VENDOR_I_D = 0 private const val TAG_APPLICATION_I_D = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ApplicationBasicClusterApplicationStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ApplicationBasicClusterApplicationStruct { tlvReader.enterStructure(tlvTag) val catalogVendorID = tlvReader.getUInt(ContextSpecificTag(TAG_CATALOG_VENDOR_I_D)) val applicationID = tlvReader.getString(ContextSpecificTag(TAG_APPLICATION_I_D)) - + tlvReader.exitContainer() return ApplicationBasicClusterApplicationStruct(catalogVendorID, applicationID) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationEPStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationEPStruct.kt index ea33f81faaf3e0..89f372803fe317 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationEPStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationEPStruct.kt @@ -17,17 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ApplicationLauncherClusterApplicationEPStruct( - val application: ApplicationLauncherClusterApplicationStruct, - val endpoint: Optional -) { - override fun toString(): String = buildString { +import java.util.Optional + +class ApplicationLauncherClusterApplicationEPStruct ( + val application: ApplicationLauncherClusterApplicationStruct, + val endpoint: Optional) { + override fun toString(): String = buildString { append("ApplicationLauncherClusterApplicationEPStruct {\n") append("\tapplication : $application\n") append("\tendpoint : $endpoint\n") @@ -39,9 +41,9 @@ class ApplicationLauncherClusterApplicationEPStruct( startStructure(tlvTag) application.toTlv(ContextSpecificTag(TAG_APPLICATION), this) if (endpoint.isPresent) { - val optendpoint = endpoint.get() - put(ContextSpecificTag(TAG_ENDPOINT), optendpoint) - } + val optendpoint = endpoint.get() + put(ContextSpecificTag(TAG_ENDPOINT), optendpoint) + } endStructure() } } @@ -50,20 +52,15 @@ class ApplicationLauncherClusterApplicationEPStruct( private const val TAG_APPLICATION = 0 private const val TAG_ENDPOINT = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ApplicationLauncherClusterApplicationEPStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ApplicationLauncherClusterApplicationEPStruct { tlvReader.enterStructure(tlvTag) - val application = - ApplicationLauncherClusterApplicationStruct.fromTlv( - ContextSpecificTag(TAG_APPLICATION), - tlvReader - ) - val endpoint = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENDPOINT))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT))) - } else { - Optional.empty() - } - + val application = ApplicationLauncherClusterApplicationStruct.fromTlv(ContextSpecificTag(TAG_APPLICATION), tlvReader) + val endpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENDPOINT))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT))) + } else { + Optional.empty() + } + tlvReader.exitContainer() return ApplicationLauncherClusterApplicationEPStruct(application, endpoint) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationStruct.kt index c7ec51b47dfb4b..b306cbca62125a 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationStruct.kt @@ -17,16 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ApplicationLauncherClusterApplicationStruct( - val catalogVendorID: UInt, - val applicationID: String -) { - override fun toString(): String = buildString { +import java.util.Optional + +class ApplicationLauncherClusterApplicationStruct ( + val catalogVendorID: UInt, + val applicationID: String) { + override fun toString(): String = buildString { append("ApplicationLauncherClusterApplicationStruct {\n") append("\tcatalogVendorID : $catalogVendorID\n") append("\tapplicationID : $applicationID\n") @@ -46,11 +49,11 @@ class ApplicationLauncherClusterApplicationStruct( private const val TAG_CATALOG_VENDOR_I_D = 0 private const val TAG_APPLICATION_I_D = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ApplicationLauncherClusterApplicationStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ApplicationLauncherClusterApplicationStruct { tlvReader.enterStructure(tlvTag) val catalogVendorID = tlvReader.getUInt(ContextSpecificTag(TAG_CATALOG_VENDOR_I_D)) val applicationID = tlvReader.getString(ContextSpecificTag(TAG_APPLICATION_I_D)) - + tlvReader.exitContainer() return ApplicationLauncherClusterApplicationStruct(catalogVendorID, applicationID) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AudioOutputClusterOutputInfoStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AudioOutputClusterOutputInfoStruct.kt index 6336549e45a0bc..60726ce82d5c56 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AudioOutputClusterOutputInfoStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AudioOutputClusterOutputInfoStruct.kt @@ -17,13 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class AudioOutputClusterOutputInfoStruct(val index: UInt, val outputType: UInt, val name: String) { - override fun toString(): String = buildString { +import java.util.Optional + +class AudioOutputClusterOutputInfoStruct ( + val index: UInt, + val outputType: UInt, + val name: String) { + override fun toString(): String = buildString { append("AudioOutputClusterOutputInfoStruct {\n") append("\tindex : $index\n") append("\toutputType : $outputType\n") @@ -46,12 +53,12 @@ class AudioOutputClusterOutputInfoStruct(val index: UInt, val outputType: UInt, private const val TAG_OUTPUT_TYPE = 1 private const val TAG_NAME = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): AudioOutputClusterOutputInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AudioOutputClusterOutputInfoStruct { tlvReader.enterStructure(tlvTag) val index = tlvReader.getUInt(ContextSpecificTag(TAG_INDEX)) val outputType = tlvReader.getUInt(ContextSpecificTag(TAG_OUTPUT_TYPE)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) - + tlvReader.exitContainer() return AudioOutputClusterOutputInfoStruct(index, outputType, name) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BasicInformationClusterCapabilityMinimaStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BasicInformationClusterCapabilityMinimaStruct.kt index d79225dd61468e..494c946f40b998 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BasicInformationClusterCapabilityMinimaStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BasicInformationClusterCapabilityMinimaStruct.kt @@ -17,16 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class BasicInformationClusterCapabilityMinimaStruct( - val caseSessionsPerFabric: UInt, - val subscriptionsPerFabric: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class BasicInformationClusterCapabilityMinimaStruct ( + val caseSessionsPerFabric: UInt, + val subscriptionsPerFabric: UInt) { + override fun toString(): String = buildString { append("BasicInformationClusterCapabilityMinimaStruct {\n") append("\tcaseSessionsPerFabric : $caseSessionsPerFabric\n") append("\tsubscriptionsPerFabric : $subscriptionsPerFabric\n") @@ -46,19 +49,14 @@ class BasicInformationClusterCapabilityMinimaStruct( private const val TAG_CASE_SESSIONS_PER_FABRIC = 0 private const val TAG_SUBSCRIPTIONS_PER_FABRIC = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterCapabilityMinimaStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterCapabilityMinimaStruct { tlvReader.enterStructure(tlvTag) - val caseSessionsPerFabric = - tlvReader.getUInt(ContextSpecificTag(TAG_CASE_SESSIONS_PER_FABRIC)) - val subscriptionsPerFabric = - tlvReader.getUInt(ContextSpecificTag(TAG_SUBSCRIPTIONS_PER_FABRIC)) - + val caseSessionsPerFabric = tlvReader.getUInt(ContextSpecificTag(TAG_CASE_SESSIONS_PER_FABRIC)) + val subscriptionsPerFabric = tlvReader.getUInt(ContextSpecificTag(TAG_SUBSCRIPTIONS_PER_FABRIC)) + tlvReader.exitContainer() - return BasicInformationClusterCapabilityMinimaStruct( - caseSessionsPerFabric, - subscriptionsPerFabric - ) + return BasicInformationClusterCapabilityMinimaStruct(caseSessionsPerFabric, subscriptionsPerFabric) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BasicInformationClusterProductAppearanceStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BasicInformationClusterProductAppearanceStruct.kt index 5a0eb3ace2ef7b..44f42edb6adf2d 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BasicInformationClusterProductAppearanceStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BasicInformationClusterProductAppearanceStruct.kt @@ -17,13 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class BasicInformationClusterProductAppearanceStruct(val finish: UInt, val primaryColor: UInt?) { - override fun toString(): String = buildString { +import java.util.Optional + +class BasicInformationClusterProductAppearanceStruct ( + val finish: UInt, + val primaryColor: UInt?) { + override fun toString(): String = buildString { append("BasicInformationClusterProductAppearanceStruct {\n") append("\tfinish : $finish\n") append("\tprimaryColor : $primaryColor\n") @@ -35,10 +41,10 @@ class BasicInformationClusterProductAppearanceStruct(val finish: UInt, val prima startStructure(tlvTag) put(ContextSpecificTag(TAG_FINISH), finish) if (primaryColor != null) { - put(ContextSpecificTag(TAG_PRIMARY_COLOR), primaryColor) - } else { - putNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) - } + put(ContextSpecificTag(TAG_PRIMARY_COLOR), primaryColor) + } else { + putNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) + } endStructure() } } @@ -47,17 +53,16 @@ class BasicInformationClusterProductAppearanceStruct(val finish: UInt, val prima private const val TAG_FINISH = 0 private const val TAG_PRIMARY_COLOR = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterProductAppearanceStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterProductAppearanceStruct { tlvReader.enterStructure(tlvTag) val finish = tlvReader.getUInt(ContextSpecificTag(TAG_FINISH)) - val primaryColor = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_PRIMARY_COLOR)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) - null - } - + val primaryColor = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_PRIMARY_COLOR)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) + null + } + tlvReader.exitContainer() return BasicInformationClusterProductAppearanceStruct(finish, primaryColor) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BindingClusterTargetStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BindingClusterTargetStruct.kt index 70c8deedaaaf6a..9454790cb7ac05 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BindingClusterTargetStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BindingClusterTargetStruct.kt @@ -17,20 +17,22 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class BindingClusterTargetStruct( - val node: Optional, - val group: Optional, - val endpoint: Optional, - val cluster: Optional, - val fabricIndex: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class BindingClusterTargetStruct ( + val node: Optional, + val group: Optional, + val endpoint: Optional, + val cluster: Optional, + val fabricIndex: UInt) { + override fun toString(): String = buildString { append("BindingClusterTargetStruct {\n") append("\tnode : $node\n") append("\tgroup : $group\n") @@ -44,21 +46,21 @@ class BindingClusterTargetStruct( tlvWriter.apply { startStructure(tlvTag) if (node.isPresent) { - val optnode = node.get() - put(ContextSpecificTag(TAG_NODE), optnode) - } + val optnode = node.get() + put(ContextSpecificTag(TAG_NODE), optnode) + } if (group.isPresent) { - val optgroup = group.get() - put(ContextSpecificTag(TAG_GROUP), optgroup) - } + val optgroup = group.get() + put(ContextSpecificTag(TAG_GROUP), optgroup) + } if (endpoint.isPresent) { - val optendpoint = endpoint.get() - put(ContextSpecificTag(TAG_ENDPOINT), optendpoint) - } + val optendpoint = endpoint.get() + put(ContextSpecificTag(TAG_ENDPOINT), optendpoint) + } if (cluster.isPresent) { - val optcluster = cluster.get() - put(ContextSpecificTag(TAG_CLUSTER), optcluster) - } + val optcluster = cluster.get() + put(ContextSpecificTag(TAG_CLUSTER), optcluster) + } put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) endStructure() } @@ -71,34 +73,30 @@ class BindingClusterTargetStruct( private const val TAG_CLUSTER = 4 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BindingClusterTargetStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BindingClusterTargetStruct { tlvReader.enterStructure(tlvTag) - val node = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NODE))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_NODE))) - } else { - Optional.empty() - } - val group = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_GROUP))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_GROUP))) - } else { - Optional.empty() - } - val endpoint = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENDPOINT))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT))) - } else { - Optional.empty() - } - val cluster = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_CLUSTER))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_CLUSTER))) - } else { - Optional.empty() - } + val node = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NODE))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_NODE))) + } else { + Optional.empty() + } + val group = if (tlvReader.isNextTag(ContextSpecificTag(TAG_GROUP))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_GROUP))) + } else { + Optional.empty() + } + val endpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENDPOINT))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT))) + } else { + Optional.empty() + } + val cluster = if (tlvReader.isNextTag(ContextSpecificTag(TAG_CLUSTER))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_CLUSTER))) + } else { + Optional.empty() + } val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return BindingClusterTargetStruct(node, group, endpoint, cluster, fabricIndex) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BridgedDeviceBasicInformationClusterProductAppearanceStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BridgedDeviceBasicInformationClusterProductAppearanceStruct.kt index ec2d58aa588cea..6f548b1a015b9c 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BridgedDeviceBasicInformationClusterProductAppearanceStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BridgedDeviceBasicInformationClusterProductAppearanceStruct.kt @@ -17,16 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class BridgedDeviceBasicInformationClusterProductAppearanceStruct( - val finish: UInt, - val primaryColor: UInt? -) { - override fun toString(): String = buildString { +import java.util.Optional + +class BridgedDeviceBasicInformationClusterProductAppearanceStruct ( + val finish: UInt, + val primaryColor: UInt?) { + override fun toString(): String = buildString { append("BridgedDeviceBasicInformationClusterProductAppearanceStruct {\n") append("\tfinish : $finish\n") append("\tprimaryColor : $primaryColor\n") @@ -38,10 +41,10 @@ class BridgedDeviceBasicInformationClusterProductAppearanceStruct( startStructure(tlvTag) put(ContextSpecificTag(TAG_FINISH), finish) if (primaryColor != null) { - put(ContextSpecificTag(TAG_PRIMARY_COLOR), primaryColor) - } else { - putNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) - } + put(ContextSpecificTag(TAG_PRIMARY_COLOR), primaryColor) + } else { + putNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) + } endStructure() } } @@ -50,20 +53,16 @@ class BridgedDeviceBasicInformationClusterProductAppearanceStruct( private const val TAG_FINISH = 0 private const val TAG_PRIMARY_COLOR = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): BridgedDeviceBasicInformationClusterProductAppearanceStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BridgedDeviceBasicInformationClusterProductAppearanceStruct { tlvReader.enterStructure(tlvTag) val finish = tlvReader.getUInt(ContextSpecificTag(TAG_FINISH)) - val primaryColor = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_PRIMARY_COLOR)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) - null - } - + val primaryColor = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_PRIMARY_COLOR)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) + null + } + tlvReader.exitContainer() return BridgedDeviceBasicInformationClusterProductAppearanceStruct(finish, primaryColor) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ChannelClusterChannelInfoStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ChannelClusterChannelInfoStruct.kt index f8ca194e2e444e..eacde5acfb039b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ChannelClusterChannelInfoStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ChannelClusterChannelInfoStruct.kt @@ -17,20 +17,22 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ChannelClusterChannelInfoStruct( - val majorNumber: UInt, - val minorNumber: UInt, - val name: Optional, - val callSign: Optional, - val affiliateCallSign: Optional -) { - override fun toString(): String = buildString { +import java.util.Optional + +class ChannelClusterChannelInfoStruct ( + val majorNumber: UInt, + val minorNumber: UInt, + val name: Optional, + val callSign: Optional, + val affiliateCallSign: Optional) { + override fun toString(): String = buildString { append("ChannelClusterChannelInfoStruct {\n") append("\tmajorNumber : $majorNumber\n") append("\tminorNumber : $minorNumber\n") @@ -46,17 +48,17 @@ class ChannelClusterChannelInfoStruct( put(ContextSpecificTag(TAG_MAJOR_NUMBER), majorNumber) put(ContextSpecificTag(TAG_MINOR_NUMBER), minorNumber) if (name.isPresent) { - val optname = name.get() - put(ContextSpecificTag(TAG_NAME), optname) - } + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } if (callSign.isPresent) { - val optcallSign = callSign.get() - put(ContextSpecificTag(TAG_CALL_SIGN), optcallSign) - } + val optcallSign = callSign.get() + put(ContextSpecificTag(TAG_CALL_SIGN), optcallSign) + } if (affiliateCallSign.isPresent) { - val optaffiliateCallSign = affiliateCallSign.get() - put(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN), optaffiliateCallSign) - } + val optaffiliateCallSign = affiliateCallSign.get() + put(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN), optaffiliateCallSign) + } endStructure() } } @@ -68,38 +70,29 @@ class ChannelClusterChannelInfoStruct( private const val TAG_CALL_SIGN = 3 private const val TAG_AFFILIATE_CALL_SIGN = 4 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ChannelClusterChannelInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ChannelClusterChannelInfoStruct { tlvReader.enterStructure(tlvTag) val majorNumber = tlvReader.getUInt(ContextSpecificTag(TAG_MAJOR_NUMBER)) val minorNumber = tlvReader.getUInt(ContextSpecificTag(TAG_MINOR_NUMBER)) - val name = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - val callSign = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_CALL_SIGN))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_CALL_SIGN))) - } else { - Optional.empty() - } - val affiliateCallSign = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN))) - } else { - Optional.empty() - } - + val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + val callSign = if (tlvReader.isNextTag(ContextSpecificTag(TAG_CALL_SIGN))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_CALL_SIGN))) + } else { + Optional.empty() + } + val affiliateCallSign = if (tlvReader.isNextTag(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return ChannelClusterChannelInfoStruct( - majorNumber, - minorNumber, - name, - callSign, - affiliateCallSign - ) + return ChannelClusterChannelInfoStruct(majorNumber, minorNumber, name, callSign, affiliateCallSign) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ChannelClusterLineupInfoStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ChannelClusterLineupInfoStruct.kt index d205e89f966bae..357509b7e3eb70 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ChannelClusterLineupInfoStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ChannelClusterLineupInfoStruct.kt @@ -17,19 +17,21 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ChannelClusterLineupInfoStruct( - val operatorName: String, - val lineupName: Optional, - val postalCode: Optional, - val lineupInfoType: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class ChannelClusterLineupInfoStruct ( + val operatorName: String, + val lineupName: Optional, + val postalCode: Optional, + val lineupInfoType: UInt) { + override fun toString(): String = buildString { append("ChannelClusterLineupInfoStruct {\n") append("\toperatorName : $operatorName\n") append("\tlineupName : $lineupName\n") @@ -43,13 +45,13 @@ class ChannelClusterLineupInfoStruct( startStructure(tlvTag) put(ContextSpecificTag(TAG_OPERATOR_NAME), operatorName) if (lineupName.isPresent) { - val optlineupName = lineupName.get() - put(ContextSpecificTag(TAG_LINEUP_NAME), optlineupName) - } + val optlineupName = lineupName.get() + put(ContextSpecificTag(TAG_LINEUP_NAME), optlineupName) + } if (postalCode.isPresent) { - val optpostalCode = postalCode.get() - put(ContextSpecificTag(TAG_POSTAL_CODE), optpostalCode) - } + val optpostalCode = postalCode.get() + put(ContextSpecificTag(TAG_POSTAL_CODE), optpostalCode) + } put(ContextSpecificTag(TAG_LINEUP_INFO_TYPE), lineupInfoType) endStructure() } @@ -61,23 +63,21 @@ class ChannelClusterLineupInfoStruct( private const val TAG_POSTAL_CODE = 2 private const val TAG_LINEUP_INFO_TYPE = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ChannelClusterLineupInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ChannelClusterLineupInfoStruct { tlvReader.enterStructure(tlvTag) val operatorName = tlvReader.getString(ContextSpecificTag(TAG_OPERATOR_NAME)) - val lineupName = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_LINEUP_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_LINEUP_NAME))) - } else { - Optional.empty() - } - val postalCode = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_POSTAL_CODE))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_POSTAL_CODE))) - } else { - Optional.empty() - } + val lineupName = if (tlvReader.isNextTag(ContextSpecificTag(TAG_LINEUP_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_LINEUP_NAME))) + } else { + Optional.empty() + } + val postalCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_POSTAL_CODE))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_POSTAL_CODE))) + } else { + Optional.empty() + } val lineupInfoType = tlvReader.getUInt(ContextSpecificTag(TAG_LINEUP_INFO_TYPE)) - + tlvReader.exitContainer() return ChannelClusterLineupInfoStruct(operatorName, lineupName, postalCode, lineupInfoType) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterAdditionalInfoStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterAdditionalInfoStruct.kt index c9df652a2ca5a8..cdc41e36467d57 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterAdditionalInfoStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterAdditionalInfoStruct.kt @@ -17,13 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ContentLauncherClusterAdditionalInfoStruct(val name: String, val value: String) { - override fun toString(): String = buildString { +import java.util.Optional + +class ContentLauncherClusterAdditionalInfoStruct ( + val name: String, + val value: String) { + override fun toString(): String = buildString { append("ContentLauncherClusterAdditionalInfoStruct {\n") append("\tname : $name\n") append("\tvalue : $value\n") @@ -43,11 +49,11 @@ class ContentLauncherClusterAdditionalInfoStruct(val name: String, val value: St private const val TAG_NAME = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterAdditionalInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ContentLauncherClusterAdditionalInfoStruct { tlvReader.enterStructure(tlvTag) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) val value = tlvReader.getString(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return ContentLauncherClusterAdditionalInfoStruct(name, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterBrandingInformationStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterBrandingInformationStruct.kt index 5508763757c036..56028fc4d11e93 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterBrandingInformationStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterBrandingInformationStruct.kt @@ -17,21 +17,23 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ContentLauncherClusterBrandingInformationStruct( - val providerName: String, - val background: Optional, - val logo: Optional, - val progressBar: Optional, - val splash: Optional, - val waterMark: Optional -) { - override fun toString(): String = buildString { +import java.util.Optional + +class ContentLauncherClusterBrandingInformationStruct ( + val providerName: String, + val background: Optional, + val logo: Optional, + val progressBar: Optional, + val splash: Optional, + val waterMark: Optional) { + override fun toString(): String = buildString { append("ContentLauncherClusterBrandingInformationStruct {\n") append("\tproviderName : $providerName\n") append("\tbackground : $background\n") @@ -47,25 +49,25 @@ class ContentLauncherClusterBrandingInformationStruct( startStructure(tlvTag) put(ContextSpecificTag(TAG_PROVIDER_NAME), providerName) if (background.isPresent) { - val optbackground = background.get() - optbackground.toTlv(ContextSpecificTag(TAG_BACKGROUND), this) - } + val optbackground = background.get() + optbackground.toTlv(ContextSpecificTag(TAG_BACKGROUND), this) + } if (logo.isPresent) { - val optlogo = logo.get() - optlogo.toTlv(ContextSpecificTag(TAG_LOGO), this) - } + val optlogo = logo.get() + optlogo.toTlv(ContextSpecificTag(TAG_LOGO), this) + } if (progressBar.isPresent) { - val optprogressBar = progressBar.get() - optprogressBar.toTlv(ContextSpecificTag(TAG_PROGRESS_BAR), this) - } + val optprogressBar = progressBar.get() + optprogressBar.toTlv(ContextSpecificTag(TAG_PROGRESS_BAR), this) + } if (splash.isPresent) { - val optsplash = splash.get() - optsplash.toTlv(ContextSpecificTag(TAG_SPLASH), this) - } + val optsplash = splash.get() + optsplash.toTlv(ContextSpecificTag(TAG_SPLASH), this) + } if (waterMark.isPresent) { - val optwaterMark = waterMark.get() - optwaterMark.toTlv(ContextSpecificTag(TAG_WATER_MARK), this) - } + val optwaterMark = waterMark.get() + optwaterMark.toTlv(ContextSpecificTag(TAG_WATER_MARK), this) + } endStructure() } } @@ -78,78 +80,38 @@ class ContentLauncherClusterBrandingInformationStruct( private const val TAG_SPLASH = 4 private const val TAG_WATER_MARK = 5 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): ContentLauncherClusterBrandingInformationStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ContentLauncherClusterBrandingInformationStruct { tlvReader.enterStructure(tlvTag) val providerName = tlvReader.getString(ContextSpecificTag(TAG_PROVIDER_NAME)) - val background = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_BACKGROUND))) { - Optional.of( - ContentLauncherClusterStyleInformationStruct.fromTlv( - ContextSpecificTag(TAG_BACKGROUND), - tlvReader - ) - ) - } else { - Optional.empty() - } - val logo = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_LOGO))) { - Optional.of( - ContentLauncherClusterStyleInformationStruct.fromTlv( - ContextSpecificTag(TAG_LOGO), - tlvReader - ) - ) - } else { - Optional.empty() - } - val progressBar = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_PROGRESS_BAR))) { - Optional.of( - ContentLauncherClusterStyleInformationStruct.fromTlv( - ContextSpecificTag(TAG_PROGRESS_BAR), - tlvReader - ) - ) - } else { - Optional.empty() - } - val splash = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_SPLASH))) { - Optional.of( - ContentLauncherClusterStyleInformationStruct.fromTlv( - ContextSpecificTag(TAG_SPLASH), - tlvReader - ) - ) - } else { - Optional.empty() - } - val waterMark = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_WATER_MARK))) { - Optional.of( - ContentLauncherClusterStyleInformationStruct.fromTlv( - ContextSpecificTag(TAG_WATER_MARK), - tlvReader - ) - ) - } else { - Optional.empty() - } - + val background = if (tlvReader.isNextTag(ContextSpecificTag(TAG_BACKGROUND))) { + Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_BACKGROUND), tlvReader)) + } else { + Optional.empty() + } + val logo = if (tlvReader.isNextTag(ContextSpecificTag(TAG_LOGO))) { + Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_LOGO), tlvReader)) + } else { + Optional.empty() + } + val progressBar = if (tlvReader.isNextTag(ContextSpecificTag(TAG_PROGRESS_BAR))) { + Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_PROGRESS_BAR), tlvReader)) + } else { + Optional.empty() + } + val splash = if (tlvReader.isNextTag(ContextSpecificTag(TAG_SPLASH))) { + Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_SPLASH), tlvReader)) + } else { + Optional.empty() + } + val waterMark = if (tlvReader.isNextTag(ContextSpecificTag(TAG_WATER_MARK))) { + Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_WATER_MARK), tlvReader)) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return ContentLauncherClusterBrandingInformationStruct( - providerName, - background, - logo, - progressBar, - splash, - waterMark - ) + return ContentLauncherClusterBrandingInformationStruct(providerName, background, logo, progressBar, splash, waterMark) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterContentSearchStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterContentSearchStruct.kt index fc1cfc5de7b014..9f100e058c4305 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterContentSearchStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterContentSearchStruct.kt @@ -20,13 +20,15 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ContentLauncherClusterContentSearchStruct( - val parameterList: List -) { - override fun toString(): String = buildString { +import java.util.Optional + +class ContentLauncherClusterContentSearchStruct ( + val parameterList: List) { + override fun toString(): String = buildString { append("ContentLauncherClusterContentSearchStruct {\n") append("\tparameterList : $parameterList\n") append("}\n") @@ -47,17 +49,16 @@ class ContentLauncherClusterContentSearchStruct( companion object { private const val TAG_PARAMETER_LIST = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterContentSearchStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ContentLauncherClusterContentSearchStruct { tlvReader.enterStructure(tlvTag) - val parameterList = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PARAMETER_LIST)) - while (!tlvReader.isEndOfContainer()) { - add(ContentLauncherClusterParameterStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val parameterList = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PARAMETER_LIST)) + while(!tlvReader.isEndOfContainer()) { + add(ContentLauncherClusterParameterStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ContentLauncherClusterContentSearchStruct(parameterList) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterDimensionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterDimensionStruct.kt index f00027d639958c..8c6fd83e614072 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterDimensionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterDimensionStruct.kt @@ -17,17 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ContentLauncherClusterDimensionStruct( - val width: Double, - val height: Double, - val metric: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class ContentLauncherClusterDimensionStruct ( + val width: Double, + val height: Double, + val metric: UInt) { + override fun toString(): String = buildString { append("ContentLauncherClusterDimensionStruct {\n") append("\twidth : $width\n") append("\theight : $height\n") @@ -50,12 +53,12 @@ class ContentLauncherClusterDimensionStruct( private const val TAG_HEIGHT = 1 private const val TAG_METRIC = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterDimensionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ContentLauncherClusterDimensionStruct { tlvReader.enterStructure(tlvTag) val width = tlvReader.getDouble(ContextSpecificTag(TAG_WIDTH)) val height = tlvReader.getDouble(ContextSpecificTag(TAG_HEIGHT)) val metric = tlvReader.getUInt(ContextSpecificTag(TAG_METRIC)) - + tlvReader.exitContainer() return ContentLauncherClusterDimensionStruct(width, height, metric) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterParameterStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterParameterStruct.kt index 458fb5e7b29d9c..0a547a665e8609 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterParameterStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterParameterStruct.kt @@ -17,19 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ContentLauncherClusterParameterStruct( - val type: UInt, - val value: String, - val externalIDList: Optional> -) { - override fun toString(): String = buildString { +import java.util.Optional + +class ContentLauncherClusterParameterStruct ( + val type: UInt, + val value: String, + val externalIDList: Optional>) { + override fun toString(): String = buildString { append("ContentLauncherClusterParameterStruct {\n") append("\ttype : $type\n") append("\tvalue : $value\n") @@ -43,13 +44,13 @@ class ContentLauncherClusterParameterStruct( put(ContextSpecificTag(TAG_TYPE), type) put(ContextSpecificTag(TAG_VALUE), value) if (externalIDList.isPresent) { - val optexternalIDList = externalIDList.get() - startArray(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST)) - for (item in optexternalIDList.iterator()) { - item.toTlv(AnonymousTag, this) - } - endArray() + val optexternalIDList = externalIDList.get() + startArray(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST)) + for (item in optexternalIDList.iterator()) { + item.toTlv(AnonymousTag, this) } + endArray() + } endStructure() } } @@ -59,25 +60,22 @@ class ContentLauncherClusterParameterStruct( private const val TAG_VALUE = 1 private const val TAG_EXTERNAL_I_D_LIST = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterParameterStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ContentLauncherClusterParameterStruct { tlvReader.enterStructure(tlvTag) val type = tlvReader.getUInt(ContextSpecificTag(TAG_TYPE)) val value = tlvReader.getString(ContextSpecificTag(TAG_VALUE)) - val externalIDList = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST))) { - Optional.of( - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST)) - while (!tlvReader.isEndOfContainer()) { - add(ContentLauncherClusterAdditionalInfoStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - ) - } else { - Optional.empty() - } - + val externalIDList = if (tlvReader.isNextTag(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST))) { + Optional.of(buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST)) + while(!tlvReader.isEndOfContainer()) { + add(ContentLauncherClusterAdditionalInfoStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + }) + } else { + Optional.empty() + } + tlvReader.exitContainer() return ContentLauncherClusterParameterStruct(type, value, externalIDList) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterStyleInformationStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterStyleInformationStruct.kt index 9b34f59f3eefa6..c5de0e5706eaea 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterStyleInformationStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterStyleInformationStruct.kt @@ -17,18 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ContentLauncherClusterStyleInformationStruct( - val imageURL: Optional, - val color: Optional, - val size: Optional -) { - override fun toString(): String = buildString { +import java.util.Optional + +class ContentLauncherClusterStyleInformationStruct ( + val imageURL: Optional, + val color: Optional, + val size: Optional) { + override fun toString(): String = buildString { append("ContentLauncherClusterStyleInformationStruct {\n") append("\timageURL : $imageURL\n") append("\tcolor : $color\n") @@ -40,17 +42,17 @@ class ContentLauncherClusterStyleInformationStruct( tlvWriter.apply { startStructure(tlvTag) if (imageURL.isPresent) { - val optimageURL = imageURL.get() - put(ContextSpecificTag(TAG_IMAGE_U_R_L), optimageURL) - } + val optimageURL = imageURL.get() + put(ContextSpecificTag(TAG_IMAGE_U_R_L), optimageURL) + } if (color.isPresent) { - val optcolor = color.get() - put(ContextSpecificTag(TAG_COLOR), optcolor) - } + val optcolor = color.get() + put(ContextSpecificTag(TAG_COLOR), optcolor) + } if (size.isPresent) { - val optsize = size.get() - optsize.toTlv(ContextSpecificTag(TAG_SIZE), this) - } + val optsize = size.get() + optsize.toTlv(ContextSpecificTag(TAG_SIZE), this) + } endStructure() } } @@ -60,29 +62,24 @@ class ContentLauncherClusterStyleInformationStruct( private const val TAG_COLOR = 1 private const val TAG_SIZE = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterStyleInformationStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ContentLauncherClusterStyleInformationStruct { tlvReader.enterStructure(tlvTag) - val imageURL = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_IMAGE_U_R_L))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_IMAGE_U_R_L))) - } else { - Optional.empty() - } - val color = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_COLOR))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_COLOR))) - } else { - Optional.empty() - } - val size = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_SIZE))) { - Optional.of( - ContentLauncherClusterDimensionStruct.fromTlv(ContextSpecificTag(TAG_SIZE), tlvReader) - ) - } else { - Optional.empty() - } - + val imageURL = if (tlvReader.isNextTag(ContextSpecificTag(TAG_IMAGE_U_R_L))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_IMAGE_U_R_L))) + } else { + Optional.empty() + } + val color = if (tlvReader.isNextTag(ContextSpecificTag(TAG_COLOR))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_COLOR))) + } else { + Optional.empty() + } + val size = if (tlvReader.isNextTag(ContextSpecificTag(TAG_SIZE))) { + Optional.of(ContentLauncherClusterDimensionStruct.fromTlv(ContextSpecificTag(TAG_SIZE), tlvReader)) + } else { + Optional.empty() + } + tlvReader.exitContainer() return ContentLauncherClusterStyleInformationStruct(imageURL, color, size) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterAverageLoadControlStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterAverageLoadControlStruct.kt index a4dd7c659efb22..4357cf625ca244 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterAverageLoadControlStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterAverageLoadControlStruct.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DemandResponseLoadControlClusterAverageLoadControlStruct(val loadAdjustment: Int) { - override fun toString(): String = buildString { +import java.util.Optional + +class DemandResponseLoadControlClusterAverageLoadControlStruct ( + val loadAdjustment: Int) { + override fun toString(): String = buildString { append("DemandResponseLoadControlClusterAverageLoadControlStruct {\n") append("\tloadAdjustment : $loadAdjustment\n") append("}\n") @@ -40,13 +45,10 @@ class DemandResponseLoadControlClusterAverageLoadControlStruct(val loadAdjustmen companion object { private const val TAG_LOAD_ADJUSTMENT = 0 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): DemandResponseLoadControlClusterAverageLoadControlStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DemandResponseLoadControlClusterAverageLoadControlStruct { tlvReader.enterStructure(tlvTag) val loadAdjustment = tlvReader.getInt(ContextSpecificTag(TAG_LOAD_ADJUSTMENT)) - + tlvReader.exitContainer() return DemandResponseLoadControlClusterAverageLoadControlStruct(loadAdjustment) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterDutyCycleControlStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterDutyCycleControlStruct.kt index af1ad8026cc11b..ce5980bf12eab7 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterDutyCycleControlStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterDutyCycleControlStruct.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DemandResponseLoadControlClusterDutyCycleControlStruct(val dutyCycle: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class DemandResponseLoadControlClusterDutyCycleControlStruct ( + val dutyCycle: UInt) { + override fun toString(): String = buildString { append("DemandResponseLoadControlClusterDutyCycleControlStruct {\n") append("\tdutyCycle : $dutyCycle\n") append("}\n") @@ -40,13 +45,10 @@ class DemandResponseLoadControlClusterDutyCycleControlStruct(val dutyCycle: UInt companion object { private const val TAG_DUTY_CYCLE = 0 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): DemandResponseLoadControlClusterDutyCycleControlStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DemandResponseLoadControlClusterDutyCycleControlStruct { tlvReader.enterStructure(tlvTag) val dutyCycle = tlvReader.getUInt(ContextSpecificTag(TAG_DUTY_CYCLE)) - + tlvReader.exitContainer() return DemandResponseLoadControlClusterDutyCycleControlStruct(dutyCycle) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterHeatingSourceControlStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterHeatingSourceControlStruct.kt index 049c061b9966e1..c957612bd8942e 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterHeatingSourceControlStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterHeatingSourceControlStruct.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DemandResponseLoadControlClusterHeatingSourceControlStruct(val heatingSource: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class DemandResponseLoadControlClusterHeatingSourceControlStruct ( + val heatingSource: UInt) { + override fun toString(): String = buildString { append("DemandResponseLoadControlClusterHeatingSourceControlStruct {\n") append("\theatingSource : $heatingSource\n") append("}\n") @@ -40,13 +45,10 @@ class DemandResponseLoadControlClusterHeatingSourceControlStruct(val heatingSour companion object { private const val TAG_HEATING_SOURCE = 0 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): DemandResponseLoadControlClusterHeatingSourceControlStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DemandResponseLoadControlClusterHeatingSourceControlStruct { tlvReader.enterStructure(tlvTag) val heatingSource = tlvReader.getUInt(ContextSpecificTag(TAG_HEATING_SOURCE)) - + tlvReader.exitContainer() return DemandResponseLoadControlClusterHeatingSourceControlStruct(heatingSource) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventStruct.kt index f714af6d7b8fbd..150b4bc952bad3 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventStruct.kt @@ -17,24 +17,25 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DemandResponseLoadControlClusterLoadControlEventStruct( - val eventID: ByteArray, - val programID: ByteArray?, - val control: UInt, - val deviceClass: ULong, - val enrollmentGroup: Optional, - val criticality: UInt, - val startTime: ULong?, - val transitions: List -) { - override fun toString(): String = buildString { +import java.util.Optional + +class DemandResponseLoadControlClusterLoadControlEventStruct ( + val eventID: ByteArray, + val programID: ByteArray?, + val control: UInt, + val deviceClass: ULong, + val enrollmentGroup: Optional, + val criticality: UInt, + val startTime: ULong?, + val transitions: List) { + override fun toString(): String = buildString { append("DemandResponseLoadControlClusterLoadControlEventStruct {\n") append("\teventID : $eventID\n") append("\tprogramID : $programID\n") @@ -52,22 +53,22 @@ class DemandResponseLoadControlClusterLoadControlEventStruct( startStructure(tlvTag) put(ContextSpecificTag(TAG_EVENT_I_D), eventID) if (programID != null) { - put(ContextSpecificTag(TAG_PROGRAM_I_D), programID) - } else { - putNull(ContextSpecificTag(TAG_PROGRAM_I_D)) - } + put(ContextSpecificTag(TAG_PROGRAM_I_D), programID) + } else { + putNull(ContextSpecificTag(TAG_PROGRAM_I_D)) + } put(ContextSpecificTag(TAG_CONTROL), control) put(ContextSpecificTag(TAG_DEVICE_CLASS), deviceClass) if (enrollmentGroup.isPresent) { - val optenrollmentGroup = enrollmentGroup.get() - put(ContextSpecificTag(TAG_ENROLLMENT_GROUP), optenrollmentGroup) - } + val optenrollmentGroup = enrollmentGroup.get() + put(ContextSpecificTag(TAG_ENROLLMENT_GROUP), optenrollmentGroup) + } put(ContextSpecificTag(TAG_CRITICALITY), criticality) if (startTime != null) { - put(ContextSpecificTag(TAG_START_TIME), startTime) - } else { - putNull(ContextSpecificTag(TAG_START_TIME)) - } + put(ContextSpecificTag(TAG_START_TIME), startTime) + } else { + putNull(ContextSpecificTag(TAG_START_TIME)) + } startArray(ContextSpecificTag(TAG_TRANSITIONS)) for (item in transitions.iterator()) { item.toTlv(AnonymousTag, this) @@ -87,61 +88,40 @@ class DemandResponseLoadControlClusterLoadControlEventStruct( private const val TAG_START_TIME = 6 private const val TAG_TRANSITIONS = 7 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): DemandResponseLoadControlClusterLoadControlEventStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DemandResponseLoadControlClusterLoadControlEventStruct { tlvReader.enterStructure(tlvTag) val eventID = tlvReader.getByteArray(ContextSpecificTag(TAG_EVENT_I_D)) - val programID = - if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_PROGRAM_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PROGRAM_I_D)) - null - } + val programID = if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_PROGRAM_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PROGRAM_I_D)) + null + } val control = tlvReader.getUInt(ContextSpecificTag(TAG_CONTROL)) val deviceClass = tlvReader.getULong(ContextSpecificTag(TAG_DEVICE_CLASS)) - val enrollmentGroup = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENROLLMENT_GROUP))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_ENROLLMENT_GROUP))) - } else { - Optional.empty() - } + val enrollmentGroup = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENROLLMENT_GROUP))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_ENROLLMENT_GROUP))) + } else { + Optional.empty() + } val criticality = tlvReader.getUInt(ContextSpecificTag(TAG_CRITICALITY)) - val startTime = - if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_START_TIME)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_START_TIME)) - null - } - val transitions = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_TRANSITIONS)) - while (!tlvReader.isEndOfContainer()) { - add( - DemandResponseLoadControlClusterLoadControlEventTransitionStruct.fromTlv( - AnonymousTag, - tlvReader - ) - ) - } - tlvReader.exitContainer() - } - + val startTime = if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_START_TIME)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_START_TIME)) + null + } + val transitions = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_TRANSITIONS)) + while(!tlvReader.isEndOfContainer()) { + add(DemandResponseLoadControlClusterLoadControlEventTransitionStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() - return DemandResponseLoadControlClusterLoadControlEventStruct( - eventID, - programID, - control, - deviceClass, - enrollmentGroup, - criticality, - startTime, - transitions - ) + return DemandResponseLoadControlClusterLoadControlEventStruct(eventID, programID, control, deviceClass, enrollmentGroup, criticality, startTime, transitions) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventTransitionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventTransitionStruct.kt index 6d44b1e020d180..c1643805f9a6bf 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventTransitionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventTransitionStruct.kt @@ -17,22 +17,24 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DemandResponseLoadControlClusterLoadControlEventTransitionStruct( - val duration: UInt, - val control: UInt, - val temperatureControl: Optional, - val averageLoadControl: Optional, - val dutyCycleControl: Optional, - val powerSavingsControl: Optional, - val heatingSourceControl: Optional -) { - override fun toString(): String = buildString { +import java.util.Optional + +class DemandResponseLoadControlClusterLoadControlEventTransitionStruct ( + val duration: UInt, + val control: UInt, + val temperatureControl: Optional, + val averageLoadControl: Optional, + val dutyCycleControl: Optional, + val powerSavingsControl: Optional, + val heatingSourceControl: Optional) { + override fun toString(): String = buildString { append("DemandResponseLoadControlClusterLoadControlEventTransitionStruct {\n") append("\tduration : $duration\n") append("\tcontrol : $control\n") @@ -50,25 +52,25 @@ class DemandResponseLoadControlClusterLoadControlEventTransitionStruct( put(ContextSpecificTag(TAG_DURATION), duration) put(ContextSpecificTag(TAG_CONTROL), control) if (temperatureControl.isPresent) { - val opttemperatureControl = temperatureControl.get() - opttemperatureControl.toTlv(ContextSpecificTag(TAG_TEMPERATURE_CONTROL), this) - } + val opttemperatureControl = temperatureControl.get() + opttemperatureControl.toTlv(ContextSpecificTag(TAG_TEMPERATURE_CONTROL), this) + } if (averageLoadControl.isPresent) { - val optaverageLoadControl = averageLoadControl.get() - optaverageLoadControl.toTlv(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), this) - } + val optaverageLoadControl = averageLoadControl.get() + optaverageLoadControl.toTlv(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), this) + } if (dutyCycleControl.isPresent) { - val optdutyCycleControl = dutyCycleControl.get() - optdutyCycleControl.toTlv(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), this) - } + val optdutyCycleControl = dutyCycleControl.get() + optdutyCycleControl.toTlv(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), this) + } if (powerSavingsControl.isPresent) { - val optpowerSavingsControl = powerSavingsControl.get() - optpowerSavingsControl.toTlv(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), this) - } + val optpowerSavingsControl = powerSavingsControl.get() + optpowerSavingsControl.toTlv(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), this) + } if (heatingSourceControl.isPresent) { - val optheatingSourceControl = heatingSourceControl.get() - optheatingSourceControl.toTlv(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), this) - } + val optheatingSourceControl = heatingSourceControl.get() + optheatingSourceControl.toTlv(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), this) + } endStructure() } } @@ -82,80 +84,39 @@ class DemandResponseLoadControlClusterLoadControlEventTransitionStruct( private const val TAG_POWER_SAVINGS_CONTROL = 5 private const val TAG_HEATING_SOURCE_CONTROL = 6 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): DemandResponseLoadControlClusterLoadControlEventTransitionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DemandResponseLoadControlClusterLoadControlEventTransitionStruct { tlvReader.enterStructure(tlvTag) val duration = tlvReader.getUInt(ContextSpecificTag(TAG_DURATION)) val control = tlvReader.getUInt(ContextSpecificTag(TAG_CONTROL)) - val temperatureControl = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_TEMPERATURE_CONTROL))) { - Optional.of( - DemandResponseLoadControlClusterTemperatureControlStruct.fromTlv( - ContextSpecificTag(TAG_TEMPERATURE_CONTROL), - tlvReader - ) - ) - } else { - Optional.empty() - } - val averageLoadControl = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL))) { - Optional.of( - DemandResponseLoadControlClusterAverageLoadControlStruct.fromTlv( - ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), - tlvReader - ) - ) - } else { - Optional.empty() - } - val dutyCycleControl = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL))) { - Optional.of( - DemandResponseLoadControlClusterDutyCycleControlStruct.fromTlv( - ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), - tlvReader - ) - ) - } else { - Optional.empty() - } - val powerSavingsControl = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL))) { - Optional.of( - DemandResponseLoadControlClusterPowerSavingsControlStruct.fromTlv( - ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), - tlvReader - ) - ) - } else { - Optional.empty() - } - val heatingSourceControl = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL))) { - Optional.of( - DemandResponseLoadControlClusterHeatingSourceControlStruct.fromTlv( - ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), - tlvReader - ) - ) - } else { - Optional.empty() - } - + val temperatureControl = if (tlvReader.isNextTag(ContextSpecificTag(TAG_TEMPERATURE_CONTROL))) { + Optional.of(DemandResponseLoadControlClusterTemperatureControlStruct.fromTlv(ContextSpecificTag(TAG_TEMPERATURE_CONTROL), tlvReader)) + } else { + Optional.empty() + } + val averageLoadControl = if (tlvReader.isNextTag(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL))) { + Optional.of(DemandResponseLoadControlClusterAverageLoadControlStruct.fromTlv(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), tlvReader)) + } else { + Optional.empty() + } + val dutyCycleControl = if (tlvReader.isNextTag(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL))) { + Optional.of(DemandResponseLoadControlClusterDutyCycleControlStruct.fromTlv(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), tlvReader)) + } else { + Optional.empty() + } + val powerSavingsControl = if (tlvReader.isNextTag(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL))) { + Optional.of(DemandResponseLoadControlClusterPowerSavingsControlStruct.fromTlv(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), tlvReader)) + } else { + Optional.empty() + } + val heatingSourceControl = if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL))) { + Optional.of(DemandResponseLoadControlClusterHeatingSourceControlStruct.fromTlv(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), tlvReader)) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return DemandResponseLoadControlClusterLoadControlEventTransitionStruct( - duration, - control, - temperatureControl, - averageLoadControl, - dutyCycleControl, - powerSavingsControl, - heatingSourceControl - ) + return DemandResponseLoadControlClusterLoadControlEventTransitionStruct(duration, control, temperatureControl, averageLoadControl, dutyCycleControl, powerSavingsControl, heatingSourceControl) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlProgramStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlProgramStruct.kt index 289e4b0a1dbebf..70787ef931f659 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlProgramStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlProgramStruct.kt @@ -17,19 +17,22 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DemandResponseLoadControlClusterLoadControlProgramStruct( - val programID: ByteArray, - val name: String, - val enrollmentGroup: UInt?, - val randomStartMinutes: UInt?, - val randomDurationMinutes: UInt? -) { - override fun toString(): String = buildString { +import java.util.Optional + +class DemandResponseLoadControlClusterLoadControlProgramStruct ( + val programID: ByteArray, + val name: String, + val enrollmentGroup: UInt?, + val randomStartMinutes: UInt?, + val randomDurationMinutes: UInt?) { + override fun toString(): String = buildString { append("DemandResponseLoadControlClusterLoadControlProgramStruct {\n") append("\tprogramID : $programID\n") append("\tname : $name\n") @@ -45,20 +48,20 @@ class DemandResponseLoadControlClusterLoadControlProgramStruct( put(ContextSpecificTag(TAG_PROGRAM_I_D), programID) put(ContextSpecificTag(TAG_NAME), name) if (enrollmentGroup != null) { - put(ContextSpecificTag(TAG_ENROLLMENT_GROUP), enrollmentGroup) - } else { - putNull(ContextSpecificTag(TAG_ENROLLMENT_GROUP)) - } + put(ContextSpecificTag(TAG_ENROLLMENT_GROUP), enrollmentGroup) + } else { + putNull(ContextSpecificTag(TAG_ENROLLMENT_GROUP)) + } if (randomStartMinutes != null) { - put(ContextSpecificTag(TAG_RANDOM_START_MINUTES), randomStartMinutes) - } else { - putNull(ContextSpecificTag(TAG_RANDOM_START_MINUTES)) - } + put(ContextSpecificTag(TAG_RANDOM_START_MINUTES), randomStartMinutes) + } else { + putNull(ContextSpecificTag(TAG_RANDOM_START_MINUTES)) + } if (randomDurationMinutes != null) { - put(ContextSpecificTag(TAG_RANDOM_DURATION_MINUTES), randomDurationMinutes) - } else { - putNull(ContextSpecificTag(TAG_RANDOM_DURATION_MINUTES)) - } + put(ContextSpecificTag(TAG_RANDOM_DURATION_MINUTES), randomDurationMinutes) + } else { + putNull(ContextSpecificTag(TAG_RANDOM_DURATION_MINUTES)) + } endStructure() } } @@ -70,44 +73,32 @@ class DemandResponseLoadControlClusterLoadControlProgramStruct( private const val TAG_RANDOM_START_MINUTES = 3 private const val TAG_RANDOM_DURATION_MINUTES = 4 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): DemandResponseLoadControlClusterLoadControlProgramStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DemandResponseLoadControlClusterLoadControlProgramStruct { tlvReader.enterStructure(tlvTag) val programID = tlvReader.getByteArray(ContextSpecificTag(TAG_PROGRAM_I_D)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) - val enrollmentGroup = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_ENROLLMENT_GROUP)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ENROLLMENT_GROUP)) - null - } - val randomStartMinutes = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_RANDOM_START_MINUTES)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_RANDOM_START_MINUTES)) - null - } - val randomDurationMinutes = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_RANDOM_DURATION_MINUTES)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_RANDOM_DURATION_MINUTES)) - null - } - + val enrollmentGroup = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_ENROLLMENT_GROUP)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ENROLLMENT_GROUP)) + null + } + val randomStartMinutes = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_RANDOM_START_MINUTES)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_RANDOM_START_MINUTES)) + null + } + val randomDurationMinutes = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_RANDOM_DURATION_MINUTES)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_RANDOM_DURATION_MINUTES)) + null + } + tlvReader.exitContainer() - return DemandResponseLoadControlClusterLoadControlProgramStruct( - programID, - name, - enrollmentGroup, - randomStartMinutes, - randomDurationMinutes - ) + return DemandResponseLoadControlClusterLoadControlProgramStruct(programID, name, enrollmentGroup, randomStartMinutes, randomDurationMinutes) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterPowerSavingsControlStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterPowerSavingsControlStruct.kt index 30ed601d4ac156..a06b0011af0b89 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterPowerSavingsControlStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterPowerSavingsControlStruct.kt @@ -17,13 +17,18 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DemandResponseLoadControlClusterPowerSavingsControlStruct(val powerSavings: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class DemandResponseLoadControlClusterPowerSavingsControlStruct ( + val powerSavings: UInt) { + override fun toString(): String = buildString { append("DemandResponseLoadControlClusterPowerSavingsControlStruct {\n") append("\tpowerSavings : $powerSavings\n") append("}\n") @@ -40,13 +45,10 @@ class DemandResponseLoadControlClusterPowerSavingsControlStruct(val powerSavings companion object { private const val TAG_POWER_SAVINGS = 0 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): DemandResponseLoadControlClusterPowerSavingsControlStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DemandResponseLoadControlClusterPowerSavingsControlStruct { tlvReader.enterStructure(tlvTag) val powerSavings = tlvReader.getUInt(ContextSpecificTag(TAG_POWER_SAVINGS)) - + tlvReader.exitContainer() return DemandResponseLoadControlClusterPowerSavingsControlStruct(powerSavings) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterTemperatureControlStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterTemperatureControlStruct.kt index 925c1db888410a..70524b6e349fca 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterTemperatureControlStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterTemperatureControlStruct.kt @@ -17,19 +17,21 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DemandResponseLoadControlClusterTemperatureControlStruct( - val coolingTempOffset: Optional?, - val heatingtTempOffset: Optional?, - val coolingTempSetpoint: Optional?, - val heatingTempSetpoint: Optional? -) { - override fun toString(): String = buildString { +import java.util.Optional + +class DemandResponseLoadControlClusterTemperatureControlStruct ( + val coolingTempOffset: Optional?, + val heatingtTempOffset: Optional?, + val coolingTempSetpoint: Optional?, + val heatingTempSetpoint: Optional?) { + override fun toString(): String = buildString { append("DemandResponseLoadControlClusterTemperatureControlStruct {\n") append("\tcoolingTempOffset : $coolingTempOffset\n") append("\theatingtTempOffset : $heatingtTempOffset\n") @@ -42,37 +44,37 @@ class DemandResponseLoadControlClusterTemperatureControlStruct( tlvWriter.apply { startStructure(tlvTag) if (coolingTempOffset != null) { - if (coolingTempOffset.isPresent) { - val optcoolingTempOffset = coolingTempOffset.get() - put(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET), optcoolingTempOffset) - } - } else { - putNull(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET)) - } + if (coolingTempOffset.isPresent) { + val optcoolingTempOffset = coolingTempOffset.get() + put(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET), optcoolingTempOffset) + } + } else { + putNull(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET)) + } if (heatingtTempOffset != null) { - if (heatingtTempOffset.isPresent) { - val optheatingtTempOffset = heatingtTempOffset.get() - put(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET), optheatingtTempOffset) - } - } else { - putNull(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET)) - } + if (heatingtTempOffset.isPresent) { + val optheatingtTempOffset = heatingtTempOffset.get() + put(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET), optheatingtTempOffset) + } + } else { + putNull(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET)) + } if (coolingTempSetpoint != null) { - if (coolingTempSetpoint.isPresent) { - val optcoolingTempSetpoint = coolingTempSetpoint.get() - put(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT), optcoolingTempSetpoint) - } - } else { - putNull(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT)) - } + if (coolingTempSetpoint.isPresent) { + val optcoolingTempSetpoint = coolingTempSetpoint.get() + put(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT), optcoolingTempSetpoint) + } + } else { + putNull(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT)) + } if (heatingTempSetpoint != null) { - if (heatingTempSetpoint.isPresent) { - val optheatingTempSetpoint = heatingTempSetpoint.get() - put(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT), optheatingTempSetpoint) - } - } else { - putNull(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT)) - } + if (heatingTempSetpoint.isPresent) { + val optheatingTempSetpoint = heatingTempSetpoint.get() + put(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT), optheatingTempSetpoint) + } + } else { + putNull(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT)) + } endStructure() } } @@ -83,64 +85,52 @@ class DemandResponseLoadControlClusterTemperatureControlStruct( private const val TAG_COOLING_TEMP_SETPOINT = 2 private const val TAG_HEATING_TEMP_SETPOINT = 3 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): DemandResponseLoadControlClusterTemperatureControlStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DemandResponseLoadControlClusterTemperatureControlStruct { tlvReader.enterStructure(tlvTag) - val coolingTempOffset = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET)) - null - } - val heatingtTempOffset = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET)) - null - } - val coolingTempSetpoint = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT))) { - Optional.of(tlvReader.getInt(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT)) - null - } - val heatingTempSetpoint = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT))) { - Optional.of(tlvReader.getInt(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT)) - null - } - + val coolingTempOffset = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET)) + null + } + val heatingtTempOffset = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET)) + null + } + val coolingTempSetpoint = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT))) { + Optional.of(tlvReader.getInt(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT)) + null + } + val heatingTempSetpoint = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT))) { + Optional.of(tlvReader.getInt(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT)) + null + } + tlvReader.exitContainer() - return DemandResponseLoadControlClusterTemperatureControlStruct( - coolingTempOffset, - heatingtTempOffset, - coolingTempSetpoint, - heatingTempSetpoint - ) + return DemandResponseLoadControlClusterTemperatureControlStruct(coolingTempOffset, heatingtTempOffset, coolingTempSetpoint, heatingTempSetpoint) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DescriptorClusterDeviceTypeStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DescriptorClusterDeviceTypeStruct.kt index 0a867ba2296515..c5529da5072ea8 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DescriptorClusterDeviceTypeStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DescriptorClusterDeviceTypeStruct.kt @@ -17,13 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DescriptorClusterDeviceTypeStruct(val deviceType: ULong, val revision: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class DescriptorClusterDeviceTypeStruct ( + val deviceType: ULong, + val revision: UInt) { + override fun toString(): String = buildString { append("DescriptorClusterDeviceTypeStruct {\n") append("\tdeviceType : $deviceType\n") append("\trevision : $revision\n") @@ -43,11 +49,11 @@ class DescriptorClusterDeviceTypeStruct(val deviceType: ULong, val revision: UIn private const val TAG_DEVICE_TYPE = 0 private const val TAG_REVISION = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DescriptorClusterDeviceTypeStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DescriptorClusterDeviceTypeStruct { tlvReader.enterStructure(tlvTag) val deviceType = tlvReader.getULong(ContextSpecificTag(TAG_DEVICE_TYPE)) val revision = tlvReader.getUInt(ContextSpecificTag(TAG_REVISION)) - + tlvReader.exitContainer() return DescriptorClusterDeviceTypeStruct(deviceType, revision) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DescriptorClusterSemanticTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DescriptorClusterSemanticTagStruct.kt index 91d33d5c0fe2e5..89967a1445d75d 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DescriptorClusterSemanticTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DescriptorClusterSemanticTagStruct.kt @@ -17,19 +17,21 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DescriptorClusterSemanticTagStruct( - val mfgCode: UInt?, - val namespaceID: UInt, - val tag: UInt, - val label: Optional? -) { - override fun toString(): String = buildString { +import java.util.Optional + +class DescriptorClusterSemanticTagStruct ( + val mfgCode: UInt?, + val namespaceID: UInt, + val tag: UInt, + val label: Optional?) { + override fun toString(): String = buildString { append("DescriptorClusterSemanticTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tnamespaceID : $namespaceID\n") @@ -42,20 +44,20 @@ class DescriptorClusterSemanticTagStruct( tlvWriter.apply { startStructure(tlvTag) if (mfgCode != null) { - put(ContextSpecificTag(TAG_MFG_CODE), mfgCode) - } else { - putNull(ContextSpecificTag(TAG_MFG_CODE)) - } + put(ContextSpecificTag(TAG_MFG_CODE), mfgCode) + } else { + putNull(ContextSpecificTag(TAG_MFG_CODE)) + } put(ContextSpecificTag(TAG_NAMESPACE_I_D), namespaceID) put(ContextSpecificTag(TAG_TAG), tag) if (label != null) { - if (label.isPresent) { - val optlabel = label.get() - put(ContextSpecificTag(TAG_LABEL), optlabel) - } - } else { - putNull(ContextSpecificTag(TAG_LABEL)) - } + if (label.isPresent) { + val optlabel = label.get() + put(ContextSpecificTag(TAG_LABEL), optlabel) + } + } else { + putNull(ContextSpecificTag(TAG_LABEL)) + } endStructure() } } @@ -66,29 +68,27 @@ class DescriptorClusterSemanticTagStruct( private const val TAG_TAG = 2 private const val TAG_LABEL = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DescriptorClusterSemanticTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DescriptorClusterSemanticTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_MFG_CODE)) - null - } + val mfgCode = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_MFG_CODE)) + null + } val namespaceID = tlvReader.getUInt(ContextSpecificTag(TAG_NAMESPACE_I_D)) val tag = tlvReader.getUInt(ContextSpecificTag(TAG_TAG)) - val label = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_LABEL))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_LABEL)) - null - } - + val label = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_LABEL))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_LABEL)) + null + } + tlvReader.exitContainer() return DescriptorClusterSemanticTagStruct(mfgCode, namespaceID, tag, label) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DishwasherModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DishwasherModeClusterModeOptionStruct.kt index 0cbbf8fb8c37eb..04305789265487 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DishwasherModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DishwasherModeClusterModeOptionStruct.kt @@ -20,15 +20,17 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DishwasherModeClusterModeOptionStruct( - val label: String, - val mode: UInt, - val modeTags: List -) { - override fun toString(): String = buildString { +import java.util.Optional + +class DishwasherModeClusterModeOptionStruct ( + val label: String, + val mode: UInt, + val modeTags: List) { + override fun toString(): String = buildString { append("DishwasherModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -55,19 +57,18 @@ class DishwasherModeClusterModeOptionStruct( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DishwasherModeClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DishwasherModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUInt(ContextSpecificTag(TAG_MODE)) - val modeTags = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while (!tlvReader.isEndOfContainer()) { - add(DishwasherModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while(!tlvReader.isEndOfContainer()) { + add(DishwasherModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return DishwasherModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DishwasherModeClusterModeTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DishwasherModeClusterModeTagStruct.kt index 916f58bdab72e6..f2615f2ddeb01e 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DishwasherModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DishwasherModeClusterModeTagStruct.kt @@ -17,14 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DishwasherModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class DishwasherModeClusterModeTagStruct ( + val mfgCode: Optional, + val value: UInt) { + override fun toString(): String = buildString { append("DishwasherModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -35,9 +40,9 @@ class DishwasherModeClusterModeTagStruct(val mfgCode: Optional, val value: tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -47,16 +52,15 @@ class DishwasherModeClusterModeTagStruct(val mfgCode: Optional, val value: private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DishwasherModeClusterModeTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DishwasherModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return DishwasherModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DoorLockClusterCredentialStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DoorLockClusterCredentialStruct.kt index 5ee8045b4d17ed..108dd2b0efe922 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DoorLockClusterCredentialStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DoorLockClusterCredentialStruct.kt @@ -17,13 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DoorLockClusterCredentialStruct(val credentialType: UInt, val credentialIndex: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class DoorLockClusterCredentialStruct ( + val credentialType: UInt, + val credentialIndex: UInt) { + override fun toString(): String = buildString { append("DoorLockClusterCredentialStruct {\n") append("\tcredentialType : $credentialType\n") append("\tcredentialIndex : $credentialIndex\n") @@ -43,11 +49,11 @@ class DoorLockClusterCredentialStruct(val credentialType: UInt, val credentialIn private const val TAG_CREDENTIAL_TYPE = 0 private const val TAG_CREDENTIAL_INDEX = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterCredentialStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterCredentialStruct { tlvReader.enterStructure(tlvTag) val credentialType = tlvReader.getUInt(ContextSpecificTag(TAG_CREDENTIAL_TYPE)) val credentialIndex = tlvReader.getUInt(ContextSpecificTag(TAG_CREDENTIAL_INDEX)) - + tlvReader.exitContainer() return DoorLockClusterCredentialStruct(credentialType, credentialIndex) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/FixedLabelClusterLabelStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/FixedLabelClusterLabelStruct.kt index 258f336d66e50b..3ca4e99e618df8 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/FixedLabelClusterLabelStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/FixedLabelClusterLabelStruct.kt @@ -17,13 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class FixedLabelClusterLabelStruct(val label: String, val value: String) { - override fun toString(): String = buildString { +import java.util.Optional + +class FixedLabelClusterLabelStruct ( + val label: String, + val value: String) { + override fun toString(): String = buildString { append("FixedLabelClusterLabelStruct {\n") append("\tlabel : $label\n") append("\tvalue : $value\n") @@ -43,11 +49,11 @@ class FixedLabelClusterLabelStruct(val label: String, val value: String) { private const val TAG_LABEL = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): FixedLabelClusterLabelStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : FixedLabelClusterLabelStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val value = tlvReader.getString(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return FixedLabelClusterLabelStruct(label, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GeneralCommissioningClusterBasicCommissioningInfo.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GeneralCommissioningClusterBasicCommissioningInfo.kt index eb37145e36f754..6ea28a8fbf75da 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GeneralCommissioningClusterBasicCommissioningInfo.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GeneralCommissioningClusterBasicCommissioningInfo.kt @@ -17,16 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class GeneralCommissioningClusterBasicCommissioningInfo( - val failSafeExpiryLengthSeconds: UInt, - val maxCumulativeFailsafeSeconds: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class GeneralCommissioningClusterBasicCommissioningInfo ( + val failSafeExpiryLengthSeconds: UInt, + val maxCumulativeFailsafeSeconds: UInt) { + override fun toString(): String = buildString { append("GeneralCommissioningClusterBasicCommissioningInfo {\n") append("\tfailSafeExpiryLengthSeconds : $failSafeExpiryLengthSeconds\n") append("\tmaxCumulativeFailsafeSeconds : $maxCumulativeFailsafeSeconds\n") @@ -46,22 +49,14 @@ class GeneralCommissioningClusterBasicCommissioningInfo( private const val TAG_FAIL_SAFE_EXPIRY_LENGTH_SECONDS = 0 private const val TAG_MAX_CUMULATIVE_FAILSAFE_SECONDS = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): GeneralCommissioningClusterBasicCommissioningInfo { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralCommissioningClusterBasicCommissioningInfo { tlvReader.enterStructure(tlvTag) - val failSafeExpiryLengthSeconds = - tlvReader.getUInt(ContextSpecificTag(TAG_FAIL_SAFE_EXPIRY_LENGTH_SECONDS)) - val maxCumulativeFailsafeSeconds = - tlvReader.getUInt(ContextSpecificTag(TAG_MAX_CUMULATIVE_FAILSAFE_SECONDS)) - + val failSafeExpiryLengthSeconds = tlvReader.getUInt(ContextSpecificTag(TAG_FAIL_SAFE_EXPIRY_LENGTH_SECONDS)) + val maxCumulativeFailsafeSeconds = tlvReader.getUInt(ContextSpecificTag(TAG_MAX_CUMULATIVE_FAILSAFE_SECONDS)) + tlvReader.exitContainer() - return GeneralCommissioningClusterBasicCommissioningInfo( - failSafeExpiryLengthSeconds, - maxCumulativeFailsafeSeconds - ) + return GeneralCommissioningClusterBasicCommissioningInfo(failSafeExpiryLengthSeconds, maxCumulativeFailsafeSeconds) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GeneralDiagnosticsClusterNetworkInterface.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GeneralDiagnosticsClusterNetworkInterface.kt index 3f310757c51e6f..7656b672bd9058 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GeneralDiagnosticsClusterNetworkInterface.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GeneralDiagnosticsClusterNetworkInterface.kt @@ -20,20 +20,22 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class GeneralDiagnosticsClusterNetworkInterface( - val name: String, - val isOperational: Boolean, - val offPremiseServicesReachableIPv4: Boolean?, - val offPremiseServicesReachableIPv6: Boolean?, - val hardwareAddress: ByteArray, - val IPv4Addresses: List, - val IPv6Addresses: List, - val type: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class GeneralDiagnosticsClusterNetworkInterface ( + val name: String, + val isOperational: Boolean, + val offPremiseServicesReachableIPv4: Boolean?, + val offPremiseServicesReachableIPv6: Boolean?, + val hardwareAddress: ByteArray, + val IPv4Addresses: List, + val IPv6Addresses: List, + val type: UInt) { + override fun toString(): String = buildString { append("GeneralDiagnosticsClusterNetworkInterface {\n") append("\tname : $name\n") append("\tisOperational : $isOperational\n") @@ -52,21 +54,15 @@ class GeneralDiagnosticsClusterNetworkInterface( put(ContextSpecificTag(TAG_NAME), name) put(ContextSpecificTag(TAG_IS_OPERATIONAL), isOperational) if (offPremiseServicesReachableIPv4 != null) { - put( - ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4), - offPremiseServicesReachableIPv4 - ) - } else { - putNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) - } + put(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4), offPremiseServicesReachableIPv4) + } else { + putNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) + } if (offPremiseServicesReachableIPv6 != null) { - put( - ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6), - offPremiseServicesReachableIPv6 - ) - } else { - putNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) - } + put(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6), offPremiseServicesReachableIPv6) + } else { + putNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) + } put(ContextSpecificTag(TAG_HARDWARE_ADDRESS), hardwareAddress) startArray(ContextSpecificTag(TAG_I_PV4_ADDRESSES)) for (item in IPv4Addresses.iterator()) { @@ -93,55 +89,42 @@ class GeneralDiagnosticsClusterNetworkInterface( private const val TAG_I_PV6_ADDRESSES = 6 private const val TAG_TYPE = 7 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GeneralDiagnosticsClusterNetworkInterface { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterNetworkInterface { tlvReader.enterStructure(tlvTag) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) val isOperational = tlvReader.getBoolean(ContextSpecificTag(TAG_IS_OPERATIONAL)) - val offPremiseServicesReachableIPv4 = - if (!tlvReader.isNull()) { - tlvReader.getBoolean(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) - null - } - val offPremiseServicesReachableIPv6 = - if (!tlvReader.isNull()) { - tlvReader.getBoolean(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) - null - } + val offPremiseServicesReachableIPv4 = if (!tlvReader.isNull()) { + tlvReader.getBoolean(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) + null + } + val offPremiseServicesReachableIPv6 = if (!tlvReader.isNull()) { + tlvReader.getBoolean(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) + null + } val hardwareAddress = tlvReader.getByteArray(ContextSpecificTag(TAG_HARDWARE_ADDRESS)) - val IPv4Addresses = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_I_PV4_ADDRESSES)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getByteArray(AnonymousTag)) - } - tlvReader.exitContainer() - } - val IPv6Addresses = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_I_PV6_ADDRESSES)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getByteArray(AnonymousTag)) - } - tlvReader.exitContainer() - } + val IPv4Addresses = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_I_PV4_ADDRESSES)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getByteArray(AnonymousTag)) + } + tlvReader.exitContainer() + } + val IPv6Addresses = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_I_PV6_ADDRESSES)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getByteArray(AnonymousTag)) + } + tlvReader.exitContainer() + } val type = tlvReader.getUInt(ContextSpecificTag(TAG_TYPE)) - + tlvReader.exitContainer() - return GeneralDiagnosticsClusterNetworkInterface( - name, - isOperational, - offPremiseServicesReachableIPv4, - offPremiseServicesReachableIPv6, - hardwareAddress, - IPv4Addresses, - IPv6Addresses, - type - ) + return GeneralDiagnosticsClusterNetworkInterface(name, isOperational, offPremiseServicesReachableIPv4, offPremiseServicesReachableIPv6, hardwareAddress, IPv4Addresses, IPv6Addresses, type) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupInfoMapStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupInfoMapStruct.kt index 1549a376b4542a..72cf67168df8e4 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupInfoMapStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupInfoMapStruct.kt @@ -17,20 +17,21 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class GroupKeyManagementClusterGroupInfoMapStruct( - val groupId: UInt, - val endpoints: List, - val groupName: Optional, - val fabricIndex: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class GroupKeyManagementClusterGroupInfoMapStruct ( + val groupId: UInt, + val endpoints: List, + val groupName: Optional, + val fabricIndex: UInt) { + override fun toString(): String = buildString { append("GroupKeyManagementClusterGroupInfoMapStruct {\n") append("\tgroupId : $groupId\n") append("\tendpoints : $endpoints\n") @@ -49,9 +50,9 @@ class GroupKeyManagementClusterGroupInfoMapStruct( } endArray() if (groupName.isPresent) { - val optgroupName = groupName.get() - put(ContextSpecificTag(TAG_GROUP_NAME), optgroupName) - } + val optgroupName = groupName.get() + put(ContextSpecificTag(TAG_GROUP_NAME), optgroupName) + } put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) endStructure() } @@ -63,25 +64,23 @@ class GroupKeyManagementClusterGroupInfoMapStruct( private const val TAG_GROUP_NAME = 3 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GroupKeyManagementClusterGroupInfoMapStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GroupKeyManagementClusterGroupInfoMapStruct { tlvReader.enterStructure(tlvTag) val groupId = tlvReader.getUInt(ContextSpecificTag(TAG_GROUP_ID)) - val endpoints = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ENDPOINTS)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val groupName = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_GROUP_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_GROUP_NAME))) - } else { - Optional.empty() - } + val endpoints = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ENDPOINTS)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val groupName = if (tlvReader.isNextTag(ContextSpecificTag(TAG_GROUP_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_GROUP_NAME))) + } else { + Optional.empty() + } val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return GroupKeyManagementClusterGroupInfoMapStruct(groupId, endpoints, groupName, fabricIndex) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeyMapStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeyMapStruct.kt index 46f4656366bbc8..71d7c3ca4cb959 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeyMapStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeyMapStruct.kt @@ -17,17 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class GroupKeyManagementClusterGroupKeyMapStruct( - val groupId: UInt, - val groupKeySetID: UInt, - val fabricIndex: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class GroupKeyManagementClusterGroupKeyMapStruct ( + val groupId: UInt, + val groupKeySetID: UInt, + val fabricIndex: UInt) { + override fun toString(): String = buildString { append("GroupKeyManagementClusterGroupKeyMapStruct {\n") append("\tgroupId : $groupId\n") append("\tgroupKeySetID : $groupKeySetID\n") @@ -50,12 +53,12 @@ class GroupKeyManagementClusterGroupKeyMapStruct( private const val TAG_GROUP_KEY_SET_I_D = 2 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GroupKeyManagementClusterGroupKeyMapStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GroupKeyManagementClusterGroupKeyMapStruct { tlvReader.enterStructure(tlvTag) val groupId = tlvReader.getUInt(ContextSpecificTag(TAG_GROUP_ID)) val groupKeySetID = tlvReader.getUInt(ContextSpecificTag(TAG_GROUP_KEY_SET_I_D)) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return GroupKeyManagementClusterGroupKeyMapStruct(groupId, groupKeySetID, fabricIndex) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeySetStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeySetStruct.kt index 4d995ac2974023..2eee6ef47d3353 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeySetStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeySetStruct.kt @@ -17,22 +17,25 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class GroupKeyManagementClusterGroupKeySetStruct( - val groupKeySetID: UInt, - val groupKeySecurityPolicy: UInt, - val epochKey0: ByteArray?, - val epochStartTime0: ULong?, - val epochKey1: ByteArray?, - val epochStartTime1: ULong?, - val epochKey2: ByteArray?, - val epochStartTime2: ULong? -) { - override fun toString(): String = buildString { +import java.util.Optional + +class GroupKeyManagementClusterGroupKeySetStruct ( + val groupKeySetID: UInt, + val groupKeySecurityPolicy: UInt, + val epochKey0: ByteArray?, + val epochStartTime0: ULong?, + val epochKey1: ByteArray?, + val epochStartTime1: ULong?, + val epochKey2: ByteArray?, + val epochStartTime2: ULong?) { + override fun toString(): String = buildString { append("GroupKeyManagementClusterGroupKeySetStruct {\n") append("\tgroupKeySetID : $groupKeySetID\n") append("\tgroupKeySecurityPolicy : $groupKeySecurityPolicy\n") @@ -51,35 +54,35 @@ class GroupKeyManagementClusterGroupKeySetStruct( put(ContextSpecificTag(TAG_GROUP_KEY_SET_I_D), groupKeySetID) put(ContextSpecificTag(TAG_GROUP_KEY_SECURITY_POLICY), groupKeySecurityPolicy) if (epochKey0 != null) { - put(ContextSpecificTag(TAG_EPOCH_KEY0), epochKey0) - } else { - putNull(ContextSpecificTag(TAG_EPOCH_KEY0)) - } + put(ContextSpecificTag(TAG_EPOCH_KEY0), epochKey0) + } else { + putNull(ContextSpecificTag(TAG_EPOCH_KEY0)) + } if (epochStartTime0 != null) { - put(ContextSpecificTag(TAG_EPOCH_START_TIME0), epochStartTime0) - } else { - putNull(ContextSpecificTag(TAG_EPOCH_START_TIME0)) - } + put(ContextSpecificTag(TAG_EPOCH_START_TIME0), epochStartTime0) + } else { + putNull(ContextSpecificTag(TAG_EPOCH_START_TIME0)) + } if (epochKey1 != null) { - put(ContextSpecificTag(TAG_EPOCH_KEY1), epochKey1) - } else { - putNull(ContextSpecificTag(TAG_EPOCH_KEY1)) - } + put(ContextSpecificTag(TAG_EPOCH_KEY1), epochKey1) + } else { + putNull(ContextSpecificTag(TAG_EPOCH_KEY1)) + } if (epochStartTime1 != null) { - put(ContextSpecificTag(TAG_EPOCH_START_TIME1), epochStartTime1) - } else { - putNull(ContextSpecificTag(TAG_EPOCH_START_TIME1)) - } + put(ContextSpecificTag(TAG_EPOCH_START_TIME1), epochStartTime1) + } else { + putNull(ContextSpecificTag(TAG_EPOCH_START_TIME1)) + } if (epochKey2 != null) { - put(ContextSpecificTag(TAG_EPOCH_KEY2), epochKey2) - } else { - putNull(ContextSpecificTag(TAG_EPOCH_KEY2)) - } + put(ContextSpecificTag(TAG_EPOCH_KEY2), epochKey2) + } else { + putNull(ContextSpecificTag(TAG_EPOCH_KEY2)) + } if (epochStartTime2 != null) { - put(ContextSpecificTag(TAG_EPOCH_START_TIME2), epochStartTime2) - } else { - putNull(ContextSpecificTag(TAG_EPOCH_START_TIME2)) - } + put(ContextSpecificTag(TAG_EPOCH_START_TIME2), epochStartTime2) + } else { + putNull(ContextSpecificTag(TAG_EPOCH_START_TIME2)) + } endStructure() } } @@ -94,66 +97,50 @@ class GroupKeyManagementClusterGroupKeySetStruct( private const val TAG_EPOCH_KEY2 = 6 private const val TAG_EPOCH_START_TIME2 = 7 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GroupKeyManagementClusterGroupKeySetStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GroupKeyManagementClusterGroupKeySetStruct { tlvReader.enterStructure(tlvTag) val groupKeySetID = tlvReader.getUInt(ContextSpecificTag(TAG_GROUP_KEY_SET_I_D)) - val groupKeySecurityPolicy = - tlvReader.getUInt(ContextSpecificTag(TAG_GROUP_KEY_SECURITY_POLICY)) - val epochKey0 = - if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY0)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY0)) - null - } - val epochStartTime0 = - if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME0)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME0)) - null - } - val epochKey1 = - if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY1)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY1)) - null - } - val epochStartTime1 = - if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME1)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME1)) - null - } - val epochKey2 = - if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY2)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY2)) - null - } - val epochStartTime2 = - if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME2)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME2)) - null - } - + val groupKeySecurityPolicy = tlvReader.getUInt(ContextSpecificTag(TAG_GROUP_KEY_SECURITY_POLICY)) + val epochKey0 = if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY0)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY0)) + null + } + val epochStartTime0 = if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME0)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME0)) + null + } + val epochKey1 = if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY1)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY1)) + null + } + val epochStartTime1 = if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME1)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME1)) + null + } + val epochKey2 = if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY2)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY2)) + null + } + val epochStartTime2 = if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME2)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME2)) + null + } + tlvReader.exitContainer() - return GroupKeyManagementClusterGroupKeySetStruct( - groupKeySetID, - groupKeySecurityPolicy, - epochKey0, - epochStartTime0, - epochKey1, - epochStartTime1, - epochKey2, - epochStartTime2 - ) + return GroupKeyManagementClusterGroupKeySetStruct(groupKeySetID, groupKeySecurityPolicy, epochKey0, epochStartTime0, epochKey1, epochStartTime1, epochKey2, epochStartTime2) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/HepaFilterMonitoringClusterReplacementProductStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/HepaFilterMonitoringClusterReplacementProductStruct.kt index b36468116ac1dd..a5e79f7e076234 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/HepaFilterMonitoringClusterReplacementProductStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/HepaFilterMonitoringClusterReplacementProductStruct.kt @@ -17,16 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class HepaFilterMonitoringClusterReplacementProductStruct( - val productIdentifierType: UInt, - val productIdentifierValue: String -) { - override fun toString(): String = buildString { +import java.util.Optional + +class HepaFilterMonitoringClusterReplacementProductStruct ( + val productIdentifierType: UInt, + val productIdentifierValue: String) { + override fun toString(): String = buildString { append("HepaFilterMonitoringClusterReplacementProductStruct {\n") append("\tproductIdentifierType : $productIdentifierType\n") append("\tproductIdentifierValue : $productIdentifierValue\n") @@ -46,21 +49,14 @@ class HepaFilterMonitoringClusterReplacementProductStruct( private const val TAG_PRODUCT_IDENTIFIER_TYPE = 0 private const val TAG_PRODUCT_IDENTIFIER_VALUE = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): HepaFilterMonitoringClusterReplacementProductStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : HepaFilterMonitoringClusterReplacementProductStruct { tlvReader.enterStructure(tlvTag) val productIdentifierType = tlvReader.getUInt(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_TYPE)) - val productIdentifierValue = - tlvReader.getString(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_VALUE)) - + val productIdentifierValue = tlvReader.getString(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_VALUE)) + tlvReader.exitContainer() - return HepaFilterMonitoringClusterReplacementProductStruct( - productIdentifierType, - productIdentifierValue - ) + return HepaFilterMonitoringClusterReplacementProductStruct(productIdentifierType, productIdentifierValue) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/IcdManagementClusterMonitoringRegistrationStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/IcdManagementClusterMonitoringRegistrationStruct.kt index 87927430232e4e..73b5b688af77c2 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/IcdManagementClusterMonitoringRegistrationStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/IcdManagementClusterMonitoringRegistrationStruct.kt @@ -17,17 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class IcdManagementClusterMonitoringRegistrationStruct( - val checkInNodeID: ULong, - val monitoredSubject: ULong, - val fabricIndex: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class IcdManagementClusterMonitoringRegistrationStruct ( + val checkInNodeID: ULong, + val monitoredSubject: ULong, + val fabricIndex: UInt) { + override fun toString(): String = buildString { append("IcdManagementClusterMonitoringRegistrationStruct {\n") append("\tcheckInNodeID : $checkInNodeID\n") append("\tmonitoredSubject : $monitoredSubject\n") @@ -50,22 +53,15 @@ class IcdManagementClusterMonitoringRegistrationStruct( private const val TAG_MONITORED_SUBJECT = 2 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): IcdManagementClusterMonitoringRegistrationStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : IcdManagementClusterMonitoringRegistrationStruct { tlvReader.enterStructure(tlvTag) val checkInNodeID = tlvReader.getULong(ContextSpecificTag(TAG_CHECK_IN_NODE_I_D)) val monitoredSubject = tlvReader.getULong(ContextSpecificTag(TAG_MONITORED_SUBJECT)) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return IcdManagementClusterMonitoringRegistrationStruct( - checkInNodeID, - monitoredSubject, - fabricIndex - ) + return IcdManagementClusterMonitoringRegistrationStruct(checkInNodeID, monitoredSubject, fabricIndex) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/LaundryWasherModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/LaundryWasherModeClusterModeOptionStruct.kt index f6ca291e0bb46e..539ddd1fe657ec 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/LaundryWasherModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/LaundryWasherModeClusterModeOptionStruct.kt @@ -20,15 +20,17 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class LaundryWasherModeClusterModeOptionStruct( - val label: String, - val mode: UInt, - val modeTags: List -) { - override fun toString(): String = buildString { +import java.util.Optional + +class LaundryWasherModeClusterModeOptionStruct ( + val label: String, + val mode: UInt, + val modeTags: List) { + override fun toString(): String = buildString { append("LaundryWasherModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -55,19 +57,18 @@ class LaundryWasherModeClusterModeOptionStruct( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): LaundryWasherModeClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : LaundryWasherModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUInt(ContextSpecificTag(TAG_MODE)) - val modeTags = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while (!tlvReader.isEndOfContainer()) { - add(LaundryWasherModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while(!tlvReader.isEndOfContainer()) { + add(LaundryWasherModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return LaundryWasherModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/LaundryWasherModeClusterModeTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/LaundryWasherModeClusterModeTagStruct.kt index 09c2915126efd6..f5e971f19259ee 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/LaundryWasherModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/LaundryWasherModeClusterModeTagStruct.kt @@ -17,14 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class LaundryWasherModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class LaundryWasherModeClusterModeTagStruct ( + val mfgCode: Optional, + val value: UInt) { + override fun toString(): String = buildString { append("LaundryWasherModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -35,9 +40,9 @@ class LaundryWasherModeClusterModeTagStruct(val mfgCode: Optional, val val tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -47,16 +52,15 @@ class LaundryWasherModeClusterModeTagStruct(val mfgCode: Optional, val val private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): LaundryWasherModeClusterModeTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : LaundryWasherModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return LaundryWasherModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MediaInputClusterInputInfoStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MediaInputClusterInputInfoStruct.kt index b2b26104143da8..a1e171a4805248 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MediaInputClusterInputInfoStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MediaInputClusterInputInfoStruct.kt @@ -17,18 +17,21 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class MediaInputClusterInputInfoStruct( - val index: UInt, - val inputType: UInt, - val name: String, - val description: String -) { - override fun toString(): String = buildString { +import java.util.Optional + +class MediaInputClusterInputInfoStruct ( + val index: UInt, + val inputType: UInt, + val name: String, + val description: String) { + override fun toString(): String = buildString { append("MediaInputClusterInputInfoStruct {\n") append("\tindex : $index\n") append("\tinputType : $inputType\n") @@ -54,13 +57,13 @@ class MediaInputClusterInputInfoStruct( private const val TAG_NAME = 2 private const val TAG_DESCRIPTION = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): MediaInputClusterInputInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : MediaInputClusterInputInfoStruct { tlvReader.enterStructure(tlvTag) val index = tlvReader.getUInt(ContextSpecificTag(TAG_INDEX)) val inputType = tlvReader.getUInt(ContextSpecificTag(TAG_INPUT_TYPE)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) val description = tlvReader.getString(ContextSpecificTag(TAG_DESCRIPTION)) - + tlvReader.exitContainer() return MediaInputClusterInputInfoStruct(index, inputType, name, description) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MediaPlaybackClusterPlaybackPositionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MediaPlaybackClusterPlaybackPositionStruct.kt index c58c381f8d6e14..a41c94eb25f23b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MediaPlaybackClusterPlaybackPositionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MediaPlaybackClusterPlaybackPositionStruct.kt @@ -17,13 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class MediaPlaybackClusterPlaybackPositionStruct(val updatedAt: ULong, val position: ULong?) { - override fun toString(): String = buildString { +import java.util.Optional + +class MediaPlaybackClusterPlaybackPositionStruct ( + val updatedAt: ULong, + val position: ULong?) { + override fun toString(): String = buildString { append("MediaPlaybackClusterPlaybackPositionStruct {\n") append("\tupdatedAt : $updatedAt\n") append("\tposition : $position\n") @@ -35,10 +41,10 @@ class MediaPlaybackClusterPlaybackPositionStruct(val updatedAt: ULong, val posit startStructure(tlvTag) put(ContextSpecificTag(TAG_UPDATED_AT), updatedAt) if (position != null) { - put(ContextSpecificTag(TAG_POSITION), position) - } else { - putNull(ContextSpecificTag(TAG_POSITION)) - } + put(ContextSpecificTag(TAG_POSITION), position) + } else { + putNull(ContextSpecificTag(TAG_POSITION)) + } endStructure() } } @@ -47,17 +53,16 @@ class MediaPlaybackClusterPlaybackPositionStruct(val updatedAt: ULong, val posit private const val TAG_UPDATED_AT = 0 private const val TAG_POSITION = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): MediaPlaybackClusterPlaybackPositionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : MediaPlaybackClusterPlaybackPositionStruct { tlvReader.enterStructure(tlvTag) val updatedAt = tlvReader.getULong(ContextSpecificTag(TAG_UPDATED_AT)) - val position = - if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_POSITION)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_POSITION)) - null - } - + val position = if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_POSITION)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_POSITION)) + null + } + tlvReader.exitContainer() return MediaPlaybackClusterPlaybackPositionStruct(updatedAt, position) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeOptionStruct.kt index 69caf35509d049..504a72e24e3598 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeOptionStruct.kt @@ -20,15 +20,17 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class MicrowaveOvenModeClusterModeOptionStruct( - val label: String, - val mode: UInt, - val modeTags: List -) { - override fun toString(): String = buildString { +import java.util.Optional + +class MicrowaveOvenModeClusterModeOptionStruct ( + val label: String, + val mode: UInt, + val modeTags: List) { + override fun toString(): String = buildString { append("MicrowaveOvenModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -55,19 +57,18 @@ class MicrowaveOvenModeClusterModeOptionStruct( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): MicrowaveOvenModeClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : MicrowaveOvenModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUInt(ContextSpecificTag(TAG_MODE)) - val modeTags = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while (!tlvReader.isEndOfContainer()) { - add(MicrowaveOvenModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while(!tlvReader.isEndOfContainer()) { + add(MicrowaveOvenModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return MicrowaveOvenModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeTagStruct.kt index bf9800a012de5f..4459562dcadcf3 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeTagStruct.kt @@ -17,14 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class MicrowaveOvenModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class MicrowaveOvenModeClusterModeTagStruct ( + val mfgCode: Optional, + val value: UInt) { + override fun toString(): String = buildString { append("MicrowaveOvenModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -35,9 +40,9 @@ class MicrowaveOvenModeClusterModeTagStruct(val mfgCode: Optional, val val tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -47,16 +52,15 @@ class MicrowaveOvenModeClusterModeTagStruct(val mfgCode: Optional, val val private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): MicrowaveOvenModeClusterModeTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : MicrowaveOvenModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return MicrowaveOvenModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ModeSelectClusterModeOptionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ModeSelectClusterModeOptionStruct.kt index fb74943fcd20b0..6613c8f6988cc6 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ModeSelectClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ModeSelectClusterModeOptionStruct.kt @@ -20,15 +20,17 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ModeSelectClusterModeOptionStruct( - val label: String, - val mode: UInt, - val semanticTags: List -) { - override fun toString(): String = buildString { +import java.util.Optional + +class ModeSelectClusterModeOptionStruct ( + val label: String, + val mode: UInt, + val semanticTags: List) { + override fun toString(): String = buildString { append("ModeSelectClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -55,19 +57,18 @@ class ModeSelectClusterModeOptionStruct( private const val TAG_MODE = 1 private const val TAG_SEMANTIC_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ModeSelectClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ModeSelectClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUInt(ContextSpecificTag(TAG_MODE)) - val semanticTags = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_SEMANTIC_TAGS)) - while (!tlvReader.isEndOfContainer()) { - add(ModeSelectClusterSemanticTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val semanticTags = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_SEMANTIC_TAGS)) + while(!tlvReader.isEndOfContainer()) { + add(ModeSelectClusterSemanticTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ModeSelectClusterModeOptionStruct(label, mode, semanticTags) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ModeSelectClusterSemanticTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ModeSelectClusterSemanticTagStruct.kt index ca14c2ebd4d8dc..2b501b089a5d8e 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ModeSelectClusterSemanticTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ModeSelectClusterSemanticTagStruct.kt @@ -17,13 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ModeSelectClusterSemanticTagStruct(val mfgCode: UInt, val value: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class ModeSelectClusterSemanticTagStruct ( + val mfgCode: UInt, + val value: UInt) { + override fun toString(): String = buildString { append("ModeSelectClusterSemanticTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -43,11 +49,11 @@ class ModeSelectClusterSemanticTagStruct(val mfgCode: UInt, val value: UInt) { private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ModeSelectClusterSemanticTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ModeSelectClusterSemanticTagStruct { tlvReader.enterStructure(tlvTag) val mfgCode = tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE)) val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return ModeSelectClusterSemanticTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterNetworkInfoStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterNetworkInfoStruct.kt index 82f98aeb677204..78e54129ba293a 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterNetworkInfoStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterNetworkInfoStruct.kt @@ -17,19 +17,21 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class NetworkCommissioningClusterNetworkInfoStruct( - val networkID: ByteArray, - val connected: Boolean, - val networkIdentifier: Optional?, - val clientIdentifier: Optional? -) { - override fun toString(): String = buildString { +import java.util.Optional + +class NetworkCommissioningClusterNetworkInfoStruct ( + val networkID: ByteArray, + val connected: Boolean, + val networkIdentifier: Optional?, + val clientIdentifier: Optional?) { + override fun toString(): String = buildString { append("NetworkCommissioningClusterNetworkInfoStruct {\n") append("\tnetworkID : $networkID\n") append("\tconnected : $connected\n") @@ -44,21 +46,21 @@ class NetworkCommissioningClusterNetworkInfoStruct( put(ContextSpecificTag(TAG_NETWORK_I_D), networkID) put(ContextSpecificTag(TAG_CONNECTED), connected) if (networkIdentifier != null) { - if (networkIdentifier.isPresent) { - val optnetworkIdentifier = networkIdentifier.get() - put(ContextSpecificTag(TAG_NETWORK_IDENTIFIER), optnetworkIdentifier) - } - } else { - putNull(ContextSpecificTag(TAG_NETWORK_IDENTIFIER)) - } + if (networkIdentifier.isPresent) { + val optnetworkIdentifier = networkIdentifier.get() + put(ContextSpecificTag(TAG_NETWORK_IDENTIFIER), optnetworkIdentifier) + } + } else { + putNull(ContextSpecificTag(TAG_NETWORK_IDENTIFIER)) + } if (clientIdentifier != null) { - if (clientIdentifier.isPresent) { - val optclientIdentifier = clientIdentifier.get() - put(ContextSpecificTag(TAG_CLIENT_IDENTIFIER), optclientIdentifier) - } - } else { - putNull(ContextSpecificTag(TAG_CLIENT_IDENTIFIER)) - } + if (clientIdentifier.isPresent) { + val optclientIdentifier = clientIdentifier.get() + put(ContextSpecificTag(TAG_CLIENT_IDENTIFIER), optclientIdentifier) + } + } else { + putNull(ContextSpecificTag(TAG_CLIENT_IDENTIFIER)) + } endStructure() } } @@ -69,41 +71,34 @@ class NetworkCommissioningClusterNetworkInfoStruct( private const val TAG_NETWORK_IDENTIFIER = 2 private const val TAG_CLIENT_IDENTIFIER = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): NetworkCommissioningClusterNetworkInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : NetworkCommissioningClusterNetworkInfoStruct { tlvReader.enterStructure(tlvTag) val networkID = tlvReader.getByteArray(ContextSpecificTag(TAG_NETWORK_I_D)) val connected = tlvReader.getBoolean(ContextSpecificTag(TAG_CONNECTED)) - val networkIdentifier = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NETWORK_IDENTIFIER))) { - Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_NETWORK_IDENTIFIER))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NETWORK_IDENTIFIER)) - null - } - val clientIdentifier = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_CLIENT_IDENTIFIER))) { - Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_CLIENT_IDENTIFIER))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CLIENT_IDENTIFIER)) - null - } - + val networkIdentifier = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NETWORK_IDENTIFIER))) { + Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_NETWORK_IDENTIFIER))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NETWORK_IDENTIFIER)) + null + } + val clientIdentifier = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_CLIENT_IDENTIFIER))) { + Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_CLIENT_IDENTIFIER))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_CLIENT_IDENTIFIER)) + null + } + tlvReader.exitContainer() - return NetworkCommissioningClusterNetworkInfoStruct( - networkID, - connected, - networkIdentifier, - clientIdentifier - ) + return NetworkCommissioningClusterNetworkInfoStruct(networkID, connected, networkIdentifier, clientIdentifier) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterThreadInterfaceScanResultStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterThreadInterfaceScanResultStruct.kt index c72319998ba002..01d987d0125f0f 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterThreadInterfaceScanResultStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterThreadInterfaceScanResultStruct.kt @@ -17,22 +17,25 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class NetworkCommissioningClusterThreadInterfaceScanResultStruct( - val panId: UInt, - val extendedPanId: ULong, - val networkName: String, - val channel: UInt, - val version: UInt, - val extendedAddress: ByteArray, - val rssi: Int, - val lqi: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class NetworkCommissioningClusterThreadInterfaceScanResultStruct ( + val panId: UInt, + val extendedPanId: ULong, + val networkName: String, + val channel: UInt, + val version: UInt, + val extendedAddress: ByteArray, + val rssi: Int, + val lqi: UInt) { + override fun toString(): String = buildString { append("NetworkCommissioningClusterThreadInterfaceScanResultStruct {\n") append("\tpanId : $panId\n") append("\textendedPanId : $extendedPanId\n") @@ -70,10 +73,7 @@ class NetworkCommissioningClusterThreadInterfaceScanResultStruct( private const val TAG_RSSI = 6 private const val TAG_LQI = 7 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): NetworkCommissioningClusterThreadInterfaceScanResultStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : NetworkCommissioningClusterThreadInterfaceScanResultStruct { tlvReader.enterStructure(tlvTag) val panId = tlvReader.getUInt(ContextSpecificTag(TAG_PAN_ID)) val extendedPanId = tlvReader.getULong(ContextSpecificTag(TAG_EXTENDED_PAN_ID)) @@ -83,19 +83,10 @@ class NetworkCommissioningClusterThreadInterfaceScanResultStruct( val extendedAddress = tlvReader.getByteArray(ContextSpecificTag(TAG_EXTENDED_ADDRESS)) val rssi = tlvReader.getInt(ContextSpecificTag(TAG_RSSI)) val lqi = tlvReader.getUInt(ContextSpecificTag(TAG_LQI)) - + tlvReader.exitContainer() - return NetworkCommissioningClusterThreadInterfaceScanResultStruct( - panId, - extendedPanId, - networkName, - channel, - version, - extendedAddress, - rssi, - lqi - ) + return NetworkCommissioningClusterThreadInterfaceScanResultStruct(panId, extendedPanId, networkName, channel, version, extendedAddress, rssi, lqi) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterWiFiInterfaceScanResultStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterWiFiInterfaceScanResultStruct.kt index e3e4ef10cbce76..8bdbd11bbc322c 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterWiFiInterfaceScanResultStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterWiFiInterfaceScanResultStruct.kt @@ -17,20 +17,23 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class NetworkCommissioningClusterWiFiInterfaceScanResultStruct( - val security: UInt, - val ssid: ByteArray, - val bssid: ByteArray, - val channel: UInt, - val wiFiBand: UInt, - val rssi: Int -) { - override fun toString(): String = buildString { +import java.util.Optional + +class NetworkCommissioningClusterWiFiInterfaceScanResultStruct ( + val security: UInt, + val ssid: ByteArray, + val bssid: ByteArray, + val channel: UInt, + val wiFiBand: UInt, + val rssi: Int) { + override fun toString(): String = buildString { append("NetworkCommissioningClusterWiFiInterfaceScanResultStruct {\n") append("\tsecurity : $security\n") append("\tssid : $ssid\n") @@ -62,10 +65,7 @@ class NetworkCommissioningClusterWiFiInterfaceScanResultStruct( private const val TAG_WI_FI_BAND = 4 private const val TAG_RSSI = 5 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): NetworkCommissioningClusterWiFiInterfaceScanResultStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : NetworkCommissioningClusterWiFiInterfaceScanResultStruct { tlvReader.enterStructure(tlvTag) val security = tlvReader.getUInt(ContextSpecificTag(TAG_SECURITY)) val ssid = tlvReader.getByteArray(ContextSpecificTag(TAG_SSID)) @@ -73,17 +73,10 @@ class NetworkCommissioningClusterWiFiInterfaceScanResultStruct( val channel = tlvReader.getUInt(ContextSpecificTag(TAG_CHANNEL)) val wiFiBand = tlvReader.getUInt(ContextSpecificTag(TAG_WI_FI_BAND)) val rssi = tlvReader.getInt(ContextSpecificTag(TAG_RSSI)) - + tlvReader.exitContainer() - return NetworkCommissioningClusterWiFiInterfaceScanResultStruct( - security, - ssid, - bssid, - channel, - wiFiBand, - rssi - ) + return NetworkCommissioningClusterWiFiInterfaceScanResultStruct(security, ssid, bssid, channel, wiFiBand, rssi) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalCredentialsClusterFabricDescriptorStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalCredentialsClusterFabricDescriptorStruct.kt index a1e736d1b0407c..de9d80b7482140 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalCredentialsClusterFabricDescriptorStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalCredentialsClusterFabricDescriptorStruct.kt @@ -17,20 +17,23 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class OperationalCredentialsClusterFabricDescriptorStruct( - val rootPublicKey: ByteArray, - val vendorID: UInt, - val fabricID: ULong, - val nodeID: ULong, - val label: String, - val fabricIndex: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class OperationalCredentialsClusterFabricDescriptorStruct ( + val rootPublicKey: ByteArray, + val vendorID: UInt, + val fabricID: ULong, + val nodeID: ULong, + val label: String, + val fabricIndex: UInt) { + override fun toString(): String = buildString { append("OperationalCredentialsClusterFabricDescriptorStruct {\n") append("\trootPublicKey : $rootPublicKey\n") append("\tvendorID : $vendorID\n") @@ -62,10 +65,7 @@ class OperationalCredentialsClusterFabricDescriptorStruct( private const val TAG_LABEL = 5 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): OperationalCredentialsClusterFabricDescriptorStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalCredentialsClusterFabricDescriptorStruct { tlvReader.enterStructure(tlvTag) val rootPublicKey = tlvReader.getByteArray(ContextSpecificTag(TAG_ROOT_PUBLIC_KEY)) val vendorID = tlvReader.getUInt(ContextSpecificTag(TAG_VENDOR_I_D)) @@ -73,17 +73,10 @@ class OperationalCredentialsClusterFabricDescriptorStruct( val nodeID = tlvReader.getULong(ContextSpecificTag(TAG_NODE_I_D)) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return OperationalCredentialsClusterFabricDescriptorStruct( - rootPublicKey, - vendorID, - fabricID, - nodeID, - label, - fabricIndex - ) + return OperationalCredentialsClusterFabricDescriptorStruct(rootPublicKey, vendorID, fabricID, nodeID, label, fabricIndex) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalCredentialsClusterNOCStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalCredentialsClusterNOCStruct.kt index a45a68e28cf2f8..2013bec14e74b5 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalCredentialsClusterNOCStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalCredentialsClusterNOCStruct.kt @@ -17,17 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class OperationalCredentialsClusterNOCStruct( - val noc: ByteArray, - val icac: ByteArray?, - val fabricIndex: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class OperationalCredentialsClusterNOCStruct ( + val noc: ByteArray, + val icac: ByteArray?, + val fabricIndex: UInt) { + override fun toString(): String = buildString { append("OperationalCredentialsClusterNOCStruct {\n") append("\tnoc : $noc\n") append("\ticac : $icac\n") @@ -40,10 +43,10 @@ class OperationalCredentialsClusterNOCStruct( startStructure(tlvTag) put(ContextSpecificTag(TAG_NOC), noc) if (icac != null) { - put(ContextSpecificTag(TAG_ICAC), icac) - } else { - putNull(ContextSpecificTag(TAG_ICAC)) - } + put(ContextSpecificTag(TAG_ICAC), icac) + } else { + putNull(ContextSpecificTag(TAG_ICAC)) + } put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) endStructure() } @@ -54,18 +57,17 @@ class OperationalCredentialsClusterNOCStruct( private const val TAG_ICAC = 2 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalCredentialsClusterNOCStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalCredentialsClusterNOCStruct { tlvReader.enterStructure(tlvTag) val noc = tlvReader.getByteArray(ContextSpecificTag(TAG_NOC)) - val icac = - if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_ICAC)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ICAC)) - null - } + val icac = if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_ICAC)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ICAC)) + null + } val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return OperationalCredentialsClusterNOCStruct(noc, icac, fabricIndex) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalStateClusterErrorStateStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalStateClusterErrorStateStruct.kt index c41c0205d88d84..6078c84c862ae8 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalStateClusterErrorStateStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalStateClusterErrorStateStruct.kt @@ -17,18 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class OperationalStateClusterErrorStateStruct( - val errorStateID: UInt, - val errorStateLabel: Optional, - val errorStateDetails: Optional -) { - override fun toString(): String = buildString { +import java.util.Optional + +class OperationalStateClusterErrorStateStruct ( + val errorStateID: UInt, + val errorStateLabel: Optional, + val errorStateDetails: Optional) { + override fun toString(): String = buildString { append("OperationalStateClusterErrorStateStruct {\n") append("\terrorStateID : $errorStateID\n") append("\terrorStateLabel : $errorStateLabel\n") @@ -41,13 +43,13 @@ class OperationalStateClusterErrorStateStruct( startStructure(tlvTag) put(ContextSpecificTag(TAG_ERROR_STATE_I_D), errorStateID) if (errorStateLabel.isPresent) { - val opterrorStateLabel = errorStateLabel.get() - put(ContextSpecificTag(TAG_ERROR_STATE_LABEL), opterrorStateLabel) - } + val opterrorStateLabel = errorStateLabel.get() + put(ContextSpecificTag(TAG_ERROR_STATE_LABEL), opterrorStateLabel) + } if (errorStateDetails.isPresent) { - val opterrorStateDetails = errorStateDetails.get() - put(ContextSpecificTag(TAG_ERROR_STATE_DETAILS), opterrorStateDetails) - } + val opterrorStateDetails = errorStateDetails.get() + put(ContextSpecificTag(TAG_ERROR_STATE_DETAILS), opterrorStateDetails) + } endStructure() } } @@ -57,29 +59,23 @@ class OperationalStateClusterErrorStateStruct( private const val TAG_ERROR_STATE_LABEL = 1 private const val TAG_ERROR_STATE_DETAILS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalStateClusterErrorStateStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalStateClusterErrorStateStruct { tlvReader.enterStructure(tlvTag) val errorStateID = tlvReader.getUInt(ContextSpecificTag(TAG_ERROR_STATE_I_D)) - val errorStateLabel = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) - } else { - Optional.empty() - } - val errorStateDetails = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) - } else { - Optional.empty() - } - + val errorStateLabel = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) + } else { + Optional.empty() + } + val errorStateDetails = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return OperationalStateClusterErrorStateStruct( - errorStateID, - errorStateLabel, - errorStateDetails - ) + return OperationalStateClusterErrorStateStruct(errorStateID, errorStateLabel, errorStateDetails) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalStateClusterOperationalStateStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalStateClusterOperationalStateStruct.kt index 3157b9c4b7dec2..e464504d71b4f1 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalStateClusterOperationalStateStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalStateClusterOperationalStateStruct.kt @@ -17,17 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class OperationalStateClusterOperationalStateStruct( - val operationalStateID: UInt, - val operationalStateLabel: Optional -) { - override fun toString(): String = buildString { +import java.util.Optional + +class OperationalStateClusterOperationalStateStruct ( + val operationalStateID: UInt, + val operationalStateLabel: Optional) { + override fun toString(): String = buildString { append("OperationalStateClusterOperationalStateStruct {\n") append("\toperationalStateID : $operationalStateID\n") append("\toperationalStateLabel : $operationalStateLabel\n") @@ -39,9 +41,9 @@ class OperationalStateClusterOperationalStateStruct( startStructure(tlvTag) put(ContextSpecificTag(TAG_OPERATIONAL_STATE_I_D), operationalStateID) if (operationalStateLabel.isPresent) { - val optoperationalStateLabel = operationalStateLabel.get() - put(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL), optoperationalStateLabel) - } + val optoperationalStateLabel = operationalStateLabel.get() + put(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL), optoperationalStateLabel) + } endStructure() } } @@ -50,22 +52,18 @@ class OperationalStateClusterOperationalStateStruct( private const val TAG_OPERATIONAL_STATE_I_D = 0 private const val TAG_OPERATIONAL_STATE_LABEL = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalStateClusterOperationalStateStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalStateClusterOperationalStateStruct { tlvReader.enterStructure(tlvTag) val operationalStateID = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATIONAL_STATE_I_D)) - val operationalStateLabel = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) - } else { - Optional.empty() - } - + val operationalStateLabel = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return OperationalStateClusterOperationalStateStruct( - operationalStateID, - operationalStateLabel - ) + return OperationalStateClusterOperationalStateStruct(operationalStateID, operationalStateLabel) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OtaSoftwareUpdateRequestorClusterProviderLocation.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OtaSoftwareUpdateRequestorClusterProviderLocation.kt index abb8f952cfce50..7f80ca90ed8c9f 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OtaSoftwareUpdateRequestorClusterProviderLocation.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OtaSoftwareUpdateRequestorClusterProviderLocation.kt @@ -17,17 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class OtaSoftwareUpdateRequestorClusterProviderLocation( - val providerNodeID: ULong, - val endpoint: UInt, - val fabricIndex: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class OtaSoftwareUpdateRequestorClusterProviderLocation ( + val providerNodeID: ULong, + val endpoint: UInt, + val fabricIndex: UInt) { + override fun toString(): String = buildString { append("OtaSoftwareUpdateRequestorClusterProviderLocation {\n") append("\tproviderNodeID : $providerNodeID\n") append("\tendpoint : $endpoint\n") @@ -50,22 +53,15 @@ class OtaSoftwareUpdateRequestorClusterProviderLocation( private const val TAG_ENDPOINT = 2 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): OtaSoftwareUpdateRequestorClusterProviderLocation { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OtaSoftwareUpdateRequestorClusterProviderLocation { tlvReader.enterStructure(tlvTag) val providerNodeID = tlvReader.getULong(ContextSpecificTag(TAG_PROVIDER_NODE_I_D)) val endpoint = tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT)) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return OtaSoftwareUpdateRequestorClusterProviderLocation( - providerNodeID, - endpoint, - fabricIndex - ) + return OtaSoftwareUpdateRequestorClusterProviderLocation(providerNodeID, endpoint, fabricIndex) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OvenModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OvenModeClusterModeOptionStruct.kt index 0df558d3935e26..4698441672eae2 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OvenModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OvenModeClusterModeOptionStruct.kt @@ -20,15 +20,17 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class OvenModeClusterModeOptionStruct( - val label: String, - val mode: UInt, - val modeTags: List -) { - override fun toString(): String = buildString { +import java.util.Optional + +class OvenModeClusterModeOptionStruct ( + val label: String, + val mode: UInt, + val modeTags: List) { + override fun toString(): String = buildString { append("OvenModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -55,19 +57,18 @@ class OvenModeClusterModeOptionStruct( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OvenModeClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OvenModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUInt(ContextSpecificTag(TAG_MODE)) - val modeTags = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while (!tlvReader.isEndOfContainer()) { - add(OvenModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while(!tlvReader.isEndOfContainer()) { + add(OvenModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return OvenModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OvenModeClusterModeTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OvenModeClusterModeTagStruct.kt index df0465b2c3055d..9c204fa8ecb2ea 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OvenModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OvenModeClusterModeTagStruct.kt @@ -17,14 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class OvenModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class OvenModeClusterModeTagStruct ( + val mfgCode: Optional, + val value: UInt) { + override fun toString(): String = buildString { append("OvenModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -35,9 +40,9 @@ class OvenModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -47,16 +52,15 @@ class OvenModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OvenModeClusterModeTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OvenModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return OvenModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterBatChargeFaultChangeType.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterBatChargeFaultChangeType.kt index 1d260017a0b722..c24d47fe4b23ee 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterBatChargeFaultChangeType.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterBatChargeFaultChangeType.kt @@ -20,14 +20,16 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class PowerSourceClusterBatChargeFaultChangeType( - val current: List, - val previous: List -) { - override fun toString(): String = buildString { +import java.util.Optional + +class PowerSourceClusterBatChargeFaultChangeType ( + val current: List, + val previous: List) { + override fun toString(): String = buildString { append("PowerSourceClusterBatChargeFaultChangeType {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -55,25 +57,23 @@ class PowerSourceClusterBatChargeFaultChangeType( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterBatChargeFaultChangeType { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterBatChargeFaultChangeType { tlvReader.enterStructure(tlvTag) - val current = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterBatChargeFaultChangeType(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterBatFaultChangeType.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterBatFaultChangeType.kt index 07ed4351bcd3a1..789a1f0a36c47c 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterBatFaultChangeType.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterBatFaultChangeType.kt @@ -20,11 +20,16 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class PowerSourceClusterBatFaultChangeType(val current: List, val previous: List) { - override fun toString(): String = buildString { +import java.util.Optional + +class PowerSourceClusterBatFaultChangeType ( + val current: List, + val previous: List) { + override fun toString(): String = buildString { append("PowerSourceClusterBatFaultChangeType {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -52,25 +57,23 @@ class PowerSourceClusterBatFaultChangeType(val current: List, val previous private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterBatFaultChangeType { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterBatFaultChangeType { tlvReader.enterStructure(tlvTag) - val current = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterBatFaultChangeType(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterWiredFaultChangeType.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterWiredFaultChangeType.kt index f0c80ef26ff5ad..849c0b2edfc454 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterWiredFaultChangeType.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterWiredFaultChangeType.kt @@ -20,11 +20,16 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class PowerSourceClusterWiredFaultChangeType(val current: List, val previous: List) { - override fun toString(): String = buildString { +import java.util.Optional + +class PowerSourceClusterWiredFaultChangeType ( + val current: List, + val previous: List) { + override fun toString(): String = buildString { append("PowerSourceClusterWiredFaultChangeType {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -52,25 +57,23 @@ class PowerSourceClusterWiredFaultChangeType(val current: List, val previo private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterWiredFaultChangeType { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterWiredFaultChangeType { tlvReader.enterStructure(tlvTag) - val current = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterWiredFaultChangeType(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.kt index 85b1d995d2fd76..74809e3ae5215c 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.kt @@ -20,15 +20,17 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct( - val label: String, - val mode: UInt, - val modeTags: List -) { - override fun toString(): String = buildString { +import java.util.Optional + +class RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct ( + val label: String, + val mode: UInt, + val modeTags: List) { + override fun toString(): String = buildString { append("RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -55,34 +57,21 @@ class RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUInt(ContextSpecificTag(TAG_MODE)) - val modeTags = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while (!tlvReader.isEndOfContainer()) { - add( - RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.fromTlv( - AnonymousTag, - tlvReader - ) - ) - } - tlvReader.exitContainer() - } - + val modeTags = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while(!tlvReader.isEndOfContainer()) { + add(RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() - return RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct( - label, - mode, - modeTags - ) + return RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct(label, mode, modeTags) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.kt index db10b1db8bab30..0831587768d6a3 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.kt @@ -17,17 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct( - val mfgCode: Optional, - val value: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct ( + val mfgCode: Optional, + val value: UInt) { + override fun toString(): String = buildString { append("RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -38,9 +40,9 @@ class RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct( tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -50,19 +52,15 @@ class RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct( private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcCleanModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcCleanModeClusterModeOptionStruct.kt index 31f7b8adb6ac63..d4cf5dd09a6214 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcCleanModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcCleanModeClusterModeOptionStruct.kt @@ -20,15 +20,17 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class RvcCleanModeClusterModeOptionStruct( - val label: String, - val mode: UInt, - val modeTags: List -) { - override fun toString(): String = buildString { +import java.util.Optional + +class RvcCleanModeClusterModeOptionStruct ( + val label: String, + val mode: UInt, + val modeTags: List) { + override fun toString(): String = buildString { append("RvcCleanModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -55,19 +57,18 @@ class RvcCleanModeClusterModeOptionStruct( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcCleanModeClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcCleanModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUInt(ContextSpecificTag(TAG_MODE)) - val modeTags = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while (!tlvReader.isEndOfContainer()) { - add(RvcCleanModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while(!tlvReader.isEndOfContainer()) { + add(RvcCleanModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return RvcCleanModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcCleanModeClusterModeTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcCleanModeClusterModeTagStruct.kt index a06d26774dacc6..7c293c839acb4f 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcCleanModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcCleanModeClusterModeTagStruct.kt @@ -17,14 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class RvcCleanModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class RvcCleanModeClusterModeTagStruct ( + val mfgCode: Optional, + val value: UInt) { + override fun toString(): String = buildString { append("RvcCleanModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -35,9 +40,9 @@ class RvcCleanModeClusterModeTagStruct(val mfgCode: Optional, val value: U tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -47,16 +52,15 @@ class RvcCleanModeClusterModeTagStruct(val mfgCode: Optional, val value: U private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcCleanModeClusterModeTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcCleanModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return RvcCleanModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcOperationalStateClusterErrorStateStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcOperationalStateClusterErrorStateStruct.kt index 0f8daddb5212c3..15f9250edbe478 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcOperationalStateClusterErrorStateStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcOperationalStateClusterErrorStateStruct.kt @@ -17,18 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class RvcOperationalStateClusterErrorStateStruct( - val errorStateID: UInt, - val errorStateLabel: Optional, - val errorStateDetails: Optional -) { - override fun toString(): String = buildString { +import java.util.Optional + +class RvcOperationalStateClusterErrorStateStruct ( + val errorStateID: UInt, + val errorStateLabel: Optional, + val errorStateDetails: Optional) { + override fun toString(): String = buildString { append("RvcOperationalStateClusterErrorStateStruct {\n") append("\terrorStateID : $errorStateID\n") append("\terrorStateLabel : $errorStateLabel\n") @@ -41,13 +43,13 @@ class RvcOperationalStateClusterErrorStateStruct( startStructure(tlvTag) put(ContextSpecificTag(TAG_ERROR_STATE_I_D), errorStateID) if (errorStateLabel.isPresent) { - val opterrorStateLabel = errorStateLabel.get() - put(ContextSpecificTag(TAG_ERROR_STATE_LABEL), opterrorStateLabel) - } + val opterrorStateLabel = errorStateLabel.get() + put(ContextSpecificTag(TAG_ERROR_STATE_LABEL), opterrorStateLabel) + } if (errorStateDetails.isPresent) { - val opterrorStateDetails = errorStateDetails.get() - put(ContextSpecificTag(TAG_ERROR_STATE_DETAILS), opterrorStateDetails) - } + val opterrorStateDetails = errorStateDetails.get() + put(ContextSpecificTag(TAG_ERROR_STATE_DETAILS), opterrorStateDetails) + } endStructure() } } @@ -57,29 +59,23 @@ class RvcOperationalStateClusterErrorStateStruct( private const val TAG_ERROR_STATE_LABEL = 1 private const val TAG_ERROR_STATE_DETAILS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcOperationalStateClusterErrorStateStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcOperationalStateClusterErrorStateStruct { tlvReader.enterStructure(tlvTag) val errorStateID = tlvReader.getUInt(ContextSpecificTag(TAG_ERROR_STATE_I_D)) - val errorStateLabel = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) - } else { - Optional.empty() - } - val errorStateDetails = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) - } else { - Optional.empty() - } - + val errorStateLabel = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) + } else { + Optional.empty() + } + val errorStateDetails = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return RvcOperationalStateClusterErrorStateStruct( - errorStateID, - errorStateLabel, - errorStateDetails - ) + return RvcOperationalStateClusterErrorStateStruct(errorStateID, errorStateLabel, errorStateDetails) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcOperationalStateClusterOperationalStateStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcOperationalStateClusterOperationalStateStruct.kt index cc01c472f7f71b..930daff7a6d833 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcOperationalStateClusterOperationalStateStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcOperationalStateClusterOperationalStateStruct.kt @@ -17,17 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class RvcOperationalStateClusterOperationalStateStruct( - val operationalStateID: UInt, - val operationalStateLabel: Optional -) { - override fun toString(): String = buildString { +import java.util.Optional + +class RvcOperationalStateClusterOperationalStateStruct ( + val operationalStateID: UInt, + val operationalStateLabel: Optional) { + override fun toString(): String = buildString { append("RvcOperationalStateClusterOperationalStateStruct {\n") append("\toperationalStateID : $operationalStateID\n") append("\toperationalStateLabel : $operationalStateLabel\n") @@ -39,9 +41,9 @@ class RvcOperationalStateClusterOperationalStateStruct( startStructure(tlvTag) put(ContextSpecificTag(TAG_OPERATIONAL_STATE_I_D), operationalStateID) if (operationalStateLabel.isPresent) { - val optoperationalStateLabel = operationalStateLabel.get() - put(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL), optoperationalStateLabel) - } + val optoperationalStateLabel = operationalStateLabel.get() + put(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL), optoperationalStateLabel) + } endStructure() } } @@ -50,25 +52,18 @@ class RvcOperationalStateClusterOperationalStateStruct( private const val TAG_OPERATIONAL_STATE_I_D = 0 private const val TAG_OPERATIONAL_STATE_LABEL = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): RvcOperationalStateClusterOperationalStateStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcOperationalStateClusterOperationalStateStruct { tlvReader.enterStructure(tlvTag) val operationalStateID = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATIONAL_STATE_I_D)) - val operationalStateLabel = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) - } else { - Optional.empty() - } - + val operationalStateLabel = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return RvcOperationalStateClusterOperationalStateStruct( - operationalStateID, - operationalStateLabel - ) + return RvcOperationalStateClusterOperationalStateStruct(operationalStateID, operationalStateLabel) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcRunModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcRunModeClusterModeOptionStruct.kt index c20f7b3f626474..519546666e3b33 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcRunModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcRunModeClusterModeOptionStruct.kt @@ -20,15 +20,17 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class RvcRunModeClusterModeOptionStruct( - val label: String, - val mode: UInt, - val modeTags: List -) { - override fun toString(): String = buildString { +import java.util.Optional + +class RvcRunModeClusterModeOptionStruct ( + val label: String, + val mode: UInt, + val modeTags: List) { + override fun toString(): String = buildString { append("RvcRunModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -55,19 +57,18 @@ class RvcRunModeClusterModeOptionStruct( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcRunModeClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcRunModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUInt(ContextSpecificTag(TAG_MODE)) - val modeTags = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while (!tlvReader.isEndOfContainer()) { - add(RvcRunModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while(!tlvReader.isEndOfContainer()) { + add(RvcRunModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return RvcRunModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcRunModeClusterModeTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcRunModeClusterModeTagStruct.kt index 4c32d28ee6ad67..c6183c3e89c585 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcRunModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcRunModeClusterModeTagStruct.kt @@ -17,14 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class RvcRunModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class RvcRunModeClusterModeTagStruct ( + val mfgCode: Optional, + val value: UInt) { + override fun toString(): String = buildString { append("RvcRunModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -35,9 +40,9 @@ class RvcRunModeClusterModeTagStruct(val mfgCode: Optional, val value: UIn tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -47,16 +52,15 @@ class RvcRunModeClusterModeTagStruct(val mfgCode: Optional, val value: UIn private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcRunModeClusterModeTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcRunModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return RvcRunModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterAttributeValuePair.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterAttributeValuePair.kt index f26ab20211dd8d..61bf2d3c5b9321 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterAttributeValuePair.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterAttributeValuePair.kt @@ -17,13 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ScenesClusterAttributeValuePair(val attributeID: ULong, val attributeValue: ULong) { - override fun toString(): String = buildString { +import java.util.Optional + +class ScenesClusterAttributeValuePair ( + val attributeID: ULong, + val attributeValue: ULong) { + override fun toString(): String = buildString { append("ScenesClusterAttributeValuePair {\n") append("\tattributeID : $attributeID\n") append("\tattributeValue : $attributeValue\n") @@ -43,11 +49,11 @@ class ScenesClusterAttributeValuePair(val attributeID: ULong, val attributeValue private const val TAG_ATTRIBUTE_I_D = 0 private const val TAG_ATTRIBUTE_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ScenesClusterAttributeValuePair { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ScenesClusterAttributeValuePair { tlvReader.enterStructure(tlvTag) val attributeID = tlvReader.getULong(ContextSpecificTag(TAG_ATTRIBUTE_I_D)) val attributeValue = tlvReader.getULong(ContextSpecificTag(TAG_ATTRIBUTE_VALUE)) - + tlvReader.exitContainer() return ScenesClusterAttributeValuePair(attributeID, attributeValue) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterExtensionFieldSet.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterExtensionFieldSet.kt index 7999a24e2d78de..d6b615b148c3dd 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterExtensionFieldSet.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterExtensionFieldSet.kt @@ -20,14 +20,16 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ScenesClusterExtensionFieldSet( - val clusterID: ULong, - val attributeValueList: List -) { - override fun toString(): String = buildString { +import java.util.Optional + +class ScenesClusterExtensionFieldSet ( + val clusterID: ULong, + val attributeValueList: List) { + override fun toString(): String = buildString { append("ScenesClusterExtensionFieldSet {\n") append("\tclusterID : $clusterID\n") append("\tattributeValueList : $attributeValueList\n") @@ -51,18 +53,17 @@ class ScenesClusterExtensionFieldSet( private const val TAG_CLUSTER_I_D = 0 private const val TAG_ATTRIBUTE_VALUE_LIST = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ScenesClusterExtensionFieldSet { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ScenesClusterExtensionFieldSet { tlvReader.enterStructure(tlvTag) val clusterID = tlvReader.getULong(ContextSpecificTag(TAG_CLUSTER_I_D)) - val attributeValueList = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ATTRIBUTE_VALUE_LIST)) - while (!tlvReader.isEndOfContainer()) { - add(ScenesClusterAttributeValuePair.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val attributeValueList = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ATTRIBUTE_VALUE_LIST)) + while(!tlvReader.isEndOfContainer()) { + add(ScenesClusterAttributeValuePair.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ScenesClusterExtensionFieldSet(clusterID, attributeValueList) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterSceneInfoStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterSceneInfoStruct.kt index 066ade4d02a12f..0c287d11ac2f19 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterSceneInfoStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterSceneInfoStruct.kt @@ -17,20 +17,23 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ScenesClusterSceneInfoStruct( - val sceneCount: UInt, - val currentScene: UInt, - val currentGroup: UInt, - val sceneValid: Boolean, - val remainingCapacity: UInt, - val fabricIndex: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class ScenesClusterSceneInfoStruct ( + val sceneCount: UInt, + val currentScene: UInt, + val currentGroup: UInt, + val sceneValid: Boolean, + val remainingCapacity: UInt, + val fabricIndex: UInt) { + override fun toString(): String = buildString { append("ScenesClusterSceneInfoStruct {\n") append("\tsceneCount : $sceneCount\n") append("\tcurrentScene : $currentScene\n") @@ -62,7 +65,7 @@ class ScenesClusterSceneInfoStruct( private const val TAG_REMAINING_CAPACITY = 4 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ScenesClusterSceneInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ScenesClusterSceneInfoStruct { tlvReader.enterStructure(tlvTag) val sceneCount = tlvReader.getUInt(ContextSpecificTag(TAG_SCENE_COUNT)) val currentScene = tlvReader.getUInt(ContextSpecificTag(TAG_CURRENT_SCENE)) @@ -70,17 +73,10 @@ class ScenesClusterSceneInfoStruct( val sceneValid = tlvReader.getBoolean(ContextSpecificTag(TAG_SCENE_VALID)) val remainingCapacity = tlvReader.getUInt(ContextSpecificTag(TAG_REMAINING_CAPACITY)) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return ScenesClusterSceneInfoStruct( - sceneCount, - currentScene, - currentGroup, - sceneValid, - remainingCapacity, - fabricIndex - ) + return ScenesClusterSceneInfoStruct(sceneCount, currentScene, currentGroup, sceneValid, remainingCapacity, fabricIndex) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt index f606a46f9fd057..3ef4fc6b3bbfa6 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt @@ -17,20 +17,22 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SoftwareDiagnosticsClusterThreadMetricsStruct( - val id: ULong, - val name: Optional, - val stackFreeCurrent: Optional, - val stackFreeMinimum: Optional, - val stackSize: Optional -) { - override fun toString(): String = buildString { +import java.util.Optional + +class SoftwareDiagnosticsClusterThreadMetricsStruct ( + val id: ULong, + val name: Optional, + val stackFreeCurrent: Optional, + val stackFreeMinimum: Optional, + val stackSize: Optional) { + override fun toString(): String = buildString { append("SoftwareDiagnosticsClusterThreadMetricsStruct {\n") append("\tid : $id\n") append("\tname : $name\n") @@ -45,21 +47,21 @@ class SoftwareDiagnosticsClusterThreadMetricsStruct( startStructure(tlvTag) put(ContextSpecificTag(TAG_ID), id) if (name.isPresent) { - val optname = name.get() - put(ContextSpecificTag(TAG_NAME), optname) - } + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } if (stackFreeCurrent.isPresent) { - val optstackFreeCurrent = stackFreeCurrent.get() - put(ContextSpecificTag(TAG_STACK_FREE_CURRENT), optstackFreeCurrent) - } + val optstackFreeCurrent = stackFreeCurrent.get() + put(ContextSpecificTag(TAG_STACK_FREE_CURRENT), optstackFreeCurrent) + } if (stackFreeMinimum.isPresent) { - val optstackFreeMinimum = stackFreeMinimum.get() - put(ContextSpecificTag(TAG_STACK_FREE_MINIMUM), optstackFreeMinimum) - } + val optstackFreeMinimum = stackFreeMinimum.get() + put(ContextSpecificTag(TAG_STACK_FREE_MINIMUM), optstackFreeMinimum) + } if (stackSize.isPresent) { - val optstackSize = stackSize.get() - put(ContextSpecificTag(TAG_STACK_SIZE), optstackSize) - } + val optstackSize = stackSize.get() + put(ContextSpecificTag(TAG_STACK_SIZE), optstackSize) + } endStructure() } } @@ -71,43 +73,33 @@ class SoftwareDiagnosticsClusterThreadMetricsStruct( private const val TAG_STACK_FREE_MINIMUM = 3 private const val TAG_STACK_SIZE = 4 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SoftwareDiagnosticsClusterThreadMetricsStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SoftwareDiagnosticsClusterThreadMetricsStruct { tlvReader.enterStructure(tlvTag) val id = tlvReader.getULong(ContextSpecificTag(TAG_ID)) - val name = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - val stackFreeCurrent = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_FREE_CURRENT))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_STACK_FREE_CURRENT))) - } else { - Optional.empty() - } - val stackFreeMinimum = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_FREE_MINIMUM))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_STACK_FREE_MINIMUM))) - } else { - Optional.empty() - } - val stackSize = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_SIZE))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_STACK_SIZE))) - } else { - Optional.empty() - } - + val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + val stackFreeCurrent = if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_FREE_CURRENT))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_STACK_FREE_CURRENT))) + } else { + Optional.empty() + } + val stackFreeMinimum = if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_FREE_MINIMUM))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_STACK_FREE_MINIMUM))) + } else { + Optional.empty() + } + val stackSize = if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_SIZE))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_STACK_SIZE))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return SoftwareDiagnosticsClusterThreadMetricsStruct( - id, - name, - stackFreeCurrent, - stackFreeMinimum, - stackSize - ) + return SoftwareDiagnosticsClusterThreadMetricsStruct(id, name, stackFreeCurrent, stackFreeMinimum, stackSize) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt index 8d667ba0f94cfa..49ebd8e74713c8 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt @@ -17,13 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class TargetNavigatorClusterTargetInfoStruct(val identifier: UInt, val name: String) { - override fun toString(): String = buildString { +import java.util.Optional + +class TargetNavigatorClusterTargetInfoStruct ( + val identifier: UInt, + val name: String) { + override fun toString(): String = buildString { append("TargetNavigatorClusterTargetInfoStruct {\n") append("\tidentifier : $identifier\n") append("\tname : $name\n") @@ -43,11 +49,11 @@ class TargetNavigatorClusterTargetInfoStruct(val identifier: UInt, val name: Str private const val TAG_IDENTIFIER = 0 private const val TAG_NAME = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TargetNavigatorClusterTargetInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TargetNavigatorClusterTargetInfoStruct { tlvReader.enterStructure(tlvTag) val identifier = tlvReader.getUInt(ContextSpecificTag(TAG_IDENTIFIER)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) - + tlvReader.exitContainer() return TargetNavigatorClusterTargetInfoStruct(identifier, name) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterPresetStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterPresetStruct.kt new file mode 100644 index 00000000000000..5b426e8234fc4d --- /dev/null +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterPresetStruct.kt @@ -0,0 +1,130 @@ +/* + * + * Copyright (c) 2023 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package chip.devicecontroller.cluster.structs + +import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag +import matter.tlv.ContextSpecificTag +import matter.tlv.Tag +import matter.tlv.TlvParsingException +import matter.tlv.TlvReader +import matter.tlv.TlvWriter + +import java.util.Optional + +class ThermostatClusterPresetStruct ( + val presetHandle: ByteArray?, + val presetScenario: UInt, + val name: Optional?, + val coolingSetpoint: Optional, + val heatingSetpoint: Optional, + val builtIn: Boolean?) { + override fun toString(): String = buildString { + append("ThermostatClusterPresetStruct {\n") + append("\tpresetHandle : $presetHandle\n") + append("\tpresetScenario : $presetScenario\n") + append("\tname : $name\n") + append("\tcoolingSetpoint : $coolingSetpoint\n") + append("\theatingSetpoint : $heatingSetpoint\n") + append("\tbuiltIn : $builtIn\n") + append("}\n") + } + + fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { + tlvWriter.apply { + startStructure(tlvTag) + if (presetHandle != null) { + put(ContextSpecificTag(TAG_PRESET_HANDLE), presetHandle) + } else { + putNull(ContextSpecificTag(TAG_PRESET_HANDLE)) + } + put(ContextSpecificTag(TAG_PRESET_SCENARIO), presetScenario) + if (name != null) { + if (name.isPresent) { + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } + } else { + putNull(ContextSpecificTag(TAG_NAME)) + } + if (coolingSetpoint.isPresent) { + val optcoolingSetpoint = coolingSetpoint.get() + put(ContextSpecificTag(TAG_COOLING_SETPOINT), optcoolingSetpoint) + } + if (heatingSetpoint.isPresent) { + val optheatingSetpoint = heatingSetpoint.get() + put(ContextSpecificTag(TAG_HEATING_SETPOINT), optheatingSetpoint) + } + if (builtIn != null) { + put(ContextSpecificTag(TAG_BUILT_IN), builtIn) + } else { + putNull(ContextSpecificTag(TAG_BUILT_IN)) + } + endStructure() + } + } + + companion object { + private const val TAG_PRESET_HANDLE = 0 + private const val TAG_PRESET_SCENARIO = 1 + private const val TAG_NAME = 2 + private const val TAG_COOLING_SETPOINT = 3 + private const val TAG_HEATING_SETPOINT = 4 + private const val TAG_BUILT_IN = 5 + + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThermostatClusterPresetStruct { + tlvReader.enterStructure(tlvTag) + val presetHandle = if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_PRESET_HANDLE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PRESET_HANDLE)) + null + } + val presetScenario = tlvReader.getUInt(ContextSpecificTag(TAG_PRESET_SCENARIO)) + val name = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NAME)) + null + } + val coolingSetpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_SETPOINT))) { + Optional.of(tlvReader.getInt(ContextSpecificTag(TAG_COOLING_SETPOINT))) + } else { + Optional.empty() + } + val heatingSetpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SETPOINT))) { + Optional.of(tlvReader.getInt(ContextSpecificTag(TAG_HEATING_SETPOINT))) + } else { + Optional.empty() + } + val builtIn = if (!tlvReader.isNull()) { + tlvReader.getBoolean(ContextSpecificTag(TAG_BUILT_IN)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_BUILT_IN)) + null + } + + tlvReader.exitContainer() + + return ThermostatClusterPresetStruct(presetHandle, presetScenario, name, coolingSetpoint, heatingSetpoint, builtIn) + } + } +} diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterPresetTypeStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterPresetTypeStruct.kt new file mode 100644 index 00000000000000..26a9bab02f91e6 --- /dev/null +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterPresetTypeStruct.kt @@ -0,0 +1,67 @@ +/* + * + * Copyright (c) 2023 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package chip.devicecontroller.cluster.structs + +import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag +import matter.tlv.ContextSpecificTag +import matter.tlv.Tag +import matter.tlv.TlvParsingException +import matter.tlv.TlvReader +import matter.tlv.TlvWriter + +import java.util.Optional + +class ThermostatClusterPresetTypeStruct ( + val presetScenario: UInt, + val numberOfPresets: UInt, + val presetTypeFeatures: UInt) { + override fun toString(): String = buildString { + append("ThermostatClusterPresetTypeStruct {\n") + append("\tpresetScenario : $presetScenario\n") + append("\tnumberOfPresets : $numberOfPresets\n") + append("\tpresetTypeFeatures : $presetTypeFeatures\n") + append("}\n") + } + + fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { + tlvWriter.apply { + startStructure(tlvTag) + put(ContextSpecificTag(TAG_PRESET_SCENARIO), presetScenario) + put(ContextSpecificTag(TAG_NUMBER_OF_PRESETS), numberOfPresets) + put(ContextSpecificTag(TAG_PRESET_TYPE_FEATURES), presetTypeFeatures) + endStructure() + } + } + + companion object { + private const val TAG_PRESET_SCENARIO = 0 + private const val TAG_NUMBER_OF_PRESETS = 1 + private const val TAG_PRESET_TYPE_FEATURES = 2 + + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThermostatClusterPresetTypeStruct { + tlvReader.enterStructure(tlvTag) + val presetScenario = tlvReader.getUInt(ContextSpecificTag(TAG_PRESET_SCENARIO)) + val numberOfPresets = tlvReader.getUInt(ContextSpecificTag(TAG_NUMBER_OF_PRESETS)) + val presetTypeFeatures = tlvReader.getUInt(ContextSpecificTag(TAG_PRESET_TYPE_FEATURES)) + + tlvReader.exitContainer() + + return ThermostatClusterPresetTypeStruct(presetScenario, numberOfPresets, presetTypeFeatures) + } + } +} diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterQueuedPresetStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterQueuedPresetStruct.kt new file mode 100644 index 00000000000000..92e30614970dd2 --- /dev/null +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterQueuedPresetStruct.kt @@ -0,0 +1,80 @@ +/* + * + * Copyright (c) 2023 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package chip.devicecontroller.cluster.structs + +import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag +import matter.tlv.ContextSpecificTag +import matter.tlv.Tag +import matter.tlv.TlvParsingException +import matter.tlv.TlvReader +import matter.tlv.TlvWriter + +import java.util.Optional + +class ThermostatClusterQueuedPresetStruct ( + val presetHandle: ByteArray?, + val transitionTimestamp: ULong?) { + override fun toString(): String = buildString { + append("ThermostatClusterQueuedPresetStruct {\n") + append("\tpresetHandle : $presetHandle\n") + append("\ttransitionTimestamp : $transitionTimestamp\n") + append("}\n") + } + + fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { + tlvWriter.apply { + startStructure(tlvTag) + if (presetHandle != null) { + put(ContextSpecificTag(TAG_PRESET_HANDLE), presetHandle) + } else { + putNull(ContextSpecificTag(TAG_PRESET_HANDLE)) + } + if (transitionTimestamp != null) { + put(ContextSpecificTag(TAG_TRANSITION_TIMESTAMP), transitionTimestamp) + } else { + putNull(ContextSpecificTag(TAG_TRANSITION_TIMESTAMP)) + } + endStructure() + } + } + + companion object { + private const val TAG_PRESET_HANDLE = 0 + private const val TAG_TRANSITION_TIMESTAMP = 1 + + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThermostatClusterQueuedPresetStruct { + tlvReader.enterStructure(tlvTag) + val presetHandle = if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_PRESET_HANDLE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PRESET_HANDLE)) + null + } + val transitionTimestamp = if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_TRANSITION_TIMESTAMP)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TRANSITION_TIMESTAMP)) + null + } + + tlvReader.exitContainer() + + return ThermostatClusterQueuedPresetStruct(presetHandle, transitionTimestamp) + } + } +} diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleStruct.kt new file mode 100644 index 00000000000000..f07278bc4b607a --- /dev/null +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleStruct.kt @@ -0,0 +1,131 @@ +/* + * + * Copyright (c) 2023 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package chip.devicecontroller.cluster.structs + +import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag +import matter.tlv.ContextSpecificTag +import matter.tlv.Tag +import matter.tlv.TlvParsingException +import matter.tlv.TlvReader +import matter.tlv.TlvWriter + +import java.util.Optional + +class ThermostatClusterScheduleStruct ( + val scheduleHandle: ByteArray?, + val systemMode: UInt, + val name: Optional, + val presetHandle: Optional, + val transitions: List, + val builtIn: Optional?) { + override fun toString(): String = buildString { + append("ThermostatClusterScheduleStruct {\n") + append("\tscheduleHandle : $scheduleHandle\n") + append("\tsystemMode : $systemMode\n") + append("\tname : $name\n") + append("\tpresetHandle : $presetHandle\n") + append("\ttransitions : $transitions\n") + append("\tbuiltIn : $builtIn\n") + append("}\n") + } + + fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { + tlvWriter.apply { + startStructure(tlvTag) + if (scheduleHandle != null) { + put(ContextSpecificTag(TAG_SCHEDULE_HANDLE), scheduleHandle) + } else { + putNull(ContextSpecificTag(TAG_SCHEDULE_HANDLE)) + } + put(ContextSpecificTag(TAG_SYSTEM_MODE), systemMode) + if (name.isPresent) { + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } + if (presetHandle.isPresent) { + val optpresetHandle = presetHandle.get() + put(ContextSpecificTag(TAG_PRESET_HANDLE), optpresetHandle) + } + startArray(ContextSpecificTag(TAG_TRANSITIONS)) + for (item in transitions.iterator()) { + item.toTlv(AnonymousTag, this) + } + endArray() + if (builtIn != null) { + if (builtIn.isPresent) { + val optbuiltIn = builtIn.get() + put(ContextSpecificTag(TAG_BUILT_IN), optbuiltIn) + } + } else { + putNull(ContextSpecificTag(TAG_BUILT_IN)) + } + endStructure() + } + } + + companion object { + private const val TAG_SCHEDULE_HANDLE = 0 + private const val TAG_SYSTEM_MODE = 1 + private const val TAG_NAME = 2 + private const val TAG_PRESET_HANDLE = 3 + private const val TAG_TRANSITIONS = 4 + private const val TAG_BUILT_IN = 5 + + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThermostatClusterScheduleStruct { + tlvReader.enterStructure(tlvTag) + val scheduleHandle = if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_SCHEDULE_HANDLE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SCHEDULE_HANDLE)) + null + } + val systemMode = tlvReader.getUInt(ContextSpecificTag(TAG_SYSTEM_MODE)) + val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + val presetHandle = if (tlvReader.isNextTag(ContextSpecificTag(TAG_PRESET_HANDLE))) { + Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_PRESET_HANDLE))) + } else { + Optional.empty() + } + val transitions = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_TRANSITIONS)) + while(!tlvReader.isEndOfContainer()) { + add(ThermostatClusterScheduleTransitionStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + val builtIn = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_BUILT_IN))) { + Optional.of(tlvReader.getBoolean(ContextSpecificTag(TAG_BUILT_IN))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_BUILT_IN)) + null + } + + tlvReader.exitContainer() + + return ThermostatClusterScheduleStruct(scheduleHandle, systemMode, name, presetHandle, transitions, builtIn) + } + } +} diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleTransitionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleTransitionStruct.kt new file mode 100644 index 00000000000000..e429994e90d20a --- /dev/null +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleTransitionStruct.kt @@ -0,0 +1,110 @@ +/* + * + * Copyright (c) 2023 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package chip.devicecontroller.cluster.structs + +import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag +import matter.tlv.ContextSpecificTag +import matter.tlv.Tag +import matter.tlv.TlvParsingException +import matter.tlv.TlvReader +import matter.tlv.TlvWriter + +import java.util.Optional + +class ThermostatClusterScheduleTransitionStruct ( + val dayOfWeek: UInt, + val transitionTime: UInt, + val presetHandle: Optional, + val systemMode: Optional, + val coolingSetpoint: Optional, + val heatingSetpoint: Optional) { + override fun toString(): String = buildString { + append("ThermostatClusterScheduleTransitionStruct {\n") + append("\tdayOfWeek : $dayOfWeek\n") + append("\ttransitionTime : $transitionTime\n") + append("\tpresetHandle : $presetHandle\n") + append("\tsystemMode : $systemMode\n") + append("\tcoolingSetpoint : $coolingSetpoint\n") + append("\theatingSetpoint : $heatingSetpoint\n") + append("}\n") + } + + fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { + tlvWriter.apply { + startStructure(tlvTag) + put(ContextSpecificTag(TAG_DAY_OF_WEEK), dayOfWeek) + put(ContextSpecificTag(TAG_TRANSITION_TIME), transitionTime) + if (presetHandle.isPresent) { + val optpresetHandle = presetHandle.get() + put(ContextSpecificTag(TAG_PRESET_HANDLE), optpresetHandle) + } + if (systemMode.isPresent) { + val optsystemMode = systemMode.get() + put(ContextSpecificTag(TAG_SYSTEM_MODE), optsystemMode) + } + if (coolingSetpoint.isPresent) { + val optcoolingSetpoint = coolingSetpoint.get() + put(ContextSpecificTag(TAG_COOLING_SETPOINT), optcoolingSetpoint) + } + if (heatingSetpoint.isPresent) { + val optheatingSetpoint = heatingSetpoint.get() + put(ContextSpecificTag(TAG_HEATING_SETPOINT), optheatingSetpoint) + } + endStructure() + } + } + + companion object { + private const val TAG_DAY_OF_WEEK = 0 + private const val TAG_TRANSITION_TIME = 1 + private const val TAG_PRESET_HANDLE = 2 + private const val TAG_SYSTEM_MODE = 3 + private const val TAG_COOLING_SETPOINT = 4 + private const val TAG_HEATING_SETPOINT = 5 + + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThermostatClusterScheduleTransitionStruct { + tlvReader.enterStructure(tlvTag) + val dayOfWeek = tlvReader.getUInt(ContextSpecificTag(TAG_DAY_OF_WEEK)) + val transitionTime = tlvReader.getUInt(ContextSpecificTag(TAG_TRANSITION_TIME)) + val presetHandle = if (tlvReader.isNextTag(ContextSpecificTag(TAG_PRESET_HANDLE))) { + Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_PRESET_HANDLE))) + } else { + Optional.empty() + } + val systemMode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_SYSTEM_MODE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_SYSTEM_MODE))) + } else { + Optional.empty() + } + val coolingSetpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_SETPOINT))) { + Optional.of(tlvReader.getInt(ContextSpecificTag(TAG_COOLING_SETPOINT))) + } else { + Optional.empty() + } + val heatingSetpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SETPOINT))) { + Optional.of(tlvReader.getInt(ContextSpecificTag(TAG_HEATING_SETPOINT))) + } else { + Optional.empty() + } + + tlvReader.exitContainer() + + return ThermostatClusterScheduleTransitionStruct(dayOfWeek, transitionTime, presetHandle, systemMode, coolingSetpoint, heatingSetpoint) + } + } +} diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleTypeStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleTypeStruct.kt new file mode 100644 index 00000000000000..02b2c88e6c9d01 --- /dev/null +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleTypeStruct.kt @@ -0,0 +1,67 @@ +/* + * + * Copyright (c) 2023 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package chip.devicecontroller.cluster.structs + +import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag +import matter.tlv.ContextSpecificTag +import matter.tlv.Tag +import matter.tlv.TlvParsingException +import matter.tlv.TlvReader +import matter.tlv.TlvWriter + +import java.util.Optional + +class ThermostatClusterScheduleTypeStruct ( + val systemMode: UInt, + val numberOfSchedules: UInt, + val scheduleTypeFeatures: UInt) { + override fun toString(): String = buildString { + append("ThermostatClusterScheduleTypeStruct {\n") + append("\tsystemMode : $systemMode\n") + append("\tnumberOfSchedules : $numberOfSchedules\n") + append("\tscheduleTypeFeatures : $scheduleTypeFeatures\n") + append("}\n") + } + + fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { + tlvWriter.apply { + startStructure(tlvTag) + put(ContextSpecificTag(TAG_SYSTEM_MODE), systemMode) + put(ContextSpecificTag(TAG_NUMBER_OF_SCHEDULES), numberOfSchedules) + put(ContextSpecificTag(TAG_SCHEDULE_TYPE_FEATURES), scheduleTypeFeatures) + endStructure() + } + } + + companion object { + private const val TAG_SYSTEM_MODE = 0 + private const val TAG_NUMBER_OF_SCHEDULES = 1 + private const val TAG_SCHEDULE_TYPE_FEATURES = 2 + + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThermostatClusterScheduleTypeStruct { + tlvReader.enterStructure(tlvTag) + val systemMode = tlvReader.getUInt(ContextSpecificTag(TAG_SYSTEM_MODE)) + val numberOfSchedules = tlvReader.getUInt(ContextSpecificTag(TAG_NUMBER_OF_SCHEDULES)) + val scheduleTypeFeatures = tlvReader.getUInt(ContextSpecificTag(TAG_SCHEDULE_TYPE_FEATURES)) + + tlvReader.exitContainer() + + return ThermostatClusterScheduleTypeStruct(systemMode, numberOfSchedules, scheduleTypeFeatures) + } + } +} diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt new file mode 100644 index 00000000000000..f6180f0e066a89 --- /dev/null +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt @@ -0,0 +1,67 @@ +/* + * + * Copyright (c) 2023 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package chip.devicecontroller.cluster.structs + +import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag +import matter.tlv.ContextSpecificTag +import matter.tlv.Tag +import matter.tlv.TlvParsingException +import matter.tlv.TlvReader +import matter.tlv.TlvWriter + +import java.util.Optional + +class ThermostatClusterThermostatScheduleTransitionStruct ( + val transitionTime: UInt, + val heatSetpoint: Int, + val coolSetpoint: Int) { + override fun toString(): String = buildString { + append("ThermostatClusterThermostatScheduleTransitionStruct {\n") + append("\ttransitionTime : $transitionTime\n") + append("\theatSetpoint : $heatSetpoint\n") + append("\tcoolSetpoint : $coolSetpoint\n") + append("}\n") + } + + fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { + tlvWriter.apply { + startStructure(tlvTag) + put(ContextSpecificTag(TAG_TRANSITION_TIME), transitionTime) + put(ContextSpecificTag(TAG_HEAT_SETPOINT), heatSetpoint) + put(ContextSpecificTag(TAG_COOL_SETPOINT), coolSetpoint) + endStructure() + } + } + + companion object { + private const val TAG_TRANSITION_TIME = 0 + private const val TAG_HEAT_SETPOINT = 1 + private const val TAG_COOL_SETPOINT = 2 + + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThermostatClusterThermostatScheduleTransitionStruct { + tlvReader.enterStructure(tlvTag) + val transitionTime = tlvReader.getUInt(ContextSpecificTag(TAG_TRANSITION_TIME)) + val heatSetpoint = tlvReader.getInt(ContextSpecificTag(TAG_HEAT_SETPOINT)) + val coolSetpoint = tlvReader.getInt(ContextSpecificTag(TAG_COOL_SETPOINT)) + + tlvReader.exitContainer() + + return ThermostatClusterThermostatScheduleTransitionStruct(transitionTime, heatSetpoint, coolSetpoint) + } + } +} diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt index 84733d5bd9d5fc..40156c06651284 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt @@ -17,28 +17,31 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ThreadNetworkDiagnosticsClusterNeighborTableStruct( - val extAddress: ULong, - val age: ULong, - val rloc16: UInt, - val linkFrameCounter: ULong, - val mleFrameCounter: ULong, - val lqi: UInt, - val averageRssi: Int?, - val lastRssi: Int?, - val frameErrorRate: UInt, - val messageErrorRate: UInt, - val rxOnWhenIdle: Boolean, - val fullThreadDevice: Boolean, - val fullNetworkData: Boolean, - val isChild: Boolean -) { - override fun toString(): String = buildString { +import java.util.Optional + +class ThreadNetworkDiagnosticsClusterNeighborTableStruct ( + val extAddress: ULong, + val age: ULong, + val rloc16: UInt, + val linkFrameCounter: ULong, + val mleFrameCounter: ULong, + val lqi: UInt, + val averageRssi: Int?, + val lastRssi: Int?, + val frameErrorRate: UInt, + val messageErrorRate: UInt, + val rxOnWhenIdle: Boolean, + val fullThreadDevice: Boolean, + val fullNetworkData: Boolean, + val isChild: Boolean) { + override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterNeighborTableStruct {\n") append("\textAddress : $extAddress\n") append("\tage : $age\n") @@ -67,15 +70,15 @@ class ThreadNetworkDiagnosticsClusterNeighborTableStruct( put(ContextSpecificTag(TAG_MLE_FRAME_COUNTER), mleFrameCounter) put(ContextSpecificTag(TAG_LQI), lqi) if (averageRssi != null) { - put(ContextSpecificTag(TAG_AVERAGE_RSSI), averageRssi) - } else { - putNull(ContextSpecificTag(TAG_AVERAGE_RSSI)) - } + put(ContextSpecificTag(TAG_AVERAGE_RSSI), averageRssi) + } else { + putNull(ContextSpecificTag(TAG_AVERAGE_RSSI)) + } if (lastRssi != null) { - put(ContextSpecificTag(TAG_LAST_RSSI), lastRssi) - } else { - putNull(ContextSpecificTag(TAG_LAST_RSSI)) - } + put(ContextSpecificTag(TAG_LAST_RSSI), lastRssi) + } else { + putNull(ContextSpecificTag(TAG_LAST_RSSI)) + } put(ContextSpecificTag(TAG_FRAME_ERROR_RATE), frameErrorRate) put(ContextSpecificTag(TAG_MESSAGE_ERROR_RATE), messageErrorRate) put(ContextSpecificTag(TAG_RX_ON_WHEN_IDLE), rxOnWhenIdle) @@ -102,10 +105,7 @@ class ThreadNetworkDiagnosticsClusterNeighborTableStruct( private const val TAG_FULL_NETWORK_DATA = 12 private const val TAG_IS_CHILD = 13 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): ThreadNetworkDiagnosticsClusterNeighborTableStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterNeighborTableStruct { tlvReader.enterStructure(tlvTag) val extAddress = tlvReader.getULong(ContextSpecificTag(TAG_EXT_ADDRESS)) val age = tlvReader.getULong(ContextSpecificTag(TAG_AGE)) @@ -113,45 +113,28 @@ class ThreadNetworkDiagnosticsClusterNeighborTableStruct( val linkFrameCounter = tlvReader.getULong(ContextSpecificTag(TAG_LINK_FRAME_COUNTER)) val mleFrameCounter = tlvReader.getULong(ContextSpecificTag(TAG_MLE_FRAME_COUNTER)) val lqi = tlvReader.getUInt(ContextSpecificTag(TAG_LQI)) - val averageRssi = - if (!tlvReader.isNull()) { - tlvReader.getInt(ContextSpecificTag(TAG_AVERAGE_RSSI)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_AVERAGE_RSSI)) - null - } - val lastRssi = - if (!tlvReader.isNull()) { - tlvReader.getInt(ContextSpecificTag(TAG_LAST_RSSI)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_LAST_RSSI)) - null - } + val averageRssi = if (!tlvReader.isNull()) { + tlvReader.getInt(ContextSpecificTag(TAG_AVERAGE_RSSI)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_AVERAGE_RSSI)) + null + } + val lastRssi = if (!tlvReader.isNull()) { + tlvReader.getInt(ContextSpecificTag(TAG_LAST_RSSI)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_LAST_RSSI)) + null + } val frameErrorRate = tlvReader.getUInt(ContextSpecificTag(TAG_FRAME_ERROR_RATE)) val messageErrorRate = tlvReader.getUInt(ContextSpecificTag(TAG_MESSAGE_ERROR_RATE)) val rxOnWhenIdle = tlvReader.getBoolean(ContextSpecificTag(TAG_RX_ON_WHEN_IDLE)) val fullThreadDevice = tlvReader.getBoolean(ContextSpecificTag(TAG_FULL_THREAD_DEVICE)) val fullNetworkData = tlvReader.getBoolean(ContextSpecificTag(TAG_FULL_NETWORK_DATA)) val isChild = tlvReader.getBoolean(ContextSpecificTag(TAG_IS_CHILD)) - + tlvReader.exitContainer() - return ThreadNetworkDiagnosticsClusterNeighborTableStruct( - extAddress, - age, - rloc16, - linkFrameCounter, - mleFrameCounter, - lqi, - averageRssi, - lastRssi, - frameErrorRate, - messageErrorRate, - rxOnWhenIdle, - fullThreadDevice, - fullNetworkData, - isChild - ) + return ThreadNetworkDiagnosticsClusterNeighborTableStruct(extAddress, age, rloc16, linkFrameCounter, mleFrameCounter, lqi, averageRssi, lastRssi, frameErrorRate, messageErrorRate, rxOnWhenIdle, fullThreadDevice, fullNetworkData, isChild) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt index 39938fd1ee6403..b236dab6cb1906 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt @@ -17,26 +17,29 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ThreadNetworkDiagnosticsClusterOperationalDatasetComponents( - val activeTimestampPresent: Boolean, - val pendingTimestampPresent: Boolean, - val masterKeyPresent: Boolean, - val networkNamePresent: Boolean, - val extendedPanIdPresent: Boolean, - val meshLocalPrefixPresent: Boolean, - val delayPresent: Boolean, - val panIdPresent: Boolean, - val channelPresent: Boolean, - val pskcPresent: Boolean, - val securityPolicyPresent: Boolean, - val channelMaskPresent: Boolean -) { - override fun toString(): String = buildString { +import java.util.Optional + +class ThreadNetworkDiagnosticsClusterOperationalDatasetComponents ( + val activeTimestampPresent: Boolean, + val pendingTimestampPresent: Boolean, + val masterKeyPresent: Boolean, + val networkNamePresent: Boolean, + val extendedPanIdPresent: Boolean, + val meshLocalPrefixPresent: Boolean, + val delayPresent: Boolean, + val panIdPresent: Boolean, + val channelPresent: Boolean, + val pskcPresent: Boolean, + val securityPolicyPresent: Boolean, + val channelMaskPresent: Boolean) { + override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterOperationalDatasetComponents {\n") append("\tactiveTimestampPresent : $activeTimestampPresent\n") append("\tpendingTimestampPresent : $pendingTimestampPresent\n") @@ -86,45 +89,24 @@ class ThreadNetworkDiagnosticsClusterOperationalDatasetComponents( private const val TAG_SECURITY_POLICY_PRESENT = 10 private const val TAG_CHANNEL_MASK_PRESENT = 11 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): ThreadNetworkDiagnosticsClusterOperationalDatasetComponents { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterOperationalDatasetComponents { tlvReader.enterStructure(tlvTag) - val activeTimestampPresent = - tlvReader.getBoolean(ContextSpecificTag(TAG_ACTIVE_TIMESTAMP_PRESENT)) - val pendingTimestampPresent = - tlvReader.getBoolean(ContextSpecificTag(TAG_PENDING_TIMESTAMP_PRESENT)) + val activeTimestampPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_ACTIVE_TIMESTAMP_PRESENT)) + val pendingTimestampPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_PENDING_TIMESTAMP_PRESENT)) val masterKeyPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_MASTER_KEY_PRESENT)) val networkNamePresent = tlvReader.getBoolean(ContextSpecificTag(TAG_NETWORK_NAME_PRESENT)) - val extendedPanIdPresent = - tlvReader.getBoolean(ContextSpecificTag(TAG_EXTENDED_PAN_ID_PRESENT)) - val meshLocalPrefixPresent = - tlvReader.getBoolean(ContextSpecificTag(TAG_MESH_LOCAL_PREFIX_PRESENT)) + val extendedPanIdPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_EXTENDED_PAN_ID_PRESENT)) + val meshLocalPrefixPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_MESH_LOCAL_PREFIX_PRESENT)) val delayPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_DELAY_PRESENT)) val panIdPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_PAN_ID_PRESENT)) val channelPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_CHANNEL_PRESENT)) val pskcPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_PSKC_PRESENT)) - val securityPolicyPresent = - tlvReader.getBoolean(ContextSpecificTag(TAG_SECURITY_POLICY_PRESENT)) + val securityPolicyPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_SECURITY_POLICY_PRESENT)) val channelMaskPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_CHANNEL_MASK_PRESENT)) - + tlvReader.exitContainer() - return ThreadNetworkDiagnosticsClusterOperationalDatasetComponents( - activeTimestampPresent, - pendingTimestampPresent, - masterKeyPresent, - networkNamePresent, - extendedPanIdPresent, - meshLocalPrefixPresent, - delayPresent, - panIdPresent, - channelPresent, - pskcPresent, - securityPolicyPresent, - channelMaskPresent - ) + return ThreadNetworkDiagnosticsClusterOperationalDatasetComponents(activeTimestampPresent, pendingTimestampPresent, masterKeyPresent, networkNamePresent, extendedPanIdPresent, meshLocalPrefixPresent, delayPresent, panIdPresent, channelPresent, pskcPresent, securityPolicyPresent, channelMaskPresent) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt index d1bbbec7592462..3d5edad134669d 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt @@ -17,24 +17,27 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ThreadNetworkDiagnosticsClusterRouteTableStruct( - val extAddress: ULong, - val rloc16: UInt, - val routerId: UInt, - val nextHop: UInt, - val pathCost: UInt, - val LQIIn: UInt, - val LQIOut: UInt, - val age: UInt, - val allocated: Boolean, - val linkEstablished: Boolean -) { - override fun toString(): String = buildString { +import java.util.Optional + +class ThreadNetworkDiagnosticsClusterRouteTableStruct ( + val extAddress: ULong, + val rloc16: UInt, + val routerId: UInt, + val nextHop: UInt, + val pathCost: UInt, + val LQIIn: UInt, + val LQIOut: UInt, + val age: UInt, + val allocated: Boolean, + val linkEstablished: Boolean) { + override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterRouteTableStruct {\n") append("\textAddress : $extAddress\n") append("\trloc16 : $rloc16\n") @@ -78,10 +81,7 @@ class ThreadNetworkDiagnosticsClusterRouteTableStruct( private const val TAG_ALLOCATED = 8 private const val TAG_LINK_ESTABLISHED = 9 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): ThreadNetworkDiagnosticsClusterRouteTableStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterRouteTableStruct { tlvReader.enterStructure(tlvTag) val extAddress = tlvReader.getULong(ContextSpecificTag(TAG_EXT_ADDRESS)) val rloc16 = tlvReader.getUInt(ContextSpecificTag(TAG_RLOC16)) @@ -93,21 +93,10 @@ class ThreadNetworkDiagnosticsClusterRouteTableStruct( val age = tlvReader.getUInt(ContextSpecificTag(TAG_AGE)) val allocated = tlvReader.getBoolean(ContextSpecificTag(TAG_ALLOCATED)) val linkEstablished = tlvReader.getBoolean(ContextSpecificTag(TAG_LINK_ESTABLISHED)) - + tlvReader.exitContainer() - return ThreadNetworkDiagnosticsClusterRouteTableStruct( - extAddress, - rloc16, - routerId, - nextHop, - pathCost, - LQIIn, - LQIOut, - age, - allocated, - linkEstablished - ) + return ThreadNetworkDiagnosticsClusterRouteTableStruct(extAddress, rloc16, routerId, nextHop, pathCost, LQIIn, LQIOut, age, allocated, linkEstablished) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterSecurityPolicy.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterSecurityPolicy.kt index c0d8b857424511..44eec2ff64ab26 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterSecurityPolicy.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterSecurityPolicy.kt @@ -17,13 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ThreadNetworkDiagnosticsClusterSecurityPolicy(val rotationTime: UInt, val flags: UInt) { - override fun toString(): String = buildString { +import java.util.Optional + +class ThreadNetworkDiagnosticsClusterSecurityPolicy ( + val rotationTime: UInt, + val flags: UInt) { + override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterSecurityPolicy {\n") append("\trotationTime : $rotationTime\n") append("\tflags : $flags\n") @@ -43,11 +49,11 @@ class ThreadNetworkDiagnosticsClusterSecurityPolicy(val rotationTime: UInt, val private const val TAG_ROTATION_TIME = 0 private const val TAG_FLAGS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThreadNetworkDiagnosticsClusterSecurityPolicy { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterSecurityPolicy { tlvReader.enterStructure(tlvTag) val rotationTime = tlvReader.getUInt(ContextSpecificTag(TAG_ROTATION_TIME)) val flags = tlvReader.getUInt(ContextSpecificTag(TAG_FLAGS)) - + tlvReader.exitContainer() return ThreadNetworkDiagnosticsClusterSecurityPolicy(rotationTime, flags) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterDSTOffsetStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterDSTOffsetStruct.kt index 6df9767939dcef..c960f8a3d1e069 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterDSTOffsetStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterDSTOffsetStruct.kt @@ -17,17 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class TimeSynchronizationClusterDSTOffsetStruct( - val offset: Long, - val validStarting: ULong, - val validUntil: ULong? -) { - override fun toString(): String = buildString { +import java.util.Optional + +class TimeSynchronizationClusterDSTOffsetStruct ( + val offset: Long, + val validStarting: ULong, + val validUntil: ULong?) { + override fun toString(): String = buildString { append("TimeSynchronizationClusterDSTOffsetStruct {\n") append("\toffset : $offset\n") append("\tvalidStarting : $validStarting\n") @@ -41,10 +44,10 @@ class TimeSynchronizationClusterDSTOffsetStruct( put(ContextSpecificTag(TAG_OFFSET), offset) put(ContextSpecificTag(TAG_VALID_STARTING), validStarting) if (validUntil != null) { - put(ContextSpecificTag(TAG_VALID_UNTIL), validUntil) - } else { - putNull(ContextSpecificTag(TAG_VALID_UNTIL)) - } + put(ContextSpecificTag(TAG_VALID_UNTIL), validUntil) + } else { + putNull(ContextSpecificTag(TAG_VALID_UNTIL)) + } endStructure() } } @@ -54,18 +57,17 @@ class TimeSynchronizationClusterDSTOffsetStruct( private const val TAG_VALID_STARTING = 1 private const val TAG_VALID_UNTIL = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TimeSynchronizationClusterDSTOffsetStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterDSTOffsetStruct { tlvReader.enterStructure(tlvTag) val offset = tlvReader.getLong(ContextSpecificTag(TAG_OFFSET)) val validStarting = tlvReader.getULong(ContextSpecificTag(TAG_VALID_STARTING)) - val validUntil = - if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_VALID_UNTIL)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_VALID_UNTIL)) - null - } - + val validUntil = if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_VALID_UNTIL)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_VALID_UNTIL)) + null + } + tlvReader.exitContainer() return TimeSynchronizationClusterDSTOffsetStruct(offset, validStarting, validUntil) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.kt index cca59a20972c7b..956908c9cd381d 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.kt @@ -17,16 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct( - val nodeID: ULong, - val endpoint: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct ( + val nodeID: ULong, + val endpoint: UInt) { + override fun toString(): String = buildString { append("TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct {\n") append("\tnodeID : $nodeID\n") append("\tendpoint : $endpoint\n") @@ -46,14 +49,11 @@ class TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct( private const val TAG_NODE_I_D = 0 private const val TAG_ENDPOINT = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct { tlvReader.enterStructure(tlvTag) val nodeID = tlvReader.getULong(ContextSpecificTag(TAG_NODE_I_D)) val endpoint = tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT)) - + tlvReader.exitContainer() return TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct(nodeID, endpoint) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterTimeZoneStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterTimeZoneStruct.kt index 0d870bb1aa4b11..d972f05dbd528a 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterTimeZoneStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterTimeZoneStruct.kt @@ -17,18 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class TimeSynchronizationClusterTimeZoneStruct( - val offset: Long, - val validAt: ULong, - val name: Optional -) { - override fun toString(): String = buildString { +import java.util.Optional + +class TimeSynchronizationClusterTimeZoneStruct ( + val offset: Long, + val validAt: ULong, + val name: Optional) { + override fun toString(): String = buildString { append("TimeSynchronizationClusterTimeZoneStruct {\n") append("\toffset : $offset\n") append("\tvalidAt : $validAt\n") @@ -42,9 +44,9 @@ class TimeSynchronizationClusterTimeZoneStruct( put(ContextSpecificTag(TAG_OFFSET), offset) put(ContextSpecificTag(TAG_VALID_AT), validAt) if (name.isPresent) { - val optname = name.get() - put(ContextSpecificTag(TAG_NAME), optname) - } + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } endStructure() } } @@ -54,17 +56,16 @@ class TimeSynchronizationClusterTimeZoneStruct( private const val TAG_VALID_AT = 1 private const val TAG_NAME = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TimeSynchronizationClusterTimeZoneStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterTimeZoneStruct { tlvReader.enterStructure(tlvTag) val offset = tlvReader.getLong(ContextSpecificTag(TAG_OFFSET)) val validAt = tlvReader.getULong(ContextSpecificTag(TAG_VALID_AT)) - val name = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - + val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + tlvReader.exitContainer() return TimeSynchronizationClusterTimeZoneStruct(offset, validAt, name) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterTrustedTimeSourceStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterTrustedTimeSourceStruct.kt index db6786d49ee802..16685608686cb7 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterTrustedTimeSourceStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterTrustedTimeSourceStruct.kt @@ -17,17 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class TimeSynchronizationClusterTrustedTimeSourceStruct( - val fabricIndex: UInt, - val nodeID: ULong, - val endpoint: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class TimeSynchronizationClusterTrustedTimeSourceStruct ( + val fabricIndex: UInt, + val nodeID: ULong, + val endpoint: UInt) { + override fun toString(): String = buildString { append("TimeSynchronizationClusterTrustedTimeSourceStruct {\n") append("\tfabricIndex : $fabricIndex\n") append("\tnodeID : $nodeID\n") @@ -50,15 +53,12 @@ class TimeSynchronizationClusterTrustedTimeSourceStruct( private const val TAG_NODE_I_D = 1 private const val TAG_ENDPOINT = 2 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): TimeSynchronizationClusterTrustedTimeSourceStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterTrustedTimeSourceStruct { tlvReader.enterStructure(tlvTag) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) val nodeID = tlvReader.getULong(ContextSpecificTag(TAG_NODE_I_D)) val endpoint = tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT)) - + tlvReader.exitContainer() return TimeSynchronizationClusterTrustedTimeSourceStruct(fabricIndex, nodeID, endpoint) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterDoubleNestedStructList.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterDoubleNestedStructList.kt index 46ebbe20eb1528..4ae6ee1b7692ff 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterDoubleNestedStructList.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterDoubleNestedStructList.kt @@ -20,11 +20,15 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class UnitTestingClusterDoubleNestedStructList(val a: List) { - override fun toString(): String = buildString { +import java.util.Optional + +class UnitTestingClusterDoubleNestedStructList ( + val a: List) { + override fun toString(): String = buildString { append("UnitTestingClusterDoubleNestedStructList {\n") append("\ta : $a\n") append("}\n") @@ -45,17 +49,16 @@ class UnitTestingClusterDoubleNestedStructList(val a: List { - tlvReader.enterArray(ContextSpecificTag(TAG_A)) - while (!tlvReader.isEndOfContainer()) { - add(UnitTestingClusterNestedStructList.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val a = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_A)) + while(!tlvReader.isEndOfContainer()) { + add(UnitTestingClusterNestedStructList.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return UnitTestingClusterDoubleNestedStructList(a) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNestedStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNestedStruct.kt index cd2c6a5d251fe9..0a3799929a49c6 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNestedStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNestedStruct.kt @@ -17,17 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class UnitTestingClusterNestedStruct( - val a: UInt, - val b: Boolean, - val c: UnitTestingClusterSimpleStruct -) { - override fun toString(): String = buildString { +import java.util.Optional + +class UnitTestingClusterNestedStruct ( + val a: UInt, + val b: Boolean, + val c: UnitTestingClusterSimpleStruct) { + override fun toString(): String = buildString { append("UnitTestingClusterNestedStruct {\n") append("\ta : $a\n") append("\tb : $b\n") @@ -50,12 +53,12 @@ class UnitTestingClusterNestedStruct( private const val TAG_B = 1 private const val TAG_C = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterNestedStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterNestedStruct { tlvReader.enterStructure(tlvTag) val a = tlvReader.getUInt(ContextSpecificTag(TAG_A)) val b = tlvReader.getBoolean(ContextSpecificTag(TAG_B)) val c = UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_C), tlvReader) - + tlvReader.exitContainer() return UnitTestingClusterNestedStruct(a, b, c) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNestedStructList.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNestedStructList.kt index 9b32b5343204c5..425b1753d17039 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNestedStructList.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNestedStructList.kt @@ -20,19 +20,21 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class UnitTestingClusterNestedStructList( - val a: UInt, - val b: Boolean, - val c: UnitTestingClusterSimpleStruct, - val d: List, - val e: List, - val f: List, - val g: List -) { - override fun toString(): String = buildString { +import java.util.Optional + +class UnitTestingClusterNestedStructList ( + val a: UInt, + val b: Boolean, + val c: UnitTestingClusterSimpleStruct, + val d: List, + val e: List, + val f: List, + val g: List) { + override fun toString(): String = buildString { append("UnitTestingClusterNestedStructList {\n") append("\ta : $a\n") append("\tb : $b\n") @@ -83,44 +85,40 @@ class UnitTestingClusterNestedStructList( private const val TAG_F = 5 private const val TAG_G = 6 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterNestedStructList { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterNestedStructList { tlvReader.enterStructure(tlvTag) val a = tlvReader.getUInt(ContextSpecificTag(TAG_A)) val b = tlvReader.getBoolean(ContextSpecificTag(TAG_B)) val c = UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_C), tlvReader) - val d = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_D)) - while (!tlvReader.isEndOfContainer()) { - add(UnitTestingClusterSimpleStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - val e = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_E)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getULong(AnonymousTag)) - } - tlvReader.exitContainer() - } - val f = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_F)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getByteArray(AnonymousTag)) - } - tlvReader.exitContainer() - } - val g = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_G)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val d = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_D)) + while(!tlvReader.isEndOfContainer()) { + add(UnitTestingClusterSimpleStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + val e = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_E)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getULong(AnonymousTag)) + } + tlvReader.exitContainer() + } + val f = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_F)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getByteArray(AnonymousTag)) + } + tlvReader.exitContainer() + } + val g = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_G)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return UnitTestingClusterNestedStructList(a, b, c, d, e, f, g) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNullablesAndOptionalsStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNullablesAndOptionalsStruct.kt index e8f12057027054..4758e679ca22cb 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNullablesAndOptionalsStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNullablesAndOptionalsStruct.kt @@ -17,28 +17,29 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class UnitTestingClusterNullablesAndOptionalsStruct( - val nullableInt: UInt?, - val optionalInt: Optional, - val nullableOptionalInt: Optional?, - val nullableString: String?, - val optionalString: Optional, - val nullableOptionalString: Optional?, - val nullableStruct: UnitTestingClusterSimpleStruct?, - val optionalStruct: Optional, - val nullableOptionalStruct: Optional?, - val nullableList: List?, - val optionalList: Optional>, - val nullableOptionalList: Optional>? -) { - override fun toString(): String = buildString { +import java.util.Optional + +class UnitTestingClusterNullablesAndOptionalsStruct ( + val nullableInt: UInt?, + val optionalInt: Optional, + val nullableOptionalInt: Optional?, + val nullableString: String?, + val optionalString: Optional, + val nullableOptionalString: Optional?, + val nullableStruct: UnitTestingClusterSimpleStruct?, + val optionalStruct: Optional, + val nullableOptionalStruct: Optional?, + val nullableList: List?, + val optionalList: Optional>, + val nullableOptionalList: Optional>?) { + override fun toString(): String = buildString { append("UnitTestingClusterNullablesAndOptionalsStruct {\n") append("\tnullableInt : $nullableInt\n") append("\toptionalInt : $optionalInt\n") @@ -59,85 +60,85 @@ class UnitTestingClusterNullablesAndOptionalsStruct( tlvWriter.apply { startStructure(tlvTag) if (nullableInt != null) { - put(ContextSpecificTag(TAG_NULLABLE_INT), nullableInt) - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_INT)) - } + put(ContextSpecificTag(TAG_NULLABLE_INT), nullableInt) + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_INT)) + } if (optionalInt.isPresent) { - val optoptionalInt = optionalInt.get() - put(ContextSpecificTag(TAG_OPTIONAL_INT), optoptionalInt) - } + val optoptionalInt = optionalInt.get() + put(ContextSpecificTag(TAG_OPTIONAL_INT), optoptionalInt) + } if (nullableOptionalInt != null) { - if (nullableOptionalInt.isPresent) { - val optnullableOptionalInt = nullableOptionalInt.get() - put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT), optnullableOptionalInt) - } - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT)) - } + if (nullableOptionalInt.isPresent) { + val optnullableOptionalInt = nullableOptionalInt.get() + put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT), optnullableOptionalInt) + } + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT)) + } if (nullableString != null) { - put(ContextSpecificTag(TAG_NULLABLE_STRING), nullableString) - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_STRING)) - } + put(ContextSpecificTag(TAG_NULLABLE_STRING), nullableString) + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_STRING)) + } if (optionalString.isPresent) { - val optoptionalString = optionalString.get() - put(ContextSpecificTag(TAG_OPTIONAL_STRING), optoptionalString) - } + val optoptionalString = optionalString.get() + put(ContextSpecificTag(TAG_OPTIONAL_STRING), optoptionalString) + } if (nullableOptionalString != null) { - if (nullableOptionalString.isPresent) { - val optnullableOptionalString = nullableOptionalString.get() - put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING), optnullableOptionalString) - } - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING)) - } + if (nullableOptionalString.isPresent) { + val optnullableOptionalString = nullableOptionalString.get() + put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING), optnullableOptionalString) + } + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING)) + } if (nullableStruct != null) { - nullableStruct.toTlv(ContextSpecificTag(TAG_NULLABLE_STRUCT), this) - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_STRUCT)) - } + nullableStruct.toTlv(ContextSpecificTag(TAG_NULLABLE_STRUCT), this) + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_STRUCT)) + } if (optionalStruct.isPresent) { - val optoptionalStruct = optionalStruct.get() - optoptionalStruct.toTlv(ContextSpecificTag(TAG_OPTIONAL_STRUCT), this) - } + val optoptionalStruct = optionalStruct.get() + optoptionalStruct.toTlv(ContextSpecificTag(TAG_OPTIONAL_STRUCT), this) + } if (nullableOptionalStruct != null) { - if (nullableOptionalStruct.isPresent) { - val optnullableOptionalStruct = nullableOptionalStruct.get() - optnullableOptionalStruct.toTlv(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT), this) - } - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT)) - } + if (nullableOptionalStruct.isPresent) { + val optnullableOptionalStruct = nullableOptionalStruct.get() + optnullableOptionalStruct.toTlv(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT), this) + } + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT)) + } if (nullableList != null) { - startArray(ContextSpecificTag(TAG_NULLABLE_LIST)) - for (item in nullableList.iterator()) { - put(AnonymousTag, item) - } - endArray() - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_LIST)) + startArray(ContextSpecificTag(TAG_NULLABLE_LIST)) + for (item in nullableList.iterator()) { + put(AnonymousTag, item) } + endArray() + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_LIST)) + } if (optionalList.isPresent) { - val optoptionalList = optionalList.get() - startArray(ContextSpecificTag(TAG_OPTIONAL_LIST)) - for (item in optoptionalList.iterator()) { - put(AnonymousTag, item) - } - endArray() + val optoptionalList = optionalList.get() + startArray(ContextSpecificTag(TAG_OPTIONAL_LIST)) + for (item in optoptionalList.iterator()) { + put(AnonymousTag, item) } + endArray() + } if (nullableOptionalList != null) { - if (nullableOptionalList.isPresent) { - val optnullableOptionalList = nullableOptionalList.get() - startArray(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) - for (item in optnullableOptionalList.iterator()) { - put(AnonymousTag, item) - } - endArray() - } - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) + if (nullableOptionalList.isPresent) { + val optnullableOptionalList = nullableOptionalList.get() + startArray(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) + for (item in optnullableOptionalList.iterator()) { + put(AnonymousTag, item) } + endArray() + } + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) + } endStructure() } } @@ -156,153 +157,114 @@ class UnitTestingClusterNullablesAndOptionalsStruct( private const val TAG_OPTIONAL_LIST = 10 private const val TAG_NULLABLE_OPTIONAL_LIST = 11 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterNullablesAndOptionalsStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterNullablesAndOptionalsStruct { tlvReader.enterStructure(tlvTag) - val nullableInt = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_NULLABLE_INT)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_INT)) - null - } - val optionalInt = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_INT))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_OPTIONAL_INT))) - } else { - Optional.empty() - } - val nullableOptionalInt = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT)) - null - } - val nullableString = - if (!tlvReader.isNull()) { - tlvReader.getString(ContextSpecificTag(TAG_NULLABLE_STRING)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_STRING)) - null - } - val optionalString = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_STRING))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPTIONAL_STRING))) - } else { - Optional.empty() - } - val nullableOptionalString = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING)) - null - } - val nullableStruct = - if (!tlvReader.isNull()) { - UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_NULLABLE_STRUCT), tlvReader) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_STRUCT)) - null - } - val optionalStruct = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_STRUCT))) { - Optional.of( - UnitTestingClusterSimpleStruct.fromTlv( - ContextSpecificTag(TAG_OPTIONAL_STRUCT), - tlvReader - ) - ) - } else { - Optional.empty() - } - val nullableOptionalStruct = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT))) { - Optional.of( - UnitTestingClusterSimpleStruct.fromTlv( - ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT), - tlvReader - ) - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT)) - null - } - val nullableList = - if (!tlvReader.isNull()) { - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_NULLABLE_LIST)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_LIST)) - null - } - val optionalList = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_LIST))) { - Optional.of( - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_OPTIONAL_LIST)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - ) - } else { - Optional.empty() - } - val nullableOptionalList = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST))) { - Optional.of( - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) - null - } - + val nullableInt = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_NULLABLE_INT)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_INT)) + null + } + val optionalInt = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_INT))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_OPTIONAL_INT))) + } else { + Optional.empty() + } + val nullableOptionalInt = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT)) + null + } + val nullableString = if (!tlvReader.isNull()) { + tlvReader.getString(ContextSpecificTag(TAG_NULLABLE_STRING)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_STRING)) + null + } + val optionalString = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_STRING))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPTIONAL_STRING))) + } else { + Optional.empty() + } + val nullableOptionalString = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING)) + null + } + val nullableStruct = if (!tlvReader.isNull()) { + UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_NULLABLE_STRUCT), tlvReader) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_STRUCT)) + null + } + val optionalStruct = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_STRUCT))) { + Optional.of(UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_OPTIONAL_STRUCT), tlvReader)) + } else { + Optional.empty() + } + val nullableOptionalStruct = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT))) { + Optional.of(UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT), tlvReader)) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT)) + null + } + val nullableList = if (!tlvReader.isNull()) { + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_NULLABLE_LIST)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_LIST)) + null + } + val optionalList = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_LIST))) { + Optional.of(buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_OPTIONAL_LIST)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + }) + } else { + Optional.empty() + } + val nullableOptionalList = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST))) { + Optional.of(buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + }) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) + null + } + tlvReader.exitContainer() - return UnitTestingClusterNullablesAndOptionalsStruct( - nullableInt, - optionalInt, - nullableOptionalInt, - nullableString, - optionalString, - nullableOptionalString, - nullableStruct, - optionalStruct, - nullableOptionalStruct, - nullableList, - optionalList, - nullableOptionalList - ) + return UnitTestingClusterNullablesAndOptionalsStruct(nullableInt, optionalInt, nullableOptionalInt, nullableString, optionalString, nullableOptionalString, nullableStruct, optionalStruct, nullableOptionalStruct, nullableList, optionalList, nullableOptionalList) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterSimpleStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterSimpleStruct.kt index 217991a38b634a..3026a55dc4380c 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterSimpleStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterSimpleStruct.kt @@ -17,22 +17,25 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class UnitTestingClusterSimpleStruct( - val a: UInt, - val b: Boolean, - val c: UInt, - val d: ByteArray, - val e: String, - val f: UInt, - val g: Float, - val h: Double -) { - override fun toString(): String = buildString { +import java.util.Optional + +class UnitTestingClusterSimpleStruct ( + val a: UInt, + val b: Boolean, + val c: UInt, + val d: ByteArray, + val e: String, + val f: UInt, + val g: Float, + val h: Double) { + override fun toString(): String = buildString { append("UnitTestingClusterSimpleStruct {\n") append("\ta : $a\n") append("\tb : $b\n") @@ -70,7 +73,7 @@ class UnitTestingClusterSimpleStruct( private const val TAG_G = 6 private const val TAG_H = 7 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterSimpleStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterSimpleStruct { tlvReader.enterStructure(tlvTag) val a = tlvReader.getUInt(ContextSpecificTag(TAG_A)) val b = tlvReader.getBoolean(ContextSpecificTag(TAG_B)) @@ -80,7 +83,7 @@ class UnitTestingClusterSimpleStruct( val f = tlvReader.getUInt(ContextSpecificTag(TAG_F)) val g = tlvReader.getFloat(ContextSpecificTag(TAG_G)) val h = tlvReader.getDouble(ContextSpecificTag(TAG_H)) - + tlvReader.exitContainer() return UnitTestingClusterSimpleStruct(a, b, c, d, e, f, g, h) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterTestFabricScoped.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterTestFabricScoped.kt index 36da8ea1549865..22970640c5eb3c 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterTestFabricScoped.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterTestFabricScoped.kt @@ -17,24 +17,25 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import java.util.Optional import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class UnitTestingClusterTestFabricScoped( - val fabricSensitiveInt8u: UInt, - val optionalFabricSensitiveInt8u: Optional, - val nullableFabricSensitiveInt8u: UInt?, - val nullableOptionalFabricSensitiveInt8u: Optional?, - val fabricSensitiveCharString: String, - val fabricSensitiveStruct: UnitTestingClusterSimpleStruct, - val fabricSensitiveInt8uList: List, - val fabricIndex: UInt -) { - override fun toString(): String = buildString { +import java.util.Optional + +class UnitTestingClusterTestFabricScoped ( + val fabricSensitiveInt8u: UInt, + val optionalFabricSensitiveInt8u: Optional, + val nullableFabricSensitiveInt8u: UInt?, + val nullableOptionalFabricSensitiveInt8u: Optional?, + val fabricSensitiveCharString: String, + val fabricSensitiveStruct: UnitTestingClusterSimpleStruct, + val fabricSensitiveInt8uList: List, + val fabricIndex: UInt) { + override fun toString(): String = buildString { append("UnitTestingClusterTestFabricScoped {\n") append("\tfabricSensitiveInt8u : $fabricSensitiveInt8u\n") append("\toptionalFabricSensitiveInt8u : $optionalFabricSensitiveInt8u\n") @@ -52,28 +53,22 @@ class UnitTestingClusterTestFabricScoped( startStructure(tlvTag) put(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U), fabricSensitiveInt8u) if (optionalFabricSensitiveInt8u.isPresent) { - val optoptionalFabricSensitiveInt8u = optionalFabricSensitiveInt8u.get() - put( - ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U), - optoptionalFabricSensitiveInt8u - ) - } + val optoptionalFabricSensitiveInt8u = optionalFabricSensitiveInt8u.get() + put(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U), optoptionalFabricSensitiveInt8u) + } if (nullableFabricSensitiveInt8u != null) { - put(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U), nullableFabricSensitiveInt8u) - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) - } + put(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U), nullableFabricSensitiveInt8u) + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) + } if (nullableOptionalFabricSensitiveInt8u != null) { - if (nullableOptionalFabricSensitiveInt8u.isPresent) { - val optnullableOptionalFabricSensitiveInt8u = nullableOptionalFabricSensitiveInt8u.get() - put( - ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U), - optnullableOptionalFabricSensitiveInt8u - ) - } - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) - } + if (nullableOptionalFabricSensitiveInt8u.isPresent) { + val optnullableOptionalFabricSensitiveInt8u = nullableOptionalFabricSensitiveInt8u.get() + put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U), optnullableOptionalFabricSensitiveInt8u) + } + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) + } put(ContextSpecificTag(TAG_FABRIC_SENSITIVE_CHAR_STRING), fabricSensitiveCharString) fabricSensitiveStruct.toTlv(ContextSpecificTag(TAG_FABRIC_SENSITIVE_STRUCT), this) startArray(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U_LIST)) @@ -96,66 +91,44 @@ class UnitTestingClusterTestFabricScoped( private const val TAG_FABRIC_SENSITIVE_INT8U_LIST = 7 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterTestFabricScoped { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterTestFabricScoped { tlvReader.enterStructure(tlvTag) val fabricSensitiveInt8u = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U)) - val optionalFabricSensitiveInt8u = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U))) - } else { - Optional.empty() - } - val nullableFabricSensitiveInt8u = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) - null - } - val nullableOptionalFabricSensitiveInt8u = - if (!tlvReader.isNull()) { - if ( - tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) - ) { - Optional.of( - tlvReader.getUInt(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) - null - } - val fabricSensitiveCharString = - tlvReader.getString(ContextSpecificTag(TAG_FABRIC_SENSITIVE_CHAR_STRING)) - val fabricSensitiveStruct = - UnitTestingClusterSimpleStruct.fromTlv( - ContextSpecificTag(TAG_FABRIC_SENSITIVE_STRUCT), - tlvReader - ) - val fabricSensitiveInt8uList = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U_LIST)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } + val optionalFabricSensitiveInt8u = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U))) + } else { + Optional.empty() + } + val nullableFabricSensitiveInt8u = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) + null + } + val nullableOptionalFabricSensitiveInt8u = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) + null + } + val fabricSensitiveCharString = tlvReader.getString(ContextSpecificTag(TAG_FABRIC_SENSITIVE_CHAR_STRING)) + val fabricSensitiveStruct = UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_FABRIC_SENSITIVE_STRUCT), tlvReader) + val fabricSensitiveInt8uList = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U_LIST)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return UnitTestingClusterTestFabricScoped( - fabricSensitiveInt8u, - optionalFabricSensitiveInt8u, - nullableFabricSensitiveInt8u, - nullableOptionalFabricSensitiveInt8u, - fabricSensitiveCharString, - fabricSensitiveStruct, - fabricSensitiveInt8uList, - fabricIndex - ) + return UnitTestingClusterTestFabricScoped(fabricSensitiveInt8u, optionalFabricSensitiveInt8u, nullableFabricSensitiveInt8u, nullableOptionalFabricSensitiveInt8u, fabricSensitiveCharString, fabricSensitiveStruct, fabricSensitiveInt8uList, fabricIndex) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterTestListStructOctet.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterTestListStructOctet.kt index 91afedb93a404f..1f823ba5cb92f9 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterTestListStructOctet.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterTestListStructOctet.kt @@ -17,13 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class UnitTestingClusterTestListStructOctet(val member1: ULong, val member2: ByteArray) { - override fun toString(): String = buildString { +import java.util.Optional + +class UnitTestingClusterTestListStructOctet ( + val member1: ULong, + val member2: ByteArray) { + override fun toString(): String = buildString { append("UnitTestingClusterTestListStructOctet {\n") append("\tmember1 : $member1\n") append("\tmember2 : $member2\n") @@ -43,11 +49,11 @@ class UnitTestingClusterTestListStructOctet(val member1: ULong, val member2: Byt private const val TAG_MEMBER1 = 0 private const val TAG_MEMBER2 = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterTestListStructOctet { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterTestListStructOctet { tlvReader.enterStructure(tlvTag) val member1 = tlvReader.getULong(ContextSpecificTag(TAG_MEMBER1)) val member2 = tlvReader.getByteArray(ContextSpecificTag(TAG_MEMBER2)) - + tlvReader.exitContainer() return UnitTestingClusterTestListStructOctet(member1, member2) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UserLabelClusterLabelStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UserLabelClusterLabelStruct.kt index 1cfbb532f5abaf..02509a81a9dbbc 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UserLabelClusterLabelStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UserLabelClusterLabelStruct.kt @@ -17,13 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag +import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -class UserLabelClusterLabelStruct(val label: String, val value: String) { - override fun toString(): String = buildString { +import java.util.Optional + +class UserLabelClusterLabelStruct ( + val label: String, + val value: String) { + override fun toString(): String = buildString { append("UserLabelClusterLabelStruct {\n") append("\tlabel : $label\n") append("\tvalue : $value\n") @@ -43,11 +49,11 @@ class UserLabelClusterLabelStruct(val label: String, val value: String) { private const val TAG_LABEL = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UserLabelClusterLabelStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UserLabelClusterLabelStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val value = tlvReader.getString(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return UserLabelClusterLabelStruct(label, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccessControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccessControlCluster.kt index 78ee6725bb7646..33b48a8275160b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccessControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccessControlCluster.kt @@ -20,42 +20,57 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class AccessControlCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class AclAttribute(val value: List) +class AccessControlCluster(private val controller: MatterController, private val endpointId: UShort) { + class AclAttribute( + val value: List + ) - class ExtensionAttribute(val value: List?) + class ExtensionAttribute( + val value: List? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readAclAttribute(): AclAttribute { // Implementation needs to be added here } - suspend fun readAclAttributeWithFabricFilter(isFabricFiltered: Boolean): AclAttribute { + suspend fun readAclAttributeWithFabricFilter( + isFabricFiltered: Boolean + ): AclAttribute { // Implementation needs to be added here } + suspend fun writeAclAttribute( value: List, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeAclAttribute(minInterval: Int, maxInterval: Int): AclAttribute { + suspend fun subscribeAclAttribute( + minInterval: Int, + maxInterval: Int + ): AclAttribute { // Implementation needs to be added here } @@ -69,18 +84,22 @@ class AccessControlCluster( // Implementation needs to be added here } + suspend fun writeExtensionAttribute( value: List, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeExtensionAttribute(minInterval: Int, maxInterval: Int): ExtensionAttribute { + suspend fun subscribeExtensionAttribute( + minInterval: Int, + maxInterval: Int + ): ExtensionAttribute { // Implementation needs to be added here } @@ -143,7 +162,10 @@ class AccessControlCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -162,7 +184,10 @@ class AccessControlCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -170,7 +195,10 @@ class AccessControlCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccountLoginCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccountLoginCluster.kt index 32bca8bbe97d6c..7cc4aefe7bd5d7 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccountLoginCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccountLoginCluster.kt @@ -20,39 +20,43 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class AccountLoginCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class GetSetupPINResponse(val setupPIN: String) +class AccountLoginCluster(private val controller: MatterController, private val endpointId: UShort) { + class GetSetupPINResponse( + val setupPIN: String + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun getSetupPIN( - tempAccountIdentifier: String, - timedInvokeTimeoutMs: Int - ): GetSetupPINResponse { + suspend fun getSetupPIN(tempAccountIdentifier: String, timedInvokeTimeoutMs: Int): GetSetupPINResponse { val commandId = 0L - // Implementation needs to be added here + // Implementation needs to be added here } suspend fun login(tempAccountIdentifier: String, setupPIN: String, timedInvokeTimeoutMs: Int) { val commandId = 2L - // Implementation needs to be added here + // Implementation needs to be added here } suspend fun logout(timedInvokeTimeoutMs: Int) { val commandId = 3L - // Implementation needs to be added here + // Implementation needs to be added here } suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { @@ -81,7 +85,10 @@ class AccountLoginCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -100,7 +107,10 @@ class AccountLoginCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -108,7 +118,10 @@ class AccountLoginCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActionsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActionsCluster.kt index 264bde16fae360..38b03f64813377 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActionsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActionsCluster.kt @@ -21,17 +21,29 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class ActionsCluster(private val controller: MatterController, private val endpointId: UShort) { - class ActionListAttribute(val value: List) + class ActionListAttribute( + val value: List + ) - class EndpointListsAttribute(val value: List) + class EndpointListsAttribute( + val value: List + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun instantAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -40,22 +52,17 @@ class ActionsCluster(private val controller: MatterController, private val endpo // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun instantActionWithTransition( - actionID: UShort, - invokeID: UInt?, - transitionTime: UShort, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun instantActionWithTransition(actionID: UShort, invokeID: UInt?, transitionTime: UShort, timedInvokeTimeoutMs: Int? = null) { val commandId = 1L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun startAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { @@ -65,22 +72,17 @@ class ActionsCluster(private val controller: MatterController, private val endpo // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun startActionWithDuration( - actionID: UShort, - invokeID: UInt?, - duration: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun startActionWithDuration(actionID: UShort, invokeID: UInt?, duration: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 3L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun stopAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { @@ -90,7 +92,7 @@ class ActionsCluster(private val controller: MatterController, private val endpo // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun pauseAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { @@ -100,22 +102,17 @@ class ActionsCluster(private val controller: MatterController, private val endpo // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun pauseActionWithDuration( - actionID: UShort, - invokeID: UInt?, - duration: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun pauseActionWithDuration(actionID: UShort, invokeID: UInt?, duration: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 6L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun resumeAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { @@ -125,7 +122,7 @@ class ActionsCluster(private val controller: MatterController, private val endpo // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun enableAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { @@ -135,22 +132,17 @@ class ActionsCluster(private val controller: MatterController, private val endpo // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun enableActionWithDuration( - actionID: UShort, - invokeID: UInt?, - duration: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun enableActionWithDuration(actionID: UShort, invokeID: UInt?, duration: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 9L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun disableAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { @@ -160,22 +152,17 @@ class ActionsCluster(private val controller: MatterController, private val endpo // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun disableActionWithDuration( - actionID: UShort, - invokeID: UInt?, - duration: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun disableActionWithDuration(actionID: UShort, invokeID: UInt?, duration: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 11L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readActionListAttribute(): ActionListAttribute { @@ -204,7 +191,10 @@ class ActionsCluster(private val controller: MatterController, private val endpo // Implementation needs to be added here } - suspend fun subscribeSetupURLAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeSetupURLAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -234,7 +224,10 @@ class ActionsCluster(private val controller: MatterController, private val endpo // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -253,7 +246,10 @@ class ActionsCluster(private val controller: MatterController, private val endpo // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -261,7 +257,10 @@ class ActionsCluster(private val controller: MatterController, private val endpo // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActivatedCarbonFilterMonitoringCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActivatedCarbonFilterMonitoringCluster.kt index 9b128e71667096..4b33dedad9432e 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActivatedCarbonFilterMonitoringCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActivatedCarbonFilterMonitoringCluster.kt @@ -20,23 +20,30 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class ActivatedCarbonFilterMonitoringCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class LastChangedTimeAttribute(val value: UInt?) +class ActivatedCarbonFilterMonitoringCluster(private val controller: MatterController, private val endpointId: UShort) { + class LastChangedTimeAttribute( + val value: UInt? + ) class ReplacementProductListAttribute( val value: List? ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun resetCondition(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -45,14 +52,17 @@ class ActivatedCarbonFilterMonitoringCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readConditionAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeConditionAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeConditionAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -60,7 +70,10 @@ class ActivatedCarbonFilterMonitoringCluster( // Implementation needs to be added here } - suspend fun subscribeDegradationDirectionAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeDegradationDirectionAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -68,7 +81,10 @@ class ActivatedCarbonFilterMonitoringCluster( // Implementation needs to be added here } - suspend fun subscribeChangeIndicationAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeChangeIndicationAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -76,7 +92,10 @@ class ActivatedCarbonFilterMonitoringCluster( // Implementation needs to be added here } - suspend fun subscribeInPlaceIndicatorAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeInPlaceIndicatorAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -84,12 +103,15 @@ class ActivatedCarbonFilterMonitoringCluster( // Implementation needs to be added here } - suspend fun writeLastChangedTimeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeLastChangedTimeAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeLastChangedTimeAttribute( @@ -136,7 +158,10 @@ class ActivatedCarbonFilterMonitoringCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -155,7 +180,10 @@ class ActivatedCarbonFilterMonitoringCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -163,7 +191,10 @@ class ActivatedCarbonFilterMonitoringCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AdministratorCommissioningCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AdministratorCommissioningCluster.kt index fa3698f95ac7e6..dbc01d4b3ead6b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AdministratorCommissioningCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AdministratorCommissioningCluster.kt @@ -20,55 +20,57 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class AdministratorCommissioningCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class AdminFabricIndexAttribute(val value: UByte?) +class AdministratorCommissioningCluster(private val controller: MatterController, private val endpointId: UShort) { + class AdminFabricIndexAttribute( + val value: UByte? + ) - class AdminVendorIdAttribute(val value: UShort?) + class AdminVendorIdAttribute( + val value: UShort? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun openCommissioningWindow( - commissioningTimeout: UShort, - PAKEPasscodeVerifier: ByteArray, - discriminator: UShort, - iterations: UInt, - salt: ByteArray, - timedInvokeTimeoutMs: Int - ) { + suspend fun openCommissioningWindow(commissioningTimeout: UShort, PAKEPasscodeVerifier: ByteArray, discriminator: UShort, iterations: UInt, salt: ByteArray, timedInvokeTimeoutMs: Int) { val commandId = 0L - // Implementation needs to be added here + // Implementation needs to be added here } - suspend fun openBasicCommissioningWindow( - commissioningTimeout: UShort, - timedInvokeTimeoutMs: Int - ) { + suspend fun openBasicCommissioningWindow(commissioningTimeout: UShort, timedInvokeTimeoutMs: Int) { val commandId = 1L - // Implementation needs to be added here + // Implementation needs to be added here } suspend fun revokeCommissioning(timedInvokeTimeoutMs: Int) { val commandId = 2L - // Implementation needs to be added here + // Implementation needs to be added here } suspend fun readWindowStatusAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeWindowStatusAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeWindowStatusAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -120,7 +122,10 @@ class AdministratorCommissioningCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -139,7 +144,10 @@ class AdministratorCommissioningCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -147,7 +155,10 @@ class AdministratorCommissioningCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AirQualityCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AirQualityCluster.kt index 6355856efbd286..ba3aa58a547d79 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AirQualityCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AirQualityCluster.kt @@ -21,19 +21,30 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class AirQualityCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readAirQualityAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeAirQualityAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeAirQualityAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -63,7 +74,10 @@ class AirQualityCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -82,7 +96,10 @@ class AirQualityCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -90,7 +107,10 @@ class AirQualityCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationBasicCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationBasicCluster.kt index 58b400775a3fea..f8adac86886a65 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationBasicCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationBasicCluster.kt @@ -20,27 +20,39 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class ApplicationBasicCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class ApplicationAttribute(val value: ApplicationBasicClusterApplicationStruct) +class ApplicationBasicCluster(private val controller: MatterController, private val endpointId: UShort) { + class ApplicationAttribute( + val value: ApplicationBasicClusterApplicationStruct + ) - class AllowedVendorListAttribute(val value: List) + class AllowedVendorListAttribute( + val value: List + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readVendorNameAttribute(): CharString { // Implementation needs to be added here } - suspend fun subscribeVendorNameAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeVendorNameAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -48,7 +60,10 @@ class ApplicationBasicCluster( // Implementation needs to be added here } - suspend fun subscribeVendorIDAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeVendorIDAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -56,7 +71,10 @@ class ApplicationBasicCluster( // Implementation needs to be added here } - suspend fun subscribeApplicationNameAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeApplicationNameAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -64,7 +82,10 @@ class ApplicationBasicCluster( // Implementation needs to be added here } - suspend fun subscribeProductIDAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeProductIDAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -83,7 +104,10 @@ class ApplicationBasicCluster( // Implementation needs to be added here } - suspend fun subscribeStatusAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeStatusAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -91,7 +115,10 @@ class ApplicationBasicCluster( // Implementation needs to be added here } - suspend fun subscribeApplicationVersionAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeApplicationVersionAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -132,7 +159,10 @@ class ApplicationBasicCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -151,7 +181,10 @@ class ApplicationBasicCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -159,7 +192,10 @@ class ApplicationBasicCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationLauncherCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationLauncherCluster.kt index cd1fb69aa46af3..8c00be0712a94c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationLauncherCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationLauncherCluster.kt @@ -20,62 +20,64 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class ApplicationLauncherCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class LauncherResponse(val status: UInt, val data: ByteArray?) +class ApplicationLauncherCluster(private val controller: MatterController, private val endpointId: UShort) { + class LauncherResponse( + val status: UInt, + val data: ByteArray? + ) - class CatalogListAttribute(val value: List?) + class CatalogListAttribute( + val value: List? + ) - class CurrentAppAttribute(val value: ApplicationLauncherClusterApplicationEPStruct?) + class CurrentAppAttribute( + val value: ApplicationLauncherClusterApplicationEPStruct? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun launchApp( - application: ApplicationLauncherClusterApplicationStruct?, - data: ByteArray?, - timedInvokeTimeoutMs: Int? = null - ): LauncherResponse { + suspend fun launchApp(application: ApplicationLauncherClusterApplicationStruct?, data: ByteArray?, timedInvokeTimeoutMs: Int? = null): LauncherResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun stopApp( - application: ApplicationLauncherClusterApplicationStruct?, - timedInvokeTimeoutMs: Int? = null - ): LauncherResponse { + suspend fun stopApp(application: ApplicationLauncherClusterApplicationStruct?, timedInvokeTimeoutMs: Int? = null): LauncherResponse { val commandId = 1L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun hideApp( - application: ApplicationLauncherClusterApplicationStruct?, - timedInvokeTimeoutMs: Int? = null - ): LauncherResponse { + suspend fun hideApp(application: ApplicationLauncherClusterApplicationStruct?, timedInvokeTimeoutMs: Int? = null): LauncherResponse { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readCatalogListAttribute(): CatalogListAttribute { @@ -126,7 +128,10 @@ class ApplicationLauncherCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -145,7 +150,10 @@ class ApplicationLauncherCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -153,7 +161,10 @@ class ApplicationLauncherCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AudioOutputCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AudioOutputCluster.kt index e90ee1bd52ce00..a73cb03731de24 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AudioOutputCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AudioOutputCluster.kt @@ -21,15 +21,25 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class AudioOutputCluster(private val controller: MatterController, private val endpointId: UShort) { - class OutputListAttribute(val value: List) + class OutputListAttribute( + val value: List + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun selectOutput(index: UByte, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -38,7 +48,7 @@ class AudioOutputCluster(private val controller: MatterController, private val e // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun renameOutput(index: UByte, name: String, timedInvokeTimeoutMs: Int? = null) { @@ -48,7 +58,7 @@ class AudioOutputCluster(private val controller: MatterController, private val e // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readOutputListAttribute(): OutputListAttribute { @@ -66,7 +76,10 @@ class AudioOutputCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeCurrentOutputAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeCurrentOutputAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -96,7 +109,10 @@ class AudioOutputCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -115,7 +131,10 @@ class AudioOutputCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -123,7 +142,10 @@ class AudioOutputCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BallastConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BallastConfigurationCluster.kt index c3a9d6c78807eb..2f135199ca213d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BallastConfigurationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BallastConfigurationCluster.kt @@ -20,33 +20,51 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class BallastConfigurationCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class IntrinsicBallastFactorAttribute(val value: UByte?) +class BallastConfigurationCluster(private val controller: MatterController, private val endpointId: UShort) { + class IntrinsicBallastFactorAttribute( + val value: UByte? + ) - class BallastFactorAdjustmentAttribute(val value: UByte?) + class BallastFactorAdjustmentAttribute( + val value: UByte? + ) - class LampRatedHoursAttribute(val value: UInt?) + class LampRatedHoursAttribute( + val value: UInt? + ) - class LampBurnHoursAttribute(val value: UInt?) + class LampBurnHoursAttribute( + val value: UInt? + ) - class LampBurnHoursTripPointAttribute(val value: UInt?) + class LampBurnHoursTripPointAttribute( + val value: UInt? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readPhysicalMinLevelAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribePhysicalMinLevelAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribePhysicalMinLevelAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -54,7 +72,10 @@ class BallastConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribePhysicalMaxLevelAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribePhysicalMaxLevelAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -62,7 +83,10 @@ class BallastConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribeBallastStatusAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeBallastStatusAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -70,15 +94,21 @@ class BallastConfigurationCluster( // Implementation needs to be added here } - suspend fun writeMinLevelAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeMinLevelAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeMinLevelAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMinLevelAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -86,15 +116,21 @@ class BallastConfigurationCluster( // Implementation needs to be added here } - suspend fun writeMaxLevelAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeMaxLevelAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeMaxLevelAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMaxLevelAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -102,12 +138,15 @@ class BallastConfigurationCluster( // Implementation needs to be added here } - suspend fun writeIntrinsicBallastFactorAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeIntrinsicBallastFactorAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeIntrinsicBallastFactorAttribute( @@ -123,13 +162,13 @@ class BallastConfigurationCluster( suspend fun writeBallastFactorAdjustmentAttribute( value: UByte, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeBallastFactorAdjustmentAttribute( @@ -143,7 +182,10 @@ class BallastConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribeLampQuantityAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeLampQuantityAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -151,15 +193,21 @@ class BallastConfigurationCluster( // Implementation needs to be added here } - suspend fun writeLampTypeAttribute(value: String, timedWriteTimeoutMs: Int? = null) { + suspend fun writeLampTypeAttribute( + value: String, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeLampTypeAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeLampTypeAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -167,15 +215,21 @@ class BallastConfigurationCluster( // Implementation needs to be added here } - suspend fun writeLampManufacturerAttribute(value: String, timedWriteTimeoutMs: Int? = null) { + suspend fun writeLampManufacturerAttribute( + value: String, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeLampManufacturerAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeLampManufacturerAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -183,12 +237,15 @@ class BallastConfigurationCluster( // Implementation needs to be added here } - suspend fun writeLampRatedHoursAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeLampRatedHoursAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeLampRatedHoursAttribute( @@ -202,12 +259,15 @@ class BallastConfigurationCluster( // Implementation needs to be added here } - suspend fun writeLampBurnHoursAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeLampBurnHoursAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeLampBurnHoursAttribute( @@ -221,15 +281,21 @@ class BallastConfigurationCluster( // Implementation needs to be added here } - suspend fun writeLampAlarmModeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeLampAlarmModeAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeLampAlarmModeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeLampAlarmModeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -237,12 +303,15 @@ class BallastConfigurationCluster( // Implementation needs to be added here } - suspend fun writeLampBurnHoursTripPointAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeLampBurnHoursTripPointAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeLampBurnHoursTripPointAttribute( @@ -278,7 +347,10 @@ class BallastConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -297,7 +369,10 @@ class BallastConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -305,7 +380,10 @@ class BallastConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BarrierControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BarrierControlCluster.kt index e3446f20394a8e..990fe317baa7a6 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BarrierControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BarrierControlCluster.kt @@ -20,17 +20,22 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class BarrierControlCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class GeneratedCommandListAttribute(val value: List) +class BarrierControlCluster(private val controller: MatterController, private val endpointId: UShort) { + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun barrierControlGoToPercent(percentOpen: UByte, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -39,7 +44,7 @@ class BarrierControlCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun barrierControlStop(timedInvokeTimeoutMs: Int? = null) { @@ -49,14 +54,17 @@ class BarrierControlCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readBarrierMovingStateAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeBarrierMovingStateAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeBarrierMovingStateAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -64,7 +72,10 @@ class BarrierControlCluster( // Implementation needs to be added here } - suspend fun subscribeBarrierSafetyStatusAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeBarrierSafetyStatusAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -72,7 +83,10 @@ class BarrierControlCluster( // Implementation needs to be added here } - suspend fun subscribeBarrierCapabilitiesAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeBarrierCapabilitiesAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -80,15 +94,21 @@ class BarrierControlCluster( // Implementation needs to be added here } - suspend fun writeBarrierOpenEventsAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeBarrierOpenEventsAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeBarrierOpenEventsAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeBarrierOpenEventsAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -96,15 +116,21 @@ class BarrierControlCluster( // Implementation needs to be added here } - suspend fun writeBarrierCloseEventsAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeBarrierCloseEventsAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeBarrierCloseEventsAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeBarrierCloseEventsAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -114,13 +140,13 @@ class BarrierControlCluster( suspend fun writeBarrierCommandOpenEventsAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeBarrierCommandOpenEventsAttribute( @@ -136,13 +162,13 @@ class BarrierControlCluster( suspend fun writeBarrierCommandCloseEventsAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeBarrierCommandCloseEventsAttribute( @@ -156,15 +182,21 @@ class BarrierControlCluster( // Implementation needs to be added here } - suspend fun writeBarrierOpenPeriodAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeBarrierOpenPeriodAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeBarrierOpenPeriodAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeBarrierOpenPeriodAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -172,15 +204,21 @@ class BarrierControlCluster( // Implementation needs to be added here } - suspend fun writeBarrierClosePeriodAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeBarrierClosePeriodAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeBarrierClosePeriodAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeBarrierClosePeriodAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -188,7 +226,10 @@ class BarrierControlCluster( // Implementation needs to be added here } - suspend fun subscribeBarrierPositionAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeBarrierPositionAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -218,7 +259,10 @@ class BarrierControlCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -237,7 +281,10 @@ class BarrierControlCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -245,7 +292,10 @@ class BarrierControlCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BasicInformationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BasicInformationCluster.kt index 9cfb4657ad3cc0..cfd2e2517b7ca7 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BasicInformationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BasicInformationCluster.kt @@ -20,21 +20,30 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class BasicInformationCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class CapabilityMinimaAttribute(val value: BasicInformationClusterCapabilityMinimaStruct) +class BasicInformationCluster(private val controller: MatterController, private val endpointId: UShort) { + class CapabilityMinimaAttribute( + val value: BasicInformationClusterCapabilityMinimaStruct + ) - class ProductAppearanceAttribute(val value: BasicInformationClusterProductAppearanceStruct?) + class ProductAppearanceAttribute( + val value: BasicInformationClusterProductAppearanceStruct? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun mfgSpecificPing(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -43,14 +52,17 @@ class BasicInformationCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readDataModelRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeDataModelRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeDataModelRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -58,7 +70,10 @@ class BasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeVendorNameAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeVendorNameAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -66,7 +81,10 @@ class BasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeVendorIDAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeVendorIDAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -74,7 +92,10 @@ class BasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeProductNameAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeProductNameAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -82,7 +103,10 @@ class BasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeProductIDAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeProductIDAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -90,15 +114,21 @@ class BasicInformationCluster( // Implementation needs to be added here } - suspend fun writeNodeLabelAttribute(value: String, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNodeLabelAttribute( + value: String, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeNodeLabelAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeNodeLabelAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -106,15 +136,21 @@ class BasicInformationCluster( // Implementation needs to be added here } - suspend fun writeLocationAttribute(value: String, timedWriteTimeoutMs: Int? = null) { + suspend fun writeLocationAttribute( + value: String, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeLocationAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeLocationAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -122,7 +158,10 @@ class BasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeHardwareVersionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeHardwareVersionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -141,7 +180,10 @@ class BasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeSoftwareVersionAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeSoftwareVersionAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -160,7 +202,10 @@ class BasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeManufacturingDateAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeManufacturingDateAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -168,7 +213,10 @@ class BasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribePartNumberAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribePartNumberAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -176,7 +224,10 @@ class BasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeProductURLAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeProductURLAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -184,7 +235,10 @@ class BasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeProductLabelAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeProductLabelAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -192,7 +246,10 @@ class BasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeSerialNumberAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeSerialNumberAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -200,15 +257,21 @@ class BasicInformationCluster( // Implementation needs to be added here } - suspend fun writeLocalConfigDisabledAttribute(value: Boolean, timedWriteTimeoutMs: Int? = null) { + suspend fun writeLocalConfigDisabledAttribute( + value: Boolean, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeLocalConfigDisabledAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeLocalConfigDisabledAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -216,7 +279,10 @@ class BasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeReachableAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeReachableAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -224,7 +290,10 @@ class BasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeUniqueIDAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeUniqueIDAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -254,7 +323,10 @@ class BasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeSpecificationVersionAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeSpecificationVersionAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -262,7 +334,10 @@ class BasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeMaxPathsPerInvokeAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeMaxPathsPerInvokeAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -292,7 +367,10 @@ class BasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -311,7 +389,10 @@ class BasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -319,7 +400,10 @@ class BasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BinaryInputBasicCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BinaryInputBasicCluster.kt index a8da4754e7748f..1f1ef730adfcd1 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BinaryInputBasicCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BinaryInputBasicCluster.kt @@ -20,31 +20,42 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class BinaryInputBasicCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class GeneratedCommandListAttribute(val value: List) +class BinaryInputBasicCluster(private val controller: MatterController, private val endpointId: UShort) { + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readActiveTextAttribute(): CharString { // Implementation needs to be added here } - suspend fun writeActiveTextAttribute(value: String, timedWriteTimeoutMs: Int? = null) { + suspend fun writeActiveTextAttribute( + value: String, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeActiveTextAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeActiveTextAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -52,15 +63,21 @@ class BinaryInputBasicCluster( // Implementation needs to be added here } - suspend fun writeDescriptionAttribute(value: String, timedWriteTimeoutMs: Int? = null) { + suspend fun writeDescriptionAttribute( + value: String, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeDescriptionAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeDescriptionAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -68,15 +85,21 @@ class BinaryInputBasicCluster( // Implementation needs to be added here } - suspend fun writeInactiveTextAttribute(value: String, timedWriteTimeoutMs: Int? = null) { + suspend fun writeInactiveTextAttribute( + value: String, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInactiveTextAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeInactiveTextAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -84,15 +107,21 @@ class BinaryInputBasicCluster( // Implementation needs to be added here } - suspend fun writeOutOfServiceAttribute(value: Boolean, timedWriteTimeoutMs: Int? = null) { + suspend fun writeOutOfServiceAttribute( + value: Boolean, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOutOfServiceAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeOutOfServiceAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -100,7 +129,10 @@ class BinaryInputBasicCluster( // Implementation needs to be added here } - suspend fun subscribePolarityAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribePolarityAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -108,15 +140,21 @@ class BinaryInputBasicCluster( // Implementation needs to be added here } - suspend fun writePresentValueAttribute(value: Boolean, timedWriteTimeoutMs: Int? = null) { + suspend fun writePresentValueAttribute( + value: Boolean, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribePresentValueAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribePresentValueAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -124,15 +162,21 @@ class BinaryInputBasicCluster( // Implementation needs to be added here } - suspend fun writeReliabilityAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeReliabilityAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeReliabilityAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeReliabilityAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -140,7 +184,10 @@ class BinaryInputBasicCluster( // Implementation needs to be added here } - suspend fun subscribeStatusFlagsAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeStatusFlagsAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -148,7 +195,10 @@ class BinaryInputBasicCluster( // Implementation needs to be added here } - suspend fun subscribeApplicationTypeAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeApplicationTypeAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -178,7 +228,10 @@ class BinaryInputBasicCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -197,7 +250,10 @@ class BinaryInputBasicCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -205,7 +261,10 @@ class BinaryInputBasicCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BindingCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BindingCluster.kt index 824522c0a95f7d..4f56788097ff7d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BindingCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BindingCluster.kt @@ -21,36 +21,52 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class BindingCluster(private val controller: MatterController, private val endpointId: UShort) { - class BindingAttribute(val value: List) + class BindingAttribute( + val value: List + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readBindingAttribute(): BindingAttribute { // Implementation needs to be added here } - suspend fun readBindingAttributeWithFabricFilter(isFabricFiltered: Boolean): BindingAttribute { + suspend fun readBindingAttributeWithFabricFilter( + isFabricFiltered: Boolean + ): BindingAttribute { // Implementation needs to be added here } + suspend fun writeBindingAttribute( value: List, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeBindingAttribute(minInterval: Int, maxInterval: Int): BindingAttribute { + suspend fun subscribeBindingAttribute( + minInterval: Int, + maxInterval: Int + ): BindingAttribute { // Implementation needs to be added here } @@ -80,7 +96,10 @@ class BindingCluster(private val controller: MatterController, private val endpo // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -99,7 +118,10 @@ class BindingCluster(private val controller: MatterController, private val endpo // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -107,7 +129,10 @@ class BindingCluster(private val controller: MatterController, private val endpo // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanSensorConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanSensorConfigurationCluster.kt index 068aa709815206..6f8aacc11e2394 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanSensorConfigurationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanSensorConfigurationCluster.kt @@ -20,17 +20,22 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class BooleanSensorConfigurationCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class GeneratedCommandListAttribute(val value: List) +class BooleanSensorConfigurationCluster(private val controller: MatterController, private val endpointId: UShort) { + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun suppressRequest(alarmsToSuppress: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -39,22 +44,28 @@ class BooleanSensorConfigurationCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readSensitivityLevelAttribute(): UByte { // Implementation needs to be added here } - suspend fun writeSensitivityLevelAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeSensitivityLevelAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeSensitivityLevelAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeSensitivityLevelAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -62,7 +73,10 @@ class BooleanSensorConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribeAlarmsActiveAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeAlarmsActiveAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -70,7 +84,10 @@ class BooleanSensorConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribeAlarmsSuppressedAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeAlarmsSuppressedAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -78,15 +95,21 @@ class BooleanSensorConfigurationCluster( // Implementation needs to be added here } - suspend fun writeAlarmsEnabledAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeAlarmsEnabledAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeAlarmsEnabledAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeAlarmsEnabledAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -116,7 +139,10 @@ class BooleanSensorConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -135,7 +161,10 @@ class BooleanSensorConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -143,7 +172,10 @@ class BooleanSensorConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanStateCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanStateCluster.kt index f8b8fa301c2ee1..ec04ce9e691239 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanStateCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanStateCluster.kt @@ -20,23 +20,31 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class BooleanStateCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class GeneratedCommandListAttribute(val value: List) +class BooleanStateCluster(private val controller: MatterController, private val endpointId: UShort) { + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readStateValueAttribute(): Boolean { // Implementation needs to be added here } - suspend fun subscribeStateValueAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeStateValueAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -66,7 +74,10 @@ class BooleanStateCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -85,7 +96,10 @@ class BooleanStateCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -93,7 +107,10 @@ class BooleanStateCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BridgedDeviceBasicInformationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BridgedDeviceBasicInformationCluster.kt index 6f16251fb84c31..c4ca1b7c339e70 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BridgedDeviceBasicInformationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BridgedDeviceBasicInformationCluster.kt @@ -20,27 +20,35 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class BridgedDeviceBasicInformationCluster( - private val controller: MatterController, - private val endpointId: UShort -) { +class BridgedDeviceBasicInformationCluster(private val controller: MatterController, private val endpointId: UShort) { class ProductAppearanceAttribute( val value: BridgedDeviceBasicInformationClusterProductAppearanceStruct? ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readVendorNameAttribute(): CharString { // Implementation needs to be added here } - suspend fun subscribeVendorNameAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeVendorNameAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -48,7 +56,10 @@ class BridgedDeviceBasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeVendorIDAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeVendorIDAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -56,7 +67,10 @@ class BridgedDeviceBasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeProductNameAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeProductNameAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -64,15 +78,21 @@ class BridgedDeviceBasicInformationCluster( // Implementation needs to be added here } - suspend fun writeNodeLabelAttribute(value: String, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNodeLabelAttribute( + value: String, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeNodeLabelAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeNodeLabelAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -80,7 +100,10 @@ class BridgedDeviceBasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeHardwareVersionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeHardwareVersionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -99,7 +122,10 @@ class BridgedDeviceBasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeSoftwareVersionAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeSoftwareVersionAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -118,7 +144,10 @@ class BridgedDeviceBasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeManufacturingDateAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeManufacturingDateAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -126,7 +155,10 @@ class BridgedDeviceBasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribePartNumberAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribePartNumberAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -134,7 +166,10 @@ class BridgedDeviceBasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeProductURLAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeProductURLAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -142,7 +177,10 @@ class BridgedDeviceBasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeProductLabelAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeProductLabelAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -150,7 +188,10 @@ class BridgedDeviceBasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeSerialNumberAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeSerialNumberAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -158,7 +199,10 @@ class BridgedDeviceBasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeReachableAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeReachableAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -166,7 +210,10 @@ class BridgedDeviceBasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeUniqueIDAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeUniqueIDAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -207,7 +254,10 @@ class BridgedDeviceBasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -226,7 +276,10 @@ class BridgedDeviceBasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -234,7 +287,10 @@ class BridgedDeviceBasicInformationCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonDioxideConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonDioxideConcentrationMeasurementCluster.kt index 9586beac02dbcc..384bf228b15e11 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonDioxideConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonDioxideConcentrationMeasurementCluster.kt @@ -20,27 +20,42 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class CarbonDioxideConcentrationMeasurementCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class MeasuredValueAttribute(val value: Float?) +class CarbonDioxideConcentrationMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { + class MeasuredValueAttribute( + val value: Float? + ) - class MinMeasuredValueAttribute(val value: Float?) + class MinMeasuredValueAttribute( + val value: Float? + ) - class MaxMeasuredValueAttribute(val value: Float?) + class MaxMeasuredValueAttribute( + val value: Float? + ) - class PeakMeasuredValueAttribute(val value: Float?) + class PeakMeasuredValueAttribute( + val value: Float? + ) - class AverageMeasuredValueAttribute(val value: Float?) + class AverageMeasuredValueAttribute( + val value: Float? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -90,7 +105,10 @@ class CarbonDioxideConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -120,7 +138,10 @@ class CarbonDioxideConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { + suspend fun subscribeUncertaintyAttribute( + minInterval: Int, + maxInterval: Int + ): Float { // Implementation needs to be added here } @@ -128,7 +149,10 @@ class CarbonDioxideConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMeasurementUnitAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -136,7 +160,10 @@ class CarbonDioxideConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMeasurementMediumAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -144,7 +171,10 @@ class CarbonDioxideConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeLevelValueAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -174,7 +204,10 @@ class CarbonDioxideConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -193,7 +226,10 @@ class CarbonDioxideConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -201,7 +237,10 @@ class CarbonDioxideConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonMonoxideConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonMonoxideConcentrationMeasurementCluster.kt index fdb299760ce83a..16f29e69d46764 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonMonoxideConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonMonoxideConcentrationMeasurementCluster.kt @@ -20,27 +20,42 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class CarbonMonoxideConcentrationMeasurementCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class MeasuredValueAttribute(val value: Float?) +class CarbonMonoxideConcentrationMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { + class MeasuredValueAttribute( + val value: Float? + ) - class MinMeasuredValueAttribute(val value: Float?) + class MinMeasuredValueAttribute( + val value: Float? + ) - class MaxMeasuredValueAttribute(val value: Float?) + class MaxMeasuredValueAttribute( + val value: Float? + ) - class PeakMeasuredValueAttribute(val value: Float?) + class PeakMeasuredValueAttribute( + val value: Float? + ) - class AverageMeasuredValueAttribute(val value: Float?) + class AverageMeasuredValueAttribute( + val value: Float? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -90,7 +105,10 @@ class CarbonMonoxideConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -120,7 +138,10 @@ class CarbonMonoxideConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { + suspend fun subscribeUncertaintyAttribute( + minInterval: Int, + maxInterval: Int + ): Float { // Implementation needs to be added here } @@ -128,7 +149,10 @@ class CarbonMonoxideConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMeasurementUnitAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -136,7 +160,10 @@ class CarbonMonoxideConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMeasurementMediumAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -144,7 +171,10 @@ class CarbonMonoxideConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeLevelValueAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -174,7 +204,10 @@ class CarbonMonoxideConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -193,7 +226,10 @@ class CarbonMonoxideConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -201,7 +237,10 @@ class CarbonMonoxideConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ChannelCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ChannelCluster.kt index 70cda55af0e17c..6e2c43f24a6762 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ChannelCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ChannelCluster.kt @@ -21,47 +21,57 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class ChannelCluster(private val controller: MatterController, private val endpointId: UShort) { - class ChangeChannelResponse(val status: UInt, val data: String?) + class ChangeChannelResponse( + val status: UInt, + val data: String? + ) - class ChannelListAttribute(val value: List?) + class ChannelListAttribute( + val value: List? + ) - class LineupAttribute(val value: ChannelClusterLineupInfoStruct?) + class LineupAttribute( + val value: ChannelClusterLineupInfoStruct? + ) - class CurrentChannelAttribute(val value: ChannelClusterChannelInfoStruct?) + class CurrentChannelAttribute( + val value: ChannelClusterChannelInfoStruct? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun changeChannel( - match: String, - timedInvokeTimeoutMs: Int? = null - ): ChangeChannelResponse { + suspend fun changeChannel(match: String, timedInvokeTimeoutMs: Int? = null): ChangeChannelResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun changeChannelByNumber( - majorNumber: UShort, - minorNumber: UShort, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun changeChannelByNumber(majorNumber: UShort, minorNumber: UShort, timedInvokeTimeoutMs: Int? = null) { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun skipChannel(count: Short, timedInvokeTimeoutMs: Int? = null) { @@ -71,7 +81,7 @@ class ChannelCluster(private val controller: MatterController, private val endpo // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readChannelListAttribute(): ChannelListAttribute { @@ -89,7 +99,10 @@ class ChannelCluster(private val controller: MatterController, private val endpo // Implementation needs to be added here } - suspend fun subscribeLineupAttribute(minInterval: Int, maxInterval: Int): LineupAttribute { + suspend fun subscribeLineupAttribute( + minInterval: Int, + maxInterval: Int + ): LineupAttribute { // Implementation needs to be added here } @@ -130,7 +143,10 @@ class ChannelCluster(private val controller: MatterController, private val endpo // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -149,7 +165,10 @@ class ChannelCluster(private val controller: MatterController, private val endpo // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -157,7 +176,10 @@ class ChannelCluster(private val controller: MatterController, private val endpo // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ColorControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ColorControlCluster.kt index 1f30a7e219f96f..840c7bb561504b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ColorControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ColorControlCluster.kt @@ -20,364 +20,265 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class ColorControlCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class NumberOfPrimariesAttribute(val value: UByte?) +class ColorControlCluster(private val controller: MatterController, private val endpointId: UShort) { + class NumberOfPrimariesAttribute( + val value: UByte? + ) - class Primary1IntensityAttribute(val value: UByte?) + class Primary1IntensityAttribute( + val value: UByte? + ) - class Primary2IntensityAttribute(val value: UByte?) + class Primary2IntensityAttribute( + val value: UByte? + ) - class Primary3IntensityAttribute(val value: UByte?) + class Primary3IntensityAttribute( + val value: UByte? + ) - class Primary4IntensityAttribute(val value: UByte?) + class Primary4IntensityAttribute( + val value: UByte? + ) - class Primary5IntensityAttribute(val value: UByte?) + class Primary5IntensityAttribute( + val value: UByte? + ) - class Primary6IntensityAttribute(val value: UByte?) + class Primary6IntensityAttribute( + val value: UByte? + ) - class ColorPointRIntensityAttribute(val value: UByte?) + class ColorPointRIntensityAttribute( + val value: UByte? + ) - class ColorPointGIntensityAttribute(val value: UByte?) + class ColorPointGIntensityAttribute( + val value: UByte? + ) - class ColorPointBIntensityAttribute(val value: UByte?) + class ColorPointBIntensityAttribute( + val value: UByte? + ) - class StartUpColorTemperatureMiredsAttribute(val value: UShort?) + class StartUpColorTemperatureMiredsAttribute( + val value: UShort? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun moveToHue( - hue: UByte, - direction: UInt, - transitionTime: UShort, - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun moveToHue(hue: UByte, direction: UInt, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun moveHue( - moveMode: UInt, - rate: UByte, - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun moveHue(moveMode: UInt, rate: UByte, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 1L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun stepHue( - stepMode: UInt, - stepSize: UByte, - transitionTime: UByte, - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun stepHue(stepMode: UInt, stepSize: UByte, transitionTime: UByte, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun moveToSaturation( - saturation: UByte, - transitionTime: UShort, - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun moveToSaturation(saturation: UByte, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 3L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun moveSaturation( - moveMode: UInt, - rate: UByte, - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun moveSaturation(moveMode: UInt, rate: UByte, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 4L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun stepSaturation( - stepMode: UInt, - stepSize: UByte, - transitionTime: UByte, - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun stepSaturation(stepMode: UInt, stepSize: UByte, transitionTime: UByte, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 5L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun moveToHueAndSaturation( - hue: UByte, - saturation: UByte, - transitionTime: UShort, - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun moveToHueAndSaturation(hue: UByte, saturation: UByte, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 6L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun moveToColor( - colorX: UShort, - colorY: UShort, - transitionTime: UShort, - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun moveToColor(colorX: UShort, colorY: UShort, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 7L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun moveColor( - rateX: Short, - rateY: Short, - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun moveColor(rateX: Short, rateY: Short, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 8L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun stepColor( - stepX: Short, - stepY: Short, - transitionTime: UShort, - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun stepColor(stepX: Short, stepY: Short, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 9L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun moveToColorTemperature( - colorTemperatureMireds: UShort, - transitionTime: UShort, - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun moveToColorTemperature(colorTemperatureMireds: UShort, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 10L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun enhancedMoveToHue( - enhancedHue: UShort, - direction: UInt, - transitionTime: UShort, - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun enhancedMoveToHue(enhancedHue: UShort, direction: UInt, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 64L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun enhancedMoveHue( - moveMode: UInt, - rate: UShort, - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun enhancedMoveHue(moveMode: UInt, rate: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 65L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun enhancedStepHue( - stepMode: UInt, - stepSize: UShort, - transitionTime: UShort, - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun enhancedStepHue(stepMode: UInt, stepSize: UShort, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 66L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun enhancedMoveToHueAndSaturation( - enhancedHue: UShort, - saturation: UByte, - transitionTime: UShort, - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun enhancedMoveToHueAndSaturation(enhancedHue: UShort, saturation: UByte, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 67L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } - } - - suspend fun colorLoopSet( - updateFlags: UInt, - action: UInt, - direction: UInt, - time: UShort, - startHue: UShort, - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + } + } + + suspend fun colorLoopSet(updateFlags: UInt, action: UInt, direction: UInt, time: UShort, startHue: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 68L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun stopMoveStep( - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun stopMoveStep(optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 71L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun moveColorTemperature( - moveMode: UInt, - rate: UShort, - colorTemperatureMinimumMireds: UShort, - colorTemperatureMaximumMireds: UShort, - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun moveColorTemperature(moveMode: UInt, rate: UShort, colorTemperatureMinimumMireds: UShort, colorTemperatureMaximumMireds: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 75L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } - } - - suspend fun stepColorTemperature( - stepMode: UInt, - stepSize: UShort, - transitionTime: UShort, - colorTemperatureMinimumMireds: UShort, - colorTemperatureMaximumMireds: UShort, - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + } + } + + suspend fun stepColorTemperature(stepMode: UInt, stepSize: UShort, transitionTime: UShort, colorTemperatureMinimumMireds: UShort, colorTemperatureMaximumMireds: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 76L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readCurrentHueAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeCurrentHueAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeCurrentHueAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -385,7 +286,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribeCurrentSaturationAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeCurrentSaturationAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -393,7 +297,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribeRemainingTimeAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeRemainingTimeAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -401,7 +308,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribeCurrentXAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeCurrentXAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -409,7 +319,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribeCurrentYAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeCurrentYAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -417,7 +330,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribeDriftCompensationAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeDriftCompensationAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -425,7 +341,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribeCompensationTextAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeCompensationTextAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -433,7 +352,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribeColorTemperatureMiredsAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeColorTemperatureMiredsAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -441,7 +363,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribeColorModeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeColorModeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -449,15 +374,21 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun writeOptionsAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeOptionsAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOptionsAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeOptionsAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -476,7 +407,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribePrimary1XAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribePrimary1XAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -484,7 +418,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribePrimary1YAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribePrimary1YAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -503,7 +440,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribePrimary2XAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribePrimary2XAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -511,7 +451,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribePrimary2YAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribePrimary2YAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -530,7 +473,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribePrimary3XAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribePrimary3XAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -538,7 +484,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribePrimary3YAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribePrimary3YAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -557,7 +506,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribePrimary4XAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribePrimary4XAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -565,7 +517,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribePrimary4YAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribePrimary4YAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -584,7 +539,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribePrimary5XAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribePrimary5XAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -592,7 +550,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribePrimary5YAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribePrimary5YAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -611,7 +572,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribePrimary6XAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribePrimary6XAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -619,7 +583,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribePrimary6YAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribePrimary6YAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -638,15 +605,21 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun writeWhitePointXAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeWhitePointXAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeWhitePointXAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeWhitePointXAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -654,15 +627,21 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun writeWhitePointYAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeWhitePointYAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeWhitePointYAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeWhitePointYAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -670,15 +649,21 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun writeColorPointRXAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeColorPointRXAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeColorPointRXAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeColorPointRXAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -686,15 +671,21 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun writeColorPointRYAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeColorPointRYAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeColorPointRYAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeColorPointRYAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -702,12 +693,15 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun writeColorPointRIntensityAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeColorPointRIntensityAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeColorPointRIntensityAttribute( @@ -721,15 +715,21 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun writeColorPointGXAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeColorPointGXAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeColorPointGXAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeColorPointGXAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -737,15 +737,21 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun writeColorPointGYAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeColorPointGYAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeColorPointGYAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeColorPointGYAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -753,12 +759,15 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun writeColorPointGIntensityAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeColorPointGIntensityAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeColorPointGIntensityAttribute( @@ -772,15 +781,21 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun writeColorPointBXAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeColorPointBXAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeColorPointBXAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeColorPointBXAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -788,15 +803,21 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun writeColorPointBYAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeColorPointBYAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeColorPointBYAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeColorPointBYAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -804,12 +825,15 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun writeColorPointBIntensityAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeColorPointBIntensityAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeColorPointBIntensityAttribute( @@ -823,7 +847,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribeEnhancedCurrentHueAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeEnhancedCurrentHueAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -831,7 +858,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribeEnhancedColorModeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeEnhancedColorModeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -839,7 +869,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribeColorLoopActiveAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeColorLoopActiveAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -847,7 +880,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribeColorLoopDirectionAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeColorLoopDirectionAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -855,7 +891,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribeColorLoopTimeAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeColorLoopTimeAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -885,7 +924,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribeColorCapabilitiesAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeColorCapabilitiesAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -928,13 +970,13 @@ class ColorControlCluster( suspend fun writeStartUpColorTemperatureMiredsAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeStartUpColorTemperatureMiredsAttribute( @@ -970,7 +1012,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -989,7 +1034,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -997,7 +1045,10 @@ class ColorControlCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ContentLauncherCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ContentLauncherCluster.kt index d91c75e898b7ef..25acd765d5ada7 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ContentLauncherCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ContentLauncherCluster.kt @@ -20,50 +20,50 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class ContentLauncherCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class LauncherResponse(val status: UInt, val data: String?) +class ContentLauncherCluster(private val controller: MatterController, private val endpointId: UShort) { + class LauncherResponse( + val status: UInt, + val data: String? + ) - class AcceptHeaderAttribute(val value: List?) + class AcceptHeaderAttribute( + val value: List? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun launchContent( - search: ContentLauncherClusterContentSearchStruct, - autoPlay: Boolean, - data: String?, - timedInvokeTimeoutMs: Int? = null - ): LauncherResponse { + suspend fun launchContent(search: ContentLauncherClusterContentSearchStruct, autoPlay: Boolean, data: String?, timedInvokeTimeoutMs: Int? = null): LauncherResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun launchURL( - contentURL: String, - displayString: String?, - brandingInformation: ContentLauncherClusterBrandingInformationStruct?, - timedInvokeTimeoutMs: Int? = null - ): LauncherResponse { + suspend fun launchURL(contentURL: String, displayString: String?, brandingInformation: ContentLauncherClusterBrandingInformationStruct?, timedInvokeTimeoutMs: Int? = null): LauncherResponse { val commandId = 1L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readAcceptHeaderAttribute(): AcceptHeaderAttribute { @@ -114,7 +114,10 @@ class ContentLauncherCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -133,7 +136,10 @@ class ContentLauncherCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -141,7 +147,10 @@ class ContentLauncherCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DemandResponseLoadControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DemandResponseLoadControlCluster.kt index 2f61d6f7b0c5db..f4e33a04ee8846 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DemandResponseLoadControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DemandResponseLoadControlCluster.kt @@ -20,79 +20,73 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class DemandResponseLoadControlCluster( - private val controller: MatterController, - private val endpointId: UShort -) { +class DemandResponseLoadControlCluster(private val controller: MatterController, private val endpointId: UShort) { class LoadControlProgramsAttribute( val value: List ) - class EventsAttribute(val value: List) + class EventsAttribute( + val value: List + ) class ActiveEventsAttribute( val value: List ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun registerLoadControlProgramRequest( - loadControlProgram: DemandResponseLoadControlClusterLoadControlProgramStruct, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun registerLoadControlProgramRequest(loadControlProgram: DemandResponseLoadControlClusterLoadControlProgramStruct, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun unregisterLoadControlProgramRequest( - loadControlProgramID: ByteArray, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun unregisterLoadControlProgramRequest(loadControlProgramID: ByteArray, timedInvokeTimeoutMs: Int? = null) { val commandId = 1L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun addLoadControlEventRequest( - event: DemandResponseLoadControlClusterLoadControlEventStruct, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun addLoadControlEventRequest(event: DemandResponseLoadControlClusterLoadControlEventStruct, timedInvokeTimeoutMs: Int? = null) { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun removeLoadControlEventRequest( - eventID: ByteArray, - cancelControl: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun removeLoadControlEventRequest(eventID: ByteArray, cancelControl: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 3L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun clearLoadControlEventsRequest(timedInvokeTimeoutMs: Int? = null) { @@ -102,7 +96,7 @@ class DemandResponseLoadControlCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readLoadControlProgramsAttribute(): LoadControlProgramsAttribute { @@ -131,7 +125,10 @@ class DemandResponseLoadControlCluster( // Implementation needs to be added here } - suspend fun subscribeEventsAttribute(minInterval: Int, maxInterval: Int): EventsAttribute { + suspend fun subscribeEventsAttribute( + minInterval: Int, + maxInterval: Int + ): EventsAttribute { // Implementation needs to be added here } @@ -161,7 +158,10 @@ class DemandResponseLoadControlCluster( // Implementation needs to be added here } - suspend fun subscribeNumberOfTransitionsAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeNumberOfTransitionsAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -169,15 +169,21 @@ class DemandResponseLoadControlCluster( // Implementation needs to be added here } - suspend fun writeDefaultRandomStartAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeDefaultRandomStartAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeDefaultRandomStartAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeDefaultRandomStartAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -185,15 +191,21 @@ class DemandResponseLoadControlCluster( // Implementation needs to be added here } - suspend fun writeDefaultRandomDurationAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeDefaultRandomDurationAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeDefaultRandomDurationAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeDefaultRandomDurationAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -223,7 +235,10 @@ class DemandResponseLoadControlCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -242,7 +257,10 @@ class DemandResponseLoadControlCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -250,7 +268,10 @@ class DemandResponseLoadControlCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DescriptorCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DescriptorCluster.kt index 109cefa90c030a..8fbb863bb17e76 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DescriptorCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DescriptorCluster.kt @@ -21,23 +21,41 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class DescriptorCluster(private val controller: MatterController, private val endpointId: UShort) { - class DeviceTypeListAttribute(val value: List) + class DeviceTypeListAttribute( + val value: List + ) - class ServerListAttribute(val value: List) + class ServerListAttribute( + val value: List + ) - class ClientListAttribute(val value: List) + class ClientListAttribute( + val value: List + ) - class PartsListAttribute(val value: List) + class PartsListAttribute( + val value: List + ) - class TagListAttribute(val value: List?) + class TagListAttribute( + val value: List? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readDeviceTypeListAttribute(): DeviceTypeListAttribute { // Implementation needs to be added here @@ -76,7 +94,10 @@ class DescriptorCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribePartsListAttribute(minInterval: Int, maxInterval: Int): PartsListAttribute { + suspend fun subscribePartsListAttribute( + minInterval: Int, + maxInterval: Int + ): PartsListAttribute { // Implementation needs to be added here } @@ -84,7 +105,10 @@ class DescriptorCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeTagListAttribute(minInterval: Int, maxInterval: Int): TagListAttribute { + suspend fun subscribeTagListAttribute( + minInterval: Int, + maxInterval: Int + ): TagListAttribute { // Implementation needs to be added here } @@ -114,7 +138,10 @@ class DescriptorCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -133,7 +160,10 @@ class DescriptorCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -141,7 +171,10 @@ class DescriptorCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DiagnosticLogsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DiagnosticLogsCluster.kt index 13b9d53a1f6740..726b4072aac4d3 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DiagnosticLogsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DiagnosticLogsCluster.kt @@ -20,38 +20,38 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class DiagnosticLogsCluster( - private val controller: MatterController, - private val endpointId: UShort -) { +class DiagnosticLogsCluster(private val controller: MatterController, private val endpointId: UShort) { class RetrieveLogsResponse( - val status: UInt, - val logContent: ByteArray, - val UTCTimeStamp: ULong?, + val status: UInt, + val logContent: ByteArray, + val UTCTimeStamp: ULong?, val timeSinceBoot: ULong? ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun retrieveLogsRequest( - intent: UInt, - requestedProtocol: UInt, - transferFileDesignator: String?, - timedInvokeTimeoutMs: Int? = null - ): RetrieveLogsResponse { + suspend fun retrieveLogsRequest(intent: UInt, requestedProtocol: UInt, transferFileDesignator: String?, timedInvokeTimeoutMs: Int? = null): RetrieveLogsResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { @@ -80,7 +80,10 @@ class DiagnosticLogsCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -99,7 +102,10 @@ class DiagnosticLogsCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -107,7 +113,10 @@ class DiagnosticLogsCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherAlarmCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherAlarmCluster.kt index e0d986f2c59042..ef4777fe3527f7 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherAlarmCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherAlarmCluster.kt @@ -20,17 +20,22 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class DishwasherAlarmCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class GeneratedCommandListAttribute(val value: List) +class DishwasherAlarmCluster(private val controller: MatterController, private val endpointId: UShort) { + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun reset(alarms: ULong, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -39,7 +44,7 @@ class DishwasherAlarmCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun modifyEnabledAlarms(mask: ULong, timedInvokeTimeoutMs: Int? = null) { @@ -49,14 +54,17 @@ class DishwasherAlarmCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readMaskAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeMaskAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeMaskAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -64,7 +72,10 @@ class DishwasherAlarmCluster( // Implementation needs to be added here } - suspend fun subscribeLatchAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeLatchAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -72,7 +83,10 @@ class DishwasherAlarmCluster( // Implementation needs to be added here } - suspend fun subscribeStateAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeStateAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -80,7 +94,10 @@ class DishwasherAlarmCluster( // Implementation needs to be added here } - suspend fun subscribeSupportedAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeSupportedAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -110,7 +127,10 @@ class DishwasherAlarmCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -129,7 +149,10 @@ class DishwasherAlarmCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -137,7 +160,10 @@ class DishwasherAlarmCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherModeCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherModeCluster.kt index 5352d16f02443c..157bfa898d06cf 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherModeCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherModeCluster.kt @@ -20,37 +20,48 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class DishwasherModeCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class ChangeToModeResponse(val status: UInt, val statusText: String?) +class DishwasherModeCluster(private val controller: MatterController, private val endpointId: UShort) { + class ChangeToModeResponse( + val status: UInt, + val statusText: String? + ) - class SupportedModesAttribute(val value: List) + class SupportedModesAttribute( + val value: List + ) - class StartUpModeAttribute(val value: UByte?) + class StartUpModeAttribute( + val value: UByte? + ) - class OnModeAttribute(val value: UByte?) + class OnModeAttribute( + val value: UByte? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun changeToMode( - newMode: UByte, - timedInvokeTimeoutMs: Int? = null - ): ChangeToModeResponse { + suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int? = null): ChangeToModeResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readSupportedModesAttribute(): SupportedModesAttribute { @@ -68,7 +79,10 @@ class DishwasherModeCluster( // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeCurrentModeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -76,12 +90,15 @@ class DishwasherModeCluster( // Implementation needs to be added here } - suspend fun writeStartUpModeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeStartUpModeAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeStartUpModeAttribute( @@ -95,15 +112,21 @@ class DishwasherModeCluster( // Implementation needs to be added here } - suspend fun writeOnModeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeOnModeAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOnModeAttribute(minInterval: Int, maxInterval: Int): OnModeAttribute { + suspend fun subscribeOnModeAttribute( + minInterval: Int, + maxInterval: Int + ): OnModeAttribute { // Implementation needs to be added here } @@ -133,7 +156,10 @@ class DishwasherModeCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -152,7 +178,10 @@ class DishwasherModeCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -160,7 +189,10 @@ class DishwasherModeCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DoorLockCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DoorLockCluster.kt index efe90d407177d7..600bcb5b01947a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DoorLockCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DoorLockCluster.kt @@ -22,207 +22,179 @@ import matter.devicecontroller.cluster.structs.* class DoorLockCluster(private val controller: MatterController, private val endpointId: UShort) { class GetWeekDayScheduleResponse( - val weekDayIndex: UByte, - val userIndex: UShort, - val status: UInt, - val daysMask: UInt?, - val startHour: UByte?, - val startMinute: UByte?, - val endHour: UByte?, + val weekDayIndex: UByte, + val userIndex: UShort, + val status: UInt, + val daysMask: UInt?, + val startHour: UByte?, + val startMinute: UByte?, + val endHour: UByte?, val endMinute: UByte? ) class GetYearDayScheduleResponse( - val yearDayIndex: UByte, - val userIndex: UShort, - val status: UInt, - val localStartTime: UInt?, + val yearDayIndex: UByte, + val userIndex: UShort, + val status: UInt, + val localStartTime: UInt?, val localEndTime: UInt? ) class GetHolidayScheduleResponse( - val holidayIndex: UByte, - val status: UInt, - val localStartTime: UInt?, - val localEndTime: UInt?, + val holidayIndex: UByte, + val status: UInt, + val localStartTime: UInt?, + val localEndTime: UInt?, val operatingMode: UInt? ) class GetUserResponse( - val userIndex: UShort, - val userName: String?, - val userUniqueID: UInt?, - val userStatus: UInt?, - val userType: UInt?, - val credentialRule: UInt?, - val credentials: List?, - val creatorFabricIndex: UByte?, - val lastModifiedFabricIndex: UByte?, + val userIndex: UShort, + val userName: String?, + val userUniqueID: UInt?, + val userStatus: UInt?, + val userType: UInt?, + val credentialRule: UInt?, + val credentials: List?, + val creatorFabricIndex: UByte?, + val lastModifiedFabricIndex: UByte?, val nextUserIndex: UShort? ) class SetCredentialResponse( - val status: UInt, - val userIndex: UShort?, + val status: UInt, + val userIndex: UShort?, val nextCredentialIndex: UShort? ) class GetCredentialStatusResponse( - val credentialExists: Boolean, - val userIndex: UShort?, - val creatorFabricIndex: UByte?, - val lastModifiedFabricIndex: UByte?, + val credentialExists: Boolean, + val userIndex: UShort?, + val creatorFabricIndex: UByte?, + val lastModifiedFabricIndex: UByte?, val nextCredentialIndex: UShort? ) - class LockStateAttribute(val value: UInt?) + class LockStateAttribute( + val value: UInt? + ) - class DoorStateAttribute(val value: UInt?) + class DoorStateAttribute( + val value: UInt? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun lockDoor(PINCode: ByteArray?, timedInvokeTimeoutMs: Int) { val commandId = 0L - // Implementation needs to be added here + // Implementation needs to be added here } suspend fun unlockDoor(PINCode: ByteArray?, timedInvokeTimeoutMs: Int) { val commandId = 1L - // Implementation needs to be added here + // Implementation needs to be added here } suspend fun unlockWithTimeout(timeout: UShort, PINCode: ByteArray?, timedInvokeTimeoutMs: Int) { val commandId = 3L - // Implementation needs to be added here + // Implementation needs to be added here } - suspend fun setWeekDaySchedule( - weekDayIndex: UByte, - userIndex: UShort, - daysMask: UInt, - startHour: UByte, - startMinute: UByte, - endHour: UByte, - endMinute: UByte, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun setWeekDaySchedule(weekDayIndex: UByte, userIndex: UShort, daysMask: UInt, startHour: UByte, startMinute: UByte, endHour: UByte, endMinute: UByte, timedInvokeTimeoutMs: Int? = null) { val commandId = 11L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun getWeekDaySchedule( - weekDayIndex: UByte, - userIndex: UShort, - timedInvokeTimeoutMs: Int? = null - ): GetWeekDayScheduleResponse { + suspend fun getWeekDaySchedule(weekDayIndex: UByte, userIndex: UShort, timedInvokeTimeoutMs: Int? = null): GetWeekDayScheduleResponse { val commandId = 12L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun clearWeekDaySchedule( - weekDayIndex: UByte, - userIndex: UShort, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun clearWeekDaySchedule(weekDayIndex: UByte, userIndex: UShort, timedInvokeTimeoutMs: Int? = null) { val commandId = 13L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun setYearDaySchedule( - yearDayIndex: UByte, - userIndex: UShort, - localStartTime: UInt, - localEndTime: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun setYearDaySchedule(yearDayIndex: UByte, userIndex: UShort, localStartTime: UInt, localEndTime: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 14L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun getYearDaySchedule( - yearDayIndex: UByte, - userIndex: UShort, - timedInvokeTimeoutMs: Int? = null - ): GetYearDayScheduleResponse { + suspend fun getYearDaySchedule(yearDayIndex: UByte, userIndex: UShort, timedInvokeTimeoutMs: Int? = null): GetYearDayScheduleResponse { val commandId = 15L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun clearYearDaySchedule( - yearDayIndex: UByte, - userIndex: UShort, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun clearYearDaySchedule(yearDayIndex: UByte, userIndex: UShort, timedInvokeTimeoutMs: Int? = null) { val commandId = 16L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun setHolidaySchedule( - holidayIndex: UByte, - localStartTime: UInt, - localEndTime: UInt, - operatingMode: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun setHolidaySchedule(holidayIndex: UByte, localStartTime: UInt, localEndTime: UInt, operatingMode: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 17L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun getHolidaySchedule( - holidayIndex: UByte, - timedInvokeTimeoutMs: Int? = null - ): GetHolidayScheduleResponse { + suspend fun getHolidaySchedule(holidayIndex: UByte, timedInvokeTimeoutMs: Int? = null): GetHolidayScheduleResponse { val commandId = 18L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun clearHolidaySchedule(holidayIndex: UByte, timedInvokeTimeoutMs: Int? = null) { @@ -232,22 +204,13 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } - } - - suspend fun setUser( - operationType: UInt, - userIndex: UShort, - userName: String?, - userUniqueID: UInt?, - userStatus: UInt?, - userType: UInt?, - credentialRule: UInt?, - timedInvokeTimeoutMs: Int - ) { + } + } + + suspend fun setUser(operationType: UInt, userIndex: UShort, userName: String?, userUniqueID: UInt?, userStatus: UInt?, userType: UInt?, credentialRule: UInt?, timedInvokeTimeoutMs: Int) { val commandId = 26L - // Implementation needs to be added here + // Implementation needs to be added here } suspend fun getUser(userIndex: UShort, timedInvokeTimeoutMs: Int? = null): GetUserResponse { @@ -257,62 +220,51 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun clearUser(userIndex: UShort, timedInvokeTimeoutMs: Int) { val commandId = 29L - // Implementation needs to be added here + // Implementation needs to be added here } - suspend fun setCredential( - operationType: UInt, - credential: DoorLockClusterCredentialStruct, - credentialData: ByteArray, - userIndex: UShort?, - userStatus: UInt?, - userType: UInt?, - timedInvokeTimeoutMs: Int - ): SetCredentialResponse { + suspend fun setCredential(operationType: UInt, credential: DoorLockClusterCredentialStruct, credentialData: ByteArray, userIndex: UShort?, userStatus: UInt?, userType: UInt?, timedInvokeTimeoutMs: Int): SetCredentialResponse { val commandId = 34L - // Implementation needs to be added here + // Implementation needs to be added here } - suspend fun getCredentialStatus( - credential: DoorLockClusterCredentialStruct, - timedInvokeTimeoutMs: Int? = null - ): GetCredentialStatusResponse { + suspend fun getCredentialStatus(credential: DoorLockClusterCredentialStruct, timedInvokeTimeoutMs: Int? = null): GetCredentialStatusResponse { val commandId = 36L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun clearCredential( - credential: DoorLockClusterCredentialStruct?, - timedInvokeTimeoutMs: Int - ) { + suspend fun clearCredential(credential: DoorLockClusterCredentialStruct?, timedInvokeTimeoutMs: Int) { val commandId = 38L - // Implementation needs to be added here + // Implementation needs to be added here } suspend fun unboltDoor(PINCode: ByteArray?, timedInvokeTimeoutMs: Int) { val commandId = 39L - // Implementation needs to be added here + // Implementation needs to be added here } suspend fun readLockStateAttribute(): LockStateAttribute { // Implementation needs to be added here } - suspend fun subscribeLockStateAttribute(minInterval: Int, maxInterval: Int): LockStateAttribute { + suspend fun subscribeLockStateAttribute( + minInterval: Int, + maxInterval: Int + ): LockStateAttribute { // Implementation needs to be added here } @@ -320,7 +272,10 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeLockTypeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeLockTypeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -328,7 +283,10 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeActuatorEnabledAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeActuatorEnabledAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -336,7 +294,10 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeDoorStateAttribute(minInterval: Int, maxInterval: Int): DoorStateAttribute { + suspend fun subscribeDoorStateAttribute( + minInterval: Int, + maxInterval: Int + ): DoorStateAttribute { // Implementation needs to be added here } @@ -344,15 +305,21 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeDoorOpenEventsAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeDoorOpenEventsAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeDoorOpenEventsAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeDoorOpenEventsAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -360,15 +327,21 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeDoorClosedEventsAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeDoorClosedEventsAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeDoorClosedEventsAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeDoorClosedEventsAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -376,15 +349,21 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeOpenPeriodAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeOpenPeriodAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOpenPeriodAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeOpenPeriodAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -458,7 +437,10 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeMaxPINCodeLengthAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMaxPINCodeLengthAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -466,7 +448,10 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeMinPINCodeLengthAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMinPINCodeLengthAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -474,7 +459,10 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeMaxRFIDCodeLengthAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMaxRFIDCodeLengthAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -482,7 +470,10 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeMinRFIDCodeLengthAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMinRFIDCodeLengthAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -490,7 +481,10 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeCredentialRulesSupportAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeCredentialRulesSupportAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -509,15 +503,21 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeLanguageAttribute(value: String, timedWriteTimeoutMs: Int? = null) { + suspend fun writeLanguageAttribute( + value: String, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeLanguageAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeLanguageAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -525,15 +525,21 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeLEDSettingsAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeLEDSettingsAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeLEDSettingsAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeLEDSettingsAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -541,15 +547,21 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeAutoRelockTimeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeAutoRelockTimeAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeAutoRelockTimeAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeAutoRelockTimeAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -557,15 +569,21 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeSoundVolumeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeSoundVolumeAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeSoundVolumeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeSoundVolumeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -573,15 +591,21 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeOperatingModeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeOperatingModeAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOperatingModeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeOperatingModeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -613,13 +637,13 @@ class DoorLockCluster(private val controller: MatterController, private val endp suspend fun writeEnableLocalProgrammingAttribute( value: Boolean, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeEnableLocalProgrammingAttribute( @@ -635,16 +659,19 @@ class DoorLockCluster(private val controller: MatterController, private val endp suspend fun writeEnableOneTouchLockingAttribute( value: Boolean, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeEnableOneTouchLockingAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeEnableOneTouchLockingAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -654,16 +681,19 @@ class DoorLockCluster(private val controller: MatterController, private val endp suspend fun writeEnableInsideStatusLEDAttribute( value: Boolean, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeEnableInsideStatusLEDAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeEnableInsideStatusLEDAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -673,13 +703,13 @@ class DoorLockCluster(private val controller: MatterController, private val endp suspend fun writeEnablePrivacyModeButtonAttribute( value: Boolean, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeEnablePrivacyModeButtonAttribute( @@ -695,13 +725,13 @@ class DoorLockCluster(private val controller: MatterController, private val endp suspend fun writeLocalProgrammingFeaturesAttribute( value: UInt, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeLocalProgrammingFeaturesAttribute( @@ -715,15 +745,21 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeWrongCodeEntryLimitAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeWrongCodeEntryLimitAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeWrongCodeEntryLimitAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeWrongCodeEntryLimitAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -733,13 +769,13 @@ class DoorLockCluster(private val controller: MatterController, private val endp suspend fun writeUserCodeTemporaryDisableTimeAttribute( value: UByte, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeUserCodeTemporaryDisableTimeAttribute( @@ -753,15 +789,21 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeSendPINOverTheAirAttribute(value: Boolean, timedWriteTimeoutMs: Int? = null) { + suspend fun writeSendPINOverTheAirAttribute( + value: Boolean, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeSendPINOverTheAirAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeSendPINOverTheAirAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -771,13 +813,13 @@ class DoorLockCluster(private val controller: MatterController, private val endp suspend fun writeRequirePINforRemoteOperationAttribute( value: Boolean, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeRequirePINforRemoteOperationAttribute( @@ -791,15 +833,21 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeExpiringUserTimeoutAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeExpiringUserTimeoutAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeExpiringUserTimeoutAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeExpiringUserTimeoutAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -829,7 +877,10 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -848,7 +899,10 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -856,7 +910,10 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ElectricalMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ElectricalMeasurementCluster.kt index 9e3ed080f8c3f6..13bd2d1f4e2de6 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ElectricalMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ElectricalMeasurementCluster.kt @@ -20,17 +20,22 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class ElectricalMeasurementCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class GeneratedCommandListAttribute(val value: List) +class ElectricalMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun getProfileInfoCommand(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -39,29 +44,27 @@ class ElectricalMeasurementCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun getMeasurementProfileCommand( - attributeId: UShort, - startTime: UInt, - numberOfIntervals: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun getMeasurementProfileCommand(attributeId: UShort, startTime: UInt, numberOfIntervals: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 1L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readMeasurementTypeAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeMeasurementTypeAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeMeasurementTypeAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -69,7 +72,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeDcVoltageAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeDcVoltageAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -77,7 +83,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeDcVoltageMinAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeDcVoltageMinAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -85,7 +94,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeDcVoltageMaxAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeDcVoltageMaxAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -93,7 +105,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeDcCurrentAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeDcCurrentAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -101,7 +116,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeDcCurrentMinAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeDcCurrentMinAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -109,7 +127,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeDcCurrentMaxAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeDcCurrentMaxAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -117,7 +138,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeDcPowerAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeDcPowerAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -125,7 +149,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeDcPowerMinAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeDcPowerMinAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -133,7 +160,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeDcPowerMaxAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeDcPowerMaxAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -141,7 +171,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeDcVoltageMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeDcVoltageMultiplierAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -149,7 +182,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeDcVoltageDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeDcVoltageDivisorAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -157,7 +193,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeDcCurrentMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeDcCurrentMultiplierAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -165,7 +204,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeDcCurrentDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeDcCurrentDivisorAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -173,7 +215,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeDcPowerMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeDcPowerMultiplierAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -181,7 +226,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeDcPowerDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeDcPowerDivisorAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -189,7 +237,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeAcFrequencyAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeAcFrequencyAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -197,7 +248,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeAcFrequencyMinAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeAcFrequencyMinAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -205,7 +259,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeAcFrequencyMaxAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeAcFrequencyMaxAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -213,7 +270,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeNeutralCurrentAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeNeutralCurrentAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -221,7 +281,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeTotalActivePowerAttribute(minInterval: Int, maxInterval: Int): Int { + suspend fun subscribeTotalActivePowerAttribute( + minInterval: Int, + maxInterval: Int + ): Int { // Implementation needs to be added here } @@ -229,7 +292,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeTotalReactivePowerAttribute(minInterval: Int, maxInterval: Int): Int { + suspend fun subscribeTotalReactivePowerAttribute( + minInterval: Int, + maxInterval: Int + ): Int { // Implementation needs to be added here } @@ -237,7 +303,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeTotalApparentPowerAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeTotalApparentPowerAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -377,7 +446,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeAcFrequencyMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeAcFrequencyMultiplierAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -385,7 +457,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeAcFrequencyDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeAcFrequencyDivisorAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -393,7 +468,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribePowerMultiplierAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribePowerMultiplierAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -401,7 +479,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribePowerDivisorAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribePowerDivisorAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -431,7 +512,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeInstantaneousVoltageAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeInstantaneousVoltageAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -472,7 +556,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeInstantaneousPowerAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeInstantaneousPowerAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -480,7 +567,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeRmsVoltageAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeRmsVoltageAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -488,7 +578,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeRmsVoltageMinAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeRmsVoltageMinAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -496,7 +589,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeRmsVoltageMaxAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeRmsVoltageMaxAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -504,7 +600,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeRmsCurrentAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeRmsCurrentAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -512,7 +611,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeRmsCurrentMinAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeRmsCurrentMinAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -520,7 +622,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeRmsCurrentMaxAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeRmsCurrentMaxAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -528,7 +633,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeActivePowerAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeActivePowerAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -536,7 +644,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeActivePowerMinAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeActivePowerMinAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -544,7 +655,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeActivePowerMaxAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeActivePowerMaxAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -552,7 +666,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeReactivePowerAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeReactivePowerAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -560,7 +677,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeApparentPowerAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeApparentPowerAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -568,7 +688,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribePowerFactorAttribute(minInterval: Int, maxInterval: Int): Byte { + suspend fun subscribePowerFactorAttribute( + minInterval: Int, + maxInterval: Int + ): Byte { // Implementation needs to be added here } @@ -578,13 +701,13 @@ class ElectricalMeasurementCluster( suspend fun writeAverageRmsVoltageMeasurementPeriodAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeAverageRmsVoltageMeasurementPeriodAttribute( @@ -600,13 +723,13 @@ class ElectricalMeasurementCluster( suspend fun writeAverageRmsUnderVoltageCounterAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeAverageRmsUnderVoltageCounterAttribute( @@ -622,13 +745,13 @@ class ElectricalMeasurementCluster( suspend fun writeRmsExtremeOverVoltagePeriodAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeRmsExtremeOverVoltagePeriodAttribute( @@ -644,13 +767,13 @@ class ElectricalMeasurementCluster( suspend fun writeRmsExtremeUnderVoltagePeriodAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeRmsExtremeUnderVoltagePeriodAttribute( @@ -664,15 +787,21 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun writeRmsVoltageSagPeriodAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeRmsVoltageSagPeriodAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeRmsVoltageSagPeriodAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeRmsVoltageSagPeriodAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -680,15 +809,21 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun writeRmsVoltageSwellPeriodAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeRmsVoltageSwellPeriodAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeRmsVoltageSwellPeriodAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeRmsVoltageSwellPeriodAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -696,7 +831,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeAcVoltageMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeAcVoltageMultiplierAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -704,7 +842,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeAcVoltageDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeAcVoltageDivisorAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -712,7 +853,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeAcCurrentMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeAcCurrentMultiplierAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -720,7 +864,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeAcCurrentDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeAcCurrentDivisorAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -728,7 +875,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeAcPowerMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeAcPowerMultiplierAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -736,7 +886,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeAcPowerDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeAcPowerDivisorAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -744,15 +897,21 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun writeOverloadAlarmsMaskAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeOverloadAlarmsMaskAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOverloadAlarmsMaskAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeOverloadAlarmsMaskAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -760,7 +919,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeVoltageOverloadAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeVoltageOverloadAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -768,7 +930,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeCurrentOverloadAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeCurrentOverloadAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -776,15 +941,21 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun writeAcOverloadAlarmsMaskAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeAcOverloadAlarmsMaskAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeAcOverloadAlarmsMaskAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeAcOverloadAlarmsMaskAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -792,7 +963,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeAcVoltageOverloadAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeAcVoltageOverloadAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -800,7 +974,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeAcCurrentOverloadAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeAcCurrentOverloadAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -808,7 +985,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeAcActivePowerOverloadAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeAcActivePowerOverloadAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -816,7 +996,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeAcReactivePowerOverloadAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeAcReactivePowerOverloadAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -824,7 +1007,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeAverageRmsOverVoltageAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeAverageRmsOverVoltageAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -832,7 +1018,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeAverageRmsUnderVoltageAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeAverageRmsUnderVoltageAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -840,7 +1029,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeRmsExtremeOverVoltageAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeRmsExtremeOverVoltageAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -848,7 +1040,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeRmsExtremeUnderVoltageAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeRmsExtremeUnderVoltageAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -856,7 +1051,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeRmsVoltageSagAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeRmsVoltageSagAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -864,7 +1062,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeRmsVoltageSwellAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeRmsVoltageSwellAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -872,7 +1073,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeLineCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeLineCurrentPhaseBAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -880,7 +1084,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeActiveCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeActiveCurrentPhaseBAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -888,7 +1095,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeReactiveCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeReactiveCurrentPhaseBAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -896,7 +1106,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeRmsVoltagePhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeRmsVoltagePhaseBAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -904,7 +1117,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeRmsVoltageMinPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeRmsVoltageMinPhaseBAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -912,7 +1128,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeRmsVoltageMaxPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeRmsVoltageMaxPhaseBAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -920,7 +1139,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeRmsCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeRmsCurrentPhaseBAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -928,7 +1150,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeRmsCurrentMinPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeRmsCurrentMinPhaseBAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -936,7 +1161,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeRmsCurrentMaxPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeRmsCurrentMaxPhaseBAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -944,7 +1172,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeActivePowerPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeActivePowerPhaseBAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -952,7 +1183,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeActivePowerMinPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeActivePowerMinPhaseBAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -960,7 +1194,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeActivePowerMaxPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeActivePowerMaxPhaseBAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -968,7 +1205,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeReactivePowerPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeReactivePowerPhaseBAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -976,7 +1216,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeApparentPowerPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeApparentPowerPhaseBAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -984,7 +1227,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribePowerFactorPhaseBAttribute(minInterval: Int, maxInterval: Int): Byte { + suspend fun subscribePowerFactorPhaseBAttribute( + minInterval: Int, + maxInterval: Int + ): Byte { // Implementation needs to be added here } @@ -1069,7 +1315,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeLineCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeLineCurrentPhaseCAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -1077,7 +1326,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeActiveCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeActiveCurrentPhaseCAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -1085,7 +1337,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeReactiveCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeReactiveCurrentPhaseCAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -1093,7 +1348,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeRmsVoltagePhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeRmsVoltagePhaseCAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -1101,7 +1359,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeRmsVoltageMinPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeRmsVoltageMinPhaseCAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -1109,7 +1370,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeRmsVoltageMaxPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeRmsVoltageMaxPhaseCAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -1117,7 +1381,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeRmsCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeRmsCurrentPhaseCAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -1125,7 +1392,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeRmsCurrentMinPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeRmsCurrentMinPhaseCAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -1133,7 +1403,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeRmsCurrentMaxPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeRmsCurrentMaxPhaseCAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -1141,7 +1414,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeActivePowerPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeActivePowerPhaseCAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -1149,7 +1425,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeActivePowerMinPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeActivePowerMinPhaseCAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -1157,7 +1436,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeActivePowerMaxPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeActivePowerMaxPhaseCAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -1165,7 +1447,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeReactivePowerPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeReactivePowerPhaseCAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -1173,7 +1458,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeApparentPowerPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeApparentPowerPhaseCAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -1181,7 +1469,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribePowerFactorPhaseCAttribute(minInterval: Int, maxInterval: Int): Byte { + suspend fun subscribePowerFactorPhaseCAttribute( + minInterval: Int, + maxInterval: Int + ): Byte { // Implementation needs to be added here } @@ -1288,7 +1579,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -1307,7 +1601,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -1315,7 +1612,10 @@ class ElectricalMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/EthernetNetworkDiagnosticsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/EthernetNetworkDiagnosticsCluster.kt index d7fc8fa494c838..6135b8459765b0 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/EthernetNetworkDiagnosticsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/EthernetNetworkDiagnosticsCluster.kt @@ -20,23 +20,34 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class EthernetNetworkDiagnosticsCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class PHYRateAttribute(val value: UInt?) +class EthernetNetworkDiagnosticsCluster(private val controller: MatterController, private val endpointId: UShort) { + class PHYRateAttribute( + val value: UInt? + ) - class FullDuplexAttribute(val value: Boolean?) + class FullDuplexAttribute( + val value: Boolean? + ) - class CarrierDetectAttribute(val value: Boolean?) + class CarrierDetectAttribute( + val value: Boolean? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun resetCounts(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -45,14 +56,17 @@ class EthernetNetworkDiagnosticsCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readPHYRateAttribute(): PHYRateAttribute { // Implementation needs to be added here } - suspend fun subscribePHYRateAttribute(minInterval: Int, maxInterval: Int): PHYRateAttribute { + suspend fun subscribePHYRateAttribute( + minInterval: Int, + maxInterval: Int + ): PHYRateAttribute { // Implementation needs to be added here } @@ -71,7 +85,10 @@ class EthernetNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribePacketRxCountAttribute(minInterval: Int, maxInterval: Int): ULong { + suspend fun subscribePacketRxCountAttribute( + minInterval: Int, + maxInterval: Int + ): ULong { // Implementation needs to be added here } @@ -79,7 +96,10 @@ class EthernetNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribePacketTxCountAttribute(minInterval: Int, maxInterval: Int): ULong { + suspend fun subscribePacketTxCountAttribute( + minInterval: Int, + maxInterval: Int + ): ULong { // Implementation needs to be added here } @@ -87,7 +107,10 @@ class EthernetNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeTxErrCountAttribute(minInterval: Int, maxInterval: Int): ULong { + suspend fun subscribeTxErrCountAttribute( + minInterval: Int, + maxInterval: Int + ): ULong { // Implementation needs to be added here } @@ -95,7 +118,10 @@ class EthernetNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeCollisionCountAttribute(minInterval: Int, maxInterval: Int): ULong { + suspend fun subscribeCollisionCountAttribute( + minInterval: Int, + maxInterval: Int + ): ULong { // Implementation needs to be added here } @@ -103,7 +129,10 @@ class EthernetNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeOverrunCountAttribute(minInterval: Int, maxInterval: Int): ULong { + suspend fun subscribeOverrunCountAttribute( + minInterval: Int, + maxInterval: Int + ): ULong { // Implementation needs to be added here } @@ -122,7 +151,10 @@ class EthernetNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeTimeSinceResetAttribute(minInterval: Int, maxInterval: Int): ULong { + suspend fun subscribeTimeSinceResetAttribute( + minInterval: Int, + maxInterval: Int + ): ULong { // Implementation needs to be added here } @@ -152,7 +184,10 @@ class EthernetNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -171,7 +206,10 @@ class EthernetNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -179,7 +217,10 @@ class EthernetNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FanControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FanControlCluster.kt index 178dde9600faad..1ef1e8d0398a53 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FanControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FanControlCluster.kt @@ -21,46 +21,59 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class FanControlCluster(private val controller: MatterController, private val endpointId: UShort) { - class PercentSettingAttribute(val value: UByte?) + class PercentSettingAttribute( + val value: UByte? + ) - class SpeedSettingAttribute(val value: UByte?) + class SpeedSettingAttribute( + val value: UByte? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun step( - direction: UInt, - wrap: Boolean?, - lowestOff: Boolean?, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun step(direction: UInt, wrap: Boolean?, lowestOff: Boolean?, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readFanModeAttribute(): UByte { // Implementation needs to be added here } - suspend fun writeFanModeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeFanModeAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeFanModeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeFanModeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -68,7 +81,10 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeFanModeSequenceAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeFanModeSequenceAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -76,12 +92,15 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writePercentSettingAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writePercentSettingAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribePercentSettingAttribute( @@ -95,7 +114,10 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribePercentCurrentAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribePercentCurrentAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -103,7 +125,10 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeSpeedMaxAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeSpeedMaxAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -111,12 +136,15 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeSpeedSettingAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeSpeedSettingAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeSpeedSettingAttribute( @@ -130,7 +158,10 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeSpeedCurrentAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeSpeedCurrentAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -138,7 +169,10 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeRockSupportAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeRockSupportAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -146,15 +180,21 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeRockSettingAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeRockSettingAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeRockSettingAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeRockSettingAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -162,7 +202,10 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeWindSupportAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeWindSupportAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -170,15 +213,21 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeWindSettingAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeWindSettingAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeWindSettingAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeWindSettingAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -186,15 +235,21 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeAirflowDirectionAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeAirflowDirectionAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeAirflowDirectionAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeAirflowDirectionAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -224,7 +279,10 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -243,7 +301,10 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -251,7 +312,10 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FaultInjectionCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FaultInjectionCluster.kt index 8580869b08b912..9a39c25ba139c0 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FaultInjectionCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FaultInjectionCluster.kt @@ -20,48 +20,41 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class FaultInjectionCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class GeneratedCommandListAttribute(val value: List) - - class AcceptedCommandListAttribute(val value: List) - - class EventListAttribute(val value: List) - - class AttributeListAttribute(val value: List) - - suspend fun failAtFault( - type: UInt, - id: UInt, - numCallsToSkip: UInt, - numCallsToFail: UInt, - takeMutex: Boolean, - timedInvokeTimeoutMs: Int? = null - ) { +class FaultInjectionCluster(private val controller: MatterController, private val endpointId: UShort) { + class GeneratedCommandListAttribute( + val value: List + ) + + class AcceptedCommandListAttribute( + val value: List + ) + + class EventListAttribute( + val value: List + ) + + class AttributeListAttribute( + val value: List + ) + + suspend fun failAtFault(type: UInt, id: UInt, numCallsToSkip: UInt, numCallsToFail: UInt, takeMutex: Boolean, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun failRandomlyAtFault( - type: UInt, - id: UInt, - percentage: UByte, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun failRandomlyAtFault(type: UInt, id: UInt, percentage: UByte, timedInvokeTimeoutMs: Int? = null) { val commandId = 1L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { @@ -90,7 +83,10 @@ class FaultInjectionCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -109,7 +105,10 @@ class FaultInjectionCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -117,7 +116,10 @@ class FaultInjectionCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FixedLabelCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FixedLabelCluster.kt index 6d9458b0610c05..cca34405c30b86 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FixedLabelCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FixedLabelCluster.kt @@ -21,21 +21,34 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class FixedLabelCluster(private val controller: MatterController, private val endpointId: UShort) { - class LabelListAttribute(val value: List) + class LabelListAttribute( + val value: List + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readLabelListAttribute(): LabelListAttribute { // Implementation needs to be added here } - suspend fun subscribeLabelListAttribute(minInterval: Int, maxInterval: Int): LabelListAttribute { + suspend fun subscribeLabelListAttribute( + minInterval: Int, + maxInterval: Int + ): LabelListAttribute { // Implementation needs to be added here } @@ -65,7 +78,10 @@ class FixedLabelCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -84,7 +100,10 @@ class FixedLabelCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -92,7 +111,10 @@ class FixedLabelCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FlowMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FlowMeasurementCluster.kt index 69a553ee21ae62..b72b3202e2cdd4 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FlowMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FlowMeasurementCluster.kt @@ -20,23 +20,34 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class FlowMeasurementCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class MeasuredValueAttribute(val value: UShort?) +class FlowMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { + class MeasuredValueAttribute( + val value: UShort? + ) - class MinMeasuredValueAttribute(val value: UShort?) + class MinMeasuredValueAttribute( + val value: UShort? + ) - class MaxMeasuredValueAttribute(val value: UShort?) + class MaxMeasuredValueAttribute( + val value: UShort? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -75,7 +86,10 @@ class FlowMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeToleranceAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -105,7 +119,10 @@ class FlowMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -124,7 +141,10 @@ class FlowMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -132,7 +152,10 @@ class FlowMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FormaldehydeConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FormaldehydeConcentrationMeasurementCluster.kt index 12195781103ef8..c2ddeea48242b3 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FormaldehydeConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FormaldehydeConcentrationMeasurementCluster.kt @@ -20,27 +20,42 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class FormaldehydeConcentrationMeasurementCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class MeasuredValueAttribute(val value: Float?) +class FormaldehydeConcentrationMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { + class MeasuredValueAttribute( + val value: Float? + ) - class MinMeasuredValueAttribute(val value: Float?) + class MinMeasuredValueAttribute( + val value: Float? + ) - class MaxMeasuredValueAttribute(val value: Float?) + class MaxMeasuredValueAttribute( + val value: Float? + ) - class PeakMeasuredValueAttribute(val value: Float?) + class PeakMeasuredValueAttribute( + val value: Float? + ) - class AverageMeasuredValueAttribute(val value: Float?) + class AverageMeasuredValueAttribute( + val value: Float? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -90,7 +105,10 @@ class FormaldehydeConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -120,7 +138,10 @@ class FormaldehydeConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { + suspend fun subscribeUncertaintyAttribute( + minInterval: Int, + maxInterval: Int + ): Float { // Implementation needs to be added here } @@ -128,7 +149,10 @@ class FormaldehydeConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMeasurementUnitAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -136,7 +160,10 @@ class FormaldehydeConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMeasurementMediumAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -144,7 +171,10 @@ class FormaldehydeConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeLevelValueAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -174,7 +204,10 @@ class FormaldehydeConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -193,7 +226,10 @@ class FormaldehydeConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -201,7 +237,10 @@ class FormaldehydeConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralCommissioningCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralCommissioningCluster.kt index b00a893fde74f8..b5114fa5a14027 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralCommissioningCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralCommissioningCluster.kt @@ -20,82 +20,91 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class GeneralCommissioningCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class ArmFailSafeResponse(val errorCode: UInt, val debugText: String) +class GeneralCommissioningCluster(private val controller: MatterController, private val endpointId: UShort) { + class ArmFailSafeResponse( + val errorCode: UInt, + val debugText: String + ) - class SetRegulatoryConfigResponse(val errorCode: UInt, val debugText: String) + class SetRegulatoryConfigResponse( + val errorCode: UInt, + val debugText: String + ) - class CommissioningCompleteResponse(val errorCode: UInt, val debugText: String) + class CommissioningCompleteResponse( + val errorCode: UInt, + val debugText: String + ) class BasicCommissioningInfoAttribute( val value: GeneralCommissioningClusterBasicCommissioningInfo ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun armFailSafe( - expiryLengthSeconds: UShort, - breadcrumb: ULong, - timedInvokeTimeoutMs: Int? = null - ): ArmFailSafeResponse { + suspend fun armFailSafe(expiryLengthSeconds: UShort, breadcrumb: ULong, timedInvokeTimeoutMs: Int? = null): ArmFailSafeResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun setRegulatoryConfig( - newRegulatoryConfig: UInt, - countryCode: String, - breadcrumb: ULong, - timedInvokeTimeoutMs: Int? = null - ): SetRegulatoryConfigResponse { + suspend fun setRegulatoryConfig(newRegulatoryConfig: UInt, countryCode: String, breadcrumb: ULong, timedInvokeTimeoutMs: Int? = null): SetRegulatoryConfigResponse { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun commissioningComplete( - timedInvokeTimeoutMs: Int? = null - ): CommissioningCompleteResponse { + suspend fun commissioningComplete(timedInvokeTimeoutMs: Int? = null): CommissioningCompleteResponse { val commandId = 4L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readBreadcrumbAttribute(): ULong { // Implementation needs to be added here } - suspend fun writeBreadcrumbAttribute(value: ULong, timedWriteTimeoutMs: Int? = null) { + suspend fun writeBreadcrumbAttribute( + value: ULong, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeBreadcrumbAttribute(minInterval: Int, maxInterval: Int): ULong { + suspend fun subscribeBreadcrumbAttribute( + minInterval: Int, + maxInterval: Int + ): ULong { // Implementation needs to be added here } @@ -114,7 +123,10 @@ class GeneralCommissioningCluster( // Implementation needs to be added here } - suspend fun subscribeRegulatoryConfigAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeRegulatoryConfigAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -122,7 +134,10 @@ class GeneralCommissioningCluster( // Implementation needs to be added here } - suspend fun subscribeLocationCapabilityAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeLocationCapabilityAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -163,7 +178,10 @@ class GeneralCommissioningCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -182,7 +200,10 @@ class GeneralCommissioningCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -190,7 +211,10 @@ class GeneralCommissioningCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralDiagnosticsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralDiagnosticsCluster.kt index 543a9bcb638158..49a018f45c9423 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralDiagnosticsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralDiagnosticsCluster.kt @@ -20,40 +20,52 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class GeneralDiagnosticsCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class TimeSnapshotResponse(val systemTimeUs: ULong, val UTCTimeUs: ULong?) +class GeneralDiagnosticsCluster(private val controller: MatterController, private val endpointId: UShort) { + class TimeSnapshotResponse( + val systemTimeUs: ULong, + val UTCTimeUs: ULong? + ) - class NetworkInterfacesAttribute(val value: List) + class NetworkInterfacesAttribute( + val value: List + ) - class ActiveHardwareFaultsAttribute(val value: List?) + class ActiveHardwareFaultsAttribute( + val value: List? + ) - class ActiveRadioFaultsAttribute(val value: List?) + class ActiveRadioFaultsAttribute( + val value: List? + ) - class ActiveNetworkFaultsAttribute(val value: List?) + class ActiveNetworkFaultsAttribute( + val value: List? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun testEventTrigger( - enableKey: ByteArray, - eventTrigger: ULong, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun testEventTrigger(enableKey: ByteArray, eventTrigger: ULong, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun timeSnapshot(timedInvokeTimeoutMs: Int? = null): TimeSnapshotResponse { @@ -63,7 +75,7 @@ class GeneralDiagnosticsCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readNetworkInterfacesAttribute(): NetworkInterfacesAttribute { @@ -81,7 +93,10 @@ class GeneralDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeRebootCountAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeRebootCountAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -89,7 +104,10 @@ class GeneralDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeUpTimeAttribute(minInterval: Int, maxInterval: Int): ULong { + suspend fun subscribeUpTimeAttribute( + minInterval: Int, + maxInterval: Int + ): ULong { // Implementation needs to be added here } @@ -97,7 +115,10 @@ class GeneralDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeTotalOperationalHoursAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeTotalOperationalHoursAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -105,7 +126,10 @@ class GeneralDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeBootReasonAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeBootReasonAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -179,7 +203,10 @@ class GeneralDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -198,7 +225,10 @@ class GeneralDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -206,7 +236,10 @@ class GeneralDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupKeyManagementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupKeyManagementCluster.kt index 254d6a4bf63803..a621327cc18090 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupKeyManagementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupKeyManagementCluster.kt @@ -20,50 +20,57 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class GroupKeyManagementCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class KeySetReadResponse(val groupKeySet: GroupKeyManagementClusterGroupKeySetStruct) +class GroupKeyManagementCluster(private val controller: MatterController, private val endpointId: UShort) { + class KeySetReadResponse( + val groupKeySet: GroupKeyManagementClusterGroupKeySetStruct + ) - class KeySetReadAllIndicesResponse(val groupKeySetIDs: List) + class KeySetReadAllIndicesResponse( + val groupKeySetIDs: List + ) - class GroupKeyMapAttribute(val value: List) + class GroupKeyMapAttribute( + val value: List + ) - class GroupTableAttribute(val value: List) + class GroupTableAttribute( + val value: List + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun keySetWrite( - groupKeySet: GroupKeyManagementClusterGroupKeySetStruct, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun keySetWrite(groupKeySet: GroupKeyManagementClusterGroupKeySetStruct, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun keySetRead( - groupKeySetID: UShort, - timedInvokeTimeoutMs: Int? = null - ): KeySetReadResponse { + suspend fun keySetRead(groupKeySetID: UShort, timedInvokeTimeoutMs: Int? = null): KeySetReadResponse { val commandId = 1L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun keySetRemove(groupKeySetID: UShort, timedInvokeTimeoutMs: Int? = null) { @@ -73,19 +80,17 @@ class GroupKeyManagementCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun keySetReadAllIndices( - timedInvokeTimeoutMs: Int? = null - ): KeySetReadAllIndicesResponse { + suspend fun keySetReadAllIndices(timedInvokeTimeoutMs: Int? = null): KeySetReadAllIndicesResponse { val commandId = 4L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readGroupKeyMapAttribute(): GroupKeyMapAttribute { @@ -98,15 +103,16 @@ class GroupKeyManagementCluster( // Implementation needs to be added here } + suspend fun writeGroupKeyMapAttribute( value: List, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeGroupKeyMapAttribute( @@ -126,6 +132,7 @@ class GroupKeyManagementCluster( // Implementation needs to be added here } + suspend fun subscribeGroupTableAttribute( minInterval: Int, maxInterval: Int @@ -137,7 +144,10 @@ class GroupKeyManagementCluster( // Implementation needs to be added here } - suspend fun subscribeMaxGroupsPerFabricAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeMaxGroupsPerFabricAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -145,7 +155,10 @@ class GroupKeyManagementCluster( // Implementation needs to be added here } - suspend fun subscribeMaxGroupKeysPerFabricAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeMaxGroupKeysPerFabricAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -175,7 +188,10 @@ class GroupKeyManagementCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -194,7 +210,10 @@ class GroupKeyManagementCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -202,7 +221,10 @@ class GroupKeyManagementCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupsCluster.kt index 4858d7a68b38db..8f13eef071ad62 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupsCluster.kt @@ -21,34 +21,51 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class GroupsCluster(private val controller: MatterController, private val endpointId: UShort) { - class AddGroupResponse(val status: UInt, val groupID: UShort) - - class ViewGroupResponse(val status: UInt, val groupID: UShort, val groupName: String) - - class GetGroupMembershipResponse(val capacity: UByte?, val groupList: List) - - class RemoveGroupResponse(val status: UInt, val groupID: UShort) - - class GeneratedCommandListAttribute(val value: List) - - class AcceptedCommandListAttribute(val value: List) - - class EventListAttribute(val value: List) - - class AttributeListAttribute(val value: List) - - suspend fun addGroup( - groupID: UShort, - groupName: String, - timedInvokeTimeoutMs: Int? = null - ): AddGroupResponse { + class AddGroupResponse( + val status: UInt, + val groupID: UShort + ) + + class ViewGroupResponse( + val status: UInt, + val groupID: UShort, + val groupName: String + ) + + class GetGroupMembershipResponse( + val capacity: UByte?, + val groupList: List + ) + + class RemoveGroupResponse( + val status: UInt, + val groupID: UShort + ) + + class GeneratedCommandListAttribute( + val value: List + ) + + class AcceptedCommandListAttribute( + val value: List + ) + + class EventListAttribute( + val value: List + ) + + class AttributeListAttribute( + val value: List + ) + + suspend fun addGroup(groupID: UShort, groupName: String, timedInvokeTimeoutMs: Int? = null): AddGroupResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun viewGroup(groupID: UShort, timedInvokeTimeoutMs: Int? = null): ViewGroupResponse { @@ -58,20 +75,17 @@ class GroupsCluster(private val controller: MatterController, private val endpoi // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun getGroupMembership( - groupList: List, - timedInvokeTimeoutMs: Int? = null - ): GetGroupMembershipResponse { + suspend fun getGroupMembership(groupList: List, timedInvokeTimeoutMs: Int? = null): GetGroupMembershipResponse { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun removeGroup(groupID: UShort, timedInvokeTimeoutMs: Int? = null): RemoveGroupResponse { @@ -81,7 +95,7 @@ class GroupsCluster(private val controller: MatterController, private val endpoi // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun removeAllGroups(timedInvokeTimeoutMs: Int? = null) { @@ -91,28 +105,27 @@ class GroupsCluster(private val controller: MatterController, private val endpoi // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun addGroupIfIdentifying( - groupID: UShort, - groupName: String, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun addGroupIfIdentifying(groupID: UShort, groupName: String, timedInvokeTimeoutMs: Int? = null) { val commandId = 5L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readNameSupportAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeNameSupportAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeNameSupportAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -142,7 +155,10 @@ class GroupsCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -161,7 +177,10 @@ class GroupsCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -169,7 +188,10 @@ class GroupsCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/HepaFilterMonitoringCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/HepaFilterMonitoringCluster.kt index 465dd38a9397a5..fe6473f53ff413 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/HepaFilterMonitoringCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/HepaFilterMonitoringCluster.kt @@ -20,23 +20,30 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class HepaFilterMonitoringCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class LastChangedTimeAttribute(val value: UInt?) +class HepaFilterMonitoringCluster(private val controller: MatterController, private val endpointId: UShort) { + class LastChangedTimeAttribute( + val value: UInt? + ) class ReplacementProductListAttribute( val value: List? ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun resetCondition(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -45,14 +52,17 @@ class HepaFilterMonitoringCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readConditionAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeConditionAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeConditionAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -60,7 +70,10 @@ class HepaFilterMonitoringCluster( // Implementation needs to be added here } - suspend fun subscribeDegradationDirectionAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeDegradationDirectionAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -68,7 +81,10 @@ class HepaFilterMonitoringCluster( // Implementation needs to be added here } - suspend fun subscribeChangeIndicationAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeChangeIndicationAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -76,7 +92,10 @@ class HepaFilterMonitoringCluster( // Implementation needs to be added here } - suspend fun subscribeInPlaceIndicatorAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeInPlaceIndicatorAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -84,12 +103,15 @@ class HepaFilterMonitoringCluster( // Implementation needs to be added here } - suspend fun writeLastChangedTimeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeLastChangedTimeAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeLastChangedTimeAttribute( @@ -136,7 +158,10 @@ class HepaFilterMonitoringCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -155,7 +180,10 @@ class HepaFilterMonitoringCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -163,7 +191,10 @@ class HepaFilterMonitoringCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IcdManagementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IcdManagementCluster.kt index c70094f9e08ec9..95f5fdeda8b7aa 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IcdManagementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IcdManagementCluster.kt @@ -20,54 +20,53 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class IcdManagementCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class RegisterClientResponse(val ICDCounter: UInt) +class IcdManagementCluster(private val controller: MatterController, private val endpointId: UShort) { + class RegisterClientResponse( + val ICDCounter: UInt + ) - class StayActiveResponse(val promisedActiveDuration: UInt) + class StayActiveResponse( + val promisedActiveDuration: UInt + ) class RegisteredClientsAttribute( val value: List? ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun registerClient( - checkInNodeID: ULong, - monitoredSubject: ULong, - key: ByteArray, - verificationKey: ByteArray?, - timedInvokeTimeoutMs: Int? = null - ): RegisterClientResponse { + suspend fun registerClient(checkInNodeID: ULong, monitoredSubject: ULong, key: ByteArray, verificationKey: ByteArray?, timedInvokeTimeoutMs: Int? = null): RegisterClientResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun unregisterClient( - checkInNodeID: ULong, - verificationKey: ByteArray?, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun unregisterClient(checkInNodeID: ULong, verificationKey: ByteArray?, timedInvokeTimeoutMs: Int? = null) { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun stayActiveRequest(timedInvokeTimeoutMs: Int? = null): StayActiveResponse { @@ -77,14 +76,17 @@ class IcdManagementCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readIdleModeDurationAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeIdleModeDurationAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeIdleModeDurationAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -92,7 +94,10 @@ class IcdManagementCluster( // Implementation needs to be added here } - suspend fun subscribeActiveModeDurationAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeActiveModeDurationAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -100,7 +105,10 @@ class IcdManagementCluster( // Implementation needs to be added here } - suspend fun subscribeActiveModeThresholdAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeActiveModeThresholdAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -114,6 +122,7 @@ class IcdManagementCluster( // Implementation needs to be added here } + suspend fun subscribeRegisteredClientsAttribute( minInterval: Int, maxInterval: Int @@ -125,7 +134,10 @@ class IcdManagementCluster( // Implementation needs to be added here } - suspend fun subscribeICDCounterAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeICDCounterAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -188,7 +200,10 @@ class IcdManagementCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -207,7 +222,10 @@ class IcdManagementCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -215,7 +233,10 @@ class IcdManagementCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IdentifyCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IdentifyCluster.kt index 72ec3e94ee2642..554c1fa2baa68a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IdentifyCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IdentifyCluster.kt @@ -21,13 +21,21 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class IdentifyCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun identify(identifyTime: UShort, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -36,36 +44,38 @@ class IdentifyCluster(private val controller: MatterController, private val endp // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun triggerEffect( - effectIdentifier: UInt, - effectVariant: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun triggerEffect(effectIdentifier: UInt, effectVariant: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 64L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readIdentifyTimeAttribute(): UShort { // Implementation needs to be added here } - suspend fun writeIdentifyTimeAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeIdentifyTimeAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeIdentifyTimeAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeIdentifyTimeAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -73,7 +83,10 @@ class IdentifyCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeIdentifyTypeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeIdentifyTypeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -103,7 +116,10 @@ class IdentifyCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -122,7 +138,10 @@ class IdentifyCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -130,7 +149,10 @@ class IdentifyCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IlluminanceMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IlluminanceMeasurementCluster.kt index d1067f466fcc0f..76a8a4d4726bda 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IlluminanceMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IlluminanceMeasurementCluster.kt @@ -20,25 +20,38 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class IlluminanceMeasurementCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class MeasuredValueAttribute(val value: UShort?) +class IlluminanceMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { + class MeasuredValueAttribute( + val value: UShort? + ) - class MinMeasuredValueAttribute(val value: UShort?) + class MinMeasuredValueAttribute( + val value: UShort? + ) - class MaxMeasuredValueAttribute(val value: UShort?) + class MaxMeasuredValueAttribute( + val value: UShort? + ) - class LightSensorTypeAttribute(val value: UInt?) + class LightSensorTypeAttribute( + val value: UInt? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -77,7 +90,10 @@ class IlluminanceMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeToleranceAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -118,7 +134,10 @@ class IlluminanceMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -137,7 +156,10 @@ class IlluminanceMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -145,7 +167,10 @@ class IlluminanceMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/KeypadInputCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/KeypadInputCluster.kt index 365427acb053cc..4499865f7962f5 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/KeypadInputCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/KeypadInputCluster.kt @@ -21,15 +21,25 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class KeypadInputCluster(private val controller: MatterController, private val endpointId: UShort) { - class SendKeyResponse(val status: UInt) + class SendKeyResponse( + val status: UInt + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun sendKey(keyCode: UInt, timedInvokeTimeoutMs: Int? = null): SendKeyResponse { val commandId = 0L @@ -38,7 +48,7 @@ class KeypadInputCluster(private val controller: MatterController, private val e // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { @@ -67,7 +77,10 @@ class KeypadInputCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -86,7 +99,10 @@ class KeypadInputCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -94,7 +110,10 @@ class KeypadInputCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryDryerControlsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryDryerControlsCluster.kt index 7b05c8dc8a4b6c..eca8495de0e62c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryDryerControlsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryDryerControlsCluster.kt @@ -20,21 +20,30 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class LaundryDryerControlsCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class SupportedDrynessLevelsAttribute(val value: List) +class LaundryDryerControlsCluster(private val controller: MatterController, private val endpointId: UShort) { + class SupportedDrynessLevelsAttribute( + val value: List + ) - class SelectedDrynessLevelAttribute(val value: UInt?) + class SelectedDrynessLevelAttribute( + val value: UInt? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readSupportedDrynessLevelsAttribute(): SupportedDrynessLevelsAttribute { // Implementation needs to be added here @@ -51,12 +60,15 @@ class LaundryDryerControlsCluster( // Implementation needs to be added here } - suspend fun writeSelectedDrynessLevelAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeSelectedDrynessLevelAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeSelectedDrynessLevelAttribute( @@ -92,7 +104,10 @@ class LaundryDryerControlsCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -111,7 +126,10 @@ class LaundryDryerControlsCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -119,7 +137,10 @@ class LaundryDryerControlsCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherControlsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherControlsCluster.kt index e7d246777e25c2..ecd5aaca0d7a96 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherControlsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherControlsCluster.kt @@ -20,23 +20,34 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class LaundryWasherControlsCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class SpinSpeedsAttribute(val value: List?) +class LaundryWasherControlsCluster(private val controller: MatterController, private val endpointId: UShort) { + class SpinSpeedsAttribute( + val value: List? + ) - class SpinSpeedCurrentAttribute(val value: UByte?) + class SpinSpeedCurrentAttribute( + val value: UByte? + ) - class SupportedRinsesAttribute(val value: List?) + class SupportedRinsesAttribute( + val value: List? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readSpinSpeedsAttribute(): SpinSpeedsAttribute { // Implementation needs to be added here @@ -53,12 +64,15 @@ class LaundryWasherControlsCluster( // Implementation needs to be added here } - suspend fun writeSpinSpeedCurrentAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeSpinSpeedCurrentAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeSpinSpeedCurrentAttribute( @@ -72,15 +86,21 @@ class LaundryWasherControlsCluster( // Implementation needs to be added here } - suspend fun writeNumberOfRinsesAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNumberOfRinsesAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeNumberOfRinsesAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeNumberOfRinsesAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -121,7 +141,10 @@ class LaundryWasherControlsCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -140,7 +163,10 @@ class LaundryWasherControlsCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -148,7 +174,10 @@ class LaundryWasherControlsCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherModeCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherModeCluster.kt index 1145e4b1d8b056..92218ece31d165 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherModeCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherModeCluster.kt @@ -20,37 +20,48 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class LaundryWasherModeCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class ChangeToModeResponse(val status: UInt, val statusText: String?) +class LaundryWasherModeCluster(private val controller: MatterController, private val endpointId: UShort) { + class ChangeToModeResponse( + val status: UInt, + val statusText: String? + ) - class SupportedModesAttribute(val value: List) + class SupportedModesAttribute( + val value: List + ) - class StartUpModeAttribute(val value: UByte?) + class StartUpModeAttribute( + val value: UByte? + ) - class OnModeAttribute(val value: UByte?) + class OnModeAttribute( + val value: UByte? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun changeToMode( - newMode: UByte, - timedInvokeTimeoutMs: Int? = null - ): ChangeToModeResponse { + suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int? = null): ChangeToModeResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readSupportedModesAttribute(): SupportedModesAttribute { @@ -68,7 +79,10 @@ class LaundryWasherModeCluster( // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeCurrentModeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -76,12 +90,15 @@ class LaundryWasherModeCluster( // Implementation needs to be added here } - suspend fun writeStartUpModeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeStartUpModeAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeStartUpModeAttribute( @@ -95,15 +112,21 @@ class LaundryWasherModeCluster( // Implementation needs to be added here } - suspend fun writeOnModeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeOnModeAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOnModeAttribute(minInterval: Int, maxInterval: Int): OnModeAttribute { + suspend fun subscribeOnModeAttribute( + minInterval: Int, + maxInterval: Int + ): OnModeAttribute { // Implementation needs to be added here } @@ -133,7 +156,10 @@ class LaundryWasherModeCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -152,7 +178,10 @@ class LaundryWasherModeCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -160,7 +189,10 @@ class LaundryWasherModeCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LevelControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LevelControlCluster.kt index a20be7c6f73199..cd04a5b5d316c3 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LevelControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LevelControlCluster.kt @@ -20,77 +20,75 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class LevelControlCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class CurrentLevelAttribute(val value: UByte?) +class LevelControlCluster(private val controller: MatterController, private val endpointId: UShort) { + class CurrentLevelAttribute( + val value: UByte? + ) - class OnLevelAttribute(val value: UByte?) + class OnLevelAttribute( + val value: UByte? + ) - class OnTransitionTimeAttribute(val value: UShort?) + class OnTransitionTimeAttribute( + val value: UShort? + ) - class OffTransitionTimeAttribute(val value: UShort?) + class OffTransitionTimeAttribute( + val value: UShort? + ) - class DefaultMoveRateAttribute(val value: UByte?) + class DefaultMoveRateAttribute( + val value: UByte? + ) - class StartUpCurrentLevelAttribute(val value: UByte?) + class StartUpCurrentLevelAttribute( + val value: UByte? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun moveToLevel( - level: UByte, - transitionTime: UShort?, - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun moveToLevel(level: UByte, transitionTime: UShort?, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun move( - moveMode: UInt, - rate: UByte?, - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun move(moveMode: UInt, rate: UByte?, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 1L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun step( - stepMode: UInt, - stepSize: UByte, - transitionTime: UShort?, - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun step(stepMode: UInt, stepSize: UByte, transitionTime: UShort?, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun stop(optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { @@ -100,70 +98,47 @@ class LevelControlCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun moveToLevelWithOnOff( - level: UByte, - transitionTime: UShort?, - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun moveToLevelWithOnOff(level: UByte, transitionTime: UShort?, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 4L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun moveWithOnOff( - moveMode: UInt, - rate: UByte?, - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun moveWithOnOff(moveMode: UInt, rate: UByte?, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 5L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun stepWithOnOff( - stepMode: UInt, - stepSize: UByte, - transitionTime: UShort?, - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun stepWithOnOff(stepMode: UInt, stepSize: UByte, transitionTime: UShort?, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 6L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun stopWithOnOff( - optionsMask: UInt, - optionsOverride: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun stopWithOnOff(optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 7L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun moveToClosestFrequency(frequency: UShort, timedInvokeTimeoutMs: Int? = null) { @@ -173,7 +148,7 @@ class LevelControlCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readCurrentLevelAttribute(): CurrentLevelAttribute { @@ -191,7 +166,10 @@ class LevelControlCluster( // Implementation needs to be added here } - suspend fun subscribeRemainingTimeAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeRemainingTimeAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -199,7 +177,10 @@ class LevelControlCluster( // Implementation needs to be added here } - suspend fun subscribeMinLevelAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMinLevelAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -207,7 +188,10 @@ class LevelControlCluster( // Implementation needs to be added here } - suspend fun subscribeMaxLevelAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMaxLevelAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -215,7 +199,10 @@ class LevelControlCluster( // Implementation needs to be added here } - suspend fun subscribeCurrentFrequencyAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeCurrentFrequencyAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -223,7 +210,10 @@ class LevelControlCluster( // Implementation needs to be added here } - suspend fun subscribeMinFrequencyAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeMinFrequencyAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -231,7 +221,10 @@ class LevelControlCluster( // Implementation needs to be added here } - suspend fun subscribeMaxFrequencyAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeMaxFrequencyAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -239,15 +232,21 @@ class LevelControlCluster( // Implementation needs to be added here } - suspend fun writeOptionsAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeOptionsAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOptionsAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeOptionsAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -255,15 +254,21 @@ class LevelControlCluster( // Implementation needs to be added here } - suspend fun writeOnOffTransitionTimeAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeOnOffTransitionTimeAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOnOffTransitionTimeAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeOnOffTransitionTimeAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -271,15 +276,21 @@ class LevelControlCluster( // Implementation needs to be added here } - suspend fun writeOnLevelAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeOnLevelAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOnLevelAttribute(minInterval: Int, maxInterval: Int): OnLevelAttribute { + suspend fun subscribeOnLevelAttribute( + minInterval: Int, + maxInterval: Int + ): OnLevelAttribute { // Implementation needs to be added here } @@ -287,12 +298,15 @@ class LevelControlCluster( // Implementation needs to be added here } - suspend fun writeOnTransitionTimeAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeOnTransitionTimeAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeOnTransitionTimeAttribute( @@ -306,12 +320,15 @@ class LevelControlCluster( // Implementation needs to be added here } - suspend fun writeOffTransitionTimeAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeOffTransitionTimeAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeOffTransitionTimeAttribute( @@ -325,12 +342,15 @@ class LevelControlCluster( // Implementation needs to be added here } - suspend fun writeDefaultMoveRateAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeDefaultMoveRateAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeDefaultMoveRateAttribute( @@ -344,12 +364,15 @@ class LevelControlCluster( // Implementation needs to be added here } - suspend fun writeStartUpCurrentLevelAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeStartUpCurrentLevelAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeStartUpCurrentLevelAttribute( @@ -385,7 +408,10 @@ class LevelControlCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -404,7 +430,10 @@ class LevelControlCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -412,7 +441,10 @@ class LevelControlCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LocalizationConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LocalizationConfigurationCluster.kt index 4cd978399d01d7..3c1a6df195bd4b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LocalizationConfigurationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LocalizationConfigurationCluster.kt @@ -20,33 +20,46 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class LocalizationConfigurationCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class SupportedLocalesAttribute(val value: List) +class LocalizationConfigurationCluster(private val controller: MatterController, private val endpointId: UShort) { + class SupportedLocalesAttribute( + val value: List + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readActiveLocaleAttribute(): CharString { // Implementation needs to be added here } - suspend fun writeActiveLocaleAttribute(value: String, timedWriteTimeoutMs: Int? = null) { + suspend fun writeActiveLocaleAttribute( + value: String, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeActiveLocaleAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeActiveLocaleAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -87,7 +100,10 @@ class LocalizationConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -106,7 +122,10 @@ class LocalizationConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -114,7 +133,10 @@ class LocalizationConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LowPowerCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LowPowerCluster.kt index 74390f3a6fb4dd..e243e859a8fad3 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LowPowerCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LowPowerCluster.kt @@ -21,13 +21,21 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class LowPowerCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun sleep(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -36,7 +44,7 @@ class LowPowerCluster(private val controller: MatterController, private val endp // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { @@ -65,7 +73,10 @@ class LowPowerCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -84,7 +95,10 @@ class LowPowerCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -92,7 +106,10 @@ class LowPowerCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaInputCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaInputCluster.kt index 97ba8c68b95619..9623fcc5be60fb 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaInputCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaInputCluster.kt @@ -21,15 +21,25 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class MediaInputCluster(private val controller: MatterController, private val endpointId: UShort) { - class InputListAttribute(val value: List) + class InputListAttribute( + val value: List + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun selectInput(index: UByte, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -38,7 +48,7 @@ class MediaInputCluster(private val controller: MatterController, private val en // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun showInputStatus(timedInvokeTimeoutMs: Int? = null) { @@ -48,7 +58,7 @@ class MediaInputCluster(private val controller: MatterController, private val en // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun hideInputStatus(timedInvokeTimeoutMs: Int? = null) { @@ -58,7 +68,7 @@ class MediaInputCluster(private val controller: MatterController, private val en // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun renameInput(index: UByte, name: String, timedInvokeTimeoutMs: Int? = null) { @@ -68,14 +78,17 @@ class MediaInputCluster(private val controller: MatterController, private val en // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readInputListAttribute(): InputListAttribute { // Implementation needs to be added here } - suspend fun subscribeInputListAttribute(minInterval: Int, maxInterval: Int): InputListAttribute { + suspend fun subscribeInputListAttribute( + minInterval: Int, + maxInterval: Int + ): InputListAttribute { // Implementation needs to be added here } @@ -83,7 +96,10 @@ class MediaInputCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeCurrentInputAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeCurrentInputAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -113,7 +129,10 @@ class MediaInputCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -132,7 +151,10 @@ class MediaInputCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -140,7 +162,10 @@ class MediaInputCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaPlaybackCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaPlaybackCluster.kt index 9c38c74c79c543..e2cf05165b268c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaPlaybackCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaPlaybackCluster.kt @@ -20,29 +20,47 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class MediaPlaybackCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class PlaybackResponse(val status: UInt, val data: String?) +class MediaPlaybackCluster(private val controller: MatterController, private val endpointId: UShort) { + class PlaybackResponse( + val status: UInt, + val data: String? + ) - class StartTimeAttribute(val value: ULong?) + class StartTimeAttribute( + val value: ULong? + ) - class DurationAttribute(val value: ULong?) + class DurationAttribute( + val value: ULong? + ) - class SampledPositionAttribute(val value: MediaPlaybackClusterPlaybackPositionStruct?) + class SampledPositionAttribute( + val value: MediaPlaybackClusterPlaybackPositionStruct? + ) - class SeekRangeEndAttribute(val value: ULong?) + class SeekRangeEndAttribute( + val value: ULong? + ) - class SeekRangeStartAttribute(val value: ULong?) + class SeekRangeStartAttribute( + val value: ULong? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun play(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { val commandId = 0L @@ -51,7 +69,7 @@ class MediaPlaybackCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun pause(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { @@ -61,7 +79,7 @@ class MediaPlaybackCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun stop(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { @@ -71,7 +89,7 @@ class MediaPlaybackCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun startOver(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { @@ -81,7 +99,7 @@ class MediaPlaybackCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun previous(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { @@ -91,7 +109,7 @@ class MediaPlaybackCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun next(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { @@ -101,7 +119,7 @@ class MediaPlaybackCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun rewind(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { @@ -111,7 +129,7 @@ class MediaPlaybackCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun fastForward(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { @@ -121,33 +139,27 @@ class MediaPlaybackCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun skipForward( - deltaPositionMilliseconds: ULong, - timedInvokeTimeoutMs: Int? = null - ): PlaybackResponse { + suspend fun skipForward(deltaPositionMilliseconds: ULong, timedInvokeTimeoutMs: Int? = null): PlaybackResponse { val commandId = 8L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun skipBackward( - deltaPositionMilliseconds: ULong, - timedInvokeTimeoutMs: Int? = null - ): PlaybackResponse { + suspend fun skipBackward(deltaPositionMilliseconds: ULong, timedInvokeTimeoutMs: Int? = null): PlaybackResponse { val commandId = 9L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun seek(position: ULong, timedInvokeTimeoutMs: Int? = null): PlaybackResponse { @@ -157,14 +169,17 @@ class MediaPlaybackCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readCurrentStateAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeCurrentStateAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeCurrentStateAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -172,7 +187,10 @@ class MediaPlaybackCluster( // Implementation needs to be added here } - suspend fun subscribeStartTimeAttribute(minInterval: Int, maxInterval: Int): StartTimeAttribute { + suspend fun subscribeStartTimeAttribute( + minInterval: Int, + maxInterval: Int + ): StartTimeAttribute { // Implementation needs to be added here } @@ -180,7 +198,10 @@ class MediaPlaybackCluster( // Implementation needs to be added here } - suspend fun subscribeDurationAttribute(minInterval: Int, maxInterval: Int): DurationAttribute { + suspend fun subscribeDurationAttribute( + minInterval: Int, + maxInterval: Int + ): DurationAttribute { // Implementation needs to be added here } @@ -199,7 +220,10 @@ class MediaPlaybackCluster( // Implementation needs to be added here } - suspend fun subscribePlaybackSpeedAttribute(minInterval: Int, maxInterval: Int): Float { + suspend fun subscribePlaybackSpeedAttribute( + minInterval: Int, + maxInterval: Int + ): Float { // Implementation needs to be added here } @@ -251,7 +275,10 @@ class MediaPlaybackCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -270,7 +297,10 @@ class MediaPlaybackCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -278,7 +308,10 @@ class MediaPlaybackCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenControlCluster.kt index d655422ace9ae5..aae56b065ff16e 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenControlCluster.kt @@ -20,31 +20,31 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class MicrowaveOvenControlCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class GeneratedCommandListAttribute(val value: List) +class MicrowaveOvenControlCluster(private val controller: MatterController, private val endpointId: UShort) { + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun setCookingParameters( - cookMode: UByte?, - cookTime: UInt?, - powerSetting: UByte?, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun setCookingParameters(cookMode: UByte?, cookTime: UInt?, powerSetting: UByte?, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun addMoreTime(timeToAdd: UInt, timedInvokeTimeoutMs: Int? = null) { @@ -54,14 +54,17 @@ class MicrowaveOvenControlCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readCookTimeAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeCookTimeAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeCookTimeAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -69,7 +72,10 @@ class MicrowaveOvenControlCluster( // Implementation needs to be added here } - suspend fun subscribePowerSettingAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribePowerSettingAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -77,7 +83,10 @@ class MicrowaveOvenControlCluster( // Implementation needs to be added here } - suspend fun subscribeMinPowerAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMinPowerAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -85,7 +94,10 @@ class MicrowaveOvenControlCluster( // Implementation needs to be added here } - suspend fun subscribeMaxPowerAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMaxPowerAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -93,7 +105,10 @@ class MicrowaveOvenControlCluster( // Implementation needs to be added here } - suspend fun subscribePowerStepAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribePowerStepAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -123,7 +138,10 @@ class MicrowaveOvenControlCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -142,7 +160,10 @@ class MicrowaveOvenControlCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -150,7 +171,10 @@ class MicrowaveOvenControlCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenModeCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenModeCluster.kt index 1483cab29ac970..840df1554f6574 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenModeCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenModeCluster.kt @@ -20,19 +20,26 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class MicrowaveOvenModeCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class SupportedModesAttribute(val value: List) +class MicrowaveOvenModeCluster(private val controller: MatterController, private val endpointId: UShort) { + class SupportedModesAttribute( + val value: List + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readSupportedModesAttribute(): SupportedModesAttribute { // Implementation needs to be added here @@ -49,7 +56,10 @@ class MicrowaveOvenModeCluster( // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeCurrentModeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -79,7 +89,10 @@ class MicrowaveOvenModeCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -98,7 +111,10 @@ class MicrowaveOvenModeCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -106,7 +122,10 @@ class MicrowaveOvenModeCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ModeSelectCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ModeSelectCluster.kt index 22e63c94a66d54..2735f5ab77446a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ModeSelectCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ModeSelectCluster.kt @@ -21,21 +21,37 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class ModeSelectCluster(private val controller: MatterController, private val endpointId: UShort) { - class StandardNamespaceAttribute(val value: UInt?) + class StandardNamespaceAttribute( + val value: UInt? + ) - class SupportedModesAttribute(val value: List) + class SupportedModesAttribute( + val value: List + ) - class StartUpModeAttribute(val value: UByte?) + class StartUpModeAttribute( + val value: UByte? + ) - class OnModeAttribute(val value: UByte?) + class OnModeAttribute( + val value: UByte? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -44,14 +60,17 @@ class ModeSelectCluster(private val controller: MatterController, private val en // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readDescriptionAttribute(): CharString { // Implementation needs to be added here } - suspend fun subscribeDescriptionAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeDescriptionAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -81,7 +100,10 @@ class ModeSelectCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeCurrentModeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -89,12 +111,15 @@ class ModeSelectCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeStartUpModeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeStartUpModeAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeStartUpModeAttribute( @@ -108,15 +133,21 @@ class ModeSelectCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeOnModeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeOnModeAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOnModeAttribute(minInterval: Int, maxInterval: Int): OnModeAttribute { + suspend fun subscribeOnModeAttribute( + minInterval: Int, + maxInterval: Int + ): OnModeAttribute { // Implementation needs to be added here } @@ -146,7 +177,10 @@ class ModeSelectCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -165,7 +199,10 @@ class ModeSelectCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -173,7 +210,10 @@ class ModeSelectCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NetworkCommissioningCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NetworkCommissioningCluster.kt index 053471c8a853f7..52aeffdc3e768b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NetworkCommissioningCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NetworkCommissioningCluster.kt @@ -20,159 +20,147 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class NetworkCommissioningCluster( - private val controller: MatterController, - private val endpointId: UShort -) { +class NetworkCommissioningCluster(private val controller: MatterController, private val endpointId: UShort) { class ScanNetworksResponse( - val networkingStatus: UInt, - val debugText: String?, - val wiFiScanResults: List?, + val networkingStatus: UInt, + val debugText: String?, + val wiFiScanResults: List?, val threadScanResults: List? ) class NetworkConfigResponse( - val networkingStatus: UInt, - val debugText: String?, - val networkIndex: UByte?, - val clientIdentity: ByteArray?, + val networkingStatus: UInt, + val debugText: String?, + val networkIndex: UByte?, + val clientIdentity: ByteArray?, val possessionSignature: ByteArray? ) class ConnectNetworkResponse( - val networkingStatus: UInt, - val debugText: String?, + val networkingStatus: UInt, + val debugText: String?, val errorValue: Int? ) - class QueryIdentityResponse(val identity: ByteArray, val possessionSignature: ByteArray?) + class QueryIdentityResponse( + val identity: ByteArray, + val possessionSignature: ByteArray? + ) - class NetworksAttribute(val value: List) + class NetworksAttribute( + val value: List + ) - class LastNetworkingStatusAttribute(val value: UInt?) + class LastNetworkingStatusAttribute( + val value: UInt? + ) - class LastNetworkIDAttribute(val value: ByteArray?) + class LastNetworkIDAttribute( + val value: ByteArray? + ) - class LastConnectErrorValueAttribute(val value: Int?) + class LastConnectErrorValueAttribute( + val value: Int? + ) - class SupportedWiFiBandsAttribute(val value: List?) + class SupportedWiFiBandsAttribute( + val value: List? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun scanNetworks( - ssid: ByteArray?, - breadcrumb: ULong?, - timedInvokeTimeoutMs: Int? = null - ): ScanNetworksResponse { + suspend fun scanNetworks(ssid: ByteArray?, breadcrumb: ULong?, timedInvokeTimeoutMs: Int? = null): ScanNetworksResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } - } - - suspend fun addOrUpdateWiFiNetwork( - ssid: ByteArray, - credentials: ByteArray, - breadcrumb: ULong?, - networkIdentity: ByteArray?, - clientIdentifier: ByteArray?, - possessionNonce: ByteArray?, - timedInvokeTimeoutMs: Int? = null - ): NetworkConfigResponse { + } + } + + suspend fun addOrUpdateWiFiNetwork(ssid: ByteArray, credentials: ByteArray, breadcrumb: ULong?, networkIdentity: ByteArray?, clientIdentifier: ByteArray?, possessionNonce: ByteArray?, timedInvokeTimeoutMs: Int? = null): NetworkConfigResponse { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun addOrUpdateThreadNetwork( - operationalDataset: ByteArray, - breadcrumb: ULong?, - timedInvokeTimeoutMs: Int? = null - ): NetworkConfigResponse { + suspend fun addOrUpdateThreadNetwork(operationalDataset: ByteArray, breadcrumb: ULong?, timedInvokeTimeoutMs: Int? = null): NetworkConfigResponse { val commandId = 3L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun removeNetwork( - networkID: ByteArray, - breadcrumb: ULong?, - timedInvokeTimeoutMs: Int? = null - ): NetworkConfigResponse { + suspend fun removeNetwork(networkID: ByteArray, breadcrumb: ULong?, timedInvokeTimeoutMs: Int? = null): NetworkConfigResponse { val commandId = 4L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun connectNetwork( - networkID: ByteArray, - breadcrumb: ULong?, - timedInvokeTimeoutMs: Int? = null - ): ConnectNetworkResponse { + suspend fun connectNetwork(networkID: ByteArray, breadcrumb: ULong?, timedInvokeTimeoutMs: Int? = null): ConnectNetworkResponse { val commandId = 6L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun reorderNetwork( - networkID: ByteArray, - networkIndex: UByte, - breadcrumb: ULong?, - timedInvokeTimeoutMs: Int? = null - ): NetworkConfigResponse { + suspend fun reorderNetwork(networkID: ByteArray, networkIndex: UByte, breadcrumb: ULong?, timedInvokeTimeoutMs: Int? = null): NetworkConfigResponse { val commandId = 8L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun queryIdentity( - keyIdentifier: ByteArray, - possessionNonce: ByteArray?, - timedInvokeTimeoutMs: Int? = null - ): QueryIdentityResponse { + suspend fun queryIdentity(keyIdentifier: ByteArray, possessionNonce: ByteArray?, timedInvokeTimeoutMs: Int? = null): QueryIdentityResponse { val commandId = 9L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readMaxNetworksAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMaxNetworksAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMaxNetworksAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -180,7 +168,10 @@ class NetworkCommissioningCluster( // Implementation needs to be added here } - suspend fun subscribeNetworksAttribute(minInterval: Int, maxInterval: Int): NetworksAttribute { + suspend fun subscribeNetworksAttribute( + minInterval: Int, + maxInterval: Int + ): NetworksAttribute { // Implementation needs to be added here } @@ -188,7 +179,10 @@ class NetworkCommissioningCluster( // Implementation needs to be added here } - suspend fun subscribeScanMaxTimeSecondsAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeScanMaxTimeSecondsAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -196,7 +190,10 @@ class NetworkCommissioningCluster( // Implementation needs to be added here } - suspend fun subscribeConnectMaxTimeSecondsAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeConnectMaxTimeSecondsAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -204,15 +201,21 @@ class NetworkCommissioningCluster( // Implementation needs to be added here } - suspend fun writeInterfaceEnabledAttribute(value: Boolean, timedWriteTimeoutMs: Int? = null) { + suspend fun writeInterfaceEnabledAttribute( + value: Boolean, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInterfaceEnabledAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeInterfaceEnabledAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -275,7 +278,10 @@ class NetworkCommissioningCluster( // Implementation needs to be added here } - suspend fun subscribeThreadVersionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeThreadVersionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -305,7 +311,10 @@ class NetworkCommissioningCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -324,7 +333,10 @@ class NetworkCommissioningCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -332,7 +344,10 @@ class NetworkCommissioningCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NitrogenDioxideConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NitrogenDioxideConcentrationMeasurementCluster.kt index eb911e990eaf8f..93af8959f78ab3 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NitrogenDioxideConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NitrogenDioxideConcentrationMeasurementCluster.kt @@ -20,27 +20,42 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class NitrogenDioxideConcentrationMeasurementCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class MeasuredValueAttribute(val value: Float?) +class NitrogenDioxideConcentrationMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { + class MeasuredValueAttribute( + val value: Float? + ) - class MinMeasuredValueAttribute(val value: Float?) + class MinMeasuredValueAttribute( + val value: Float? + ) - class MaxMeasuredValueAttribute(val value: Float?) + class MaxMeasuredValueAttribute( + val value: Float? + ) - class PeakMeasuredValueAttribute(val value: Float?) + class PeakMeasuredValueAttribute( + val value: Float? + ) - class AverageMeasuredValueAttribute(val value: Float?) + class AverageMeasuredValueAttribute( + val value: Float? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -90,7 +105,10 @@ class NitrogenDioxideConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -120,7 +138,10 @@ class NitrogenDioxideConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { + suspend fun subscribeUncertaintyAttribute( + minInterval: Int, + maxInterval: Int + ): Float { // Implementation needs to be added here } @@ -128,7 +149,10 @@ class NitrogenDioxideConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMeasurementUnitAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -136,7 +160,10 @@ class NitrogenDioxideConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMeasurementMediumAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -144,7 +171,10 @@ class NitrogenDioxideConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeLevelValueAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -174,7 +204,10 @@ class NitrogenDioxideConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -193,7 +226,10 @@ class NitrogenDioxideConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -201,7 +237,10 @@ class NitrogenDioxideConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OccupancySensingCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OccupancySensingCluster.kt index 07cb5e7d9ab25d..3e1c227eed6a22 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OccupancySensingCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OccupancySensingCluster.kt @@ -20,23 +20,31 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class OccupancySensingCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class GeneratedCommandListAttribute(val value: List) +class OccupancySensingCluster(private val controller: MatterController, private val endpointId: UShort) { + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readOccupancyAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeOccupancyAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeOccupancyAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -44,7 +52,10 @@ class OccupancySensingCluster( // Implementation needs to be added here } - suspend fun subscribeOccupancySensorTypeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeOccupancySensorTypeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -65,13 +76,13 @@ class OccupancySensingCluster( suspend fun writePIROccupiedToUnoccupiedDelayAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribePIROccupiedToUnoccupiedDelayAttribute( @@ -87,13 +98,13 @@ class OccupancySensingCluster( suspend fun writePIRUnoccupiedToOccupiedDelayAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribePIRUnoccupiedToOccupiedDelayAttribute( @@ -109,13 +120,13 @@ class OccupancySensingCluster( suspend fun writePIRUnoccupiedToOccupiedThresholdAttribute( value: UByte, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribePIRUnoccupiedToOccupiedThresholdAttribute( @@ -131,13 +142,13 @@ class OccupancySensingCluster( suspend fun writeUltrasonicOccupiedToUnoccupiedDelayAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeUltrasonicOccupiedToUnoccupiedDelayAttribute( @@ -153,13 +164,13 @@ class OccupancySensingCluster( suspend fun writeUltrasonicUnoccupiedToOccupiedDelayAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeUltrasonicUnoccupiedToOccupiedDelayAttribute( @@ -175,13 +186,13 @@ class OccupancySensingCluster( suspend fun writeUltrasonicUnoccupiedToOccupiedThresholdAttribute( value: UByte, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeUltrasonicUnoccupiedToOccupiedThresholdAttribute( @@ -197,13 +208,13 @@ class OccupancySensingCluster( suspend fun writePhysicalContactOccupiedToUnoccupiedDelayAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribePhysicalContactOccupiedToUnoccupiedDelayAttribute( @@ -219,13 +230,13 @@ class OccupancySensingCluster( suspend fun writePhysicalContactUnoccupiedToOccupiedDelayAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribePhysicalContactUnoccupiedToOccupiedDelayAttribute( @@ -241,13 +252,13 @@ class OccupancySensingCluster( suspend fun writePhysicalContactUnoccupiedToOccupiedThresholdAttribute( value: UByte, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribePhysicalContactUnoccupiedToOccupiedThresholdAttribute( @@ -283,7 +294,10 @@ class OccupancySensingCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -302,7 +316,10 @@ class OccupancySensingCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -310,7 +327,10 @@ class OccupancySensingCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffCluster.kt index 76a0996babd8e3..fea3e3bd0f8591 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffCluster.kt @@ -21,15 +21,25 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class OnOffCluster(private val controller: MatterController, private val endpointId: UShort) { - class StartUpOnOffAttribute(val value: UInt?) + class StartUpOnOffAttribute( + val value: UInt? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun off(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -38,7 +48,7 @@ class OnOffCluster(private val controller: MatterController, private val endpoin // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun on(timedInvokeTimeoutMs: Int? = null) { @@ -48,7 +58,7 @@ class OnOffCluster(private val controller: MatterController, private val endpoin // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun toggle(timedInvokeTimeoutMs: Int? = null) { @@ -58,21 +68,17 @@ class OnOffCluster(private val controller: MatterController, private val endpoin // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun offWithEffect( - effectIdentifier: UInt, - effectVariant: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun offWithEffect(effectIdentifier: UInt, effectVariant: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 64L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun onWithRecallGlobalScene(timedInvokeTimeoutMs: Int? = null) { @@ -82,29 +88,27 @@ class OnOffCluster(private val controller: MatterController, private val endpoin // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun onWithTimedOff( - onOffControl: UInt, - onTime: UShort, - offWaitTime: UShort, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun onWithTimedOff(onOffControl: UInt, onTime: UShort, offWaitTime: UShort, timedInvokeTimeoutMs: Int? = null) { val commandId = 66L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readOnOffAttribute(): Boolean { // Implementation needs to be added here } - suspend fun subscribeOnOffAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeOnOffAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -112,7 +116,10 @@ class OnOffCluster(private val controller: MatterController, private val endpoin // Implementation needs to be added here } - suspend fun subscribeGlobalSceneControlAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeGlobalSceneControlAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -120,15 +127,21 @@ class OnOffCluster(private val controller: MatterController, private val endpoin // Implementation needs to be added here } - suspend fun writeOnTimeAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeOnTimeAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOnTimeAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeOnTimeAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -136,15 +149,21 @@ class OnOffCluster(private val controller: MatterController, private val endpoin // Implementation needs to be added here } - suspend fun writeOffWaitTimeAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeOffWaitTimeAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOffWaitTimeAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeOffWaitTimeAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -152,12 +171,15 @@ class OnOffCluster(private val controller: MatterController, private val endpoin // Implementation needs to be added here } - suspend fun writeStartUpOnOffAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeStartUpOnOffAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeStartUpOnOffAttribute( @@ -193,7 +215,10 @@ class OnOffCluster(private val controller: MatterController, private val endpoin // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -212,7 +237,10 @@ class OnOffCluster(private val controller: MatterController, private val endpoin // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -220,7 +248,10 @@ class OnOffCluster(private val controller: MatterController, private val endpoin // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffSwitchConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffSwitchConfigurationCluster.kt index 71c1585a842d8d..28a579235b276b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffSwitchConfigurationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffSwitchConfigurationCluster.kt @@ -20,23 +20,31 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class OnOffSwitchConfigurationCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class GeneratedCommandListAttribute(val value: List) +class OnOffSwitchConfigurationCluster(private val controller: MatterController, private val endpointId: UShort) { + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readSwitchTypeAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeSwitchTypeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeSwitchTypeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -44,15 +52,21 @@ class OnOffSwitchConfigurationCluster( // Implementation needs to be added here } - suspend fun writeSwitchActionsAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeSwitchActionsAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeSwitchActionsAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeSwitchActionsAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -82,7 +96,10 @@ class OnOffSwitchConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -101,7 +118,10 @@ class OnOffSwitchConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -109,7 +129,10 @@ class OnOffSwitchConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalCredentialsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalCredentialsCluster.kt index 66f2b93d0351d1..b965b9a0c86e54 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalCredentialsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalCredentialsCluster.kt @@ -20,104 +20,103 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class OperationalCredentialsCluster( - private val controller: MatterController, - private val endpointId: UShort -) { +class OperationalCredentialsCluster(private val controller: MatterController, private val endpointId: UShort) { class AttestationResponse( - val attestationElements: ByteArray, + val attestationElements: ByteArray, val attestationSignature: ByteArray ) - class CertificateChainResponse(val certificate: ByteArray) + class CertificateChainResponse( + val certificate: ByteArray + ) - class CSRResponse(val NOCSRElements: ByteArray, val attestationSignature: ByteArray) + class CSRResponse( + val NOCSRElements: ByteArray, + val attestationSignature: ByteArray + ) - class NOCResponse(val statusCode: UInt, val fabricIndex: UByte?, val debugText: String?) + class NOCResponse( + val statusCode: UInt, + val fabricIndex: UByte?, + val debugText: String? + ) - class NOCsAttribute(val value: List) + class NOCsAttribute( + val value: List + ) - class FabricsAttribute(val value: List) + class FabricsAttribute( + val value: List + ) - class TrustedRootCertificatesAttribute(val value: List) + class TrustedRootCertificatesAttribute( + val value: List + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun attestationRequest( - attestationNonce: ByteArray, - timedInvokeTimeoutMs: Int? = null - ): AttestationResponse { + suspend fun attestationRequest(attestationNonce: ByteArray, timedInvokeTimeoutMs: Int? = null): AttestationResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun certificateChainRequest( - certificateType: UInt, - timedInvokeTimeoutMs: Int? = null - ): CertificateChainResponse { + suspend fun certificateChainRequest(certificateType: UInt, timedInvokeTimeoutMs: Int? = null): CertificateChainResponse { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun CSRRequest( - CSRNonce: ByteArray, - isForUpdateNOC: Boolean?, - timedInvokeTimeoutMs: Int? = null - ): CSRResponse { + suspend fun CSRRequest(CSRNonce: ByteArray, isForUpdateNOC: Boolean?, timedInvokeTimeoutMs: Int? = null): CSRResponse { val commandId = 4L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun addNOC( - NOCValue: ByteArray, - ICACValue: ByteArray?, - IPKValue: ByteArray, - caseAdminSubject: ULong, - adminVendorId: UShort, - timedInvokeTimeoutMs: Int? = null - ): NOCResponse { + suspend fun addNOC(NOCValue: ByteArray, ICACValue: ByteArray?, IPKValue: ByteArray, caseAdminSubject: ULong, adminVendorId: UShort, timedInvokeTimeoutMs: Int? = null): NOCResponse { val commandId = 6L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun updateNOC( - NOCValue: ByteArray, - ICACValue: ByteArray?, - timedInvokeTimeoutMs: Int? = null - ): NOCResponse { + suspend fun updateNOC(NOCValue: ByteArray, ICACValue: ByteArray?, timedInvokeTimeoutMs: Int? = null): NOCResponse { val commandId = 7L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun updateFabricLabel(label: String, timedInvokeTimeoutMs: Int? = null): NOCResponse { @@ -127,7 +126,7 @@ class OperationalCredentialsCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun removeFabric(fabricIndex: UByte, timedInvokeTimeoutMs: Int? = null): NOCResponse { @@ -137,31 +136,34 @@ class OperationalCredentialsCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun addTrustedRootCertificate( - rootCACertificate: ByteArray, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun addTrustedRootCertificate(rootCACertificate: ByteArray, timedInvokeTimeoutMs: Int? = null) { val commandId = 11L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readNOCsAttribute(): NOCsAttribute { // Implementation needs to be added here } - suspend fun readNOCsAttributeWithFabricFilter(isFabricFiltered: Boolean): NOCsAttribute { + suspend fun readNOCsAttributeWithFabricFilter( + isFabricFiltered: Boolean + ): NOCsAttribute { // Implementation needs to be added here } - suspend fun subscribeNOCsAttribute(minInterval: Int, maxInterval: Int): NOCsAttribute { + + suspend fun subscribeNOCsAttribute( + minInterval: Int, + maxInterval: Int + ): NOCsAttribute { // Implementation needs to be added here } @@ -169,11 +171,17 @@ class OperationalCredentialsCluster( // Implementation needs to be added here } - suspend fun readFabricsAttributeWithFabricFilter(isFabricFiltered: Boolean): FabricsAttribute { + suspend fun readFabricsAttributeWithFabricFilter( + isFabricFiltered: Boolean + ): FabricsAttribute { // Implementation needs to be added here } - suspend fun subscribeFabricsAttribute(minInterval: Int, maxInterval: Int): FabricsAttribute { + + suspend fun subscribeFabricsAttribute( + minInterval: Int, + maxInterval: Int + ): FabricsAttribute { // Implementation needs to be added here } @@ -181,7 +189,10 @@ class OperationalCredentialsCluster( // Implementation needs to be added here } - suspend fun subscribeSupportedFabricsAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeSupportedFabricsAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -189,7 +200,10 @@ class OperationalCredentialsCluster( // Implementation needs to be added here } - suspend fun subscribeCommissionedFabricsAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeCommissionedFabricsAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -208,7 +222,10 @@ class OperationalCredentialsCluster( // Implementation needs to be added here } - suspend fun subscribeCurrentFabricIndexAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeCurrentFabricIndexAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -238,7 +255,10 @@ class OperationalCredentialsCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -257,7 +277,10 @@ class OperationalCredentialsCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -265,7 +288,10 @@ class OperationalCredentialsCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalStateCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalStateCluster.kt index 2b4222c80d4efd..2c2ab5bb9f2b3f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalStateCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalStateCluster.kt @@ -20,33 +20,46 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class OperationalStateCluster( - private val controller: MatterController, - private val endpointId: UShort -) { +class OperationalStateCluster(private val controller: MatterController, private val endpointId: UShort) { class OperationalCommandResponse( val commandResponseState: OperationalStateClusterErrorStateStruct ) - class PhaseListAttribute(val value: List?) + class PhaseListAttribute( + val value: List? + ) - class CurrentPhaseAttribute(val value: UByte?) + class CurrentPhaseAttribute( + val value: UByte? + ) - class CountdownTimeAttribute(val value: UInt?) + class CountdownTimeAttribute( + val value: UInt? + ) class OperationalStateListAttribute( val value: List ) - class OperationalErrorAttribute(val value: OperationalStateClusterErrorStateStruct) + class OperationalErrorAttribute( + val value: OperationalStateClusterErrorStateStruct + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun pause(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { val commandId = 0L @@ -55,7 +68,7 @@ class OperationalStateCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun stop(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { @@ -65,7 +78,7 @@ class OperationalStateCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun start(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { @@ -75,7 +88,7 @@ class OperationalStateCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun resume(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { @@ -85,14 +98,17 @@ class OperationalStateCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readPhaseListAttribute(): PhaseListAttribute { // Implementation needs to be added here } - suspend fun subscribePhaseListAttribute(minInterval: Int, maxInterval: Int): PhaseListAttribute { + suspend fun subscribePhaseListAttribute( + minInterval: Int, + maxInterval: Int + ): PhaseListAttribute { // Implementation needs to be added here } @@ -133,7 +149,10 @@ class OperationalStateCluster( // Implementation needs to be added here } - suspend fun subscribeOperationalStateAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeOperationalStateAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -174,7 +193,10 @@ class OperationalStateCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -193,7 +215,10 @@ class OperationalStateCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -201,7 +226,10 @@ class OperationalStateCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateProviderCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateProviderCluster.kt index df9a021ffe3d35..63b76d64fccf9c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateProviderCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateProviderCluster.kt @@ -20,77 +20,67 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class OtaSoftwareUpdateProviderCluster( - private val controller: MatterController, - private val endpointId: UShort -) { +class OtaSoftwareUpdateProviderCluster(private val controller: MatterController, private val endpointId: UShort) { class QueryImageResponse( - val status: UInt, - val delayedActionTime: UInt?, - val imageURI: String?, - val softwareVersion: UInt?, - val softwareVersionString: String?, - val updateToken: ByteArray?, - val userConsentNeeded: Boolean?, + val status: UInt, + val delayedActionTime: UInt?, + val imageURI: String?, + val softwareVersion: UInt?, + val softwareVersionString: String?, + val updateToken: ByteArray?, + val userConsentNeeded: Boolean?, val metadataForRequestor: ByteArray? ) - class ApplyUpdateResponse(val action: UInt, val delayedActionTime: UInt) + class ApplyUpdateResponse( + val action: UInt, + val delayedActionTime: UInt + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun queryImage( - vendorID: UShort, - productID: UShort, - softwareVersion: UInt, - protocolsSupported: List, - hardwareVersion: UShort?, - location: String?, - requestorCanConsent: Boolean?, - metadataForProvider: ByteArray?, - timedInvokeTimeoutMs: Int? = null - ): QueryImageResponse { + suspend fun queryImage(vendorID: UShort, productID: UShort, softwareVersion: UInt, protocolsSupported: List, hardwareVersion: UShort?, location: String?, requestorCanConsent: Boolean?, metadataForProvider: ByteArray?, timedInvokeTimeoutMs: Int? = null): QueryImageResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun applyUpdateRequest( - updateToken: ByteArray, - newVersion: UInt, - timedInvokeTimeoutMs: Int? = null - ): ApplyUpdateResponse { + suspend fun applyUpdateRequest(updateToken: ByteArray, newVersion: UInt, timedInvokeTimeoutMs: Int? = null): ApplyUpdateResponse { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun notifyUpdateApplied( - updateToken: ByteArray, - softwareVersion: UInt, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun notifyUpdateApplied(updateToken: ByteArray, softwareVersion: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 4L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { @@ -119,7 +109,10 @@ class OtaSoftwareUpdateProviderCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -138,7 +131,10 @@ class OtaSoftwareUpdateProviderCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -146,7 +142,10 @@ class OtaSoftwareUpdateProviderCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateRequestorCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateRequestorCluster.kt index 7e422996631bdb..df37a7f5be2a8e 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateRequestorCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateRequestorCluster.kt @@ -20,39 +20,39 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class OtaSoftwareUpdateRequestorCluster( - private val controller: MatterController, - private val endpointId: UShort -) { +class OtaSoftwareUpdateRequestorCluster(private val controller: MatterController, private val endpointId: UShort) { class DefaultOTAProvidersAttribute( val value: List ) - class UpdateStateProgressAttribute(val value: UByte?) + class UpdateStateProgressAttribute( + val value: UByte? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun announceOTAProvider( - providerNodeID: ULong, - vendorID: UShort, - announcementReason: UInt, - metadataForNode: ByteArray?, - endpoint: UShort, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun announceOTAProvider(providerNodeID: ULong, vendorID: UShort, announcementReason: UInt, metadataForNode: ByteArray?, endpoint: UShort, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readDefaultOTAProvidersAttribute(): DefaultOTAProvidersAttribute { @@ -65,15 +65,16 @@ class OtaSoftwareUpdateRequestorCluster( // Implementation needs to be added here } + suspend fun writeDefaultOTAProvidersAttribute( value: List, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeDefaultOTAProvidersAttribute( @@ -87,7 +88,10 @@ class OtaSoftwareUpdateRequestorCluster( // Implementation needs to be added here } - suspend fun subscribeUpdatePossibleAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeUpdatePossibleAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -95,7 +99,10 @@ class OtaSoftwareUpdateRequestorCluster( // Implementation needs to be added here } - suspend fun subscribeUpdateStateAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeUpdateStateAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -136,7 +143,10 @@ class OtaSoftwareUpdateRequestorCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -155,7 +165,10 @@ class OtaSoftwareUpdateRequestorCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -163,7 +176,10 @@ class OtaSoftwareUpdateRequestorCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OvenModeCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OvenModeCluster.kt index 267bd10448cca1..6c71a42947fa4d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OvenModeCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OvenModeCluster.kt @@ -21,33 +21,47 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class OvenModeCluster(private val controller: MatterController, private val endpointId: UShort) { - class ChangeToModeResponse(val status: UInt, val statusText: String?) + class ChangeToModeResponse( + val status: UInt, + val statusText: String? + ) - class SupportedModesAttribute(val value: List) + class SupportedModesAttribute( + val value: List + ) - class StartUpModeAttribute(val value: UByte?) + class StartUpModeAttribute( + val value: UByte? + ) - class OnModeAttribute(val value: UByte?) + class OnModeAttribute( + val value: UByte? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun changeToMode( - newMode: UByte, - timedInvokeTimeoutMs: Int? = null - ): ChangeToModeResponse { + suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int? = null): ChangeToModeResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readSupportedModesAttribute(): SupportedModesAttribute { @@ -65,7 +79,10 @@ class OvenModeCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeCurrentModeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -73,12 +90,15 @@ class OvenModeCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeStartUpModeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeStartUpModeAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeStartUpModeAttribute( @@ -92,15 +112,21 @@ class OvenModeCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeOnModeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeOnModeAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOnModeAttribute(minInterval: Int, maxInterval: Int): OnModeAttribute { + suspend fun subscribeOnModeAttribute( + minInterval: Int, + maxInterval: Int + ): OnModeAttribute { // Implementation needs to be added here } @@ -130,7 +156,10 @@ class OvenModeCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -149,7 +178,10 @@ class OvenModeCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -157,7 +189,10 @@ class OvenModeCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OzoneConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OzoneConcentrationMeasurementCluster.kt index 3542a8e090a8fb..1988086677eb73 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OzoneConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OzoneConcentrationMeasurementCluster.kt @@ -20,27 +20,42 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class OzoneConcentrationMeasurementCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class MeasuredValueAttribute(val value: Float?) +class OzoneConcentrationMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { + class MeasuredValueAttribute( + val value: Float? + ) - class MinMeasuredValueAttribute(val value: Float?) + class MinMeasuredValueAttribute( + val value: Float? + ) - class MaxMeasuredValueAttribute(val value: Float?) + class MaxMeasuredValueAttribute( + val value: Float? + ) - class PeakMeasuredValueAttribute(val value: Float?) + class PeakMeasuredValueAttribute( + val value: Float? + ) - class AverageMeasuredValueAttribute(val value: Float?) + class AverageMeasuredValueAttribute( + val value: Float? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -90,7 +105,10 @@ class OzoneConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -120,7 +138,10 @@ class OzoneConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { + suspend fun subscribeUncertaintyAttribute( + minInterval: Int, + maxInterval: Int + ): Float { // Implementation needs to be added here } @@ -128,7 +149,10 @@ class OzoneConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMeasurementUnitAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -136,7 +160,10 @@ class OzoneConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMeasurementMediumAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -144,7 +171,10 @@ class OzoneConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeLevelValueAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -174,7 +204,10 @@ class OzoneConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -193,7 +226,10 @@ class OzoneConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -201,7 +237,10 @@ class OzoneConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm10ConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm10ConcentrationMeasurementCluster.kt index f6cdf804a7642f..2ca5e68259782c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm10ConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm10ConcentrationMeasurementCluster.kt @@ -20,27 +20,42 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class Pm10ConcentrationMeasurementCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class MeasuredValueAttribute(val value: Float?) +class Pm10ConcentrationMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { + class MeasuredValueAttribute( + val value: Float? + ) - class MinMeasuredValueAttribute(val value: Float?) + class MinMeasuredValueAttribute( + val value: Float? + ) - class MaxMeasuredValueAttribute(val value: Float?) + class MaxMeasuredValueAttribute( + val value: Float? + ) - class PeakMeasuredValueAttribute(val value: Float?) + class PeakMeasuredValueAttribute( + val value: Float? + ) - class AverageMeasuredValueAttribute(val value: Float?) + class AverageMeasuredValueAttribute( + val value: Float? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -90,7 +105,10 @@ class Pm10ConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -120,7 +138,10 @@ class Pm10ConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { + suspend fun subscribeUncertaintyAttribute( + minInterval: Int, + maxInterval: Int + ): Float { // Implementation needs to be added here } @@ -128,7 +149,10 @@ class Pm10ConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMeasurementUnitAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -136,7 +160,10 @@ class Pm10ConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMeasurementMediumAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -144,7 +171,10 @@ class Pm10ConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeLevelValueAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -174,7 +204,10 @@ class Pm10ConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -193,7 +226,10 @@ class Pm10ConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -201,7 +237,10 @@ class Pm10ConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm1ConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm1ConcentrationMeasurementCluster.kt index f07c97fbfd4468..75260f50bc6e40 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm1ConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm1ConcentrationMeasurementCluster.kt @@ -20,27 +20,42 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class Pm1ConcentrationMeasurementCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class MeasuredValueAttribute(val value: Float?) +class Pm1ConcentrationMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { + class MeasuredValueAttribute( + val value: Float? + ) - class MinMeasuredValueAttribute(val value: Float?) + class MinMeasuredValueAttribute( + val value: Float? + ) - class MaxMeasuredValueAttribute(val value: Float?) + class MaxMeasuredValueAttribute( + val value: Float? + ) - class PeakMeasuredValueAttribute(val value: Float?) + class PeakMeasuredValueAttribute( + val value: Float? + ) - class AverageMeasuredValueAttribute(val value: Float?) + class AverageMeasuredValueAttribute( + val value: Float? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -90,7 +105,10 @@ class Pm1ConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -120,7 +138,10 @@ class Pm1ConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { + suspend fun subscribeUncertaintyAttribute( + minInterval: Int, + maxInterval: Int + ): Float { // Implementation needs to be added here } @@ -128,7 +149,10 @@ class Pm1ConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMeasurementUnitAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -136,7 +160,10 @@ class Pm1ConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMeasurementMediumAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -144,7 +171,10 @@ class Pm1ConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeLevelValueAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -174,7 +204,10 @@ class Pm1ConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -193,7 +226,10 @@ class Pm1ConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -201,7 +237,10 @@ class Pm1ConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm25ConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm25ConcentrationMeasurementCluster.kt index 424658e2bd6e0b..a3cddf24db9256 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm25ConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm25ConcentrationMeasurementCluster.kt @@ -20,27 +20,42 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class Pm25ConcentrationMeasurementCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class MeasuredValueAttribute(val value: Float?) +class Pm25ConcentrationMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { + class MeasuredValueAttribute( + val value: Float? + ) - class MinMeasuredValueAttribute(val value: Float?) + class MinMeasuredValueAttribute( + val value: Float? + ) - class MaxMeasuredValueAttribute(val value: Float?) + class MaxMeasuredValueAttribute( + val value: Float? + ) - class PeakMeasuredValueAttribute(val value: Float?) + class PeakMeasuredValueAttribute( + val value: Float? + ) - class AverageMeasuredValueAttribute(val value: Float?) + class AverageMeasuredValueAttribute( + val value: Float? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -90,7 +105,10 @@ class Pm25ConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -120,7 +138,10 @@ class Pm25ConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { + suspend fun subscribeUncertaintyAttribute( + minInterval: Int, + maxInterval: Int + ): Float { // Implementation needs to be added here } @@ -128,7 +149,10 @@ class Pm25ConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMeasurementUnitAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -136,7 +160,10 @@ class Pm25ConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMeasurementMediumAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -144,7 +171,10 @@ class Pm25ConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeLevelValueAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -174,7 +204,10 @@ class Pm25ConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -193,7 +226,10 @@ class Pm25ConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -201,7 +237,10 @@ class Pm25ConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceCluster.kt index 6dc18689f87f2d..6373b41ea7ad79 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceCluster.kt @@ -21,43 +21,78 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class PowerSourceCluster(private val controller: MatterController, private val endpointId: UShort) { - class WiredAssessedInputVoltageAttribute(val value: UInt?) + class WiredAssessedInputVoltageAttribute( + val value: UInt? + ) - class WiredAssessedInputFrequencyAttribute(val value: UShort?) + class WiredAssessedInputFrequencyAttribute( + val value: UShort? + ) - class WiredAssessedCurrentAttribute(val value: UInt?) + class WiredAssessedCurrentAttribute( + val value: UInt? + ) - class ActiveWiredFaultsAttribute(val value: List?) + class ActiveWiredFaultsAttribute( + val value: List? + ) - class BatVoltageAttribute(val value: UInt?) + class BatVoltageAttribute( + val value: UInt? + ) - class BatPercentRemainingAttribute(val value: UByte?) + class BatPercentRemainingAttribute( + val value: UByte? + ) - class BatTimeRemainingAttribute(val value: UInt?) + class BatTimeRemainingAttribute( + val value: UInt? + ) - class ActiveBatFaultsAttribute(val value: List?) + class ActiveBatFaultsAttribute( + val value: List? + ) - class BatTimeToFullChargeAttribute(val value: UInt?) + class BatTimeToFullChargeAttribute( + val value: UInt? + ) - class BatChargingCurrentAttribute(val value: UInt?) + class BatChargingCurrentAttribute( + val value: UInt? + ) - class ActiveBatChargeFaultsAttribute(val value: List?) + class ActiveBatChargeFaultsAttribute( + val value: List? + ) - class EndpointListAttribute(val value: List) + class EndpointListAttribute( + val value: List + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readStatusAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeStatusAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeStatusAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -65,7 +100,10 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeOrderAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeOrderAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -73,7 +111,10 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeDescriptionAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeDescriptionAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -103,7 +144,10 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeWiredCurrentTypeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeWiredCurrentTypeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -122,7 +166,10 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeWiredNominalVoltageAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeWiredNominalVoltageAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -130,7 +177,10 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeWiredMaximumCurrentAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeWiredMaximumCurrentAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -138,7 +188,10 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeWiredPresentAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeWiredPresentAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -190,7 +243,10 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeBatChargeLevelAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeBatChargeLevelAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -198,7 +254,10 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeBatReplacementNeededAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeBatReplacementNeededAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -206,7 +265,10 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeBatReplaceabilityAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeBatReplaceabilityAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -214,7 +276,10 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeBatPresentAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeBatPresentAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -244,7 +309,10 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeBatCommonDesignationAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeBatCommonDesignationAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -252,7 +320,10 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeBatANSIDesignationAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeBatANSIDesignationAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -260,7 +331,10 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeBatIECDesignationAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeBatIECDesignationAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -268,7 +342,10 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeBatApprovedChemistryAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeBatApprovedChemistryAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -276,7 +353,10 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeBatCapacityAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeBatCapacityAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -284,7 +364,10 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeBatQuantityAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeBatQuantityAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -292,7 +375,10 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeBatChargeStateAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeBatChargeStateAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -377,7 +463,10 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -396,7 +485,10 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -404,7 +496,10 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceConfigurationCluster.kt index b90d42743b65f8..33c8bf56f12f0d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceConfigurationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceConfigurationCluster.kt @@ -20,25 +20,35 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class PowerSourceConfigurationCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class SourcesAttribute(val value: List) +class PowerSourceConfigurationCluster(private val controller: MatterController, private val endpointId: UShort) { + class SourcesAttribute( + val value: List + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readSourcesAttribute(): SourcesAttribute { // Implementation needs to be added here } - suspend fun subscribeSourcesAttribute(minInterval: Int, maxInterval: Int): SourcesAttribute { + suspend fun subscribeSourcesAttribute( + minInterval: Int, + maxInterval: Int + ): SourcesAttribute { // Implementation needs to be added here } @@ -68,7 +78,10 @@ class PowerSourceConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -87,7 +100,10 @@ class PowerSourceConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -95,7 +111,10 @@ class PowerSourceConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PressureMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PressureMeasurementCluster.kt index 64c49e903d5988..8f862457bc1e1f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PressureMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PressureMeasurementCluster.kt @@ -20,29 +20,46 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class PressureMeasurementCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class MeasuredValueAttribute(val value: Short?) +class PressureMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { + class MeasuredValueAttribute( + val value: Short? + ) - class MinMeasuredValueAttribute(val value: Short?) + class MinMeasuredValueAttribute( + val value: Short? + ) - class MaxMeasuredValueAttribute(val value: Short?) + class MaxMeasuredValueAttribute( + val value: Short? + ) - class ScaledValueAttribute(val value: Short?) + class ScaledValueAttribute( + val value: Short? + ) - class MinScaledValueAttribute(val value: Short?) + class MinScaledValueAttribute( + val value: Short? + ) - class MaxScaledValueAttribute(val value: Short?) + class MaxScaledValueAttribute( + val value: Short? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -81,7 +98,10 @@ class PressureMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeToleranceAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -122,7 +142,10 @@ class PressureMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeScaledToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeScaledToleranceAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -130,7 +153,10 @@ class PressureMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeScaleAttribute(minInterval: Int, maxInterval: Int): Byte { + suspend fun subscribeScaleAttribute( + minInterval: Int, + maxInterval: Int + ): Byte { // Implementation needs to be added here } @@ -160,7 +186,10 @@ class PressureMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -179,7 +208,10 @@ class PressureMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -187,7 +219,10 @@ class PressureMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyConfigurationCluster.kt index fe0e582c9d45da..4b129945947718 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyConfigurationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyConfigurationCluster.kt @@ -20,17 +20,22 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class ProxyConfigurationCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class GeneratedCommandListAttribute(val value: List) +class ProxyConfigurationCluster(private val controller: MatterController, private val endpointId: UShort) { + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { // Implementation needs to be added here @@ -58,7 +63,10 @@ class ProxyConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -77,7 +85,10 @@ class ProxyConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -85,7 +96,10 @@ class ProxyConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyDiscoveryCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyDiscoveryCluster.kt index fd1c428646a714..063b71997bc4c5 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyDiscoveryCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyDiscoveryCluster.kt @@ -20,17 +20,22 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class ProxyDiscoveryCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class GeneratedCommandListAttribute(val value: List) +class ProxyDiscoveryCluster(private val controller: MatterController, private val endpointId: UShort) { + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { // Implementation needs to be added here @@ -58,7 +63,10 @@ class ProxyDiscoveryCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -77,7 +85,10 @@ class ProxyDiscoveryCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -85,7 +96,10 @@ class ProxyDiscoveryCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyValidCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyValidCluster.kt index 589502096ac382..72fc97624b8205 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyValidCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyValidCluster.kt @@ -21,13 +21,21 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class ProxyValidCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { // Implementation needs to be added here @@ -55,7 +63,10 @@ class ProxyValidCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -74,7 +85,10 @@ class ProxyValidCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -82,7 +96,10 @@ class ProxyValidCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PulseWidthModulationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PulseWidthModulationCluster.kt index d7e43df772c99b..a366298b43d571 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PulseWidthModulationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PulseWidthModulationCluster.kt @@ -20,17 +20,22 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class PulseWidthModulationCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class GeneratedCommandListAttribute(val value: List) +class PulseWidthModulationCluster(private val controller: MatterController, private val endpointId: UShort) { + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { // Implementation needs to be added here @@ -58,7 +63,10 @@ class PulseWidthModulationCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -77,7 +85,10 @@ class PulseWidthModulationCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -85,7 +96,10 @@ class PulseWidthModulationCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PumpConfigurationAndControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PumpConfigurationAndControlCluster.kt index 501850ac2264d9..68c23e188fdeb1 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PumpConfigurationAndControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PumpConfigurationAndControlCluster.kt @@ -20,53 +20,94 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class PumpConfigurationAndControlCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class MaxPressureAttribute(val value: Short?) +class PumpConfigurationAndControlCluster(private val controller: MatterController, private val endpointId: UShort) { + class MaxPressureAttribute( + val value: Short? + ) - class MaxSpeedAttribute(val value: UShort?) + class MaxSpeedAttribute( + val value: UShort? + ) - class MaxFlowAttribute(val value: UShort?) + class MaxFlowAttribute( + val value: UShort? + ) - class MinConstPressureAttribute(val value: Short?) + class MinConstPressureAttribute( + val value: Short? + ) - class MaxConstPressureAttribute(val value: Short?) + class MaxConstPressureAttribute( + val value: Short? + ) - class MinCompPressureAttribute(val value: Short?) + class MinCompPressureAttribute( + val value: Short? + ) - class MaxCompPressureAttribute(val value: Short?) + class MaxCompPressureAttribute( + val value: Short? + ) - class MinConstSpeedAttribute(val value: UShort?) + class MinConstSpeedAttribute( + val value: UShort? + ) - class MaxConstSpeedAttribute(val value: UShort?) + class MaxConstSpeedAttribute( + val value: UShort? + ) - class MinConstFlowAttribute(val value: UShort?) + class MinConstFlowAttribute( + val value: UShort? + ) - class MaxConstFlowAttribute(val value: UShort?) + class MaxConstFlowAttribute( + val value: UShort? + ) - class MinConstTempAttribute(val value: Short?) + class MinConstTempAttribute( + val value: Short? + ) - class MaxConstTempAttribute(val value: Short?) + class MaxConstTempAttribute( + val value: Short? + ) - class CapacityAttribute(val value: Short?) + class CapacityAttribute( + val value: Short? + ) - class SpeedAttribute(val value: UShort?) + class SpeedAttribute( + val value: UShort? + ) - class LifetimeRunningHoursAttribute(val value: UInt?) + class LifetimeRunningHoursAttribute( + val value: UInt? + ) - class PowerAttribute(val value: UInt?) + class PowerAttribute( + val value: UInt? + ) - class LifetimeEnergyConsumedAttribute(val value: UInt?) + class LifetimeEnergyConsumedAttribute( + val value: UInt? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readMaxPressureAttribute(): MaxPressureAttribute { // Implementation needs to be added here @@ -83,7 +124,10 @@ class PumpConfigurationAndControlCluster( // Implementation needs to be added here } - suspend fun subscribeMaxSpeedAttribute(minInterval: Int, maxInterval: Int): MaxSpeedAttribute { + suspend fun subscribeMaxSpeedAttribute( + minInterval: Int, + maxInterval: Int + ): MaxSpeedAttribute { // Implementation needs to be added here } @@ -91,7 +135,10 @@ class PumpConfigurationAndControlCluster( // Implementation needs to be added here } - suspend fun subscribeMaxFlowAttribute(minInterval: Int, maxInterval: Int): MaxFlowAttribute { + suspend fun subscribeMaxFlowAttribute( + minInterval: Int, + maxInterval: Int + ): MaxFlowAttribute { // Implementation needs to be added here } @@ -209,7 +256,10 @@ class PumpConfigurationAndControlCluster( // Implementation needs to be added here } - suspend fun subscribePumpStatusAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribePumpStatusAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -217,7 +267,10 @@ class PumpConfigurationAndControlCluster( // Implementation needs to be added here } - suspend fun subscribeEffectiveOperationModeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeEffectiveOperationModeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -225,7 +278,10 @@ class PumpConfigurationAndControlCluster( // Implementation needs to be added here } - suspend fun subscribeEffectiveControlModeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeEffectiveControlModeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -233,7 +289,10 @@ class PumpConfigurationAndControlCluster( // Implementation needs to be added here } - suspend fun subscribeCapacityAttribute(minInterval: Int, maxInterval: Int): CapacityAttribute { + suspend fun subscribeCapacityAttribute( + minInterval: Int, + maxInterval: Int + ): CapacityAttribute { // Implementation needs to be added here } @@ -241,7 +300,10 @@ class PumpConfigurationAndControlCluster( // Implementation needs to be added here } - suspend fun subscribeSpeedAttribute(minInterval: Int, maxInterval: Int): SpeedAttribute { + suspend fun subscribeSpeedAttribute( + minInterval: Int, + maxInterval: Int + ): SpeedAttribute { // Implementation needs to be added here } @@ -249,12 +311,15 @@ class PumpConfigurationAndControlCluster( // Implementation needs to be added here } - suspend fun writeLifetimeRunningHoursAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeLifetimeRunningHoursAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeLifetimeRunningHoursAttribute( @@ -268,7 +333,10 @@ class PumpConfigurationAndControlCluster( // Implementation needs to be added here } - suspend fun subscribePowerAttribute(minInterval: Int, maxInterval: Int): PowerAttribute { + suspend fun subscribePowerAttribute( + minInterval: Int, + maxInterval: Int + ): PowerAttribute { // Implementation needs to be added here } @@ -276,12 +344,15 @@ class PumpConfigurationAndControlCluster( // Implementation needs to be added here } - suspend fun writeLifetimeEnergyConsumedAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeLifetimeEnergyConsumedAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeLifetimeEnergyConsumedAttribute( @@ -295,15 +366,21 @@ class PumpConfigurationAndControlCluster( // Implementation needs to be added here } - suspend fun writeOperationModeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeOperationModeAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOperationModeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeOperationModeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -311,15 +388,21 @@ class PumpConfigurationAndControlCluster( // Implementation needs to be added here } - suspend fun writeControlModeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeControlModeAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeControlModeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeControlModeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -349,7 +432,10 @@ class PumpConfigurationAndControlCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -368,7 +454,10 @@ class PumpConfigurationAndControlCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -376,7 +465,10 @@ class PumpConfigurationAndControlCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RadonConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RadonConcentrationMeasurementCluster.kt index 5c54c5f5fee2fe..aae26a06cd0c8b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RadonConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RadonConcentrationMeasurementCluster.kt @@ -20,27 +20,42 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class RadonConcentrationMeasurementCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class MeasuredValueAttribute(val value: Float?) +class RadonConcentrationMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { + class MeasuredValueAttribute( + val value: Float? + ) - class MinMeasuredValueAttribute(val value: Float?) + class MinMeasuredValueAttribute( + val value: Float? + ) - class MaxMeasuredValueAttribute(val value: Float?) + class MaxMeasuredValueAttribute( + val value: Float? + ) - class PeakMeasuredValueAttribute(val value: Float?) + class PeakMeasuredValueAttribute( + val value: Float? + ) - class AverageMeasuredValueAttribute(val value: Float?) + class AverageMeasuredValueAttribute( + val value: Float? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -90,7 +105,10 @@ class RadonConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -120,7 +138,10 @@ class RadonConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { + suspend fun subscribeUncertaintyAttribute( + minInterval: Int, + maxInterval: Int + ): Float { // Implementation needs to be added here } @@ -128,7 +149,10 @@ class RadonConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMeasurementUnitAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -136,7 +160,10 @@ class RadonConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMeasurementMediumAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -144,7 +171,10 @@ class RadonConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeLevelValueAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -174,7 +204,10 @@ class RadonConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -193,7 +226,10 @@ class RadonConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -201,7 +237,10 @@ class RadonConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAlarmCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAlarmCluster.kt index 9aebd7443d205e..5912b4d412ad70 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAlarmCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAlarmCluster.kt @@ -20,23 +20,31 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class RefrigeratorAlarmCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class GeneratedCommandListAttribute(val value: List) +class RefrigeratorAlarmCluster(private val controller: MatterController, private val endpointId: UShort) { + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readMaskAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeMaskAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeMaskAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -44,7 +52,10 @@ class RefrigeratorAlarmCluster( // Implementation needs to be added here } - suspend fun subscribeStateAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeStateAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -52,7 +63,10 @@ class RefrigeratorAlarmCluster( // Implementation needs to be added here } - suspend fun subscribeSupportedAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeSupportedAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -82,7 +96,10 @@ class RefrigeratorAlarmCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -101,7 +118,10 @@ class RefrigeratorAlarmCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -109,7 +129,10 @@ class RefrigeratorAlarmCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAndTemperatureControlledCabinetModeCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAndTemperatureControlledCabinetModeCluster.kt index bfb589a815d089..14ccfcb4a53e45 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAndTemperatureControlledCabinetModeCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAndTemperatureControlledCabinetModeCluster.kt @@ -20,39 +20,48 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class RefrigeratorAndTemperatureControlledCabinetModeCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class ChangeToModeResponse(val status: UInt, val statusText: String?) +class RefrigeratorAndTemperatureControlledCabinetModeCluster(private val controller: MatterController, private val endpointId: UShort) { + class ChangeToModeResponse( + val status: UInt, + val statusText: String? + ) class SupportedModesAttribute( val value: List ) - class StartUpModeAttribute(val value: UByte?) + class StartUpModeAttribute( + val value: UByte? + ) - class OnModeAttribute(val value: UByte?) + class OnModeAttribute( + val value: UByte? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun changeToMode( - newMode: UByte, - timedInvokeTimeoutMs: Int? = null - ): ChangeToModeResponse { + suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int? = null): ChangeToModeResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readSupportedModesAttribute(): SupportedModesAttribute { @@ -70,7 +79,10 @@ class RefrigeratorAndTemperatureControlledCabinetModeCluster( // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeCurrentModeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -78,12 +90,15 @@ class RefrigeratorAndTemperatureControlledCabinetModeCluster( // Implementation needs to be added here } - suspend fun writeStartUpModeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeStartUpModeAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeStartUpModeAttribute( @@ -97,15 +112,21 @@ class RefrigeratorAndTemperatureControlledCabinetModeCluster( // Implementation needs to be added here } - suspend fun writeOnModeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeOnModeAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOnModeAttribute(minInterval: Int, maxInterval: Int): OnModeAttribute { + suspend fun subscribeOnModeAttribute( + minInterval: Int, + maxInterval: Int + ): OnModeAttribute { // Implementation needs to be added here } @@ -135,7 +156,10 @@ class RefrigeratorAndTemperatureControlledCabinetModeCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -154,7 +178,10 @@ class RefrigeratorAndTemperatureControlledCabinetModeCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -162,7 +189,10 @@ class RefrigeratorAndTemperatureControlledCabinetModeCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RelativeHumidityMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RelativeHumidityMeasurementCluster.kt index d2240d51f6ae74..25235175a9b3ff 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RelativeHumidityMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RelativeHumidityMeasurementCluster.kt @@ -20,23 +20,34 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class RelativeHumidityMeasurementCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class MeasuredValueAttribute(val value: UShort?) +class RelativeHumidityMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { + class MeasuredValueAttribute( + val value: UShort? + ) - class MinMeasuredValueAttribute(val value: UShort?) + class MinMeasuredValueAttribute( + val value: UShort? + ) - class MaxMeasuredValueAttribute(val value: UShort?) + class MaxMeasuredValueAttribute( + val value: UShort? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -75,7 +86,10 @@ class RelativeHumidityMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeToleranceAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -105,7 +119,10 @@ class RelativeHumidityMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -124,7 +141,10 @@ class RelativeHumidityMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -132,7 +152,10 @@ class RelativeHumidityMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcCleanModeCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcCleanModeCluster.kt index 2a5620f647505c..04f82bfef9e2a2 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcCleanModeCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcCleanModeCluster.kt @@ -20,35 +20,44 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class RvcCleanModeCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class ChangeToModeResponse(val status: UInt, val statusText: String?) +class RvcCleanModeCluster(private val controller: MatterController, private val endpointId: UShort) { + class ChangeToModeResponse( + val status: UInt, + val statusText: String? + ) - class SupportedModesAttribute(val value: List) + class SupportedModesAttribute( + val value: List + ) - class OnModeAttribute(val value: UByte?) + class OnModeAttribute( + val value: UByte? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun changeToMode( - newMode: UByte, - timedInvokeTimeoutMs: Int? = null - ): ChangeToModeResponse { + suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int? = null): ChangeToModeResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readSupportedModesAttribute(): SupportedModesAttribute { @@ -66,7 +75,10 @@ class RvcCleanModeCluster( // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeCurrentModeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -74,15 +86,21 @@ class RvcCleanModeCluster( // Implementation needs to be added here } - suspend fun writeOnModeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeOnModeAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOnModeAttribute(minInterval: Int, maxInterval: Int): OnModeAttribute { + suspend fun subscribeOnModeAttribute( + minInterval: Int, + maxInterval: Int + ): OnModeAttribute { // Implementation needs to be added here } @@ -112,7 +130,10 @@ class RvcCleanModeCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -131,7 +152,10 @@ class RvcCleanModeCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -139,7 +163,10 @@ class RvcCleanModeCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcOperationalStateCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcOperationalStateCluster.kt index abb27510e5590c..1b48a6e8d35760 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcOperationalStateCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcOperationalStateCluster.kt @@ -20,33 +20,46 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class RvcOperationalStateCluster( - private val controller: MatterController, - private val endpointId: UShort -) { +class RvcOperationalStateCluster(private val controller: MatterController, private val endpointId: UShort) { class OperationalCommandResponse( val commandResponseState: RvcOperationalStateClusterErrorStateStruct ) - class PhaseListAttribute(val value: List?) + class PhaseListAttribute( + val value: List? + ) - class CurrentPhaseAttribute(val value: UByte?) + class CurrentPhaseAttribute( + val value: UByte? + ) - class CountdownTimeAttribute(val value: UInt?) + class CountdownTimeAttribute( + val value: UInt? + ) class OperationalStateListAttribute( val value: List ) - class OperationalErrorAttribute(val value: RvcOperationalStateClusterErrorStateStruct) + class OperationalErrorAttribute( + val value: RvcOperationalStateClusterErrorStateStruct + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun pause(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { val commandId = 0L @@ -55,7 +68,7 @@ class RvcOperationalStateCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun stop(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { @@ -65,7 +78,7 @@ class RvcOperationalStateCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun start(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { @@ -75,7 +88,7 @@ class RvcOperationalStateCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun resume(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { @@ -85,14 +98,17 @@ class RvcOperationalStateCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readPhaseListAttribute(): PhaseListAttribute { // Implementation needs to be added here } - suspend fun subscribePhaseListAttribute(minInterval: Int, maxInterval: Int): PhaseListAttribute { + suspend fun subscribePhaseListAttribute( + minInterval: Int, + maxInterval: Int + ): PhaseListAttribute { // Implementation needs to be added here } @@ -133,7 +149,10 @@ class RvcOperationalStateCluster( // Implementation needs to be added here } - suspend fun subscribeOperationalStateAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeOperationalStateAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -174,7 +193,10 @@ class RvcOperationalStateCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -193,7 +215,10 @@ class RvcOperationalStateCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -201,7 +226,10 @@ class RvcOperationalStateCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcRunModeCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcRunModeCluster.kt index 6c4879b6144e03..cc6fba26761217 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcRunModeCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcRunModeCluster.kt @@ -21,31 +21,43 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class RvcRunModeCluster(private val controller: MatterController, private val endpointId: UShort) { - class ChangeToModeResponse(val status: UInt, val statusText: String?) + class ChangeToModeResponse( + val status: UInt, + val statusText: String? + ) - class SupportedModesAttribute(val value: List) + class SupportedModesAttribute( + val value: List + ) - class OnModeAttribute(val value: UByte?) + class OnModeAttribute( + val value: UByte? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun changeToMode( - newMode: UByte, - timedInvokeTimeoutMs: Int? = null - ): ChangeToModeResponse { + suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int? = null): ChangeToModeResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readSupportedModesAttribute(): SupportedModesAttribute { @@ -63,7 +75,10 @@ class RvcRunModeCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeCurrentModeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -71,15 +86,21 @@ class RvcRunModeCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeOnModeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeOnModeAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOnModeAttribute(minInterval: Int, maxInterval: Int): OnModeAttribute { + suspend fun subscribeOnModeAttribute( + minInterval: Int, + maxInterval: Int + ): OnModeAttribute { // Implementation needs to be added here } @@ -109,7 +130,10 @@ class RvcRunModeCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -128,7 +152,10 @@ class RvcRunModeCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -136,7 +163,10 @@ class RvcRunModeCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SampleMeiCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SampleMeiCluster.kt index a19737df6c3d4e..8e08927e8394e0 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SampleMeiCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SampleMeiCluster.kt @@ -21,15 +21,25 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class SampleMeiCluster(private val controller: MatterController, private val endpointId: UShort) { - class AddArgumentsResponse(val returnValue: UByte) + class AddArgumentsResponse( + val returnValue: UByte + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun ping(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -38,36 +48,38 @@ class SampleMeiCluster(private val controller: MatterController, private val end // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun addArguments( - arg1: UByte, - arg2: UByte, - timedInvokeTimeoutMs: Int? = null - ): AddArgumentsResponse { + suspend fun addArguments(arg1: UByte, arg2: UByte, timedInvokeTimeoutMs: Int? = null): AddArgumentsResponse { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readFlipFlopAttribute(): Boolean { // Implementation needs to be added here } - suspend fun writeFlipFlopAttribute(value: Boolean, timedWriteTimeoutMs: Int? = null) { + suspend fun writeFlipFlopAttribute( + value: Boolean, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeFlipFlopAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeFlipFlopAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -97,7 +109,10 @@ class SampleMeiCluster(private val controller: MatterController, private val end // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -116,7 +131,10 @@ class SampleMeiCluster(private val controller: MatterController, private val end // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -124,7 +142,10 @@ class SampleMeiCluster(private val controller: MatterController, private val end // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ScenesCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ScenesCluster.kt index 4baf50cd57f18a..857171ebdd5cf6 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ScenesCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ScenesCluster.kt @@ -21,212 +21,198 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class ScenesCluster(private val controller: MatterController, private val endpointId: UShort) { - class AddSceneResponse(val status: UShort, val groupID: UShort, val sceneID: UByte) + class AddSceneResponse( + val status: UShort, + val groupID: UShort, + val sceneID: UByte + ) class ViewSceneResponse( - val status: UShort, - val groupID: UShort, - val sceneID: UByte, - val transitionTime: UShort?, - val sceneName: String?, + val status: UShort, + val groupID: UShort, + val sceneID: UByte, + val transitionTime: UShort?, + val sceneName: String?, val extensionFieldSets: List? ) - class RemoveSceneResponse(val status: UShort, val groupID: UShort, val sceneID: UByte) + class RemoveSceneResponse( + val status: UShort, + val groupID: UShort, + val sceneID: UByte + ) - class RemoveAllScenesResponse(val status: UShort, val groupID: UShort) + class RemoveAllScenesResponse( + val status: UShort, + val groupID: UShort + ) - class StoreSceneResponse(val status: UShort, val groupID: UShort, val sceneID: UByte) + class StoreSceneResponse( + val status: UShort, + val groupID: UShort, + val sceneID: UByte + ) class GetSceneMembershipResponse( - val status: UShort, - val capacity: UByte?, - val groupID: UShort, + val status: UShort, + val capacity: UByte?, + val groupID: UShort, val sceneList: List? ) - class EnhancedAddSceneResponse(val status: UShort, val groupID: UShort, val sceneID: UByte) + class EnhancedAddSceneResponse( + val status: UShort, + val groupID: UShort, + val sceneID: UByte + ) class EnhancedViewSceneResponse( - val status: UShort, - val groupID: UShort, - val sceneID: UByte, - val transitionTime: UShort?, - val sceneName: String?, + val status: UShort, + val groupID: UShort, + val sceneID: UByte, + val transitionTime: UShort?, + val sceneName: String?, val extensionFieldSets: List? ) class CopySceneResponse( - val status: UShort, - val groupIdentifierFrom: UShort, + val status: UShort, + val groupIdentifierFrom: UShort, val sceneIdentifierFrom: UByte ) - class LastConfiguredByAttribute(val value: ULong?) + class LastConfiguredByAttribute( + val value: ULong? + ) - class FabricSceneInfoAttribute(val value: List) + class FabricSceneInfoAttribute( + val value: List + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun addScene( - groupID: UShort, - sceneID: UByte, - transitionTime: UShort, - sceneName: String, - extensionFieldSets: List, - timedInvokeTimeoutMs: Int? = null - ): AddSceneResponse { + suspend fun addScene(groupID: UShort, sceneID: UByte, transitionTime: UShort, sceneName: String, extensionFieldSets: List, timedInvokeTimeoutMs: Int? = null): AddSceneResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun viewScene( - groupID: UShort, - sceneID: UByte, - timedInvokeTimeoutMs: Int? = null - ): ViewSceneResponse { + suspend fun viewScene(groupID: UShort, sceneID: UByte, timedInvokeTimeoutMs: Int? = null): ViewSceneResponse { val commandId = 1L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun removeScene( - groupID: UShort, - sceneID: UByte, - timedInvokeTimeoutMs: Int? = null - ): RemoveSceneResponse { + suspend fun removeScene(groupID: UShort, sceneID: UByte, timedInvokeTimeoutMs: Int? = null): RemoveSceneResponse { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun removeAllScenes( - groupID: UShort, - timedInvokeTimeoutMs: Int? = null - ): RemoveAllScenesResponse { + suspend fun removeAllScenes(groupID: UShort, timedInvokeTimeoutMs: Int? = null): RemoveAllScenesResponse { val commandId = 3L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun storeScene( - groupID: UShort, - sceneID: UByte, - timedInvokeTimeoutMs: Int? = null - ): StoreSceneResponse { + suspend fun storeScene(groupID: UShort, sceneID: UByte, timedInvokeTimeoutMs: Int? = null): StoreSceneResponse { val commandId = 4L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun recallScene( - groupID: UShort, - sceneID: UByte, - transitionTime: UShort?, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun recallScene(groupID: UShort, sceneID: UByte, transitionTime: UShort?, timedInvokeTimeoutMs: Int? = null) { val commandId = 5L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun getSceneMembership( - groupID: UShort, - timedInvokeTimeoutMs: Int? = null - ): GetSceneMembershipResponse { + suspend fun getSceneMembership(groupID: UShort, timedInvokeTimeoutMs: Int? = null): GetSceneMembershipResponse { val commandId = 6L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun enhancedAddScene( - groupID: UShort, - sceneID: UByte, - transitionTime: UShort, - sceneName: String, - extensionFieldSets: List, - timedInvokeTimeoutMs: Int? = null - ): EnhancedAddSceneResponse { + suspend fun enhancedAddScene(groupID: UShort, sceneID: UByte, transitionTime: UShort, sceneName: String, extensionFieldSets: List, timedInvokeTimeoutMs: Int? = null): EnhancedAddSceneResponse { val commandId = 64L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun enhancedViewScene( - groupID: UShort, - sceneID: UByte, - timedInvokeTimeoutMs: Int? = null - ): EnhancedViewSceneResponse { + suspend fun enhancedViewScene(groupID: UShort, sceneID: UByte, timedInvokeTimeoutMs: Int? = null): EnhancedViewSceneResponse { val commandId = 65L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun copyScene( - mode: UInt, - groupIdentifierFrom: UShort, - sceneIdentifierFrom: UByte, - groupIdentifierTo: UShort, - sceneIdentifierTo: UByte, - timedInvokeTimeoutMs: Int? = null - ): CopySceneResponse { + suspend fun copyScene(mode: UInt, groupIdentifierFrom: UShort, sceneIdentifierFrom: UByte, groupIdentifierTo: UShort, sceneIdentifierTo: UByte, timedInvokeTimeoutMs: Int? = null): CopySceneResponse { val commandId = 66L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readSceneCountAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeSceneCountAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeSceneCountAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -234,7 +220,10 @@ class ScenesCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeCurrentSceneAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeCurrentSceneAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -242,7 +231,10 @@ class ScenesCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeCurrentGroupAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeCurrentGroupAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -250,7 +242,10 @@ class ScenesCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeSceneValidAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeSceneValidAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -258,7 +253,10 @@ class ScenesCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeNameSupportAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeNameSupportAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -277,7 +275,10 @@ class ScenesCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeSceneTableSizeAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeSceneTableSizeAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -291,6 +292,7 @@ class ScenesCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } + suspend fun subscribeFabricSceneInfoAttribute( minInterval: Int, maxInterval: Int @@ -324,7 +326,10 @@ class ScenesCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -343,7 +348,10 @@ class ScenesCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -351,7 +359,10 @@ class ScenesCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SmokeCoAlarmCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SmokeCoAlarmCluster.kt index 384b52fbfcfea7..24adfc50558dc0 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SmokeCoAlarmCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SmokeCoAlarmCluster.kt @@ -20,17 +20,22 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class SmokeCoAlarmCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class GeneratedCommandListAttribute(val value: List) +class SmokeCoAlarmCluster(private val controller: MatterController, private val endpointId: UShort) { + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun selfTestRequest(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -39,14 +44,17 @@ class SmokeCoAlarmCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readExpressedStateAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeExpressedStateAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeExpressedStateAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -54,7 +62,10 @@ class SmokeCoAlarmCluster( // Implementation needs to be added here } - suspend fun subscribeSmokeStateAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeSmokeStateAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -62,7 +73,10 @@ class SmokeCoAlarmCluster( // Implementation needs to be added here } - suspend fun subscribeCOStateAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeCOStateAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -70,7 +84,10 @@ class SmokeCoAlarmCluster( // Implementation needs to be added here } - suspend fun subscribeBatteryAlertAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeBatteryAlertAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -78,7 +95,10 @@ class SmokeCoAlarmCluster( // Implementation needs to be added here } - suspend fun subscribeDeviceMutedAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeDeviceMutedAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -86,7 +106,10 @@ class SmokeCoAlarmCluster( // Implementation needs to be added here } - suspend fun subscribeTestInProgressAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeTestInProgressAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -94,7 +117,10 @@ class SmokeCoAlarmCluster( // Implementation needs to be added here } - suspend fun subscribeHardwareFaultAlertAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeHardwareFaultAlertAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -102,7 +128,10 @@ class SmokeCoAlarmCluster( // Implementation needs to be added here } - suspend fun subscribeEndOfServiceAlertAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeEndOfServiceAlertAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -110,7 +139,10 @@ class SmokeCoAlarmCluster( // Implementation needs to be added here } - suspend fun subscribeInterconnectSmokeAlarmAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeInterconnectSmokeAlarmAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -118,7 +150,10 @@ class SmokeCoAlarmCluster( // Implementation needs to be added here } - suspend fun subscribeInterconnectCOAlarmAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeInterconnectCOAlarmAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -126,7 +161,10 @@ class SmokeCoAlarmCluster( // Implementation needs to be added here } - suspend fun subscribeContaminationStateAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeContaminationStateAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -134,15 +172,21 @@ class SmokeCoAlarmCluster( // Implementation needs to be added here } - suspend fun writeSmokeSensitivityLevelAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeSmokeSensitivityLevelAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeSmokeSensitivityLevelAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeSmokeSensitivityLevelAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -150,7 +194,10 @@ class SmokeCoAlarmCluster( // Implementation needs to be added here } - suspend fun subscribeExpiryDateAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeExpiryDateAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -180,7 +227,10 @@ class SmokeCoAlarmCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -199,7 +249,10 @@ class SmokeCoAlarmCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -207,7 +260,10 @@ class SmokeCoAlarmCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SoftwareDiagnosticsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SoftwareDiagnosticsCluster.kt index 0132daa4368246..e16e7407bd29e1 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SoftwareDiagnosticsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SoftwareDiagnosticsCluster.kt @@ -20,19 +20,26 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class SoftwareDiagnosticsCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class ThreadMetricsAttribute(val value: List?) +class SoftwareDiagnosticsCluster(private val controller: MatterController, private val endpointId: UShort) { + class ThreadMetricsAttribute( + val value: List? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun resetWatermarks(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -41,7 +48,7 @@ class SoftwareDiagnosticsCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readThreadMetricsAttribute(): ThreadMetricsAttribute { @@ -59,7 +66,10 @@ class SoftwareDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeCurrentHeapFreeAttribute(minInterval: Int, maxInterval: Int): ULong { + suspend fun subscribeCurrentHeapFreeAttribute( + minInterval: Int, + maxInterval: Int + ): ULong { // Implementation needs to be added here } @@ -67,7 +77,10 @@ class SoftwareDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeCurrentHeapUsedAttribute(minInterval: Int, maxInterval: Int): ULong { + suspend fun subscribeCurrentHeapUsedAttribute( + minInterval: Int, + maxInterval: Int + ): ULong { // Implementation needs to be added here } @@ -108,7 +121,10 @@ class SoftwareDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -127,7 +143,10 @@ class SoftwareDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -135,7 +154,10 @@ class SoftwareDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SwitchCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SwitchCluster.kt index a27cc29bd7b640..25fe41e0e1d7bf 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SwitchCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SwitchCluster.kt @@ -21,19 +21,30 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class SwitchCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readNumberOfPositionsAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeNumberOfPositionsAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeNumberOfPositionsAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -41,7 +52,10 @@ class SwitchCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeCurrentPositionAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeCurrentPositionAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -49,7 +63,10 @@ class SwitchCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeMultiPressMaxAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMultiPressMaxAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -79,7 +96,10 @@ class SwitchCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -98,7 +118,10 @@ class SwitchCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -106,7 +129,10 @@ class SwitchCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TargetNavigatorCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TargetNavigatorCluster.kt index 691bc7adc452b1..7e314e6de87775 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TargetNavigatorCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TargetNavigatorCluster.kt @@ -20,34 +20,40 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class TargetNavigatorCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class NavigateTargetResponse(val status: UInt, val data: String?) +class TargetNavigatorCluster(private val controller: MatterController, private val endpointId: UShort) { + class NavigateTargetResponse( + val status: UInt, + val data: String? + ) - class TargetListAttribute(val value: List) + class TargetListAttribute( + val value: List + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun navigateTarget( - target: UByte, - data: String?, - timedInvokeTimeoutMs: Int? = null - ): NavigateTargetResponse { + suspend fun navigateTarget(target: UByte, data: String?, timedInvokeTimeoutMs: Int? = null): NavigateTargetResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readTargetListAttribute(): TargetListAttribute { @@ -65,7 +71,10 @@ class TargetNavigatorCluster( // Implementation needs to be added here } - suspend fun subscribeCurrentTargetAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeCurrentTargetAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -95,7 +104,10 @@ class TargetNavigatorCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -114,7 +126,10 @@ class TargetNavigatorCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -122,7 +137,10 @@ class TargetNavigatorCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureControlCluster.kt index 978f543f84231a..99c51348ed8eea 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureControlCluster.kt @@ -20,39 +20,45 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class TemperatureControlCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class SupportedTemperatureLevelsAttribute(val value: List?) +class TemperatureControlCluster(private val controller: MatterController, private val endpointId: UShort) { + class SupportedTemperatureLevelsAttribute( + val value: List? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun setTemperature( - targetTemperature: Short?, - targetTemperatureLevel: UByte?, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun setTemperature(targetTemperature: Short?, targetTemperatureLevel: UByte?, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readTemperatureSetpointAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeTemperatureSetpointAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeTemperatureSetpointAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -60,7 +66,10 @@ class TemperatureControlCluster( // Implementation needs to be added here } - suspend fun subscribeMinTemperatureAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeMinTemperatureAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -68,7 +77,10 @@ class TemperatureControlCluster( // Implementation needs to be added here } - suspend fun subscribeMaxTemperatureAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeMaxTemperatureAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -76,7 +88,10 @@ class TemperatureControlCluster( // Implementation needs to be added here } - suspend fun subscribeStepAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeStepAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -128,7 +143,10 @@ class TemperatureControlCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -147,7 +165,10 @@ class TemperatureControlCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -155,7 +176,10 @@ class TemperatureControlCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureMeasurementCluster.kt index 5c6a6ff41fd1eb..a65fca25981be8 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureMeasurementCluster.kt @@ -20,23 +20,34 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class TemperatureMeasurementCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class MeasuredValueAttribute(val value: Short?) +class TemperatureMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { + class MeasuredValueAttribute( + val value: Short? + ) - class MinMeasuredValueAttribute(val value: Short?) + class MinMeasuredValueAttribute( + val value: Short? + ) - class MaxMeasuredValueAttribute(val value: Short?) + class MaxMeasuredValueAttribute( + val value: Short? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -75,7 +86,10 @@ class TemperatureMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeToleranceAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -105,7 +119,10 @@ class TemperatureMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -124,7 +141,10 @@ class TemperatureMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -132,7 +152,10 @@ class TemperatureMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatCluster.kt index 1e451858dabaf1..cf80d3a9cc181b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatCluster.kt @@ -22,41 +22,116 @@ import matter.devicecontroller.cluster.structs.* class ThermostatCluster(private val controller: MatterController, private val endpointId: UShort) { class GetWeeklyScheduleResponse( - val numberOfTransitionsForSequence: UByte, - val dayOfWeekForSequence: UInt, - val modeForSequence: UInt, - val transitions: List + val numberOfTransitionsForSequence: UByte, + val dayOfWeekforSequence: UInt, + val modeForSequence: UInt, + val transitions: List ) - class LocalTemperatureAttribute(val value: Short?) + class GetRelayStatusLogResponse( + val timeOfDay: UShort, + val relayStatus: UInt, + val localTemperature: Short?, + val humidityInPercentage: UByte?, + val setPoint: Short, + val unreadEntries: UShort + ) + + class LocalTemperatureAttribute( + val value: Short? + ) + + class OutdoorTemperatureAttribute( + val value: Short? + ) + + class TemperatureSetpointHoldDurationAttribute( + val value: UShort? + ) + + class SetpointChangeAmountAttribute( + val value: Short? + ) - class OutdoorTemperatureAttribute(val value: Short?) + class OccupiedSetbackAttribute( + val value: UByte? + ) + + class OccupiedSetbackMinAttribute( + val value: UByte? + ) - class TemperatureSetpointHoldDurationAttribute(val value: UShort?) + class OccupiedSetbackMaxAttribute( + val value: UByte? + ) + + class UnoccupiedSetbackAttribute( + val value: UByte? + ) + + class UnoccupiedSetbackMinAttribute( + val value: UByte? + ) + + class UnoccupiedSetbackMaxAttribute( + val value: UByte? + ) + + class ACCoilTemperatureAttribute( + val value: Short? + ) + + class PresetTypesAttribute( + val value: List? + ) - class SetpointChangeAmountAttribute(val value: Short?) + class ScheduleTypesAttribute( + val value: List? + ) - class OccupiedSetbackAttribute(val value: UByte?) + class NumberOfScheduleTransitionPerDayAttribute( + val value: UByte? + ) - class OccupiedSetbackMinAttribute(val value: UByte?) + class ActivePresetHandleAttribute( + val value: ByteArray? + ) - class OccupiedSetbackMaxAttribute(val value: UByte?) + class ActiveScheduleHandleAttribute( + val value: ByteArray? + ) - class UnoccupiedSetbackAttribute(val value: UByte?) + class PresetsAttribute( + val value: List? + ) - class UnoccupiedSetbackMinAttribute(val value: UByte?) + class SchedulesAttribute( + val value: List? + ) - class UnoccupiedSetbackMaxAttribute(val value: UByte?) + class SetpointHoldExpiryTimestampAttribute( + val value: UInt? + ) - class ACCoilTemperatureAttribute(val value: Short?) + class QueuedPresetAttribute( + val value: ThermostatClusterQueuedPresetStruct? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun setpointRaiseLower(mode: UInt, amount: Byte, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -65,37 +140,27 @@ class ThermostatCluster(private val controller: MatterController, private val en // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun setWeeklySchedule( - numberOfTransitionsForSequence: UByte, - dayOfWeekForSequence: UInt, - modeForSequence: UInt, - transitions: List, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun setWeeklySchedule(numberOfTransitionsForSequence: UByte, dayOfWeekforSequence: UInt, modeForSequence: UInt, transitions: List, timedInvokeTimeoutMs: Int? = null) { val commandId = 1L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun getWeeklySchedule( - daysToReturn: UInt, - modeToReturn: UInt, - timedInvokeTimeoutMs: Int? = null - ): GetWeeklyScheduleResponse { + suspend fun getWeeklySchedule(daysToReturn: UInt, modeToReturn: UInt, timedInvokeTimeoutMs: Int? = null): GetWeeklyScheduleResponse { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun clearWeeklySchedule(timedInvokeTimeoutMs: Int? = null) { @@ -105,7 +170,87 @@ class ThermostatCluster(private val controller: MatterController, private val en // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } + } + + suspend fun getRelayStatusLog(timedInvokeTimeoutMs: Int? = null): GetRelayStatusLogResponse { + val commandId = 4L + + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun setActiveScheduleRequest(scheduleHandle: ByteArray, timedInvokeTimeoutMs: Int? = null) { + val commandId = 5L + + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun setActivePresetRequest(presetHandle: ByteArray, delayMinutes: UShort?, timedInvokeTimeoutMs: Int? = null) { + val commandId = 6L + + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun startPresetsSchedulesEditRequest(timeoutSeconds: UShort, timedInvokeTimeoutMs: Int? = null) { + val commandId = 7L + + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun cancelPresetsSchedulesEditRequest(timedInvokeTimeoutMs: Int? = null) { + val commandId = 8L + + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun commitPresetsSchedulesRequest(timedInvokeTimeoutMs: Int? = null) { + val commandId = 9L + + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun cancelSetActivePresetRequest(timedInvokeTimeoutMs: Int? = null) { + val commandId = 10L + + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } + } + + suspend fun setTemperatureSetpointHoldPolicy(temperatureSetpointHoldPolicy: UInt, timedInvokeTimeoutMs: Int? = null) { + val commandId = 11L + + if (timedInvokeTimeoutMs != null) { + // Do the action with timedInvokeTimeoutMs + } else { + // Do the action without timedInvokeTimeoutMs + } } suspend fun readLocalTemperatureAttribute(): LocalTemperatureAttribute { @@ -134,7 +279,10 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeOccupancyAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeOccupancyAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -142,7 +290,10 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeAbsMinHeatSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeAbsMinHeatSetpointLimitAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -150,7 +301,10 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeAbsMaxHeatSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeAbsMaxHeatSetpointLimitAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -158,7 +312,10 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeAbsMinCoolSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeAbsMinCoolSetpointLimitAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -166,7 +323,10 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeAbsMaxCoolSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeAbsMaxCoolSetpointLimitAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -174,7 +334,10 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribePICoolingDemandAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribePICoolingDemandAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -182,26 +345,7 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribePIHeatingDemandAttribute(minInterval: Int, maxInterval: Int): UByte { - // Implementation needs to be added here - } - - suspend fun readHVACSystemTypeConfigurationAttribute(): UByte { - // Implementation needs to be added here - } - - suspend fun writeHVACSystemTypeConfigurationAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { - if (timedWriteTimeoutMs != null) { - // Do the action with timedWriteTimeoutMs - } else { - // Do the action without timedWriteTimeoutMs - } - } - - suspend fun subscribeHVACSystemTypeConfigurationAttribute( + suspend fun subscribePIHeatingDemandAttribute( minInterval: Int, maxInterval: Int ): UByte { @@ -214,13 +358,13 @@ class ThermostatCluster(private val controller: MatterController, private val en suspend fun writeLocalTemperatureCalibrationAttribute( value: Byte, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeLocalTemperatureCalibrationAttribute( @@ -236,16 +380,19 @@ class ThermostatCluster(private val controller: MatterController, private val en suspend fun writeOccupiedCoolingSetpointAttribute( value: Short, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOccupiedCoolingSetpointAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeOccupiedCoolingSetpointAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -255,16 +402,19 @@ class ThermostatCluster(private val controller: MatterController, private val en suspend fun writeOccupiedHeatingSetpointAttribute( value: Short, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOccupiedHeatingSetpointAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeOccupiedHeatingSetpointAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -274,13 +424,13 @@ class ThermostatCluster(private val controller: MatterController, private val en suspend fun writeUnoccupiedCoolingSetpointAttribute( value: Short, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeUnoccupiedCoolingSetpointAttribute( @@ -296,13 +446,13 @@ class ThermostatCluster(private val controller: MatterController, private val en suspend fun writeUnoccupiedHeatingSetpointAttribute( value: Short, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeUnoccupiedHeatingSetpointAttribute( @@ -316,15 +466,21 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeMinHeatSetpointLimitAttribute(value: Short, timedWriteTimeoutMs: Int? = null) { + suspend fun writeMinHeatSetpointLimitAttribute( + value: Short, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeMinHeatSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeMinHeatSetpointLimitAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -332,15 +488,21 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeMaxHeatSetpointLimitAttribute(value: Short, timedWriteTimeoutMs: Int? = null) { + suspend fun writeMaxHeatSetpointLimitAttribute( + value: Short, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeMaxHeatSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeMaxHeatSetpointLimitAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -348,15 +510,21 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeMinCoolSetpointLimitAttribute(value: Short, timedWriteTimeoutMs: Int? = null) { + suspend fun writeMinCoolSetpointLimitAttribute( + value: Short, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeMinCoolSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeMinCoolSetpointLimitAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -364,15 +532,21 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeMaxCoolSetpointLimitAttribute(value: Short, timedWriteTimeoutMs: Int? = null) { + suspend fun writeMaxCoolSetpointLimitAttribute( + value: Short, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeMaxCoolSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeMaxCoolSetpointLimitAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -380,15 +554,21 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeMinSetpointDeadBandAttribute(value: Byte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeMinSetpointDeadBandAttribute( + value: Byte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeMinSetpointDeadBandAttribute(minInterval: Int, maxInterval: Int): Byte { + suspend fun subscribeMinSetpointDeadBandAttribute( + minInterval: Int, + maxInterval: Int + ): Byte { // Implementation needs to be added here } @@ -396,15 +576,21 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeRemoteSensingAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeRemoteSensingAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeRemoteSensingAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeRemoteSensingAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -414,13 +600,13 @@ class ThermostatCluster(private val controller: MatterController, private val en suspend fun writeControlSequenceOfOperationAttribute( value: UInt, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeControlSequenceOfOperationAttribute( @@ -434,15 +620,32 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeSystemModeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeSystemModeAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeSystemModeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeSystemModeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { + // Implementation needs to be added here + } + + suspend fun readAlarmMaskAttribute(): UByte { + // Implementation needs to be added here + } + + suspend fun subscribeAlarmMaskAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -450,7 +653,10 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeThermostatRunningModeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeThermostatRunningModeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -458,7 +664,10 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeStartOfWeekAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeStartOfWeekAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -488,32 +697,37 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeTemperatureSetpointHoldAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeTemperatureSetpointHoldAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeTemperatureSetpointHoldAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeTemperatureSetpointHoldAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } - suspend fun readTemperatureSetpointHoldDurationAttribute(): - TemperatureSetpointHoldDurationAttribute { + suspend fun readTemperatureSetpointHoldDurationAttribute(): TemperatureSetpointHoldDurationAttribute { // Implementation needs to be added here } suspend fun writeTemperatureSetpointHoldDurationAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeTemperatureSetpointHoldDurationAttribute( @@ -529,13 +743,13 @@ class ThermostatCluster(private val controller: MatterController, private val en suspend fun writeThermostatProgrammingOperationModeAttribute( value: UInt, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeThermostatProgrammingOperationModeAttribute( @@ -549,7 +763,10 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeThermostatRunningStateAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeThermostatRunningStateAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -557,7 +774,10 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeSetpointChangeSourceAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeSetpointChangeSourceAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -587,12 +807,15 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeOccupiedSetbackAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeOccupiedSetbackAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeOccupiedSetbackAttribute( @@ -628,12 +851,15 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeUnoccupiedSetbackAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeUnoccupiedSetbackAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeUnoccupiedSetbackAttribute( @@ -669,15 +895,21 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeEmergencyHeatDeltaAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeEmergencyHeatDeltaAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeEmergencyHeatDeltaAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeEmergencyHeatDeltaAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -685,15 +917,21 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeACTypeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeACTypeAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeACTypeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeACTypeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -701,15 +939,21 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeACCapacityAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeACCapacityAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeACCapacityAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeACCapacityAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -717,15 +961,21 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeACRefrigerantTypeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeACRefrigerantTypeAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeACRefrigerantTypeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeACRefrigerantTypeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -733,15 +983,21 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeACCompressorTypeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeACCompressorTypeAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeACCompressorTypeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeACCompressorTypeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -749,15 +1005,21 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeACErrorCodeAttribute(value: ULong, timedWriteTimeoutMs: Int? = null) { + suspend fun writeACErrorCodeAttribute( + value: ULong, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeACErrorCodeAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeACErrorCodeAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -765,15 +1027,21 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeACLouverPositionAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeACLouverPositionAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeACLouverPositionAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeACLouverPositionAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -788,19 +1056,201 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun readACCapacityformatAttribute(): UByte { + suspend fun readACCapacityFormatAttribute(): UByte { // Implementation needs to be added here } - suspend fun writeACCapacityformatAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeACCapacityFormatAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } + } + + suspend fun subscribeACCapacityFormatAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { + // Implementation needs to be added here + } + + suspend fun readPresetTypesAttribute(): PresetTypesAttribute { + // Implementation needs to be added here + } + + suspend fun subscribePresetTypesAttribute( + minInterval: Int, + maxInterval: Int + ): PresetTypesAttribute { + // Implementation needs to be added here + } + + suspend fun readScheduleTypesAttribute(): ScheduleTypesAttribute { + // Implementation needs to be added here + } + + suspend fun subscribeScheduleTypesAttribute( + minInterval: Int, + maxInterval: Int + ): ScheduleTypesAttribute { + // Implementation needs to be added here + } + + suspend fun readNumberOfPresetsAttribute(): UByte { + // Implementation needs to be added here + } + + suspend fun subscribeNumberOfPresetsAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { + // Implementation needs to be added here + } + + suspend fun readNumberOfSchedulesAttribute(): UByte { + // Implementation needs to be added here + } + + suspend fun subscribeNumberOfSchedulesAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { + // Implementation needs to be added here + } + + suspend fun readNumberOfScheduleTransitionsAttribute(): UByte { + // Implementation needs to be added here + } + + suspend fun subscribeNumberOfScheduleTransitionsAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { + // Implementation needs to be added here } - suspend fun subscribeACCapacityformatAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun readNumberOfScheduleTransitionPerDayAttribute(): NumberOfScheduleTransitionPerDayAttribute { + // Implementation needs to be added here + } + + suspend fun subscribeNumberOfScheduleTransitionPerDayAttribute( + minInterval: Int, + maxInterval: Int + ): NumberOfScheduleTransitionPerDayAttribute { + // Implementation needs to be added here + } + + suspend fun readActivePresetHandleAttribute(): ActivePresetHandleAttribute { + // Implementation needs to be added here + } + + suspend fun subscribeActivePresetHandleAttribute( + minInterval: Int, + maxInterval: Int + ): ActivePresetHandleAttribute { + // Implementation needs to be added here + } + + suspend fun readActiveScheduleHandleAttribute(): ActiveScheduleHandleAttribute { + // Implementation needs to be added here + } + + suspend fun subscribeActiveScheduleHandleAttribute( + minInterval: Int, + maxInterval: Int + ): ActiveScheduleHandleAttribute { + // Implementation needs to be added here + } + + suspend fun readPresetsAttribute(): PresetsAttribute { + // Implementation needs to be added here + } + + suspend fun writePresetsAttribute( + value: List, + timedWriteTimeoutMs: Int? = null + ) { + if (timedWriteTimeoutMs != null) { + // Do the action with timedWriteTimeoutMs + } else { + // Do the action without timedWriteTimeoutMs + } + } + + suspend fun subscribePresetsAttribute( + minInterval: Int, + maxInterval: Int + ): PresetsAttribute { + // Implementation needs to be added here + } + + suspend fun readSchedulesAttribute(): SchedulesAttribute { + // Implementation needs to be added here + } + + suspend fun writeSchedulesAttribute( + value: List, + timedWriteTimeoutMs: Int? = null + ) { + if (timedWriteTimeoutMs != null) { + // Do the action with timedWriteTimeoutMs + } else { + // Do the action without timedWriteTimeoutMs + } + } + + suspend fun subscribeSchedulesAttribute( + minInterval: Int, + maxInterval: Int + ): SchedulesAttribute { + // Implementation needs to be added here + } + + suspend fun readPresetsSchedulesEditableAttribute(): Boolean { + // Implementation needs to be added here + } + + suspend fun subscribePresetsSchedulesEditableAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { + // Implementation needs to be added here + } + + suspend fun readTemperatureSetpointHoldPolicyAttribute(): UByte { + // Implementation needs to be added here + } + + suspend fun subscribeTemperatureSetpointHoldPolicyAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { + // Implementation needs to be added here + } + + suspend fun readSetpointHoldExpiryTimestampAttribute(): SetpointHoldExpiryTimestampAttribute { + // Implementation needs to be added here + } + + suspend fun subscribeSetpointHoldExpiryTimestampAttribute( + minInterval: Int, + maxInterval: Int + ): SetpointHoldExpiryTimestampAttribute { + // Implementation needs to be added here + } + + suspend fun readQueuedPresetAttribute(): QueuedPresetAttribute { + // Implementation needs to be added here + } + + suspend fun subscribeQueuedPresetAttribute( + minInterval: Int, + maxInterval: Int + ): QueuedPresetAttribute { // Implementation needs to be added here } @@ -830,7 +1280,10 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -849,7 +1302,10 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -857,7 +1313,10 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatUserInterfaceConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatUserInterfaceConfigurationCluster.kt index 12ed570344c446..8727c4bcdeadc3 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatUserInterfaceConfigurationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatUserInterfaceConfigurationCluster.kt @@ -20,31 +20,42 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class ThermostatUserInterfaceConfigurationCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class GeneratedCommandListAttribute(val value: List) +class ThermostatUserInterfaceConfigurationCluster(private val controller: MatterController, private val endpointId: UShort) { + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readTemperatureDisplayModeAttribute(): UByte { // Implementation needs to be added here } - suspend fun writeTemperatureDisplayModeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeTemperatureDisplayModeAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeTemperatureDisplayModeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeTemperatureDisplayModeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -52,15 +63,21 @@ class ThermostatUserInterfaceConfigurationCluster( // Implementation needs to be added here } - suspend fun writeKeypadLockoutAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeKeypadLockoutAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeKeypadLockoutAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeKeypadLockoutAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -70,13 +87,13 @@ class ThermostatUserInterfaceConfigurationCluster( suspend fun writeScheduleProgrammingVisibilityAttribute( value: UInt, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeScheduleProgrammingVisibilityAttribute( @@ -112,7 +129,10 @@ class ThermostatUserInterfaceConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -131,7 +151,10 @@ class ThermostatUserInterfaceConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -139,7 +162,10 @@ class ThermostatUserInterfaceConfigurationCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThreadNetworkDiagnosticsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThreadNetworkDiagnosticsCluster.kt index 86e2cb8e290a64..186879ecbd1d9d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThreadNetworkDiagnosticsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThreadNetworkDiagnosticsCluster.kt @@ -20,59 +20,102 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class ThreadNetworkDiagnosticsCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class ChannelAttribute(val value: UShort?) +class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, private val endpointId: UShort) { + class ChannelAttribute( + val value: UShort? + ) - class RoutingRoleAttribute(val value: UInt?) + class RoutingRoleAttribute( + val value: UInt? + ) - class NetworkNameAttribute(val value: String?) + class NetworkNameAttribute( + val value: String? + ) - class PanIdAttribute(val value: UShort?) + class PanIdAttribute( + val value: UShort? + ) - class ExtendedPanIdAttribute(val value: ULong?) + class ExtendedPanIdAttribute( + val value: ULong? + ) - class MeshLocalPrefixAttribute(val value: ByteArray?) + class MeshLocalPrefixAttribute( + val value: ByteArray? + ) - class NeighborTableAttribute(val value: List) + class NeighborTableAttribute( + val value: List + ) - class RouteTableAttribute(val value: List) + class RouteTableAttribute( + val value: List + ) - class PartitionIdAttribute(val value: UInt?) + class PartitionIdAttribute( + val value: UInt? + ) - class WeightingAttribute(val value: UShort?) + class WeightingAttribute( + val value: UShort? + ) - class DataVersionAttribute(val value: UShort?) + class DataVersionAttribute( + val value: UShort? + ) - class StableDataVersionAttribute(val value: UShort?) + class StableDataVersionAttribute( + val value: UShort? + ) - class LeaderRouterIdAttribute(val value: UByte?) + class LeaderRouterIdAttribute( + val value: UByte? + ) - class ActiveTimestampAttribute(val value: ULong?) + class ActiveTimestampAttribute( + val value: ULong? + ) - class PendingTimestampAttribute(val value: ULong?) + class PendingTimestampAttribute( + val value: ULong? + ) - class DelayAttribute(val value: UInt?) + class DelayAttribute( + val value: UInt? + ) - class SecurityPolicyAttribute(val value: ThreadNetworkDiagnosticsClusterSecurityPolicy?) + class SecurityPolicyAttribute( + val value: ThreadNetworkDiagnosticsClusterSecurityPolicy? + ) - class ChannelPage0MaskAttribute(val value: ByteArray?) + class ChannelPage0MaskAttribute( + val value: ByteArray? + ) class OperationalDatasetComponentsAttribute( val value: ThreadNetworkDiagnosticsClusterOperationalDatasetComponents? ) - class ActiveNetworkFaultsListAttribute(val value: List) + class ActiveNetworkFaultsListAttribute( + val value: List + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun resetCounts(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -81,14 +124,17 @@ class ThreadNetworkDiagnosticsCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readChannelAttribute(): ChannelAttribute { // Implementation needs to be added here } - suspend fun subscribeChannelAttribute(minInterval: Int, maxInterval: Int): ChannelAttribute { + suspend fun subscribeChannelAttribute( + minInterval: Int, + maxInterval: Int + ): ChannelAttribute { // Implementation needs to be added here } @@ -118,7 +164,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribePanIdAttribute(minInterval: Int, maxInterval: Int): PanIdAttribute { + suspend fun subscribePanIdAttribute( + minInterval: Int, + maxInterval: Int + ): PanIdAttribute { // Implementation needs to be added here } @@ -148,7 +197,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeOverrunCountAttribute(minInterval: Int, maxInterval: Int): ULong { + suspend fun subscribeOverrunCountAttribute( + minInterval: Int, + maxInterval: Int + ): ULong { // Implementation needs to be added here } @@ -189,7 +241,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeWeightingAttribute(minInterval: Int, maxInterval: Int): WeightingAttribute { + suspend fun subscribeWeightingAttribute( + minInterval: Int, + maxInterval: Int + ): WeightingAttribute { // Implementation needs to be added here } @@ -230,7 +285,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeDetachedRoleCountAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeDetachedRoleCountAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -238,7 +296,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeChildRoleCountAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeChildRoleCountAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -246,7 +307,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeRouterRoleCountAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeRouterRoleCountAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -254,7 +318,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeLeaderRoleCountAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeLeaderRoleCountAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -262,7 +329,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeAttachAttemptCountAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeAttachAttemptCountAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -270,7 +340,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribePartitionIdChangeCountAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribePartitionIdChangeCountAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -289,7 +362,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeParentChangeCountAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeParentChangeCountAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -297,7 +373,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeTxTotalCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeTxTotalCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -305,7 +384,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeTxUnicastCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeTxUnicastCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -313,7 +395,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeTxBroadcastCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeTxBroadcastCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -321,7 +406,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeTxAckRequestedCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeTxAckRequestedCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -329,7 +417,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeTxAckedCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeTxAckedCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -337,7 +428,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeTxNoAckRequestedCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeTxNoAckRequestedCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -345,7 +439,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeTxDataCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeTxDataCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -353,7 +450,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeTxDataPollCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeTxDataPollCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -361,7 +461,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeTxBeaconCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeTxBeaconCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -369,7 +472,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeTxBeaconRequestCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeTxBeaconRequestCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -377,7 +483,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeTxOtherCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeTxOtherCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -385,7 +494,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeTxRetryCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeTxRetryCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -415,7 +527,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeTxErrCcaCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeTxErrCcaCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -423,7 +538,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeTxErrAbortCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeTxErrAbortCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -431,7 +549,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeTxErrBusyChannelCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeTxErrBusyChannelCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -439,7 +560,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeRxTotalCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeRxTotalCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -447,7 +571,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeRxUnicastCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeRxUnicastCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -455,7 +582,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeRxBroadcastCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeRxBroadcastCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -463,7 +593,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeRxDataCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeRxDataCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -471,7 +604,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeRxDataPollCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeRxDataPollCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -479,7 +615,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeRxBeaconCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeRxBeaconCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -487,7 +626,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeRxBeaconRequestCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeRxBeaconRequestCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -495,7 +637,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeRxOtherCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeRxOtherCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -503,7 +648,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeRxAddressFilteredCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeRxAddressFilteredCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -511,7 +659,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeRxDestAddrFilteredCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeRxDestAddrFilteredCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -519,7 +670,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeRxDuplicatedCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeRxDuplicatedCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -527,7 +681,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeRxErrNoFrameCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeRxErrNoFrameCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -546,7 +703,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeRxErrInvalidSrcAddrCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeRxErrInvalidSrcAddrCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -554,7 +714,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeRxErrSecCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeRxErrSecCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -562,7 +725,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeRxErrFcsCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeRxErrFcsCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -570,7 +736,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeRxErrOtherCountAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeRxErrOtherCountAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -600,7 +769,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeDelayAttribute(minInterval: Int, maxInterval: Int): DelayAttribute { + suspend fun subscribeDelayAttribute( + minInterval: Int, + maxInterval: Int + ): DelayAttribute { // Implementation needs to be added here } @@ -674,7 +846,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -693,7 +868,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -701,7 +879,10 @@ class ThreadNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeFormatLocalizationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeFormatLocalizationCluster.kt index d3916cb0db2233..b6fde093d0a01c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeFormatLocalizationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeFormatLocalizationCluster.kt @@ -20,33 +20,46 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class TimeFormatLocalizationCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class SupportedCalendarTypesAttribute(val value: List?) +class TimeFormatLocalizationCluster(private val controller: MatterController, private val endpointId: UShort) { + class SupportedCalendarTypesAttribute( + val value: List? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readHourFormatAttribute(): UByte { // Implementation needs to be added here } - suspend fun writeHourFormatAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeHourFormatAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeHourFormatAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeHourFormatAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -54,15 +67,21 @@ class TimeFormatLocalizationCluster( // Implementation needs to be added here } - suspend fun writeActiveCalendarTypeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeActiveCalendarTypeAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeActiveCalendarTypeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeActiveCalendarTypeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -103,7 +122,10 @@ class TimeFormatLocalizationCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -122,7 +144,10 @@ class TimeFormatLocalizationCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -130,7 +155,10 @@ class TimeFormatLocalizationCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeSynchronizationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeSynchronizationCluster.kt index d9b0d983141f95..6dd4a43b9058ca 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeSynchronizationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeSynchronizationCluster.kt @@ -20,84 +20,89 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class TimeSynchronizationCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class SetTimeZoneResponse(val DSTOffsetRequired: Boolean) +class TimeSynchronizationCluster(private val controller: MatterController, private val endpointId: UShort) { + class SetTimeZoneResponse( + val DSTOffsetRequired: Boolean + ) - class UTCTimeAttribute(val value: ULong?) + class UTCTimeAttribute( + val value: ULong? + ) - class TrustedTimeSourceAttribute(val value: TimeSynchronizationClusterTrustedTimeSourceStruct?) + class TrustedTimeSourceAttribute( + val value: TimeSynchronizationClusterTrustedTimeSourceStruct? + ) - class DefaultNTPAttribute(val value: String?) + class DefaultNTPAttribute( + val value: String? + ) - class TimeZoneAttribute(val value: List?) + class TimeZoneAttribute( + val value: List? + ) - class DSTOffsetAttribute(val value: List?) + class DSTOffsetAttribute( + val value: List? + ) - class LocalTimeAttribute(val value: ULong?) + class LocalTimeAttribute( + val value: ULong? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) - suspend fun setUTCTime( - UTCTime: ULong, - granularity: UInt, - timeSource: UInt?, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun setUTCTime(UTCTime: ULong, granularity: UInt, timeSource: UInt?, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun setTrustedTimeSource( - trustedTimeSource: TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct?, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun setTrustedTimeSource(trustedTimeSource: TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct?, timedInvokeTimeoutMs: Int? = null) { val commandId = 1L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun setTimeZone( - timeZone: List, - timedInvokeTimeoutMs: Int? = null - ): SetTimeZoneResponse { + suspend fun setTimeZone(timeZone: List, timedInvokeTimeoutMs: Int? = null): SetTimeZoneResponse { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun setDSTOffset( - DSTOffset: List, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun setDSTOffset(DSTOffset: List, timedInvokeTimeoutMs: Int? = null) { val commandId = 4L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun setDefaultNTP(defaultNTP: String?, timedInvokeTimeoutMs: Int? = null) { @@ -107,14 +112,17 @@ class TimeSynchronizationCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readUTCTimeAttribute(): UTCTimeAttribute { // Implementation needs to be added here } - suspend fun subscribeUTCTimeAttribute(minInterval: Int, maxInterval: Int): UTCTimeAttribute { + suspend fun subscribeUTCTimeAttribute( + minInterval: Int, + maxInterval: Int + ): UTCTimeAttribute { // Implementation needs to be added here } @@ -122,7 +130,10 @@ class TimeSynchronizationCluster( // Implementation needs to be added here } - suspend fun subscribeGranularityAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeGranularityAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -130,7 +141,10 @@ class TimeSynchronizationCluster( // Implementation needs to be added here } - suspend fun subscribeTimeSourceAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeTimeSourceAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -160,7 +174,10 @@ class TimeSynchronizationCluster( // Implementation needs to be added here } - suspend fun subscribeTimeZoneAttribute(minInterval: Int, maxInterval: Int): TimeZoneAttribute { + suspend fun subscribeTimeZoneAttribute( + minInterval: Int, + maxInterval: Int + ): TimeZoneAttribute { // Implementation needs to be added here } @@ -168,7 +185,10 @@ class TimeSynchronizationCluster( // Implementation needs to be added here } - suspend fun subscribeDSTOffsetAttribute(minInterval: Int, maxInterval: Int): DSTOffsetAttribute { + suspend fun subscribeDSTOffsetAttribute( + minInterval: Int, + maxInterval: Int + ): DSTOffsetAttribute { // Implementation needs to be added here } @@ -176,7 +196,10 @@ class TimeSynchronizationCluster( // Implementation needs to be added here } - suspend fun subscribeLocalTimeAttribute(minInterval: Int, maxInterval: Int): LocalTimeAttribute { + suspend fun subscribeLocalTimeAttribute( + minInterval: Int, + maxInterval: Int + ): LocalTimeAttribute { // Implementation needs to be added here } @@ -184,7 +207,10 @@ class TimeSynchronizationCluster( // Implementation needs to be added here } - suspend fun subscribeTimeZoneDatabaseAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeTimeZoneDatabaseAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -192,7 +218,10 @@ class TimeSynchronizationCluster( // Implementation needs to be added here } - suspend fun subscribeNTPServerAvailableAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeNTPServerAvailableAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -200,7 +229,10 @@ class TimeSynchronizationCluster( // Implementation needs to be added here } - suspend fun subscribeTimeZoneListMaxSizeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeTimeZoneListMaxSizeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -208,7 +240,10 @@ class TimeSynchronizationCluster( // Implementation needs to be added here } - suspend fun subscribeDSTOffsetListMaxSizeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeDSTOffsetListMaxSizeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -216,7 +251,10 @@ class TimeSynchronizationCluster( // Implementation needs to be added here } - suspend fun subscribeSupportsDNSResolveAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeSupportsDNSResolveAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -246,7 +284,10 @@ class TimeSynchronizationCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -265,7 +306,10 @@ class TimeSynchronizationCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -273,7 +317,10 @@ class TimeSynchronizationCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimerCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimerCluster.kt index 2ec115fde7742e..c9925761f4112f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimerCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimerCluster.kt @@ -21,13 +21,21 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class TimerCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun setTimer(newTime: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -36,7 +44,7 @@ class TimerCluster(private val controller: MatterController, private val endpoin // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun resetTimer(timedInvokeTimeoutMs: Int? = null) { @@ -46,7 +54,7 @@ class TimerCluster(private val controller: MatterController, private val endpoin // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun addTime(additionalTime: UInt, timedInvokeTimeoutMs: Int? = null) { @@ -56,7 +64,7 @@ class TimerCluster(private val controller: MatterController, private val endpoin // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun reduceTime(timeReduction: UInt, timedInvokeTimeoutMs: Int? = null) { @@ -66,14 +74,17 @@ class TimerCluster(private val controller: MatterController, private val endpoin // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readSetTimeAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeSetTimeAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeSetTimeAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -81,7 +92,10 @@ class TimerCluster(private val controller: MatterController, private val endpoin // Implementation needs to be added here } - suspend fun subscribeTimeRemainingAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeTimeRemainingAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -89,7 +103,10 @@ class TimerCluster(private val controller: MatterController, private val endpoin // Implementation needs to be added here } - suspend fun subscribeTimerStateAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeTimerStateAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -119,7 +136,10 @@ class TimerCluster(private val controller: MatterController, private val endpoin // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -138,7 +158,10 @@ class TimerCluster(private val controller: MatterController, private val endpoin // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -146,7 +169,10 @@ class TimerCluster(private val controller: MatterController, private val endpoin // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TotalVolatileOrganicCompoundsConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TotalVolatileOrganicCompoundsConcentrationMeasurementCluster.kt index bd37b97759d83e..fcd0bcc15585a3 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TotalVolatileOrganicCompoundsConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TotalVolatileOrganicCompoundsConcentrationMeasurementCluster.kt @@ -20,27 +20,42 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class MeasuredValueAttribute(val value: Float?) +class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { + class MeasuredValueAttribute( + val value: Float? + ) - class MinMeasuredValueAttribute(val value: Float?) + class MinMeasuredValueAttribute( + val value: Float? + ) - class MaxMeasuredValueAttribute(val value: Float?) + class MaxMeasuredValueAttribute( + val value: Float? + ) - class PeakMeasuredValueAttribute(val value: Float?) + class PeakMeasuredValueAttribute( + val value: Float? + ) - class AverageMeasuredValueAttribute(val value: Float?) + class AverageMeasuredValueAttribute( + val value: Float? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -90,7 +105,10 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -120,7 +138,10 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { + suspend fun subscribeUncertaintyAttribute( + minInterval: Int, + maxInterval: Int + ): Float { // Implementation needs to be added here } @@ -128,7 +149,10 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMeasurementUnitAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -136,7 +160,10 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeMeasurementMediumAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -144,7 +171,10 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeLevelValueAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -174,7 +204,10 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -193,7 +226,10 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -201,7 +237,10 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitLocalizationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitLocalizationCluster.kt index 573489cd5d60bd..b5cca47577ef1d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitLocalizationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitLocalizationCluster.kt @@ -20,31 +20,42 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class UnitLocalizationCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class GeneratedCommandListAttribute(val value: List) +class UnitLocalizationCluster(private val controller: MatterController, private val endpointId: UShort) { + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readTemperatureUnitAttribute(): UByte { // Implementation needs to be added here } - suspend fun writeTemperatureUnitAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeTemperatureUnitAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeTemperatureUnitAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeTemperatureUnitAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -74,7 +85,10 @@ class UnitLocalizationCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -93,7 +107,10 @@ class UnitLocalizationCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -101,7 +118,10 @@ class UnitLocalizationCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitTestingCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitTestingCluster.kt index 30cfa97aab4cec..7fe867df9c8339 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitTestingCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitTestingCluster.kt @@ -21,160 +21,265 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class UnitTestingCluster(private val controller: MatterController, private val endpointId: UShort) { - class TestSpecificResponse(val returnValue: UByte) + class TestSpecificResponse( + val returnValue: UByte + ) - class TestAddArgumentsResponse(val returnValue: UByte) + class TestAddArgumentsResponse( + val returnValue: UByte + ) - class TestSimpleArgumentResponse(val returnValue: Boolean) + class TestSimpleArgumentResponse( + val returnValue: Boolean + ) class TestStructArrayArgumentResponse( - val arg1: List, - val arg2: List, - val arg3: List, - val arg4: List, - val arg5: UInt, + val arg1: List, + val arg2: List, + val arg3: List, + val arg4: List, + val arg5: UInt, val arg6: Boolean ) - class BooleanResponse(val value: Boolean) + class BooleanResponse( + val value: Boolean + ) - class TestListInt8UReverseResponse(val arg1: List) + class TestListInt8UReverseResponse( + val arg1: List + ) - class TestEnumsResponse(val arg1: UShort, val arg2: UInt) + class TestEnumsResponse( + val arg1: UShort, + val arg2: UInt + ) class TestNullableOptionalResponse( - val wasPresent: Boolean, - val wasNull: Boolean?, - val value: UByte?, + val wasPresent: Boolean, + val wasNull: Boolean?, + val value: UByte?, val originalValue: UByte? ) class TestComplexNullableOptionalResponse( - val nullableIntWasNull: Boolean, - val nullableIntValue: UShort?, - val optionalIntWasPresent: Boolean, - val optionalIntValue: UShort?, - val nullableOptionalIntWasPresent: Boolean, - val nullableOptionalIntWasNull: Boolean?, - val nullableOptionalIntValue: UShort?, - val nullableStringWasNull: Boolean, - val nullableStringValue: String?, - val optionalStringWasPresent: Boolean, - val optionalStringValue: String?, - val nullableOptionalStringWasPresent: Boolean, - val nullableOptionalStringWasNull: Boolean?, - val nullableOptionalStringValue: String?, - val nullableStructWasNull: Boolean, - val nullableStructValue: UnitTestingClusterSimpleStruct?, - val optionalStructWasPresent: Boolean, - val optionalStructValue: UnitTestingClusterSimpleStruct?, - val nullableOptionalStructWasPresent: Boolean, - val nullableOptionalStructWasNull: Boolean?, - val nullableOptionalStructValue: UnitTestingClusterSimpleStruct?, - val nullableListWasNull: Boolean, - val nullableListValue: List?, - val optionalListWasPresent: Boolean, - val optionalListValue: List?, - val nullableOptionalListWasPresent: Boolean, - val nullableOptionalListWasNull: Boolean?, + val nullableIntWasNull: Boolean, + val nullableIntValue: UShort?, + val optionalIntWasPresent: Boolean, + val optionalIntValue: UShort?, + val nullableOptionalIntWasPresent: Boolean, + val nullableOptionalIntWasNull: Boolean?, + val nullableOptionalIntValue: UShort?, + val nullableStringWasNull: Boolean, + val nullableStringValue: String?, + val optionalStringWasPresent: Boolean, + val optionalStringValue: String?, + val nullableOptionalStringWasPresent: Boolean, + val nullableOptionalStringWasNull: Boolean?, + val nullableOptionalStringValue: String?, + val nullableStructWasNull: Boolean, + val nullableStructValue: UnitTestingClusterSimpleStruct?, + val optionalStructWasPresent: Boolean, + val optionalStructValue: UnitTestingClusterSimpleStruct?, + val nullableOptionalStructWasPresent: Boolean, + val nullableOptionalStructWasNull: Boolean?, + val nullableOptionalStructValue: UnitTestingClusterSimpleStruct?, + val nullableListWasNull: Boolean, + val nullableListValue: List?, + val optionalListWasPresent: Boolean, + val optionalListValue: List?, + val nullableOptionalListWasPresent: Boolean, + val nullableOptionalListWasNull: Boolean?, val nullableOptionalListValue: List? ) - class SimpleStructResponse(val arg1: UnitTestingClusterSimpleStruct) + class SimpleStructResponse( + val arg1: UnitTestingClusterSimpleStruct + ) - class TestEmitTestEventResponse(val value: ULong) + class TestEmitTestEventResponse( + val value: ULong + ) - class TestEmitTestFabricScopedEventResponse(val value: ULong) + class TestEmitTestFabricScopedEventResponse( + val value: ULong + ) - class ListInt8uAttribute(val value: List) + class ListInt8uAttribute( + val value: List + ) - class ListOctetStringAttribute(val value: List) + class ListOctetStringAttribute( + val value: List + ) - class ListStructOctetStringAttribute(val value: List) + class ListStructOctetStringAttribute( + val value: List + ) class ListNullablesAndOptionalsStructAttribute( val value: List ) - class StructAttrAttribute(val value: UnitTestingClusterSimpleStruct) + class StructAttrAttribute( + val value: UnitTestingClusterSimpleStruct + ) - class ListLongOctetStringAttribute(val value: List) + class ListLongOctetStringAttribute( + val value: List + ) - class ListFabricScopedAttribute(val value: List) + class ListFabricScopedAttribute( + val value: List + ) - class NullableBooleanAttribute(val value: Boolean?) + class NullableBooleanAttribute( + val value: Boolean? + ) - class NullableBitmap8Attribute(val value: UInt?) + class NullableBitmap8Attribute( + val value: UInt? + ) - class NullableBitmap16Attribute(val value: UInt?) + class NullableBitmap16Attribute( + val value: UInt? + ) - class NullableBitmap32Attribute(val value: ULong?) + class NullableBitmap32Attribute( + val value: ULong? + ) - class NullableBitmap64Attribute(val value: ULong?) + class NullableBitmap64Attribute( + val value: ULong? + ) - class NullableInt8uAttribute(val value: UByte?) + class NullableInt8uAttribute( + val value: UByte? + ) - class NullableInt16uAttribute(val value: UShort?) + class NullableInt16uAttribute( + val value: UShort? + ) - class NullableInt24uAttribute(val value: UInt?) + class NullableInt24uAttribute( + val value: UInt? + ) - class NullableInt32uAttribute(val value: UInt?) + class NullableInt32uAttribute( + val value: UInt? + ) - class NullableInt40uAttribute(val value: ULong?) + class NullableInt40uAttribute( + val value: ULong? + ) - class NullableInt48uAttribute(val value: ULong?) + class NullableInt48uAttribute( + val value: ULong? + ) - class NullableInt56uAttribute(val value: ULong?) + class NullableInt56uAttribute( + val value: ULong? + ) - class NullableInt64uAttribute(val value: ULong?) + class NullableInt64uAttribute( + val value: ULong? + ) - class NullableInt8sAttribute(val value: Byte?) + class NullableInt8sAttribute( + val value: Byte? + ) - class NullableInt16sAttribute(val value: Short?) + class NullableInt16sAttribute( + val value: Short? + ) - class NullableInt24sAttribute(val value: Int?) + class NullableInt24sAttribute( + val value: Int? + ) - class NullableInt32sAttribute(val value: Int?) + class NullableInt32sAttribute( + val value: Int? + ) - class NullableInt40sAttribute(val value: Long?) + class NullableInt40sAttribute( + val value: Long? + ) - class NullableInt48sAttribute(val value: Long?) + class NullableInt48sAttribute( + val value: Long? + ) - class NullableInt56sAttribute(val value: Long?) + class NullableInt56sAttribute( + val value: Long? + ) - class NullableInt64sAttribute(val value: Long?) + class NullableInt64sAttribute( + val value: Long? + ) - class NullableEnum8Attribute(val value: UInt?) + class NullableEnum8Attribute( + val value: UInt? + ) - class NullableEnum16Attribute(val value: UInt?) + class NullableEnum16Attribute( + val value: UInt? + ) - class NullableFloatSingleAttribute(val value: Float?) + class NullableFloatSingleAttribute( + val value: Float? + ) - class NullableFloatDoubleAttribute(val value: Double?) + class NullableFloatDoubleAttribute( + val value: Double? + ) - class NullableOctetStringAttribute(val value: ByteArray?) + class NullableOctetStringAttribute( + val value: ByteArray? + ) - class NullableCharStringAttribute(val value: String?) + class NullableCharStringAttribute( + val value: String? + ) - class NullableEnumAttrAttribute(val value: UInt?) + class NullableEnumAttrAttribute( + val value: UInt? + ) - class NullableStructAttribute(val value: UnitTestingClusterSimpleStruct?) + class NullableStructAttribute( + val value: UnitTestingClusterSimpleStruct? + ) - class NullableRangeRestrictedInt8uAttribute(val value: UByte?) + class NullableRangeRestrictedInt8uAttribute( + val value: UByte? + ) - class NullableRangeRestrictedInt8sAttribute(val value: Byte?) + class NullableRangeRestrictedInt8sAttribute( + val value: Byte? + ) - class NullableRangeRestrictedInt16uAttribute(val value: UShort?) + class NullableRangeRestrictedInt16uAttribute( + val value: UShort? + ) - class NullableRangeRestrictedInt16sAttribute(val value: Short?) + class NullableRangeRestrictedInt16sAttribute( + val value: Short? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun test(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -183,7 +288,7 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun testNotHandled(timedInvokeTimeoutMs: Int? = null) { @@ -193,7 +298,7 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun testSpecific(timedInvokeTimeoutMs: Int? = null): TestSpecificResponse { @@ -203,7 +308,7 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun testUnknownCommand(timedInvokeTimeoutMs: Int? = null) { @@ -213,213 +318,153 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testAddArguments( - arg1: UByte, - arg2: UByte, - timedInvokeTimeoutMs: Int? = null - ): TestAddArgumentsResponse { + suspend fun testAddArguments(arg1: UByte, arg2: UByte, timedInvokeTimeoutMs: Int? = null): TestAddArgumentsResponse { val commandId = 4L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testSimpleArgumentRequest( - arg1: Boolean, - timedInvokeTimeoutMs: Int? = null - ): TestSimpleArgumentResponse { + suspend fun testSimpleArgumentRequest(arg1: Boolean, timedInvokeTimeoutMs: Int? = null): TestSimpleArgumentResponse { val commandId = 5L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } - } - - suspend fun testStructArrayArgumentRequest( - arg1: List, - arg2: List, - arg3: List, - arg4: List, - arg5: UInt, - arg6: Boolean, - timedInvokeTimeoutMs: Int? = null - ): TestStructArrayArgumentResponse { + } + } + + suspend fun testStructArrayArgumentRequest(arg1: List, arg2: List, arg3: List, arg4: List, arg5: UInt, arg6: Boolean, timedInvokeTimeoutMs: Int? = null): TestStructArrayArgumentResponse { val commandId = 6L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testStructArgumentRequest( - arg1: UnitTestingClusterSimpleStruct, - timedInvokeTimeoutMs: Int? = null - ): BooleanResponse { + suspend fun testStructArgumentRequest(arg1: UnitTestingClusterSimpleStruct, timedInvokeTimeoutMs: Int? = null): BooleanResponse { val commandId = 7L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testNestedStructArgumentRequest( - arg1: UnitTestingClusterNestedStruct, - timedInvokeTimeoutMs: Int? = null - ): BooleanResponse { + suspend fun testNestedStructArgumentRequest(arg1: UnitTestingClusterNestedStruct, timedInvokeTimeoutMs: Int? = null): BooleanResponse { val commandId = 8L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testListStructArgumentRequest( - arg1: List, - timedInvokeTimeoutMs: Int? = null - ): BooleanResponse { + suspend fun testListStructArgumentRequest(arg1: List, timedInvokeTimeoutMs: Int? = null): BooleanResponse { val commandId = 9L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testListInt8UArgumentRequest( - arg1: List, - timedInvokeTimeoutMs: Int? = null - ): BooleanResponse { + suspend fun testListInt8UArgumentRequest(arg1: List, timedInvokeTimeoutMs: Int? = null): BooleanResponse { val commandId = 10L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testNestedStructListArgumentRequest( - arg1: UnitTestingClusterNestedStructList, - timedInvokeTimeoutMs: Int? = null - ): BooleanResponse { + suspend fun testNestedStructListArgumentRequest(arg1: UnitTestingClusterNestedStructList, timedInvokeTimeoutMs: Int? = null): BooleanResponse { val commandId = 11L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testListNestedStructListArgumentRequest( - arg1: List, - timedInvokeTimeoutMs: Int? = null - ): BooleanResponse { + suspend fun testListNestedStructListArgumentRequest(arg1: List, timedInvokeTimeoutMs: Int? = null): BooleanResponse { val commandId = 12L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testListInt8UReverseRequest( - arg1: List, - timedInvokeTimeoutMs: Int? = null - ): TestListInt8UReverseResponse { + suspend fun testListInt8UReverseRequest(arg1: List, timedInvokeTimeoutMs: Int? = null): TestListInt8UReverseResponse { val commandId = 13L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testEnumsRequest( - arg1: UShort, - arg2: UInt, - timedInvokeTimeoutMs: Int? = null - ): TestEnumsResponse { + suspend fun testEnumsRequest(arg1: UShort, arg2: UInt, timedInvokeTimeoutMs: Int? = null): TestEnumsResponse { val commandId = 14L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testNullableOptionalRequest( - arg1: UByte?, - timedInvokeTimeoutMs: Int? = null - ): TestNullableOptionalResponse { + suspend fun testNullableOptionalRequest(arg1: UByte?, timedInvokeTimeoutMs: Int? = null): TestNullableOptionalResponse { val commandId = 15L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } - } - - suspend fun testComplexNullableOptionalRequest( - nullableInt: UShort?, - optionalInt: UShort?, - nullableOptionalInt: UShort?, - nullableString: String?, - optionalString: String?, - nullableOptionalString: String?, - nullableStruct: UnitTestingClusterSimpleStruct?, - optionalStruct: UnitTestingClusterSimpleStruct?, - nullableOptionalStruct: UnitTestingClusterSimpleStruct?, - nullableList: List?, - optionalList: List?, - nullableOptionalList: List?, - timedInvokeTimeoutMs: Int? = null - ): TestComplexNullableOptionalResponse { + } + } + + suspend fun testComplexNullableOptionalRequest(nullableInt: UShort?, optionalInt: UShort?, nullableOptionalInt: UShort?, nullableString: String?, optionalString: String?, nullableOptionalString: String?, nullableStruct: UnitTestingClusterSimpleStruct?, optionalStruct: UnitTestingClusterSimpleStruct?, nullableOptionalStruct: UnitTestingClusterSimpleStruct?, nullableList: List?, optionalList: List?, nullableOptionalList: List?, timedInvokeTimeoutMs: Int? = null): TestComplexNullableOptionalResponse { val commandId = 16L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun simpleStructEchoRequest( - arg1: UnitTestingClusterSimpleStruct, - timedInvokeTimeoutMs: Int? = null - ): SimpleStructResponse { + suspend fun simpleStructEchoRequest(arg1: UnitTestingClusterSimpleStruct, timedInvokeTimeoutMs: Int? = null): SimpleStructResponse { val commandId = 17L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun timedInvokeRequest(timedInvokeTimeoutMs: Int) { val commandId = 18L - // Implementation needs to be added here + // Implementation needs to be added here } suspend fun testSimpleOptionalArgumentRequest(arg1: Boolean?, timedInvokeTimeoutMs: Int? = null) { @@ -429,50 +474,48 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testEmitTestEventRequest( - arg1: UByte, - arg2: UInt, - arg3: Boolean, - timedInvokeTimeoutMs: Int? = null - ): TestEmitTestEventResponse { + suspend fun testEmitTestEventRequest(arg1: UByte, arg2: UInt, arg3: Boolean, timedInvokeTimeoutMs: Int? = null): TestEmitTestEventResponse { val commandId = 20L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testEmitTestFabricScopedEventRequest( - arg1: UByte, - timedInvokeTimeoutMs: Int? = null - ): TestEmitTestFabricScopedEventResponse { + suspend fun testEmitTestFabricScopedEventRequest(arg1: UByte, timedInvokeTimeoutMs: Int? = null): TestEmitTestFabricScopedEventResponse { val commandId = 21L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readBooleanAttribute(): Boolean { // Implementation needs to be added here } - suspend fun writeBooleanAttribute(value: Boolean, timedWriteTimeoutMs: Int? = null) { + suspend fun writeBooleanAttribute( + value: Boolean, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeBooleanAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeBooleanAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -480,15 +523,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeBitmap8Attribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeBitmap8Attribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeBitmap8Attribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeBitmap8Attribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -496,15 +545,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeBitmap16Attribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeBitmap16Attribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeBitmap16Attribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeBitmap16Attribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -512,15 +567,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeBitmap32Attribute(value: ULong, timedWriteTimeoutMs: Int? = null) { + suspend fun writeBitmap32Attribute( + value: ULong, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeBitmap32Attribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeBitmap32Attribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -528,15 +589,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeBitmap64Attribute(value: ULong, timedWriteTimeoutMs: Int? = null) { + suspend fun writeBitmap64Attribute( + value: ULong, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeBitmap64Attribute(minInterval: Int, maxInterval: Int): ULong { + suspend fun subscribeBitmap64Attribute( + minInterval: Int, + maxInterval: Int + ): ULong { // Implementation needs to be added here } @@ -544,15 +611,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt8uAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeInt8uAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt8uAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeInt8uAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -560,15 +633,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt16uAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeInt16uAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt16uAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeInt16uAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -576,15 +655,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt24uAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeInt24uAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt24uAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeInt24uAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -592,15 +677,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt32uAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeInt32uAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt32uAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeInt32uAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -608,15 +699,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt40uAttribute(value: ULong, timedWriteTimeoutMs: Int? = null) { + suspend fun writeInt40uAttribute( + value: ULong, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt40uAttribute(minInterval: Int, maxInterval: Int): ULong { + suspend fun subscribeInt40uAttribute( + minInterval: Int, + maxInterval: Int + ): ULong { // Implementation needs to be added here } @@ -624,15 +721,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt48uAttribute(value: ULong, timedWriteTimeoutMs: Int? = null) { + suspend fun writeInt48uAttribute( + value: ULong, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt48uAttribute(minInterval: Int, maxInterval: Int): ULong { + suspend fun subscribeInt48uAttribute( + minInterval: Int, + maxInterval: Int + ): ULong { // Implementation needs to be added here } @@ -640,15 +743,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt56uAttribute(value: ULong, timedWriteTimeoutMs: Int? = null) { + suspend fun writeInt56uAttribute( + value: ULong, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt56uAttribute(minInterval: Int, maxInterval: Int): ULong { + suspend fun subscribeInt56uAttribute( + minInterval: Int, + maxInterval: Int + ): ULong { // Implementation needs to be added here } @@ -656,15 +765,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt64uAttribute(value: ULong, timedWriteTimeoutMs: Int? = null) { + suspend fun writeInt64uAttribute( + value: ULong, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt64uAttribute(minInterval: Int, maxInterval: Int): ULong { + suspend fun subscribeInt64uAttribute( + minInterval: Int, + maxInterval: Int + ): ULong { // Implementation needs to be added here } @@ -672,15 +787,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt8sAttribute(value: Byte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeInt8sAttribute( + value: Byte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt8sAttribute(minInterval: Int, maxInterval: Int): Byte { + suspend fun subscribeInt8sAttribute( + minInterval: Int, + maxInterval: Int + ): Byte { // Implementation needs to be added here } @@ -688,15 +809,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt16sAttribute(value: Short, timedWriteTimeoutMs: Int? = null) { + suspend fun writeInt16sAttribute( + value: Short, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt16sAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeInt16sAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -704,15 +831,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt24sAttribute(value: Int, timedWriteTimeoutMs: Int? = null) { + suspend fun writeInt24sAttribute( + value: Int, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt24sAttribute(minInterval: Int, maxInterval: Int): Int { + suspend fun subscribeInt24sAttribute( + minInterval: Int, + maxInterval: Int + ): Int { // Implementation needs to be added here } @@ -720,15 +853,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt32sAttribute(value: Int, timedWriteTimeoutMs: Int? = null) { + suspend fun writeInt32sAttribute( + value: Int, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt32sAttribute(minInterval: Int, maxInterval: Int): Int { + suspend fun subscribeInt32sAttribute( + minInterval: Int, + maxInterval: Int + ): Int { // Implementation needs to be added here } @@ -736,15 +875,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt40sAttribute(value: Long, timedWriteTimeoutMs: Int? = null) { + suspend fun writeInt40sAttribute( + value: Long, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt40sAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeInt40sAttribute( + minInterval: Int, + maxInterval: Int + ): Long { // Implementation needs to be added here } @@ -752,15 +897,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt48sAttribute(value: Long, timedWriteTimeoutMs: Int? = null) { + suspend fun writeInt48sAttribute( + value: Long, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt48sAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeInt48sAttribute( + minInterval: Int, + maxInterval: Int + ): Long { // Implementation needs to be added here } @@ -768,15 +919,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt56sAttribute(value: Long, timedWriteTimeoutMs: Int? = null) { + suspend fun writeInt56sAttribute( + value: Long, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt56sAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeInt56sAttribute( + minInterval: Int, + maxInterval: Int + ): Long { // Implementation needs to be added here } @@ -784,15 +941,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt64sAttribute(value: Long, timedWriteTimeoutMs: Int? = null) { + suspend fun writeInt64sAttribute( + value: Long, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt64sAttribute(minInterval: Int, maxInterval: Int): Long { + suspend fun subscribeInt64sAttribute( + minInterval: Int, + maxInterval: Int + ): Long { // Implementation needs to be added here } @@ -800,15 +963,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeEnum8Attribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeEnum8Attribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeEnum8Attribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeEnum8Attribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -816,15 +985,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeEnum16Attribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeEnum16Attribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeEnum16Attribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeEnum16Attribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -832,15 +1007,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeFloatSingleAttribute(value: Float, timedWriteTimeoutMs: Int? = null) { + suspend fun writeFloatSingleAttribute( + value: Float, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeFloatSingleAttribute(minInterval: Int, maxInterval: Int): Float { + suspend fun subscribeFloatSingleAttribute( + minInterval: Int, + maxInterval: Int + ): Float { // Implementation needs to be added here } @@ -848,15 +1029,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeFloatDoubleAttribute(value: Double, timedWriteTimeoutMs: Int? = null) { + suspend fun writeFloatDoubleAttribute( + value: Double, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeFloatDoubleAttribute(minInterval: Int, maxInterval: Int): Double { + suspend fun subscribeFloatDoubleAttribute( + minInterval: Int, + maxInterval: Int + ): Double { // Implementation needs to be added here } @@ -864,15 +1051,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeOctetStringAttribute(value: ByteArray, timedWriteTimeoutMs: Int? = null) { + suspend fun writeOctetStringAttribute( + value: ByteArray, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOctetStringAttribute(minInterval: Int, maxInterval: Int): OctetString { + suspend fun subscribeOctetStringAttribute( + minInterval: Int, + maxInterval: Int + ): OctetString { // Implementation needs to be added here } @@ -880,15 +1073,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeListInt8uAttribute(value: List, timedWriteTimeoutMs: Int? = null) { + suspend fun writeListInt8uAttribute( + value: List, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeListInt8uAttribute(minInterval: Int, maxInterval: Int): ListInt8uAttribute { + suspend fun subscribeListInt8uAttribute( + minInterval: Int, + maxInterval: Int + ): ListInt8uAttribute { // Implementation needs to be added here } @@ -898,13 +1097,13 @@ class UnitTestingCluster(private val controller: MatterController, private val e suspend fun writeListOctetStringAttribute( value: List, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeListOctetStringAttribute( @@ -920,13 +1119,13 @@ class UnitTestingCluster(private val controller: MatterController, private val e suspend fun writeListStructOctetStringAttribute( value: List, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeListStructOctetStringAttribute( @@ -940,15 +1139,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeLongOctetStringAttribute(value: ByteArray, timedWriteTimeoutMs: Int? = null) { + suspend fun writeLongOctetStringAttribute( + value: ByteArray, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeLongOctetStringAttribute(minInterval: Int, maxInterval: Int): OctetString { + suspend fun subscribeLongOctetStringAttribute( + minInterval: Int, + maxInterval: Int + ): OctetString { // Implementation needs to be added here } @@ -956,15 +1161,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeCharStringAttribute(value: String, timedWriteTimeoutMs: Int? = null) { + suspend fun writeCharStringAttribute( + value: String, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeCharStringAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeCharStringAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -972,15 +1183,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeLongCharStringAttribute(value: String, timedWriteTimeoutMs: Int? = null) { + suspend fun writeLongCharStringAttribute( + value: String, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeLongCharStringAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeLongCharStringAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -988,15 +1205,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeEpochUsAttribute(value: ULong, timedWriteTimeoutMs: Int? = null) { + suspend fun writeEpochUsAttribute( + value: ULong, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeEpochUsAttribute(minInterval: Int, maxInterval: Int): ULong { + suspend fun subscribeEpochUsAttribute( + minInterval: Int, + maxInterval: Int + ): ULong { // Implementation needs to be added here } @@ -1004,15 +1227,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeEpochSAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeEpochSAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeEpochSAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeEpochSAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -1020,32 +1249,37 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeVendorIdAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeVendorIdAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeVendorIdAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeVendorIdAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } - suspend fun readListNullablesAndOptionalsStructAttribute(): - ListNullablesAndOptionalsStructAttribute { + suspend fun readListNullablesAndOptionalsStructAttribute(): ListNullablesAndOptionalsStructAttribute { // Implementation needs to be added here } suspend fun writeListNullablesAndOptionalsStructAttribute( value: List, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeListNullablesAndOptionalsStructAttribute( @@ -1059,15 +1293,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeEnumAttrAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeEnumAttrAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeEnumAttrAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeEnumAttrAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -1077,13 +1317,13 @@ class UnitTestingCluster(private val controller: MatterController, private val e suspend fun writeStructAttrAttribute( value: UnitTestingClusterSimpleStruct, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeStructAttrAttribute( @@ -1097,15 +1337,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeRangeRestrictedInt8uAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeRangeRestrictedInt8uAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeRangeRestrictedInt8uAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeRangeRestrictedInt8uAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -1113,15 +1359,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeRangeRestrictedInt8sAttribute(value: Byte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeRangeRestrictedInt8sAttribute( + value: Byte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeRangeRestrictedInt8sAttribute(minInterval: Int, maxInterval: Int): Byte { + suspend fun subscribeRangeRestrictedInt8sAttribute( + minInterval: Int, + maxInterval: Int + ): Byte { // Implementation needs to be added here } @@ -1129,15 +1381,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeRangeRestrictedInt16uAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeRangeRestrictedInt16uAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeRangeRestrictedInt16uAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeRangeRestrictedInt16uAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -1145,15 +1403,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeRangeRestrictedInt16sAttribute(value: Short, timedWriteTimeoutMs: Int? = null) { + suspend fun writeRangeRestrictedInt16sAttribute( + value: Short, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeRangeRestrictedInt16sAttribute(minInterval: Int, maxInterval: Int): Short { + suspend fun subscribeRangeRestrictedInt16sAttribute( + minInterval: Int, + maxInterval: Int + ): Short { // Implementation needs to be added here } @@ -1163,13 +1427,13 @@ class UnitTestingCluster(private val controller: MatterController, private val e suspend fun writeListLongOctetStringAttribute( value: List, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeListLongOctetStringAttribute( @@ -1189,15 +1453,16 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } + suspend fun writeListFabricScopedAttribute( value: List, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeListFabricScopedAttribute( @@ -1211,11 +1476,16 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeTimedWriteBooleanAttribute(value: Boolean, timedWriteTimeoutMs: Int) { - // Implementation needs to be added here + suspend fun writeTimedWriteBooleanAttribute( + value: Boolean,timedWriteTimeoutMs: Int + ) { + // Implementation needs to be added here } - suspend fun subscribeTimedWriteBooleanAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeTimedWriteBooleanAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -1223,15 +1493,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeGeneralErrorBooleanAttribute(value: Boolean, timedWriteTimeoutMs: Int? = null) { + suspend fun writeGeneralErrorBooleanAttribute( + value: Boolean, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeGeneralErrorBooleanAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeGeneralErrorBooleanAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -1239,15 +1515,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeClusterErrorBooleanAttribute(value: Boolean, timedWriteTimeoutMs: Int? = null) { + suspend fun writeClusterErrorBooleanAttribute( + value: Boolean, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeClusterErrorBooleanAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeClusterErrorBooleanAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -1255,15 +1537,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeUnsupportedAttribute(value: Boolean, timedWriteTimeoutMs: Int? = null) { + suspend fun writeUnsupportedAttribute( + value: Boolean, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeUnsupportedAttribute(minInterval: Int, maxInterval: Int): Boolean { + suspend fun subscribeUnsupportedAttribute( + minInterval: Int, + maxInterval: Int + ): Boolean { // Implementation needs to be added here } @@ -1271,12 +1559,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableBooleanAttribute(value: Boolean, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableBooleanAttribute( + value: Boolean, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableBooleanAttribute( @@ -1290,12 +1581,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableBitmap8Attribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableBitmap8Attribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableBitmap8Attribute( @@ -1309,12 +1603,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableBitmap16Attribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableBitmap16Attribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableBitmap16Attribute( @@ -1328,12 +1625,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableBitmap32Attribute(value: ULong, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableBitmap32Attribute( + value: ULong, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableBitmap32Attribute( @@ -1347,12 +1647,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableBitmap64Attribute(value: ULong, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableBitmap64Attribute( + value: ULong, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableBitmap64Attribute( @@ -1366,12 +1669,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt8uAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableInt8uAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt8uAttribute( @@ -1385,12 +1691,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt16uAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableInt16uAttribute( + value: UShort, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt16uAttribute( @@ -1404,12 +1713,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt24uAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableInt24uAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt24uAttribute( @@ -1423,12 +1735,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt32uAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableInt32uAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt32uAttribute( @@ -1442,12 +1757,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt40uAttribute(value: ULong, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableInt40uAttribute( + value: ULong, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt40uAttribute( @@ -1461,12 +1779,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt48uAttribute(value: ULong, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableInt48uAttribute( + value: ULong, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt48uAttribute( @@ -1480,12 +1801,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt56uAttribute(value: ULong, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableInt56uAttribute( + value: ULong, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt56uAttribute( @@ -1499,12 +1823,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt64uAttribute(value: ULong, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableInt64uAttribute( + value: ULong, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt64uAttribute( @@ -1518,12 +1845,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt8sAttribute(value: Byte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableInt8sAttribute( + value: Byte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt8sAttribute( @@ -1537,12 +1867,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt16sAttribute(value: Short, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableInt16sAttribute( + value: Short, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt16sAttribute( @@ -1556,12 +1889,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt24sAttribute(value: Int, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableInt24sAttribute( + value: Int, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt24sAttribute( @@ -1575,12 +1911,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt32sAttribute(value: Int, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableInt32sAttribute( + value: Int, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt32sAttribute( @@ -1594,12 +1933,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt40sAttribute(value: Long, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableInt40sAttribute( + value: Long, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt40sAttribute( @@ -1613,12 +1955,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt48sAttribute(value: Long, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableInt48sAttribute( + value: Long, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt48sAttribute( @@ -1632,12 +1977,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt56sAttribute(value: Long, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableInt56sAttribute( + value: Long, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt56sAttribute( @@ -1651,12 +1999,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt64sAttribute(value: Long, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableInt64sAttribute( + value: Long, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt64sAttribute( @@ -1670,12 +2021,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableEnum8Attribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableEnum8Attribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableEnum8Attribute( @@ -1689,12 +2043,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableEnum16Attribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableEnum16Attribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableEnum16Attribute( @@ -1708,12 +2065,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableFloatSingleAttribute(value: Float, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableFloatSingleAttribute( + value: Float, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableFloatSingleAttribute( @@ -1727,12 +2087,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableFloatDoubleAttribute(value: Double, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableFloatDoubleAttribute( + value: Double, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableFloatDoubleAttribute( @@ -1748,13 +2111,13 @@ class UnitTestingCluster(private val controller: MatterController, private val e suspend fun writeNullableOctetStringAttribute( value: ByteArray, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableOctetStringAttribute( @@ -1768,12 +2131,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableCharStringAttribute(value: String, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableCharStringAttribute( + value: String, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableCharStringAttribute( @@ -1787,12 +2153,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableEnumAttrAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeNullableEnumAttrAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableEnumAttrAttribute( @@ -1808,13 +2177,13 @@ class UnitTestingCluster(private val controller: MatterController, private val e suspend fun writeNullableStructAttribute( value: UnitTestingClusterSimpleStruct, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableStructAttribute( @@ -1830,13 +2199,13 @@ class UnitTestingCluster(private val controller: MatterController, private val e suspend fun writeNullableRangeRestrictedInt8uAttribute( value: UByte, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableRangeRestrictedInt8uAttribute( @@ -1852,13 +2221,13 @@ class UnitTestingCluster(private val controller: MatterController, private val e suspend fun writeNullableRangeRestrictedInt8sAttribute( value: Byte, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableRangeRestrictedInt8sAttribute( @@ -1874,13 +2243,13 @@ class UnitTestingCluster(private val controller: MatterController, private val e suspend fun writeNullableRangeRestrictedInt16uAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableRangeRestrictedInt16uAttribute( @@ -1896,13 +2265,13 @@ class UnitTestingCluster(private val controller: MatterController, private val e suspend fun writeNullableRangeRestrictedInt16sAttribute( value: Short, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableRangeRestrictedInt16sAttribute( @@ -1916,15 +2285,21 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeWriteOnlyInt8uAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeWriteOnlyInt8uAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeWriteOnlyInt8uAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeWriteOnlyInt8uAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -1954,7 +2329,10 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -1973,7 +2351,10 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -1981,7 +2362,10 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UserLabelCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UserLabelCluster.kt index 4b986531f5b412..5115ceb8025d79 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UserLabelCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UserLabelCluster.kt @@ -21,15 +21,25 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class UserLabelCluster(private val controller: MatterController, private val endpointId: UShort) { - class LabelListAttribute(val value: List) + class LabelListAttribute( + val value: List + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readLabelListAttribute(): LabelListAttribute { // Implementation needs to be added here @@ -37,16 +47,19 @@ class UserLabelCluster(private val controller: MatterController, private val end suspend fun writeLabelListAttribute( value: List, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeLabelListAttribute(minInterval: Int, maxInterval: Int): LabelListAttribute { + suspend fun subscribeLabelListAttribute( + minInterval: Int, + maxInterval: Int + ): LabelListAttribute { // Implementation needs to be added here } @@ -76,7 +89,10 @@ class UserLabelCluster(private val controller: MatterController, private val end // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -95,7 +111,10 @@ class UserLabelCluster(private val controller: MatterController, private val end // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -103,7 +122,10 @@ class UserLabelCluster(private val controller: MatterController, private val end // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ValveConfigurationAndControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ValveConfigurationAndControlCluster.kt index bdcc7781467968..1df7ddfd6186b0 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ValveConfigurationAndControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ValveConfigurationAndControlCluster.kt @@ -20,33 +20,54 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class ValveConfigurationAndControlCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class OpenDurationAttribute(val value: UInt?) +class ValveConfigurationAndControlCluster(private val controller: MatterController, private val endpointId: UShort) { + class OpenDurationAttribute( + val value: UInt? + ) - class AutoCloseTimeAttribute(val value: ULong?) + class AutoCloseTimeAttribute( + val value: ULong? + ) - class RemainingDurationAttribute(val value: UInt?) + class RemainingDurationAttribute( + val value: UInt? + ) - class CurrentStateAttribute(val value: UInt?) + class CurrentStateAttribute( + val value: UInt? + ) - class TargetStateAttribute(val value: UInt?) + class TargetStateAttribute( + val value: UInt? + ) - class CurrentLevelAttribute(val value: UByte?) + class CurrentLevelAttribute( + val value: UByte? + ) - class TargetLevelAttribute(val value: UByte?) + class TargetLevelAttribute( + val value: UByte? + ) - class OpenLevelAttribute(val value: UByte?) + class OpenLevelAttribute( + val value: UByte? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun open(openDuration: UInt?, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -55,7 +76,7 @@ class ValveConfigurationAndControlCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun close(timedInvokeTimeoutMs: Int? = null) { @@ -65,7 +86,7 @@ class ValveConfigurationAndControlCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun setLevel(level: UByte, openDuration: UInt?, timedInvokeTimeoutMs: Int? = null) { @@ -75,19 +96,22 @@ class ValveConfigurationAndControlCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readOpenDurationAttribute(): OpenDurationAttribute { // Implementation needs to be added here } - suspend fun writeOpenDurationAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeOpenDurationAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeOpenDurationAttribute( @@ -145,15 +169,21 @@ class ValveConfigurationAndControlCluster( // Implementation needs to be added here } - suspend fun writeStartUpStateAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeStartUpStateAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeStartUpStateAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeStartUpStateAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -183,15 +213,21 @@ class ValveConfigurationAndControlCluster( // Implementation needs to be added here } - suspend fun writeOpenLevelAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { + suspend fun writeOpenLevelAttribute( + value: UByte, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOpenLevelAttribute(minInterval: Int, maxInterval: Int): OpenLevelAttribute { + suspend fun subscribeOpenLevelAttribute( + minInterval: Int, + maxInterval: Int + ): OpenLevelAttribute { // Implementation needs to be added here } @@ -199,7 +235,10 @@ class ValveConfigurationAndControlCluster( // Implementation needs to be added here } - suspend fun subscribeValveFaultAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeValveFaultAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -229,7 +268,10 @@ class ValveConfigurationAndControlCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -248,7 +290,10 @@ class ValveConfigurationAndControlCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -256,7 +301,10 @@ class ValveConfigurationAndControlCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WakeOnLanCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WakeOnLanCluster.kt index b879ef647988c4..f5e77d2305793b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WakeOnLanCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WakeOnLanCluster.kt @@ -21,19 +21,30 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class WakeOnLanCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun readMACAddressAttribute(): CharString { // Implementation needs to be added here } - suspend fun subscribeMACAddressAttribute(minInterval: Int, maxInterval: Int): CharString { + suspend fun subscribeMACAddressAttribute( + minInterval: Int, + maxInterval: Int + ): CharString { // Implementation needs to be added here } @@ -41,7 +52,10 @@ class WakeOnLanCluster(private val controller: MatterController, private val end // Implementation needs to be added here } - suspend fun subscribeLinkLocalAddressAttribute(minInterval: Int, maxInterval: Int): OctetString { + suspend fun subscribeLinkLocalAddressAttribute( + minInterval: Int, + maxInterval: Int + ): OctetString { // Implementation needs to be added here } @@ -71,7 +85,10 @@ class WakeOnLanCluster(private val controller: MatterController, private val end // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -90,7 +107,10 @@ class WakeOnLanCluster(private val controller: MatterController, private val end // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -98,7 +118,10 @@ class WakeOnLanCluster(private val controller: MatterController, private val end // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WiFiNetworkDiagnosticsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WiFiNetworkDiagnosticsCluster.kt index 3bae4cf3db3210..c962e07a64a968 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WiFiNetworkDiagnosticsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WiFiNetworkDiagnosticsCluster.kt @@ -20,43 +20,74 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class WiFiNetworkDiagnosticsCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class BssidAttribute(val value: ByteArray?) +class WiFiNetworkDiagnosticsCluster(private val controller: MatterController, private val endpointId: UShort) { + class BssidAttribute( + val value: ByteArray? + ) - class SecurityTypeAttribute(val value: UInt?) + class SecurityTypeAttribute( + val value: UInt? + ) - class WiFiVersionAttribute(val value: UInt?) + class WiFiVersionAttribute( + val value: UInt? + ) - class ChannelNumberAttribute(val value: UShort?) + class ChannelNumberAttribute( + val value: UShort? + ) - class RssiAttribute(val value: Byte?) + class RssiAttribute( + val value: Byte? + ) - class BeaconLostCountAttribute(val value: UInt?) + class BeaconLostCountAttribute( + val value: UInt? + ) - class BeaconRxCountAttribute(val value: UInt?) + class BeaconRxCountAttribute( + val value: UInt? + ) - class PacketMulticastRxCountAttribute(val value: UInt?) + class PacketMulticastRxCountAttribute( + val value: UInt? + ) - class PacketMulticastTxCountAttribute(val value: UInt?) + class PacketMulticastTxCountAttribute( + val value: UInt? + ) - class PacketUnicastRxCountAttribute(val value: UInt?) + class PacketUnicastRxCountAttribute( + val value: UInt? + ) - class PacketUnicastTxCountAttribute(val value: UInt?) + class PacketUnicastTxCountAttribute( + val value: UInt? + ) - class CurrentMaxRateAttribute(val value: ULong?) + class CurrentMaxRateAttribute( + val value: ULong? + ) - class OverrunCountAttribute(val value: ULong?) + class OverrunCountAttribute( + val value: ULong? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun resetCounts(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -65,14 +96,17 @@ class WiFiNetworkDiagnosticsCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readBssidAttribute(): BssidAttribute { // Implementation needs to be added here } - suspend fun subscribeBssidAttribute(minInterval: Int, maxInterval: Int): BssidAttribute { + suspend fun subscribeBssidAttribute( + minInterval: Int, + maxInterval: Int + ): BssidAttribute { // Implementation needs to be added here } @@ -113,7 +147,10 @@ class WiFiNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeRssiAttribute(minInterval: Int, maxInterval: Int): RssiAttribute { + suspend fun subscribeRssiAttribute( + minInterval: Int, + maxInterval: Int + ): RssiAttribute { // Implementation needs to be added here } @@ -231,7 +268,10 @@ class WiFiNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -250,7 +290,10 @@ class WiFiNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -258,7 +301,10 @@ class WiFiNetworkDiagnosticsCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WindowCoveringCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WindowCoveringCluster.kt index 644a365b3c2440..131f46588ef6c8 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WindowCoveringCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WindowCoveringCluster.kt @@ -20,33 +20,54 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class WindowCoveringCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class CurrentPositionLiftAttribute(val value: UShort?) +class WindowCoveringCluster(private val controller: MatterController, private val endpointId: UShort) { + class CurrentPositionLiftAttribute( + val value: UShort? + ) - class CurrentPositionTiltAttribute(val value: UShort?) + class CurrentPositionTiltAttribute( + val value: UShort? + ) - class CurrentPositionLiftPercentageAttribute(val value: UByte?) + class CurrentPositionLiftPercentageAttribute( + val value: UByte? + ) - class CurrentPositionTiltPercentageAttribute(val value: UByte?) + class CurrentPositionTiltPercentageAttribute( + val value: UByte? + ) - class TargetPositionLiftPercent100thsAttribute(val value: UShort?) + class TargetPositionLiftPercent100thsAttribute( + val value: UShort? + ) - class TargetPositionTiltPercent100thsAttribute(val value: UShort?) + class TargetPositionTiltPercent100thsAttribute( + val value: UShort? + ) - class CurrentPositionLiftPercent100thsAttribute(val value: UShort?) + class CurrentPositionLiftPercent100thsAttribute( + val value: UShort? + ) - class CurrentPositionTiltPercent100thsAttribute(val value: UShort?) + class CurrentPositionTiltPercent100thsAttribute( + val value: UShort? + ) - class GeneratedCommandListAttribute(val value: List) + class GeneratedCommandListAttribute( + val value: List + ) - class AcceptedCommandListAttribute(val value: List) + class AcceptedCommandListAttribute( + val value: List + ) - class EventListAttribute(val value: List) + class EventListAttribute( + val value: List + ) - class AttributeListAttribute(val value: List) + class AttributeListAttribute( + val value: List + ) suspend fun upOrOpen(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -55,7 +76,7 @@ class WindowCoveringCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun downOrClose(timedInvokeTimeoutMs: Int? = null) { @@ -65,7 +86,7 @@ class WindowCoveringCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun stopMotion(timedInvokeTimeoutMs: Int? = null) { @@ -75,7 +96,7 @@ class WindowCoveringCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun goToLiftValue(liftValue: UShort, timedInvokeTimeoutMs: Int? = null) { @@ -85,20 +106,17 @@ class WindowCoveringCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun goToLiftPercentage( - liftPercent100thsValue: UShort, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun goToLiftPercentage(liftPercent100thsValue: UShort, timedInvokeTimeoutMs: Int? = null) { val commandId = 5L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun goToTiltValue(tiltValue: UShort, timedInvokeTimeoutMs: Int? = null) { @@ -108,27 +126,27 @@ class WindowCoveringCluster( // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun goToTiltPercentage( - tiltPercent100thsValue: UShort, - timedInvokeTimeoutMs: Int? = null - ) { + suspend fun goToTiltPercentage(tiltPercent100thsValue: UShort, timedInvokeTimeoutMs: Int? = null) { val commandId = 8L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readTypeAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeTypeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeTypeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -180,7 +198,10 @@ class WindowCoveringCluster( // Implementation needs to be added here } - suspend fun subscribeNumberOfActuationsLiftAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeNumberOfActuationsLiftAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -188,7 +209,10 @@ class WindowCoveringCluster( // Implementation needs to be added here } - suspend fun subscribeNumberOfActuationsTiltAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeNumberOfActuationsTiltAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -196,7 +220,10 @@ class WindowCoveringCluster( // Implementation needs to be added here } - suspend fun subscribeConfigStatusAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeConfigStatusAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -226,12 +253,14 @@ class WindowCoveringCluster( // Implementation needs to be added here } - suspend fun subscribeOperationalStatusAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeOperationalStatusAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } - suspend fun readTargetPositionLiftPercent100thsAttribute(): - TargetPositionLiftPercent100thsAttribute { + suspend fun readTargetPositionLiftPercent100thsAttribute(): TargetPositionLiftPercent100thsAttribute { // Implementation needs to be added here } @@ -242,8 +271,7 @@ class WindowCoveringCluster( // Implementation needs to be added here } - suspend fun readTargetPositionTiltPercent100thsAttribute(): - TargetPositionTiltPercent100thsAttribute { + suspend fun readTargetPositionTiltPercent100thsAttribute(): TargetPositionTiltPercent100thsAttribute { // Implementation needs to be added here } @@ -258,12 +286,14 @@ class WindowCoveringCluster( // Implementation needs to be added here } - suspend fun subscribeEndProductTypeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeEndProductTypeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } - suspend fun readCurrentPositionLiftPercent100thsAttribute(): - CurrentPositionLiftPercent100thsAttribute { + suspend fun readCurrentPositionLiftPercent100thsAttribute(): CurrentPositionLiftPercent100thsAttribute { // Implementation needs to be added here } @@ -274,8 +304,7 @@ class WindowCoveringCluster( // Implementation needs to be added here } - suspend fun readCurrentPositionTiltPercent100thsAttribute(): - CurrentPositionTiltPercent100thsAttribute { + suspend fun readCurrentPositionTiltPercent100thsAttribute(): CurrentPositionTiltPercent100thsAttribute { // Implementation needs to be added here } @@ -290,7 +319,10 @@ class WindowCoveringCluster( // Implementation needs to be added here } - suspend fun subscribeInstalledOpenLimitLiftAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeInstalledOpenLimitLiftAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -309,7 +341,10 @@ class WindowCoveringCluster( // Implementation needs to be added here } - suspend fun subscribeInstalledOpenLimitTiltAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeInstalledOpenLimitTiltAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -328,15 +363,21 @@ class WindowCoveringCluster( // Implementation needs to be added here } - suspend fun writeModeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { + suspend fun writeModeAttribute( + value: UInt, + timedWriteTimeoutMs: Int? = null + ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeModeAttribute(minInterval: Int, maxInterval: Int): UByte { + suspend fun subscribeModeAttribute( + minInterval: Int, + maxInterval: Int + ): UByte { // Implementation needs to be added here } @@ -344,7 +385,10 @@ class WindowCoveringCluster( // Implementation needs to be added here } - suspend fun subscribeSafetyStatusAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeSafetyStatusAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } @@ -374,7 +418,10 @@ class WindowCoveringCluster( // Implementation needs to be added here } - suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { + suspend fun subscribeEventListAttribute( + minInterval: Int, + maxInterval: Int + ): EventListAttribute { // Implementation needs to be added here } @@ -393,7 +440,10 @@ class WindowCoveringCluster( // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { + suspend fun subscribeFeatureMapAttribute( + minInterval: Int, + maxInterval: Int + ): UInt { // Implementation needs to be added here } @@ -401,7 +451,10 @@ class WindowCoveringCluster( // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { + suspend fun subscribeClusterRevisionAttribute( + minInterval: Int, + maxInterval: Int + ): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlEntryChangedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlEntryChangedEvent.kt index 50ec0a54a8ec73..f07ba9cb227a1d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlEntryChangedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlEntryChangedEvent.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -26,8 +28,7 @@ class AccessControlClusterAccessControlEntryChangedEvent( val adminNodeID: ULong?, val adminPasscodeID: UShort?, val changeType: UInt, - val latestValue: - matter.devicecontroller.cluster.structs.AccessControlClusterAccessControlEntryStruct?, + val latestValue: matter.devicecontroller.cluster.structs.AccessControlClusterAccessControlEntryStruct?, val fabricIndex: UByte ) { override fun toString(): String = buildString { @@ -71,45 +72,32 @@ class AccessControlClusterAccessControlEntryChangedEvent( private const val TAG_LATEST_VALUE = 4 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): AccessControlClusterAccessControlEntryChangedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlEntryChangedEvent { tlvReader.enterStructure(tlvTag) - val adminNodeID = - if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - null - } - val adminPasscodeID = - if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - null - } + val adminNodeID = if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + null + } + val adminPasscodeID = if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + null + } val changeType = tlvReader.getUInt(ContextSpecificTag(TAG_CHANGE_TYPE)) - val latestValue = - if (!tlvReader.isNull()) { - matter.devicecontroller.cluster.structs.AccessControlClusterAccessControlEntryStruct - .fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE)) - null - } + val latestValue = if (!tlvReader.isNull()) { + matter.devicecontroller.cluster.structs.AccessControlClusterAccessControlEntryStruct.fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE)) + null + } val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return AccessControlClusterAccessControlEntryChangedEvent( - adminNodeID, - adminPasscodeID, - changeType, - latestValue, - fabricIndex - ) + return AccessControlClusterAccessControlEntryChangedEvent(adminNodeID, adminPasscodeID, changeType, latestValue, fabricIndex) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlExtensionChangedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlExtensionChangedEvent.kt index c6721f29f88959..34534550e1fcb3 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlExtensionChangedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlExtensionChangedEvent.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -26,8 +28,7 @@ class AccessControlClusterAccessControlExtensionChangedEvent( val adminNodeID: ULong?, val adminPasscodeID: UShort?, val changeType: UInt, - val latestValue: - matter.devicecontroller.cluster.structs.AccessControlClusterAccessControlExtensionStruct?, + val latestValue: matter.devicecontroller.cluster.structs.AccessControlClusterAccessControlExtensionStruct?, val fabricIndex: UByte ) { override fun toString(): String = buildString { @@ -71,45 +72,32 @@ class AccessControlClusterAccessControlExtensionChangedEvent( private const val TAG_LATEST_VALUE = 4 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): AccessControlClusterAccessControlExtensionChangedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlExtensionChangedEvent { tlvReader.enterStructure(tlvTag) - val adminNodeID = - if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - null - } - val adminPasscodeID = - if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - null - } + val adminNodeID = if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + null + } + val adminPasscodeID = if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + null + } val changeType = tlvReader.getUInt(ContextSpecificTag(TAG_CHANGE_TYPE)) - val latestValue = - if (!tlvReader.isNull()) { - matter.devicecontroller.cluster.structs.AccessControlClusterAccessControlExtensionStruct - .fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE)) - null - } + val latestValue = if (!tlvReader.isNull()) { + matter.devicecontroller.cluster.structs.AccessControlClusterAccessControlExtensionStruct.fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE)) + null + } val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return AccessControlClusterAccessControlExtensionChangedEvent( - adminNodeID, - adminPasscodeID, - changeType, - latestValue, - fabricIndex - ) + return AccessControlClusterAccessControlExtensionChangedEvent(adminNodeID, adminPasscodeID, changeType, latestValue, fabricIndex) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterActionFailedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterActionFailedEvent.kt index 7def1a047e9a3a..969d6b0fb2aec0 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterActionFailedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterActionFailedEvent.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -54,13 +56,13 @@ class ActionsClusterActionFailedEvent( private const val TAG_NEW_STATE = 2 private const val TAG_ERROR = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ActionsClusterActionFailedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActionsClusterActionFailedEvent { tlvReader.enterStructure(tlvTag) val actionID = tlvReader.getUShort(ContextSpecificTag(TAG_ACTION_I_D)) val invokeID = tlvReader.getUInt(ContextSpecificTag(TAG_INVOKE_I_D)) val newState = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_STATE)) val error = tlvReader.getUInt(ContextSpecificTag(TAG_ERROR)) - + tlvReader.exitContainer() return ActionsClusterActionFailedEvent(actionID, invokeID, newState, error) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterStateChangedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterStateChangedEvent.kt index 81ed599b956c26..712e80e0b1a939 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterStateChangedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterStateChangedEvent.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -50,12 +52,12 @@ class ActionsClusterStateChangedEvent( private const val TAG_INVOKE_I_D = 1 private const val TAG_NEW_STATE = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ActionsClusterStateChangedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActionsClusterStateChangedEvent { tlvReader.enterStructure(tlvTag) val actionID = tlvReader.getUShort(ContextSpecificTag(TAG_ACTION_I_D)) val invokeID = tlvReader.getUInt(ContextSpecificTag(TAG_INVOKE_I_D)) val newState = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_STATE)) - + tlvReader.exitContainer() return ActionsClusterStateChangedEvent(actionID, invokeID, newState) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterLeaveEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterLeaveEvent.kt index 527ca9e747d32d..aa1afa060dcd07 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterLeaveEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterLeaveEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class BasicInformationClusterLeaveEvent(val fabricIndex: UByte) { +class BasicInformationClusterLeaveEvent( + val fabricIndex: UByte +) { override fun toString(): String = buildString { append("BasicInformationClusterLeaveEvent {\n") append("\tfabricIndex : $fabricIndex\n") @@ -40,10 +44,10 @@ class BasicInformationClusterLeaveEvent(val fabricIndex: UByte) { companion object { private const val TAG_FABRIC_INDEX = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterLeaveEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterLeaveEvent { tlvReader.enterStructure(tlvTag) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return BasicInformationClusterLeaveEvent(fabricIndex) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterReachableChangedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterReachableChangedEvent.kt index 117e3e4472bedf..b98b4c58fc6405 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterReachableChangedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterReachableChangedEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class BasicInformationClusterReachableChangedEvent(val reachableNewValue: Boolean) { +class BasicInformationClusterReachableChangedEvent( + val reachableNewValue: Boolean +) { override fun toString(): String = buildString { append("BasicInformationClusterReachableChangedEvent {\n") append("\treachableNewValue : $reachableNewValue\n") @@ -40,10 +44,10 @@ class BasicInformationClusterReachableChangedEvent(val reachableNewValue: Boolea companion object { private const val TAG_REACHABLE_NEW_VALUE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterReachableChangedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterReachableChangedEvent { tlvReader.enterStructure(tlvTag) val reachableNewValue = tlvReader.getBoolean(ContextSpecificTag(TAG_REACHABLE_NEW_VALUE)) - + tlvReader.exitContainer() return BasicInformationClusterReachableChangedEvent(reachableNewValue) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterStartUpEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterStartUpEvent.kt index cbcb04d823ae49..21125ba68cbbc4 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterStartUpEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterStartUpEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class BasicInformationClusterStartUpEvent(val softwareVersion: UInt) { +class BasicInformationClusterStartUpEvent( + val softwareVersion: UInt +) { override fun toString(): String = buildString { append("BasicInformationClusterStartUpEvent {\n") append("\tsoftwareVersion : $softwareVersion\n") @@ -40,10 +44,10 @@ class BasicInformationClusterStartUpEvent(val softwareVersion: UInt) { companion object { private const val TAG_SOFTWARE_VERSION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterStartUpEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterStartUpEvent { tlvReader.enterStructure(tlvTag) val softwareVersion = tlvReader.getUInt(ContextSpecificTag(TAG_SOFTWARE_VERSION)) - + tlvReader.exitContainer() return BasicInformationClusterStartUpEvent(softwareVersion) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BooleanSensorConfigurationClusterAlarmsStateChangedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BooleanSensorConfigurationClusterAlarmsStateChangedEvent.kt index bf64761f255688..fc805137621677 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BooleanSensorConfigurationClusterAlarmsStateChangedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BooleanSensorConfigurationClusterAlarmsStateChangedEvent.kt @@ -18,6 +18,7 @@ package matter.devicecontroller.cluster.eventstructs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -50,25 +51,18 @@ class BooleanSensorConfigurationClusterAlarmsStateChangedEvent( private const val TAG_ALARMS_ACTIVE = 0 private const val TAG_ALARMS_SUPPRESSED = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): BooleanSensorConfigurationClusterAlarmsStateChangedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BooleanSensorConfigurationClusterAlarmsStateChangedEvent { tlvReader.enterStructure(tlvTag) val alarmsActive = tlvReader.getUInt(ContextSpecificTag(TAG_ALARMS_ACTIVE)) - val alarmsSuppressed = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_ALARMS_SUPPRESSED))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_ALARMS_SUPPRESSED))) - } else { - Optional.empty() - } - + val alarmsSuppressed = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ALARMS_SUPPRESSED))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_ALARMS_SUPPRESSED))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return BooleanSensorConfigurationClusterAlarmsStateChangedEvent( - alarmsActive, - alarmsSuppressed - ) + return BooleanSensorConfigurationClusterAlarmsStateChangedEvent(alarmsActive, alarmsSuppressed) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BooleanStateClusterStateChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BooleanStateClusterStateChangeEvent.kt index b3ac5fad687aac..94e78646b21ff5 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BooleanStateClusterStateChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BooleanStateClusterStateChangeEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class BooleanStateClusterStateChangeEvent(val stateValue: Boolean) { +class BooleanStateClusterStateChangeEvent( + val stateValue: Boolean +) { override fun toString(): String = buildString { append("BooleanStateClusterStateChangeEvent {\n") append("\tstateValue : $stateValue\n") @@ -40,10 +44,10 @@ class BooleanStateClusterStateChangeEvent(val stateValue: Boolean) { companion object { private const val TAG_STATE_VALUE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BooleanStateClusterStateChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BooleanStateClusterStateChangeEvent { tlvReader.enterStructure(tlvTag) val stateValue = tlvReader.getBoolean(ContextSpecificTag(TAG_STATE_VALUE)) - + tlvReader.exitContainer() return BooleanStateClusterStateChangeEvent(stateValue) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterReachableChangedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterReachableChangedEvent.kt index f153ed3f64cc07..911b00e2a344c1 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterReachableChangedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterReachableChangedEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class BridgedDeviceBasicInformationClusterReachableChangedEvent(val reachableNewValue: Boolean) { +class BridgedDeviceBasicInformationClusterReachableChangedEvent( + val reachableNewValue: Boolean +) { override fun toString(): String = buildString { append("BridgedDeviceBasicInformationClusterReachableChangedEvent {\n") append("\treachableNewValue : $reachableNewValue\n") @@ -40,13 +44,10 @@ class BridgedDeviceBasicInformationClusterReachableChangedEvent(val reachableNew companion object { private const val TAG_REACHABLE_NEW_VALUE = 0 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): BridgedDeviceBasicInformationClusterReachableChangedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BridgedDeviceBasicInformationClusterReachableChangedEvent { tlvReader.enterStructure(tlvTag) val reachableNewValue = tlvReader.getBoolean(ContextSpecificTag(TAG_REACHABLE_NEW_VALUE)) - + tlvReader.exitContainer() return BridgedDeviceBasicInformationClusterReachableChangedEvent(reachableNewValue) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterStartUpEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterStartUpEvent.kt index 2df7a457951adf..73a736e912bc99 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterStartUpEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterStartUpEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class BridgedDeviceBasicInformationClusterStartUpEvent(val softwareVersion: UInt) { +class BridgedDeviceBasicInformationClusterStartUpEvent( + val softwareVersion: UInt +) { override fun toString(): String = buildString { append("BridgedDeviceBasicInformationClusterStartUpEvent {\n") append("\tsoftwareVersion : $softwareVersion\n") @@ -40,13 +44,10 @@ class BridgedDeviceBasicInformationClusterStartUpEvent(val softwareVersion: UInt companion object { private const val TAG_SOFTWARE_VERSION = 0 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): BridgedDeviceBasicInformationClusterStartUpEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BridgedDeviceBasicInformationClusterStartUpEvent { tlvReader.enterStructure(tlvTag) val softwareVersion = tlvReader.getUInt(ContextSpecificTag(TAG_SOFTWARE_VERSION)) - + tlvReader.exitContainer() return BridgedDeviceBasicInformationClusterStartUpEvent(softwareVersion) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent.kt index 92b680ff01eb05..63ac63cf385528 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent.kt @@ -18,6 +18,7 @@ package matter.devicecontroller.cluster.eventstructs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -29,26 +30,11 @@ class DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent( val status: UInt, val criticality: UInt, val control: UInt, - val temperatureControl: - Optional< - matter.devicecontroller.cluster.structs.DemandResponseLoadControlClusterTemperatureControlStruct - >?, - val averageLoadControl: - Optional< - matter.devicecontroller.cluster.structs.DemandResponseLoadControlClusterAverageLoadControlStruct - >?, - val dutyCycleControl: - Optional< - matter.devicecontroller.cluster.structs.DemandResponseLoadControlClusterDutyCycleControlStruct - >?, - val powerSavingsControl: - Optional< - matter.devicecontroller.cluster.structs.DemandResponseLoadControlClusterPowerSavingsControlStruct - >?, - val heatingSourceControl: - Optional< - matter.devicecontroller.cluster.structs.DemandResponseLoadControlClusterHeatingSourceControlStruct - >? + val temperatureControl: Optional?, + val averageLoadControl: Optional?, + val dutyCycleControl: Optional?, + val powerSavingsControl: Optional?, + val heatingSourceControl: Optional? ) { override fun toString(): String = buildString { append("DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent {\n") @@ -79,41 +65,41 @@ class DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent( put(ContextSpecificTag(TAG_CONTROL), control) if (temperatureControl != null) { if (temperatureControl.isPresent) { - val opttemperatureControl = temperatureControl.get() - opttemperatureControl.toTlv(ContextSpecificTag(TAG_TEMPERATURE_CONTROL), this) - } + val opttemperatureControl = temperatureControl.get() + opttemperatureControl.toTlv(ContextSpecificTag(TAG_TEMPERATURE_CONTROL), this) + } } else { putNull(ContextSpecificTag(TAG_TEMPERATURE_CONTROL)) } if (averageLoadControl != null) { if (averageLoadControl.isPresent) { - val optaverageLoadControl = averageLoadControl.get() - optaverageLoadControl.toTlv(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), this) - } + val optaverageLoadControl = averageLoadControl.get() + optaverageLoadControl.toTlv(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), this) + } } else { putNull(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL)) } if (dutyCycleControl != null) { if (dutyCycleControl.isPresent) { - val optdutyCycleControl = dutyCycleControl.get() - optdutyCycleControl.toTlv(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), this) - } + val optdutyCycleControl = dutyCycleControl.get() + optdutyCycleControl.toTlv(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), this) + } } else { putNull(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL)) } if (powerSavingsControl != null) { if (powerSavingsControl.isPresent) { - val optpowerSavingsControl = powerSavingsControl.get() - optpowerSavingsControl.toTlv(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), this) - } + val optpowerSavingsControl = powerSavingsControl.get() + optpowerSavingsControl.toTlv(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), this) + } } else { putNull(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL)) } if (heatingSourceControl != null) { if (heatingSourceControl.isPresent) { - val optheatingSourceControl = heatingSourceControl.get() - optheatingSourceControl.toTlv(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), this) - } + val optheatingSourceControl = heatingSourceControl.get() + optheatingSourceControl.toTlv(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), this) + } } else { putNull(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL)) } @@ -133,112 +119,72 @@ class DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent( private const val TAG_POWER_SAVINGS_CONTROL = 8 private const val TAG_HEATING_SOURCE_CONTROL = 9 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent { tlvReader.enterStructure(tlvTag) val eventID = tlvReader.getByteArray(ContextSpecificTag(TAG_EVENT_I_D)) - val transitionIndex = - if (!tlvReader.isNull()) { - tlvReader.getUByte(ContextSpecificTag(TAG_TRANSITION_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TRANSITION_INDEX)) - null - } + val transitionIndex = if (!tlvReader.isNull()) { + tlvReader.getUByte(ContextSpecificTag(TAG_TRANSITION_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TRANSITION_INDEX)) + null + } val status = tlvReader.getUInt(ContextSpecificTag(TAG_STATUS)) val criticality = tlvReader.getUInt(ContextSpecificTag(TAG_CRITICALITY)) val control = tlvReader.getUInt(ContextSpecificTag(TAG_CONTROL)) - val temperatureControl = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_TEMPERATURE_CONTROL))) { - Optional.of( - matter.devicecontroller.cluster.structs - .DemandResponseLoadControlClusterTemperatureControlStruct - .fromTlv(ContextSpecificTag(TAG_TEMPERATURE_CONTROL), tlvReader) - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TEMPERATURE_CONTROL)) - null - } - val averageLoadControl = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL))) { - Optional.of( - matter.devicecontroller.cluster.structs - .DemandResponseLoadControlClusterAverageLoadControlStruct - .fromTlv(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), tlvReader) - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL)) - null - } - val dutyCycleControl = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL))) { - Optional.of( - matter.devicecontroller.cluster.structs - .DemandResponseLoadControlClusterDutyCycleControlStruct - .fromTlv(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), tlvReader) - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL)) - null - } - val powerSavingsControl = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL))) { - Optional.of( - matter.devicecontroller.cluster.structs - .DemandResponseLoadControlClusterPowerSavingsControlStruct - .fromTlv(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), tlvReader) - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL)) - null - } - val heatingSourceControl = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL))) { - Optional.of( - matter.devicecontroller.cluster.structs - .DemandResponseLoadControlClusterHeatingSourceControlStruct - .fromTlv(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), tlvReader) - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL)) - null - } - + val temperatureControl = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_TEMPERATURE_CONTROL))) { + Optional.of(matter.devicecontroller.cluster.structs.DemandResponseLoadControlClusterTemperatureControlStruct.fromTlv(ContextSpecificTag(TAG_TEMPERATURE_CONTROL), tlvReader)) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TEMPERATURE_CONTROL)) + null + } + val averageLoadControl = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL))) { + Optional.of(matter.devicecontroller.cluster.structs.DemandResponseLoadControlClusterAverageLoadControlStruct.fromTlv(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), tlvReader)) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL)) + null + } + val dutyCycleControl = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL))) { + Optional.of(matter.devicecontroller.cluster.structs.DemandResponseLoadControlClusterDutyCycleControlStruct.fromTlv(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), tlvReader)) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL)) + null + } + val powerSavingsControl = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL))) { + Optional.of(matter.devicecontroller.cluster.structs.DemandResponseLoadControlClusterPowerSavingsControlStruct.fromTlv(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), tlvReader)) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL)) + null + } + val heatingSourceControl = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL))) { + Optional.of(matter.devicecontroller.cluster.structs.DemandResponseLoadControlClusterHeatingSourceControlStruct.fromTlv(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), tlvReader)) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL)) + null + } + tlvReader.exitContainer() - return DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent( - eventID, - transitionIndex, - status, - criticality, - control, - temperatureControl, - averageLoadControl, - dutyCycleControl, - powerSavingsControl, - heatingSourceControl - ) + return DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent(eventID, transitionIndex, status, criticality, control, temperatureControl, averageLoadControl, dutyCycleControl, powerSavingsControl, heatingSourceControl) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DishwasherAlarmClusterNotifyEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DishwasherAlarmClusterNotifyEvent.kt index 3b0bd74a1fd5c7..545b42ec38e234 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DishwasherAlarmClusterNotifyEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DishwasherAlarmClusterNotifyEvent.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -54,13 +56,13 @@ class DishwasherAlarmClusterNotifyEvent( private const val TAG_STATE = 2 private const val TAG_MASK = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DishwasherAlarmClusterNotifyEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DishwasherAlarmClusterNotifyEvent { tlvReader.enterStructure(tlvTag) val active = tlvReader.getULong(ContextSpecificTag(TAG_ACTIVE)) val inactive = tlvReader.getULong(ContextSpecificTag(TAG_INACTIVE)) val state = tlvReader.getULong(ContextSpecificTag(TAG_STATE)) val mask = tlvReader.getULong(ContextSpecificTag(TAG_MASK)) - + tlvReader.exitContainer() return DishwasherAlarmClusterNotifyEvent(active, inactive, state, mask) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorLockAlarmEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorLockAlarmEvent.kt index 5acde4acb5f40d..5855cf696b26b3 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorLockAlarmEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorLockAlarmEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DoorLockClusterDoorLockAlarmEvent(val alarmCode: UInt) { +class DoorLockClusterDoorLockAlarmEvent( + val alarmCode: UInt +) { override fun toString(): String = buildString { append("DoorLockClusterDoorLockAlarmEvent {\n") append("\talarmCode : $alarmCode\n") @@ -40,10 +44,10 @@ class DoorLockClusterDoorLockAlarmEvent(val alarmCode: UInt) { companion object { private const val TAG_ALARM_CODE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterDoorLockAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterDoorLockAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmCode = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_CODE)) - + tlvReader.exitContainer() return DoorLockClusterDoorLockAlarmEvent(alarmCode) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorStateChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorStateChangeEvent.kt index cc693ce9d5d390..708d26eb89380e 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorStateChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorStateChangeEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DoorLockClusterDoorStateChangeEvent(val doorState: UInt) { +class DoorLockClusterDoorStateChangeEvent( + val doorState: UInt +) { override fun toString(): String = buildString { append("DoorLockClusterDoorStateChangeEvent {\n") append("\tdoorState : $doorState\n") @@ -40,10 +44,10 @@ class DoorLockClusterDoorStateChangeEvent(val doorState: UInt) { companion object { private const val TAG_DOOR_STATE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterDoorStateChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterDoorStateChangeEvent { tlvReader.enterStructure(tlvTag) val doorState = tlvReader.getUInt(ContextSpecificTag(TAG_DOOR_STATE)) - + tlvReader.exitContainer() return DoorLockClusterDoorStateChangeEvent(doorState) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationErrorEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationErrorEvent.kt index 84b682fc2d55bb..05d900bde99b86 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationErrorEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationErrorEvent.kt @@ -31,8 +31,7 @@ class DoorLockClusterLockOperationErrorEvent( val userIndex: UShort?, val fabricIndex: UByte?, val sourceNode: ULong?, - val credentials: - Optional>? + val credentials: Optional>? ) { override fun toString(): String = buildString { append("DoorLockClusterLockOperationErrorEvent {\n") @@ -69,13 +68,13 @@ class DoorLockClusterLockOperationErrorEvent( } if (credentials != null) { if (credentials.isPresent) { - val optcredentials = credentials.get() - startArray(ContextSpecificTag(TAG_CREDENTIALS)) - for (item in optcredentials.iterator()) { - item.toTlv(AnonymousTag, this) - } - endArray() - } + val optcredentials = credentials.get() + startArray(ContextSpecificTag(TAG_CREDENTIALS)) + for (item in optcredentials.iterator()) { + item.toTlv(AnonymousTag, this) + } + endArray() + } } else { putNull(ContextSpecificTag(TAG_CREDENTIALS)) } @@ -92,68 +91,49 @@ class DoorLockClusterLockOperationErrorEvent( private const val TAG_SOURCE_NODE = 5 private const val TAG_CREDENTIALS = 6 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterLockOperationErrorEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterLockOperationErrorEvent { tlvReader.enterStructure(tlvTag) val lockOperationType = tlvReader.getUInt(ContextSpecificTag(TAG_LOCK_OPERATION_TYPE)) val operationSource = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATION_SOURCE)) val operationError = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATION_ERROR)) - val userIndex = - if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_USER_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) - null - } - val fabricIndex = - if (!tlvReader.isNull()) { - tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - null - } - val sourceNode = - if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) - null - } - val credentials = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_CREDENTIALS))) { - Optional.of( - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CREDENTIALS)) - while (!tlvReader.isEndOfContainer()) { - this.add( - matter.devicecontroller.cluster.structs.DoorLockClusterCredentialStruct.fromTlv( - AnonymousTag, - tlvReader - ) - ) - } - tlvReader.exitContainer() - } - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CREDENTIALS)) - null + val userIndex = if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_USER_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) + null + } + val fabricIndex = if (!tlvReader.isNull()) { + tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + null + } + val sourceNode = if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) + null + } + val credentials = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_CREDENTIALS))) { + Optional.of(buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CREDENTIALS)) + while(!tlvReader.isEndOfContainer()) { + this.add(matter.devicecontroller.cluster.structs.DoorLockClusterCredentialStruct.fromTlv(AnonymousTag, tlvReader)) } - + tlvReader.exitContainer() + }) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_CREDENTIALS)) + null + } + tlvReader.exitContainer() - return DoorLockClusterLockOperationErrorEvent( - lockOperationType, - operationSource, - operationError, - userIndex, - fabricIndex, - sourceNode, - credentials - ) + return DoorLockClusterLockOperationErrorEvent(lockOperationType, operationSource, operationError, userIndex, fabricIndex, sourceNode, credentials) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationEvent.kt index 4708017ff6fcae..ce7121371a5f69 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationEvent.kt @@ -30,8 +30,7 @@ class DoorLockClusterLockOperationEvent( val userIndex: UShort?, val fabricIndex: UByte?, val sourceNode: ULong?, - val credentials: - Optional>? + val credentials: Optional>? ) { override fun toString(): String = buildString { append("DoorLockClusterLockOperationEvent {\n") @@ -66,13 +65,13 @@ class DoorLockClusterLockOperationEvent( } if (credentials != null) { if (credentials.isPresent) { - val optcredentials = credentials.get() - startArray(ContextSpecificTag(TAG_CREDENTIALS)) - for (item in optcredentials.iterator()) { - item.toTlv(AnonymousTag, this) - } - endArray() - } + val optcredentials = credentials.get() + startArray(ContextSpecificTag(TAG_CREDENTIALS)) + for (item in optcredentials.iterator()) { + item.toTlv(AnonymousTag, this) + } + endArray() + } } else { putNull(ContextSpecificTag(TAG_CREDENTIALS)) } @@ -88,66 +87,48 @@ class DoorLockClusterLockOperationEvent( private const val TAG_SOURCE_NODE = 4 private const val TAG_CREDENTIALS = 5 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterLockOperationEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterLockOperationEvent { tlvReader.enterStructure(tlvTag) val lockOperationType = tlvReader.getUInt(ContextSpecificTag(TAG_LOCK_OPERATION_TYPE)) val operationSource = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATION_SOURCE)) - val userIndex = - if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_USER_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) - null - } - val fabricIndex = - if (!tlvReader.isNull()) { - tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - null - } - val sourceNode = - if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) - null - } - val credentials = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_CREDENTIALS))) { - Optional.of( - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CREDENTIALS)) - while (!tlvReader.isEndOfContainer()) { - this.add( - matter.devicecontroller.cluster.structs.DoorLockClusterCredentialStruct.fromTlv( - AnonymousTag, - tlvReader - ) - ) - } - tlvReader.exitContainer() - } - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CREDENTIALS)) - null + val userIndex = if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_USER_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) + null + } + val fabricIndex = if (!tlvReader.isNull()) { + tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + null + } + val sourceNode = if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) + null + } + val credentials = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_CREDENTIALS))) { + Optional.of(buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CREDENTIALS)) + while(!tlvReader.isEndOfContainer()) { + this.add(matter.devicecontroller.cluster.structs.DoorLockClusterCredentialStruct.fromTlv(AnonymousTag, tlvReader)) } - + tlvReader.exitContainer() + }) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_CREDENTIALS)) + null + } + tlvReader.exitContainer() - return DoorLockClusterLockOperationEvent( - lockOperationType, - operationSource, - userIndex, - fabricIndex, - sourceNode, - credentials - ) + return DoorLockClusterLockOperationEvent(lockOperationType, operationSource, userIndex, fabricIndex, sourceNode, credentials) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockUserChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockUserChangeEvent.kt index 81814e6393b670..413c2c55bf3c09 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockUserChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockUserChangeEvent.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -82,51 +84,39 @@ class DoorLockClusterLockUserChangeEvent( private const val TAG_SOURCE_NODE = 5 private const val TAG_DATA_INDEX = 6 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterLockUserChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterLockUserChangeEvent { tlvReader.enterStructure(tlvTag) val lockDataType = tlvReader.getUInt(ContextSpecificTag(TAG_LOCK_DATA_TYPE)) val dataOperationType = tlvReader.getUInt(ContextSpecificTag(TAG_DATA_OPERATION_TYPE)) val operationSource = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATION_SOURCE)) - val userIndex = - if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_USER_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) - null - } - val fabricIndex = - if (!tlvReader.isNull()) { - tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - null - } - val sourceNode = - if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) - null - } - val dataIndex = - if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_DATA_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_DATA_INDEX)) - null - } - + val userIndex = if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_USER_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) + null + } + val fabricIndex = if (!tlvReader.isNull()) { + tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + null + } + val sourceNode = if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) + null + } + val dataIndex = if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_DATA_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_DATA_INDEX)) + null + } + tlvReader.exitContainer() - return DoorLockClusterLockUserChangeEvent( - lockDataType, - dataOperationType, - operationSource, - userIndex, - fabricIndex, - sourceNode, - dataIndex - ) + return DoorLockClusterLockUserChangeEvent(lockDataType, dataOperationType, operationSource, userIndex, fabricIndex, sourceNode, dataIndex) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterBootReasonEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterBootReasonEvent.kt index 39205bf4badbef..159ddbbfcee4b0 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterBootReasonEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterBootReasonEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class GeneralDiagnosticsClusterBootReasonEvent(val bootReason: UInt) { +class GeneralDiagnosticsClusterBootReasonEvent( + val bootReason: UInt +) { override fun toString(): String = buildString { append("GeneralDiagnosticsClusterBootReasonEvent {\n") append("\tbootReason : $bootReason\n") @@ -40,10 +44,10 @@ class GeneralDiagnosticsClusterBootReasonEvent(val bootReason: UInt) { companion object { private const val TAG_BOOT_REASON = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GeneralDiagnosticsClusterBootReasonEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterBootReasonEvent { tlvReader.enterStructure(tlvTag) val bootReason = tlvReader.getUInt(ContextSpecificTag(TAG_BOOT_REASON)) - + tlvReader.exitContainer() return GeneralDiagnosticsClusterBootReasonEvent(bootReason) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterHardwareFaultChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterHardwareFaultChangeEvent.kt index b24c90d6904e36..3af29f36460752 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterHardwareFaultChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterHardwareFaultChangeEvent.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -55,28 +56,23 @@ class GeneralDiagnosticsClusterHardwareFaultChangeEvent( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): GeneralDiagnosticsClusterHardwareFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterHardwareFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() + val current = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) } - val previous = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() + tlvReader.exitContainer() + } + val previous = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) } - + tlvReader.exitContainer() + } + tlvReader.exitContainer() return GeneralDiagnosticsClusterHardwareFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterNetworkFaultChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterNetworkFaultChangeEvent.kt index f4423fa23b3783..e5a830fae00272 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterNetworkFaultChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterNetworkFaultChangeEvent.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -55,28 +56,23 @@ class GeneralDiagnosticsClusterNetworkFaultChangeEvent( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): GeneralDiagnosticsClusterNetworkFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterNetworkFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() + val current = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) } - val previous = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() + tlvReader.exitContainer() + } + val previous = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) } - + tlvReader.exitContainer() + } + tlvReader.exitContainer() return GeneralDiagnosticsClusterNetworkFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterRadioFaultChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterRadioFaultChangeEvent.kt index f42f34f9689d63..14218495c3fff9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterRadioFaultChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterRadioFaultChangeEvent.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -55,25 +56,23 @@ class GeneralDiagnosticsClusterRadioFaultChangeEvent( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GeneralDiagnosticsClusterRadioFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterRadioFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() + val current = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) } - val previous = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() + tlvReader.exitContainer() + } + val previous = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) } - + tlvReader.exitContainer() + } + tlvReader.exitContainer() return GeneralDiagnosticsClusterRadioFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationCompletionEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationCompletionEvent.kt index f2f65bc0d0e509..7b5446cfefdb1b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationCompletionEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationCompletionEvent.kt @@ -18,6 +18,7 @@ package matter.devicecontroller.cluster.eventstructs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -42,17 +43,17 @@ class OperationalStateClusterOperationCompletionEvent( put(ContextSpecificTag(TAG_COMPLETION_ERROR_CODE), completionErrorCode) if (totalOperationalTime != null) { if (totalOperationalTime.isPresent) { - val opttotalOperationalTime = totalOperationalTime.get() - put(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME), opttotalOperationalTime) - } + val opttotalOperationalTime = totalOperationalTime.get() + put(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME), opttotalOperationalTime) + } } else { putNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) } if (pausedTime != null) { if (pausedTime.isPresent) { - val optpausedTime = pausedTime.get() - put(ContextSpecificTag(TAG_PAUSED_TIME), optpausedTime) - } + val optpausedTime = pausedTime.get() + put(ContextSpecificTag(TAG_PAUSED_TIME), optpausedTime) + } } else { putNull(ContextSpecificTag(TAG_PAUSED_TIME)) } @@ -65,42 +66,33 @@ class OperationalStateClusterOperationCompletionEvent( private const val TAG_TOTAL_OPERATIONAL_TIME = 1 private const val TAG_PAUSED_TIME = 2 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): OperationalStateClusterOperationCompletionEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalStateClusterOperationCompletionEvent { tlvReader.enterStructure(tlvTag) val completionErrorCode = tlvReader.getUInt(ContextSpecificTag(TAG_COMPLETION_ERROR_CODE)) - val totalOperationalTime = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) - null - } - val pausedTime = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_PAUSED_TIME))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_PAUSED_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PAUSED_TIME)) - null - } - + val totalOperationalTime = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) + null + } + val pausedTime = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_PAUSED_TIME))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_PAUSED_TIME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PAUSED_TIME)) + null + } + tlvReader.exitContainer() - return OperationalStateClusterOperationCompletionEvent( - completionErrorCode, - totalOperationalTime, - pausedTime - ) + return OperationalStateClusterOperationCompletionEvent(completionErrorCode, totalOperationalTime, pausedTime) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationalErrorEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationalErrorEvent.kt index 802e306c594c80..aedebd441a1716 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationalErrorEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationalErrorEvent.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -42,14 +44,10 @@ class OperationalStateClusterOperationalErrorEvent( companion object { private const val TAG_ERROR_STATE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalStateClusterOperationalErrorEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalStateClusterOperationalErrorEvent { tlvReader.enterStructure(tlvTag) - val errorState = - matter.devicecontroller.cluster.structs.OperationalStateClusterErrorStateStruct.fromTlv( - ContextSpecificTag(TAG_ERROR_STATE), - tlvReader - ) - + val errorState = matter.devicecontroller.cluster.structs.OperationalStateClusterErrorStateStruct.fromTlv(ContextSpecificTag(TAG_ERROR_STATE), tlvReader) + tlvReader.exitContainer() return OperationalStateClusterOperationalErrorEvent(errorState) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterDownloadErrorEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterDownloadErrorEvent.kt index a36f9161a81b62..70ee0bd682975e 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterDownloadErrorEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterDownloadErrorEvent.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -62,36 +64,26 @@ class OtaSoftwareUpdateRequestorClusterDownloadErrorEvent( private const val TAG_PROGRESS_PERCENT = 2 private const val TAG_PLATFORM_CODE = 3 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): OtaSoftwareUpdateRequestorClusterDownloadErrorEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OtaSoftwareUpdateRequestorClusterDownloadErrorEvent { tlvReader.enterStructure(tlvTag) val softwareVersion = tlvReader.getUInt(ContextSpecificTag(TAG_SOFTWARE_VERSION)) val bytesDownloaded = tlvReader.getULong(ContextSpecificTag(TAG_BYTES_DOWNLOADED)) - val progressPercent = - if (!tlvReader.isNull()) { - tlvReader.getUByte(ContextSpecificTag(TAG_PROGRESS_PERCENT)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PROGRESS_PERCENT)) - null - } - val platformCode = - if (!tlvReader.isNull()) { - tlvReader.getLong(ContextSpecificTag(TAG_PLATFORM_CODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PLATFORM_CODE)) - null - } - + val progressPercent = if (!tlvReader.isNull()) { + tlvReader.getUByte(ContextSpecificTag(TAG_PROGRESS_PERCENT)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PROGRESS_PERCENT)) + null + } + val platformCode = if (!tlvReader.isNull()) { + tlvReader.getLong(ContextSpecificTag(TAG_PLATFORM_CODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PLATFORM_CODE)) + null + } + tlvReader.exitContainer() - return OtaSoftwareUpdateRequestorClusterDownloadErrorEvent( - softwareVersion, - bytesDownloaded, - progressPercent, - platformCode - ) + return OtaSoftwareUpdateRequestorClusterDownloadErrorEvent(softwareVersion, bytesDownloaded, progressPercent, platformCode) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterStateTransitionEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterStateTransitionEvent.kt index 993efa8e9c93fc..c725e579cfd481 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterStateTransitionEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterStateTransitionEvent.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -58,30 +60,21 @@ class OtaSoftwareUpdateRequestorClusterStateTransitionEvent( private const val TAG_REASON = 2 private const val TAG_TARGET_SOFTWARE_VERSION = 3 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): OtaSoftwareUpdateRequestorClusterStateTransitionEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OtaSoftwareUpdateRequestorClusterStateTransitionEvent { tlvReader.enterStructure(tlvTag) val previousState = tlvReader.getUInt(ContextSpecificTag(TAG_PREVIOUS_STATE)) val newState = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_STATE)) val reason = tlvReader.getUInt(ContextSpecificTag(TAG_REASON)) - val targetSoftwareVersion = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) - null - } - + val targetSoftwareVersion = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) + null + } + tlvReader.exitContainer() - return OtaSoftwareUpdateRequestorClusterStateTransitionEvent( - previousState, - newState, - reason, - targetSoftwareVersion - ) + return OtaSoftwareUpdateRequestorClusterStateTransitionEvent(previousState, newState, reason, targetSoftwareVersion) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterVersionAppliedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterVersionAppliedEvent.kt index f8b32d0d560892..c5de3a1eec2918 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterVersionAppliedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterVersionAppliedEvent.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -46,14 +48,11 @@ class OtaSoftwareUpdateRequestorClusterVersionAppliedEvent( private const val TAG_SOFTWARE_VERSION = 0 private const val TAG_PRODUCT_I_D = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): OtaSoftwareUpdateRequestorClusterVersionAppliedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OtaSoftwareUpdateRequestorClusterVersionAppliedEvent { tlvReader.enterStructure(tlvTag) val softwareVersion = tlvReader.getUInt(ContextSpecificTag(TAG_SOFTWARE_VERSION)) val productID = tlvReader.getUShort(ContextSpecificTag(TAG_PRODUCT_I_D)) - + tlvReader.exitContainer() return OtaSoftwareUpdateRequestorClusterVersionAppliedEvent(softwareVersion, productID) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatChargeFaultChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatChargeFaultChangeEvent.kt index 21cdcf674fa338..074eabdddca3c1 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatChargeFaultChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatChargeFaultChangeEvent.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -55,25 +56,23 @@ class PowerSourceClusterBatChargeFaultChangeEvent( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterBatChargeFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterBatChargeFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() + val current = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) } - val previous = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() + tlvReader.exitContainer() + } + val previous = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) } - + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterBatChargeFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatFaultChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatFaultChangeEvent.kt index d1fd41e582dc94..41f4b5a8a66592 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatFaultChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatFaultChangeEvent.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -23,7 +24,10 @@ import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class PowerSourceClusterBatFaultChangeEvent(val current: List, val previous: List) { +class PowerSourceClusterBatFaultChangeEvent( + val current: List, + val previous: List +) { override fun toString(): String = buildString { append("PowerSourceClusterBatFaultChangeEvent {\n") append("\tcurrent : $current\n") @@ -52,25 +56,23 @@ class PowerSourceClusterBatFaultChangeEvent(val current: List, val previou private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterBatFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterBatFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() + val current = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) } - val previous = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() + tlvReader.exitContainer() + } + val previous = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) } - + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterBatFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterWiredFaultChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterWiredFaultChangeEvent.kt index 8aaacc0cb49fc4..bbb491edf22ba3 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterWiredFaultChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterWiredFaultChangeEvent.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -23,7 +24,10 @@ import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class PowerSourceClusterWiredFaultChangeEvent(val current: List, val previous: List) { +class PowerSourceClusterWiredFaultChangeEvent( + val current: List, + val previous: List +) { override fun toString(): String = buildString { append("PowerSourceClusterWiredFaultChangeEvent {\n") append("\tcurrent : $current\n") @@ -52,25 +56,23 @@ class PowerSourceClusterWiredFaultChangeEvent(val current: List, val previ private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterWiredFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterWiredFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() + val current = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) } - val previous = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() + tlvReader.exitContainer() + } + val previous = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) } - + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterWiredFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RefrigeratorAlarmClusterNotifyEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RefrigeratorAlarmClusterNotifyEvent.kt index ee7c9b8ebfaae6..689fbc4e492ec6 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RefrigeratorAlarmClusterNotifyEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RefrigeratorAlarmClusterNotifyEvent.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -54,13 +56,13 @@ class RefrigeratorAlarmClusterNotifyEvent( private const val TAG_STATE = 2 private const val TAG_MASK = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RefrigeratorAlarmClusterNotifyEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RefrigeratorAlarmClusterNotifyEvent { tlvReader.enterStructure(tlvTag) val active = tlvReader.getULong(ContextSpecificTag(TAG_ACTIVE)) val inactive = tlvReader.getULong(ContextSpecificTag(TAG_INACTIVE)) val state = tlvReader.getULong(ContextSpecificTag(TAG_STATE)) val mask = tlvReader.getULong(ContextSpecificTag(TAG_MASK)) - + tlvReader.exitContainer() return RefrigeratorAlarmClusterNotifyEvent(active, inactive, state, mask) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationCompletionEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationCompletionEvent.kt index 3004686f8b67d8..356f5debf6faba 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationCompletionEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationCompletionEvent.kt @@ -18,6 +18,7 @@ package matter.devicecontroller.cluster.eventstructs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -42,17 +43,17 @@ class RvcOperationalStateClusterOperationCompletionEvent( put(ContextSpecificTag(TAG_COMPLETION_ERROR_CODE), completionErrorCode) if (totalOperationalTime != null) { if (totalOperationalTime.isPresent) { - val opttotalOperationalTime = totalOperationalTime.get() - put(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME), opttotalOperationalTime) - } + val opttotalOperationalTime = totalOperationalTime.get() + put(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME), opttotalOperationalTime) + } } else { putNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) } if (pausedTime != null) { if (pausedTime.isPresent) { - val optpausedTime = pausedTime.get() - put(ContextSpecificTag(TAG_PAUSED_TIME), optpausedTime) - } + val optpausedTime = pausedTime.get() + put(ContextSpecificTag(TAG_PAUSED_TIME), optpausedTime) + } } else { putNull(ContextSpecificTag(TAG_PAUSED_TIME)) } @@ -65,42 +66,33 @@ class RvcOperationalStateClusterOperationCompletionEvent( private const val TAG_TOTAL_OPERATIONAL_TIME = 1 private const val TAG_PAUSED_TIME = 2 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): RvcOperationalStateClusterOperationCompletionEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcOperationalStateClusterOperationCompletionEvent { tlvReader.enterStructure(tlvTag) val completionErrorCode = tlvReader.getUInt(ContextSpecificTag(TAG_COMPLETION_ERROR_CODE)) - val totalOperationalTime = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) - null - } - val pausedTime = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_PAUSED_TIME))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_PAUSED_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PAUSED_TIME)) - null - } - + val totalOperationalTime = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) + null + } + val pausedTime = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_PAUSED_TIME))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_PAUSED_TIME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PAUSED_TIME)) + null + } + tlvReader.exitContainer() - return RvcOperationalStateClusterOperationCompletionEvent( - completionErrorCode, - totalOperationalTime, - pausedTime - ) + return RvcOperationalStateClusterOperationCompletionEvent(completionErrorCode, totalOperationalTime, pausedTime) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationalErrorEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationalErrorEvent.kt index ff973d17fe9684..89807ae9212007 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationalErrorEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationalErrorEvent.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -42,17 +44,10 @@ class RvcOperationalStateClusterOperationalErrorEvent( companion object { private const val TAG_ERROR_STATE = 0 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): RvcOperationalStateClusterOperationalErrorEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcOperationalStateClusterOperationalErrorEvent { tlvReader.enterStructure(tlvTag) - val errorState = - matter.devicecontroller.cluster.structs.RvcOperationalStateClusterErrorStateStruct.fromTlv( - ContextSpecificTag(TAG_ERROR_STATE), - tlvReader - ) - + val errorState = matter.devicecontroller.cluster.structs.RvcOperationalStateClusterErrorStateStruct.fromTlv(ContextSpecificTag(TAG_ERROR_STATE), tlvReader) + tlvReader.exitContainer() return RvcOperationalStateClusterOperationalErrorEvent(errorState) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterCOAlarmEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterCOAlarmEvent.kt index e70b19a92636d3..191f9c10109b07 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterCOAlarmEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterCOAlarmEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SmokeCoAlarmClusterCOAlarmEvent(val alarmSeverityLevel: UInt) { +class SmokeCoAlarmClusterCOAlarmEvent( + val alarmSeverityLevel: UInt +) { override fun toString(): String = buildString { append("SmokeCoAlarmClusterCOAlarmEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") @@ -40,10 +44,10 @@ class SmokeCoAlarmClusterCOAlarmEvent(val alarmSeverityLevel: UInt) { companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterCOAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterCOAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterCOAlarmEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectCOAlarmEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectCOAlarmEvent.kt index 51aa58966bfd4c..8afa26b31cb916 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectCOAlarmEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectCOAlarmEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SmokeCoAlarmClusterInterconnectCOAlarmEvent(val alarmSeverityLevel: UInt) { +class SmokeCoAlarmClusterInterconnectCOAlarmEvent( + val alarmSeverityLevel: UInt +) { override fun toString(): String = buildString { append("SmokeCoAlarmClusterInterconnectCOAlarmEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") @@ -40,10 +44,10 @@ class SmokeCoAlarmClusterInterconnectCOAlarmEvent(val alarmSeverityLevel: UInt) companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterInterconnectCOAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterInterconnectCOAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterInterconnectCOAlarmEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectSmokeAlarmEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectSmokeAlarmEvent.kt index 4f2f7187caaa90..d1bfe73e163157 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectSmokeAlarmEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectSmokeAlarmEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SmokeCoAlarmClusterInterconnectSmokeAlarmEvent(val alarmSeverityLevel: UInt) { +class SmokeCoAlarmClusterInterconnectSmokeAlarmEvent( + val alarmSeverityLevel: UInt +) { override fun toString(): String = buildString { append("SmokeCoAlarmClusterInterconnectSmokeAlarmEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") @@ -40,10 +44,10 @@ class SmokeCoAlarmClusterInterconnectSmokeAlarmEvent(val alarmSeverityLevel: UIn companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterInterconnectSmokeAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterInterconnectSmokeAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterInterconnectSmokeAlarmEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterLowBatteryEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterLowBatteryEvent.kt index 0fd098880eddcf..d83189734d7651 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterLowBatteryEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterLowBatteryEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SmokeCoAlarmClusterLowBatteryEvent(val alarmSeverityLevel: UInt) { +class SmokeCoAlarmClusterLowBatteryEvent( + val alarmSeverityLevel: UInt +) { override fun toString(): String = buildString { append("SmokeCoAlarmClusterLowBatteryEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") @@ -40,10 +44,10 @@ class SmokeCoAlarmClusterLowBatteryEvent(val alarmSeverityLevel: UInt) { companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterLowBatteryEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterLowBatteryEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterLowBatteryEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterSmokeAlarmEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterSmokeAlarmEvent.kt index f2b985b06eb48f..8e8d9ed3d3f544 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterSmokeAlarmEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterSmokeAlarmEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SmokeCoAlarmClusterSmokeAlarmEvent(val alarmSeverityLevel: UInt) { +class SmokeCoAlarmClusterSmokeAlarmEvent( + val alarmSeverityLevel: UInt +) { override fun toString(): String = buildString { append("SmokeCoAlarmClusterSmokeAlarmEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") @@ -40,10 +44,10 @@ class SmokeCoAlarmClusterSmokeAlarmEvent(val alarmSeverityLevel: UInt) { companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterSmokeAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterSmokeAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterSmokeAlarmEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SoftwareDiagnosticsClusterSoftwareFaultEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SoftwareDiagnosticsClusterSoftwareFaultEvent.kt index f7e1378e5ed2b7..7ccda10549572d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SoftwareDiagnosticsClusterSoftwareFaultEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SoftwareDiagnosticsClusterSoftwareFaultEvent.kt @@ -18,6 +18,7 @@ package matter.devicecontroller.cluster.eventstructs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -57,22 +58,20 @@ class SoftwareDiagnosticsClusterSoftwareFaultEvent( private const val TAG_NAME = 1 private const val TAG_FAULT_RECORDING = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SoftwareDiagnosticsClusterSoftwareFaultEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SoftwareDiagnosticsClusterSoftwareFaultEvent { tlvReader.enterStructure(tlvTag) val id = tlvReader.getULong(ContextSpecificTag(TAG_ID)) - val name = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - val faultRecording = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_FAULT_RECORDING))) { - Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_FAULT_RECORDING))) - } else { - Optional.empty() - } - + val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + val faultRecording = if (tlvReader.isNextTag(ContextSpecificTag(TAG_FAULT_RECORDING))) { + Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_FAULT_RECORDING))) + } else { + Optional.empty() + } + tlvReader.exitContainer() return SoftwareDiagnosticsClusterSoftwareFaultEvent(id, name, faultRecording) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterInitialPressEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterInitialPressEvent.kt index 630fd921464fad..3c337cad0ae788 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterInitialPressEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterInitialPressEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SwitchClusterInitialPressEvent(val newPosition: UByte) { +class SwitchClusterInitialPressEvent( + val newPosition: UByte +) { override fun toString(): String = buildString { append("SwitchClusterInitialPressEvent {\n") append("\tnewPosition : $newPosition\n") @@ -40,10 +44,10 @@ class SwitchClusterInitialPressEvent(val newPosition: UByte) { companion object { private const val TAG_NEW_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterInitialPressEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterInitialPressEvent { tlvReader.enterStructure(tlvTag) val newPosition = tlvReader.getUByte(ContextSpecificTag(TAG_NEW_POSITION)) - + tlvReader.exitContainer() return SwitchClusterInitialPressEvent(newPosition) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongPressEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongPressEvent.kt index b586d1687d64a9..6ded1a8d74eb96 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongPressEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongPressEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SwitchClusterLongPressEvent(val newPosition: UByte) { +class SwitchClusterLongPressEvent( + val newPosition: UByte +) { override fun toString(): String = buildString { append("SwitchClusterLongPressEvent {\n") append("\tnewPosition : $newPosition\n") @@ -40,10 +44,10 @@ class SwitchClusterLongPressEvent(val newPosition: UByte) { companion object { private const val TAG_NEW_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterLongPressEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterLongPressEvent { tlvReader.enterStructure(tlvTag) val newPosition = tlvReader.getUByte(ContextSpecificTag(TAG_NEW_POSITION)) - + tlvReader.exitContainer() return SwitchClusterLongPressEvent(newPosition) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongReleaseEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongReleaseEvent.kt index 6b7ea992a3821e..68016f8084f65b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongReleaseEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongReleaseEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SwitchClusterLongReleaseEvent(val previousPosition: UByte) { +class SwitchClusterLongReleaseEvent( + val previousPosition: UByte +) { override fun toString(): String = buildString { append("SwitchClusterLongReleaseEvent {\n") append("\tpreviousPosition : $previousPosition\n") @@ -40,10 +44,10 @@ class SwitchClusterLongReleaseEvent(val previousPosition: UByte) { companion object { private const val TAG_PREVIOUS_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterLongReleaseEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterLongReleaseEvent { tlvReader.enterStructure(tlvTag) val previousPosition = tlvReader.getUByte(ContextSpecificTag(TAG_PREVIOUS_POSITION)) - + tlvReader.exitContainer() return SwitchClusterLongReleaseEvent(previousPosition) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressCompleteEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressCompleteEvent.kt index 79bbef0ee9dd7d..46f01296bc0da9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressCompleteEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressCompleteEvent.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -46,12 +48,11 @@ class SwitchClusterMultiPressCompleteEvent( private const val TAG_PREVIOUS_POSITION = 0 private const val TAG_TOTAL_NUMBER_OF_PRESSES_COUNTED = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterMultiPressCompleteEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterMultiPressCompleteEvent { tlvReader.enterStructure(tlvTag) val previousPosition = tlvReader.getUByte(ContextSpecificTag(TAG_PREVIOUS_POSITION)) - val totalNumberOfPressesCounted = - tlvReader.getUByte(ContextSpecificTag(TAG_TOTAL_NUMBER_OF_PRESSES_COUNTED)) - + val totalNumberOfPressesCounted = tlvReader.getUByte(ContextSpecificTag(TAG_TOTAL_NUMBER_OF_PRESSES_COUNTED)) + tlvReader.exitContainer() return SwitchClusterMultiPressCompleteEvent(previousPosition, totalNumberOfPressesCounted) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressOngoingEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressOngoingEvent.kt index bced01633d76ef..ffe0818e1c89ab 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressOngoingEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressOngoingEvent.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -46,12 +48,11 @@ class SwitchClusterMultiPressOngoingEvent( private const val TAG_NEW_POSITION = 0 private const val TAG_CURRENT_NUMBER_OF_PRESSES_COUNTED = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterMultiPressOngoingEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterMultiPressOngoingEvent { tlvReader.enterStructure(tlvTag) val newPosition = tlvReader.getUByte(ContextSpecificTag(TAG_NEW_POSITION)) - val currentNumberOfPressesCounted = - tlvReader.getUByte(ContextSpecificTag(TAG_CURRENT_NUMBER_OF_PRESSES_COUNTED)) - + val currentNumberOfPressesCounted = tlvReader.getUByte(ContextSpecificTag(TAG_CURRENT_NUMBER_OF_PRESSES_COUNTED)) + tlvReader.exitContainer() return SwitchClusterMultiPressOngoingEvent(newPosition, currentNumberOfPressesCounted) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterShortReleaseEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterShortReleaseEvent.kt index 6c9c2272f2ab38..e681cfb5a28da1 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterShortReleaseEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterShortReleaseEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SwitchClusterShortReleaseEvent(val previousPosition: UByte) { +class SwitchClusterShortReleaseEvent( + val previousPosition: UByte +) { override fun toString(): String = buildString { append("SwitchClusterShortReleaseEvent {\n") append("\tpreviousPosition : $previousPosition\n") @@ -40,10 +44,10 @@ class SwitchClusterShortReleaseEvent(val previousPosition: UByte) { companion object { private const val TAG_PREVIOUS_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterShortReleaseEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterShortReleaseEvent { tlvReader.enterStructure(tlvTag) val previousPosition = tlvReader.getUByte(ContextSpecificTag(TAG_PREVIOUS_POSITION)) - + tlvReader.exitContainer() return SwitchClusterShortReleaseEvent(previousPosition) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterSwitchLatchedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterSwitchLatchedEvent.kt index 8c5ee4f9f83edf..4779f02827774b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterSwitchLatchedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterSwitchLatchedEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SwitchClusterSwitchLatchedEvent(val newPosition: UByte) { +class SwitchClusterSwitchLatchedEvent( + val newPosition: UByte +) { override fun toString(): String = buildString { append("SwitchClusterSwitchLatchedEvent {\n") append("\tnewPosition : $newPosition\n") @@ -40,10 +44,10 @@ class SwitchClusterSwitchLatchedEvent(val newPosition: UByte) { companion object { private const val TAG_NEW_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterSwitchLatchedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterSwitchLatchedEvent { tlvReader.enterStructure(tlvTag) val newPosition = tlvReader.getUByte(ContextSpecificTag(TAG_NEW_POSITION)) - + tlvReader.exitContainer() return SwitchClusterSwitchLatchedEvent(newPosition) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterConnectionStatusEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterConnectionStatusEvent.kt index b771bd2b0f402c..e32e07e1fa41a2 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterConnectionStatusEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterConnectionStatusEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ThreadNetworkDiagnosticsClusterConnectionStatusEvent(val connectionStatus: UInt) { +class ThreadNetworkDiagnosticsClusterConnectionStatusEvent( + val connectionStatus: UInt +) { override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterConnectionStatusEvent {\n") append("\tconnectionStatus : $connectionStatus\n") @@ -40,13 +44,10 @@ class ThreadNetworkDiagnosticsClusterConnectionStatusEvent(val connectionStatus: companion object { private const val TAG_CONNECTION_STATUS = 0 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): ThreadNetworkDiagnosticsClusterConnectionStatusEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterConnectionStatusEvent { tlvReader.enterStructure(tlvTag) val connectionStatus = tlvReader.getUInt(ContextSpecificTag(TAG_CONNECTION_STATUS)) - + tlvReader.exitContainer() return ThreadNetworkDiagnosticsClusterConnectionStatusEvent(connectionStatus) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.kt index 827abfa1377c6a..1f5b402530dde9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -55,28 +56,23 @@ class ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() + val current = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) } - val previous = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() + tlvReader.exitContainer() + } + val previous = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) } - + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterDSTStatusEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterDSTStatusEvent.kt index e20bc34335426f..6b94bb4c10ab3a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterDSTStatusEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterDSTStatusEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class TimeSynchronizationClusterDSTStatusEvent(val DSTOffsetActive: Boolean) { +class TimeSynchronizationClusterDSTStatusEvent( + val DSTOffsetActive: Boolean +) { override fun toString(): String = buildString { append("TimeSynchronizationClusterDSTStatusEvent {\n") append("\tDSTOffsetActive : $DSTOffsetActive\n") @@ -40,10 +44,10 @@ class TimeSynchronizationClusterDSTStatusEvent(val DSTOffsetActive: Boolean) { companion object { private const val TAG_D_S_T_OFFSET_ACTIVE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TimeSynchronizationClusterDSTStatusEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterDSTStatusEvent { tlvReader.enterStructure(tlvTag) val DSTOffsetActive = tlvReader.getBoolean(ContextSpecificTag(TAG_D_S_T_OFFSET_ACTIVE)) - + tlvReader.exitContainer() return TimeSynchronizationClusterDSTStatusEvent(DSTOffsetActive) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterTimeZoneStatusEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterTimeZoneStatusEvent.kt index 552027845f991d..a3ba6ebb7489cf 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterTimeZoneStatusEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterTimeZoneStatusEvent.kt @@ -18,12 +18,16 @@ package matter.devicecontroller.cluster.eventstructs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class TimeSynchronizationClusterTimeZoneStatusEvent(val offset: Int, val name: Optional) { +class TimeSynchronizationClusterTimeZoneStatusEvent( + val offset: Int, + val name: Optional +) { override fun toString(): String = buildString { append("TimeSynchronizationClusterTimeZoneStatusEvent {\n") append("\toffset : $offset\n") @@ -47,16 +51,15 @@ class TimeSynchronizationClusterTimeZoneStatusEvent(val offset: Int, val name: O private const val TAG_OFFSET = 0 private const val TAG_NAME = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TimeSynchronizationClusterTimeZoneStatusEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterTimeZoneStatusEvent { tlvReader.enterStructure(tlvTag) val offset = tlvReader.getInt(ContextSpecificTag(TAG_OFFSET)) - val name = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - + val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + tlvReader.exitContainer() return TimeSynchronizationClusterTimeZoneStatusEvent(offset, name) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestEventEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestEventEvent.kt index 2993e43dedc6cd..fd9e37787d5f95 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestEventEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestEventEvent.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -71,38 +72,27 @@ class UnitTestingClusterTestEventEvent( private const val TAG_ARG5 = 5 private const val TAG_ARG6 = 6 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterTestEventEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterTestEventEvent { tlvReader.enterStructure(tlvTag) val arg1 = tlvReader.getUByte(ContextSpecificTag(TAG_ARG1)) val arg2 = tlvReader.getUInt(ContextSpecificTag(TAG_ARG2)) val arg3 = tlvReader.getBoolean(ContextSpecificTag(TAG_ARG3)) - val arg4 = - matter.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct.fromTlv( - ContextSpecificTag(TAG_ARG4), - tlvReader - ) - val arg5 = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ARG5)) - while (!tlvReader.isEndOfContainer()) { - this.add( - matter.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct.fromTlv( - AnonymousTag, - tlvReader - ) - ) - } - tlvReader.exitContainer() + val arg4 = matter.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_ARG4), tlvReader) + val arg5 = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ARG5)) + while(!tlvReader.isEndOfContainer()) { + this.add(matter.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct.fromTlv(AnonymousTag, tlvReader)) } - val arg6 = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ARG6)) - while (!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() + tlvReader.exitContainer() + } + val arg6 = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ARG6)) + while(!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) } - + tlvReader.exitContainer() + } + tlvReader.exitContainer() return UnitTestingClusterTestEventEvent(arg1, arg2, arg3, arg4, arg5, arg6) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestFabricScopedEventEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestFabricScopedEventEvent.kt index bdf1b54a00b31f..027a51cfdc5a2a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestFabricScopedEventEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestFabricScopedEventEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class UnitTestingClusterTestFabricScopedEventEvent(val fabricIndex: UByte) { +class UnitTestingClusterTestFabricScopedEventEvent( + val fabricIndex: UByte +) { override fun toString(): String = buildString { append("UnitTestingClusterTestFabricScopedEventEvent {\n") append("\tfabricIndex : $fabricIndex\n") @@ -40,10 +44,10 @@ class UnitTestingClusterTestFabricScopedEventEvent(val fabricIndex: UByte) { companion object { private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterTestFabricScopedEventEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterTestFabricScopedEventEvent { tlvReader.enterStructure(tlvTag) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return UnitTestingClusterTestFabricScopedEventEvent(fabricIndex) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveFaultEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveFaultEvent.kt index 6aa0f2c8ea44bf..e7572c0d3d35b8 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveFaultEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveFaultEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ValveConfigurationAndControlClusterValveFaultEvent(val valveFault: UInt) { +class ValveConfigurationAndControlClusterValveFaultEvent( + val valveFault: UInt +) { override fun toString(): String = buildString { append("ValveConfigurationAndControlClusterValveFaultEvent {\n") append("\tvalveFault : $valveFault\n") @@ -40,13 +44,10 @@ class ValveConfigurationAndControlClusterValveFaultEvent(val valveFault: UInt) { companion object { private const val TAG_VALVE_FAULT = 0 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): ValveConfigurationAndControlClusterValveFaultEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ValveConfigurationAndControlClusterValveFaultEvent { tlvReader.enterStructure(tlvTag) val valveFault = tlvReader.getUInt(ContextSpecificTag(TAG_VALVE_FAULT)) - + tlvReader.exitContainer() return ValveConfigurationAndControlClusterValveFaultEvent(valveFault) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveStateChangedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveStateChangedEvent.kt index 37e58c25cea495..510046abe30f39 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveStateChangedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveStateChangedEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ValveConfigurationAndControlClusterValveStateChangedEvent(val valveState: UInt) { +class ValveConfigurationAndControlClusterValveStateChangedEvent( + val valveState: UInt +) { override fun toString(): String = buildString { append("ValveConfigurationAndControlClusterValveStateChangedEvent {\n") append("\tvalveState : $valveState\n") @@ -40,13 +44,10 @@ class ValveConfigurationAndControlClusterValveStateChangedEvent(val valveState: companion object { private const val TAG_VALVE_STATE = 0 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): ValveConfigurationAndControlClusterValveStateChangedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ValveConfigurationAndControlClusterValveStateChangedEvent { tlvReader.enterStructure(tlvTag) val valveState = tlvReader.getUInt(ContextSpecificTag(TAG_VALVE_STATE)) - + tlvReader.exitContainer() return ValveConfigurationAndControlClusterValveStateChangedEvent(valveState) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterAssociationFailureEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterAssociationFailureEvent.kt index 04b408b87c41c2..5ca080a89e8f07 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterAssociationFailureEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterAssociationFailureEvent.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -46,15 +48,11 @@ class WiFiNetworkDiagnosticsClusterAssociationFailureEvent( private const val TAG_ASSOCIATION_FAILURE_CAUSE = 0 private const val TAG_STATUS = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): WiFiNetworkDiagnosticsClusterAssociationFailureEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : WiFiNetworkDiagnosticsClusterAssociationFailureEvent { tlvReader.enterStructure(tlvTag) - val associationFailureCause = - tlvReader.getUInt(ContextSpecificTag(TAG_ASSOCIATION_FAILURE_CAUSE)) + val associationFailureCause = tlvReader.getUInt(ContextSpecificTag(TAG_ASSOCIATION_FAILURE_CAUSE)) val status = tlvReader.getUShort(ContextSpecificTag(TAG_STATUS)) - + tlvReader.exitContainer() return WiFiNetworkDiagnosticsClusterAssociationFailureEvent(associationFailureCause, status) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterConnectionStatusEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterConnectionStatusEvent.kt index 653e02a013159d..0ecf4472e7cf76 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterConnectionStatusEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterConnectionStatusEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class WiFiNetworkDiagnosticsClusterConnectionStatusEvent(val connectionStatus: UInt) { +class WiFiNetworkDiagnosticsClusterConnectionStatusEvent( + val connectionStatus: UInt +) { override fun toString(): String = buildString { append("WiFiNetworkDiagnosticsClusterConnectionStatusEvent {\n") append("\tconnectionStatus : $connectionStatus\n") @@ -40,13 +44,10 @@ class WiFiNetworkDiagnosticsClusterConnectionStatusEvent(val connectionStatus: U companion object { private const val TAG_CONNECTION_STATUS = 0 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): WiFiNetworkDiagnosticsClusterConnectionStatusEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : WiFiNetworkDiagnosticsClusterConnectionStatusEvent { tlvReader.enterStructure(tlvTag) val connectionStatus = tlvReader.getUInt(ContextSpecificTag(TAG_CONNECTION_STATUS)) - + tlvReader.exitContainer() return WiFiNetworkDiagnosticsClusterConnectionStatusEvent(connectionStatus) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterDisconnectionEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterDisconnectionEvent.kt index 518f3ece0161d2..a58dc192295c65 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterDisconnectionEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterDisconnectionEvent.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.eventstructs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class WiFiNetworkDiagnosticsClusterDisconnectionEvent(val reasonCode: UShort) { +class WiFiNetworkDiagnosticsClusterDisconnectionEvent( + val reasonCode: UShort +) { override fun toString(): String = buildString { append("WiFiNetworkDiagnosticsClusterDisconnectionEvent {\n") append("\treasonCode : $reasonCode\n") @@ -40,13 +44,10 @@ class WiFiNetworkDiagnosticsClusterDisconnectionEvent(val reasonCode: UShort) { companion object { private const val TAG_REASON_CODE = 0 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): WiFiNetworkDiagnosticsClusterDisconnectionEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : WiFiNetworkDiagnosticsClusterDisconnectionEvent { tlvReader.enterStructure(tlvTag) val reasonCode = tlvReader.getUShort(ContextSpecificTag(TAG_REASON_CODE)) - + tlvReader.exitContainer() return WiFiNetworkDiagnosticsClusterDisconnectionEvent(reasonCode) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/files.gni b/src/controller/java/generated/java/matter/devicecontroller/cluster/files.gni index b7b954def5b75e..dfbf6d20949b0e 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/files.gni +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/files.gni @@ -79,7 +79,13 @@ matter_structs_sources = [ "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterSceneInfoStruct.kt", "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt", "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransition.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterPresetStruct.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterPresetTypeStruct.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterQueuedPresetStruct.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleStruct.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleTransitionStruct.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleTypeStruct.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt", "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt", "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt", "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt", diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlEntryStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlEntryStruct.kt index 7160b776b170fb..2cdd1042e30c0b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlEntryStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlEntryStruct.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -47,19 +48,19 @@ class AccessControlClusterAccessControlEntryStruct( put(ContextSpecificTag(TAG_AUTH_MODE), authMode) if (subjects != null) { startArray(ContextSpecificTag(TAG_SUBJECTS)) - for (item in subjects.iterator()) { - put(AnonymousTag, item) - } - endArray() + for (item in subjects.iterator()) { + put(AnonymousTag, item) + } + endArray() } else { putNull(ContextSpecificTag(TAG_SUBJECTS)) } if (targets != null) { startArray(ContextSpecificTag(TAG_TARGETS)) - for (item in targets.iterator()) { - item.toTlv(AnonymousTag, this) - } - endArray() + for (item in targets.iterator()) { + item.toTlv(AnonymousTag, this) + } + endArray() } else { putNull(ContextSpecificTag(TAG_TARGETS)) } @@ -79,43 +80,35 @@ class AccessControlClusterAccessControlEntryStruct( tlvReader.enterStructure(tlvTag) val privilege = tlvReader.getUInt(ContextSpecificTag(TAG_PRIVILEGE)) val authMode = tlvReader.getUInt(ContextSpecificTag(TAG_AUTH_MODE)) - val subjects = - if (!tlvReader.isNull()) { - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_SUBJECTS)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getULong(AnonymousTag)) - } - tlvReader.exitContainer() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SUBJECTS)) - null - } - val targets = - if (!tlvReader.isNull()) { - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_TARGETS)) - while (!tlvReader.isEndOfContainer()) { - add(AccessControlClusterAccessControlTargetStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TARGETS)) - null - } + val subjects = if (!tlvReader.isNull()) { + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_SUBJECTS)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getULong(AnonymousTag)) + } + tlvReader.exitContainer() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SUBJECTS)) + null + } + val targets = if (!tlvReader.isNull()) { + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_TARGETS)) + while(!tlvReader.isEndOfContainer()) { + add(AccessControlClusterAccessControlTargetStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TARGETS)) + null + } val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return AccessControlClusterAccessControlEntryStruct( - privilege, - authMode, - subjects, - targets, - fabricIndex - ) + return AccessControlClusterAccessControlEntryStruct(privilege, authMode, subjects, targets, fabricIndex) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlExtensionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlExtensionStruct.kt index 92f871d9cc054d..d4fad2d57222e9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlExtensionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlExtensionStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -46,14 +48,11 @@ class AccessControlClusterAccessControlExtensionStruct( private const val TAG_DATA = 1 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): AccessControlClusterAccessControlExtensionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): AccessControlClusterAccessControlExtensionStruct { tlvReader.enterStructure(tlvTag) val data = tlvReader.getByteArray(ContextSpecificTag(TAG_DATA)) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return AccessControlClusterAccessControlExtensionStruct(data, fabricIndex) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlTargetStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlTargetStruct.kt index 24905a80d950d9..0974472f32b191 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlTargetStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlTargetStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -64,28 +66,25 @@ class AccessControlClusterAccessControlTargetStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): AccessControlClusterAccessControlTargetStruct { tlvReader.enterStructure(tlvTag) - val cluster = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_CLUSTER)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CLUSTER)) - null - } - val endpoint = - if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ENDPOINT)) - null - } - val deviceType = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_DEVICE_TYPE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_DEVICE_TYPE)) - null - } - + val cluster = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_CLUSTER)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_CLUSTER)) + null + } + val endpoint = if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ENDPOINT)) + null + } + val deviceType = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_DEVICE_TYPE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_DEVICE_TYPE)) + null + } + tlvReader.exitContainer() return AccessControlClusterAccessControlTargetStruct(cluster, endpoint, deviceType) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterActionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterActionStruct.kt index 43a6ed963d8b52..6eca7b6e2bdf98 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterActionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterActionStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -70,17 +72,10 @@ class ActionsClusterActionStruct( val endpointListID = tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT_LIST_I_D)) val supportedCommands = tlvReader.getUInt(ContextSpecificTag(TAG_SUPPORTED_COMMANDS)) val state = tlvReader.getUInt(ContextSpecificTag(TAG_STATE)) - + tlvReader.exitContainer() - return ActionsClusterActionStruct( - actionID, - name, - type, - endpointListID, - supportedCommands, - state - ) + return ActionsClusterActionStruct(actionID, name, type, endpointListID, supportedCommands, state) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterEndpointListStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterEndpointListStruct.kt index 7b0f6a5616f52f..6a34aeb083574f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterEndpointListStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterEndpointListStruct.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -64,15 +65,14 @@ class ActionsClusterEndpointListStruct( val endpointListID = tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT_LIST_I_D)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) val type = tlvReader.getUInt(ContextSpecificTag(TAG_TYPE)) - val endpoints = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ENDPOINTS)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUShort(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val endpoints = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ENDPOINTS)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUShort(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ActionsClusterEndpointListStruct(endpointListID, name, type, endpoints) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActivatedCarbonFilterMonitoringClusterReplacementProductStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActivatedCarbonFilterMonitoringClusterReplacementProductStruct.kt index 3f3b66764532b4..00dead02afeff6 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActivatedCarbonFilterMonitoringClusterReplacementProductStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActivatedCarbonFilterMonitoringClusterReplacementProductStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -46,21 +48,14 @@ class ActivatedCarbonFilterMonitoringClusterReplacementProductStruct( private const val TAG_PRODUCT_IDENTIFIER_TYPE = 0 private const val TAG_PRODUCT_IDENTIFIER_VALUE = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): ActivatedCarbonFilterMonitoringClusterReplacementProductStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ActivatedCarbonFilterMonitoringClusterReplacementProductStruct { tlvReader.enterStructure(tlvTag) val productIdentifierType = tlvReader.getUInt(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_TYPE)) - val productIdentifierValue = - tlvReader.getString(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_VALUE)) - + val productIdentifierValue = tlvReader.getString(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_VALUE)) + tlvReader.exitContainer() - return ActivatedCarbonFilterMonitoringClusterReplacementProductStruct( - productIdentifierType, - productIdentifierValue - ) + return ActivatedCarbonFilterMonitoringClusterReplacementProductStruct(productIdentifierType, productIdentifierValue) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationBasicClusterApplicationStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationBasicClusterApplicationStruct.kt index 90dae8f1054f47..d51e6f00a8a6bb 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationBasicClusterApplicationStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationBasicClusterApplicationStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -50,7 +52,7 @@ class ApplicationBasicClusterApplicationStruct( tlvReader.enterStructure(tlvTag) val catalogVendorID = tlvReader.getUShort(ContextSpecificTag(TAG_CATALOG_VENDOR_I_D)) val applicationID = tlvReader.getString(ContextSpecificTag(TAG_APPLICATION_I_D)) - + tlvReader.exitContainer() return ApplicationBasicClusterApplicationStruct(catalogVendorID, applicationID) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationEPStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationEPStruct.kt index 62fc820b748084..838250009fb347 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationEPStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationEPStruct.kt @@ -18,6 +18,7 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -52,18 +53,13 @@ class ApplicationLauncherClusterApplicationEPStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ApplicationLauncherClusterApplicationEPStruct { tlvReader.enterStructure(tlvTag) - val application = - ApplicationLauncherClusterApplicationStruct.fromTlv( - ContextSpecificTag(TAG_APPLICATION), - tlvReader - ) - val endpoint = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENDPOINT))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT))) - } else { - Optional.empty() - } - + val application = ApplicationLauncherClusterApplicationStruct.fromTlv(ContextSpecificTag(TAG_APPLICATION), tlvReader) + val endpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENDPOINT))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT))) + } else { + Optional.empty() + } + tlvReader.exitContainer() return ApplicationLauncherClusterApplicationEPStruct(application, endpoint) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationStruct.kt index 39fa26c5279bbc..4ccc5fa4fba82b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -50,7 +52,7 @@ class ApplicationLauncherClusterApplicationStruct( tlvReader.enterStructure(tlvTag) val catalogVendorID = tlvReader.getUShort(ContextSpecificTag(TAG_CATALOG_VENDOR_I_D)) val applicationID = tlvReader.getString(ContextSpecificTag(TAG_APPLICATION_I_D)) - + tlvReader.exitContainer() return ApplicationLauncherClusterApplicationStruct(catalogVendorID, applicationID) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AudioOutputClusterOutputInfoStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AudioOutputClusterOutputInfoStruct.kt index 07c6c02e0e16af..f8b5d7e18182e1 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AudioOutputClusterOutputInfoStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AudioOutputClusterOutputInfoStruct.kt @@ -16,13 +16,19 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class AudioOutputClusterOutputInfoStruct(val index: UByte, val outputType: UInt, val name: String) { +class AudioOutputClusterOutputInfoStruct( + val index: UByte, + val outputType: UInt, + val name: String +) { override fun toString(): String = buildString { append("AudioOutputClusterOutputInfoStruct {\n") append("\tindex : $index\n") @@ -51,7 +57,7 @@ class AudioOutputClusterOutputInfoStruct(val index: UByte, val outputType: UInt, val index = tlvReader.getUByte(ContextSpecificTag(TAG_INDEX)) val outputType = tlvReader.getUInt(ContextSpecificTag(TAG_OUTPUT_TYPE)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) - + tlvReader.exitContainer() return AudioOutputClusterOutputInfoStruct(index, outputType, name) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterCapabilityMinimaStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterCapabilityMinimaStruct.kt index 57ffe931e64877..25a72a142ce4f5 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterCapabilityMinimaStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterCapabilityMinimaStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -48,17 +50,12 @@ class BasicInformationClusterCapabilityMinimaStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterCapabilityMinimaStruct { tlvReader.enterStructure(tlvTag) - val caseSessionsPerFabric = - tlvReader.getUShort(ContextSpecificTag(TAG_CASE_SESSIONS_PER_FABRIC)) - val subscriptionsPerFabric = - tlvReader.getUShort(ContextSpecificTag(TAG_SUBSCRIPTIONS_PER_FABRIC)) - + val caseSessionsPerFabric = tlvReader.getUShort(ContextSpecificTag(TAG_CASE_SESSIONS_PER_FABRIC)) + val subscriptionsPerFabric = tlvReader.getUShort(ContextSpecificTag(TAG_SUBSCRIPTIONS_PER_FABRIC)) + tlvReader.exitContainer() - return BasicInformationClusterCapabilityMinimaStruct( - caseSessionsPerFabric, - subscriptionsPerFabric - ) + return BasicInformationClusterCapabilityMinimaStruct(caseSessionsPerFabric, subscriptionsPerFabric) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterProductAppearanceStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterProductAppearanceStruct.kt index b1bd7ea2c5599b..4ac29d5d799ccc 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterProductAppearanceStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterProductAppearanceStruct.kt @@ -16,13 +16,18 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class BasicInformationClusterProductAppearanceStruct(val finish: UInt, val primaryColor: UInt?) { +class BasicInformationClusterProductAppearanceStruct( + val finish: UInt, + val primaryColor: UInt? +) { override fun toString(): String = buildString { append("BasicInformationClusterProductAppearanceStruct {\n") append("\tfinish : $finish\n") @@ -50,14 +55,13 @@ class BasicInformationClusterProductAppearanceStruct(val finish: UInt, val prima fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterProductAppearanceStruct { tlvReader.enterStructure(tlvTag) val finish = tlvReader.getUInt(ContextSpecificTag(TAG_FINISH)) - val primaryColor = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_PRIMARY_COLOR)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) - null - } - + val primaryColor = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_PRIMARY_COLOR)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) + null + } + tlvReader.exitContainer() return BasicInformationClusterProductAppearanceStruct(finish, primaryColor) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BindingClusterTargetStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BindingClusterTargetStruct.kt index 2f41f19897474b..f0699ddcf4c042 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BindingClusterTargetStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BindingClusterTargetStruct.kt @@ -18,6 +18,7 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -73,32 +74,28 @@ class BindingClusterTargetStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BindingClusterTargetStruct { tlvReader.enterStructure(tlvTag) - val node = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NODE))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_NODE))) - } else { - Optional.empty() - } - val group = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_GROUP))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_GROUP))) - } else { - Optional.empty() - } - val endpoint = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENDPOINT))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT))) - } else { - Optional.empty() - } - val cluster = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_CLUSTER))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_CLUSTER))) - } else { - Optional.empty() - } + val node = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NODE))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_NODE))) + } else { + Optional.empty() + } + val group = if (tlvReader.isNextTag(ContextSpecificTag(TAG_GROUP))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_GROUP))) + } else { + Optional.empty() + } + val endpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENDPOINT))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT))) + } else { + Optional.empty() + } + val cluster = if (tlvReader.isNextTag(ContextSpecificTag(TAG_CLUSTER))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_CLUSTER))) + } else { + Optional.empty() + } val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return BindingClusterTargetStruct(node, group, endpoint, cluster, fabricIndex) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BridgedDeviceBasicInformationClusterProductAppearanceStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BridgedDeviceBasicInformationClusterProductAppearanceStruct.kt index c6b0dea505512d..e7ec8161cf8444 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BridgedDeviceBasicInformationClusterProductAppearanceStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BridgedDeviceBasicInformationClusterProductAppearanceStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -50,20 +52,16 @@ class BridgedDeviceBasicInformationClusterProductAppearanceStruct( private const val TAG_FINISH = 0 private const val TAG_PRIMARY_COLOR = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): BridgedDeviceBasicInformationClusterProductAppearanceStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BridgedDeviceBasicInformationClusterProductAppearanceStruct { tlvReader.enterStructure(tlvTag) val finish = tlvReader.getUInt(ContextSpecificTag(TAG_FINISH)) - val primaryColor = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_PRIMARY_COLOR)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) - null - } - + val primaryColor = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_PRIMARY_COLOR)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) + null + } + tlvReader.exitContainer() return BridgedDeviceBasicInformationClusterProductAppearanceStruct(finish, primaryColor) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterChannelInfoStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterChannelInfoStruct.kt index 78dbdfba00b026..757210f9864888 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterChannelInfoStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterChannelInfoStruct.kt @@ -18,6 +18,7 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -72,34 +73,25 @@ class ChannelClusterChannelInfoStruct( tlvReader.enterStructure(tlvTag) val majorNumber = tlvReader.getUShort(ContextSpecificTag(TAG_MAJOR_NUMBER)) val minorNumber = tlvReader.getUShort(ContextSpecificTag(TAG_MINOR_NUMBER)) - val name = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - val callSign = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_CALL_SIGN))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_CALL_SIGN))) - } else { - Optional.empty() - } - val affiliateCallSign = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN))) - } else { - Optional.empty() - } - + val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + val callSign = if (tlvReader.isNextTag(ContextSpecificTag(TAG_CALL_SIGN))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_CALL_SIGN))) + } else { + Optional.empty() + } + val affiliateCallSign = if (tlvReader.isNextTag(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return ChannelClusterChannelInfoStruct( - majorNumber, - minorNumber, - name, - callSign, - affiliateCallSign - ) + return ChannelClusterChannelInfoStruct(majorNumber, minorNumber, name, callSign, affiliateCallSign) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterLineupInfoStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterLineupInfoStruct.kt index cb1ab50c1e95db..04316f70ea7a73 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterLineupInfoStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterLineupInfoStruct.kt @@ -18,6 +18,7 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -64,20 +65,18 @@ class ChannelClusterLineupInfoStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ChannelClusterLineupInfoStruct { tlvReader.enterStructure(tlvTag) val operatorName = tlvReader.getString(ContextSpecificTag(TAG_OPERATOR_NAME)) - val lineupName = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_LINEUP_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_LINEUP_NAME))) - } else { - Optional.empty() - } - val postalCode = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_POSTAL_CODE))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_POSTAL_CODE))) - } else { - Optional.empty() - } + val lineupName = if (tlvReader.isNextTag(ContextSpecificTag(TAG_LINEUP_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_LINEUP_NAME))) + } else { + Optional.empty() + } + val postalCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_POSTAL_CODE))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_POSTAL_CODE))) + } else { + Optional.empty() + } val lineupInfoType = tlvReader.getUInt(ContextSpecificTag(TAG_LINEUP_INFO_TYPE)) - + tlvReader.exitContainer() return ChannelClusterLineupInfoStruct(operatorName, lineupName, postalCode, lineupInfoType) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterAdditionalInfoStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterAdditionalInfoStruct.kt index e58a8923415e3b..ef428074afe5a2 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterAdditionalInfoStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterAdditionalInfoStruct.kt @@ -16,13 +16,18 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ContentLauncherClusterAdditionalInfoStruct(val name: String, val value: String) { +class ContentLauncherClusterAdditionalInfoStruct( + val name: String, + val value: String +) { override fun toString(): String = buildString { append("ContentLauncherClusterAdditionalInfoStruct {\n") append("\tname : $name\n") @@ -47,7 +52,7 @@ class ContentLauncherClusterAdditionalInfoStruct(val name: String, val value: St tlvReader.enterStructure(tlvTag) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) val value = tlvReader.getString(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return ContentLauncherClusterAdditionalInfoStruct(name, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterBrandingInformationStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterBrandingInformationStruct.kt index 7fc9456852969f..a1a72a0c4cce0a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterBrandingInformationStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterBrandingInformationStruct.kt @@ -18,6 +18,7 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -78,78 +79,38 @@ class ContentLauncherClusterBrandingInformationStruct( private const val TAG_SPLASH = 4 private const val TAG_WATER_MARK = 5 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): ContentLauncherClusterBrandingInformationStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterBrandingInformationStruct { tlvReader.enterStructure(tlvTag) val providerName = tlvReader.getString(ContextSpecificTag(TAG_PROVIDER_NAME)) - val background = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_BACKGROUND))) { - Optional.of( - ContentLauncherClusterStyleInformationStruct.fromTlv( - ContextSpecificTag(TAG_BACKGROUND), - tlvReader - ) - ) - } else { - Optional.empty() - } - val logo = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_LOGO))) { - Optional.of( - ContentLauncherClusterStyleInformationStruct.fromTlv( - ContextSpecificTag(TAG_LOGO), - tlvReader - ) - ) - } else { - Optional.empty() - } - val progressBar = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_PROGRESS_BAR))) { - Optional.of( - ContentLauncherClusterStyleInformationStruct.fromTlv( - ContextSpecificTag(TAG_PROGRESS_BAR), - tlvReader - ) - ) - } else { - Optional.empty() - } - val splash = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_SPLASH))) { - Optional.of( - ContentLauncherClusterStyleInformationStruct.fromTlv( - ContextSpecificTag(TAG_SPLASH), - tlvReader - ) - ) - } else { - Optional.empty() - } - val waterMark = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_WATER_MARK))) { - Optional.of( - ContentLauncherClusterStyleInformationStruct.fromTlv( - ContextSpecificTag(TAG_WATER_MARK), - tlvReader - ) - ) - } else { - Optional.empty() - } - + val background = if (tlvReader.isNextTag(ContextSpecificTag(TAG_BACKGROUND))) { + Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_BACKGROUND), tlvReader)) + } else { + Optional.empty() + } + val logo = if (tlvReader.isNextTag(ContextSpecificTag(TAG_LOGO))) { + Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_LOGO), tlvReader)) + } else { + Optional.empty() + } + val progressBar = if (tlvReader.isNextTag(ContextSpecificTag(TAG_PROGRESS_BAR))) { + Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_PROGRESS_BAR), tlvReader)) + } else { + Optional.empty() + } + val splash = if (tlvReader.isNextTag(ContextSpecificTag(TAG_SPLASH))) { + Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_SPLASH), tlvReader)) + } else { + Optional.empty() + } + val waterMark = if (tlvReader.isNextTag(ContextSpecificTag(TAG_WATER_MARK))) { + Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_WATER_MARK), tlvReader)) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return ContentLauncherClusterBrandingInformationStruct( - providerName, - background, - logo, - progressBar, - splash, - waterMark - ) + return ContentLauncherClusterBrandingInformationStruct(providerName, background, logo, progressBar, splash, waterMark) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterContentSearchStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterContentSearchStruct.kt index edb9b9abc81976..093bf1e4c1e2c2 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterContentSearchStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterContentSearchStruct.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -49,15 +50,14 @@ class ContentLauncherClusterContentSearchStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterContentSearchStruct { tlvReader.enterStructure(tlvTag) - val parameterList = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PARAMETER_LIST)) - while (!tlvReader.isEndOfContainer()) { - add(ContentLauncherClusterParameterStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val parameterList = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PARAMETER_LIST)) + while(!tlvReader.isEndOfContainer()) { + add(ContentLauncherClusterParameterStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ContentLauncherClusterContentSearchStruct(parameterList) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterDimensionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterDimensionStruct.kt index 02b1322f5f9f17..a8fe544e384c53 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterDimensionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterDimensionStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -55,7 +57,7 @@ class ContentLauncherClusterDimensionStruct( val width = tlvReader.getDouble(ContextSpecificTag(TAG_WIDTH)) val height = tlvReader.getDouble(ContextSpecificTag(TAG_HEIGHT)) val metric = tlvReader.getUInt(ContextSpecificTag(TAG_METRIC)) - + tlvReader.exitContainer() return ContentLauncherClusterDimensionStruct(width, height, metric) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterParameterStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterParameterStruct.kt index ee1efa7365917b..e2e56446cf7657 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterParameterStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterParameterStruct.kt @@ -45,10 +45,10 @@ class ContentLauncherClusterParameterStruct( if (externalIDList.isPresent) { val optexternalIDList = externalIDList.get() startArray(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST)) - for (item in optexternalIDList.iterator()) { - item.toTlv(AnonymousTag, this) - } - endArray() + for (item in optexternalIDList.iterator()) { + item.toTlv(AnonymousTag, this) + } + endArray() } endStructure() } @@ -63,21 +63,18 @@ class ContentLauncherClusterParameterStruct( tlvReader.enterStructure(tlvTag) val type = tlvReader.getUInt(ContextSpecificTag(TAG_TYPE)) val value = tlvReader.getString(ContextSpecificTag(TAG_VALUE)) - val externalIDList = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST))) { - Optional.of( - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST)) - while (!tlvReader.isEndOfContainer()) { - add(ContentLauncherClusterAdditionalInfoStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - ) - } else { - Optional.empty() - } - + val externalIDList = if (tlvReader.isNextTag(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST))) { + Optional.of(buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST)) + while(!tlvReader.isEndOfContainer()) { + add(ContentLauncherClusterAdditionalInfoStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + }) + } else { + Optional.empty() + } + tlvReader.exitContainer() return ContentLauncherClusterParameterStruct(type, value, externalIDList) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterStyleInformationStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterStyleInformationStruct.kt index 217d11a7712d03..114c709306b643 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterStyleInformationStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterStyleInformationStruct.kt @@ -18,6 +18,7 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -62,27 +63,22 @@ class ContentLauncherClusterStyleInformationStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterStyleInformationStruct { tlvReader.enterStructure(tlvTag) - val imageURL = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_IMAGE_U_R_L))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_IMAGE_U_R_L))) - } else { - Optional.empty() - } - val color = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_COLOR))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_COLOR))) - } else { - Optional.empty() - } - val size = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_SIZE))) { - Optional.of( - ContentLauncherClusterDimensionStruct.fromTlv(ContextSpecificTag(TAG_SIZE), tlvReader) - ) - } else { - Optional.empty() - } - + val imageURL = if (tlvReader.isNextTag(ContextSpecificTag(TAG_IMAGE_U_R_L))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_IMAGE_U_R_L))) + } else { + Optional.empty() + } + val color = if (tlvReader.isNextTag(ContextSpecificTag(TAG_COLOR))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_COLOR))) + } else { + Optional.empty() + } + val size = if (tlvReader.isNextTag(ContextSpecificTag(TAG_SIZE))) { + Optional.of(ContentLauncherClusterDimensionStruct.fromTlv(ContextSpecificTag(TAG_SIZE), tlvReader)) + } else { + Optional.empty() + } + tlvReader.exitContainer() return ContentLauncherClusterStyleInformationStruct(imageURL, color, size) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterAverageLoadControlStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterAverageLoadControlStruct.kt index 1e4fd9f18cfe1d..25b7a3f584f923 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterAverageLoadControlStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterAverageLoadControlStruct.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DemandResponseLoadControlClusterAverageLoadControlStruct(val loadAdjustment: Byte) { +class DemandResponseLoadControlClusterAverageLoadControlStruct( + val loadAdjustment: Byte +) { override fun toString(): String = buildString { append("DemandResponseLoadControlClusterAverageLoadControlStruct {\n") append("\tloadAdjustment : $loadAdjustment\n") @@ -40,13 +44,10 @@ class DemandResponseLoadControlClusterAverageLoadControlStruct(val loadAdjustmen companion object { private const val TAG_LOAD_ADJUSTMENT = 0 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): DemandResponseLoadControlClusterAverageLoadControlStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DemandResponseLoadControlClusterAverageLoadControlStruct { tlvReader.enterStructure(tlvTag) val loadAdjustment = tlvReader.getByte(ContextSpecificTag(TAG_LOAD_ADJUSTMENT)) - + tlvReader.exitContainer() return DemandResponseLoadControlClusterAverageLoadControlStruct(loadAdjustment) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterDutyCycleControlStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterDutyCycleControlStruct.kt index 1e23b648c727a9..2c6a235f7c69ba 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterDutyCycleControlStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterDutyCycleControlStruct.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DemandResponseLoadControlClusterDutyCycleControlStruct(val dutyCycle: UByte) { +class DemandResponseLoadControlClusterDutyCycleControlStruct( + val dutyCycle: UByte +) { override fun toString(): String = buildString { append("DemandResponseLoadControlClusterDutyCycleControlStruct {\n") append("\tdutyCycle : $dutyCycle\n") @@ -40,13 +44,10 @@ class DemandResponseLoadControlClusterDutyCycleControlStruct(val dutyCycle: UByt companion object { private const val TAG_DUTY_CYCLE = 0 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): DemandResponseLoadControlClusterDutyCycleControlStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DemandResponseLoadControlClusterDutyCycleControlStruct { tlvReader.enterStructure(tlvTag) val dutyCycle = tlvReader.getUByte(ContextSpecificTag(TAG_DUTY_CYCLE)) - + tlvReader.exitContainer() return DemandResponseLoadControlClusterDutyCycleControlStruct(dutyCycle) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterHeatingSourceControlStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterHeatingSourceControlStruct.kt index 0be25f2696b61c..12588a5e43e743 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterHeatingSourceControlStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterHeatingSourceControlStruct.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DemandResponseLoadControlClusterHeatingSourceControlStruct(val heatingSource: UInt) { +class DemandResponseLoadControlClusterHeatingSourceControlStruct( + val heatingSource: UInt +) { override fun toString(): String = buildString { append("DemandResponseLoadControlClusterHeatingSourceControlStruct {\n") append("\theatingSource : $heatingSource\n") @@ -40,13 +44,10 @@ class DemandResponseLoadControlClusterHeatingSourceControlStruct(val heatingSour companion object { private const val TAG_HEATING_SOURCE = 0 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): DemandResponseLoadControlClusterHeatingSourceControlStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DemandResponseLoadControlClusterHeatingSourceControlStruct { tlvReader.enterStructure(tlvTag) val heatingSource = tlvReader.getUInt(ContextSpecificTag(TAG_HEATING_SOURCE)) - + tlvReader.exitContainer() return DemandResponseLoadControlClusterHeatingSourceControlStruct(heatingSource) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventStruct.kt index fff221a680f729..4dbd5f3b11d408 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventStruct.kt @@ -87,61 +87,40 @@ class DemandResponseLoadControlClusterLoadControlEventStruct( private const val TAG_START_TIME = 6 private const val TAG_TRANSITIONS = 7 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): DemandResponseLoadControlClusterLoadControlEventStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DemandResponseLoadControlClusterLoadControlEventStruct { tlvReader.enterStructure(tlvTag) val eventID = tlvReader.getByteArray(ContextSpecificTag(TAG_EVENT_I_D)) - val programID = - if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_PROGRAM_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PROGRAM_I_D)) - null - } + val programID = if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_PROGRAM_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PROGRAM_I_D)) + null + } val control = tlvReader.getUInt(ContextSpecificTag(TAG_CONTROL)) val deviceClass = tlvReader.getULong(ContextSpecificTag(TAG_DEVICE_CLASS)) - val enrollmentGroup = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENROLLMENT_GROUP))) { - Optional.of(tlvReader.getUByte(ContextSpecificTag(TAG_ENROLLMENT_GROUP))) - } else { - Optional.empty() - } + val enrollmentGroup = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENROLLMENT_GROUP))) { + Optional.of(tlvReader.getUByte(ContextSpecificTag(TAG_ENROLLMENT_GROUP))) + } else { + Optional.empty() + } val criticality = tlvReader.getUInt(ContextSpecificTag(TAG_CRITICALITY)) - val startTime = - if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_START_TIME)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_START_TIME)) - null - } - val transitions = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_TRANSITIONS)) - while (!tlvReader.isEndOfContainer()) { - add( - DemandResponseLoadControlClusterLoadControlEventTransitionStruct.fromTlv( - AnonymousTag, - tlvReader - ) - ) - } - tlvReader.exitContainer() - } - + val startTime = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_START_TIME)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_START_TIME)) + null + } + val transitions = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_TRANSITIONS)) + while(!tlvReader.isEndOfContainer()) { + add(DemandResponseLoadControlClusterLoadControlEventTransitionStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() - return DemandResponseLoadControlClusterLoadControlEventStruct( - eventID, - programID, - control, - deviceClass, - enrollmentGroup, - criticality, - startTime, - transitions - ) + return DemandResponseLoadControlClusterLoadControlEventStruct(eventID, programID, control, deviceClass, enrollmentGroup, criticality, startTime, transitions) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventTransitionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventTransitionStruct.kt index 46c70edba6e5c8..dacc3915fd3cd0 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventTransitionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventTransitionStruct.kt @@ -18,6 +18,7 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -82,80 +83,39 @@ class DemandResponseLoadControlClusterLoadControlEventTransitionStruct( private const val TAG_POWER_SAVINGS_CONTROL = 5 private const val TAG_HEATING_SOURCE_CONTROL = 6 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): DemandResponseLoadControlClusterLoadControlEventTransitionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DemandResponseLoadControlClusterLoadControlEventTransitionStruct { tlvReader.enterStructure(tlvTag) val duration = tlvReader.getUShort(ContextSpecificTag(TAG_DURATION)) val control = tlvReader.getUInt(ContextSpecificTag(TAG_CONTROL)) - val temperatureControl = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_TEMPERATURE_CONTROL))) { - Optional.of( - DemandResponseLoadControlClusterTemperatureControlStruct.fromTlv( - ContextSpecificTag(TAG_TEMPERATURE_CONTROL), - tlvReader - ) - ) - } else { - Optional.empty() - } - val averageLoadControl = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL))) { - Optional.of( - DemandResponseLoadControlClusterAverageLoadControlStruct.fromTlv( - ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), - tlvReader - ) - ) - } else { - Optional.empty() - } - val dutyCycleControl = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL))) { - Optional.of( - DemandResponseLoadControlClusterDutyCycleControlStruct.fromTlv( - ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), - tlvReader - ) - ) - } else { - Optional.empty() - } - val powerSavingsControl = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL))) { - Optional.of( - DemandResponseLoadControlClusterPowerSavingsControlStruct.fromTlv( - ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), - tlvReader - ) - ) - } else { - Optional.empty() - } - val heatingSourceControl = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL))) { - Optional.of( - DemandResponseLoadControlClusterHeatingSourceControlStruct.fromTlv( - ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), - tlvReader - ) - ) - } else { - Optional.empty() - } - + val temperatureControl = if (tlvReader.isNextTag(ContextSpecificTag(TAG_TEMPERATURE_CONTROL))) { + Optional.of(DemandResponseLoadControlClusterTemperatureControlStruct.fromTlv(ContextSpecificTag(TAG_TEMPERATURE_CONTROL), tlvReader)) + } else { + Optional.empty() + } + val averageLoadControl = if (tlvReader.isNextTag(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL))) { + Optional.of(DemandResponseLoadControlClusterAverageLoadControlStruct.fromTlv(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), tlvReader)) + } else { + Optional.empty() + } + val dutyCycleControl = if (tlvReader.isNextTag(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL))) { + Optional.of(DemandResponseLoadControlClusterDutyCycleControlStruct.fromTlv(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), tlvReader)) + } else { + Optional.empty() + } + val powerSavingsControl = if (tlvReader.isNextTag(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL))) { + Optional.of(DemandResponseLoadControlClusterPowerSavingsControlStruct.fromTlv(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), tlvReader)) + } else { + Optional.empty() + } + val heatingSourceControl = if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL))) { + Optional.of(DemandResponseLoadControlClusterHeatingSourceControlStruct.fromTlv(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), tlvReader)) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return DemandResponseLoadControlClusterLoadControlEventTransitionStruct( - duration, - control, - temperatureControl, - averageLoadControl, - dutyCycleControl, - powerSavingsControl, - heatingSourceControl - ) + return DemandResponseLoadControlClusterLoadControlEventTransitionStruct(duration, control, temperatureControl, averageLoadControl, dutyCycleControl, powerSavingsControl, heatingSourceControl) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlProgramStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlProgramStruct.kt index fd21d4d07fb729..13d1024fd276c0 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlProgramStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlProgramStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -70,44 +72,32 @@ class DemandResponseLoadControlClusterLoadControlProgramStruct( private const val TAG_RANDOM_START_MINUTES = 3 private const val TAG_RANDOM_DURATION_MINUTES = 4 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): DemandResponseLoadControlClusterLoadControlProgramStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DemandResponseLoadControlClusterLoadControlProgramStruct { tlvReader.enterStructure(tlvTag) val programID = tlvReader.getByteArray(ContextSpecificTag(TAG_PROGRAM_I_D)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) - val enrollmentGroup = - if (!tlvReader.isNull()) { - tlvReader.getUByte(ContextSpecificTag(TAG_ENROLLMENT_GROUP)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ENROLLMENT_GROUP)) - null - } - val randomStartMinutes = - if (!tlvReader.isNull()) { - tlvReader.getUByte(ContextSpecificTag(TAG_RANDOM_START_MINUTES)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_RANDOM_START_MINUTES)) - null - } - val randomDurationMinutes = - if (!tlvReader.isNull()) { - tlvReader.getUByte(ContextSpecificTag(TAG_RANDOM_DURATION_MINUTES)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_RANDOM_DURATION_MINUTES)) - null - } - + val enrollmentGroup = if (!tlvReader.isNull()) { + tlvReader.getUByte(ContextSpecificTag(TAG_ENROLLMENT_GROUP)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ENROLLMENT_GROUP)) + null + } + val randomStartMinutes = if (!tlvReader.isNull()) { + tlvReader.getUByte(ContextSpecificTag(TAG_RANDOM_START_MINUTES)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_RANDOM_START_MINUTES)) + null + } + val randomDurationMinutes = if (!tlvReader.isNull()) { + tlvReader.getUByte(ContextSpecificTag(TAG_RANDOM_DURATION_MINUTES)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_RANDOM_DURATION_MINUTES)) + null + } + tlvReader.exitContainer() - return DemandResponseLoadControlClusterLoadControlProgramStruct( - programID, - name, - enrollmentGroup, - randomStartMinutes, - randomDurationMinutes - ) + return DemandResponseLoadControlClusterLoadControlProgramStruct(programID, name, enrollmentGroup, randomStartMinutes, randomDurationMinutes) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterPowerSavingsControlStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterPowerSavingsControlStruct.kt index 363970d31ad65a..bc09b7356da92e 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterPowerSavingsControlStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterPowerSavingsControlStruct.kt @@ -16,13 +16,17 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DemandResponseLoadControlClusterPowerSavingsControlStruct(val powerSavings: UByte) { +class DemandResponseLoadControlClusterPowerSavingsControlStruct( + val powerSavings: UByte +) { override fun toString(): String = buildString { append("DemandResponseLoadControlClusterPowerSavingsControlStruct {\n") append("\tpowerSavings : $powerSavings\n") @@ -40,13 +44,10 @@ class DemandResponseLoadControlClusterPowerSavingsControlStruct(val powerSavings companion object { private const val TAG_POWER_SAVINGS = 0 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): DemandResponseLoadControlClusterPowerSavingsControlStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DemandResponseLoadControlClusterPowerSavingsControlStruct { tlvReader.enterStructure(tlvTag) val powerSavings = tlvReader.getUByte(ContextSpecificTag(TAG_POWER_SAVINGS)) - + tlvReader.exitContainer() return DemandResponseLoadControlClusterPowerSavingsControlStruct(powerSavings) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterTemperatureControlStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterTemperatureControlStruct.kt index 89d78db74606f3..bb773fab696733 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterTemperatureControlStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterTemperatureControlStruct.kt @@ -18,6 +18,7 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -43,33 +44,33 @@ class DemandResponseLoadControlClusterTemperatureControlStruct( startStructure(tlvTag) if (coolingTempOffset != null) { if (coolingTempOffset.isPresent) { - val optcoolingTempOffset = coolingTempOffset.get() - put(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET), optcoolingTempOffset) - } + val optcoolingTempOffset = coolingTempOffset.get() + put(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET), optcoolingTempOffset) + } } else { putNull(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET)) } if (heatingtTempOffset != null) { if (heatingtTempOffset.isPresent) { - val optheatingtTempOffset = heatingtTempOffset.get() - put(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET), optheatingtTempOffset) - } + val optheatingtTempOffset = heatingtTempOffset.get() + put(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET), optheatingtTempOffset) + } } else { putNull(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET)) } if (coolingTempSetpoint != null) { if (coolingTempSetpoint.isPresent) { - val optcoolingTempSetpoint = coolingTempSetpoint.get() - put(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT), optcoolingTempSetpoint) - } + val optcoolingTempSetpoint = coolingTempSetpoint.get() + put(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT), optcoolingTempSetpoint) + } } else { putNull(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT)) } if (heatingTempSetpoint != null) { if (heatingTempSetpoint.isPresent) { - val optheatingTempSetpoint = heatingTempSetpoint.get() - put(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT), optheatingTempSetpoint) - } + val optheatingTempSetpoint = heatingTempSetpoint.get() + put(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT), optheatingTempSetpoint) + } } else { putNull(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT)) } @@ -83,64 +84,52 @@ class DemandResponseLoadControlClusterTemperatureControlStruct( private const val TAG_COOLING_TEMP_SETPOINT = 2 private const val TAG_HEATING_TEMP_SETPOINT = 3 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): DemandResponseLoadControlClusterTemperatureControlStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DemandResponseLoadControlClusterTemperatureControlStruct { tlvReader.enterStructure(tlvTag) - val coolingTempOffset = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET)) - null - } - val heatingtTempOffset = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET)) - null - } - val coolingTempSetpoint = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT))) { - Optional.of(tlvReader.getShort(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT)) - null - } - val heatingTempSetpoint = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT))) { - Optional.of(tlvReader.getShort(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT)) - null - } - + val coolingTempOffset = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET)) + null + } + val heatingtTempOffset = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET)) + null + } + val coolingTempSetpoint = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT))) { + Optional.of(tlvReader.getShort(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT)) + null + } + val heatingTempSetpoint = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT))) { + Optional.of(tlvReader.getShort(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT)) + null + } + tlvReader.exitContainer() - return DemandResponseLoadControlClusterTemperatureControlStruct( - coolingTempOffset, - heatingtTempOffset, - coolingTempSetpoint, - heatingTempSetpoint - ) + return DemandResponseLoadControlClusterTemperatureControlStruct(coolingTempOffset, heatingtTempOffset, coolingTempSetpoint, heatingTempSetpoint) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterDeviceTypeStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterDeviceTypeStruct.kt index b7b19082af7379..c240984464862d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterDeviceTypeStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterDeviceTypeStruct.kt @@ -16,13 +16,18 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DescriptorClusterDeviceTypeStruct(val deviceType: UInt, val revision: UShort) { +class DescriptorClusterDeviceTypeStruct( + val deviceType: UInt, + val revision: UShort +) { override fun toString(): String = buildString { append("DescriptorClusterDeviceTypeStruct {\n") append("\tdeviceType : $deviceType\n") @@ -47,7 +52,7 @@ class DescriptorClusterDeviceTypeStruct(val deviceType: UInt, val revision: USho tlvReader.enterStructure(tlvTag) val deviceType = tlvReader.getUInt(ContextSpecificTag(TAG_DEVICE_TYPE)) val revision = tlvReader.getUShort(ContextSpecificTag(TAG_REVISION)) - + tlvReader.exitContainer() return DescriptorClusterDeviceTypeStruct(deviceType, revision) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterSemanticTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterSemanticTagStruct.kt index 2dd5869528c27f..d8ba618f34c23c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterSemanticTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterSemanticTagStruct.kt @@ -18,6 +18,7 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -50,9 +51,9 @@ class DescriptorClusterSemanticTagStruct( put(ContextSpecificTag(TAG_TAG), tag) if (label != null) { if (label.isPresent) { - val optlabel = label.get() - put(ContextSpecificTag(TAG_LABEL), optlabel) - } + val optlabel = label.get() + put(ContextSpecificTag(TAG_LABEL), optlabel) + } } else { putNull(ContextSpecificTag(TAG_LABEL)) } @@ -68,27 +69,25 @@ class DescriptorClusterSemanticTagStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DescriptorClusterSemanticTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = - if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_MFG_CODE)) - null - } + val mfgCode = if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_MFG_CODE)) + null + } val namespaceID = tlvReader.getUInt(ContextSpecificTag(TAG_NAMESPACE_I_D)) val tag = tlvReader.getUInt(ContextSpecificTag(TAG_TAG)) - val label = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_LABEL))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_LABEL)) - null - } - + val label = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_LABEL))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_LABEL)) + null + } + tlvReader.exitContainer() return DescriptorClusterSemanticTagStruct(mfgCode, namespaceID, tag, label) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeOptionStruct.kt index d35df126ab13bd..74f734677635f0 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeOptionStruct.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -59,15 +60,14 @@ class DishwasherModeClusterModeOptionStruct( tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUByte(ContextSpecificTag(TAG_MODE)) - val modeTags = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while (!tlvReader.isEndOfContainer()) { - add(DishwasherModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while(!tlvReader.isEndOfContainer()) { + add(DishwasherModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return DishwasherModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeTagStruct.kt index 7e3d6bbe24ecdb..d5d79214a7d785 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeTagStruct.kt @@ -18,12 +18,16 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DishwasherModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { +class DishwasherModeClusterModeTagStruct( + val mfgCode: Optional, + val value: UInt +) { override fun toString(): String = buildString { append("DishwasherModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") @@ -49,14 +53,13 @@ class DishwasherModeClusterModeTagStruct(val mfgCode: Optional, val valu fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DishwasherModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return DishwasherModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DoorLockClusterCredentialStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DoorLockClusterCredentialStruct.kt index 4ee0122fa76b0c..7eb1fdca42a73b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DoorLockClusterCredentialStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DoorLockClusterCredentialStruct.kt @@ -16,13 +16,18 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DoorLockClusterCredentialStruct(val credentialType: UInt, val credentialIndex: UShort) { +class DoorLockClusterCredentialStruct( + val credentialType: UInt, + val credentialIndex: UShort +) { override fun toString(): String = buildString { append("DoorLockClusterCredentialStruct {\n") append("\tcredentialType : $credentialType\n") @@ -47,7 +52,7 @@ class DoorLockClusterCredentialStruct(val credentialType: UInt, val credentialIn tlvReader.enterStructure(tlvTag) val credentialType = tlvReader.getUInt(ContextSpecificTag(TAG_CREDENTIAL_TYPE)) val credentialIndex = tlvReader.getUShort(ContextSpecificTag(TAG_CREDENTIAL_INDEX)) - + tlvReader.exitContainer() return DoorLockClusterCredentialStruct(credentialType, credentialIndex) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/FixedLabelClusterLabelStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/FixedLabelClusterLabelStruct.kt index 07a231555999fa..c864789e98eff0 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/FixedLabelClusterLabelStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/FixedLabelClusterLabelStruct.kt @@ -16,13 +16,18 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class FixedLabelClusterLabelStruct(val label: String, val value: String) { +class FixedLabelClusterLabelStruct( + val label: String, + val value: String +) { override fun toString(): String = buildString { append("FixedLabelClusterLabelStruct {\n") append("\tlabel : $label\n") @@ -47,7 +52,7 @@ class FixedLabelClusterLabelStruct(val label: String, val value: String) { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val value = tlvReader.getString(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return FixedLabelClusterLabelStruct(label, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralCommissioningClusterBasicCommissioningInfo.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralCommissioningClusterBasicCommissioningInfo.kt index e8638055916ae0..df593f15055f73 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralCommissioningClusterBasicCommissioningInfo.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralCommissioningClusterBasicCommissioningInfo.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -46,22 +48,14 @@ class GeneralCommissioningClusterBasicCommissioningInfo( private const val TAG_FAIL_SAFE_EXPIRY_LENGTH_SECONDS = 0 private const val TAG_MAX_CUMULATIVE_FAILSAFE_SECONDS = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): GeneralCommissioningClusterBasicCommissioningInfo { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GeneralCommissioningClusterBasicCommissioningInfo { tlvReader.enterStructure(tlvTag) - val failSafeExpiryLengthSeconds = - tlvReader.getUShort(ContextSpecificTag(TAG_FAIL_SAFE_EXPIRY_LENGTH_SECONDS)) - val maxCumulativeFailsafeSeconds = - tlvReader.getUShort(ContextSpecificTag(TAG_MAX_CUMULATIVE_FAILSAFE_SECONDS)) - + val failSafeExpiryLengthSeconds = tlvReader.getUShort(ContextSpecificTag(TAG_FAIL_SAFE_EXPIRY_LENGTH_SECONDS)) + val maxCumulativeFailsafeSeconds = tlvReader.getUShort(ContextSpecificTag(TAG_MAX_CUMULATIVE_FAILSAFE_SECONDS)) + tlvReader.exitContainer() - return GeneralCommissioningClusterBasicCommissioningInfo( - failSafeExpiryLengthSeconds, - maxCumulativeFailsafeSeconds - ) + return GeneralCommissioningClusterBasicCommissioningInfo(failSafeExpiryLengthSeconds, maxCumulativeFailsafeSeconds) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralDiagnosticsClusterNetworkInterface.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralDiagnosticsClusterNetworkInterface.kt index 900e71adea7c6d..57a1453b6954d5 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralDiagnosticsClusterNetworkInterface.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralDiagnosticsClusterNetworkInterface.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -52,18 +53,12 @@ class GeneralDiagnosticsClusterNetworkInterface( put(ContextSpecificTag(TAG_NAME), name) put(ContextSpecificTag(TAG_IS_OPERATIONAL), isOperational) if (offPremiseServicesReachableIPv4 != null) { - put( - ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4), - offPremiseServicesReachableIPv4 - ) + put(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4), offPremiseServicesReachableIPv4) } else { putNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) } if (offPremiseServicesReachableIPv6 != null) { - put( - ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6), - offPremiseServicesReachableIPv6 - ) + put(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6), offPremiseServicesReachableIPv6) } else { putNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) } @@ -97,51 +92,38 @@ class GeneralDiagnosticsClusterNetworkInterface( tlvReader.enterStructure(tlvTag) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) val isOperational = tlvReader.getBoolean(ContextSpecificTag(TAG_IS_OPERATIONAL)) - val offPremiseServicesReachableIPv4 = - if (!tlvReader.isNull()) { - tlvReader.getBoolean(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) - null - } - val offPremiseServicesReachableIPv6 = - if (!tlvReader.isNull()) { - tlvReader.getBoolean(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) - null - } + val offPremiseServicesReachableIPv4 = if (!tlvReader.isNull()) { + tlvReader.getBoolean(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) + null + } + val offPremiseServicesReachableIPv6 = if (!tlvReader.isNull()) { + tlvReader.getBoolean(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) + null + } val hardwareAddress = tlvReader.getByteArray(ContextSpecificTag(TAG_HARDWARE_ADDRESS)) - val IPv4Addresses = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_I_PV4_ADDRESSES)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getByteArray(AnonymousTag)) - } - tlvReader.exitContainer() - } - val IPv6Addresses = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_I_PV6_ADDRESSES)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getByteArray(AnonymousTag)) - } - tlvReader.exitContainer() - } + val IPv4Addresses = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_I_PV4_ADDRESSES)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getByteArray(AnonymousTag)) + } + tlvReader.exitContainer() + } + val IPv6Addresses = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_I_PV6_ADDRESSES)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getByteArray(AnonymousTag)) + } + tlvReader.exitContainer() + } val type = tlvReader.getUInt(ContextSpecificTag(TAG_TYPE)) - + tlvReader.exitContainer() - return GeneralDiagnosticsClusterNetworkInterface( - name, - isOperational, - offPremiseServicesReachableIPv4, - offPremiseServicesReachableIPv6, - hardwareAddress, - IPv4Addresses, - IPv6Addresses, - type - ) + return GeneralDiagnosticsClusterNetworkInterface(name, isOperational, offPremiseServicesReachableIPv4, offPremiseServicesReachableIPv6, hardwareAddress, IPv4Addresses, IPv6Addresses, type) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupInfoMapStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupInfoMapStruct.kt index cfa9eb7e88060c..51efd104263ee6 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupInfoMapStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupInfoMapStruct.kt @@ -66,22 +66,20 @@ class GroupKeyManagementClusterGroupInfoMapStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GroupKeyManagementClusterGroupInfoMapStruct { tlvReader.enterStructure(tlvTag) val groupId = tlvReader.getUShort(ContextSpecificTag(TAG_GROUP_ID)) - val endpoints = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ENDPOINTS)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUShort(AnonymousTag)) - } - tlvReader.exitContainer() - } - val groupName = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_GROUP_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_GROUP_NAME))) - } else { - Optional.empty() - } + val endpoints = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ENDPOINTS)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUShort(AnonymousTag)) + } + tlvReader.exitContainer() + } + val groupName = if (tlvReader.isNextTag(ContextSpecificTag(TAG_GROUP_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_GROUP_NAME))) + } else { + Optional.empty() + } val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return GroupKeyManagementClusterGroupInfoMapStruct(groupId, endpoints, groupName, fabricIndex) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeyMapStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeyMapStruct.kt index 96460161128bbe..18a8e963c9f2d3 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeyMapStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeyMapStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -55,7 +57,7 @@ class GroupKeyManagementClusterGroupKeyMapStruct( val groupId = tlvReader.getUShort(ContextSpecificTag(TAG_GROUP_ID)) val groupKeySetID = tlvReader.getUShort(ContextSpecificTag(TAG_GROUP_KEY_SET_I_D)) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return GroupKeyManagementClusterGroupKeyMapStruct(groupId, groupKeySetID, fabricIndex) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeySetStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeySetStruct.kt index 2c8d334a4cffd9..5b3501c55b8d9c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeySetStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeySetStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -97,63 +99,47 @@ class GroupKeyManagementClusterGroupKeySetStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GroupKeyManagementClusterGroupKeySetStruct { tlvReader.enterStructure(tlvTag) val groupKeySetID = tlvReader.getUShort(ContextSpecificTag(TAG_GROUP_KEY_SET_I_D)) - val groupKeySecurityPolicy = - tlvReader.getUInt(ContextSpecificTag(TAG_GROUP_KEY_SECURITY_POLICY)) - val epochKey0 = - if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY0)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY0)) - null - } - val epochStartTime0 = - if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME0)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME0)) - null - } - val epochKey1 = - if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY1)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY1)) - null - } - val epochStartTime1 = - if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME1)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME1)) - null - } - val epochKey2 = - if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY2)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY2)) - null - } - val epochStartTime2 = - if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME2)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME2)) - null - } - + val groupKeySecurityPolicy = tlvReader.getUInt(ContextSpecificTag(TAG_GROUP_KEY_SECURITY_POLICY)) + val epochKey0 = if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY0)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY0)) + null + } + val epochStartTime0 = if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME0)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME0)) + null + } + val epochKey1 = if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY1)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY1)) + null + } + val epochStartTime1 = if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME1)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME1)) + null + } + val epochKey2 = if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY2)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY2)) + null + } + val epochStartTime2 = if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME2)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME2)) + null + } + tlvReader.exitContainer() - return GroupKeyManagementClusterGroupKeySetStruct( - groupKeySetID, - groupKeySecurityPolicy, - epochKey0, - epochStartTime0, - epochKey1, - epochStartTime1, - epochKey2, - epochStartTime2 - ) + return GroupKeyManagementClusterGroupKeySetStruct(groupKeySetID, groupKeySecurityPolicy, epochKey0, epochStartTime0, epochKey1, epochStartTime1, epochKey2, epochStartTime2) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/HepaFilterMonitoringClusterReplacementProductStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/HepaFilterMonitoringClusterReplacementProductStruct.kt index 32ce0e6298f485..d21a55b22427ca 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/HepaFilterMonitoringClusterReplacementProductStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/HepaFilterMonitoringClusterReplacementProductStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -46,21 +48,14 @@ class HepaFilterMonitoringClusterReplacementProductStruct( private const val TAG_PRODUCT_IDENTIFIER_TYPE = 0 private const val TAG_PRODUCT_IDENTIFIER_VALUE = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): HepaFilterMonitoringClusterReplacementProductStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): HepaFilterMonitoringClusterReplacementProductStruct { tlvReader.enterStructure(tlvTag) val productIdentifierType = tlvReader.getUInt(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_TYPE)) - val productIdentifierValue = - tlvReader.getString(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_VALUE)) - + val productIdentifierValue = tlvReader.getString(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_VALUE)) + tlvReader.exitContainer() - return HepaFilterMonitoringClusterReplacementProductStruct( - productIdentifierType, - productIdentifierValue - ) + return HepaFilterMonitoringClusterReplacementProductStruct(productIdentifierType, productIdentifierValue) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/IcdManagementClusterMonitoringRegistrationStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/IcdManagementClusterMonitoringRegistrationStruct.kt index 2a7a56c9a650dd..2905a4fb9615f2 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/IcdManagementClusterMonitoringRegistrationStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/IcdManagementClusterMonitoringRegistrationStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -50,22 +52,15 @@ class IcdManagementClusterMonitoringRegistrationStruct( private const val TAG_MONITORED_SUBJECT = 2 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): IcdManagementClusterMonitoringRegistrationStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): IcdManagementClusterMonitoringRegistrationStruct { tlvReader.enterStructure(tlvTag) val checkInNodeID = tlvReader.getULong(ContextSpecificTag(TAG_CHECK_IN_NODE_I_D)) val monitoredSubject = tlvReader.getULong(ContextSpecificTag(TAG_MONITORED_SUBJECT)) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return IcdManagementClusterMonitoringRegistrationStruct( - checkInNodeID, - monitoredSubject, - fabricIndex - ) + return IcdManagementClusterMonitoringRegistrationStruct(checkInNodeID, monitoredSubject, fabricIndex) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeOptionStruct.kt index 08988b2b2dfa27..f20bc01f62c452 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeOptionStruct.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -59,15 +60,14 @@ class LaundryWasherModeClusterModeOptionStruct( tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUByte(ContextSpecificTag(TAG_MODE)) - val modeTags = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while (!tlvReader.isEndOfContainer()) { - add(LaundryWasherModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while(!tlvReader.isEndOfContainer()) { + add(LaundryWasherModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return LaundryWasherModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeTagStruct.kt index 0284a239b9b610..dfbf0732fee06d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeTagStruct.kt @@ -18,12 +18,16 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class LaundryWasherModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { +class LaundryWasherModeClusterModeTagStruct( + val mfgCode: Optional, + val value: UInt +) { override fun toString(): String = buildString { append("LaundryWasherModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") @@ -49,14 +53,13 @@ class LaundryWasherModeClusterModeTagStruct(val mfgCode: Optional, val v fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): LaundryWasherModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return LaundryWasherModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaInputClusterInputInfoStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaInputClusterInputInfoStruct.kt index ef3a028b680b8a..272ab25a86b29c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaInputClusterInputInfoStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaInputClusterInputInfoStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -60,7 +62,7 @@ class MediaInputClusterInputInfoStruct( val inputType = tlvReader.getUInt(ContextSpecificTag(TAG_INPUT_TYPE)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) val description = tlvReader.getString(ContextSpecificTag(TAG_DESCRIPTION)) - + tlvReader.exitContainer() return MediaInputClusterInputInfoStruct(index, inputType, name, description) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaPlaybackClusterPlaybackPositionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaPlaybackClusterPlaybackPositionStruct.kt index 3052f1984c2412..b25929ec3fe3a9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaPlaybackClusterPlaybackPositionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaPlaybackClusterPlaybackPositionStruct.kt @@ -16,13 +16,18 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class MediaPlaybackClusterPlaybackPositionStruct(val updatedAt: ULong, val position: ULong?) { +class MediaPlaybackClusterPlaybackPositionStruct( + val updatedAt: ULong, + val position: ULong? +) { override fun toString(): String = buildString { append("MediaPlaybackClusterPlaybackPositionStruct {\n") append("\tupdatedAt : $updatedAt\n") @@ -50,14 +55,13 @@ class MediaPlaybackClusterPlaybackPositionStruct(val updatedAt: ULong, val posit fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): MediaPlaybackClusterPlaybackPositionStruct { tlvReader.enterStructure(tlvTag) val updatedAt = tlvReader.getULong(ContextSpecificTag(TAG_UPDATED_AT)) - val position = - if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_POSITION)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_POSITION)) - null - } - + val position = if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_POSITION)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_POSITION)) + null + } + tlvReader.exitContainer() return MediaPlaybackClusterPlaybackPositionStruct(updatedAt, position) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeOptionStruct.kt index 481ae34118a03b..0ac1f6bb84beb2 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeOptionStruct.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -59,15 +60,14 @@ class MicrowaveOvenModeClusterModeOptionStruct( tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUByte(ContextSpecificTag(TAG_MODE)) - val modeTags = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while (!tlvReader.isEndOfContainer()) { - add(MicrowaveOvenModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while(!tlvReader.isEndOfContainer()) { + add(MicrowaveOvenModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return MicrowaveOvenModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeTagStruct.kt index d0d088a1d77b42..61d1101d917ed6 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeTagStruct.kt @@ -18,12 +18,16 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class MicrowaveOvenModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { +class MicrowaveOvenModeClusterModeTagStruct( + val mfgCode: Optional, + val value: UInt +) { override fun toString(): String = buildString { append("MicrowaveOvenModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") @@ -49,14 +53,13 @@ class MicrowaveOvenModeClusterModeTagStruct(val mfgCode: Optional, val v fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): MicrowaveOvenModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return MicrowaveOvenModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterModeOptionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterModeOptionStruct.kt index 8cb331e77ade86..c0d5b00da39aac 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterModeOptionStruct.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -59,15 +60,14 @@ class ModeSelectClusterModeOptionStruct( tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUByte(ContextSpecificTag(TAG_MODE)) - val semanticTags = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_SEMANTIC_TAGS)) - while (!tlvReader.isEndOfContainer()) { - add(ModeSelectClusterSemanticTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val semanticTags = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_SEMANTIC_TAGS)) + while(!tlvReader.isEndOfContainer()) { + add(ModeSelectClusterSemanticTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ModeSelectClusterModeOptionStruct(label, mode, semanticTags) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterSemanticTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterSemanticTagStruct.kt index 5b6d1ae0fb71f0..94004e17f17de6 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterSemanticTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterSemanticTagStruct.kt @@ -16,13 +16,18 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ModeSelectClusterSemanticTagStruct(val mfgCode: UShort, val value: UInt) { +class ModeSelectClusterSemanticTagStruct( + val mfgCode: UShort, + val value: UInt +) { override fun toString(): String = buildString { append("ModeSelectClusterSemanticTagStruct {\n") append("\tmfgCode : $mfgCode\n") @@ -47,7 +52,7 @@ class ModeSelectClusterSemanticTagStruct(val mfgCode: UShort, val value: UInt) { tlvReader.enterStructure(tlvTag) val mfgCode = tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE)) val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return ModeSelectClusterSemanticTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterNetworkInfoStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterNetworkInfoStruct.kt index 245061cc19fc46..970b531cc9e313 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterNetworkInfoStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterNetworkInfoStruct.kt @@ -18,6 +18,7 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -45,17 +46,17 @@ class NetworkCommissioningClusterNetworkInfoStruct( put(ContextSpecificTag(TAG_CONNECTED), connected) if (networkIdentifier != null) { if (networkIdentifier.isPresent) { - val optnetworkIdentifier = networkIdentifier.get() - put(ContextSpecificTag(TAG_NETWORK_IDENTIFIER), optnetworkIdentifier) - } + val optnetworkIdentifier = networkIdentifier.get() + put(ContextSpecificTag(TAG_NETWORK_IDENTIFIER), optnetworkIdentifier) + } } else { putNull(ContextSpecificTag(TAG_NETWORK_IDENTIFIER)) } if (clientIdentifier != null) { if (clientIdentifier.isPresent) { - val optclientIdentifier = clientIdentifier.get() - put(ContextSpecificTag(TAG_CLIENT_IDENTIFIER), optclientIdentifier) - } + val optclientIdentifier = clientIdentifier.get() + put(ContextSpecificTag(TAG_CLIENT_IDENTIFIER), optclientIdentifier) + } } else { putNull(ContextSpecificTag(TAG_CLIENT_IDENTIFIER)) } @@ -73,37 +74,30 @@ class NetworkCommissioningClusterNetworkInfoStruct( tlvReader.enterStructure(tlvTag) val networkID = tlvReader.getByteArray(ContextSpecificTag(TAG_NETWORK_I_D)) val connected = tlvReader.getBoolean(ContextSpecificTag(TAG_CONNECTED)) - val networkIdentifier = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NETWORK_IDENTIFIER))) { - Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_NETWORK_IDENTIFIER))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NETWORK_IDENTIFIER)) - null - } - val clientIdentifier = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_CLIENT_IDENTIFIER))) { - Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_CLIENT_IDENTIFIER))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CLIENT_IDENTIFIER)) - null - } - + val networkIdentifier = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NETWORK_IDENTIFIER))) { + Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_NETWORK_IDENTIFIER))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NETWORK_IDENTIFIER)) + null + } + val clientIdentifier = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_CLIENT_IDENTIFIER))) { + Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_CLIENT_IDENTIFIER))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_CLIENT_IDENTIFIER)) + null + } + tlvReader.exitContainer() - return NetworkCommissioningClusterNetworkInfoStruct( - networkID, - connected, - networkIdentifier, - clientIdentifier - ) + return NetworkCommissioningClusterNetworkInfoStruct(networkID, connected, networkIdentifier, clientIdentifier) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterThreadInterfaceScanResultStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterThreadInterfaceScanResultStruct.kt index 5057fa34bc1cbe..cbef13e65cf043 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterThreadInterfaceScanResultStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterThreadInterfaceScanResultStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -70,10 +72,7 @@ class NetworkCommissioningClusterThreadInterfaceScanResultStruct( private const val TAG_RSSI = 6 private const val TAG_LQI = 7 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): NetworkCommissioningClusterThreadInterfaceScanResultStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): NetworkCommissioningClusterThreadInterfaceScanResultStruct { tlvReader.enterStructure(tlvTag) val panId = tlvReader.getUShort(ContextSpecificTag(TAG_PAN_ID)) val extendedPanId = tlvReader.getULong(ContextSpecificTag(TAG_EXTENDED_PAN_ID)) @@ -83,19 +82,10 @@ class NetworkCommissioningClusterThreadInterfaceScanResultStruct( val extendedAddress = tlvReader.getByteArray(ContextSpecificTag(TAG_EXTENDED_ADDRESS)) val rssi = tlvReader.getByte(ContextSpecificTag(TAG_RSSI)) val lqi = tlvReader.getUByte(ContextSpecificTag(TAG_LQI)) - + tlvReader.exitContainer() - return NetworkCommissioningClusterThreadInterfaceScanResultStruct( - panId, - extendedPanId, - networkName, - channel, - version, - extendedAddress, - rssi, - lqi - ) + return NetworkCommissioningClusterThreadInterfaceScanResultStruct(panId, extendedPanId, networkName, channel, version, extendedAddress, rssi, lqi) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterWiFiInterfaceScanResultStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterWiFiInterfaceScanResultStruct.kt index 3d2c8ea65a32bd..8952c0c541035b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterWiFiInterfaceScanResultStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterWiFiInterfaceScanResultStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -62,10 +64,7 @@ class NetworkCommissioningClusterWiFiInterfaceScanResultStruct( private const val TAG_WI_FI_BAND = 4 private const val TAG_RSSI = 5 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): NetworkCommissioningClusterWiFiInterfaceScanResultStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): NetworkCommissioningClusterWiFiInterfaceScanResultStruct { tlvReader.enterStructure(tlvTag) val security = tlvReader.getUInt(ContextSpecificTag(TAG_SECURITY)) val ssid = tlvReader.getByteArray(ContextSpecificTag(TAG_SSID)) @@ -73,17 +72,10 @@ class NetworkCommissioningClusterWiFiInterfaceScanResultStruct( val channel = tlvReader.getUShort(ContextSpecificTag(TAG_CHANNEL)) val wiFiBand = tlvReader.getUInt(ContextSpecificTag(TAG_WI_FI_BAND)) val rssi = tlvReader.getByte(ContextSpecificTag(TAG_RSSI)) - + tlvReader.exitContainer() - return NetworkCommissioningClusterWiFiInterfaceScanResultStruct( - security, - ssid, - bssid, - channel, - wiFiBand, - rssi - ) + return NetworkCommissioningClusterWiFiInterfaceScanResultStruct(security, ssid, bssid, channel, wiFiBand, rssi) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterFabricDescriptorStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterFabricDescriptorStruct.kt index 66de75d6e3efc1..3b2befc5b6c63c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterFabricDescriptorStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterFabricDescriptorStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -62,10 +64,7 @@ class OperationalCredentialsClusterFabricDescriptorStruct( private const val TAG_LABEL = 5 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): OperationalCredentialsClusterFabricDescriptorStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalCredentialsClusterFabricDescriptorStruct { tlvReader.enterStructure(tlvTag) val rootPublicKey = tlvReader.getByteArray(ContextSpecificTag(TAG_ROOT_PUBLIC_KEY)) val vendorID = tlvReader.getUShort(ContextSpecificTag(TAG_VENDOR_I_D)) @@ -73,17 +72,10 @@ class OperationalCredentialsClusterFabricDescriptorStruct( val nodeID = tlvReader.getULong(ContextSpecificTag(TAG_NODE_I_D)) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return OperationalCredentialsClusterFabricDescriptorStruct( - rootPublicKey, - vendorID, - fabricID, - nodeID, - label, - fabricIndex - ) + return OperationalCredentialsClusterFabricDescriptorStruct(rootPublicKey, vendorID, fabricID, nodeID, label, fabricIndex) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterNOCStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterNOCStruct.kt index ab86611164d93d..bf0c8218b4edfa 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterNOCStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterNOCStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -57,15 +59,14 @@ class OperationalCredentialsClusterNOCStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalCredentialsClusterNOCStruct { tlvReader.enterStructure(tlvTag) val noc = tlvReader.getByteArray(ContextSpecificTag(TAG_NOC)) - val icac = - if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_ICAC)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ICAC)) - null - } + val icac = if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_ICAC)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ICAC)) + null + } val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return OperationalCredentialsClusterNOCStruct(noc, icac, fabricIndex) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterErrorStateStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterErrorStateStruct.kt index f49646d015d186..e62f02273eade4 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterErrorStateStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterErrorStateStruct.kt @@ -18,6 +18,7 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -60,26 +61,20 @@ class OperationalStateClusterErrorStateStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalStateClusterErrorStateStruct { tlvReader.enterStructure(tlvTag) val errorStateID = tlvReader.getUInt(ContextSpecificTag(TAG_ERROR_STATE_I_D)) - val errorStateLabel = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) - } else { - Optional.empty() - } - val errorStateDetails = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) - } else { - Optional.empty() - } - + val errorStateLabel = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) + } else { + Optional.empty() + } + val errorStateDetails = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return OperationalStateClusterErrorStateStruct( - errorStateID, - errorStateLabel, - errorStateDetails - ) + return OperationalStateClusterErrorStateStruct(errorStateID, errorStateLabel, errorStateDetails) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterOperationalStateStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterOperationalStateStruct.kt index 238035d38a060e..a455a8aa3c0827 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterOperationalStateStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterOperationalStateStruct.kt @@ -18,6 +18,7 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -53,19 +54,15 @@ class OperationalStateClusterOperationalStateStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalStateClusterOperationalStateStruct { tlvReader.enterStructure(tlvTag) val operationalStateID = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATIONAL_STATE_I_D)) - val operationalStateLabel = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) - } else { - Optional.empty() - } - + val operationalStateLabel = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return OperationalStateClusterOperationalStateStruct( - operationalStateID, - operationalStateLabel - ) + return OperationalStateClusterOperationalStateStruct(operationalStateID, operationalStateLabel) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OtaSoftwareUpdateRequestorClusterProviderLocation.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OtaSoftwareUpdateRequestorClusterProviderLocation.kt index 1fe882a3da1674..b070a79f2b6344 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OtaSoftwareUpdateRequestorClusterProviderLocation.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OtaSoftwareUpdateRequestorClusterProviderLocation.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -50,22 +52,15 @@ class OtaSoftwareUpdateRequestorClusterProviderLocation( private const val TAG_ENDPOINT = 2 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): OtaSoftwareUpdateRequestorClusterProviderLocation { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OtaSoftwareUpdateRequestorClusterProviderLocation { tlvReader.enterStructure(tlvTag) val providerNodeID = tlvReader.getULong(ContextSpecificTag(TAG_PROVIDER_NODE_I_D)) val endpoint = tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT)) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return OtaSoftwareUpdateRequestorClusterProviderLocation( - providerNodeID, - endpoint, - fabricIndex - ) + return OtaSoftwareUpdateRequestorClusterProviderLocation(providerNodeID, endpoint, fabricIndex) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OvenModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OvenModeClusterModeOptionStruct.kt index de09bc2413be77..a1e48e08ffa9d4 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OvenModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OvenModeClusterModeOptionStruct.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -59,15 +60,14 @@ class OvenModeClusterModeOptionStruct( tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUByte(ContextSpecificTag(TAG_MODE)) - val modeTags = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while (!tlvReader.isEndOfContainer()) { - add(OvenModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while(!tlvReader.isEndOfContainer()) { + add(OvenModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return OvenModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OvenModeClusterModeTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OvenModeClusterModeTagStruct.kt index f957f7073fa77a..cbd5c34073ee91 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OvenModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OvenModeClusterModeTagStruct.kt @@ -18,12 +18,16 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class OvenModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { +class OvenModeClusterModeTagStruct( + val mfgCode: Optional, + val value: UInt +) { override fun toString(): String = buildString { append("OvenModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") @@ -49,14 +53,13 @@ class OvenModeClusterModeTagStruct(val mfgCode: Optional, val value: UIn fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OvenModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return OvenModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatChargeFaultChangeType.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatChargeFaultChangeType.kt index b052cd4bd801ed..fa7429f44d4559 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatChargeFaultChangeType.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatChargeFaultChangeType.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -57,23 +58,21 @@ class PowerSourceClusterBatChargeFaultChangeType( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterBatChargeFaultChangeType { tlvReader.enterStructure(tlvTag) - val current = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterBatChargeFaultChangeType(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatFaultChangeType.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatFaultChangeType.kt index e6ed2093eea21a..b0c331a29cde80 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatFaultChangeType.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatFaultChangeType.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -23,7 +24,10 @@ import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class PowerSourceClusterBatFaultChangeType(val current: List, val previous: List) { +class PowerSourceClusterBatFaultChangeType( + val current: List, + val previous: List +) { override fun toString(): String = buildString { append("PowerSourceClusterBatFaultChangeType {\n") append("\tcurrent : $current\n") @@ -54,23 +58,21 @@ class PowerSourceClusterBatFaultChangeType(val current: List, val previous fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterBatFaultChangeType { tlvReader.enterStructure(tlvTag) - val current = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterBatFaultChangeType(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterWiredFaultChangeType.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterWiredFaultChangeType.kt index e2849017a263c9..da2e57612ef369 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterWiredFaultChangeType.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterWiredFaultChangeType.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -23,7 +24,10 @@ import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class PowerSourceClusterWiredFaultChangeType(val current: List, val previous: List) { +class PowerSourceClusterWiredFaultChangeType( + val current: List, + val previous: List +) { override fun toString(): String = buildString { append("PowerSourceClusterWiredFaultChangeType {\n") append("\tcurrent : $current\n") @@ -54,23 +58,21 @@ class PowerSourceClusterWiredFaultChangeType(val current: List, val previo fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterWiredFaultChangeType { tlvReader.enterStructure(tlvTag) - val current = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterWiredFaultChangeType(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.kt index 41c4276b72942a..8592bd44cd24cd 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -55,34 +56,21 @@ class RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUByte(ContextSpecificTag(TAG_MODE)) - val modeTags = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while (!tlvReader.isEndOfContainer()) { - add( - RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.fromTlv( - AnonymousTag, - tlvReader - ) - ) - } - tlvReader.exitContainer() - } - + val modeTags = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while(!tlvReader.isEndOfContainer()) { + add(RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() - return RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct( - label, - mode, - modeTags - ) + return RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct(label, mode, modeTags) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.kt index 66ac75104984a2..dd930d62e0c762 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.kt @@ -18,6 +18,7 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -50,19 +51,15 @@ class RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct( private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeOptionStruct.kt index b718ee935b7990..74c540f6a34d8e 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeOptionStruct.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -59,15 +60,14 @@ class RvcCleanModeClusterModeOptionStruct( tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUByte(ContextSpecificTag(TAG_MODE)) - val modeTags = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while (!tlvReader.isEndOfContainer()) { - add(RvcCleanModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while(!tlvReader.isEndOfContainer()) { + add(RvcCleanModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return RvcCleanModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeTagStruct.kt index b6670bdcd7b955..eb1e213594a3f8 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeTagStruct.kt @@ -18,12 +18,16 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class RvcCleanModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { +class RvcCleanModeClusterModeTagStruct( + val mfgCode: Optional, + val value: UInt +) { override fun toString(): String = buildString { append("RvcCleanModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") @@ -49,14 +53,13 @@ class RvcCleanModeClusterModeTagStruct(val mfgCode: Optional, val value: fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcCleanModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return RvcCleanModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterErrorStateStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterErrorStateStruct.kt index 4907820103b662..7bc7e36be3e24e 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterErrorStateStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterErrorStateStruct.kt @@ -18,6 +18,7 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -60,26 +61,20 @@ class RvcOperationalStateClusterErrorStateStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcOperationalStateClusterErrorStateStruct { tlvReader.enterStructure(tlvTag) val errorStateID = tlvReader.getUInt(ContextSpecificTag(TAG_ERROR_STATE_I_D)) - val errorStateLabel = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) - } else { - Optional.empty() - } - val errorStateDetails = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) - } else { - Optional.empty() - } - + val errorStateLabel = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) + } else { + Optional.empty() + } + val errorStateDetails = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return RvcOperationalStateClusterErrorStateStruct( - errorStateID, - errorStateLabel, - errorStateDetails - ) + return RvcOperationalStateClusterErrorStateStruct(errorStateID, errorStateLabel, errorStateDetails) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterOperationalStateStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterOperationalStateStruct.kt index 1e5548ff7677a9..103ac6dd54dd1a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterOperationalStateStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterOperationalStateStruct.kt @@ -18,6 +18,7 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -50,25 +51,18 @@ class RvcOperationalStateClusterOperationalStateStruct( private const val TAG_OPERATIONAL_STATE_I_D = 0 private const val TAG_OPERATIONAL_STATE_LABEL = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): RvcOperationalStateClusterOperationalStateStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcOperationalStateClusterOperationalStateStruct { tlvReader.enterStructure(tlvTag) val operationalStateID = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATIONAL_STATE_I_D)) - val operationalStateLabel = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) - } else { - Optional.empty() - } - + val operationalStateLabel = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return RvcOperationalStateClusterOperationalStateStruct( - operationalStateID, - operationalStateLabel - ) + return RvcOperationalStateClusterOperationalStateStruct(operationalStateID, operationalStateLabel) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeOptionStruct.kt index 937a0303a98b04..45cc94b4acfd79 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeOptionStruct.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -59,15 +60,14 @@ class RvcRunModeClusterModeOptionStruct( tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUByte(ContextSpecificTag(TAG_MODE)) - val modeTags = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while (!tlvReader.isEndOfContainer()) { - add(RvcRunModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while(!tlvReader.isEndOfContainer()) { + add(RvcRunModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return RvcRunModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeTagStruct.kt index 055336e7a1e250..1ea366f3991d4a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeTagStruct.kt @@ -18,12 +18,16 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class RvcRunModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { +class RvcRunModeClusterModeTagStruct( + val mfgCode: Optional, + val value: UInt +) { override fun toString(): String = buildString { append("RvcRunModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") @@ -49,14 +53,13 @@ class RvcRunModeClusterModeTagStruct(val mfgCode: Optional, val value: U fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcRunModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return RvcRunModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterAttributeValuePair.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterAttributeValuePair.kt index df599d883e82ca..cc333b5b429de5 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterAttributeValuePair.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterAttributeValuePair.kt @@ -16,13 +16,18 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ScenesClusterAttributeValuePair(val attributeID: UInt, val attributeValue: UInt) { +class ScenesClusterAttributeValuePair( + val attributeID: UInt, + val attributeValue: UInt +) { override fun toString(): String = buildString { append("ScenesClusterAttributeValuePair {\n") append("\tattributeID : $attributeID\n") @@ -47,7 +52,7 @@ class ScenesClusterAttributeValuePair(val attributeID: UInt, val attributeValue: tlvReader.enterStructure(tlvTag) val attributeID = tlvReader.getUInt(ContextSpecificTag(TAG_ATTRIBUTE_I_D)) val attributeValue = tlvReader.getUInt(ContextSpecificTag(TAG_ATTRIBUTE_VALUE)) - + tlvReader.exitContainer() return ScenesClusterAttributeValuePair(attributeID, attributeValue) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterExtensionFieldSet.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterExtensionFieldSet.kt index 88d60856d7460b..b3a2bc3a6460d0 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterExtensionFieldSet.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterExtensionFieldSet.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -54,15 +55,14 @@ class ScenesClusterExtensionFieldSet( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ScenesClusterExtensionFieldSet { tlvReader.enterStructure(tlvTag) val clusterID = tlvReader.getUInt(ContextSpecificTag(TAG_CLUSTER_I_D)) - val attributeValueList = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ATTRIBUTE_VALUE_LIST)) - while (!tlvReader.isEndOfContainer()) { - add(ScenesClusterAttributeValuePair.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val attributeValueList = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ATTRIBUTE_VALUE_LIST)) + while(!tlvReader.isEndOfContainer()) { + add(ScenesClusterAttributeValuePair.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ScenesClusterExtensionFieldSet(clusterID, attributeValueList) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterSceneInfoStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterSceneInfoStruct.kt index 7d21ccd8c87802..e256e497a63bed 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterSceneInfoStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterSceneInfoStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -70,17 +72,10 @@ class ScenesClusterSceneInfoStruct( val sceneValid = tlvReader.getBoolean(ContextSpecificTag(TAG_SCENE_VALID)) val remainingCapacity = tlvReader.getUByte(ContextSpecificTag(TAG_REMAINING_CAPACITY)) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return ScenesClusterSceneInfoStruct( - sceneCount, - currentScene, - currentGroup, - sceneValid, - remainingCapacity, - fabricIndex - ) + return ScenesClusterSceneInfoStruct(sceneCount, currentScene, currentGroup, sceneValid, remainingCapacity, fabricIndex) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt index c5f2429f4af83b..e89735ef6006c0 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt @@ -18,6 +18,7 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -74,40 +75,30 @@ class SoftwareDiagnosticsClusterThreadMetricsStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SoftwareDiagnosticsClusterThreadMetricsStruct { tlvReader.enterStructure(tlvTag) val id = tlvReader.getULong(ContextSpecificTag(TAG_ID)) - val name = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - val stackFreeCurrent = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_FREE_CURRENT))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_STACK_FREE_CURRENT))) - } else { - Optional.empty() - } - val stackFreeMinimum = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_FREE_MINIMUM))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_STACK_FREE_MINIMUM))) - } else { - Optional.empty() - } - val stackSize = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_SIZE))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_STACK_SIZE))) - } else { - Optional.empty() - } - + val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + val stackFreeCurrent = if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_FREE_CURRENT))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_STACK_FREE_CURRENT))) + } else { + Optional.empty() + } + val stackFreeMinimum = if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_FREE_MINIMUM))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_STACK_FREE_MINIMUM))) + } else { + Optional.empty() + } + val stackSize = if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_SIZE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_STACK_SIZE))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return SoftwareDiagnosticsClusterThreadMetricsStruct( - id, - name, - stackFreeCurrent, - stackFreeMinimum, - stackSize - ) + return SoftwareDiagnosticsClusterThreadMetricsStruct(id, name, stackFreeCurrent, stackFreeMinimum, stackSize) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt index 14c27a55df4da9..025e22644675fb 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt @@ -16,13 +16,18 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class TargetNavigatorClusterTargetInfoStruct(val identifier: UByte, val name: String) { +class TargetNavigatorClusterTargetInfoStruct( + val identifier: UByte, + val name: String +) { override fun toString(): String = buildString { append("TargetNavigatorClusterTargetInfoStruct {\n") append("\tidentifier : $identifier\n") @@ -47,7 +52,7 @@ class TargetNavigatorClusterTargetInfoStruct(val identifier: UByte, val name: St tlvReader.enterStructure(tlvTag) val identifier = tlvReader.getUByte(ContextSpecificTag(TAG_IDENTIFIER)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) - + tlvReader.exitContainer() return TargetNavigatorClusterTargetInfoStruct(identifier, name) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterPresetStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterPresetStruct.kt new file mode 100644 index 00000000000000..c6f95b4f395d86 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterPresetStruct.kt @@ -0,0 +1,129 @@ +/* + * + * Copyright (c) 2023 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package matter.devicecontroller.cluster.structs + +import java.util.Optional +import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag +import matter.tlv.ContextSpecificTag +import matter.tlv.Tag +import matter.tlv.TlvReader +import matter.tlv.TlvWriter + +class ThermostatClusterPresetStruct( + val presetHandle: ByteArray?, + val presetScenario: UInt, + val name: Optional?, + val coolingSetpoint: Optional, + val heatingSetpoint: Optional, + val builtIn: Boolean? +) { + override fun toString(): String = buildString { + append("ThermostatClusterPresetStruct {\n") + append("\tpresetHandle : $presetHandle\n") + append("\tpresetScenario : $presetScenario\n") + append("\tname : $name\n") + append("\tcoolingSetpoint : $coolingSetpoint\n") + append("\theatingSetpoint : $heatingSetpoint\n") + append("\tbuiltIn : $builtIn\n") + append("}\n") + } + + fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { + tlvWriter.apply { + startStructure(tlvTag) + if (presetHandle != null) { + put(ContextSpecificTag(TAG_PRESET_HANDLE), presetHandle) + } else { + putNull(ContextSpecificTag(TAG_PRESET_HANDLE)) + } + put(ContextSpecificTag(TAG_PRESET_SCENARIO), presetScenario) + if (name != null) { + if (name.isPresent) { + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } + } else { + putNull(ContextSpecificTag(TAG_NAME)) + } + if (coolingSetpoint.isPresent) { + val optcoolingSetpoint = coolingSetpoint.get() + put(ContextSpecificTag(TAG_COOLING_SETPOINT), optcoolingSetpoint) + } + if (heatingSetpoint.isPresent) { + val optheatingSetpoint = heatingSetpoint.get() + put(ContextSpecificTag(TAG_HEATING_SETPOINT), optheatingSetpoint) + } + if (builtIn != null) { + put(ContextSpecificTag(TAG_BUILT_IN), builtIn) + } else { + putNull(ContextSpecificTag(TAG_BUILT_IN)) + } + endStructure() + } + } + + companion object { + private const val TAG_PRESET_HANDLE = 0 + private const val TAG_PRESET_SCENARIO = 1 + private const val TAG_NAME = 2 + private const val TAG_COOLING_SETPOINT = 3 + private const val TAG_HEATING_SETPOINT = 4 + private const val TAG_BUILT_IN = 5 + + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThermostatClusterPresetStruct { + tlvReader.enterStructure(tlvTag) + val presetHandle = if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_PRESET_HANDLE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PRESET_HANDLE)) + null + } + val presetScenario = tlvReader.getUInt(ContextSpecificTag(TAG_PRESET_SCENARIO)) + val name = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NAME)) + null + } + val coolingSetpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_SETPOINT))) { + Optional.of(tlvReader.getShort(ContextSpecificTag(TAG_COOLING_SETPOINT))) + } else { + Optional.empty() + } + val heatingSetpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SETPOINT))) { + Optional.of(tlvReader.getShort(ContextSpecificTag(TAG_HEATING_SETPOINT))) + } else { + Optional.empty() + } + val builtIn = if (!tlvReader.isNull()) { + tlvReader.getBoolean(ContextSpecificTag(TAG_BUILT_IN)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_BUILT_IN)) + null + } + + tlvReader.exitContainer() + + return ThermostatClusterPresetStruct(presetHandle, presetScenario, name, coolingSetpoint, heatingSetpoint, builtIn) + } + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterPresetTypeStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterPresetTypeStruct.kt new file mode 100644 index 00000000000000..c0db862d8a7033 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterPresetTypeStruct.kt @@ -0,0 +1,66 @@ +/* + * + * Copyright (c) 2023 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package matter.devicecontroller.cluster.structs + +import java.util.Optional +import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag +import matter.tlv.ContextSpecificTag +import matter.tlv.Tag +import matter.tlv.TlvReader +import matter.tlv.TlvWriter + +class ThermostatClusterPresetTypeStruct( + val presetScenario: UInt, + val numberOfPresets: UByte, + val presetTypeFeatures: UInt +) { + override fun toString(): String = buildString { + append("ThermostatClusterPresetTypeStruct {\n") + append("\tpresetScenario : $presetScenario\n") + append("\tnumberOfPresets : $numberOfPresets\n") + append("\tpresetTypeFeatures : $presetTypeFeatures\n") + append("}\n") + } + + fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { + tlvWriter.apply { + startStructure(tlvTag) + put(ContextSpecificTag(TAG_PRESET_SCENARIO), presetScenario) + put(ContextSpecificTag(TAG_NUMBER_OF_PRESETS), numberOfPresets) + put(ContextSpecificTag(TAG_PRESET_TYPE_FEATURES), presetTypeFeatures) + endStructure() + } + } + + companion object { + private const val TAG_PRESET_SCENARIO = 0 + private const val TAG_NUMBER_OF_PRESETS = 1 + private const val TAG_PRESET_TYPE_FEATURES = 2 + + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThermostatClusterPresetTypeStruct { + tlvReader.enterStructure(tlvTag) + val presetScenario = tlvReader.getUInt(ContextSpecificTag(TAG_PRESET_SCENARIO)) + val numberOfPresets = tlvReader.getUByte(ContextSpecificTag(TAG_NUMBER_OF_PRESETS)) + val presetTypeFeatures = tlvReader.getUInt(ContextSpecificTag(TAG_PRESET_TYPE_FEATURES)) + + tlvReader.exitContainer() + + return ThermostatClusterPresetTypeStruct(presetScenario, numberOfPresets, presetTypeFeatures) + } + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterQueuedPresetStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterQueuedPresetStruct.kt new file mode 100644 index 00000000000000..e581b888a88bd7 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterQueuedPresetStruct.kt @@ -0,0 +1,79 @@ +/* + * + * Copyright (c) 2023 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package matter.devicecontroller.cluster.structs + +import java.util.Optional +import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag +import matter.tlv.ContextSpecificTag +import matter.tlv.Tag +import matter.tlv.TlvReader +import matter.tlv.TlvWriter + +class ThermostatClusterQueuedPresetStruct( + val presetHandle: ByteArray?, + val transitionTimestamp: UInt? +) { + override fun toString(): String = buildString { + append("ThermostatClusterQueuedPresetStruct {\n") + append("\tpresetHandle : $presetHandle\n") + append("\ttransitionTimestamp : $transitionTimestamp\n") + append("}\n") + } + + fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { + tlvWriter.apply { + startStructure(tlvTag) + if (presetHandle != null) { + put(ContextSpecificTag(TAG_PRESET_HANDLE), presetHandle) + } else { + putNull(ContextSpecificTag(TAG_PRESET_HANDLE)) + } + if (transitionTimestamp != null) { + put(ContextSpecificTag(TAG_TRANSITION_TIMESTAMP), transitionTimestamp) + } else { + putNull(ContextSpecificTag(TAG_TRANSITION_TIMESTAMP)) + } + endStructure() + } + } + + companion object { + private const val TAG_PRESET_HANDLE = 0 + private const val TAG_TRANSITION_TIMESTAMP = 1 + + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThermostatClusterQueuedPresetStruct { + tlvReader.enterStructure(tlvTag) + val presetHandle = if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_PRESET_HANDLE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PRESET_HANDLE)) + null + } + val transitionTimestamp = if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_TRANSITION_TIMESTAMP)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TRANSITION_TIMESTAMP)) + null + } + + tlvReader.exitContainer() + + return ThermostatClusterQueuedPresetStruct(presetHandle, transitionTimestamp) + } + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleStruct.kt new file mode 100644 index 00000000000000..e37d01d680a9b6 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleStruct.kt @@ -0,0 +1,130 @@ +/* + * + * Copyright (c) 2023 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package matter.devicecontroller.cluster.structs + +import java.util.Optional +import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag +import matter.tlv.ContextSpecificTag +import matter.tlv.Tag +import matter.tlv.TlvReader +import matter.tlv.TlvWriter + +class ThermostatClusterScheduleStruct( + val scheduleHandle: ByteArray?, + val systemMode: UInt, + val name: Optional, + val presetHandle: Optional, + val transitions: List, + val builtIn: Optional? +) { + override fun toString(): String = buildString { + append("ThermostatClusterScheduleStruct {\n") + append("\tscheduleHandle : $scheduleHandle\n") + append("\tsystemMode : $systemMode\n") + append("\tname : $name\n") + append("\tpresetHandle : $presetHandle\n") + append("\ttransitions : $transitions\n") + append("\tbuiltIn : $builtIn\n") + append("}\n") + } + + fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { + tlvWriter.apply { + startStructure(tlvTag) + if (scheduleHandle != null) { + put(ContextSpecificTag(TAG_SCHEDULE_HANDLE), scheduleHandle) + } else { + putNull(ContextSpecificTag(TAG_SCHEDULE_HANDLE)) + } + put(ContextSpecificTag(TAG_SYSTEM_MODE), systemMode) + if (name.isPresent) { + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } + if (presetHandle.isPresent) { + val optpresetHandle = presetHandle.get() + put(ContextSpecificTag(TAG_PRESET_HANDLE), optpresetHandle) + } + startArray(ContextSpecificTag(TAG_TRANSITIONS)) + for (item in transitions.iterator()) { + item.toTlv(AnonymousTag, this) + } + endArray() + if (builtIn != null) { + if (builtIn.isPresent) { + val optbuiltIn = builtIn.get() + put(ContextSpecificTag(TAG_BUILT_IN), optbuiltIn) + } + } else { + putNull(ContextSpecificTag(TAG_BUILT_IN)) + } + endStructure() + } + } + + companion object { + private const val TAG_SCHEDULE_HANDLE = 0 + private const val TAG_SYSTEM_MODE = 1 + private const val TAG_NAME = 2 + private const val TAG_PRESET_HANDLE = 3 + private const val TAG_TRANSITIONS = 4 + private const val TAG_BUILT_IN = 5 + + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThermostatClusterScheduleStruct { + tlvReader.enterStructure(tlvTag) + val scheduleHandle = if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_SCHEDULE_HANDLE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SCHEDULE_HANDLE)) + null + } + val systemMode = tlvReader.getUInt(ContextSpecificTag(TAG_SYSTEM_MODE)) + val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + val presetHandle = if (tlvReader.isNextTag(ContextSpecificTag(TAG_PRESET_HANDLE))) { + Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_PRESET_HANDLE))) + } else { + Optional.empty() + } + val transitions = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_TRANSITIONS)) + while(!tlvReader.isEndOfContainer()) { + add(ThermostatClusterScheduleTransitionStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + val builtIn = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_BUILT_IN))) { + Optional.of(tlvReader.getBoolean(ContextSpecificTag(TAG_BUILT_IN))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_BUILT_IN)) + null + } + + tlvReader.exitContainer() + + return ThermostatClusterScheduleStruct(scheduleHandle, systemMode, name, presetHandle, transitions, builtIn) + } + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleTransitionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleTransitionStruct.kt new file mode 100644 index 00000000000000..0fd72dc49b23de --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleTransitionStruct.kt @@ -0,0 +1,109 @@ +/* + * + * Copyright (c) 2023 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package matter.devicecontroller.cluster.structs + +import java.util.Optional +import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag +import matter.tlv.ContextSpecificTag +import matter.tlv.Tag +import matter.tlv.TlvReader +import matter.tlv.TlvWriter + +class ThermostatClusterScheduleTransitionStruct( + val dayOfWeek: UInt, + val transitionTime: UShort, + val presetHandle: Optional, + val systemMode: Optional, + val coolingSetpoint: Optional, + val heatingSetpoint: Optional +) { + override fun toString(): String = buildString { + append("ThermostatClusterScheduleTransitionStruct {\n") + append("\tdayOfWeek : $dayOfWeek\n") + append("\ttransitionTime : $transitionTime\n") + append("\tpresetHandle : $presetHandle\n") + append("\tsystemMode : $systemMode\n") + append("\tcoolingSetpoint : $coolingSetpoint\n") + append("\theatingSetpoint : $heatingSetpoint\n") + append("}\n") + } + + fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { + tlvWriter.apply { + startStructure(tlvTag) + put(ContextSpecificTag(TAG_DAY_OF_WEEK), dayOfWeek) + put(ContextSpecificTag(TAG_TRANSITION_TIME), transitionTime) + if (presetHandle.isPresent) { + val optpresetHandle = presetHandle.get() + put(ContextSpecificTag(TAG_PRESET_HANDLE), optpresetHandle) + } + if (systemMode.isPresent) { + val optsystemMode = systemMode.get() + put(ContextSpecificTag(TAG_SYSTEM_MODE), optsystemMode) + } + if (coolingSetpoint.isPresent) { + val optcoolingSetpoint = coolingSetpoint.get() + put(ContextSpecificTag(TAG_COOLING_SETPOINT), optcoolingSetpoint) + } + if (heatingSetpoint.isPresent) { + val optheatingSetpoint = heatingSetpoint.get() + put(ContextSpecificTag(TAG_HEATING_SETPOINT), optheatingSetpoint) + } + endStructure() + } + } + + companion object { + private const val TAG_DAY_OF_WEEK = 0 + private const val TAG_TRANSITION_TIME = 1 + private const val TAG_PRESET_HANDLE = 2 + private const val TAG_SYSTEM_MODE = 3 + private const val TAG_COOLING_SETPOINT = 4 + private const val TAG_HEATING_SETPOINT = 5 + + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThermostatClusterScheduleTransitionStruct { + tlvReader.enterStructure(tlvTag) + val dayOfWeek = tlvReader.getUInt(ContextSpecificTag(TAG_DAY_OF_WEEK)) + val transitionTime = tlvReader.getUShort(ContextSpecificTag(TAG_TRANSITION_TIME)) + val presetHandle = if (tlvReader.isNextTag(ContextSpecificTag(TAG_PRESET_HANDLE))) { + Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_PRESET_HANDLE))) + } else { + Optional.empty() + } + val systemMode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_SYSTEM_MODE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_SYSTEM_MODE))) + } else { + Optional.empty() + } + val coolingSetpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_SETPOINT))) { + Optional.of(tlvReader.getShort(ContextSpecificTag(TAG_COOLING_SETPOINT))) + } else { + Optional.empty() + } + val heatingSetpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SETPOINT))) { + Optional.of(tlvReader.getShort(ContextSpecificTag(TAG_HEATING_SETPOINT))) + } else { + Optional.empty() + } + + tlvReader.exitContainer() + + return ThermostatClusterScheduleTransitionStruct(dayOfWeek, transitionTime, presetHandle, systemMode, coolingSetpoint, heatingSetpoint) + } + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleTypeStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleTypeStruct.kt new file mode 100644 index 00000000000000..1358c627a7b8d9 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleTypeStruct.kt @@ -0,0 +1,66 @@ +/* + * + * Copyright (c) 2023 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package matter.devicecontroller.cluster.structs + +import java.util.Optional +import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag +import matter.tlv.ContextSpecificTag +import matter.tlv.Tag +import matter.tlv.TlvReader +import matter.tlv.TlvWriter + +class ThermostatClusterScheduleTypeStruct( + val systemMode: UInt, + val numberOfSchedules: UByte, + val scheduleTypeFeatures: UInt +) { + override fun toString(): String = buildString { + append("ThermostatClusterScheduleTypeStruct {\n") + append("\tsystemMode : $systemMode\n") + append("\tnumberOfSchedules : $numberOfSchedules\n") + append("\tscheduleTypeFeatures : $scheduleTypeFeatures\n") + append("}\n") + } + + fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { + tlvWriter.apply { + startStructure(tlvTag) + put(ContextSpecificTag(TAG_SYSTEM_MODE), systemMode) + put(ContextSpecificTag(TAG_NUMBER_OF_SCHEDULES), numberOfSchedules) + put(ContextSpecificTag(TAG_SCHEDULE_TYPE_FEATURES), scheduleTypeFeatures) + endStructure() + } + } + + companion object { + private const val TAG_SYSTEM_MODE = 0 + private const val TAG_NUMBER_OF_SCHEDULES = 1 + private const val TAG_SCHEDULE_TYPE_FEATURES = 2 + + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThermostatClusterScheduleTypeStruct { + tlvReader.enterStructure(tlvTag) + val systemMode = tlvReader.getUInt(ContextSpecificTag(TAG_SYSTEM_MODE)) + val numberOfSchedules = tlvReader.getUByte(ContextSpecificTag(TAG_NUMBER_OF_SCHEDULES)) + val scheduleTypeFeatures = tlvReader.getUInt(ContextSpecificTag(TAG_SCHEDULE_TYPE_FEATURES)) + + tlvReader.exitContainer() + + return ThermostatClusterScheduleTypeStruct(systemMode, numberOfSchedules, scheduleTypeFeatures) + } + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt new file mode 100644 index 00000000000000..4d03ed72eb9f16 --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt @@ -0,0 +1,66 @@ +/* + * + * Copyright (c) 2023 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package matter.devicecontroller.cluster.structs + +import java.util.Optional +import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag +import matter.tlv.ContextSpecificTag +import matter.tlv.Tag +import matter.tlv.TlvReader +import matter.tlv.TlvWriter + +class ThermostatClusterThermostatScheduleTransitionStruct( + val transitionTime: UShort, + val heatSetpoint: Short, + val coolSetpoint: Short +) { + override fun toString(): String = buildString { + append("ThermostatClusterThermostatScheduleTransitionStruct {\n") + append("\ttransitionTime : $transitionTime\n") + append("\theatSetpoint : $heatSetpoint\n") + append("\tcoolSetpoint : $coolSetpoint\n") + append("}\n") + } + + fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { + tlvWriter.apply { + startStructure(tlvTag) + put(ContextSpecificTag(TAG_TRANSITION_TIME), transitionTime) + put(ContextSpecificTag(TAG_HEAT_SETPOINT), heatSetpoint) + put(ContextSpecificTag(TAG_COOL_SETPOINT), coolSetpoint) + endStructure() + } + } + + companion object { + private const val TAG_TRANSITION_TIME = 0 + private const val TAG_HEAT_SETPOINT = 1 + private const val TAG_COOL_SETPOINT = 2 + + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThermostatClusterThermostatScheduleTransitionStruct { + tlvReader.enterStructure(tlvTag) + val transitionTime = tlvReader.getUShort(ContextSpecificTag(TAG_TRANSITION_TIME)) + val heatSetpoint = tlvReader.getShort(ContextSpecificTag(TAG_HEAT_SETPOINT)) + val coolSetpoint = tlvReader.getShort(ContextSpecificTag(TAG_COOL_SETPOINT)) + + tlvReader.exitContainer() + + return ThermostatClusterThermostatScheduleTransitionStruct(transitionTime, heatSetpoint, coolSetpoint) + } + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt index 001698e66b5dce..4afbcae243df05 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -102,10 +104,7 @@ class ThreadNetworkDiagnosticsClusterNeighborTableStruct( private const val TAG_FULL_NETWORK_DATA = 12 private const val TAG_IS_CHILD = 13 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): ThreadNetworkDiagnosticsClusterNeighborTableStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThreadNetworkDiagnosticsClusterNeighborTableStruct { tlvReader.enterStructure(tlvTag) val extAddress = tlvReader.getULong(ContextSpecificTag(TAG_EXT_ADDRESS)) val age = tlvReader.getUInt(ContextSpecificTag(TAG_AGE)) @@ -113,45 +112,28 @@ class ThreadNetworkDiagnosticsClusterNeighborTableStruct( val linkFrameCounter = tlvReader.getUInt(ContextSpecificTag(TAG_LINK_FRAME_COUNTER)) val mleFrameCounter = tlvReader.getUInt(ContextSpecificTag(TAG_MLE_FRAME_COUNTER)) val lqi = tlvReader.getUByte(ContextSpecificTag(TAG_LQI)) - val averageRssi = - if (!tlvReader.isNull()) { - tlvReader.getByte(ContextSpecificTag(TAG_AVERAGE_RSSI)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_AVERAGE_RSSI)) - null - } - val lastRssi = - if (!tlvReader.isNull()) { - tlvReader.getByte(ContextSpecificTag(TAG_LAST_RSSI)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_LAST_RSSI)) - null - } + val averageRssi = if (!tlvReader.isNull()) { + tlvReader.getByte(ContextSpecificTag(TAG_AVERAGE_RSSI)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_AVERAGE_RSSI)) + null + } + val lastRssi = if (!tlvReader.isNull()) { + tlvReader.getByte(ContextSpecificTag(TAG_LAST_RSSI)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_LAST_RSSI)) + null + } val frameErrorRate = tlvReader.getUByte(ContextSpecificTag(TAG_FRAME_ERROR_RATE)) val messageErrorRate = tlvReader.getUByte(ContextSpecificTag(TAG_MESSAGE_ERROR_RATE)) val rxOnWhenIdle = tlvReader.getBoolean(ContextSpecificTag(TAG_RX_ON_WHEN_IDLE)) val fullThreadDevice = tlvReader.getBoolean(ContextSpecificTag(TAG_FULL_THREAD_DEVICE)) val fullNetworkData = tlvReader.getBoolean(ContextSpecificTag(TAG_FULL_NETWORK_DATA)) val isChild = tlvReader.getBoolean(ContextSpecificTag(TAG_IS_CHILD)) - + tlvReader.exitContainer() - return ThreadNetworkDiagnosticsClusterNeighborTableStruct( - extAddress, - age, - rloc16, - linkFrameCounter, - mleFrameCounter, - lqi, - averageRssi, - lastRssi, - frameErrorRate, - messageErrorRate, - rxOnWhenIdle, - fullThreadDevice, - fullNetworkData, - isChild - ) + return ThreadNetworkDiagnosticsClusterNeighborTableStruct(extAddress, age, rloc16, linkFrameCounter, mleFrameCounter, lqi, averageRssi, lastRssi, frameErrorRate, messageErrorRate, rxOnWhenIdle, fullThreadDevice, fullNetworkData, isChild) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt index 7aa8d606fbcc21..d43bb740c19060 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -86,45 +88,24 @@ class ThreadNetworkDiagnosticsClusterOperationalDatasetComponents( private const val TAG_SECURITY_POLICY_PRESENT = 10 private const val TAG_CHANNEL_MASK_PRESENT = 11 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): ThreadNetworkDiagnosticsClusterOperationalDatasetComponents { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThreadNetworkDiagnosticsClusterOperationalDatasetComponents { tlvReader.enterStructure(tlvTag) - val activeTimestampPresent = - tlvReader.getBoolean(ContextSpecificTag(TAG_ACTIVE_TIMESTAMP_PRESENT)) - val pendingTimestampPresent = - tlvReader.getBoolean(ContextSpecificTag(TAG_PENDING_TIMESTAMP_PRESENT)) + val activeTimestampPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_ACTIVE_TIMESTAMP_PRESENT)) + val pendingTimestampPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_PENDING_TIMESTAMP_PRESENT)) val masterKeyPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_MASTER_KEY_PRESENT)) val networkNamePresent = tlvReader.getBoolean(ContextSpecificTag(TAG_NETWORK_NAME_PRESENT)) - val extendedPanIdPresent = - tlvReader.getBoolean(ContextSpecificTag(TAG_EXTENDED_PAN_ID_PRESENT)) - val meshLocalPrefixPresent = - tlvReader.getBoolean(ContextSpecificTag(TAG_MESH_LOCAL_PREFIX_PRESENT)) + val extendedPanIdPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_EXTENDED_PAN_ID_PRESENT)) + val meshLocalPrefixPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_MESH_LOCAL_PREFIX_PRESENT)) val delayPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_DELAY_PRESENT)) val panIdPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_PAN_ID_PRESENT)) val channelPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_CHANNEL_PRESENT)) val pskcPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_PSKC_PRESENT)) - val securityPolicyPresent = - tlvReader.getBoolean(ContextSpecificTag(TAG_SECURITY_POLICY_PRESENT)) + val securityPolicyPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_SECURITY_POLICY_PRESENT)) val channelMaskPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_CHANNEL_MASK_PRESENT)) - + tlvReader.exitContainer() - return ThreadNetworkDiagnosticsClusterOperationalDatasetComponents( - activeTimestampPresent, - pendingTimestampPresent, - masterKeyPresent, - networkNamePresent, - extendedPanIdPresent, - meshLocalPrefixPresent, - delayPresent, - panIdPresent, - channelPresent, - pskcPresent, - securityPolicyPresent, - channelMaskPresent - ) + return ThreadNetworkDiagnosticsClusterOperationalDatasetComponents(activeTimestampPresent, pendingTimestampPresent, masterKeyPresent, networkNamePresent, extendedPanIdPresent, meshLocalPrefixPresent, delayPresent, panIdPresent, channelPresent, pskcPresent, securityPolicyPresent, channelMaskPresent) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt index 58a9599025b985..1ad60c80e2b440 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -78,10 +80,7 @@ class ThreadNetworkDiagnosticsClusterRouteTableStruct( private const val TAG_ALLOCATED = 8 private const val TAG_LINK_ESTABLISHED = 9 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): ThreadNetworkDiagnosticsClusterRouteTableStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThreadNetworkDiagnosticsClusterRouteTableStruct { tlvReader.enterStructure(tlvTag) val extAddress = tlvReader.getULong(ContextSpecificTag(TAG_EXT_ADDRESS)) val rloc16 = tlvReader.getUShort(ContextSpecificTag(TAG_RLOC16)) @@ -93,21 +92,10 @@ class ThreadNetworkDiagnosticsClusterRouteTableStruct( val age = tlvReader.getUByte(ContextSpecificTag(TAG_AGE)) val allocated = tlvReader.getBoolean(ContextSpecificTag(TAG_ALLOCATED)) val linkEstablished = tlvReader.getBoolean(ContextSpecificTag(TAG_LINK_ESTABLISHED)) - + tlvReader.exitContainer() - return ThreadNetworkDiagnosticsClusterRouteTableStruct( - extAddress, - rloc16, - routerId, - nextHop, - pathCost, - LQIIn, - LQIOut, - age, - allocated, - linkEstablished - ) + return ThreadNetworkDiagnosticsClusterRouteTableStruct(extAddress, rloc16, routerId, nextHop, pathCost, LQIIn, LQIOut, age, allocated, linkEstablished) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterSecurityPolicy.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterSecurityPolicy.kt index 313ac3dda11319..008341fa85d4aa 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterSecurityPolicy.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterSecurityPolicy.kt @@ -16,13 +16,18 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ThreadNetworkDiagnosticsClusterSecurityPolicy(val rotationTime: UShort, val flags: UShort) { +class ThreadNetworkDiagnosticsClusterSecurityPolicy( + val rotationTime: UShort, + val flags: UShort +) { override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterSecurityPolicy {\n") append("\trotationTime : $rotationTime\n") @@ -47,7 +52,7 @@ class ThreadNetworkDiagnosticsClusterSecurityPolicy(val rotationTime: UShort, va tlvReader.enterStructure(tlvTag) val rotationTime = tlvReader.getUShort(ContextSpecificTag(TAG_ROTATION_TIME)) val flags = tlvReader.getUShort(ContextSpecificTag(TAG_FLAGS)) - + tlvReader.exitContainer() return ThreadNetworkDiagnosticsClusterSecurityPolicy(rotationTime, flags) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterDSTOffsetStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterDSTOffsetStruct.kt index a3b6fd3d55188f..8792079c045c9a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterDSTOffsetStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterDSTOffsetStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -58,14 +60,13 @@ class TimeSynchronizationClusterDSTOffsetStruct( tlvReader.enterStructure(tlvTag) val offset = tlvReader.getInt(ContextSpecificTag(TAG_OFFSET)) val validStarting = tlvReader.getULong(ContextSpecificTag(TAG_VALID_STARTING)) - val validUntil = - if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_VALID_UNTIL)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_VALID_UNTIL)) - null - } - + val validUntil = if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_VALID_UNTIL)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_VALID_UNTIL)) + null + } + tlvReader.exitContainer() return TimeSynchronizationClusterDSTOffsetStruct(offset, validStarting, validUntil) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.kt index 152f42081f7ab8..282d123e08ad0c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -46,14 +48,11 @@ class TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct( private const val TAG_NODE_I_D = 0 private const val TAG_ENDPOINT = 1 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct { tlvReader.enterStructure(tlvTag) val nodeID = tlvReader.getULong(ContextSpecificTag(TAG_NODE_I_D)) val endpoint = tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT)) - + tlvReader.exitContainer() return TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct(nodeID, endpoint) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTimeZoneStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTimeZoneStruct.kt index 4dd53317007f70..c23994e02e879e 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTimeZoneStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTimeZoneStruct.kt @@ -18,6 +18,7 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -58,13 +59,12 @@ class TimeSynchronizationClusterTimeZoneStruct( tlvReader.enterStructure(tlvTag) val offset = tlvReader.getInt(ContextSpecificTag(TAG_OFFSET)) val validAt = tlvReader.getULong(ContextSpecificTag(TAG_VALID_AT)) - val name = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - + val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + tlvReader.exitContainer() return TimeSynchronizationClusterTimeZoneStruct(offset, validAt, name) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTrustedTimeSourceStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTrustedTimeSourceStruct.kt index 034d6d0d7e21e3..fdcf29e9b8f08e 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTrustedTimeSourceStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTrustedTimeSourceStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -50,15 +52,12 @@ class TimeSynchronizationClusterTrustedTimeSourceStruct( private const val TAG_NODE_I_D = 1 private const val TAG_ENDPOINT = 2 - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): TimeSynchronizationClusterTrustedTimeSourceStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TimeSynchronizationClusterTrustedTimeSourceStruct { tlvReader.enterStructure(tlvTag) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) val nodeID = tlvReader.getULong(ContextSpecificTag(TAG_NODE_I_D)) val endpoint = tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT)) - + tlvReader.exitContainer() return TimeSynchronizationClusterTrustedTimeSourceStruct(fabricIndex, nodeID, endpoint) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterDoubleNestedStructList.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterDoubleNestedStructList.kt index 546255c64a2d1b..c7616a5cd39ad2 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterDoubleNestedStructList.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterDoubleNestedStructList.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -23,7 +24,9 @@ import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class UnitTestingClusterDoubleNestedStructList(val a: List) { +class UnitTestingClusterDoubleNestedStructList( + val a: List +) { override fun toString(): String = buildString { append("UnitTestingClusterDoubleNestedStructList {\n") append("\ta : $a\n") @@ -47,15 +50,14 @@ class UnitTestingClusterDoubleNestedStructList(val a: List { - tlvReader.enterArray(ContextSpecificTag(TAG_A)) - while (!tlvReader.isEndOfContainer()) { - add(UnitTestingClusterNestedStructList.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val a = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_A)) + while(!tlvReader.isEndOfContainer()) { + add(UnitTestingClusterNestedStructList.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return UnitTestingClusterDoubleNestedStructList(a) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStruct.kt index 0891c3106fbadf..5615227baf3328 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -55,7 +57,7 @@ class UnitTestingClusterNestedStruct( val a = tlvReader.getUByte(ContextSpecificTag(TAG_A)) val b = tlvReader.getBoolean(ContextSpecificTag(TAG_B)) val c = UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_C), tlvReader) - + tlvReader.exitContainer() return UnitTestingClusterNestedStruct(a, b, c) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStructList.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStructList.kt index b22100fdf31dda..430acf4d724e99 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStructList.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStructList.kt @@ -16,6 +16,7 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -88,39 +89,35 @@ class UnitTestingClusterNestedStructList( val a = tlvReader.getUByte(ContextSpecificTag(TAG_A)) val b = tlvReader.getBoolean(ContextSpecificTag(TAG_B)) val c = UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_C), tlvReader) - val d = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_D)) - while (!tlvReader.isEndOfContainer()) { - add(UnitTestingClusterSimpleStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - val e = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_E)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val f = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_F)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getByteArray(AnonymousTag)) - } - tlvReader.exitContainer() - } - val g = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_G)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUByte(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val d = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_D)) + while(!tlvReader.isEndOfContainer()) { + add(UnitTestingClusterSimpleStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + val e = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_E)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val f = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_F)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getByteArray(AnonymousTag)) + } + tlvReader.exitContainer() + } + val g = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_G)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUByte(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return UnitTestingClusterNestedStructList(a, b, c, d, e, f, g) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNullablesAndOptionalsStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNullablesAndOptionalsStruct.kt index 5098411f07e58d..4dac2d5c0a12ac 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNullablesAndOptionalsStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNullablesAndOptionalsStruct.kt @@ -69,9 +69,9 @@ class UnitTestingClusterNullablesAndOptionalsStruct( } if (nullableOptionalInt != null) { if (nullableOptionalInt.isPresent) { - val optnullableOptionalInt = nullableOptionalInt.get() - put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT), optnullableOptionalInt) - } + val optnullableOptionalInt = nullableOptionalInt.get() + put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT), optnullableOptionalInt) + } } else { putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT)) } @@ -86,9 +86,9 @@ class UnitTestingClusterNullablesAndOptionalsStruct( } if (nullableOptionalString != null) { if (nullableOptionalString.isPresent) { - val optnullableOptionalString = nullableOptionalString.get() - put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING), optnullableOptionalString) - } + val optnullableOptionalString = nullableOptionalString.get() + put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING), optnullableOptionalString) + } } else { putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING)) } @@ -103,38 +103,38 @@ class UnitTestingClusterNullablesAndOptionalsStruct( } if (nullableOptionalStruct != null) { if (nullableOptionalStruct.isPresent) { - val optnullableOptionalStruct = nullableOptionalStruct.get() - optnullableOptionalStruct.toTlv(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT), this) - } + val optnullableOptionalStruct = nullableOptionalStruct.get() + optnullableOptionalStruct.toTlv(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT), this) + } } else { putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT)) } if (nullableList != null) { startArray(ContextSpecificTag(TAG_NULLABLE_LIST)) - for (item in nullableList.iterator()) { - put(AnonymousTag, item) - } - endArray() + for (item in nullableList.iterator()) { + put(AnonymousTag, item) + } + endArray() } else { putNull(ContextSpecificTag(TAG_NULLABLE_LIST)) } if (optionalList.isPresent) { val optoptionalList = optionalList.get() startArray(ContextSpecificTag(TAG_OPTIONAL_LIST)) - for (item in optoptionalList.iterator()) { - put(AnonymousTag, item) - } - endArray() + for (item in optoptionalList.iterator()) { + put(AnonymousTag, item) + } + endArray() } if (nullableOptionalList != null) { if (nullableOptionalList.isPresent) { - val optnullableOptionalList = nullableOptionalList.get() - startArray(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) - for (item in optnullableOptionalList.iterator()) { - put(AnonymousTag, item) - } - endArray() - } + val optnullableOptionalList = nullableOptionalList.get() + startArray(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) + for (item in optnullableOptionalList.iterator()) { + put(AnonymousTag, item) + } + endArray() + } } else { putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) } @@ -158,151 +158,112 @@ class UnitTestingClusterNullablesAndOptionalsStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterNullablesAndOptionalsStruct { tlvReader.enterStructure(tlvTag) - val nullableInt = - if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_NULLABLE_INT)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_INT)) - null - } - val optionalInt = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_INT))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_OPTIONAL_INT))) - } else { - Optional.empty() - } - val nullableOptionalInt = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT)) - null - } - val nullableString = - if (!tlvReader.isNull()) { - tlvReader.getString(ContextSpecificTag(TAG_NULLABLE_STRING)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_STRING)) - null - } - val optionalString = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_STRING))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPTIONAL_STRING))) - } else { - Optional.empty() - } - val nullableOptionalString = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING)) - null - } - val nullableStruct = - if (!tlvReader.isNull()) { - UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_NULLABLE_STRUCT), tlvReader) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_STRUCT)) - null - } - val optionalStruct = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_STRUCT))) { - Optional.of( - UnitTestingClusterSimpleStruct.fromTlv( - ContextSpecificTag(TAG_OPTIONAL_STRUCT), - tlvReader - ) - ) - } else { - Optional.empty() - } - val nullableOptionalStruct = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT))) { - Optional.of( - UnitTestingClusterSimpleStruct.fromTlv( - ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT), - tlvReader - ) - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT)) - null - } - val nullableList = - if (!tlvReader.isNull()) { - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_NULLABLE_LIST)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_LIST)) - null - } - val optionalList = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_LIST))) { - Optional.of( - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_OPTIONAL_LIST)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - ) - } else { - Optional.empty() - } - val nullableOptionalList = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST))) { - Optional.of( - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) - null - } - + val nullableInt = if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_NULLABLE_INT)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_INT)) + null + } + val optionalInt = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_INT))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_OPTIONAL_INT))) + } else { + Optional.empty() + } + val nullableOptionalInt = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT)) + null + } + val nullableString = if (!tlvReader.isNull()) { + tlvReader.getString(ContextSpecificTag(TAG_NULLABLE_STRING)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_STRING)) + null + } + val optionalString = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_STRING))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPTIONAL_STRING))) + } else { + Optional.empty() + } + val nullableOptionalString = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING)) + null + } + val nullableStruct = if (!tlvReader.isNull()) { + UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_NULLABLE_STRUCT), tlvReader) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_STRUCT)) + null + } + val optionalStruct = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_STRUCT))) { + Optional.of(UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_OPTIONAL_STRUCT), tlvReader)) + } else { + Optional.empty() + } + val nullableOptionalStruct = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT))) { + Optional.of(UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT), tlvReader)) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT)) + null + } + val nullableList = if (!tlvReader.isNull()) { + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_NULLABLE_LIST)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_LIST)) + null + } + val optionalList = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_LIST))) { + Optional.of(buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_OPTIONAL_LIST)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + }) + } else { + Optional.empty() + } + val nullableOptionalList = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST))) { + Optional.of(buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + }) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) + null + } + tlvReader.exitContainer() - return UnitTestingClusterNullablesAndOptionalsStruct( - nullableInt, - optionalInt, - nullableOptionalInt, - nullableString, - optionalString, - nullableOptionalString, - nullableStruct, - optionalStruct, - nullableOptionalStruct, - nullableList, - optionalList, - nullableOptionalList - ) + return UnitTestingClusterNullablesAndOptionalsStruct(nullableInt, optionalInt, nullableOptionalInt, nullableString, optionalString, nullableOptionalString, nullableStruct, optionalStruct, nullableOptionalStruct, nullableList, optionalList, nullableOptionalList) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterSimpleStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterSimpleStruct.kt index 4c1dfe9e93b76e..b197962e305b8d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterSimpleStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterSimpleStruct.kt @@ -16,7 +16,9 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -80,7 +82,7 @@ class UnitTestingClusterSimpleStruct( val f = tlvReader.getUInt(ContextSpecificTag(TAG_F)) val g = tlvReader.getFloat(ContextSpecificTag(TAG_G)) val h = tlvReader.getDouble(ContextSpecificTag(TAG_H)) - + tlvReader.exitContainer() return UnitTestingClusterSimpleStruct(a, b, c, d, e, f, g, h) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestFabricScoped.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestFabricScoped.kt index 0fae66d5d86dc0..85000bae249bc9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestFabricScoped.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestFabricScoped.kt @@ -53,10 +53,7 @@ class UnitTestingClusterTestFabricScoped( put(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U), fabricSensitiveInt8u) if (optionalFabricSensitiveInt8u.isPresent) { val optoptionalFabricSensitiveInt8u = optionalFabricSensitiveInt8u.get() - put( - ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U), - optoptionalFabricSensitiveInt8u - ) + put(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U), optoptionalFabricSensitiveInt8u) } if (nullableFabricSensitiveInt8u != null) { put(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U), nullableFabricSensitiveInt8u) @@ -65,12 +62,9 @@ class UnitTestingClusterTestFabricScoped( } if (nullableOptionalFabricSensitiveInt8u != null) { if (nullableOptionalFabricSensitiveInt8u.isPresent) { - val optnullableOptionalFabricSensitiveInt8u = nullableOptionalFabricSensitiveInt8u.get() - put( - ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U), - optnullableOptionalFabricSensitiveInt8u - ) - } + val optnullableOptionalFabricSensitiveInt8u = nullableOptionalFabricSensitiveInt8u.get() + put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U), optnullableOptionalFabricSensitiveInt8u) + } } else { putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) } @@ -99,63 +93,41 @@ class UnitTestingClusterTestFabricScoped( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterTestFabricScoped { tlvReader.enterStructure(tlvTag) val fabricSensitiveInt8u = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U)) - val optionalFabricSensitiveInt8u = - if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U))) { - Optional.of(tlvReader.getUByte(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U))) - } else { - Optional.empty() - } - val nullableFabricSensitiveInt8u = - if (!tlvReader.isNull()) { - tlvReader.getUByte(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) - null - } - val nullableOptionalFabricSensitiveInt8u = - if (!tlvReader.isNull()) { - if ( - tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) - ) { - Optional.of( - tlvReader.getUByte(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) - ) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) - null - } - val fabricSensitiveCharString = - tlvReader.getString(ContextSpecificTag(TAG_FABRIC_SENSITIVE_CHAR_STRING)) - val fabricSensitiveStruct = - UnitTestingClusterSimpleStruct.fromTlv( - ContextSpecificTag(TAG_FABRIC_SENSITIVE_STRUCT), - tlvReader - ) - val fabricSensitiveInt8uList = - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U_LIST)) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUByte(AnonymousTag)) - } - tlvReader.exitContainer() - } + val optionalFabricSensitiveInt8u = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U))) { + Optional.of(tlvReader.getUByte(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U))) + } else { + Optional.empty() + } + val nullableFabricSensitiveInt8u = if (!tlvReader.isNull()) { + tlvReader.getUByte(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) + null + } + val nullableOptionalFabricSensitiveInt8u = if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U))) { + Optional.of(tlvReader.getUByte(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) + null + } + val fabricSensitiveCharString = tlvReader.getString(ContextSpecificTag(TAG_FABRIC_SENSITIVE_CHAR_STRING)) + val fabricSensitiveStruct = UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_FABRIC_SENSITIVE_STRUCT), tlvReader) + val fabricSensitiveInt8uList = buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U_LIST)) + while(!tlvReader.isEndOfContainer()) { + add(tlvReader.getUByte(AnonymousTag)) + } + tlvReader.exitContainer() + } val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return UnitTestingClusterTestFabricScoped( - fabricSensitiveInt8u, - optionalFabricSensitiveInt8u, - nullableFabricSensitiveInt8u, - nullableOptionalFabricSensitiveInt8u, - fabricSensitiveCharString, - fabricSensitiveStruct, - fabricSensitiveInt8uList, - fabricIndex - ) + return UnitTestingClusterTestFabricScoped(fabricSensitiveInt8u, optionalFabricSensitiveInt8u, nullableFabricSensitiveInt8u, nullableOptionalFabricSensitiveInt8u, fabricSensitiveCharString, fabricSensitiveStruct, fabricSensitiveInt8uList, fabricIndex) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestListStructOctet.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestListStructOctet.kt index 9e49970a89db9c..138940c531aeef 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestListStructOctet.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestListStructOctet.kt @@ -16,13 +16,18 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class UnitTestingClusterTestListStructOctet(val member1: ULong, val member2: ByteArray) { +class UnitTestingClusterTestListStructOctet( + val member1: ULong, + val member2: ByteArray +) { override fun toString(): String = buildString { append("UnitTestingClusterTestListStructOctet {\n") append("\tmember1 : $member1\n") @@ -47,7 +52,7 @@ class UnitTestingClusterTestListStructOctet(val member1: ULong, val member2: Byt tlvReader.enterStructure(tlvTag) val member1 = tlvReader.getULong(ContextSpecificTag(TAG_MEMBER1)) val member2 = tlvReader.getByteArray(ContextSpecificTag(TAG_MEMBER2)) - + tlvReader.exitContainer() return UnitTestingClusterTestListStructOctet(member1, member2) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UserLabelClusterLabelStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UserLabelClusterLabelStruct.kt index ffc34fe8515c2c..e931655e85c169 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UserLabelClusterLabelStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UserLabelClusterLabelStruct.kt @@ -16,13 +16,18 @@ */ package matter.devicecontroller.cluster.structs +import java.util.Optional import matter.devicecontroller.cluster.* +import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class UserLabelClusterLabelStruct(val label: String, val value: String) { +class UserLabelClusterLabelStruct( + val label: String, + val value: String +) { override fun toString(): String = buildString { append("UserLabelClusterLabelStruct {\n") append("\tlabel : $label\n") @@ -47,7 +52,7 @@ class UserLabelClusterLabelStruct(val label: String, val value: String) { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val value = tlvReader.getString(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return UserLabelClusterLabelStruct(label, value) diff --git a/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp b/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp index 578272e2e515c4..ab3b92f9bb873d 100644 --- a/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp +++ b/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp @@ -22735,22 +22735,6 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR value); return value; } - case Attributes::HVACSystemTypeConfiguration::Id: { - using TypeInfo = Attributes::HVACSystemTypeConfiguration::TypeInfo; - TypeInfo::DecodableType cppValue; - *aError = app::DataModel::Decode(aReader, cppValue); - if (*aError != CHIP_NO_ERROR) - { - return nullptr; - } - jobject value; - std::string valueClassName = "java/lang/Integer"; - std::string valueCtorSignature = "(I)V"; - jint jnivalue = static_cast(cppValue); - chip::JniReferences::GetInstance().CreateBoxedObject(valueClassName.c_str(), valueCtorSignature.c_str(), jnivalue, - value); - return value; - } case Attributes::LocalTemperatureCalibration::Id: { using TypeInfo = Attributes::LocalTemperatureCalibration::TypeInfo; TypeInfo::DecodableType cppValue; @@ -22922,7 +22906,7 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR jobject value; std::string valueClassName = "java/lang/Integer"; std::string valueCtorSignature = "(I)V"; - jint jnivalue = static_cast(cppValue); + jint jnivalue = static_cast(cppValue.Raw()); chip::JniReferences::GetInstance().CreateBoxedObject(valueClassName.c_str(), valueCtorSignature.c_str(), jnivalue, value); return value; @@ -22959,6 +22943,22 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR value); return value; } + case Attributes::AlarmMask::Id: { + using TypeInfo = Attributes::AlarmMask::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = app::DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) + { + return nullptr; + } + jobject value; + std::string valueClassName = "java/lang/Integer"; + std::string valueCtorSignature = "(I)V"; + jint jnivalue = static_cast(cppValue.Raw()); + chip::JniReferences::GetInstance().CreateBoxedObject(valueClassName.c_str(), valueCtorSignature.c_str(), jnivalue, + value); + return value; + } case Attributes::ThermostatRunningMode::Id: { using TypeInfo = Attributes::ThermostatRunningMode::TypeInfo; TypeInfo::DecodableType cppValue; @@ -23073,7 +23073,7 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR jobject value; std::string valueClassName = "java/lang/Integer"; std::string valueCtorSignature = "(I)V"; - jint jnivalue = static_cast(cppValue); + jint jnivalue = static_cast(cppValue.Raw()); chip::JniReferences::GetInstance().CreateBoxedObject(valueClassName.c_str(), valueCtorSignature.c_str(), jnivalue, value); return value; @@ -23089,7 +23089,7 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR jobject value; std::string valueClassName = "java/lang/Integer"; std::string valueCtorSignature = "(I)V"; - jint jnivalue = static_cast(cppValue); + jint jnivalue = static_cast(cppValue.Raw()); chip::JniReferences::GetInstance().CreateBoxedObject(valueClassName.c_str(), valueCtorSignature.c_str(), jnivalue, value); return value; @@ -23378,7 +23378,7 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR jobject value; std::string valueClassName = "java/lang/Long"; std::string valueCtorSignature = "(J)V"; - jlong jnivalue = static_cast(cppValue); + jlong jnivalue = static_cast(cppValue.Raw()); chip::JniReferences::GetInstance().CreateBoxedObject(valueClassName.c_str(), valueCtorSignature.c_str(), jnivalue, value); return value; @@ -23422,8 +23422,146 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR } return value; } - case Attributes::ACCapacityformat::Id: { - using TypeInfo = Attributes::ACCapacityformat::TypeInfo; + case Attributes::ACCapacityFormat::Id: { + using TypeInfo = Attributes::ACCapacityFormat::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = app::DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) + { + return nullptr; + } + jobject value; + std::string valueClassName = "java/lang/Integer"; + std::string valueCtorSignature = "(I)V"; + jint jnivalue = static_cast(cppValue); + chip::JniReferences::GetInstance().CreateBoxedObject(valueClassName.c_str(), valueCtorSignature.c_str(), jnivalue, + value); + return value; + } + case Attributes::PresetTypes::Id: { + using TypeInfo = Attributes::PresetTypes::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = app::DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) + { + return nullptr; + } + jobject value; + chip::JniReferences::GetInstance().CreateArrayList(value); + + auto iter_value_0 = cppValue.begin(); + while (iter_value_0.Next()) + { + auto & entry_0 = iter_value_0.GetValue(); + jobject newElement_0; + jobject newElement_0_presetScenario; + std::string newElement_0_presetScenarioClassName = "java/lang/Integer"; + std::string newElement_0_presetScenarioCtorSignature = "(I)V"; + jint jninewElement_0_presetScenario = static_cast(entry_0.presetScenario); + chip::JniReferences::GetInstance().CreateBoxedObject( + newElement_0_presetScenarioClassName.c_str(), newElement_0_presetScenarioCtorSignature.c_str(), + jninewElement_0_presetScenario, newElement_0_presetScenario); + jobject newElement_0_numberOfPresets; + std::string newElement_0_numberOfPresetsClassName = "java/lang/Integer"; + std::string newElement_0_numberOfPresetsCtorSignature = "(I)V"; + jint jninewElement_0_numberOfPresets = static_cast(entry_0.numberOfPresets); + chip::JniReferences::GetInstance().CreateBoxedObject( + newElement_0_numberOfPresetsClassName.c_str(), newElement_0_numberOfPresetsCtorSignature.c_str(), + jninewElement_0_numberOfPresets, newElement_0_numberOfPresets); + jobject newElement_0_presetTypeFeatures; + std::string newElement_0_presetTypeFeaturesClassName = "java/lang/Integer"; + std::string newElement_0_presetTypeFeaturesCtorSignature = "(I)V"; + jint jninewElement_0_presetTypeFeatures = static_cast(entry_0.presetTypeFeatures.Raw()); + chip::JniReferences::GetInstance().CreateBoxedObject( + newElement_0_presetTypeFeaturesClassName.c_str(), newElement_0_presetTypeFeaturesCtorSignature.c_str(), + jninewElement_0_presetTypeFeatures, newElement_0_presetTypeFeatures); + + jclass presetTypeStructStructClass_1; + err = chip::JniReferences::GetInstance().GetClassRef( + env, "chip/devicecontroller/ChipStructs$ThermostatClusterPresetTypeStruct", presetTypeStructStructClass_1); + if (err != CHIP_NO_ERROR) + { + ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterPresetTypeStruct"); + return nullptr; + } + jmethodID presetTypeStructStructCtor_1 = env->GetMethodID( + presetTypeStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V"); + if (presetTypeStructStructCtor_1 == nullptr) + { + ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterPresetTypeStruct constructor"); + return nullptr; + } + + newElement_0 = + env->NewObject(presetTypeStructStructClass_1, presetTypeStructStructCtor_1, newElement_0_presetScenario, + newElement_0_numberOfPresets, newElement_0_presetTypeFeatures); + chip::JniReferences::GetInstance().AddToList(value, newElement_0); + } + return value; + } + case Attributes::ScheduleTypes::Id: { + using TypeInfo = Attributes::ScheduleTypes::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = app::DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) + { + return nullptr; + } + jobject value; + chip::JniReferences::GetInstance().CreateArrayList(value); + + auto iter_value_0 = cppValue.begin(); + while (iter_value_0.Next()) + { + auto & entry_0 = iter_value_0.GetValue(); + jobject newElement_0; + jobject newElement_0_systemMode; + std::string newElement_0_systemModeClassName = "java/lang/Integer"; + std::string newElement_0_systemModeCtorSignature = "(I)V"; + jint jninewElement_0_systemMode = static_cast(entry_0.systemMode); + chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_systemModeClassName.c_str(), + newElement_0_systemModeCtorSignature.c_str(), + jninewElement_0_systemMode, newElement_0_systemMode); + jobject newElement_0_numberOfSchedules; + std::string newElement_0_numberOfSchedulesClassName = "java/lang/Integer"; + std::string newElement_0_numberOfSchedulesCtorSignature = "(I)V"; + jint jninewElement_0_numberOfSchedules = static_cast(entry_0.numberOfSchedules); + chip::JniReferences::GetInstance().CreateBoxedObject( + newElement_0_numberOfSchedulesClassName.c_str(), newElement_0_numberOfSchedulesCtorSignature.c_str(), + jninewElement_0_numberOfSchedules, newElement_0_numberOfSchedules); + jobject newElement_0_scheduleTypeFeatures; + std::string newElement_0_scheduleTypeFeaturesClassName = "java/lang/Integer"; + std::string newElement_0_scheduleTypeFeaturesCtorSignature = "(I)V"; + jint jninewElement_0_scheduleTypeFeatures = static_cast(entry_0.scheduleTypeFeatures.Raw()); + chip::JniReferences::GetInstance().CreateBoxedObject( + newElement_0_scheduleTypeFeaturesClassName.c_str(), newElement_0_scheduleTypeFeaturesCtorSignature.c_str(), + jninewElement_0_scheduleTypeFeatures, newElement_0_scheduleTypeFeatures); + + jclass scheduleTypeStructStructClass_1; + err = chip::JniReferences::GetInstance().GetClassRef( + env, "chip/devicecontroller/ChipStructs$ThermostatClusterScheduleTypeStruct", scheduleTypeStructStructClass_1); + if (err != CHIP_NO_ERROR) + { + ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterScheduleTypeStruct"); + return nullptr; + } + jmethodID scheduleTypeStructStructCtor_1 = env->GetMethodID( + scheduleTypeStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V"); + if (scheduleTypeStructStructCtor_1 == nullptr) + { + ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterScheduleTypeStruct constructor"); + return nullptr; + } + + newElement_0 = + env->NewObject(scheduleTypeStructStructClass_1, scheduleTypeStructStructCtor_1, newElement_0_systemMode, + newElement_0_numberOfSchedules, newElement_0_scheduleTypeFeatures); + chip::JniReferences::GetInstance().AddToList(value, newElement_0); + } + return value; + } + case Attributes::NumberOfPresets::Id: { + using TypeInfo = Attributes::NumberOfPresets::TypeInfo; TypeInfo::DecodableType cppValue; *aError = app::DataModel::Decode(aReader, cppValue); if (*aError != CHIP_NO_ERROR) @@ -23438,6 +23576,590 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR value); return value; } + case Attributes::NumberOfSchedules::Id: { + using TypeInfo = Attributes::NumberOfSchedules::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = app::DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) + { + return nullptr; + } + jobject value; + std::string valueClassName = "java/lang/Integer"; + std::string valueCtorSignature = "(I)V"; + jint jnivalue = static_cast(cppValue); + chip::JniReferences::GetInstance().CreateBoxedObject(valueClassName.c_str(), valueCtorSignature.c_str(), jnivalue, + value); + return value; + } + case Attributes::NumberOfScheduleTransitions::Id: { + using TypeInfo = Attributes::NumberOfScheduleTransitions::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = app::DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) + { + return nullptr; + } + jobject value; + std::string valueClassName = "java/lang/Integer"; + std::string valueCtorSignature = "(I)V"; + jint jnivalue = static_cast(cppValue); + chip::JniReferences::GetInstance().CreateBoxedObject(valueClassName.c_str(), valueCtorSignature.c_str(), jnivalue, + value); + return value; + } + case Attributes::NumberOfScheduleTransitionPerDay::Id: { + using TypeInfo = Attributes::NumberOfScheduleTransitionPerDay::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = app::DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) + { + return nullptr; + } + jobject value; + if (cppValue.IsNull()) + { + value = nullptr; + } + else + { + std::string valueClassName = "java/lang/Integer"; + std::string valueCtorSignature = "(I)V"; + jint jnivalue = static_cast(cppValue.Value()); + chip::JniReferences::GetInstance().CreateBoxedObject(valueClassName.c_str(), valueCtorSignature.c_str(), + jnivalue, value); + } + return value; + } + case Attributes::ActivePresetHandle::Id: { + using TypeInfo = Attributes::ActivePresetHandle::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = app::DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) + { + return nullptr; + } + jobject value; + if (cppValue.IsNull()) + { + value = nullptr; + } + else + { + jbyteArray valueByteArray = env->NewByteArray(static_cast(cppValue.Value().size())); + env->SetByteArrayRegion(valueByteArray, 0, static_cast(cppValue.Value().size()), + reinterpret_cast(cppValue.Value().data())); + value = valueByteArray; + } + return value; + } + case Attributes::ActiveScheduleHandle::Id: { + using TypeInfo = Attributes::ActiveScheduleHandle::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = app::DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) + { + return nullptr; + } + jobject value; + if (cppValue.IsNull()) + { + value = nullptr; + } + else + { + jbyteArray valueByteArray = env->NewByteArray(static_cast(cppValue.Value().size())); + env->SetByteArrayRegion(valueByteArray, 0, static_cast(cppValue.Value().size()), + reinterpret_cast(cppValue.Value().data())); + value = valueByteArray; + } + return value; + } + case Attributes::Presets::Id: { + using TypeInfo = Attributes::Presets::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = app::DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) + { + return nullptr; + } + jobject value; + chip::JniReferences::GetInstance().CreateArrayList(value); + + auto iter_value_0 = cppValue.begin(); + while (iter_value_0.Next()) + { + auto & entry_0 = iter_value_0.GetValue(); + jobject newElement_0; + jobject newElement_0_presetHandle; + if (entry_0.presetHandle.IsNull()) + { + newElement_0_presetHandle = nullptr; + } + else + { + jbyteArray newElement_0_presetHandleByteArray = + env->NewByteArray(static_cast(entry_0.presetHandle.Value().size())); + env->SetByteArrayRegion(newElement_0_presetHandleByteArray, 0, + static_cast(entry_0.presetHandle.Value().size()), + reinterpret_cast(entry_0.presetHandle.Value().data())); + newElement_0_presetHandle = newElement_0_presetHandleByteArray; + } + jobject newElement_0_presetScenario; + std::string newElement_0_presetScenarioClassName = "java/lang/Integer"; + std::string newElement_0_presetScenarioCtorSignature = "(I)V"; + jint jninewElement_0_presetScenario = static_cast(entry_0.presetScenario); + chip::JniReferences::GetInstance().CreateBoxedObject( + newElement_0_presetScenarioClassName.c_str(), newElement_0_presetScenarioCtorSignature.c_str(), + jninewElement_0_presetScenario, newElement_0_presetScenario); + jobject newElement_0_name; + if (!entry_0.name.HasValue()) + { + chip::JniReferences::GetInstance().CreateOptional(nullptr, newElement_0_name); + } + else + { + jobject newElement_0_nameInsideOptional; + if (entry_0.name.Value().IsNull()) + { + newElement_0_nameInsideOptional = nullptr; + } + else + { + LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.name.Value().Value(), + newElement_0_nameInsideOptional)); + } + chip::JniReferences::GetInstance().CreateOptional(newElement_0_nameInsideOptional, newElement_0_name); + } + jobject newElement_0_coolingSetpoint; + if (!entry_0.coolingSetpoint.HasValue()) + { + chip::JniReferences::GetInstance().CreateOptional(nullptr, newElement_0_coolingSetpoint); + } + else + { + jobject newElement_0_coolingSetpointInsideOptional; + std::string newElement_0_coolingSetpointInsideOptionalClassName = "java/lang/Integer"; + std::string newElement_0_coolingSetpointInsideOptionalCtorSignature = "(I)V"; + jint jninewElement_0_coolingSetpointInsideOptional = static_cast(entry_0.coolingSetpoint.Value()); + chip::JniReferences::GetInstance().CreateBoxedObject( + newElement_0_coolingSetpointInsideOptionalClassName.c_str(), + newElement_0_coolingSetpointInsideOptionalCtorSignature.c_str(), + jninewElement_0_coolingSetpointInsideOptional, newElement_0_coolingSetpointInsideOptional); + chip::JniReferences::GetInstance().CreateOptional(newElement_0_coolingSetpointInsideOptional, + newElement_0_coolingSetpoint); + } + jobject newElement_0_heatingSetpoint; + if (!entry_0.heatingSetpoint.HasValue()) + { + chip::JniReferences::GetInstance().CreateOptional(nullptr, newElement_0_heatingSetpoint); + } + else + { + jobject newElement_0_heatingSetpointInsideOptional; + std::string newElement_0_heatingSetpointInsideOptionalClassName = "java/lang/Integer"; + std::string newElement_0_heatingSetpointInsideOptionalCtorSignature = "(I)V"; + jint jninewElement_0_heatingSetpointInsideOptional = static_cast(entry_0.heatingSetpoint.Value()); + chip::JniReferences::GetInstance().CreateBoxedObject( + newElement_0_heatingSetpointInsideOptionalClassName.c_str(), + newElement_0_heatingSetpointInsideOptionalCtorSignature.c_str(), + jninewElement_0_heatingSetpointInsideOptional, newElement_0_heatingSetpointInsideOptional); + chip::JniReferences::GetInstance().CreateOptional(newElement_0_heatingSetpointInsideOptional, + newElement_0_heatingSetpoint); + } + jobject newElement_0_builtIn; + if (entry_0.builtIn.IsNull()) + { + newElement_0_builtIn = nullptr; + } + else + { + std::string newElement_0_builtInClassName = "java/lang/Boolean"; + std::string newElement_0_builtInCtorSignature = "(Z)V"; + jboolean jninewElement_0_builtIn = static_cast(entry_0.builtIn.Value()); + chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_builtInClassName.c_str(), + newElement_0_builtInCtorSignature.c_str(), + jninewElement_0_builtIn, newElement_0_builtIn); + } + + jclass presetStructStructClass_1; + err = chip::JniReferences::GetInstance().GetClassRef( + env, "chip/devicecontroller/ChipStructs$ThermostatClusterPresetStruct", presetStructStructClass_1); + if (err != CHIP_NO_ERROR) + { + ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterPresetStruct"); + return nullptr; + } + jmethodID presetStructStructCtor_1 = env->GetMethodID( + presetStructStructClass_1, "", + "([BLjava/lang/Integer;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/lang/Boolean;)V"); + if (presetStructStructCtor_1 == nullptr) + { + ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterPresetStruct constructor"); + return nullptr; + } + + newElement_0 = env->NewObject(presetStructStructClass_1, presetStructStructCtor_1, newElement_0_presetHandle, + newElement_0_presetScenario, newElement_0_name, newElement_0_coolingSetpoint, + newElement_0_heatingSetpoint, newElement_0_builtIn); + chip::JniReferences::GetInstance().AddToList(value, newElement_0); + } + return value; + } + case Attributes::Schedules::Id: { + using TypeInfo = Attributes::Schedules::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = app::DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) + { + return nullptr; + } + jobject value; + chip::JniReferences::GetInstance().CreateArrayList(value); + + auto iter_value_0 = cppValue.begin(); + while (iter_value_0.Next()) + { + auto & entry_0 = iter_value_0.GetValue(); + jobject newElement_0; + jobject newElement_0_scheduleHandle; + if (entry_0.scheduleHandle.IsNull()) + { + newElement_0_scheduleHandle = nullptr; + } + else + { + jbyteArray newElement_0_scheduleHandleByteArray = + env->NewByteArray(static_cast(entry_0.scheduleHandle.Value().size())); + env->SetByteArrayRegion(newElement_0_scheduleHandleByteArray, 0, + static_cast(entry_0.scheduleHandle.Value().size()), + reinterpret_cast(entry_0.scheduleHandle.Value().data())); + newElement_0_scheduleHandle = newElement_0_scheduleHandleByteArray; + } + jobject newElement_0_systemMode; + std::string newElement_0_systemModeClassName = "java/lang/Integer"; + std::string newElement_0_systemModeCtorSignature = "(I)V"; + jint jninewElement_0_systemMode = static_cast(entry_0.systemMode); + chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_systemModeClassName.c_str(), + newElement_0_systemModeCtorSignature.c_str(), + jninewElement_0_systemMode, newElement_0_systemMode); + jobject newElement_0_name; + if (!entry_0.name.HasValue()) + { + chip::JniReferences::GetInstance().CreateOptional(nullptr, newElement_0_name); + } + else + { + jobject newElement_0_nameInsideOptional; + LogErrorOnFailure( + chip::JniReferences::GetInstance().CharToStringUTF(entry_0.name.Value(), newElement_0_nameInsideOptional)); + chip::JniReferences::GetInstance().CreateOptional(newElement_0_nameInsideOptional, newElement_0_name); + } + jobject newElement_0_presetHandle; + if (!entry_0.presetHandle.HasValue()) + { + chip::JniReferences::GetInstance().CreateOptional(nullptr, newElement_0_presetHandle); + } + else + { + jobject newElement_0_presetHandleInsideOptional; + jbyteArray newElement_0_presetHandleInsideOptionalByteArray = + env->NewByteArray(static_cast(entry_0.presetHandle.Value().size())); + env->SetByteArrayRegion(newElement_0_presetHandleInsideOptionalByteArray, 0, + static_cast(entry_0.presetHandle.Value().size()), + reinterpret_cast(entry_0.presetHandle.Value().data())); + newElement_0_presetHandleInsideOptional = newElement_0_presetHandleInsideOptionalByteArray; + chip::JniReferences::GetInstance().CreateOptional(newElement_0_presetHandleInsideOptional, + newElement_0_presetHandle); + } + jobject newElement_0_transitions; + chip::JniReferences::GetInstance().CreateArrayList(newElement_0_transitions); + + auto iter_newElement_0_transitions_2 = entry_0.transitions.begin(); + while (iter_newElement_0_transitions_2.Next()) + { + auto & entry_2 = iter_newElement_0_transitions_2.GetValue(); + jobject newElement_2; + jobject newElement_2_dayOfWeek; + std::string newElement_2_dayOfWeekClassName = "java/lang/Integer"; + std::string newElement_2_dayOfWeekCtorSignature = "(I)V"; + jint jninewElement_2_dayOfWeek = static_cast(entry_2.dayOfWeek.Raw()); + chip::JniReferences::GetInstance().CreateBoxedObject(newElement_2_dayOfWeekClassName.c_str(), + newElement_2_dayOfWeekCtorSignature.c_str(), + jninewElement_2_dayOfWeek, newElement_2_dayOfWeek); + jobject newElement_2_transitionTime; + std::string newElement_2_transitionTimeClassName = "java/lang/Integer"; + std::string newElement_2_transitionTimeCtorSignature = "(I)V"; + jint jninewElement_2_transitionTime = static_cast(entry_2.transitionTime); + chip::JniReferences::GetInstance().CreateBoxedObject( + newElement_2_transitionTimeClassName.c_str(), newElement_2_transitionTimeCtorSignature.c_str(), + jninewElement_2_transitionTime, newElement_2_transitionTime); + jobject newElement_2_presetHandle; + if (!entry_2.presetHandle.HasValue()) + { + chip::JniReferences::GetInstance().CreateOptional(nullptr, newElement_2_presetHandle); + } + else + { + jobject newElement_2_presetHandleInsideOptional; + jbyteArray newElement_2_presetHandleInsideOptionalByteArray = + env->NewByteArray(static_cast(entry_2.presetHandle.Value().size())); + env->SetByteArrayRegion(newElement_2_presetHandleInsideOptionalByteArray, 0, + static_cast(entry_2.presetHandle.Value().size()), + reinterpret_cast(entry_2.presetHandle.Value().data())); + newElement_2_presetHandleInsideOptional = newElement_2_presetHandleInsideOptionalByteArray; + chip::JniReferences::GetInstance().CreateOptional(newElement_2_presetHandleInsideOptional, + newElement_2_presetHandle); + } + jobject newElement_2_systemMode; + if (!entry_2.systemMode.HasValue()) + { + chip::JniReferences::GetInstance().CreateOptional(nullptr, newElement_2_systemMode); + } + else + { + jobject newElement_2_systemModeInsideOptional; + std::string newElement_2_systemModeInsideOptionalClassName = "java/lang/Integer"; + std::string newElement_2_systemModeInsideOptionalCtorSignature = "(I)V"; + jint jninewElement_2_systemModeInsideOptional = static_cast(entry_2.systemMode.Value()); + chip::JniReferences::GetInstance().CreateBoxedObject( + newElement_2_systemModeInsideOptionalClassName.c_str(), + newElement_2_systemModeInsideOptionalCtorSignature.c_str(), jninewElement_2_systemModeInsideOptional, + newElement_2_systemModeInsideOptional); + chip::JniReferences::GetInstance().CreateOptional(newElement_2_systemModeInsideOptional, + newElement_2_systemMode); + } + jobject newElement_2_coolingSetpoint; + if (!entry_2.coolingSetpoint.HasValue()) + { + chip::JniReferences::GetInstance().CreateOptional(nullptr, newElement_2_coolingSetpoint); + } + else + { + jobject newElement_2_coolingSetpointInsideOptional; + std::string newElement_2_coolingSetpointInsideOptionalClassName = "java/lang/Integer"; + std::string newElement_2_coolingSetpointInsideOptionalCtorSignature = "(I)V"; + jint jninewElement_2_coolingSetpointInsideOptional = static_cast(entry_2.coolingSetpoint.Value()); + chip::JniReferences::GetInstance().CreateBoxedObject( + newElement_2_coolingSetpointInsideOptionalClassName.c_str(), + newElement_2_coolingSetpointInsideOptionalCtorSignature.c_str(), + jninewElement_2_coolingSetpointInsideOptional, newElement_2_coolingSetpointInsideOptional); + chip::JniReferences::GetInstance().CreateOptional(newElement_2_coolingSetpointInsideOptional, + newElement_2_coolingSetpoint); + } + jobject newElement_2_heatingSetpoint; + if (!entry_2.heatingSetpoint.HasValue()) + { + chip::JniReferences::GetInstance().CreateOptional(nullptr, newElement_2_heatingSetpoint); + } + else + { + jobject newElement_2_heatingSetpointInsideOptional; + std::string newElement_2_heatingSetpointInsideOptionalClassName = "java/lang/Integer"; + std::string newElement_2_heatingSetpointInsideOptionalCtorSignature = "(I)V"; + jint jninewElement_2_heatingSetpointInsideOptional = static_cast(entry_2.heatingSetpoint.Value()); + chip::JniReferences::GetInstance().CreateBoxedObject( + newElement_2_heatingSetpointInsideOptionalClassName.c_str(), + newElement_2_heatingSetpointInsideOptionalCtorSignature.c_str(), + jninewElement_2_heatingSetpointInsideOptional, newElement_2_heatingSetpointInsideOptional); + chip::JniReferences::GetInstance().CreateOptional(newElement_2_heatingSetpointInsideOptional, + newElement_2_heatingSetpoint); + } + + jclass scheduleTransitionStructStructClass_3; + err = chip::JniReferences::GetInstance().GetClassRef( + env, "chip/devicecontroller/ChipStructs$ThermostatClusterScheduleTransitionStruct", + scheduleTransitionStructStructClass_3); + if (err != CHIP_NO_ERROR) + { + ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterScheduleTransitionStruct"); + return nullptr; + } + jmethodID scheduleTransitionStructStructCtor_3 = + env->GetMethodID(scheduleTransitionStructStructClass_3, "", + "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/util/Optional;Ljava/util/Optional;Ljava/" + "util/Optional;Ljava/util/Optional;)V"); + if (scheduleTransitionStructStructCtor_3 == nullptr) + { + ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterScheduleTransitionStruct constructor"); + return nullptr; + } + + newElement_2 = + env->NewObject(scheduleTransitionStructStructClass_3, scheduleTransitionStructStructCtor_3, + newElement_2_dayOfWeek, newElement_2_transitionTime, newElement_2_presetHandle, + newElement_2_systemMode, newElement_2_coolingSetpoint, newElement_2_heatingSetpoint); + chip::JniReferences::GetInstance().AddToList(newElement_0_transitions, newElement_2); + } + jobject newElement_0_builtIn; + if (!entry_0.builtIn.HasValue()) + { + chip::JniReferences::GetInstance().CreateOptional(nullptr, newElement_0_builtIn); + } + else + { + jobject newElement_0_builtInInsideOptional; + if (entry_0.builtIn.Value().IsNull()) + { + newElement_0_builtInInsideOptional = nullptr; + } + else + { + std::string newElement_0_builtInInsideOptionalClassName = "java/lang/Boolean"; + std::string newElement_0_builtInInsideOptionalCtorSignature = "(Z)V"; + jboolean jninewElement_0_builtInInsideOptional = static_cast(entry_0.builtIn.Value().Value()); + chip::JniReferences::GetInstance().CreateBoxedObject( + newElement_0_builtInInsideOptionalClassName.c_str(), + newElement_0_builtInInsideOptionalCtorSignature.c_str(), jninewElement_0_builtInInsideOptional, + newElement_0_builtInInsideOptional); + } + chip::JniReferences::GetInstance().CreateOptional(newElement_0_builtInInsideOptional, newElement_0_builtIn); + } + + jclass scheduleStructStructClass_1; + err = chip::JniReferences::GetInstance().GetClassRef( + env, "chip/devicecontroller/ChipStructs$ThermostatClusterScheduleStruct", scheduleStructStructClass_1); + if (err != CHIP_NO_ERROR) + { + ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterScheduleStruct"); + return nullptr; + } + jmethodID scheduleStructStructCtor_1 = env->GetMethodID( + scheduleStructStructClass_1, "", + "([BLjava/lang/Integer;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/ArrayList;Ljava/util/Optional;)V"); + if (scheduleStructStructCtor_1 == nullptr) + { + ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterScheduleStruct constructor"); + return nullptr; + } + + newElement_0 = env->NewObject(scheduleStructStructClass_1, scheduleStructStructCtor_1, newElement_0_scheduleHandle, + newElement_0_systemMode, newElement_0_name, newElement_0_presetHandle, + newElement_0_transitions, newElement_0_builtIn); + chip::JniReferences::GetInstance().AddToList(value, newElement_0); + } + return value; + } + case Attributes::PresetsSchedulesEditable::Id: { + using TypeInfo = Attributes::PresetsSchedulesEditable::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = app::DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) + { + return nullptr; + } + jobject value; + std::string valueClassName = "java/lang/Boolean"; + std::string valueCtorSignature = "(Z)V"; + jboolean jnivalue = static_cast(cppValue); + chip::JniReferences::GetInstance().CreateBoxedObject(valueClassName.c_str(), valueCtorSignature.c_str(), + jnivalue, value); + return value; + } + case Attributes::TemperatureSetpointHoldPolicy::Id: { + using TypeInfo = Attributes::TemperatureSetpointHoldPolicy::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = app::DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) + { + return nullptr; + } + jobject value; + std::string valueClassName = "java/lang/Integer"; + std::string valueCtorSignature = "(I)V"; + jint jnivalue = static_cast(cppValue.Raw()); + chip::JniReferences::GetInstance().CreateBoxedObject(valueClassName.c_str(), valueCtorSignature.c_str(), jnivalue, + value); + return value; + } + case Attributes::SetpointHoldExpiryTimestamp::Id: { + using TypeInfo = Attributes::SetpointHoldExpiryTimestamp::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = app::DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) + { + return nullptr; + } + jobject value; + if (cppValue.IsNull()) + { + value = nullptr; + } + else + { + std::string valueClassName = "java/lang/Long"; + std::string valueCtorSignature = "(J)V"; + jlong jnivalue = static_cast(cppValue.Value()); + chip::JniReferences::GetInstance().CreateBoxedObject(valueClassName.c_str(), valueCtorSignature.c_str(), + jnivalue, value); + } + return value; + } + case Attributes::QueuedPreset::Id: { + using TypeInfo = Attributes::QueuedPreset::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = app::DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) + { + return nullptr; + } + jobject value; + if (cppValue.IsNull()) + { + value = nullptr; + } + else + { + jobject value_presetHandle; + if (cppValue.Value().presetHandle.IsNull()) + { + value_presetHandle = nullptr; + } + else + { + jbyteArray value_presetHandleByteArray = + env->NewByteArray(static_cast(cppValue.Value().presetHandle.Value().size())); + env->SetByteArrayRegion(value_presetHandleByteArray, 0, + static_cast(cppValue.Value().presetHandle.Value().size()), + reinterpret_cast(cppValue.Value().presetHandle.Value().data())); + value_presetHandle = value_presetHandleByteArray; + } + jobject value_transitionTimestamp; + if (cppValue.Value().transitionTimestamp.IsNull()) + { + value_transitionTimestamp = nullptr; + } + else + { + std::string value_transitionTimestampClassName = "java/lang/Long"; + std::string value_transitionTimestampCtorSignature = "(J)V"; + jlong jnivalue_transitionTimestamp = static_cast(cppValue.Value().transitionTimestamp.Value()); + chip::JniReferences::GetInstance().CreateBoxedObject( + value_transitionTimestampClassName.c_str(), value_transitionTimestampCtorSignature.c_str(), + jnivalue_transitionTimestamp, value_transitionTimestamp); + } + + jclass queuedPresetStructStructClass_1; + err = chip::JniReferences::GetInstance().GetClassRef( + env, "chip/devicecontroller/ChipStructs$ThermostatClusterQueuedPresetStruct", queuedPresetStructStructClass_1); + if (err != CHIP_NO_ERROR) + { + ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterQueuedPresetStruct"); + return nullptr; + } + jmethodID queuedPresetStructStructCtor_1 = + env->GetMethodID(queuedPresetStructStructClass_1, "", "([BLjava/lang/Long;)V"); + if (queuedPresetStructStructCtor_1 == nullptr) + { + ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterQueuedPresetStruct constructor"); + return nullptr; + } + + value = env->NewObject(queuedPresetStructStructClass_1, queuedPresetStructStructCtor_1, value_presetHandle, + value_transitionTimestamp); + } + return value; + } case Attributes::GeneratedCommandList::Id: { using TypeInfo = Attributes::GeneratedCommandList::TypeInfo; TypeInfo::DecodableType cppValue; diff --git a/src/controller/java/zap-generated/CHIPClientCallbacks.h b/src/controller/java/zap-generated/CHIPClientCallbacks.h index 4c0cabbb1152d4..e7944ef12fea05 100644 --- a/src/controller/java/zap-generated/CHIPClientCallbacks.h +++ b/src/controller/java/zap-generated/CHIPClientCallbacks.h @@ -767,6 +767,18 @@ typedef void (*PumpConfigurationAndControlEventListListAttributeCallback)( void * context, const chip::app::DataModel::DecodableList & data); typedef void (*PumpConfigurationAndControlAttributeListListAttributeCallback)( void * context, const chip::app::DataModel::DecodableList & data); +typedef void (*ThermostatPresetTypesListAttributeCallback)( + void * context, + const chip::app::DataModel::DecodableList & data); +typedef void (*ThermostatScheduleTypesListAttributeCallback)( + void * context, + const chip::app::DataModel::DecodableList & data); +typedef void (*ThermostatPresetsListAttributeCallback)( + void * context, + const chip::app::DataModel::DecodableList & data); +typedef void (*ThermostatSchedulesListAttributeCallback)( + void * context, + const chip::app::DataModel::DecodableList & data); typedef void (*ThermostatGeneratedCommandListListAttributeCallback)( void * context, const chip::app::DataModel::DecodableList & data); typedef void (*ThermostatAcceptedCommandListListAttributeCallback)( diff --git a/src/controller/java/zap-generated/CHIPClustersWrite-JNI.cpp b/src/controller/java/zap-generated/CHIPClustersWrite-JNI.cpp index 579273d56daea5..817a937e6d5ab0 100644 --- a/src/controller/java/zap-generated/CHIPClustersWrite-JNI.cpp +++ b/src/controller/java/zap-generated/CHIPClustersWrite-JNI.cpp @@ -5189,58 +5189,6 @@ JNI_METHOD(void, PumpConfigurationAndControlCluster, writeControlModeAttribute) onFailure.release(); } -JNI_METHOD(void, ThermostatCluster, writeHVACSystemTypeConfigurationAttribute) -(JNIEnv * env, jobject self, jlong clusterPtr, jobject callback, jobject value, jobject timedWriteTimeoutMs) -{ - chip::DeviceLayer::StackLock lock; - ListFreer listFreer; - using TypeInfo = chip::app::Clusters::Thermostat::Attributes::HVACSystemTypeConfiguration::TypeInfo; - TypeInfo::Type cppValue; - - std::vector> cleanupByteArrays; - std::vector> cleanupStrings; - - cppValue = - static_cast>(chip::JniReferences::GetInstance().IntegerToPrimitive(value)); - - std::unique_ptr onSuccess( - Platform::New(callback), Platform::Delete); - VerifyOrReturn(onSuccess.get() != nullptr, - chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException( - env, callback, "Error creating native success callback", CHIP_ERROR_NO_MEMORY)); - - std::unique_ptr onFailure( - Platform::New(callback), Platform::Delete); - VerifyOrReturn(onFailure.get() != nullptr, - chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException( - env, callback, "Error creating native failure callback", CHIP_ERROR_NO_MEMORY)); - - CHIP_ERROR err = CHIP_NO_ERROR; - ThermostatCluster * cppCluster = reinterpret_cast(clusterPtr); - VerifyOrReturn(cppCluster != nullptr, - chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException( - env, callback, "Could not get native cluster", CHIP_ERROR_INCORRECT_STATE)); - - auto successFn = chip::Callback::Callback::FromCancelable(onSuccess->Cancel()); - auto failureFn = chip::Callback::Callback::FromCancelable(onFailure->Cancel()); - - if (timedWriteTimeoutMs == nullptr) - { - err = cppCluster->WriteAttribute(cppValue, onSuccess->mContext, successFn->mCall, failureFn->mCall); - } - else - { - err = cppCluster->WriteAttribute(cppValue, onSuccess->mContext, successFn->mCall, failureFn->mCall, - chip::JniReferences::GetInstance().IntegerToPrimitive(timedWriteTimeoutMs)); - } - VerifyOrReturn( - err == CHIP_NO_ERROR, - chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(env, callback, "Error writing attribute", err)); - - onSuccess.release(); - onFailure.release(); -} - JNI_METHOD(void, ThermostatCluster, writeLocalTemperatureCalibrationAttribute) (JNIEnv * env, jobject self, jlong clusterPtr, jobject callback, jobject value, jobject timedWriteTimeoutMs) { @@ -5772,8 +5720,8 @@ JNI_METHOD(void, ThermostatCluster, writeRemoteSensingAttribute) std::vector> cleanupByteArrays; std::vector> cleanupStrings; - cppValue = - static_cast>(chip::JniReferences::GetInstance().IntegerToPrimitive(value)); + cppValue.SetRaw(static_cast::IntegerType>( + chip::JniReferences::GetInstance().IntegerToPrimitive(value))); std::unique_ptr onSuccess( Platform::New(callback), Platform::Delete); @@ -6040,8 +5988,8 @@ JNI_METHOD(void, ThermostatCluster, writeThermostatProgrammingOperationModeAttri std::vector> cleanupByteArrays; std::vector> cleanupStrings; - cppValue = - static_cast>(chip::JniReferences::GetInstance().IntegerToPrimitive(value)); + cppValue.SetRaw(static_cast::IntegerType>( + chip::JniReferences::GetInstance().IntegerToPrimitive(value))); std::unique_ptr onSuccess( Platform::New(callback), Platform::Delete); @@ -6472,7 +6420,8 @@ JNI_METHOD(void, ThermostatCluster, writeACErrorCodeAttribute) std::vector> cleanupByteArrays; std::vector> cleanupStrings; - cppValue = static_cast>(chip::JniReferences::GetInstance().LongToPrimitive(value)); + cppValue.SetRaw(static_cast::IntegerType>( + chip::JniReferences::GetInstance().LongToPrimitive(value))); std::unique_ptr onSuccess( Platform::New(callback), Platform::Delete); @@ -6564,12 +6513,12 @@ JNI_METHOD(void, ThermostatCluster, writeACLouverPositionAttribute) onFailure.release(); } -JNI_METHOD(void, ThermostatCluster, writeACCapacityformatAttribute) +JNI_METHOD(void, ThermostatCluster, writeACCapacityFormatAttribute) (JNIEnv * env, jobject self, jlong clusterPtr, jobject callback, jobject value, jobject timedWriteTimeoutMs) { chip::DeviceLayer::StackLock lock; ListFreer listFreer; - using TypeInfo = chip::app::Clusters::Thermostat::Attributes::ACCapacityformat::TypeInfo; + using TypeInfo = chip::app::Clusters::Thermostat::Attributes::ACCapacityFormat::TypeInfo; TypeInfo::Type cppValue; std::vector> cleanupByteArrays; @@ -6616,6 +6565,399 @@ JNI_METHOD(void, ThermostatCluster, writeACCapacityformatAttribute) onFailure.release(); } +JNI_METHOD(void, ThermostatCluster, writePresetsAttribute) +(JNIEnv * env, jobject self, jlong clusterPtr, jobject callback, jobject value, jobject timedWriteTimeoutMs) +{ + chip::DeviceLayer::StackLock lock; + ListFreer listFreer; + using TypeInfo = chip::app::Clusters::Thermostat::Attributes::Presets::TypeInfo; + TypeInfo::Type cppValue; + + std::vector> cleanupByteArrays; + std::vector> cleanupStrings; + + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + jint valueSize; + chip::JniReferences::GetInstance().GetListSize(value, valueSize); + if (valueSize != 0) + { + auto * listHolder_0 = new ListHolder(valueSize); + listFreer.add(listHolder_0); + + for (jint i_0 = 0; i_0 < valueSize; ++i_0) + { + jobject element_0; + chip::JniReferences::GetInstance().GetListItem(value, i_0, element_0); + jobject element_0_presetHandleItem_1; + chip::JniReferences::GetInstance().GetObjectField(element_0, "presetHandle", "[B", element_0_presetHandleItem_1); + if (element_0_presetHandleItem_1 == nullptr) + { + listHolder_0->mList[i_0].presetHandle.SetNull(); + } + else + { + auto & nonNullValue_2 = listHolder_0->mList[i_0].presetHandle.SetNonNull(); + cleanupByteArrays.push_back( + chip::Platform::MakeUnique(env, static_cast(element_0_presetHandleItem_1))); + nonNullValue_2 = cleanupByteArrays.back()->byteSpan(); + } + jobject element_0_presetScenarioItem_1; + chip::JniReferences::GetInstance().GetObjectField(element_0, "presetScenario", "Ljava/lang/Integer;", + element_0_presetScenarioItem_1); + listHolder_0->mList[i_0].presetScenario = + static_castmList[i_0].presetScenario)>>( + chip::JniReferences::GetInstance().IntegerToPrimitive(element_0_presetScenarioItem_1)); + jobject element_0_nameItem_1; + chip::JniReferences::GetInstance().GetObjectField(element_0, "name", "Ljava/util/Optional;", element_0_nameItem_1); + if (element_0_nameItem_1 != nullptr) + { + jobject optionalValue_2; + chip::JniReferences::GetInstance().GetOptionalValue(element_0_nameItem_1, optionalValue_2); + if (optionalValue_2 != nullptr) + { + auto & definedValue_2 = listHolder_0->mList[i_0].name.Emplace(); + if (optionalValue_2 == nullptr) + { + definedValue_2.SetNull(); + } + else + { + auto & nonNullValue_3 = definedValue_2.SetNonNull(); + cleanupStrings.push_back( + chip::Platform::MakeUnique(env, static_cast(optionalValue_2))); + nonNullValue_3 = cleanupStrings.back()->charSpan(); + } + } + } + jobject element_0_coolingSetpointItem_1; + chip::JniReferences::GetInstance().GetObjectField(element_0, "coolingSetpoint", "Ljava/util/Optional;", + element_0_coolingSetpointItem_1); + if (element_0_coolingSetpointItem_1 != nullptr) + { + jobject optionalValue_2; + chip::JniReferences::GetInstance().GetOptionalValue(element_0_coolingSetpointItem_1, optionalValue_2); + if (optionalValue_2 != nullptr) + { + auto & definedValue_2 = listHolder_0->mList[i_0].coolingSetpoint.Emplace(); + definedValue_2 = static_cast>( + chip::JniReferences::GetInstance().IntegerToPrimitive(optionalValue_2)); + } + } + jobject element_0_heatingSetpointItem_1; + chip::JniReferences::GetInstance().GetObjectField(element_0, "heatingSetpoint", "Ljava/util/Optional;", + element_0_heatingSetpointItem_1); + if (element_0_heatingSetpointItem_1 != nullptr) + { + jobject optionalValue_2; + chip::JniReferences::GetInstance().GetOptionalValue(element_0_heatingSetpointItem_1, optionalValue_2); + if (optionalValue_2 != nullptr) + { + auto & definedValue_2 = listHolder_0->mList[i_0].heatingSetpoint.Emplace(); + definedValue_2 = static_cast>( + chip::JniReferences::GetInstance().IntegerToPrimitive(optionalValue_2)); + } + } + jobject element_0_builtInItem_1; + chip::JniReferences::GetInstance().GetObjectField(element_0, "builtIn", "Ljava/lang/Boolean;", + element_0_builtInItem_1); + if (element_0_builtInItem_1 == nullptr) + { + listHolder_0->mList[i_0].builtIn.SetNull(); + } + else + { + auto & nonNullValue_2 = listHolder_0->mList[i_0].builtIn.SetNonNull(); + nonNullValue_2 = static_cast>( + chip::JniReferences::GetInstance().BooleanToPrimitive(element_0_builtInItem_1)); + } + } + cppValue = ListType_0(listHolder_0->mList, valueSize); + } + else + { + cppValue = ListType_0(); + } + } + + std::unique_ptr onSuccess( + Platform::New(callback), Platform::Delete); + VerifyOrReturn(onSuccess.get() != nullptr, + chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException( + env, callback, "Error creating native success callback", CHIP_ERROR_NO_MEMORY)); + + std::unique_ptr onFailure( + Platform::New(callback), Platform::Delete); + VerifyOrReturn(onFailure.get() != nullptr, + chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException( + env, callback, "Error creating native failure callback", CHIP_ERROR_NO_MEMORY)); + + CHIP_ERROR err = CHIP_NO_ERROR; + ThermostatCluster * cppCluster = reinterpret_cast(clusterPtr); + VerifyOrReturn(cppCluster != nullptr, + chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException( + env, callback, "Could not get native cluster", CHIP_ERROR_INCORRECT_STATE)); + + auto successFn = chip::Callback::Callback::FromCancelable(onSuccess->Cancel()); + auto failureFn = chip::Callback::Callback::FromCancelable(onFailure->Cancel()); + + if (timedWriteTimeoutMs == nullptr) + { + err = cppCluster->WriteAttribute(cppValue, onSuccess->mContext, successFn->mCall, failureFn->mCall); + } + else + { + err = cppCluster->WriteAttribute(cppValue, onSuccess->mContext, successFn->mCall, failureFn->mCall, + chip::JniReferences::GetInstance().IntegerToPrimitive(timedWriteTimeoutMs)); + } + VerifyOrReturn( + err == CHIP_NO_ERROR, + chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(env, callback, "Error writing attribute", err)); + + onSuccess.release(); + onFailure.release(); +} + +JNI_METHOD(void, ThermostatCluster, writeSchedulesAttribute) +(JNIEnv * env, jobject self, jlong clusterPtr, jobject callback, jobject value, jobject timedWriteTimeoutMs) +{ + chip::DeviceLayer::StackLock lock; + ListFreer listFreer; + using TypeInfo = chip::app::Clusters::Thermostat::Attributes::Schedules::TypeInfo; + TypeInfo::Type cppValue; + + std::vector> cleanupByteArrays; + std::vector> cleanupStrings; + + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + jint valueSize; + chip::JniReferences::GetInstance().GetListSize(value, valueSize); + if (valueSize != 0) + { + auto * listHolder_0 = new ListHolder(valueSize); + listFreer.add(listHolder_0); + + for (jint i_0 = 0; i_0 < valueSize; ++i_0) + { + jobject element_0; + chip::JniReferences::GetInstance().GetListItem(value, i_0, element_0); + jobject element_0_scheduleHandleItem_1; + chip::JniReferences::GetInstance().GetObjectField(element_0, "scheduleHandle", "[B", + element_0_scheduleHandleItem_1); + if (element_0_scheduleHandleItem_1 == nullptr) + { + listHolder_0->mList[i_0].scheduleHandle.SetNull(); + } + else + { + auto & nonNullValue_2 = listHolder_0->mList[i_0].scheduleHandle.SetNonNull(); + cleanupByteArrays.push_back(chip::Platform::MakeUnique( + env, static_cast(element_0_scheduleHandleItem_1))); + nonNullValue_2 = cleanupByteArrays.back()->byteSpan(); + } + jobject element_0_systemModeItem_1; + chip::JniReferences::GetInstance().GetObjectField(element_0, "systemMode", "Ljava/lang/Integer;", + element_0_systemModeItem_1); + listHolder_0->mList[i_0].systemMode = + static_castmList[i_0].systemMode)>>( + chip::JniReferences::GetInstance().IntegerToPrimitive(element_0_systemModeItem_1)); + jobject element_0_nameItem_1; + chip::JniReferences::GetInstance().GetObjectField(element_0, "name", "Ljava/util/Optional;", element_0_nameItem_1); + if (element_0_nameItem_1 != nullptr) + { + jobject optionalValue_2; + chip::JniReferences::GetInstance().GetOptionalValue(element_0_nameItem_1, optionalValue_2); + if (optionalValue_2 != nullptr) + { + auto & definedValue_2 = listHolder_0->mList[i_0].name.Emplace(); + cleanupStrings.push_back( + chip::Platform::MakeUnique(env, static_cast(optionalValue_2))); + definedValue_2 = cleanupStrings.back()->charSpan(); + } + } + jobject element_0_presetHandleItem_1; + chip::JniReferences::GetInstance().GetObjectField(element_0, "presetHandle", "Ljava/util/Optional;", + element_0_presetHandleItem_1); + if (element_0_presetHandleItem_1 != nullptr) + { + jobject optionalValue_2; + chip::JniReferences::GetInstance().GetOptionalValue(element_0_presetHandleItem_1, optionalValue_2); + if (optionalValue_2 != nullptr) + { + auto & definedValue_2 = listHolder_0->mList[i_0].presetHandle.Emplace(); + cleanupByteArrays.push_back( + chip::Platform::MakeUnique(env, static_cast(optionalValue_2))); + definedValue_2 = cleanupByteArrays.back()->byteSpan(); + } + } + jobject element_0_transitionsItem_1; + chip::JniReferences::GetInstance().GetObjectField(element_0, "transitions", "Ljava/util/ArrayList;", + element_0_transitionsItem_1); + { + using ListType_2 = std::remove_reference_tmList[i_0].transitions)>; + using ListMemberType_2 = ListMemberTypeGetter::Type; + jint element_0_transitionsItem_1Size; + chip::JniReferences::GetInstance().GetListSize(element_0_transitionsItem_1, element_0_transitionsItem_1Size); + if (element_0_transitionsItem_1Size != 0) + { + auto * listHolder_2 = new ListHolder(element_0_transitionsItem_1Size); + listFreer.add(listHolder_2); + + for (jint i_2 = 0; i_2 < element_0_transitionsItem_1Size; ++i_2) + { + jobject element_2; + chip::JniReferences::GetInstance().GetListItem(element_0_transitionsItem_1, i_2, element_2); + jobject element_2_dayOfWeekItem_3; + chip::JniReferences::GetInstance().GetObjectField(element_2, "dayOfWeek", "Ljava/lang/Integer;", + element_2_dayOfWeekItem_3); + listHolder_2->mList[i_2].dayOfWeek.SetRaw( + static_castmList[i_2].dayOfWeek)>::IntegerType>( + chip::JniReferences::GetInstance().IntegerToPrimitive(element_2_dayOfWeekItem_3))); + jobject element_2_transitionTimeItem_3; + chip::JniReferences::GetInstance().GetObjectField(element_2, "transitionTime", "Ljava/lang/Integer;", + element_2_transitionTimeItem_3); + listHolder_2->mList[i_2].transitionTime = + static_castmList[i_2].transitionTime)>>( + chip::JniReferences::GetInstance().IntegerToPrimitive(element_2_transitionTimeItem_3)); + jobject element_2_presetHandleItem_3; + chip::JniReferences::GetInstance().GetObjectField(element_2, "presetHandle", "Ljava/util/Optional;", + element_2_presetHandleItem_3); + if (element_2_presetHandleItem_3 != nullptr) + { + jobject optionalValue_4; + chip::JniReferences::GetInstance().GetOptionalValue(element_2_presetHandleItem_3, optionalValue_4); + if (optionalValue_4 != nullptr) + { + auto & definedValue_4 = listHolder_2->mList[i_2].presetHandle.Emplace(); + cleanupByteArrays.push_back(chip::Platform::MakeUnique( + env, static_cast(optionalValue_4))); + definedValue_4 = cleanupByteArrays.back()->byteSpan(); + } + } + jobject element_2_systemModeItem_3; + chip::JniReferences::GetInstance().GetObjectField(element_2, "systemMode", "Ljava/util/Optional;", + element_2_systemModeItem_3); + if (element_2_systemModeItem_3 != nullptr) + { + jobject optionalValue_4; + chip::JniReferences::GetInstance().GetOptionalValue(element_2_systemModeItem_3, optionalValue_4); + if (optionalValue_4 != nullptr) + { + auto & definedValue_4 = listHolder_2->mList[i_2].systemMode.Emplace(); + definedValue_4 = static_cast>( + chip::JniReferences::GetInstance().IntegerToPrimitive(optionalValue_4)); + } + } + jobject element_2_coolingSetpointItem_3; + chip::JniReferences::GetInstance().GetObjectField(element_2, "coolingSetpoint", "Ljava/util/Optional;", + element_2_coolingSetpointItem_3); + if (element_2_coolingSetpointItem_3 != nullptr) + { + jobject optionalValue_4; + chip::JniReferences::GetInstance().GetOptionalValue(element_2_coolingSetpointItem_3, + optionalValue_4); + if (optionalValue_4 != nullptr) + { + auto & definedValue_4 = listHolder_2->mList[i_2].coolingSetpoint.Emplace(); + definedValue_4 = static_cast>( + chip::JniReferences::GetInstance().IntegerToPrimitive(optionalValue_4)); + } + } + jobject element_2_heatingSetpointItem_3; + chip::JniReferences::GetInstance().GetObjectField(element_2, "heatingSetpoint", "Ljava/util/Optional;", + element_2_heatingSetpointItem_3); + if (element_2_heatingSetpointItem_3 != nullptr) + { + jobject optionalValue_4; + chip::JniReferences::GetInstance().GetOptionalValue(element_2_heatingSetpointItem_3, + optionalValue_4); + if (optionalValue_4 != nullptr) + { + auto & definedValue_4 = listHolder_2->mList[i_2].heatingSetpoint.Emplace(); + definedValue_4 = static_cast>( + chip::JniReferences::GetInstance().IntegerToPrimitive(optionalValue_4)); + } + } + } + listHolder_0->mList[i_0].transitions = ListType_2(listHolder_2->mList, element_0_transitionsItem_1Size); + } + else + { + listHolder_0->mList[i_0].transitions = ListType_2(); + } + } + jobject element_0_builtInItem_1; + chip::JniReferences::GetInstance().GetObjectField(element_0, "builtIn", "Ljava/util/Optional;", + element_0_builtInItem_1); + if (element_0_builtInItem_1 != nullptr) + { + jobject optionalValue_2; + chip::JniReferences::GetInstance().GetOptionalValue(element_0_builtInItem_1, optionalValue_2); + if (optionalValue_2 != nullptr) + { + auto & definedValue_2 = listHolder_0->mList[i_0].builtIn.Emplace(); + if (optionalValue_2 == nullptr) + { + definedValue_2.SetNull(); + } + else + { + auto & nonNullValue_3 = definedValue_2.SetNonNull(); + nonNullValue_3 = static_cast>( + chip::JniReferences::GetInstance().BooleanToPrimitive(optionalValue_2)); + } + } + } + } + cppValue = ListType_0(listHolder_0->mList, valueSize); + } + else + { + cppValue = ListType_0(); + } + } + + std::unique_ptr onSuccess( + Platform::New(callback), Platform::Delete); + VerifyOrReturn(onSuccess.get() != nullptr, + chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException( + env, callback, "Error creating native success callback", CHIP_ERROR_NO_MEMORY)); + + std::unique_ptr onFailure( + Platform::New(callback), Platform::Delete); + VerifyOrReturn(onFailure.get() != nullptr, + chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException( + env, callback, "Error creating native failure callback", CHIP_ERROR_NO_MEMORY)); + + CHIP_ERROR err = CHIP_NO_ERROR; + ThermostatCluster * cppCluster = reinterpret_cast(clusterPtr); + VerifyOrReturn(cppCluster != nullptr, + chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException( + env, callback, "Could not get native cluster", CHIP_ERROR_INCORRECT_STATE)); + + auto successFn = chip::Callback::Callback::FromCancelable(onSuccess->Cancel()); + auto failureFn = chip::Callback::Callback::FromCancelable(onFailure->Cancel()); + + if (timedWriteTimeoutMs == nullptr) + { + err = cppCluster->WriteAttribute(cppValue, onSuccess->mContext, successFn->mCall, failureFn->mCall); + } + else + { + err = cppCluster->WriteAttribute(cppValue, onSuccess->mContext, successFn->mCall, failureFn->mCall, + chip::JniReferences::GetInstance().IntegerToPrimitive(timedWriteTimeoutMs)); + } + VerifyOrReturn( + err == CHIP_NO_ERROR, + chip::AndroidClusterExceptions::GetInstance().ReturnIllegalStateException(env, callback, "Error writing attribute", err)); + + onSuccess.release(); + onFailure.release(); +} + JNI_METHOD(void, FanControlCluster, writeFanModeAttribute) (JNIEnv * env, jobject self, jlong clusterPtr, jobject callback, jobject value, jobject timedWriteTimeoutMs) { diff --git a/src/controller/java/zap-generated/CHIPInvokeCallbacks.cpp b/src/controller/java/zap-generated/CHIPInvokeCallbacks.cpp index 918f36641e0ea3..b967054727fd82 100644 --- a/src/controller/java/zap-generated/CHIPInvokeCallbacks.cpp +++ b/src/controller/java/zap-generated/CHIPInvokeCallbacks.cpp @@ -4645,13 +4645,13 @@ void CHIPThermostatClusterGetWeeklyScheduleResponseCallback::CallbackFn( chip::JniReferences::GetInstance().CreateBoxedObject(NumberOfTransitionsForSequenceClassName.c_str(), NumberOfTransitionsForSequenceCtorSignature.c_str(), jniNumberOfTransitionsForSequence, NumberOfTransitionsForSequence); - jobject DayOfWeekForSequence; - std::string DayOfWeekForSequenceClassName = "java/lang/Integer"; - std::string DayOfWeekForSequenceCtorSignature = "(I)V"; - jint jniDayOfWeekForSequence = static_cast(dataResponse.dayOfWeekForSequence.Raw()); - chip::JniReferences::GetInstance().CreateBoxedObject(DayOfWeekForSequenceClassName.c_str(), - DayOfWeekForSequenceCtorSignature.c_str(), jniDayOfWeekForSequence, - DayOfWeekForSequence); + jobject DayOfWeekforSequence; + std::string DayOfWeekforSequenceClassName = "java/lang/Integer"; + std::string DayOfWeekforSequenceCtorSignature = "(I)V"; + jint jniDayOfWeekforSequence = static_cast(dataResponse.dayOfWeekforSequence.Raw()); + chip::JniReferences::GetInstance().CreateBoxedObject(DayOfWeekforSequenceClassName.c_str(), + DayOfWeekforSequenceCtorSignature.c_str(), jniDayOfWeekforSequence, + DayOfWeekforSequence); jobject ModeForSequence; std::string ModeForSequenceClassName = "java/lang/Integer"; std::string ModeForSequenceCtorSignature = "(I)V"; @@ -4674,59 +4674,157 @@ void CHIPThermostatClusterGetWeeklyScheduleResponseCallback::CallbackFn( newElement_0_transitionTimeCtorSignature.c_str(), jninewElement_0_transitionTime, newElement_0_transitionTime); jobject newElement_0_heatSetpoint; - if (entry_0.heatSetpoint.IsNull()) - { - newElement_0_heatSetpoint = nullptr; - } - else - { - std::string newElement_0_heatSetpointClassName = "java/lang/Integer"; - std::string newElement_0_heatSetpointCtorSignature = "(I)V"; - jint jninewElement_0_heatSetpoint = static_cast(entry_0.heatSetpoint.Value()); - chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_heatSetpointClassName.c_str(), - newElement_0_heatSetpointCtorSignature.c_str(), - jninewElement_0_heatSetpoint, newElement_0_heatSetpoint); - } + std::string newElement_0_heatSetpointClassName = "java/lang/Integer"; + std::string newElement_0_heatSetpointCtorSignature = "(I)V"; + jint jninewElement_0_heatSetpoint = static_cast(entry_0.heatSetpoint); + chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_heatSetpointClassName.c_str(), + newElement_0_heatSetpointCtorSignature.c_str(), + jninewElement_0_heatSetpoint, newElement_0_heatSetpoint); jobject newElement_0_coolSetpoint; - if (entry_0.coolSetpoint.IsNull()) - { - newElement_0_coolSetpoint = nullptr; - } - else - { - std::string newElement_0_coolSetpointClassName = "java/lang/Integer"; - std::string newElement_0_coolSetpointCtorSignature = "(I)V"; - jint jninewElement_0_coolSetpoint = static_cast(entry_0.coolSetpoint.Value()); - chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_coolSetpointClassName.c_str(), - newElement_0_coolSetpointCtorSignature.c_str(), - jninewElement_0_coolSetpoint, newElement_0_coolSetpoint); - } - - jclass thermostatScheduleTransitionStructClass_1; + std::string newElement_0_coolSetpointClassName = "java/lang/Integer"; + std::string newElement_0_coolSetpointCtorSignature = "(I)V"; + jint jninewElement_0_coolSetpoint = static_cast(entry_0.coolSetpoint); + chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_coolSetpointClassName.c_str(), + newElement_0_coolSetpointCtorSignature.c_str(), + jninewElement_0_coolSetpoint, newElement_0_coolSetpoint); + + jclass thermostatScheduleTransitionStructStructClass_1; err = chip::JniReferences::GetInstance().GetClassRef( - env, "chip/devicecontroller/ChipStructs$ThermostatClusterThermostatScheduleTransition", - thermostatScheduleTransitionStructClass_1); + env, "chip/devicecontroller/ChipStructs$ThermostatClusterThermostatScheduleTransitionStruct", + thermostatScheduleTransitionStructStructClass_1); if (err != CHIP_NO_ERROR) { - ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterThermostatScheduleTransition"); + ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterThermostatScheduleTransitionStruct"); return; } - jmethodID thermostatScheduleTransitionStructCtor_1 = env->GetMethodID( - thermostatScheduleTransitionStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V"); - if (thermostatScheduleTransitionStructCtor_1 == nullptr) + jmethodID thermostatScheduleTransitionStructStructCtor_1 = + env->GetMethodID(thermostatScheduleTransitionStructStructClass_1, "", + "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V"); + if (thermostatScheduleTransitionStructStructCtor_1 == nullptr) { - ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterThermostatScheduleTransition constructor"); + ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterThermostatScheduleTransitionStruct constructor"); return; } - newElement_0 = env->NewObject(thermostatScheduleTransitionStructClass_1, thermostatScheduleTransitionStructCtor_1, - newElement_0_transitionTime, newElement_0_heatSetpoint, newElement_0_coolSetpoint); + newElement_0 = + env->NewObject(thermostatScheduleTransitionStructStructClass_1, thermostatScheduleTransitionStructStructCtor_1, + newElement_0_transitionTime, newElement_0_heatSetpoint, newElement_0_coolSetpoint); chip::JniReferences::GetInstance().AddToList(Transitions, newElement_0); } - env->CallVoidMethod(javaCallbackRef, javaMethod, NumberOfTransitionsForSequence, DayOfWeekForSequence, ModeForSequence, + env->CallVoidMethod(javaCallbackRef, javaMethod, NumberOfTransitionsForSequence, DayOfWeekforSequence, ModeForSequence, Transitions); } +CHIPThermostatClusterGetRelayStatusLogResponseCallback::CHIPThermostatClusterGetRelayStatusLogResponseCallback( + jobject javaCallback) : Callback::Callback(CallbackFn, this) +{ + JNIEnv * env = JniReferences::GetInstance().GetEnvForCurrentThread(); + if (env == nullptr) + { + ChipLogError(Zcl, "Could not create global reference for Java callback"); + return; + } + + javaCallbackRef = env->NewGlobalRef(javaCallback); + if (javaCallbackRef == nullptr) + { + ChipLogError(Zcl, "Could not create global reference for Java callback"); + } +} + +CHIPThermostatClusterGetRelayStatusLogResponseCallback::~CHIPThermostatClusterGetRelayStatusLogResponseCallback() +{ + JNIEnv * env = JniReferences::GetInstance().GetEnvForCurrentThread(); + if (env == nullptr) + { + ChipLogError(Zcl, "Could not delete global reference for Java callback"); + return; + } + env->DeleteGlobalRef(javaCallbackRef); +}; + +void CHIPThermostatClusterGetRelayStatusLogResponseCallback::CallbackFn( + void * context, const chip::app::Clusters::Thermostat::Commands::GetRelayStatusLogResponse::DecodableType & dataResponse) +{ + chip::DeviceLayer::StackUnlock unlock; + CHIP_ERROR err = CHIP_NO_ERROR; + JNIEnv * env = JniReferences::GetInstance().GetEnvForCurrentThread(); + jobject javaCallbackRef; + jmethodID javaMethod; + + VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Error invoking Java callback: no JNIEnv")); + + std::unique_ptr + cppCallback(reinterpret_cast(context), + chip::Platform::Delete); + VerifyOrReturn(cppCallback != nullptr, ChipLogError(Zcl, "Error invoking Java callback: failed to cast native callback")); + + javaCallbackRef = cppCallback->javaCallbackRef; + // Java callback is allowed to be null, exit early if this is the case. + VerifyOrReturn(javaCallbackRef != nullptr); + + err = JniReferences::GetInstance().FindMethod( + env, javaCallbackRef, "onSuccess", + "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V", + &javaMethod); + VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Error invoking Java callback: %s", ErrorStr(err))); + + jobject TimeOfDay; + std::string TimeOfDayClassName = "java/lang/Integer"; + std::string TimeOfDayCtorSignature = "(I)V"; + jint jniTimeOfDay = static_cast(dataResponse.timeOfDay); + chip::JniReferences::GetInstance().CreateBoxedObject(TimeOfDayClassName.c_str(), TimeOfDayCtorSignature.c_str(), + jniTimeOfDay, TimeOfDay); + jobject RelayStatus; + std::string RelayStatusClassName = "java/lang/Integer"; + std::string RelayStatusCtorSignature = "(I)V"; + jint jniRelayStatus = static_cast(dataResponse.relayStatus.Raw()); + chip::JniReferences::GetInstance().CreateBoxedObject(RelayStatusClassName.c_str(), RelayStatusCtorSignature.c_str(), + jniRelayStatus, RelayStatus); + jobject LocalTemperature; + if (dataResponse.localTemperature.IsNull()) + { + LocalTemperature = nullptr; + } + else + { + std::string LocalTemperatureClassName = "java/lang/Integer"; + std::string LocalTemperatureCtorSignature = "(I)V"; + jint jniLocalTemperature = static_cast(dataResponse.localTemperature.Value()); + chip::JniReferences::GetInstance().CreateBoxedObject( + LocalTemperatureClassName.c_str(), LocalTemperatureCtorSignature.c_str(), jniLocalTemperature, LocalTemperature); + } + jobject HumidityInPercentage; + if (dataResponse.humidityInPercentage.IsNull()) + { + HumidityInPercentage = nullptr; + } + else + { + std::string HumidityInPercentageClassName = "java/lang/Integer"; + std::string HumidityInPercentageCtorSignature = "(I)V"; + jint jniHumidityInPercentage = static_cast(dataResponse.humidityInPercentage.Value()); + chip::JniReferences::GetInstance().CreateBoxedObject(HumidityInPercentageClassName.c_str(), + HumidityInPercentageCtorSignature.c_str(), + jniHumidityInPercentage, HumidityInPercentage); + } + jobject SetPoint; + std::string SetPointClassName = "java/lang/Integer"; + std::string SetPointCtorSignature = "(I)V"; + jint jniSetPoint = static_cast(dataResponse.setPoint); + chip::JniReferences::GetInstance().CreateBoxedObject(SetPointClassName.c_str(), SetPointCtorSignature.c_str(), + jniSetPoint, SetPoint); + jobject UnreadEntries; + std::string UnreadEntriesClassName = "java/lang/Integer"; + std::string UnreadEntriesCtorSignature = "(I)V"; + jint jniUnreadEntries = static_cast(dataResponse.unreadEntries); + chip::JniReferences::GetInstance().CreateBoxedObject(UnreadEntriesClassName.c_str(), UnreadEntriesCtorSignature.c_str(), + jniUnreadEntries, UnreadEntries); + + env->CallVoidMethod(javaCallbackRef, javaMethod, TimeOfDay, RelayStatus, LocalTemperature, HumidityInPercentage, SetPoint, + UnreadEntries); +} CHIPChannelClusterChangeChannelResponseCallback::CHIPChannelClusterChangeChannelResponseCallback(jobject javaCallback) : Callback::Callback(CallbackFn, this) { diff --git a/src/controller/java/zap-generated/CHIPInvokeCallbacks.h b/src/controller/java/zap-generated/CHIPInvokeCallbacks.h index 10a51c524cda8b..28144fad9dc589 100644 --- a/src/controller/java/zap-generated/CHIPInvokeCallbacks.h +++ b/src/controller/java/zap-generated/CHIPInvokeCallbacks.h @@ -735,6 +735,21 @@ class CHIPThermostatClusterGetWeeklyScheduleResponseCallback jobject javaCallbackRef; }; +class CHIPThermostatClusterGetRelayStatusLogResponseCallback + : public Callback::Callback +{ +public: + CHIPThermostatClusterGetRelayStatusLogResponseCallback(jobject javaCallback); + + ~CHIPThermostatClusterGetRelayStatusLogResponseCallback(); + + static void CallbackFn(void * context, + const chip::app::Clusters::Thermostat::Commands::GetRelayStatusLogResponse::DecodableType & data); + +private: + jobject javaCallbackRef; +}; + class CHIPChannelClusterChangeChannelResponseCallback : public Callback::Callback { diff --git a/src/controller/java/zap-generated/CHIPReadCallbacks.cpp b/src/controller/java/zap-generated/CHIPReadCallbacks.cpp index 40e108266c0fe9..6d43750a9af4b5 100644 --- a/src/controller/java/zap-generated/CHIPReadCallbacks.cpp +++ b/src/controller/java/zap-generated/CHIPReadCallbacks.cpp @@ -35552,6 +35552,938 @@ void CHIPThermostatACCoilTemperatureAttributeCallback::CallbackFn(void * context env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue); } +CHIPThermostatPresetTypesAttributeCallback::CHIPThermostatPresetTypesAttributeCallback(jobject javaCallback, bool keepAlive) : + chip::Callback::Callback(CallbackFn, this), keepAlive(keepAlive) +{ + JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); + if (env == nullptr) + { + ChipLogError(Zcl, "Could not create global reference for Java callback"); + return; + } + + javaCallbackRef = env->NewGlobalRef(javaCallback); + if (javaCallbackRef == nullptr) + { + ChipLogError(Zcl, "Could not create global reference for Java callback"); + } +} + +CHIPThermostatPresetTypesAttributeCallback::~CHIPThermostatPresetTypesAttributeCallback() +{ + JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); + if (env == nullptr) + { + ChipLogError(Zcl, "Could not delete global reference for Java callback"); + return; + } + env->DeleteGlobalRef(javaCallbackRef); +} + +void CHIPThermostatPresetTypesAttributeCallback::CallbackFn( + void * context, + const chip::app::DataModel::DecodableList & list) +{ + chip::DeviceLayer::StackUnlock unlock; + CHIP_ERROR err = CHIP_NO_ERROR; + JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); + jobject javaCallbackRef; + + VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env")); + + std::unique_ptr cppCallback( + reinterpret_cast(context), maybeDestroy); + + // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback. + javaCallbackRef = cppCallback.get()->javaCallbackRef; + VerifyOrReturn(javaCallbackRef != nullptr, + ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null")); + + jmethodID javaMethod; + err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/util/List;)V", &javaMethod); + VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method")); + + jobject arrayListObj; + chip::JniReferences::GetInstance().CreateArrayList(arrayListObj); + + auto iter_arrayListObj_0 = list.begin(); + while (iter_arrayListObj_0.Next()) + { + auto & entry_0 = iter_arrayListObj_0.GetValue(); + jobject newElement_0; + jobject newElement_0_presetScenario; + std::string newElement_0_presetScenarioClassName = "java/lang/Integer"; + std::string newElement_0_presetScenarioCtorSignature = "(I)V"; + jint jninewElement_0_presetScenario = static_cast(entry_0.presetScenario); + chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_presetScenarioClassName.c_str(), + newElement_0_presetScenarioCtorSignature.c_str(), + jninewElement_0_presetScenario, newElement_0_presetScenario); + jobject newElement_0_numberOfPresets; + std::string newElement_0_numberOfPresetsClassName = "java/lang/Integer"; + std::string newElement_0_numberOfPresetsCtorSignature = "(I)V"; + jint jninewElement_0_numberOfPresets = static_cast(entry_0.numberOfPresets); + chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_numberOfPresetsClassName.c_str(), + newElement_0_numberOfPresetsCtorSignature.c_str(), + jninewElement_0_numberOfPresets, newElement_0_numberOfPresets); + jobject newElement_0_presetTypeFeatures; + std::string newElement_0_presetTypeFeaturesClassName = "java/lang/Integer"; + std::string newElement_0_presetTypeFeaturesCtorSignature = "(I)V"; + jint jninewElement_0_presetTypeFeatures = static_cast(entry_0.presetTypeFeatures.Raw()); + chip::JniReferences::GetInstance().CreateBoxedObject( + newElement_0_presetTypeFeaturesClassName.c_str(), newElement_0_presetTypeFeaturesCtorSignature.c_str(), + jninewElement_0_presetTypeFeatures, newElement_0_presetTypeFeatures); + + jclass presetTypeStructStructClass_1; + err = chip::JniReferences::GetInstance().GetClassRef( + env, "chip/devicecontroller/ChipStructs$ThermostatClusterPresetTypeStruct", presetTypeStructStructClass_1); + if (err != CHIP_NO_ERROR) + { + ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterPresetTypeStruct"); + return; + } + jmethodID presetTypeStructStructCtor_1 = env->GetMethodID(presetTypeStructStructClass_1, "", + "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V"); + if (presetTypeStructStructCtor_1 == nullptr) + { + ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterPresetTypeStruct constructor"); + return; + } + + newElement_0 = env->NewObject(presetTypeStructStructClass_1, presetTypeStructStructCtor_1, newElement_0_presetScenario, + newElement_0_numberOfPresets, newElement_0_presetTypeFeatures); + chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0); + } + + env->ExceptionClear(); + env->CallVoidMethod(javaCallbackRef, javaMethod, arrayListObj); +} + +CHIPThermostatScheduleTypesAttributeCallback::CHIPThermostatScheduleTypesAttributeCallback(jobject javaCallback, bool keepAlive) : + chip::Callback::Callback(CallbackFn, this), keepAlive(keepAlive) +{ + JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); + if (env == nullptr) + { + ChipLogError(Zcl, "Could not create global reference for Java callback"); + return; + } + + javaCallbackRef = env->NewGlobalRef(javaCallback); + if (javaCallbackRef == nullptr) + { + ChipLogError(Zcl, "Could not create global reference for Java callback"); + } +} + +CHIPThermostatScheduleTypesAttributeCallback::~CHIPThermostatScheduleTypesAttributeCallback() +{ + JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); + if (env == nullptr) + { + ChipLogError(Zcl, "Could not delete global reference for Java callback"); + return; + } + env->DeleteGlobalRef(javaCallbackRef); +} + +void CHIPThermostatScheduleTypesAttributeCallback::CallbackFn( + void * context, + const chip::app::DataModel::DecodableList & list) +{ + chip::DeviceLayer::StackUnlock unlock; + CHIP_ERROR err = CHIP_NO_ERROR; + JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); + jobject javaCallbackRef; + + VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env")); + + std::unique_ptr cppCallback( + reinterpret_cast(context), maybeDestroy); + + // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback. + javaCallbackRef = cppCallback.get()->javaCallbackRef; + VerifyOrReturn(javaCallbackRef != nullptr, + ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null")); + + jmethodID javaMethod; + err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/util/List;)V", &javaMethod); + VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method")); + + jobject arrayListObj; + chip::JniReferences::GetInstance().CreateArrayList(arrayListObj); + + auto iter_arrayListObj_0 = list.begin(); + while (iter_arrayListObj_0.Next()) + { + auto & entry_0 = iter_arrayListObj_0.GetValue(); + jobject newElement_0; + jobject newElement_0_systemMode; + std::string newElement_0_systemModeClassName = "java/lang/Integer"; + std::string newElement_0_systemModeCtorSignature = "(I)V"; + jint jninewElement_0_systemMode = static_cast(entry_0.systemMode); + chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_systemModeClassName.c_str(), + newElement_0_systemModeCtorSignature.c_str(), + jninewElement_0_systemMode, newElement_0_systemMode); + jobject newElement_0_numberOfSchedules; + std::string newElement_0_numberOfSchedulesClassName = "java/lang/Integer"; + std::string newElement_0_numberOfSchedulesCtorSignature = "(I)V"; + jint jninewElement_0_numberOfSchedules = static_cast(entry_0.numberOfSchedules); + chip::JniReferences::GetInstance().CreateBoxedObject( + newElement_0_numberOfSchedulesClassName.c_str(), newElement_0_numberOfSchedulesCtorSignature.c_str(), + jninewElement_0_numberOfSchedules, newElement_0_numberOfSchedules); + jobject newElement_0_scheduleTypeFeatures; + std::string newElement_0_scheduleTypeFeaturesClassName = "java/lang/Integer"; + std::string newElement_0_scheduleTypeFeaturesCtorSignature = "(I)V"; + jint jninewElement_0_scheduleTypeFeatures = static_cast(entry_0.scheduleTypeFeatures.Raw()); + chip::JniReferences::GetInstance().CreateBoxedObject( + newElement_0_scheduleTypeFeaturesClassName.c_str(), newElement_0_scheduleTypeFeaturesCtorSignature.c_str(), + jninewElement_0_scheduleTypeFeatures, newElement_0_scheduleTypeFeatures); + + jclass scheduleTypeStructStructClass_1; + err = chip::JniReferences::GetInstance().GetClassRef( + env, "chip/devicecontroller/ChipStructs$ThermostatClusterScheduleTypeStruct", scheduleTypeStructStructClass_1); + if (err != CHIP_NO_ERROR) + { + ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterScheduleTypeStruct"); + return; + } + jmethodID scheduleTypeStructStructCtor_1 = env->GetMethodID(scheduleTypeStructStructClass_1, "", + "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V"); + if (scheduleTypeStructStructCtor_1 == nullptr) + { + ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterScheduleTypeStruct constructor"); + return; + } + + newElement_0 = env->NewObject(scheduleTypeStructStructClass_1, scheduleTypeStructStructCtor_1, newElement_0_systemMode, + newElement_0_numberOfSchedules, newElement_0_scheduleTypeFeatures); + chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0); + } + + env->ExceptionClear(); + env->CallVoidMethod(javaCallbackRef, javaMethod, arrayListObj); +} + +CHIPThermostatNumberOfScheduleTransitionPerDayAttributeCallback::CHIPThermostatNumberOfScheduleTransitionPerDayAttributeCallback( + jobject javaCallback, bool keepAlive) : + chip::Callback::Callback(CallbackFn, this), + keepAlive(keepAlive) +{ + JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); + if (env == nullptr) + { + ChipLogError(Zcl, "Could not create global reference for Java callback"); + return; + } + + javaCallbackRef = env->NewGlobalRef(javaCallback); + if (javaCallbackRef == nullptr) + { + ChipLogError(Zcl, "Could not create global reference for Java callback"); + } +} + +CHIPThermostatNumberOfScheduleTransitionPerDayAttributeCallback::~CHIPThermostatNumberOfScheduleTransitionPerDayAttributeCallback() +{ + JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); + if (env == nullptr) + { + ChipLogError(Zcl, "Could not delete global reference for Java callback"); + return; + } + env->DeleteGlobalRef(javaCallbackRef); +} + +void CHIPThermostatNumberOfScheduleTransitionPerDayAttributeCallback::CallbackFn( + void * context, const chip::app::DataModel::Nullable & value) +{ + chip::DeviceLayer::StackUnlock unlock; + CHIP_ERROR err = CHIP_NO_ERROR; + JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); + jobject javaCallbackRef; + + VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env")); + std::unique_ptr cppCallback( + reinterpret_cast(context), maybeDestroy); + + // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback. + javaCallbackRef = cppCallback.get()->javaCallbackRef; + VerifyOrReturn(javaCallbackRef != nullptr, + ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null")); + + jmethodID javaMethod; + err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/lang/Integer;)V", &javaMethod); + VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method")); + + jobject javaValue; + if (value.IsNull()) + { + javaValue = nullptr; + } + else + { + std::string javaValueClassName = "java/lang/Integer"; + std::string javaValueCtorSignature = "(I)V"; + jint jnijavaValue = static_cast(value.Value()); + chip::JniReferences::GetInstance().CreateBoxedObject(javaValueClassName.c_str(), javaValueCtorSignature.c_str(), + jnijavaValue, javaValue); + } + + env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue); +} + +CHIPThermostatActivePresetHandleAttributeCallback::CHIPThermostatActivePresetHandleAttributeCallback(jobject javaCallback, + bool keepAlive) : + chip::Callback::Callback(CallbackFn, this), keepAlive(keepAlive) +{ + JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); + if (env == nullptr) + { + ChipLogError(Zcl, "Could not create global reference for Java callback"); + return; + } + + javaCallbackRef = env->NewGlobalRef(javaCallback); + if (javaCallbackRef == nullptr) + { + ChipLogError(Zcl, "Could not create global reference for Java callback"); + } +} + +CHIPThermostatActivePresetHandleAttributeCallback::~CHIPThermostatActivePresetHandleAttributeCallback() +{ + JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); + if (env == nullptr) + { + ChipLogError(Zcl, "Could not delete global reference for Java callback"); + return; + } + env->DeleteGlobalRef(javaCallbackRef); +} + +void CHIPThermostatActivePresetHandleAttributeCallback::CallbackFn(void * context, + const chip::app::DataModel::Nullable & value) +{ + chip::DeviceLayer::StackUnlock unlock; + CHIP_ERROR err = CHIP_NO_ERROR; + JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); + jobject javaCallbackRef; + + VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env")); + std::unique_ptr cppCallback( + reinterpret_cast(context), maybeDestroy); + + // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback. + javaCallbackRef = cppCallback.get()->javaCallbackRef; + VerifyOrReturn(javaCallbackRef != nullptr, + ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null")); + + jmethodID javaMethod; + err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "([B)V", &javaMethod); + VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method")); + + jobject javaValue; + if (value.IsNull()) + { + javaValue = nullptr; + } + else + { + jbyteArray javaValueByteArray = env->NewByteArray(static_cast(value.Value().size())); + env->SetByteArrayRegion(javaValueByteArray, 0, static_cast(value.Value().size()), + reinterpret_cast(value.Value().data())); + javaValue = javaValueByteArray; + } + + env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue); +} + +CHIPThermostatActiveScheduleHandleAttributeCallback::CHIPThermostatActiveScheduleHandleAttributeCallback(jobject javaCallback, + bool keepAlive) : + chip::Callback::Callback(CallbackFn, this), keepAlive(keepAlive) +{ + JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); + if (env == nullptr) + { + ChipLogError(Zcl, "Could not create global reference for Java callback"); + return; + } + + javaCallbackRef = env->NewGlobalRef(javaCallback); + if (javaCallbackRef == nullptr) + { + ChipLogError(Zcl, "Could not create global reference for Java callback"); + } +} + +CHIPThermostatActiveScheduleHandleAttributeCallback::~CHIPThermostatActiveScheduleHandleAttributeCallback() +{ + JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); + if (env == nullptr) + { + ChipLogError(Zcl, "Could not delete global reference for Java callback"); + return; + } + env->DeleteGlobalRef(javaCallbackRef); +} + +void CHIPThermostatActiveScheduleHandleAttributeCallback::CallbackFn(void * context, + const chip::app::DataModel::Nullable & value) +{ + chip::DeviceLayer::StackUnlock unlock; + CHIP_ERROR err = CHIP_NO_ERROR; + JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); + jobject javaCallbackRef; + + VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env")); + std::unique_ptr cppCallback( + reinterpret_cast(context), maybeDestroy); + + // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback. + javaCallbackRef = cppCallback.get()->javaCallbackRef; + VerifyOrReturn(javaCallbackRef != nullptr, + ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null")); + + jmethodID javaMethod; + err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "([B)V", &javaMethod); + VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method")); + + jobject javaValue; + if (value.IsNull()) + { + javaValue = nullptr; + } + else + { + jbyteArray javaValueByteArray = env->NewByteArray(static_cast(value.Value().size())); + env->SetByteArrayRegion(javaValueByteArray, 0, static_cast(value.Value().size()), + reinterpret_cast(value.Value().data())); + javaValue = javaValueByteArray; + } + + env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue); +} + +CHIPThermostatPresetsAttributeCallback::CHIPThermostatPresetsAttributeCallback(jobject javaCallback, bool keepAlive) : + chip::Callback::Callback(CallbackFn, this), keepAlive(keepAlive) +{ + JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); + if (env == nullptr) + { + ChipLogError(Zcl, "Could not create global reference for Java callback"); + return; + } + + javaCallbackRef = env->NewGlobalRef(javaCallback); + if (javaCallbackRef == nullptr) + { + ChipLogError(Zcl, "Could not create global reference for Java callback"); + } +} + +CHIPThermostatPresetsAttributeCallback::~CHIPThermostatPresetsAttributeCallback() +{ + JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); + if (env == nullptr) + { + ChipLogError(Zcl, "Could not delete global reference for Java callback"); + return; + } + env->DeleteGlobalRef(javaCallbackRef); +} + +void CHIPThermostatPresetsAttributeCallback::CallbackFn( + void * context, + const chip::app::DataModel::DecodableList & list) +{ + chip::DeviceLayer::StackUnlock unlock; + CHIP_ERROR err = CHIP_NO_ERROR; + JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); + jobject javaCallbackRef; + + VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env")); + + std::unique_ptr cppCallback( + reinterpret_cast(context), maybeDestroy); + + // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback. + javaCallbackRef = cppCallback.get()->javaCallbackRef; + VerifyOrReturn(javaCallbackRef != nullptr, + ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null")); + + jmethodID javaMethod; + err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/util/List;)V", &javaMethod); + VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method")); + + jobject arrayListObj; + chip::JniReferences::GetInstance().CreateArrayList(arrayListObj); + + auto iter_arrayListObj_0 = list.begin(); + while (iter_arrayListObj_0.Next()) + { + auto & entry_0 = iter_arrayListObj_0.GetValue(); + jobject newElement_0; + jobject newElement_0_presetHandle; + if (entry_0.presetHandle.IsNull()) + { + newElement_0_presetHandle = nullptr; + } + else + { + jbyteArray newElement_0_presetHandleByteArray = + env->NewByteArray(static_cast(entry_0.presetHandle.Value().size())); + env->SetByteArrayRegion(newElement_0_presetHandleByteArray, 0, static_cast(entry_0.presetHandle.Value().size()), + reinterpret_cast(entry_0.presetHandle.Value().data())); + newElement_0_presetHandle = newElement_0_presetHandleByteArray; + } + jobject newElement_0_presetScenario; + std::string newElement_0_presetScenarioClassName = "java/lang/Integer"; + std::string newElement_0_presetScenarioCtorSignature = "(I)V"; + jint jninewElement_0_presetScenario = static_cast(entry_0.presetScenario); + chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_presetScenarioClassName.c_str(), + newElement_0_presetScenarioCtorSignature.c_str(), + jninewElement_0_presetScenario, newElement_0_presetScenario); + jobject newElement_0_name; + if (!entry_0.name.HasValue()) + { + chip::JniReferences::GetInstance().CreateOptional(nullptr, newElement_0_name); + } + else + { + jobject newElement_0_nameInsideOptional; + if (entry_0.name.Value().IsNull()) + { + newElement_0_nameInsideOptional = nullptr; + } + else + { + LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.name.Value().Value(), + newElement_0_nameInsideOptional)); + } + chip::JniReferences::GetInstance().CreateOptional(newElement_0_nameInsideOptional, newElement_0_name); + } + jobject newElement_0_coolingSetpoint; + if (!entry_0.coolingSetpoint.HasValue()) + { + chip::JniReferences::GetInstance().CreateOptional(nullptr, newElement_0_coolingSetpoint); + } + else + { + jobject newElement_0_coolingSetpointInsideOptional; + std::string newElement_0_coolingSetpointInsideOptionalClassName = "java/lang/Integer"; + std::string newElement_0_coolingSetpointInsideOptionalCtorSignature = "(I)V"; + jint jninewElement_0_coolingSetpointInsideOptional = static_cast(entry_0.coolingSetpoint.Value()); + chip::JniReferences::GetInstance().CreateBoxedObject( + newElement_0_coolingSetpointInsideOptionalClassName.c_str(), + newElement_0_coolingSetpointInsideOptionalCtorSignature.c_str(), jninewElement_0_coolingSetpointInsideOptional, + newElement_0_coolingSetpointInsideOptional); + chip::JniReferences::GetInstance().CreateOptional(newElement_0_coolingSetpointInsideOptional, + newElement_0_coolingSetpoint); + } + jobject newElement_0_heatingSetpoint; + if (!entry_0.heatingSetpoint.HasValue()) + { + chip::JniReferences::GetInstance().CreateOptional(nullptr, newElement_0_heatingSetpoint); + } + else + { + jobject newElement_0_heatingSetpointInsideOptional; + std::string newElement_0_heatingSetpointInsideOptionalClassName = "java/lang/Integer"; + std::string newElement_0_heatingSetpointInsideOptionalCtorSignature = "(I)V"; + jint jninewElement_0_heatingSetpointInsideOptional = static_cast(entry_0.heatingSetpoint.Value()); + chip::JniReferences::GetInstance().CreateBoxedObject( + newElement_0_heatingSetpointInsideOptionalClassName.c_str(), + newElement_0_heatingSetpointInsideOptionalCtorSignature.c_str(), jninewElement_0_heatingSetpointInsideOptional, + newElement_0_heatingSetpointInsideOptional); + chip::JniReferences::GetInstance().CreateOptional(newElement_0_heatingSetpointInsideOptional, + newElement_0_heatingSetpoint); + } + jobject newElement_0_builtIn; + if (entry_0.builtIn.IsNull()) + { + newElement_0_builtIn = nullptr; + } + else + { + std::string newElement_0_builtInClassName = "java/lang/Boolean"; + std::string newElement_0_builtInCtorSignature = "(Z)V"; + jboolean jninewElement_0_builtIn = static_cast(entry_0.builtIn.Value()); + chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_builtInClassName.c_str(), + newElement_0_builtInCtorSignature.c_str(), + jninewElement_0_builtIn, newElement_0_builtIn); + } + + jclass presetStructStructClass_1; + err = chip::JniReferences::GetInstance().GetClassRef(env, "chip/devicecontroller/ChipStructs$ThermostatClusterPresetStruct", + presetStructStructClass_1); + if (err != CHIP_NO_ERROR) + { + ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterPresetStruct"); + return; + } + jmethodID presetStructStructCtor_1 = env->GetMethodID( + presetStructStructClass_1, "", + "([BLjava/lang/Integer;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/lang/Boolean;)V"); + if (presetStructStructCtor_1 == nullptr) + { + ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterPresetStruct constructor"); + return; + } + + newElement_0 = env->NewObject(presetStructStructClass_1, presetStructStructCtor_1, newElement_0_presetHandle, + newElement_0_presetScenario, newElement_0_name, newElement_0_coolingSetpoint, + newElement_0_heatingSetpoint, newElement_0_builtIn); + chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0); + } + + env->ExceptionClear(); + env->CallVoidMethod(javaCallbackRef, javaMethod, arrayListObj); +} + +CHIPThermostatSchedulesAttributeCallback::CHIPThermostatSchedulesAttributeCallback(jobject javaCallback, bool keepAlive) : + chip::Callback::Callback(CallbackFn, this), keepAlive(keepAlive) +{ + JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); + if (env == nullptr) + { + ChipLogError(Zcl, "Could not create global reference for Java callback"); + return; + } + + javaCallbackRef = env->NewGlobalRef(javaCallback); + if (javaCallbackRef == nullptr) + { + ChipLogError(Zcl, "Could not create global reference for Java callback"); + } +} + +CHIPThermostatSchedulesAttributeCallback::~CHIPThermostatSchedulesAttributeCallback() +{ + JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); + if (env == nullptr) + { + ChipLogError(Zcl, "Could not delete global reference for Java callback"); + return; + } + env->DeleteGlobalRef(javaCallbackRef); +} + +void CHIPThermostatSchedulesAttributeCallback::CallbackFn( + void * context, + const chip::app::DataModel::DecodableList & list) +{ + chip::DeviceLayer::StackUnlock unlock; + CHIP_ERROR err = CHIP_NO_ERROR; + JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); + jobject javaCallbackRef; + + VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env")); + + std::unique_ptr cppCallback( + reinterpret_cast(context), maybeDestroy); + + // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback. + javaCallbackRef = cppCallback.get()->javaCallbackRef; + VerifyOrReturn(javaCallbackRef != nullptr, + ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null")); + + jmethodID javaMethod; + err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/util/List;)V", &javaMethod); + VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method")); + + jobject arrayListObj; + chip::JniReferences::GetInstance().CreateArrayList(arrayListObj); + + auto iter_arrayListObj_0 = list.begin(); + while (iter_arrayListObj_0.Next()) + { + auto & entry_0 = iter_arrayListObj_0.GetValue(); + jobject newElement_0; + jobject newElement_0_scheduleHandle; + if (entry_0.scheduleHandle.IsNull()) + { + newElement_0_scheduleHandle = nullptr; + } + else + { + jbyteArray newElement_0_scheduleHandleByteArray = + env->NewByteArray(static_cast(entry_0.scheduleHandle.Value().size())); + env->SetByteArrayRegion(newElement_0_scheduleHandleByteArray, 0, + static_cast(entry_0.scheduleHandle.Value().size()), + reinterpret_cast(entry_0.scheduleHandle.Value().data())); + newElement_0_scheduleHandle = newElement_0_scheduleHandleByteArray; + } + jobject newElement_0_systemMode; + std::string newElement_0_systemModeClassName = "java/lang/Integer"; + std::string newElement_0_systemModeCtorSignature = "(I)V"; + jint jninewElement_0_systemMode = static_cast(entry_0.systemMode); + chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_systemModeClassName.c_str(), + newElement_0_systemModeCtorSignature.c_str(), + jninewElement_0_systemMode, newElement_0_systemMode); + jobject newElement_0_name; + if (!entry_0.name.HasValue()) + { + chip::JniReferences::GetInstance().CreateOptional(nullptr, newElement_0_name); + } + else + { + jobject newElement_0_nameInsideOptional; + LogErrorOnFailure( + chip::JniReferences::GetInstance().CharToStringUTF(entry_0.name.Value(), newElement_0_nameInsideOptional)); + chip::JniReferences::GetInstance().CreateOptional(newElement_0_nameInsideOptional, newElement_0_name); + } + jobject newElement_0_presetHandle; + if (!entry_0.presetHandle.HasValue()) + { + chip::JniReferences::GetInstance().CreateOptional(nullptr, newElement_0_presetHandle); + } + else + { + jobject newElement_0_presetHandleInsideOptional; + jbyteArray newElement_0_presetHandleInsideOptionalByteArray = + env->NewByteArray(static_cast(entry_0.presetHandle.Value().size())); + env->SetByteArrayRegion(newElement_0_presetHandleInsideOptionalByteArray, 0, + static_cast(entry_0.presetHandle.Value().size()), + reinterpret_cast(entry_0.presetHandle.Value().data())); + newElement_0_presetHandleInsideOptional = newElement_0_presetHandleInsideOptionalByteArray; + chip::JniReferences::GetInstance().CreateOptional(newElement_0_presetHandleInsideOptional, newElement_0_presetHandle); + } + jobject newElement_0_transitions; + chip::JniReferences::GetInstance().CreateArrayList(newElement_0_transitions); + + auto iter_newElement_0_transitions_2 = entry_0.transitions.begin(); + while (iter_newElement_0_transitions_2.Next()) + { + auto & entry_2 = iter_newElement_0_transitions_2.GetValue(); + jobject newElement_2; + jobject newElement_2_dayOfWeek; + std::string newElement_2_dayOfWeekClassName = "java/lang/Integer"; + std::string newElement_2_dayOfWeekCtorSignature = "(I)V"; + jint jninewElement_2_dayOfWeek = static_cast(entry_2.dayOfWeek.Raw()); + chip::JniReferences::GetInstance().CreateBoxedObject(newElement_2_dayOfWeekClassName.c_str(), + newElement_2_dayOfWeekCtorSignature.c_str(), + jninewElement_2_dayOfWeek, newElement_2_dayOfWeek); + jobject newElement_2_transitionTime; + std::string newElement_2_transitionTimeClassName = "java/lang/Integer"; + std::string newElement_2_transitionTimeCtorSignature = "(I)V"; + jint jninewElement_2_transitionTime = static_cast(entry_2.transitionTime); + chip::JniReferences::GetInstance().CreateBoxedObject(newElement_2_transitionTimeClassName.c_str(), + newElement_2_transitionTimeCtorSignature.c_str(), + jninewElement_2_transitionTime, newElement_2_transitionTime); + jobject newElement_2_presetHandle; + if (!entry_2.presetHandle.HasValue()) + { + chip::JniReferences::GetInstance().CreateOptional(nullptr, newElement_2_presetHandle); + } + else + { + jobject newElement_2_presetHandleInsideOptional; + jbyteArray newElement_2_presetHandleInsideOptionalByteArray = + env->NewByteArray(static_cast(entry_2.presetHandle.Value().size())); + env->SetByteArrayRegion(newElement_2_presetHandleInsideOptionalByteArray, 0, + static_cast(entry_2.presetHandle.Value().size()), + reinterpret_cast(entry_2.presetHandle.Value().data())); + newElement_2_presetHandleInsideOptional = newElement_2_presetHandleInsideOptionalByteArray; + chip::JniReferences::GetInstance().CreateOptional(newElement_2_presetHandleInsideOptional, + newElement_2_presetHandle); + } + jobject newElement_2_systemMode; + if (!entry_2.systemMode.HasValue()) + { + chip::JniReferences::GetInstance().CreateOptional(nullptr, newElement_2_systemMode); + } + else + { + jobject newElement_2_systemModeInsideOptional; + std::string newElement_2_systemModeInsideOptionalClassName = "java/lang/Integer"; + std::string newElement_2_systemModeInsideOptionalCtorSignature = "(I)V"; + jint jninewElement_2_systemModeInsideOptional = static_cast(entry_2.systemMode.Value()); + chip::JniReferences::GetInstance().CreateBoxedObject( + newElement_2_systemModeInsideOptionalClassName.c_str(), + newElement_2_systemModeInsideOptionalCtorSignature.c_str(), jninewElement_2_systemModeInsideOptional, + newElement_2_systemModeInsideOptional); + chip::JniReferences::GetInstance().CreateOptional(newElement_2_systemModeInsideOptional, newElement_2_systemMode); + } + jobject newElement_2_coolingSetpoint; + if (!entry_2.coolingSetpoint.HasValue()) + { + chip::JniReferences::GetInstance().CreateOptional(nullptr, newElement_2_coolingSetpoint); + } + else + { + jobject newElement_2_coolingSetpointInsideOptional; + std::string newElement_2_coolingSetpointInsideOptionalClassName = "java/lang/Integer"; + std::string newElement_2_coolingSetpointInsideOptionalCtorSignature = "(I)V"; + jint jninewElement_2_coolingSetpointInsideOptional = static_cast(entry_2.coolingSetpoint.Value()); + chip::JniReferences::GetInstance().CreateBoxedObject( + newElement_2_coolingSetpointInsideOptionalClassName.c_str(), + newElement_2_coolingSetpointInsideOptionalCtorSignature.c_str(), jninewElement_2_coolingSetpointInsideOptional, + newElement_2_coolingSetpointInsideOptional); + chip::JniReferences::GetInstance().CreateOptional(newElement_2_coolingSetpointInsideOptional, + newElement_2_coolingSetpoint); + } + jobject newElement_2_heatingSetpoint; + if (!entry_2.heatingSetpoint.HasValue()) + { + chip::JniReferences::GetInstance().CreateOptional(nullptr, newElement_2_heatingSetpoint); + } + else + { + jobject newElement_2_heatingSetpointInsideOptional; + std::string newElement_2_heatingSetpointInsideOptionalClassName = "java/lang/Integer"; + std::string newElement_2_heatingSetpointInsideOptionalCtorSignature = "(I)V"; + jint jninewElement_2_heatingSetpointInsideOptional = static_cast(entry_2.heatingSetpoint.Value()); + chip::JniReferences::GetInstance().CreateBoxedObject( + newElement_2_heatingSetpointInsideOptionalClassName.c_str(), + newElement_2_heatingSetpointInsideOptionalCtorSignature.c_str(), jninewElement_2_heatingSetpointInsideOptional, + newElement_2_heatingSetpointInsideOptional); + chip::JniReferences::GetInstance().CreateOptional(newElement_2_heatingSetpointInsideOptional, + newElement_2_heatingSetpoint); + } + + jclass scheduleTransitionStructStructClass_3; + err = chip::JniReferences::GetInstance().GetClassRef( + env, "chip/devicecontroller/ChipStructs$ThermostatClusterScheduleTransitionStruct", + scheduleTransitionStructStructClass_3); + if (err != CHIP_NO_ERROR) + { + ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterScheduleTransitionStruct"); + return; + } + jmethodID scheduleTransitionStructStructCtor_3 = + env->GetMethodID(scheduleTransitionStructStructClass_3, "", + "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/" + "Optional;Ljava/util/Optional;)V"); + if (scheduleTransitionStructStructCtor_3 == nullptr) + { + ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterScheduleTransitionStruct constructor"); + return; + } + + newElement_2 = env->NewObject(scheduleTransitionStructStructClass_3, scheduleTransitionStructStructCtor_3, + newElement_2_dayOfWeek, newElement_2_transitionTime, newElement_2_presetHandle, + newElement_2_systemMode, newElement_2_coolingSetpoint, newElement_2_heatingSetpoint); + chip::JniReferences::GetInstance().AddToList(newElement_0_transitions, newElement_2); + } + jobject newElement_0_builtIn; + if (!entry_0.builtIn.HasValue()) + { + chip::JniReferences::GetInstance().CreateOptional(nullptr, newElement_0_builtIn); + } + else + { + jobject newElement_0_builtInInsideOptional; + if (entry_0.builtIn.Value().IsNull()) + { + newElement_0_builtInInsideOptional = nullptr; + } + else + { + std::string newElement_0_builtInInsideOptionalClassName = "java/lang/Boolean"; + std::string newElement_0_builtInInsideOptionalCtorSignature = "(Z)V"; + jboolean jninewElement_0_builtInInsideOptional = static_cast(entry_0.builtIn.Value().Value()); + chip::JniReferences::GetInstance().CreateBoxedObject( + newElement_0_builtInInsideOptionalClassName.c_str(), newElement_0_builtInInsideOptionalCtorSignature.c_str(), + jninewElement_0_builtInInsideOptional, newElement_0_builtInInsideOptional); + } + chip::JniReferences::GetInstance().CreateOptional(newElement_0_builtInInsideOptional, newElement_0_builtIn); + } + + jclass scheduleStructStructClass_1; + err = chip::JniReferences::GetInstance().GetClassRef( + env, "chip/devicecontroller/ChipStructs$ThermostatClusterScheduleStruct", scheduleStructStructClass_1); + if (err != CHIP_NO_ERROR) + { + ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterScheduleStruct"); + return; + } + jmethodID scheduleStructStructCtor_1 = env->GetMethodID( + scheduleStructStructClass_1, "", + "([BLjava/lang/Integer;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/ArrayList;Ljava/util/Optional;)V"); + if (scheduleStructStructCtor_1 == nullptr) + { + ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterScheduleStruct constructor"); + return; + } + + newElement_0 = env->NewObject(scheduleStructStructClass_1, scheduleStructStructCtor_1, newElement_0_scheduleHandle, + newElement_0_systemMode, newElement_0_name, newElement_0_presetHandle, + newElement_0_transitions, newElement_0_builtIn); + chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0); + } + + env->ExceptionClear(); + env->CallVoidMethod(javaCallbackRef, javaMethod, arrayListObj); +} + +CHIPThermostatSetpointHoldExpiryTimestampAttributeCallback::CHIPThermostatSetpointHoldExpiryTimestampAttributeCallback( + jobject javaCallback, bool keepAlive) : + chip::Callback::Callback(CallbackFn, this), + keepAlive(keepAlive) +{ + JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); + if (env == nullptr) + { + ChipLogError(Zcl, "Could not create global reference for Java callback"); + return; + } + + javaCallbackRef = env->NewGlobalRef(javaCallback); + if (javaCallbackRef == nullptr) + { + ChipLogError(Zcl, "Could not create global reference for Java callback"); + } +} + +CHIPThermostatSetpointHoldExpiryTimestampAttributeCallback::~CHIPThermostatSetpointHoldExpiryTimestampAttributeCallback() +{ + JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); + if (env == nullptr) + { + ChipLogError(Zcl, "Could not delete global reference for Java callback"); + return; + } + env->DeleteGlobalRef(javaCallbackRef); +} + +void CHIPThermostatSetpointHoldExpiryTimestampAttributeCallback::CallbackFn(void * context, + const chip::app::DataModel::Nullable & value) +{ + chip::DeviceLayer::StackUnlock unlock; + CHIP_ERROR err = CHIP_NO_ERROR; + JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread(); + jobject javaCallbackRef; + + VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env")); + std::unique_ptr cppCallback( + reinterpret_cast(context), maybeDestroy); + + // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback. + javaCallbackRef = cppCallback.get()->javaCallbackRef; + VerifyOrReturn(javaCallbackRef != nullptr, + ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null")); + + jmethodID javaMethod; + err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/lang/Long;)V", &javaMethod); + VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method")); + + jobject javaValue; + if (value.IsNull()) + { + javaValue = nullptr; + } + else + { + std::string javaValueClassName = "java/lang/Long"; + std::string javaValueCtorSignature = "(J)V"; + jlong jnijavaValue = static_cast(value.Value()); + chip::JniReferences::GetInstance().CreateBoxedObject(javaValueClassName.c_str(), javaValueCtorSignature.c_str(), + jnijavaValue, javaValue); + } + + env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue); +} + CHIPThermostatGeneratedCommandListAttributeCallback::CHIPThermostatGeneratedCommandListAttributeCallback(jobject javaCallback, bool keepAlive) : chip::Callback::Callback(CallbackFn, this), keepAlive(keepAlive) diff --git a/src/controller/python/chip/clusters/CHIPClusters.py b/src/controller/python/chip/clusters/CHIPClusters.py index c515369590f17a..fcc4d27cde3ce1 100644 --- a/src/controller/python/chip/clusters/CHIPClusters.py +++ b/src/controller/python/chip/clusters/CHIPClusters.py @@ -7353,9 +7353,9 @@ class ChipClusters: "commandName": "SetWeeklySchedule", "args": { "numberOfTransitionsForSequence": "int", - "dayOfWeekForSequence": "int", + "dayOfWeekforSequence": "int", "modeForSequence": "int", - "transitions": "ThermostatScheduleTransition", + "transitions": "ThermostatScheduleTransitionStruct", }, }, 0x00000002: { @@ -7372,6 +7372,59 @@ class ChipClusters: "args": { }, }, + 0x00000004: { + "commandId": 0x00000004, + "commandName": "GetRelayStatusLog", + "args": { + }, + }, + 0x00000005: { + "commandId": 0x00000005, + "commandName": "SetActiveScheduleRequest", + "args": { + "scheduleHandle": "bytes", + }, + }, + 0x00000006: { + "commandId": 0x00000006, + "commandName": "SetActivePresetRequest", + "args": { + "presetHandle": "bytes", + "delayMinutes": "int", + }, + }, + 0x00000007: { + "commandId": 0x00000007, + "commandName": "StartPresetsSchedulesEditRequest", + "args": { + "timeoutSeconds": "int", + }, + }, + 0x00000008: { + "commandId": 0x00000008, + "commandName": "CancelPresetsSchedulesEditRequest", + "args": { + }, + }, + 0x00000009: { + "commandId": 0x00000009, + "commandName": "CommitPresetsSchedulesRequest", + "args": { + }, + }, + 0x0000000A: { + "commandId": 0x0000000A, + "commandName": "CancelSetActivePresetRequest", + "args": { + }, + }, + 0x0000000B: { + "commandId": 0x0000000B, + "commandName": "SetTemperatureSetpointHoldPolicy", + "args": { + "temperatureSetpointHoldPolicy": "int", + }, + }, }, "attributes": { 0x00000000: { @@ -7428,13 +7481,6 @@ class ChipClusters: "type": "int", "reportable": True, }, - 0x00000009: { - "attributeName": "HVACSystemTypeConfiguration", - "attributeId": 0x00000009, - "type": "int", - "reportable": True, - "writable": True, - }, 0x00000010: { "attributeName": "LocalTemperatureCalibration", "attributeId": 0x00000010, @@ -7526,6 +7572,12 @@ class ChipClusters: "reportable": True, "writable": True, }, + 0x0000001D: { + "attributeName": "AlarmMask", + "attributeId": 0x0000001D, + "type": "int", + "reportable": True, + }, 0x0000001E: { "attributeName": "ThermostatRunningMode", "attributeId": 0x0000001E, @@ -7689,12 +7741,98 @@ class ChipClusters: "reportable": True, }, 0x00000047: { - "attributeName": "ACCapacityformat", + "attributeName": "ACCapacityFormat", "attributeId": 0x00000047, "type": "int", "reportable": True, "writable": True, }, + 0x00000048: { + "attributeName": "PresetTypes", + "attributeId": 0x00000048, + "type": "", + "reportable": True, + }, + 0x00000049: { + "attributeName": "ScheduleTypes", + "attributeId": 0x00000049, + "type": "", + "reportable": True, + }, + 0x0000004A: { + "attributeName": "NumberOfPresets", + "attributeId": 0x0000004A, + "type": "int", + "reportable": True, + }, + 0x0000004B: { + "attributeName": "NumberOfSchedules", + "attributeId": 0x0000004B, + "type": "int", + "reportable": True, + }, + 0x0000004C: { + "attributeName": "NumberOfScheduleTransitions", + "attributeId": 0x0000004C, + "type": "int", + "reportable": True, + }, + 0x0000004D: { + "attributeName": "NumberOfScheduleTransitionPerDay", + "attributeId": 0x0000004D, + "type": "int", + "reportable": True, + }, + 0x0000004E: { + "attributeName": "ActivePresetHandle", + "attributeId": 0x0000004E, + "type": "bytes", + "reportable": True, + }, + 0x0000004F: { + "attributeName": "ActiveScheduleHandle", + "attributeId": 0x0000004F, + "type": "bytes", + "reportable": True, + }, + 0x00000050: { + "attributeName": "Presets", + "attributeId": 0x00000050, + "type": "", + "reportable": True, + "writable": True, + }, + 0x00000051: { + "attributeName": "Schedules", + "attributeId": 0x00000051, + "type": "", + "reportable": True, + "writable": True, + }, + 0x00000052: { + "attributeName": "PresetsSchedulesEditable", + "attributeId": 0x00000052, + "type": "bool", + "reportable": True, + }, + 0x00000053: { + "attributeName": "TemperatureSetpointHoldPolicy", + "attributeId": 0x00000053, + "type": "int", + "reportable": True, + }, + 0x00000054: { + "attributeName": "SetpointHoldExpiryTimestamp", + "attributeId": 0x00000054, + "type": "int", + "reportable": True, + }, + 0x00000055: { + "attributeName": "QueuedPreset", + "attributeId": 0x00000055, + "type": "", + "reportable": True, + }, 0x0000FFF8: { "attributeName": "GeneratedCommandList", "attributeId": 0x0000FFF8, diff --git a/src/controller/python/chip/clusters/Objects.py b/src/controller/python/chip/clusters/Objects.py index 0fb0d524670e80..bd89ce70747f3c 100644 --- a/src/controller/python/chip/clusters/Objects.py +++ b/src/controller/python/chip/clusters/Objects.py @@ -26163,7 +26163,6 @@ def descriptor(cls) -> ClusterObjectDescriptor: ClusterObjectFieldDescriptor(Label="absMaxCoolSetpointLimit", Tag=0x00000006, Type=typing.Optional[int]), ClusterObjectFieldDescriptor(Label="PICoolingDemand", Tag=0x00000007, Type=typing.Optional[uint]), ClusterObjectFieldDescriptor(Label="PIHeatingDemand", Tag=0x00000008, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="HVACSystemTypeConfiguration", Tag=0x00000009, Type=typing.Optional[uint]), ClusterObjectFieldDescriptor(Label="localTemperatureCalibration", Tag=0x00000010, Type=typing.Optional[int]), ClusterObjectFieldDescriptor(Label="occupiedCoolingSetpoint", Tag=0x00000011, Type=typing.Optional[int]), ClusterObjectFieldDescriptor(Label="occupiedHeatingSetpoint", Tag=0x00000012, Type=typing.Optional[int]), @@ -26175,17 +26174,18 @@ def descriptor(cls) -> ClusterObjectDescriptor: ClusterObjectFieldDescriptor(Label="maxCoolSetpointLimit", Tag=0x00000018, Type=typing.Optional[int]), ClusterObjectFieldDescriptor(Label="minSetpointDeadBand", Tag=0x00000019, Type=typing.Optional[int]), ClusterObjectFieldDescriptor(Label="remoteSensing", Tag=0x0000001A, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="controlSequenceOfOperation", Tag=0x0000001B, Type=Thermostat.Enums.ThermostatControlSequence), - ClusterObjectFieldDescriptor(Label="systemMode", Tag=0x0000001C, Type=uint), - ClusterObjectFieldDescriptor(Label="thermostatRunningMode", Tag=0x0000001E, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="startOfWeek", Tag=0x00000020, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="controlSequenceOfOperation", Tag=0x0000001B, Type=Thermostat.Enums.ThermostatControlSequenceEnum), + ClusterObjectFieldDescriptor(Label="systemMode", Tag=0x0000001C, Type=Thermostat.Enums.ThermostatSystemModeEnum), + ClusterObjectFieldDescriptor(Label="alarmMask", Tag=0x0000001D, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="thermostatRunningMode", Tag=0x0000001E, Type=typing.Optional[Thermostat.Enums.ThermostatRunningModeEnum]), + ClusterObjectFieldDescriptor(Label="startOfWeek", Tag=0x00000020, Type=typing.Optional[Thermostat.Enums.StartOfWeekEnum]), ClusterObjectFieldDescriptor(Label="numberOfWeeklyTransitions", Tag=0x00000021, Type=typing.Optional[uint]), ClusterObjectFieldDescriptor(Label="numberOfDailyTransitions", Tag=0x00000022, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="temperatureSetpointHold", Tag=0x00000023, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="temperatureSetpointHold", Tag=0x00000023, Type=typing.Optional[Thermostat.Enums.TemperatureSetpointHoldEnum]), ClusterObjectFieldDescriptor(Label="temperatureSetpointHoldDuration", Tag=0x00000024, Type=typing.Union[None, Nullable, uint]), ClusterObjectFieldDescriptor(Label="thermostatProgrammingOperationMode", Tag=0x00000025, Type=typing.Optional[uint]), ClusterObjectFieldDescriptor(Label="thermostatRunningState", Tag=0x00000029, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="setpointChangeSource", Tag=0x00000030, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="setpointChangeSource", Tag=0x00000030, Type=typing.Optional[Thermostat.Enums.SetpointChangeSourceEnum]), ClusterObjectFieldDescriptor(Label="setpointChangeAmount", Tag=0x00000031, Type=typing.Union[None, Nullable, int]), ClusterObjectFieldDescriptor(Label="setpointChangeSourceTimestamp", Tag=0x00000032, Type=typing.Optional[uint]), ClusterObjectFieldDescriptor(Label="occupiedSetback", Tag=0x00000034, Type=typing.Union[None, Nullable, uint]), @@ -26195,14 +26195,28 @@ def descriptor(cls) -> ClusterObjectDescriptor: ClusterObjectFieldDescriptor(Label="unoccupiedSetbackMin", Tag=0x00000038, Type=typing.Union[None, Nullable, uint]), ClusterObjectFieldDescriptor(Label="unoccupiedSetbackMax", Tag=0x00000039, Type=typing.Union[None, Nullable, uint]), ClusterObjectFieldDescriptor(Label="emergencyHeatDelta", Tag=0x0000003A, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="ACType", Tag=0x00000040, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="ACType", Tag=0x00000040, Type=typing.Optional[Thermostat.Enums.ACTypeEnum]), ClusterObjectFieldDescriptor(Label="ACCapacity", Tag=0x00000041, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="ACRefrigerantType", Tag=0x00000042, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="ACCompressorType", Tag=0x00000043, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="ACRefrigerantType", Tag=0x00000042, Type=typing.Optional[Thermostat.Enums.ACRefrigerantTypeEnum]), + ClusterObjectFieldDescriptor(Label="ACCompressorType", Tag=0x00000043, Type=typing.Optional[Thermostat.Enums.ACCompressorTypeEnum]), ClusterObjectFieldDescriptor(Label="ACErrorCode", Tag=0x00000044, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="ACLouverPosition", Tag=0x00000045, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="ACLouverPosition", Tag=0x00000045, Type=typing.Optional[Thermostat.Enums.ACLouverPositionEnum]), ClusterObjectFieldDescriptor(Label="ACCoilTemperature", Tag=0x00000046, Type=typing.Union[None, Nullable, int]), - ClusterObjectFieldDescriptor(Label="ACCapacityformat", Tag=0x00000047, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="ACCapacityFormat", Tag=0x00000047, Type=typing.Optional[Thermostat.Enums.ACCapacityFormatEnum]), + ClusterObjectFieldDescriptor(Label="presetTypes", Tag=0x00000048, Type=typing.Optional[typing.List[Thermostat.Structs.PresetTypeStruct]]), + ClusterObjectFieldDescriptor(Label="scheduleTypes", Tag=0x00000049, Type=typing.Optional[typing.List[Thermostat.Structs.ScheduleTypeStruct]]), + ClusterObjectFieldDescriptor(Label="numberOfPresets", Tag=0x0000004A, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="numberOfSchedules", Tag=0x0000004B, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="numberOfScheduleTransitions", Tag=0x0000004C, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="numberOfScheduleTransitionPerDay", Tag=0x0000004D, Type=typing.Union[None, Nullable, uint]), + ClusterObjectFieldDescriptor(Label="activePresetHandle", Tag=0x0000004E, Type=typing.Union[None, Nullable, bytes]), + ClusterObjectFieldDescriptor(Label="activeScheduleHandle", Tag=0x0000004F, Type=typing.Union[None, Nullable, bytes]), + ClusterObjectFieldDescriptor(Label="presets", Tag=0x00000050, Type=typing.Optional[typing.List[Thermostat.Structs.PresetStruct]]), + ClusterObjectFieldDescriptor(Label="schedules", Tag=0x00000051, Type=typing.Optional[typing.List[Thermostat.Structs.ScheduleStruct]]), + ClusterObjectFieldDescriptor(Label="presetsSchedulesEditable", Tag=0x00000052, Type=typing.Optional[bool]), + ClusterObjectFieldDescriptor(Label="temperatureSetpointHoldPolicy", Tag=0x00000053, Type=typing.Optional[uint]), + ClusterObjectFieldDescriptor(Label="setpointHoldExpiryTimestamp", Tag=0x00000054, Type=typing.Union[None, Nullable, uint]), + ClusterObjectFieldDescriptor(Label="queuedPreset", Tag=0x00000055, Type=typing.Union[None, Nullable, Thermostat.Structs.QueuedPresetStruct]), ClusterObjectFieldDescriptor(Label="generatedCommandList", Tag=0x0000FFF8, Type=typing.List[uint]), ClusterObjectFieldDescriptor(Label="acceptedCommandList", Tag=0x0000FFF9, Type=typing.List[uint]), ClusterObjectFieldDescriptor(Label="eventList", Tag=0x0000FFFA, Type=typing.List[uint]), @@ -26220,7 +26234,6 @@ def descriptor(cls) -> ClusterObjectDescriptor: absMaxCoolSetpointLimit: 'typing.Optional[int]' = None PICoolingDemand: 'typing.Optional[uint]' = None PIHeatingDemand: 'typing.Optional[uint]' = None - HVACSystemTypeConfiguration: 'typing.Optional[uint]' = None localTemperatureCalibration: 'typing.Optional[int]' = None occupiedCoolingSetpoint: 'typing.Optional[int]' = None occupiedHeatingSetpoint: 'typing.Optional[int]' = None @@ -26232,17 +26245,18 @@ def descriptor(cls) -> ClusterObjectDescriptor: maxCoolSetpointLimit: 'typing.Optional[int]' = None minSetpointDeadBand: 'typing.Optional[int]' = None remoteSensing: 'typing.Optional[uint]' = None - controlSequenceOfOperation: 'Thermostat.Enums.ThermostatControlSequence' = None - systemMode: 'uint' = None - thermostatRunningMode: 'typing.Optional[uint]' = None - startOfWeek: 'typing.Optional[uint]' = None + controlSequenceOfOperation: 'Thermostat.Enums.ThermostatControlSequenceEnum' = None + systemMode: 'Thermostat.Enums.ThermostatSystemModeEnum' = None + alarmMask: 'typing.Optional[uint]' = None + thermostatRunningMode: 'typing.Optional[Thermostat.Enums.ThermostatRunningModeEnum]' = None + startOfWeek: 'typing.Optional[Thermostat.Enums.StartOfWeekEnum]' = None numberOfWeeklyTransitions: 'typing.Optional[uint]' = None numberOfDailyTransitions: 'typing.Optional[uint]' = None - temperatureSetpointHold: 'typing.Optional[uint]' = None + temperatureSetpointHold: 'typing.Optional[Thermostat.Enums.TemperatureSetpointHoldEnum]' = None temperatureSetpointHoldDuration: 'typing.Union[None, Nullable, uint]' = None thermostatProgrammingOperationMode: 'typing.Optional[uint]' = None thermostatRunningState: 'typing.Optional[uint]' = None - setpointChangeSource: 'typing.Optional[uint]' = None + setpointChangeSource: 'typing.Optional[Thermostat.Enums.SetpointChangeSourceEnum]' = None setpointChangeAmount: 'typing.Union[None, Nullable, int]' = None setpointChangeSourceTimestamp: 'typing.Optional[uint]' = None occupiedSetback: 'typing.Union[None, Nullable, uint]' = None @@ -26252,14 +26266,28 @@ def descriptor(cls) -> ClusterObjectDescriptor: unoccupiedSetbackMin: 'typing.Union[None, Nullable, uint]' = None unoccupiedSetbackMax: 'typing.Union[None, Nullable, uint]' = None emergencyHeatDelta: 'typing.Optional[uint]' = None - ACType: 'typing.Optional[uint]' = None + ACType: 'typing.Optional[Thermostat.Enums.ACTypeEnum]' = None ACCapacity: 'typing.Optional[uint]' = None - ACRefrigerantType: 'typing.Optional[uint]' = None - ACCompressorType: 'typing.Optional[uint]' = None + ACRefrigerantType: 'typing.Optional[Thermostat.Enums.ACRefrigerantTypeEnum]' = None + ACCompressorType: 'typing.Optional[Thermostat.Enums.ACCompressorTypeEnum]' = None ACErrorCode: 'typing.Optional[uint]' = None - ACLouverPosition: 'typing.Optional[uint]' = None + ACLouverPosition: 'typing.Optional[Thermostat.Enums.ACLouverPositionEnum]' = None ACCoilTemperature: 'typing.Union[None, Nullable, int]' = None - ACCapacityformat: 'typing.Optional[uint]' = None + ACCapacityFormat: 'typing.Optional[Thermostat.Enums.ACCapacityFormatEnum]' = None + presetTypes: 'typing.Optional[typing.List[Thermostat.Structs.PresetTypeStruct]]' = None + scheduleTypes: 'typing.Optional[typing.List[Thermostat.Structs.ScheduleTypeStruct]]' = None + numberOfPresets: 'typing.Optional[uint]' = None + numberOfSchedules: 'typing.Optional[uint]' = None + numberOfScheduleTransitions: 'typing.Optional[uint]' = None + numberOfScheduleTransitionPerDay: 'typing.Union[None, Nullable, uint]' = None + activePresetHandle: 'typing.Union[None, Nullable, bytes]' = None + activeScheduleHandle: 'typing.Union[None, Nullable, bytes]' = None + presets: 'typing.Optional[typing.List[Thermostat.Structs.PresetStruct]]' = None + schedules: 'typing.Optional[typing.List[Thermostat.Structs.ScheduleStruct]]' = None + presetsSchedulesEditable: 'typing.Optional[bool]' = None + temperatureSetpointHoldPolicy: 'typing.Optional[uint]' = None + setpointHoldExpiryTimestamp: 'typing.Union[None, Nullable, uint]' = None + queuedPreset: 'typing.Union[None, Nullable, Thermostat.Structs.QueuedPresetStruct]' = None generatedCommandList: 'typing.List[uint]' = None acceptedCommandList: 'typing.List[uint]' = None eventList: 'typing.List[uint]' = None @@ -26268,7 +26296,75 @@ def descriptor(cls) -> ClusterObjectDescriptor: clusterRevision: 'uint' = None class Enums: - class SetpointAdjustMode(MatterIntEnum): + class ACCapacityFormatEnum(MatterIntEnum): + kBTUh = 0x00 + # All received enum values that are not listed above will be mapped + # to kUnknownEnumValue. This is a helper enum value that should only + # be used by code to process how it handles receiving and unknown + # enum value. This specific should never be transmitted. + kUnknownEnumValue = 1, + + class ACCompressorTypeEnum(MatterIntEnum): + kUnknown = 0x00 + kT1 = 0x01 + kT2 = 0x02 + kT3 = 0x03 + # All received enum values that are not listed above will be mapped + # to kUnknownEnumValue. This is a helper enum value that should only + # be used by code to process how it handles receiving and unknown + # enum value. This specific should never be transmitted. + kUnknownEnumValue = 4, + + class ACLouverPositionEnum(MatterIntEnum): + kClosed = 0x01 + kOpen = 0x02 + kQuarter = 0x03 + kHalf = 0x04 + kThreeQuarters = 0x05 + # All received enum values that are not listed above will be mapped + # to kUnknownEnumValue. This is a helper enum value that should only + # be used by code to process how it handles receiving and unknown + # enum value. This specific should never be transmitted. + kUnknownEnumValue = 0, + + class ACRefrigerantTypeEnum(MatterIntEnum): + kUnknown = 0x00 + kR22 = 0x01 + kR410a = 0x02 + kR407c = 0x03 + # All received enum values that are not listed above will be mapped + # to kUnknownEnumValue. This is a helper enum value that should only + # be used by code to process how it handles receiving and unknown + # enum value. This specific should never be transmitted. + kUnknownEnumValue = 4, + + class ACTypeEnum(MatterIntEnum): + kUnknown = 0x00 + kCoolingFixed = 0x01 + kHeatPumpFixed = 0x02 + kCoolingInverter = 0x03 + kHeatPumpInverter = 0x04 + # All received enum values that are not listed above will be mapped + # to kUnknownEnumValue. This is a helper enum value that should only + # be used by code to process how it handles receiving and unknown + # enum value. This specific should never be transmitted. + kUnknownEnumValue = 5, + + class PresetScenarioEnum(MatterIntEnum): + kUnspecified = 0x00 + kOccupied = 0x01 + kUnoccupied = 0x02 + kSleep = 0x03 + kWake = 0x04 + kVacation = 0x05 + kUserDefined = 0x06 + # All received enum values that are not listed above will be mapped + # to kUnknownEnumValue. This is a helper enum value that should only + # be used by code to process how it handles receiving and unknown + # enum value. This specific should never be transmitted. + kUnknownEnumValue = 7, + + class SetpointAdjustModeEnum(MatterIntEnum): kHeat = 0x00 kCool = 0x01 kBoth = 0x02 @@ -26278,7 +26374,40 @@ class SetpointAdjustMode(MatterIntEnum): # enum value. This specific should never be transmitted. kUnknownEnumValue = 3, - class ThermostatControlSequence(MatterIntEnum): + class SetpointChangeSourceEnum(MatterIntEnum): + kManual = 0x00 + kSchedule = 0x01 + kExternal = 0x02 + # All received enum values that are not listed above will be mapped + # to kUnknownEnumValue. This is a helper enum value that should only + # be used by code to process how it handles receiving and unknown + # enum value. This specific should never be transmitted. + kUnknownEnumValue = 3, + + class StartOfWeekEnum(MatterIntEnum): + kSunday = 0x00 + kMonday = 0x01 + kTuesday = 0x02 + kWednesday = 0x03 + kThursday = 0x04 + kFriday = 0x05 + kSaturday = 0x06 + # All received enum values that are not listed above will be mapped + # to kUnknownEnumValue. This is a helper enum value that should only + # be used by code to process how it handles receiving and unknown + # enum value. This specific should never be transmitted. + kUnknownEnumValue = 7, + + class TemperatureSetpointHoldEnum(MatterIntEnum): + kSetpointHoldOff = 0x00 + kSetpointHoldOn = 0x01 + # All received enum values that are not listed above will be mapped + # to kUnknownEnumValue. This is a helper enum value that should only + # be used by code to process how it handles receiving and unknown + # enum value. This specific should never be transmitted. + kUnknownEnumValue = 2, + + class ThermostatControlSequenceEnum(MatterIntEnum): kCoolingOnly = 0x00 kCoolingWithReheat = 0x01 kHeatingOnly = 0x02 @@ -26291,7 +26420,7 @@ class ThermostatControlSequence(MatterIntEnum): # enum value. This specific should never be transmitted. kUnknownEnumValue = 6, - class ThermostatRunningMode(MatterIntEnum): + class ThermostatRunningModeEnum(MatterIntEnum): kOff = 0x00 kCool = 0x03 kHeat = 0x04 @@ -26301,7 +26430,7 @@ class ThermostatRunningMode(MatterIntEnum): # enum value. This specific should never be transmitted. kUnknownEnumValue = 1, - class ThermostatSystemMode(MatterIntEnum): + class ThermostatSystemModeEnum(MatterIntEnum): kOff = 0x00 kAuto = 0x01 kCool = 0x03 @@ -26318,7 +26447,19 @@ class ThermostatSystemMode(MatterIntEnum): kUnknownEnumValue = 2, class Bitmaps: - class DayOfWeek(IntFlag): + class ACErrorCodeBitmap(IntFlag): + kCompressorFail = 0x1 + kRoomSensorFail = 0x2 + kOutdoorSensorFail = 0x4 + kCoilSensorFail = 0x8 + kFanFail = 0x10 + + class AlarmCodeBitmap(IntFlag): + kInitialization = 0x1 + kHardware = 0x2 + kSelfCalibration = 0x4 + + class DayOfWeekBitmap(IntFlag): kSunday = 0x1 kMonday = 0x2 kTuesday = 0x4 @@ -26332,30 +26473,177 @@ class Feature(IntFlag): kHeating = 0x1 kCooling = 0x2 kOccupancy = 0x4 - kScheduleConfiguration = 0x8 + kZigbeeScheduleConfiguration = 0x8 kSetback = 0x10 kAutoMode = 0x20 kLocalTemperatureNotExposed = 0x40 + kMatterScheduleConfiguration = 0x80 + kPresets = 0x100 + kSetpoints = 0x200 + kQueuedPresetsSupported = 0x400 + + class HVACSystemTypeBitmap(IntFlag): + kHeatingType = 0x10 + kHeatingFuel = 0x20 - class ModeForSequence(IntFlag): + class ModeForSequenceBitmap(IntFlag): kHeatSetpointPresent = 0x1 kCoolSetpointPresent = 0x2 + class PresetTypeFeaturesBitmap(IntFlag): + kAutomatic = 0x1 + kSupportsNames = 0x2 + + class ProgrammingOperationModeBitmap(IntFlag): + kScheduleActive = 0x1 + kAutoRecovery = 0x2 + kEconomy = 0x4 + + class RelayStateBitmap(IntFlag): + kHeat = 0x1 + kCool = 0x2 + kFan = 0x4 + kHeatStage2 = 0x8 + kCoolStage2 = 0x10 + kFanStage2 = 0x20 + kFanStage3 = 0x40 + + class RemoteSensingBitmap(IntFlag): + kLocalTemperature = 0x1 + kOutdoorTemperature = 0x2 + kOccupancy = 0x4 + + class ScheduleTypeFeaturesBitmap(IntFlag): + kSupportsPresets = 0x1 + kSupportsSetpoints = 0x2 + kSupportsNames = 0x4 + kSupportsOff = 0x8 + + class TemperatureSetpointHoldPolicyBitmap(IntFlag): + kHoldDurationElapsed = 0x1 + kHoldDurationElapsedOrPresetChanged = 0x2 + class Structs: @dataclass - class ThermostatScheduleTransition(ClusterObject): + class ScheduleTransitionStruct(ClusterObject): + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields=[ + ClusterObjectFieldDescriptor(Label="dayOfWeek", Tag=0, Type=uint), + ClusterObjectFieldDescriptor(Label="transitionTime", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="presetHandle", Tag=2, Type=typing.Optional[bytes]), + ClusterObjectFieldDescriptor(Label="systemMode", Tag=3, Type=typing.Optional[Thermostat.Enums.ThermostatSystemModeEnum]), + ClusterObjectFieldDescriptor(Label="coolingSetpoint", Tag=4, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="heatingSetpoint", Tag=5, Type=typing.Optional[int]), + ]) + + dayOfWeek: 'uint' = 0 + transitionTime: 'uint' = 0 + presetHandle: 'typing.Optional[bytes]' = None + systemMode: 'typing.Optional[Thermostat.Enums.ThermostatSystemModeEnum]' = None + coolingSetpoint: 'typing.Optional[int]' = None + heatingSetpoint: 'typing.Optional[int]' = None + + @dataclass + class ScheduleStruct(ClusterObject): + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields=[ + ClusterObjectFieldDescriptor(Label="scheduleHandle", Tag=0, Type=typing.Union[Nullable, bytes]), + ClusterObjectFieldDescriptor(Label="systemMode", Tag=1, Type=Thermostat.Enums.ThermostatSystemModeEnum), + ClusterObjectFieldDescriptor(Label="name", Tag=2, Type=typing.Optional[str]), + ClusterObjectFieldDescriptor(Label="presetHandle", Tag=3, Type=typing.Optional[bytes]), + ClusterObjectFieldDescriptor(Label="transitions", Tag=4, Type=typing.List[Thermostat.Structs.ScheduleTransitionStruct]), + ClusterObjectFieldDescriptor(Label="builtIn", Tag=5, Type=typing.Union[None, Nullable, bool]), + ]) + + scheduleHandle: 'typing.Union[Nullable, bytes]' = NullValue + systemMode: 'Thermostat.Enums.ThermostatSystemModeEnum' = 0 + name: 'typing.Optional[str]' = None + presetHandle: 'typing.Optional[bytes]' = None + transitions: 'typing.List[Thermostat.Structs.ScheduleTransitionStruct]' = field(default_factory=lambda: []) + builtIn: 'typing.Union[None, Nullable, bool]' = None + + @dataclass + class PresetStruct(ClusterObject): + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields=[ + ClusterObjectFieldDescriptor(Label="presetHandle", Tag=0, Type=typing.Union[Nullable, bytes]), + ClusterObjectFieldDescriptor(Label="presetScenario", Tag=1, Type=Thermostat.Enums.PresetScenarioEnum), + ClusterObjectFieldDescriptor(Label="name", Tag=2, Type=typing.Union[None, Nullable, str]), + ClusterObjectFieldDescriptor(Label="coolingSetpoint", Tag=3, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="heatingSetpoint", Tag=4, Type=typing.Optional[int]), + ClusterObjectFieldDescriptor(Label="builtIn", Tag=5, Type=typing.Union[Nullable, bool]), + ]) + + presetHandle: 'typing.Union[Nullable, bytes]' = NullValue + presetScenario: 'Thermostat.Enums.PresetScenarioEnum' = 0 + name: 'typing.Union[None, Nullable, str]' = None + coolingSetpoint: 'typing.Optional[int]' = None + heatingSetpoint: 'typing.Optional[int]' = None + builtIn: 'typing.Union[Nullable, bool]' = NullValue + + @dataclass + class PresetTypeStruct(ClusterObject): + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields=[ + ClusterObjectFieldDescriptor(Label="presetScenario", Tag=0, Type=Thermostat.Enums.PresetScenarioEnum), + ClusterObjectFieldDescriptor(Label="numberOfPresets", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="presetTypeFeatures", Tag=2, Type=uint), + ]) + + presetScenario: 'Thermostat.Enums.PresetScenarioEnum' = 0 + numberOfPresets: 'uint' = 0 + presetTypeFeatures: 'uint' = 0 + + @dataclass + class QueuedPresetStruct(ClusterObject): + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields=[ + ClusterObjectFieldDescriptor(Label="presetHandle", Tag=0, Type=typing.Union[Nullable, bytes]), + ClusterObjectFieldDescriptor(Label="transitionTimestamp", Tag=1, Type=typing.Union[Nullable, uint]), + ]) + + presetHandle: 'typing.Union[Nullable, bytes]' = NullValue + transitionTimestamp: 'typing.Union[Nullable, uint]' = NullValue + + @dataclass + class ScheduleTypeStruct(ClusterObject): + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields=[ + ClusterObjectFieldDescriptor(Label="systemMode", Tag=0, Type=Thermostat.Enums.ThermostatSystemModeEnum), + ClusterObjectFieldDescriptor(Label="numberOfSchedules", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="scheduleTypeFeatures", Tag=2, Type=uint), + ]) + + systemMode: 'Thermostat.Enums.ThermostatSystemModeEnum' = 0 + numberOfSchedules: 'uint' = 0 + scheduleTypeFeatures: 'uint' = 0 + + @dataclass + class ThermostatScheduleTransitionStruct(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ ClusterObjectFieldDescriptor(Label="transitionTime", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="heatSetpoint", Tag=1, Type=typing.Union[Nullable, int]), - ClusterObjectFieldDescriptor(Label="coolSetpoint", Tag=2, Type=typing.Union[Nullable, int]), + ClusterObjectFieldDescriptor(Label="heatSetpoint", Tag=1, Type=int), + ClusterObjectFieldDescriptor(Label="coolSetpoint", Tag=2, Type=int), ]) transitionTime: 'uint' = 0 - heatSetpoint: 'typing.Union[Nullable, int]' = NullValue - coolSetpoint: 'typing.Union[Nullable, int]' = NullValue + heatSetpoint: 'int' = 0 + coolSetpoint: 'int' = 0 class Commands: @dataclass @@ -26369,11 +26657,11 @@ class SetpointRaiseLower(ClusterCommand): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor(Label="mode", Tag=0, Type=Thermostat.Enums.SetpointAdjustMode), + ClusterObjectFieldDescriptor(Label="mode", Tag=0, Type=Thermostat.Enums.SetpointAdjustModeEnum), ClusterObjectFieldDescriptor(Label="amount", Tag=1, Type=int), ]) - mode: 'Thermostat.Enums.SetpointAdjustMode' = 0 + mode: 'Thermostat.Enums.SetpointAdjustModeEnum' = 0 amount: 'int' = 0 @dataclass @@ -26388,15 +26676,15 @@ def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ ClusterObjectFieldDescriptor(Label="numberOfTransitionsForSequence", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="dayOfWeekForSequence", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="dayOfWeekforSequence", Tag=1, Type=uint), ClusterObjectFieldDescriptor(Label="modeForSequence", Tag=2, Type=uint), - ClusterObjectFieldDescriptor(Label="transitions", Tag=3, Type=typing.List[Thermostat.Structs.ThermostatScheduleTransition]), + ClusterObjectFieldDescriptor(Label="transitions", Tag=3, Type=typing.List[Thermostat.Structs.ThermostatScheduleTransitionStruct]), ]) numberOfTransitionsForSequence: 'uint' = 0 - dayOfWeekForSequence: 'uint' = 0 + dayOfWeekforSequence: 'uint' = 0 modeForSequence: 'uint' = 0 - transitions: 'typing.List[Thermostat.Structs.ThermostatScheduleTransition]' = field(default_factory=lambda: []) + transitions: 'typing.List[Thermostat.Structs.ThermostatScheduleTransitionStruct]' = field(default_factory=lambda: []) @dataclass class SetWeeklySchedule(ClusterCommand): @@ -26410,15 +26698,41 @@ def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ ClusterObjectFieldDescriptor(Label="numberOfTransitionsForSequence", Tag=0, Type=uint), - ClusterObjectFieldDescriptor(Label="dayOfWeekForSequence", Tag=1, Type=uint), + ClusterObjectFieldDescriptor(Label="dayOfWeekforSequence", Tag=1, Type=uint), ClusterObjectFieldDescriptor(Label="modeForSequence", Tag=2, Type=uint), - ClusterObjectFieldDescriptor(Label="transitions", Tag=3, Type=typing.List[Thermostat.Structs.ThermostatScheduleTransition]), + ClusterObjectFieldDescriptor(Label="transitions", Tag=3, Type=typing.List[Thermostat.Structs.ThermostatScheduleTransitionStruct]), ]) numberOfTransitionsForSequence: 'uint' = 0 - dayOfWeekForSequence: 'uint' = 0 + dayOfWeekforSequence: 'uint' = 0 modeForSequence: 'uint' = 0 - transitions: 'typing.List[Thermostat.Structs.ThermostatScheduleTransition]' = field(default_factory=lambda: []) + transitions: 'typing.List[Thermostat.Structs.ThermostatScheduleTransitionStruct]' = field(default_factory=lambda: []) + + @dataclass + class GetRelayStatusLogResponse(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x00000201 + command_id: typing.ClassVar[int] = 0x00000001 + is_client: typing.ClassVar[bool] = False + response_type: typing.ClassVar[str] = None + + @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=typing.Union[Nullable, int]), + ClusterObjectFieldDescriptor(Label="humidityInPercentage", Tag=3, Type=typing.Union[Nullable, uint]), + ClusterObjectFieldDescriptor(Label="setPoint", Tag=4, Type=int), + ClusterObjectFieldDescriptor(Label="unreadEntries", Tag=5, Type=uint), + ]) + + timeOfDay: 'uint' = 0 + relayStatus: 'uint' = 0 + localTemperature: 'typing.Union[Nullable, int]' = NullValue + humidityInPercentage: 'typing.Union[Nullable, uint]' = NullValue + setPoint: 'int' = 0 + unreadEntries: 'uint' = 0 @dataclass class GetWeeklySchedule(ClusterCommand): @@ -26451,6 +26765,124 @@ def descriptor(cls) -> ClusterObjectDescriptor: Fields=[ ]) + @dataclass + class GetRelayStatusLog(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x00000201 + command_id: typing.ClassVar[int] = 0x00000004 + is_client: typing.ClassVar[bool] = True + response_type: typing.ClassVar[str] = 'GetRelayStatusLogResponse' + + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields=[ + ]) + + @dataclass + class SetActiveScheduleRequest(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x00000201 + command_id: typing.ClassVar[int] = 0x00000005 + is_client: typing.ClassVar[bool] = True + response_type: typing.ClassVar[str] = None + + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields=[ + ClusterObjectFieldDescriptor(Label="scheduleHandle", Tag=0, Type=bytes), + ]) + + scheduleHandle: 'bytes' = b"" + + @dataclass + class SetActivePresetRequest(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x00000201 + command_id: typing.ClassVar[int] = 0x00000006 + is_client: typing.ClassVar[bool] = True + response_type: typing.ClassVar[str] = None + + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields=[ + ClusterObjectFieldDescriptor(Label="presetHandle", Tag=0, Type=bytes), + ClusterObjectFieldDescriptor(Label="delayMinutes", Tag=1, Type=typing.Optional[uint]), + ]) + + presetHandle: 'bytes' = b"" + delayMinutes: 'typing.Optional[uint]' = None + + @dataclass + class StartPresetsSchedulesEditRequest(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x00000201 + command_id: typing.ClassVar[int] = 0x00000007 + is_client: typing.ClassVar[bool] = True + response_type: typing.ClassVar[str] = None + + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields=[ + ClusterObjectFieldDescriptor(Label="timeoutSeconds", Tag=0, Type=uint), + ]) + + timeoutSeconds: 'uint' = 0 + + @dataclass + class CancelPresetsSchedulesEditRequest(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x00000201 + command_id: typing.ClassVar[int] = 0x00000008 + is_client: typing.ClassVar[bool] = True + response_type: typing.ClassVar[str] = None + + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields=[ + ]) + + @dataclass + class CommitPresetsSchedulesRequest(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x00000201 + command_id: typing.ClassVar[int] = 0x00000009 + is_client: typing.ClassVar[bool] = True + response_type: typing.ClassVar[str] = None + + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields=[ + ]) + + @dataclass + class CancelSetActivePresetRequest(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x00000201 + command_id: typing.ClassVar[int] = 0x0000000A + is_client: typing.ClassVar[bool] = True + response_type: typing.ClassVar[str] = None + + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields=[ + ]) + + @dataclass + class SetTemperatureSetpointHoldPolicy(ClusterCommand): + cluster_id: typing.ClassVar[int] = 0x00000201 + command_id: typing.ClassVar[int] = 0x0000000B + is_client: typing.ClassVar[bool] = True + response_type: typing.ClassVar[str] = None + + @ChipUtility.classproperty + def descriptor(cls) -> ClusterObjectDescriptor: + return ClusterObjectDescriptor( + Fields=[ + ClusterObjectFieldDescriptor(Label="temperatureSetpointHoldPolicy", Tag=0, Type=uint), + ]) + + temperatureSetpointHoldPolicy: 'uint' = 0 + class Attributes: @dataclass class LocalTemperature(ClusterAttributeDescriptor): @@ -26596,22 +27028,6 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'typing.Optional[uint]' = None - @dataclass - class HVACSystemTypeConfiguration(ClusterAttributeDescriptor): - @ChipUtility.classproperty - def cluster_id(cls) -> int: - return 0x00000201 - - @ChipUtility.classproperty - def attribute_id(cls) -> int: - return 0x00000009 - - @ChipUtility.classproperty - def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) - - value: 'typing.Optional[uint]' = None - @dataclass class LocalTemperatureCalibration(ClusterAttributeDescriptor): @ChipUtility.classproperty @@ -26800,9 +27216,9 @@ def attribute_id(cls) -> int: @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=Thermostat.Enums.ThermostatControlSequence) + return ClusterObjectFieldDescriptor(Type=Thermostat.Enums.ThermostatControlSequenceEnum) - value: 'Thermostat.Enums.ThermostatControlSequence' = 0 + value: 'Thermostat.Enums.ThermostatControlSequenceEnum' = 0 @dataclass class SystemMode(ClusterAttributeDescriptor): @@ -26816,19 +27232,19 @@ def attribute_id(cls) -> int: @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=uint) + return ClusterObjectFieldDescriptor(Type=Thermostat.Enums.ThermostatSystemModeEnum) - value: 'uint' = 0 + value: 'Thermostat.Enums.ThermostatSystemModeEnum' = 0 @dataclass - class ThermostatRunningMode(ClusterAttributeDescriptor): + class AlarmMask(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: return 0x00000201 @ChipUtility.classproperty def attribute_id(cls) -> int: - return 0x0000001E + return 0x0000001D @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: @@ -26836,6 +27252,22 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'typing.Optional[uint]' = None + @dataclass + class ThermostatRunningMode(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x00000201 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x0000001E + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[Thermostat.Enums.ThermostatRunningModeEnum]) + + value: 'typing.Optional[Thermostat.Enums.ThermostatRunningModeEnum]' = None + @dataclass class StartOfWeek(ClusterAttributeDescriptor): @ChipUtility.classproperty @@ -26848,9 +27280,9 @@ def attribute_id(cls) -> int: @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[Thermostat.Enums.StartOfWeekEnum]) - value: 'typing.Optional[uint]' = None + value: 'typing.Optional[Thermostat.Enums.StartOfWeekEnum]' = None @dataclass class NumberOfWeeklyTransitions(ClusterAttributeDescriptor): @@ -26896,9 +27328,9 @@ def attribute_id(cls) -> int: @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[Thermostat.Enums.TemperatureSetpointHoldEnum]) - value: 'typing.Optional[uint]' = None + value: 'typing.Optional[Thermostat.Enums.TemperatureSetpointHoldEnum]' = None @dataclass class TemperatureSetpointHoldDuration(ClusterAttributeDescriptor): @@ -26960,9 +27392,9 @@ def attribute_id(cls) -> int: @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[Thermostat.Enums.SetpointChangeSourceEnum]) - value: 'typing.Optional[uint]' = None + value: 'typing.Optional[Thermostat.Enums.SetpointChangeSourceEnum]' = None @dataclass class SetpointChangeAmount(ClusterAttributeDescriptor): @@ -27120,9 +27552,9 @@ def attribute_id(cls) -> int: @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[Thermostat.Enums.ACTypeEnum]) - value: 'typing.Optional[uint]' = None + value: 'typing.Optional[Thermostat.Enums.ACTypeEnum]' = None @dataclass class ACCapacity(ClusterAttributeDescriptor): @@ -27152,9 +27584,9 @@ def attribute_id(cls) -> int: @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[Thermostat.Enums.ACRefrigerantTypeEnum]) - value: 'typing.Optional[uint]' = None + value: 'typing.Optional[Thermostat.Enums.ACRefrigerantTypeEnum]' = None @dataclass class ACCompressorType(ClusterAttributeDescriptor): @@ -27168,9 +27600,9 @@ def attribute_id(cls) -> int: @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[Thermostat.Enums.ACCompressorTypeEnum]) - value: 'typing.Optional[uint]' = None + value: 'typing.Optional[Thermostat.Enums.ACCompressorTypeEnum]' = None @dataclass class ACErrorCode(ClusterAttributeDescriptor): @@ -27200,9 +27632,9 @@ def attribute_id(cls) -> int: @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + return ClusterObjectFieldDescriptor(Type=typing.Optional[Thermostat.Enums.ACLouverPositionEnum]) - value: 'typing.Optional[uint]' = None + value: 'typing.Optional[Thermostat.Enums.ACLouverPositionEnum]' = None @dataclass class ACCoilTemperature(ClusterAttributeDescriptor): @@ -27221,7 +27653,7 @@ def attribute_type(cls) -> ClusterObjectFieldDescriptor: value: 'typing.Union[None, Nullable, int]' = None @dataclass - class ACCapacityformat(ClusterAttributeDescriptor): + class ACCapacityFormat(ClusterAttributeDescriptor): @ChipUtility.classproperty def cluster_id(cls) -> int: return 0x00000201 @@ -27230,12 +27662,236 @@ def cluster_id(cls) -> int: def attribute_id(cls) -> int: return 0x00000047 + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[Thermostat.Enums.ACCapacityFormatEnum]) + + value: 'typing.Optional[Thermostat.Enums.ACCapacityFormatEnum]' = None + + @dataclass + class PresetTypes(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x00000201 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x00000048 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[typing.List[Thermostat.Structs.PresetTypeStruct]]) + + value: 'typing.Optional[typing.List[Thermostat.Structs.PresetTypeStruct]]' = None + + @dataclass + class ScheduleTypes(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x00000201 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x00000049 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[typing.List[Thermostat.Structs.ScheduleTypeStruct]]) + + value: 'typing.Optional[typing.List[Thermostat.Structs.ScheduleTypeStruct]]' = None + + @dataclass + class NumberOfPresets(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x00000201 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x0000004A + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + + value: 'typing.Optional[uint]' = None + + @dataclass + class NumberOfSchedules(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x00000201 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x0000004B + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + + value: 'typing.Optional[uint]' = None + + @dataclass + class NumberOfScheduleTransitions(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x00000201 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x0000004C + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) + + value: 'typing.Optional[uint]' = None + + @dataclass + class NumberOfScheduleTransitionPerDay(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x00000201 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x0000004D + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Union[None, Nullable, uint]) + + value: 'typing.Union[None, Nullable, uint]' = None + + @dataclass + class ActivePresetHandle(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x00000201 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x0000004E + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Union[None, Nullable, bytes]) + + value: 'typing.Union[None, Nullable, bytes]' = None + + @dataclass + class ActiveScheduleHandle(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x00000201 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x0000004F + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Union[None, Nullable, bytes]) + + value: 'typing.Union[None, Nullable, bytes]' = None + + @dataclass + class Presets(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x00000201 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x00000050 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[typing.List[Thermostat.Structs.PresetStruct]]) + + value: 'typing.Optional[typing.List[Thermostat.Structs.PresetStruct]]' = None + + @dataclass + class Schedules(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x00000201 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x00000051 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[typing.List[Thermostat.Structs.ScheduleStruct]]) + + value: 'typing.Optional[typing.List[Thermostat.Structs.ScheduleStruct]]' = None + + @dataclass + class PresetsSchedulesEditable(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x00000201 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x00000052 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Optional[bool]) + + value: 'typing.Optional[bool]' = None + + @dataclass + class TemperatureSetpointHoldPolicy(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x00000201 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x00000053 + @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: return ClusterObjectFieldDescriptor(Type=typing.Optional[uint]) value: 'typing.Optional[uint]' = None + @dataclass + class SetpointHoldExpiryTimestamp(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x00000201 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x00000054 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Union[None, Nullable, uint]) + + value: 'typing.Union[None, Nullable, uint]' = None + + @dataclass + class QueuedPreset(ClusterAttributeDescriptor): + @ChipUtility.classproperty + def cluster_id(cls) -> int: + return 0x00000201 + + @ChipUtility.classproperty + def attribute_id(cls) -> int: + return 0x00000055 + + @ChipUtility.classproperty + def attribute_type(cls) -> ClusterObjectFieldDescriptor: + return ClusterObjectFieldDescriptor(Type=typing.Union[None, Nullable, Thermostat.Structs.QueuedPresetStruct]) + + value: 'typing.Union[None, Nullable, Thermostat.Structs.QueuedPresetStruct]' = None + @dataclass class GeneratedCommandList(ClusterAttributeDescriptor): @ChipUtility.classproperty diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeSpecifiedCheck.mm b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeSpecifiedCheck.mm index e3218dec479a89..e8549f77e8b8b1 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeSpecifiedCheck.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeSpecifiedCheck.mm @@ -3333,9 +3333,6 @@ static BOOL AttributeIsSpecifiedInThermostatCluster(AttributeId aAttributeId) case Attributes::PIHeatingDemand::Id: { return YES; } - case Attributes::HVACSystemTypeConfiguration::Id: { - return YES; - } case Attributes::LocalTemperatureCalibration::Id: { return YES; } @@ -3375,6 +3372,9 @@ static BOOL AttributeIsSpecifiedInThermostatCluster(AttributeId aAttributeId) case Attributes::SystemMode::Id: { return YES; } + case Attributes::AlarmMask::Id: { + return YES; + } case Attributes::ThermostatRunningMode::Id: { return YES; } @@ -3450,7 +3450,49 @@ static BOOL AttributeIsSpecifiedInThermostatCluster(AttributeId aAttributeId) case Attributes::ACCoilTemperature::Id: { return YES; } - case Attributes::ACCapacityformat::Id: { + case Attributes::ACCapacityFormat::Id: { + return YES; + } + case Attributes::PresetTypes::Id: { + return YES; + } + case Attributes::ScheduleTypes::Id: { + return YES; + } + case Attributes::NumberOfPresets::Id: { + return YES; + } + case Attributes::NumberOfSchedules::Id: { + return YES; + } + case Attributes::NumberOfScheduleTransitions::Id: { + return YES; + } + case Attributes::NumberOfScheduleTransitionPerDay::Id: { + return YES; + } + case Attributes::ActivePresetHandle::Id: { + return YES; + } + case Attributes::ActiveScheduleHandle::Id: { + return YES; + } + case Attributes::Presets::Id: { + return YES; + } + case Attributes::Schedules::Id: { + return YES; + } + case Attributes::PresetsSchedulesEditable::Id: { + return YES; + } + case Attributes::TemperatureSetpointHoldPolicy::Id: { + return YES; + } + case Attributes::SetpointHoldExpiryTimestamp::Id: { + return YES; + } + case Attributes::QueuedPreset::Id: { return YES; } case Attributes::GeneratedCommandList::Id: { diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm index 525a1de60544d6..9c0feb526b4d92 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm @@ -9082,17 +9082,6 @@ static id _Nullable DecodeAttributeValueForThermostatCluster(AttributeId aAttrib value = [NSNumber numberWithUnsignedChar:cppValue]; return value; } - case Attributes::HVACSystemTypeConfiguration::Id: { - using TypeInfo = Attributes::HVACSystemTypeConfiguration::TypeInfo; - TypeInfo::DecodableType cppValue; - *aError = DataModel::Decode(aReader, cppValue); - if (*aError != CHIP_NO_ERROR) { - return nil; - } - NSNumber * _Nonnull value; - value = [NSNumber numberWithUnsignedChar:cppValue]; - return value; - } case Attributes::LocalTemperatureCalibration::Id: { using TypeInfo = Attributes::LocalTemperatureCalibration::TypeInfo; TypeInfo::DecodableType cppValue; @@ -9211,7 +9200,7 @@ static id _Nullable DecodeAttributeValueForThermostatCluster(AttributeId aAttrib return nil; } NSNumber * _Nonnull value; - value = [NSNumber numberWithUnsignedChar:cppValue]; + value = [NSNumber numberWithUnsignedChar:cppValue.Raw()]; return value; } case Attributes::ControlSequenceOfOperation::Id: { @@ -9233,7 +9222,18 @@ static id _Nullable DecodeAttributeValueForThermostatCluster(AttributeId aAttrib return nil; } NSNumber * _Nonnull value; - value = [NSNumber numberWithUnsignedChar:cppValue]; + value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; + return value; + } + case Attributes::AlarmMask::Id: { + using TypeInfo = Attributes::AlarmMask::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) { + return nil; + } + NSNumber * _Nonnull value; + value = [NSNumber numberWithUnsignedChar:cppValue.Raw()]; return value; } case Attributes::ThermostatRunningMode::Id: { @@ -9244,7 +9244,7 @@ static id _Nullable DecodeAttributeValueForThermostatCluster(AttributeId aAttrib return nil; } NSNumber * _Nonnull value; - value = [NSNumber numberWithUnsignedChar:cppValue]; + value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } case Attributes::StartOfWeek::Id: { @@ -9255,7 +9255,7 @@ static id _Nullable DecodeAttributeValueForThermostatCluster(AttributeId aAttrib return nil; } NSNumber * _Nonnull value; - value = [NSNumber numberWithUnsignedChar:cppValue]; + value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } case Attributes::NumberOfWeeklyTransitions::Id: { @@ -9288,7 +9288,7 @@ static id _Nullable DecodeAttributeValueForThermostatCluster(AttributeId aAttrib return nil; } NSNumber * _Nonnull value; - value = [NSNumber numberWithUnsignedChar:cppValue]; + value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } case Attributes::TemperatureSetpointHoldDuration::Id: { @@ -9314,7 +9314,7 @@ static id _Nullable DecodeAttributeValueForThermostatCluster(AttributeId aAttrib return nil; } NSNumber * _Nonnull value; - value = [NSNumber numberWithUnsignedChar:cppValue]; + value = [NSNumber numberWithUnsignedChar:cppValue.Raw()]; return value; } case Attributes::ThermostatRunningState::Id: { @@ -9325,7 +9325,7 @@ static id _Nullable DecodeAttributeValueForThermostatCluster(AttributeId aAttrib return nil; } NSNumber * _Nonnull value; - value = [NSNumber numberWithUnsignedShort:cppValue]; + value = [NSNumber numberWithUnsignedShort:cppValue.Raw()]; return value; } case Attributes::SetpointChangeSource::Id: { @@ -9336,7 +9336,7 @@ static id _Nullable DecodeAttributeValueForThermostatCluster(AttributeId aAttrib return nil; } NSNumber * _Nonnull value; - value = [NSNumber numberWithUnsignedChar:cppValue]; + value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } case Attributes::SetpointChangeAmount::Id: { @@ -9474,7 +9474,7 @@ static id _Nullable DecodeAttributeValueForThermostatCluster(AttributeId aAttrib return nil; } NSNumber * _Nonnull value; - value = [NSNumber numberWithUnsignedChar:cppValue]; + value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } case Attributes::ACCapacity::Id: { @@ -9496,7 +9496,7 @@ static id _Nullable DecodeAttributeValueForThermostatCluster(AttributeId aAttrib return nil; } NSNumber * _Nonnull value; - value = [NSNumber numberWithUnsignedChar:cppValue]; + value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } case Attributes::ACCompressorType::Id: { @@ -9507,7 +9507,7 @@ static id _Nullable DecodeAttributeValueForThermostatCluster(AttributeId aAttrib return nil; } NSNumber * _Nonnull value; - value = [NSNumber numberWithUnsignedChar:cppValue]; + value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } case Attributes::ACErrorCode::Id: { @@ -9518,7 +9518,7 @@ static id _Nullable DecodeAttributeValueForThermostatCluster(AttributeId aAttrib return nil; } NSNumber * _Nonnull value; - value = [NSNumber numberWithUnsignedInt:cppValue]; + value = [NSNumber numberWithUnsignedInt:cppValue.Raw()]; return value; } case Attributes::ACLouverPosition::Id: { @@ -9529,7 +9529,7 @@ static id _Nullable DecodeAttributeValueForThermostatCluster(AttributeId aAttrib return nil; } NSNumber * _Nonnull value; - value = [NSNumber numberWithUnsignedChar:cppValue]; + value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; return value; } case Attributes::ACCoilTemperature::Id: { @@ -9547,8 +9547,77 @@ static id _Nullable DecodeAttributeValueForThermostatCluster(AttributeId aAttrib } return value; } - case Attributes::ACCapacityformat::Id: { - using TypeInfo = Attributes::ACCapacityformat::TypeInfo; + case Attributes::ACCapacityFormat::Id: { + using TypeInfo = Attributes::ACCapacityFormat::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) { + return nil; + } + NSNumber * _Nonnull value; + value = [NSNumber numberWithUnsignedChar:chip::to_underlying(cppValue)]; + return value; + } + case Attributes::PresetTypes::Id: { + using TypeInfo = Attributes::PresetTypes::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) { + return nil; + } + NSArray * _Nonnull value; + { // Scope for our temporary variables + auto * array_0 = [NSMutableArray new]; + auto iter_0 = cppValue.begin(); + while (iter_0.Next()) { + auto & entry_0 = iter_0.GetValue(); + MTRThermostatClusterPresetTypeStruct * newElement_0; + newElement_0 = [MTRThermostatClusterPresetTypeStruct new]; + newElement_0.presetScenario = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.presetScenario)]; + newElement_0.numberOfPresets = [NSNumber numberWithUnsignedChar:entry_0.numberOfPresets]; + newElement_0.presetTypeFeatures = [NSNumber numberWithUnsignedShort:entry_0.presetTypeFeatures.Raw()]; + [array_0 addObject:newElement_0]; + } + CHIP_ERROR err = iter_0.GetStatus(); + if (err != CHIP_NO_ERROR) { + *aError = err; + return nil; + } + value = array_0; + } + return value; + } + case Attributes::ScheduleTypes::Id: { + using TypeInfo = Attributes::ScheduleTypes::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) { + return nil; + } + NSArray * _Nonnull value; + { // Scope for our temporary variables + auto * array_0 = [NSMutableArray new]; + auto iter_0 = cppValue.begin(); + while (iter_0.Next()) { + auto & entry_0 = iter_0.GetValue(); + MTRThermostatClusterScheduleTypeStruct * newElement_0; + newElement_0 = [MTRThermostatClusterScheduleTypeStruct new]; + newElement_0.systemMode = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.systemMode)]; + newElement_0.numberOfSchedules = [NSNumber numberWithUnsignedChar:entry_0.numberOfSchedules]; + newElement_0.scheduleTypeFeatures = [NSNumber numberWithUnsignedShort:entry_0.scheduleTypeFeatures.Raw()]; + [array_0 addObject:newElement_0]; + } + CHIP_ERROR err = iter_0.GetStatus(); + if (err != CHIP_NO_ERROR) { + *aError = err; + return nil; + } + value = array_0; + } + return value; + } + case Attributes::NumberOfPresets::Id: { + using TypeInfo = Attributes::NumberOfPresets::TypeInfo; TypeInfo::DecodableType cppValue; *aError = DataModel::Decode(aReader, cppValue); if (*aError != CHIP_NO_ERROR) { @@ -9558,6 +9627,290 @@ static id _Nullable DecodeAttributeValueForThermostatCluster(AttributeId aAttrib value = [NSNumber numberWithUnsignedChar:cppValue]; return value; } + case Attributes::NumberOfSchedules::Id: { + using TypeInfo = Attributes::NumberOfSchedules::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) { + return nil; + } + NSNumber * _Nonnull value; + value = [NSNumber numberWithUnsignedChar:cppValue]; + return value; + } + case Attributes::NumberOfScheduleTransitions::Id: { + using TypeInfo = Attributes::NumberOfScheduleTransitions::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) { + return nil; + } + NSNumber * _Nonnull value; + value = [NSNumber numberWithUnsignedChar:cppValue]; + return value; + } + case Attributes::NumberOfScheduleTransitionPerDay::Id: { + using TypeInfo = Attributes::NumberOfScheduleTransitionPerDay::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) { + return nil; + } + NSNumber * _Nullable value; + if (cppValue.IsNull()) { + value = nil; + } else { + value = [NSNumber numberWithUnsignedChar:cppValue.Value()]; + } + return value; + } + case Attributes::ActivePresetHandle::Id: { + using TypeInfo = Attributes::ActivePresetHandle::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) { + return nil; + } + NSData * _Nullable value; + if (cppValue.IsNull()) { + value = nil; + } else { + value = AsData(cppValue.Value()); + } + return value; + } + case Attributes::ActiveScheduleHandle::Id: { + using TypeInfo = Attributes::ActiveScheduleHandle::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) { + return nil; + } + NSData * _Nullable value; + if (cppValue.IsNull()) { + value = nil; + } else { + value = AsData(cppValue.Value()); + } + return value; + } + case Attributes::Presets::Id: { + using TypeInfo = Attributes::Presets::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) { + return nil; + } + NSArray * _Nonnull value; + { // Scope for our temporary variables + auto * array_0 = [NSMutableArray new]; + auto iter_0 = cppValue.begin(); + while (iter_0.Next()) { + auto & entry_0 = iter_0.GetValue(); + MTRThermostatClusterPresetStruct * newElement_0; + newElement_0 = [MTRThermostatClusterPresetStruct new]; + if (entry_0.presetHandle.IsNull()) { + newElement_0.presetHandle = nil; + } else { + newElement_0.presetHandle = AsData(entry_0.presetHandle.Value()); + } + newElement_0.presetScenario = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.presetScenario)]; + if (entry_0.name.HasValue()) { + if (entry_0.name.Value().IsNull()) { + newElement_0.name = nil; + } else { + newElement_0.name = AsString(entry_0.name.Value().Value()); + if (newElement_0.name == nil) { + CHIP_ERROR err = CHIP_ERROR_INVALID_ARGUMENT; + *aError = err; + return nil; + } + } + } else { + newElement_0.name = nil; + } + if (entry_0.coolingSetpoint.HasValue()) { + newElement_0.coolingSetpoint = [NSNumber numberWithShort:entry_0.coolingSetpoint.Value()]; + } else { + newElement_0.coolingSetpoint = nil; + } + if (entry_0.heatingSetpoint.HasValue()) { + newElement_0.heatingSetpoint = [NSNumber numberWithShort:entry_0.heatingSetpoint.Value()]; + } else { + newElement_0.heatingSetpoint = nil; + } + if (entry_0.builtIn.IsNull()) { + newElement_0.builtIn = nil; + } else { + newElement_0.builtIn = [NSNumber numberWithBool:entry_0.builtIn.Value()]; + } + [array_0 addObject:newElement_0]; + } + CHIP_ERROR err = iter_0.GetStatus(); + if (err != CHIP_NO_ERROR) { + *aError = err; + return nil; + } + value = array_0; + } + return value; + } + case Attributes::Schedules::Id: { + using TypeInfo = Attributes::Schedules::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) { + return nil; + } + NSArray * _Nonnull value; + { // Scope for our temporary variables + auto * array_0 = [NSMutableArray new]; + auto iter_0 = cppValue.begin(); + while (iter_0.Next()) { + auto & entry_0 = iter_0.GetValue(); + MTRThermostatClusterScheduleStruct * newElement_0; + newElement_0 = [MTRThermostatClusterScheduleStruct new]; + if (entry_0.scheduleHandle.IsNull()) { + newElement_0.scheduleHandle = nil; + } else { + newElement_0.scheduleHandle = AsData(entry_0.scheduleHandle.Value()); + } + newElement_0.systemMode = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.systemMode)]; + if (entry_0.name.HasValue()) { + newElement_0.name = AsString(entry_0.name.Value()); + if (newElement_0.name == nil) { + CHIP_ERROR err = CHIP_ERROR_INVALID_ARGUMENT; + *aError = err; + return nil; + } + } else { + newElement_0.name = nil; + } + if (entry_0.presetHandle.HasValue()) { + newElement_0.presetHandle = AsData(entry_0.presetHandle.Value()); + } else { + newElement_0.presetHandle = nil; + } + { // Scope for our temporary variables + auto * array_2 = [NSMutableArray new]; + auto iter_2 = entry_0.transitions.begin(); + while (iter_2.Next()) { + auto & entry_2 = iter_2.GetValue(); + MTRThermostatClusterScheduleTransitionStruct * newElement_2; + newElement_2 = [MTRThermostatClusterScheduleTransitionStruct new]; + newElement_2.dayOfWeek = [NSNumber numberWithUnsignedChar:entry_2.dayOfWeek.Raw()]; + newElement_2.transitionTime = [NSNumber numberWithUnsignedShort:entry_2.transitionTime]; + if (entry_2.presetHandle.HasValue()) { + newElement_2.presetHandle = AsData(entry_2.presetHandle.Value()); + } else { + newElement_2.presetHandle = nil; + } + if (entry_2.systemMode.HasValue()) { + newElement_2.systemMode = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_2.systemMode.Value())]; + } else { + newElement_2.systemMode = nil; + } + if (entry_2.coolingSetpoint.HasValue()) { + newElement_2.coolingSetpoint = [NSNumber numberWithShort:entry_2.coolingSetpoint.Value()]; + } else { + newElement_2.coolingSetpoint = nil; + } + if (entry_2.heatingSetpoint.HasValue()) { + newElement_2.heatingSetpoint = [NSNumber numberWithShort:entry_2.heatingSetpoint.Value()]; + } else { + newElement_2.heatingSetpoint = nil; + } + [array_2 addObject:newElement_2]; + } + CHIP_ERROR err = iter_2.GetStatus(); + if (err != CHIP_NO_ERROR) { + *aError = err; + return nil; + } + newElement_0.transitions = array_2; + } + if (entry_0.builtIn.HasValue()) { + if (entry_0.builtIn.Value().IsNull()) { + newElement_0.builtIn = nil; + } else { + newElement_0.builtIn = [NSNumber numberWithBool:entry_0.builtIn.Value().Value()]; + } + } else { + newElement_0.builtIn = nil; + } + [array_0 addObject:newElement_0]; + } + CHIP_ERROR err = iter_0.GetStatus(); + if (err != CHIP_NO_ERROR) { + *aError = err; + return nil; + } + value = array_0; + } + return value; + } + case Attributes::PresetsSchedulesEditable::Id: { + using TypeInfo = Attributes::PresetsSchedulesEditable::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) { + return nil; + } + NSNumber * _Nonnull value; + value = [NSNumber numberWithBool:cppValue]; + return value; + } + case Attributes::TemperatureSetpointHoldPolicy::Id: { + using TypeInfo = Attributes::TemperatureSetpointHoldPolicy::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) { + return nil; + } + NSNumber * _Nonnull value; + value = [NSNumber numberWithUnsignedChar:cppValue.Raw()]; + return value; + } + case Attributes::SetpointHoldExpiryTimestamp::Id: { + using TypeInfo = Attributes::SetpointHoldExpiryTimestamp::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) { + return nil; + } + NSNumber * _Nullable value; + if (cppValue.IsNull()) { + value = nil; + } else { + value = [NSNumber numberWithUnsignedInt:cppValue.Value()]; + } + return value; + } + case Attributes::QueuedPreset::Id: { + using TypeInfo = Attributes::QueuedPreset::TypeInfo; + TypeInfo::DecodableType cppValue; + *aError = DataModel::Decode(aReader, cppValue); + if (*aError != CHIP_NO_ERROR) { + return nil; + } + MTRThermostatClusterQueuedPresetStruct * _Nullable value; + if (cppValue.IsNull()) { + value = nil; + } else { + value = [MTRThermostatClusterQueuedPresetStruct new]; + if (cppValue.Value().presetHandle.IsNull()) { + value.presetHandle = nil; + } else { + value.presetHandle = AsData(cppValue.Value().presetHandle.Value()); + } + if (cppValue.Value().transitionTimestamp.IsNull()) { + value.transitionTimestamp = nil; + } else { + value.transitionTimestamp = [NSNumber numberWithUnsignedInt:cppValue.Value().transitionTimestamp.Value()]; + } + } + return value; + } default: { break; } diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h index 286623f906a560..0c9ef25f196b7e 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h @@ -8274,7 +8274,7 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) /** * Cluster Thermostat * - * An interface for configuring and controlling the functionality of a thermostat. + * This cluster provides an interface to the functionality of a thermostat. */ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) @interface MTRBaseClusterThermostat : MTRGenericBaseCluster @@ -8282,29 +8282,85 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) /** * Command SetpointRaiseLower * - * Command description for SetpointRaiseLower + * Upon receipt, the attributes for the indicated setpoint(s) SHALL have the amount specified in the Amount field added to them. If the resulting value is outside the limits imposed by */ - (void)setpointRaiseLowerWithParams:(MTRThermostatClusterSetpointRaiseLowerParams *)params completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); /** * Command SetWeeklySchedule * - * Command description for SetWeeklySchedule + * Upon receipt, the weekly schedule for updating setpoints SHALL be stored in the thermostat and SHOULD begin at the time of receipt. A status code SHALL be sent in response. */ - (void)setWeeklyScheduleWithParams:(MTRThermostatClusterSetWeeklyScheduleParams *)params completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); /** * Command GetWeeklySchedule * - * Command description for GetWeeklySchedule + * Upon receipt, the unit SHOULD send in return the Get Weekly Schedule Response command. The Days to Return and Mode to Return fields are defined as bitmask for the flexibility to support multiple days and multiple modes within one command. If thermostat cannot handle incoming command with multiple days and/or multiple modes within one command, it SHALL send default response of INVALID_COMMAND in return. */ - (void)getWeeklyScheduleWithParams:(MTRThermostatClusterGetWeeklyScheduleParams *)params completion:(void (^)(MTRThermostatClusterGetWeeklyScheduleResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); /** * Command ClearWeeklySchedule * - * The Clear Weekly Schedule command is used to clear the weekly schedule. + * This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. */ - (void)clearWeeklyScheduleWithParams:(MTRThermostatClusterClearWeeklyScheduleParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)clearWeeklyScheduleWithCompletion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +/** + * Command GetRelayStatusLog + * + * This command is used to query the thermostat internal relay status log. This command has no payload. + */ +- (void)getRelayStatusLogWithParams:(MTRThermostatClusterGetRelayStatusLogParams * _Nullable)params completion:(void (^)(MTRThermostatClusterGetRelayStatusLogResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; +- (void)getRelayStatusLogWithCompletion:(void (^)(MTRThermostatClusterGetRelayStatusLogResponseParams * _Nullable data, NSError * _Nullable error))completion + MTR_PROVISIONALLY_AVAILABLE; +/** + * Command SetActiveScheduleRequest + * + * Upon receipt, if the + */ +- (void)setActiveScheduleRequestWithParams:(MTRThermostatClusterSetActiveScheduleRequestParams *)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; +/** + * Command SetActivePresetRequest + * + * Upon receipt, this SHALL set the thermostat + */ +- (void)setActivePresetRequestWithParams:(MTRThermostatClusterSetActivePresetRequestParams *)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; +/** + * Command StartPresetsSchedulesEditRequest + * + * Upon receipt, this SHALL attempt to enable editing of the + */ +- (void)startPresetsSchedulesEditRequestWithParams:(MTRThermostatClusterStartPresetsSchedulesEditRequestParams *)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; +/** + * Command CancelPresetsSchedulesEditRequest + * + * Upon receipt, this SHALL attempt to cancel any active editing of the + */ +- (void)cancelPresetsSchedulesEditRequestWithParams:(MTRThermostatClusterCancelPresetsSchedulesEditRequestParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; +- (void)cancelPresetsSchedulesEditRequestWithCompletion:(MTRStatusCompletion)completion + MTR_PROVISIONALLY_AVAILABLE; +/** + * Command CommitPresetsSchedulesRequest + * + * Upon receipt, this SHALL attempt to commit any pending changes to the + */ +- (void)commitPresetsSchedulesRequestWithParams:(MTRThermostatClusterCommitPresetsSchedulesRequestParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; +- (void)commitPresetsSchedulesRequestWithCompletion:(MTRStatusCompletion)completion + MTR_PROVISIONALLY_AVAILABLE; +/** + * Command CancelSetActivePresetRequest + * + * This command is sent to cancel a queued preset specified by + */ +- (void)cancelSetActivePresetRequestWithParams:(MTRThermostatClusterCancelSetActivePresetRequestParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; +- (void)cancelSetActivePresetRequestWithCompletion:(MTRStatusCompletion)completion + MTR_PROVISIONALLY_AVAILABLE; +/** + * Command SetTemperatureSetpointHoldPolicy + * + * This command is sent to set the + */ +- (void)setTemperatureSetpointHoldPolicyWithParams:(MTRThermostatClusterSetTemperatureSetpointHoldPolicyParams *)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; - (void)readAttributeLocalTemperatureWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)subscribeAttributeLocalTemperatureWithParams:(MTRSubscribeParams *)params @@ -8360,14 +8416,6 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); + (void)readAttributePIHeatingDemandWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); -- (void)readAttributeHVACSystemTypeConfigurationWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); -- (void)writeAttributeHVACSystemTypeConfigurationWithValue:(NSNumber * _Nonnull)value completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); -- (void)writeAttributeHVACSystemTypeConfigurationWithValue:(NSNumber * _Nonnull)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); -- (void)subscribeAttributeHVACSystemTypeConfigurationWithParams:(MTRSubscribeParams *)params - subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished - reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); -+ (void)readAttributeHVACSystemTypeConfigurationWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - - (void)readAttributeLocalTemperatureCalibrationWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)writeAttributeLocalTemperatureCalibrationWithValue:(NSNumber * _Nonnull)value completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)writeAttributeLocalTemperatureCalibrationWithValue:(NSNumber * _Nonnull)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); @@ -8472,6 +8520,12 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); + (void)readAttributeSystemModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +- (void)readAttributeAlarmMaskWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; +- (void)subscribeAttributeAlarmMaskWithParams:(MTRSubscribeParams *)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE; ++ (void)readAttributeAlarmMaskWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; + - (void)readAttributeThermostatRunningModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)subscribeAttributeThermostatRunningModeWithParams:(MTRSubscribeParams *)params subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished @@ -8646,13 +8700,101 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); + (void)readAttributeACCoilTemperatureWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); -- (void)readAttributeACCapacityformatWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); -- (void)writeAttributeACCapacityformatWithValue:(NSNumber * _Nonnull)value completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); -- (void)writeAttributeACCapacityformatWithValue:(NSNumber * _Nonnull)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); -- (void)subscribeAttributeACCapacityformatWithParams:(MTRSubscribeParams *)params +- (void)readAttributeACCapacityFormatWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; +- (void)writeAttributeACCapacityFormatWithValue:(NSNumber * _Nonnull)value completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; +- (void)writeAttributeACCapacityFormatWithValue:(NSNumber * _Nonnull)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; +- (void)subscribeAttributeACCapacityFormatWithParams:(MTRSubscribeParams *)params subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished - reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); -+ (void)readAttributeACCapacityformatWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); + reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE; ++ (void)readAttributeACCapacityFormatWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; + +- (void)readAttributePresetTypesWithCompletion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; +- (void)subscribeAttributePresetTypesWithParams:(MTRSubscribeParams *)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE; ++ (void)readAttributePresetTypesWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; + +- (void)readAttributeScheduleTypesWithCompletion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; +- (void)subscribeAttributeScheduleTypesWithParams:(MTRSubscribeParams *)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE; ++ (void)readAttributeScheduleTypesWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; + +- (void)readAttributeNumberOfPresetsWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; +- (void)subscribeAttributeNumberOfPresetsWithParams:(MTRSubscribeParams *)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE; ++ (void)readAttributeNumberOfPresetsWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; + +- (void)readAttributeNumberOfSchedulesWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; +- (void)subscribeAttributeNumberOfSchedulesWithParams:(MTRSubscribeParams *)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE; ++ (void)readAttributeNumberOfSchedulesWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; + +- (void)readAttributeNumberOfScheduleTransitionsWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; +- (void)subscribeAttributeNumberOfScheduleTransitionsWithParams:(MTRSubscribeParams *)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE; ++ (void)readAttributeNumberOfScheduleTransitionsWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; + +- (void)readAttributeNumberOfScheduleTransitionPerDayWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; +- (void)subscribeAttributeNumberOfScheduleTransitionPerDayWithParams:(MTRSubscribeParams *)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE; ++ (void)readAttributeNumberOfScheduleTransitionPerDayWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; + +- (void)readAttributeActivePresetHandleWithCompletion:(void (^)(NSData * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; +- (void)subscribeAttributeActivePresetHandleWithParams:(MTRSubscribeParams *)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSData * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE; ++ (void)readAttributeActivePresetHandleWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSData * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; + +- (void)readAttributeActiveScheduleHandleWithCompletion:(void (^)(NSData * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; +- (void)subscribeAttributeActiveScheduleHandleWithParams:(MTRSubscribeParams *)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSData * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE; ++ (void)readAttributeActiveScheduleHandleWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSData * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; + +- (void)readAttributePresetsWithCompletion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; +- (void)writeAttributePresetsWithValue:(NSArray * _Nonnull)value completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; +- (void)writeAttributePresetsWithValue:(NSArray * _Nonnull)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; +- (void)subscribeAttributePresetsWithParams:(MTRSubscribeParams *)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE; ++ (void)readAttributePresetsWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; + +- (void)readAttributeSchedulesWithCompletion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; +- (void)writeAttributeSchedulesWithValue:(NSArray * _Nonnull)value completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; +- (void)writeAttributeSchedulesWithValue:(NSArray * _Nonnull)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; +- (void)subscribeAttributeSchedulesWithParams:(MTRSubscribeParams *)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE; ++ (void)readAttributeSchedulesWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; + +- (void)readAttributePresetsSchedulesEditableWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; +- (void)subscribeAttributePresetsSchedulesEditableWithParams:(MTRSubscribeParams *)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE; ++ (void)readAttributePresetsSchedulesEditableWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; + +- (void)readAttributeTemperatureSetpointHoldPolicyWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; +- (void)subscribeAttributeTemperatureSetpointHoldPolicyWithParams:(MTRSubscribeParams *)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE; ++ (void)readAttributeTemperatureSetpointHoldPolicyWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; + +- (void)readAttributeSetpointHoldExpiryTimestampWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; +- (void)subscribeAttributeSetpointHoldExpiryTimestampWithParams:(MTRSubscribeParams *)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE; ++ (void)readAttributeSetpointHoldExpiryTimestampWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; + +- (void)readAttributeQueuedPresetWithCompletion:(void (^)(MTRThermostatClusterQueuedPresetStruct * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; +- (void)subscribeAttributeQueuedPresetWithParams:(MTRSubscribeParams *)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(MTRThermostatClusterQueuedPresetStruct * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE; ++ (void)readAttributeQueuedPresetWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(MTRThermostatClusterQueuedPresetStruct * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; - (void)readAttributeGeneratedCommandListWithCompletion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)subscribeAttributeGeneratedCommandListWithParams:(MTRSubscribeParams *)params @@ -16597,73 +16739,192 @@ typedef NS_OPTIONS(uint16_t, MTRPumpConfigurationAndControlPumpStatus) { MTRPumpConfigurationAndControlPumpStatusRemoteTemperature MTR_DEPRECATED("Please use MTRPumpConfigurationAndControlPumpStatusBitmapRemoteTemperature", ios(16.1, 16.5), macos(13.0, 13.4), watchos(9.1, 9.5), tvos(16.1, 16.5)) = 0x100, } MTR_DEPRECATED("Please use MTRPumpConfigurationAndControlPumpStatusBitmap", ios(16.1, 16.5), macos(13.0, 13.4), watchos(9.1, 9.5), tvos(16.1, 16.5)); +typedef NS_ENUM(uint8_t, MTRThermostatACCapacityFormat) { + MTRThermostatACCapacityFormatBTUh MTR_PROVISIONALLY_AVAILABLE = 0x00, +} MTR_PROVISIONALLY_AVAILABLE; + +typedef NS_ENUM(uint8_t, MTRThermostatACCompressorType) { + MTRThermostatACCompressorTypeUnknown MTR_PROVISIONALLY_AVAILABLE = 0x00, + MTRThermostatACCompressorTypeT1 MTR_PROVISIONALLY_AVAILABLE = 0x01, + MTRThermostatACCompressorTypeT2 MTR_PROVISIONALLY_AVAILABLE = 0x02, + MTRThermostatACCompressorTypeT3 MTR_PROVISIONALLY_AVAILABLE = 0x03, +} MTR_PROVISIONALLY_AVAILABLE; + +typedef NS_ENUM(uint8_t, MTRThermostatACLouverPosition) { + MTRThermostatACLouverPositionClosed MTR_PROVISIONALLY_AVAILABLE = 0x01, + MTRThermostatACLouverPositionOpen MTR_PROVISIONALLY_AVAILABLE = 0x02, + MTRThermostatACLouverPositionQuarter MTR_PROVISIONALLY_AVAILABLE = 0x03, + MTRThermostatACLouverPositionHalf MTR_PROVISIONALLY_AVAILABLE = 0x04, + MTRThermostatACLouverPositionThreeQuarters MTR_PROVISIONALLY_AVAILABLE = 0x05, +} MTR_PROVISIONALLY_AVAILABLE; + +typedef NS_ENUM(uint8_t, MTRThermostatACRefrigerantType) { + MTRThermostatACRefrigerantTypeUnknown MTR_PROVISIONALLY_AVAILABLE = 0x00, + MTRThermostatACRefrigerantTypeR22 MTR_PROVISIONALLY_AVAILABLE = 0x01, + MTRThermostatACRefrigerantTypeR410a MTR_PROVISIONALLY_AVAILABLE = 0x02, + MTRThermostatACRefrigerantTypeR407c MTR_PROVISIONALLY_AVAILABLE = 0x03, +} MTR_PROVISIONALLY_AVAILABLE; + +typedef NS_ENUM(uint8_t, MTRThermostatACType) { + MTRThermostatACTypeUnknown MTR_PROVISIONALLY_AVAILABLE = 0x00, + MTRThermostatACTypeCoolingFixed MTR_PROVISIONALLY_AVAILABLE = 0x01, + MTRThermostatACTypeHeatPumpFixed MTR_PROVISIONALLY_AVAILABLE = 0x02, + MTRThermostatACTypeCoolingInverter MTR_PROVISIONALLY_AVAILABLE = 0x03, + MTRThermostatACTypeHeatPumpInverter MTR_PROVISIONALLY_AVAILABLE = 0x04, +} MTR_PROVISIONALLY_AVAILABLE; + +typedef NS_ENUM(uint8_t, MTRThermostatPresetScenario) { + MTRThermostatPresetScenarioUnspecified MTR_PROVISIONALLY_AVAILABLE = 0x00, + MTRThermostatPresetScenarioOccupied MTR_PROVISIONALLY_AVAILABLE = 0x01, + MTRThermostatPresetScenarioUnoccupied MTR_PROVISIONALLY_AVAILABLE = 0x02, + MTRThermostatPresetScenarioSleep MTR_PROVISIONALLY_AVAILABLE = 0x03, + MTRThermostatPresetScenarioWake MTR_PROVISIONALLY_AVAILABLE = 0x04, + MTRThermostatPresetScenarioVacation MTR_PROVISIONALLY_AVAILABLE = 0x05, + MTRThermostatPresetScenarioUserDefined MTR_PROVISIONALLY_AVAILABLE = 0x06, +} MTR_PROVISIONALLY_AVAILABLE; + typedef NS_ENUM(uint8_t, MTRThermostatSetpointAdjustMode) { - MTRThermostatSetpointAdjustModeHeat MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x00, - MTRThermostatSetpointAdjustModeHeatSetpoint MTR_DEPRECATED("Please use MTRThermostatSetpointAdjustModeHeat", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)) = 0x00, - MTRThermostatSetpointAdjustModeCool MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x01, - MTRThermostatSetpointAdjustModeCoolSetpoint MTR_DEPRECATED("Please use MTRThermostatSetpointAdjustModeCool", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)) = 0x01, - MTRThermostatSetpointAdjustModeBoth MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x02, - MTRThermostatSetpointAdjustModeHeatAndCoolSetpoints MTR_DEPRECATED("Please use MTRThermostatSetpointAdjustModeBoth", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)) = 0x02, -} MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); + MTRThermostatSetpointAdjustModeHeat MTR_PROVISIONALLY_AVAILABLE = 0x00, + MTRThermostatSetpointAdjustModeCool MTR_PROVISIONALLY_AVAILABLE = 0x01, + MTRThermostatSetpointAdjustModeBoth MTR_PROVISIONALLY_AVAILABLE = 0x02, +} MTR_PROVISIONALLY_AVAILABLE; + +typedef NS_ENUM(uint8_t, MTRThermostatSetpointChangeSource) { + MTRThermostatSetpointChangeSourceManual MTR_PROVISIONALLY_AVAILABLE = 0x00, + MTRThermostatSetpointChangeSourceSchedule MTR_PROVISIONALLY_AVAILABLE = 0x01, + MTRThermostatSetpointChangeSourceExternal MTR_PROVISIONALLY_AVAILABLE = 0x02, +} MTR_PROVISIONALLY_AVAILABLE; + +typedef NS_ENUM(uint8_t, MTRThermostatStartOfWeek) { + MTRThermostatStartOfWeekSunday MTR_PROVISIONALLY_AVAILABLE = 0x00, + MTRThermostatStartOfWeekMonday MTR_PROVISIONALLY_AVAILABLE = 0x01, + MTRThermostatStartOfWeekTuesday MTR_PROVISIONALLY_AVAILABLE = 0x02, + MTRThermostatStartOfWeekWednesday MTR_PROVISIONALLY_AVAILABLE = 0x03, + MTRThermostatStartOfWeekThursday MTR_PROVISIONALLY_AVAILABLE = 0x04, + MTRThermostatStartOfWeekFriday MTR_PROVISIONALLY_AVAILABLE = 0x05, + MTRThermostatStartOfWeekSaturday MTR_PROVISIONALLY_AVAILABLE = 0x06, +} MTR_PROVISIONALLY_AVAILABLE; + +typedef NS_ENUM(uint8_t, MTRThermostatTemperatureSetpointHold) { + MTRThermostatTemperatureSetpointHoldSetpointHoldOff MTR_PROVISIONALLY_AVAILABLE = 0x00, + MTRThermostatTemperatureSetpointHoldSetpointHoldOn MTR_PROVISIONALLY_AVAILABLE = 0x01, +} MTR_PROVISIONALLY_AVAILABLE; typedef NS_ENUM(uint8_t, MTRThermostatControlSequence) { - MTRThermostatControlSequenceCoolingOnly MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x00, - MTRThermostatControlSequenceCoolingWithReheat MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x01, - MTRThermostatControlSequenceHeatingOnly MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x02, - MTRThermostatControlSequenceHeatingWithReheat MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x03, - MTRThermostatControlSequenceCoolingAndHeating MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x04, - MTRThermostatControlSequenceCoolingAndHeatingWithReheat MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x05, -} MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); + MTRThermostatControlSequenceCoolingOnly MTR_PROVISIONALLY_AVAILABLE = 0x00, + MTRThermostatControlSequenceCoolingWithReheat MTR_PROVISIONALLY_AVAILABLE = 0x01, + MTRThermostatControlSequenceHeatingOnly MTR_PROVISIONALLY_AVAILABLE = 0x02, + MTRThermostatControlSequenceHeatingWithReheat MTR_PROVISIONALLY_AVAILABLE = 0x03, + MTRThermostatControlSequenceCoolingAndHeating MTR_PROVISIONALLY_AVAILABLE = 0x04, + MTRThermostatControlSequenceCoolingAndHeatingWithReheat MTR_PROVISIONALLY_AVAILABLE = 0x05, +} MTR_PROVISIONALLY_AVAILABLE; typedef NS_ENUM(uint8_t, MTRThermostatRunningMode) { - MTRThermostatRunningModeOff MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x00, - MTRThermostatRunningModeCool MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x03, - MTRThermostatRunningModeHeat MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x04, -} MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); + MTRThermostatRunningModeOff MTR_PROVISIONALLY_AVAILABLE = 0x00, + MTRThermostatRunningModeCool MTR_PROVISIONALLY_AVAILABLE = 0x03, + MTRThermostatRunningModeHeat MTR_PROVISIONALLY_AVAILABLE = 0x04, +} MTR_PROVISIONALLY_AVAILABLE; typedef NS_ENUM(uint8_t, MTRThermostatSystemMode) { - MTRThermostatSystemModeOff MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x00, - MTRThermostatSystemModeAuto MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x01, - MTRThermostatSystemModeCool MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x03, - MTRThermostatSystemModeHeat MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x04, - MTRThermostatSystemModeEmergencyHeat MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x05, - MTRThermostatSystemModeEmergencyHeating MTR_DEPRECATED("Please use MTRThermostatSystemModeEmergencyHeat", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)) = 0x05, - MTRThermostatSystemModePrecooling MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x06, - MTRThermostatSystemModeFanOnly MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x07, - MTRThermostatSystemModeDry MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x08, - MTRThermostatSystemModeSleep MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x09, -} MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); + MTRThermostatSystemModeOff MTR_PROVISIONALLY_AVAILABLE = 0x00, + MTRThermostatSystemModeAuto MTR_PROVISIONALLY_AVAILABLE = 0x01, + MTRThermostatSystemModeCool MTR_PROVISIONALLY_AVAILABLE = 0x03, + MTRThermostatSystemModeHeat MTR_PROVISIONALLY_AVAILABLE = 0x04, + MTRThermostatSystemModeEmergencyHeat MTR_PROVISIONALLY_AVAILABLE = 0x05, + MTRThermostatSystemModePrecooling MTR_PROVISIONALLY_AVAILABLE = 0x06, + MTRThermostatSystemModeFanOnly MTR_PROVISIONALLY_AVAILABLE = 0x07, + MTRThermostatSystemModeDry MTR_PROVISIONALLY_AVAILABLE = 0x08, + MTRThermostatSystemModeSleep MTR_PROVISIONALLY_AVAILABLE = 0x09, +} MTR_PROVISIONALLY_AVAILABLE; -typedef NS_OPTIONS(uint8_t, MTRThermostatDayOfWeek) { - MTRThermostatDayOfWeekSunday MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x1, - MTRThermostatDayOfWeekMonday MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x2, - MTRThermostatDayOfWeekTuesday MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x4, - MTRThermostatDayOfWeekWednesday MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x8, - MTRThermostatDayOfWeekThursday MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x10, - MTRThermostatDayOfWeekFriday MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x20, - MTRThermostatDayOfWeekSaturday MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x40, - MTRThermostatDayOfWeekAway MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x80, - MTRThermostatDayOfWeekAwayOrVacation MTR_DEPRECATED("Please use MTRThermostatDayOfWeekAway", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)) = 0x80, -} MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); +typedef NS_OPTIONS(uint32_t, MTRThermostatACErrorCodeBitmap) { + MTRThermostatACErrorCodeBitmapCompressorFail MTR_PROVISIONALLY_AVAILABLE = 0x1, + MTRThermostatACErrorCodeBitmapRoomSensorFail MTR_PROVISIONALLY_AVAILABLE = 0x2, + MTRThermostatACErrorCodeBitmapOutdoorSensorFail MTR_PROVISIONALLY_AVAILABLE = 0x4, + MTRThermostatACErrorCodeBitmapCoilSensorFail MTR_PROVISIONALLY_AVAILABLE = 0x8, + MTRThermostatACErrorCodeBitmapFanFail MTR_PROVISIONALLY_AVAILABLE = 0x10, +} MTR_PROVISIONALLY_AVAILABLE; + +typedef NS_OPTIONS(uint8_t, MTRThermostatAlarmCodeBitmap) { + MTRThermostatAlarmCodeBitmapInitialization MTR_PROVISIONALLY_AVAILABLE = 0x1, + MTRThermostatAlarmCodeBitmapHardware MTR_PROVISIONALLY_AVAILABLE = 0x2, + MTRThermostatAlarmCodeBitmapSelfCalibration MTR_PROVISIONALLY_AVAILABLE = 0x4, +} MTR_PROVISIONALLY_AVAILABLE; + +typedef NS_OPTIONS(uint8_t, MTRThermostatDayOfWeekBitmap) { + MTRThermostatDayOfWeekBitmapSunday MTR_PROVISIONALLY_AVAILABLE = 0x1, + MTRThermostatDayOfWeekBitmapMonday MTR_PROVISIONALLY_AVAILABLE = 0x2, + MTRThermostatDayOfWeekBitmapTuesday MTR_PROVISIONALLY_AVAILABLE = 0x4, + MTRThermostatDayOfWeekBitmapWednesday MTR_PROVISIONALLY_AVAILABLE = 0x8, + MTRThermostatDayOfWeekBitmapThursday MTR_PROVISIONALLY_AVAILABLE = 0x10, + MTRThermostatDayOfWeekBitmapFriday MTR_PROVISIONALLY_AVAILABLE = 0x20, + MTRThermostatDayOfWeekBitmapSaturday MTR_PROVISIONALLY_AVAILABLE = 0x40, + MTRThermostatDayOfWeekBitmapAway MTR_PROVISIONALLY_AVAILABLE = 0x80, +} MTR_PROVISIONALLY_AVAILABLE; typedef NS_OPTIONS(uint32_t, MTRThermostatFeature) { MTRThermostatFeatureHeating MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x1, MTRThermostatFeatureCooling MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x2, MTRThermostatFeatureOccupancy MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x4, - MTRThermostatFeatureScheduleConfiguration MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x8, - MTRThermostatFeatureSchedule MTR_DEPRECATED("Please use MTRThermostatFeatureScheduleConfiguration", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)) = 0x8, + MTRThermostatFeatureZigbeeScheduleConfiguration MTR_PROVISIONALLY_AVAILABLE = 0x8, MTRThermostatFeatureSetback MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x10, MTRThermostatFeatureAutoMode MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x20, MTRThermostatFeatureAutomode MTR_DEPRECATED("Please use MTRThermostatFeatureAutoMode", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)) = 0x20, MTRThermostatFeatureLocalTemperatureNotExposed MTR_AVAILABLE(ios(17.0), macos(14.0), watchos(10.0), tvos(17.0)) = 0x40, + MTRThermostatFeatureMatterScheduleConfiguration MTR_PROVISIONALLY_AVAILABLE = 0x80, + MTRThermostatFeaturePresets MTR_PROVISIONALLY_AVAILABLE = 0x100, + MTRThermostatFeatureSetpoints MTR_PROVISIONALLY_AVAILABLE = 0x200, + MTRThermostatFeatureQueuedPresetsSupported MTR_PROVISIONALLY_AVAILABLE = 0x400, } MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); -typedef NS_OPTIONS(uint8_t, MTRThermostatModeForSequence) { - MTRThermostatModeForSequenceHeatSetpointPresent MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x1, - MTRThermostatModeForSequenceHeatSetpointFieldPresent MTR_DEPRECATED("Please use MTRThermostatModeForSequenceHeatSetpointPresent", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)) = 0x1, - MTRThermostatModeForSequenceCoolSetpointPresent MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x2, - MTRThermostatModeForSequenceCoolSetpointFieldPresent MTR_DEPRECATED("Please use MTRThermostatModeForSequenceCoolSetpointPresent", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)) = 0x2, -} MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); +typedef NS_OPTIONS(uint8_t, MTRThermostatHVACSystemTypeBitmap) { + MTRThermostatHVACSystemTypeBitmapHeatingType MTR_PROVISIONALLY_AVAILABLE = 0x10, + MTRThermostatHVACSystemTypeBitmapHeatingFuel MTR_PROVISIONALLY_AVAILABLE = 0x20, +} MTR_PROVISIONALLY_AVAILABLE; + +typedef NS_OPTIONS(uint8_t, MTRThermostatModeForSequenceBitmap) { + MTRThermostatModeForSequenceBitmapHeatSetpointPresent MTR_PROVISIONALLY_AVAILABLE = 0x1, + MTRThermostatModeForSequenceBitmapCoolSetpointPresent MTR_PROVISIONALLY_AVAILABLE = 0x2, +} MTR_PROVISIONALLY_AVAILABLE; + +typedef NS_OPTIONS(uint16_t, MTRThermostatPresetTypeFeaturesBitmap) { + MTRThermostatPresetTypeFeaturesBitmapAutomatic MTR_PROVISIONALLY_AVAILABLE = 0x1, + MTRThermostatPresetTypeFeaturesBitmapSupportsNames MTR_PROVISIONALLY_AVAILABLE = 0x2, +} MTR_PROVISIONALLY_AVAILABLE; + +typedef NS_OPTIONS(uint8_t, MTRThermostatProgrammingOperationModeBitmap) { + MTRThermostatProgrammingOperationModeBitmapScheduleActive MTR_PROVISIONALLY_AVAILABLE = 0x1, + MTRThermostatProgrammingOperationModeBitmapAutoRecovery MTR_PROVISIONALLY_AVAILABLE = 0x2, + MTRThermostatProgrammingOperationModeBitmapEconomy MTR_PROVISIONALLY_AVAILABLE = 0x4, +} MTR_PROVISIONALLY_AVAILABLE; + +typedef NS_OPTIONS(uint16_t, MTRThermostatRelayStateBitmap) { + MTRThermostatRelayStateBitmapHeat MTR_PROVISIONALLY_AVAILABLE = 0x1, + MTRThermostatRelayStateBitmapCool MTR_PROVISIONALLY_AVAILABLE = 0x2, + MTRThermostatRelayStateBitmapFan MTR_PROVISIONALLY_AVAILABLE = 0x4, + MTRThermostatRelayStateBitmapHeatStage2 MTR_PROVISIONALLY_AVAILABLE = 0x8, + MTRThermostatRelayStateBitmapCoolStage2 MTR_PROVISIONALLY_AVAILABLE = 0x10, + MTRThermostatRelayStateBitmapFanStage2 MTR_PROVISIONALLY_AVAILABLE = 0x20, + MTRThermostatRelayStateBitmapFanStage3 MTR_PROVISIONALLY_AVAILABLE = 0x40, +} MTR_PROVISIONALLY_AVAILABLE; + +typedef NS_OPTIONS(uint8_t, MTRThermostatRemoteSensingBitmap) { + MTRThermostatRemoteSensingBitmapLocalTemperature MTR_PROVISIONALLY_AVAILABLE = 0x1, + MTRThermostatRemoteSensingBitmapOutdoorTemperature MTR_PROVISIONALLY_AVAILABLE = 0x2, + MTRThermostatRemoteSensingBitmapOccupancy MTR_PROVISIONALLY_AVAILABLE = 0x4, +} MTR_PROVISIONALLY_AVAILABLE; + +typedef NS_OPTIONS(uint16_t, MTRThermostatScheduleTypeFeaturesBitmap) { + MTRThermostatScheduleTypeFeaturesBitmapSupportsPresets MTR_PROVISIONALLY_AVAILABLE = 0x1, + MTRThermostatScheduleTypeFeaturesBitmapSupportsSetpoints MTR_PROVISIONALLY_AVAILABLE = 0x2, + MTRThermostatScheduleTypeFeaturesBitmapSupportsNames MTR_PROVISIONALLY_AVAILABLE = 0x4, + MTRThermostatScheduleTypeFeaturesBitmapSupportsOff MTR_PROVISIONALLY_AVAILABLE = 0x8, +} MTR_PROVISIONALLY_AVAILABLE; + +typedef NS_OPTIONS(uint8_t, MTRThermostatTemperatureSetpointHoldPolicyBitmap) { + MTRThermostatTemperatureSetpointHoldPolicyBitmapHoldDurationElapsed MTR_PROVISIONALLY_AVAILABLE = 0x1, + MTRThermostatTemperatureSetpointHoldPolicyBitmapHoldDurationElapsedOrPresetChanged MTR_PROVISIONALLY_AVAILABLE = 0x2, +} MTR_PROVISIONALLY_AVAILABLE; typedef NS_ENUM(uint8_t, MTRFanControlAirflowDirection) { MTRFanControlAirflowDirectionForward MTR_PROVISIONALLY_AVAILABLE = 0x00, @@ -22517,15 +22778,6 @@ typedef NS_OPTIONS(uint8_t, MTRTestClusterSimpleBitmap) { reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_DEPRECATED("Please use subscribeAttributePIHeatingDemandWithParams:subscriptionEstablished:", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)); + (void)readAttributePIHeatingDemandWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler MTR_DEPRECATED("Please use readAttributePIHeatingDemandWithAttributeCache:endpoint:queue:completion:", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)); -- (void)readAttributeHVACSystemTypeConfigurationWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler MTR_DEPRECATED("Please use readAttributeHVACSystemTypeConfigurationWithCompletion:", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)); -- (void)writeAttributeHVACSystemTypeConfigurationWithValue:(NSNumber * _Nonnull)value completionHandler:(MTRStatusCompletion)completionHandler MTR_DEPRECATED("Please use writeAttributeHVACSystemTypeConfigurationWithValue:completion:", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)); -- (void)writeAttributeHVACSystemTypeConfigurationWithValue:(NSNumber * _Nonnull)value params:(MTRWriteParams * _Nullable)params completionHandler:(MTRStatusCompletion)completionHandler MTR_DEPRECATED("Please use writeAttributeHVACSystemTypeConfigurationWithValue:params:completion:", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)); -- (void)subscribeAttributeHVACSystemTypeConfigurationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(MTRSubscribeParams * _Nullable)params - subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_DEPRECATED("Please use subscribeAttributeHVACSystemTypeConfigurationWithParams:subscriptionEstablished:", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)); -+ (void)readAttributeHVACSystemTypeConfigurationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler MTR_DEPRECATED("Please use readAttributeHVACSystemTypeConfigurationWithAttributeCache:endpoint:queue:completion:", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)); - - (void)readAttributeLocalTemperatureCalibrationWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler MTR_DEPRECATED("Please use readAttributeLocalTemperatureCalibrationWithCompletion:", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)); - (void)writeAttributeLocalTemperatureCalibrationWithValue:(NSNumber * _Nonnull)value completionHandler:(MTRStatusCompletion)completionHandler MTR_DEPRECATED("Please use writeAttributeLocalTemperatureCalibrationWithValue:completion:", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)); - (void)writeAttributeLocalTemperatureCalibrationWithValue:(NSNumber * _Nonnull)value params:(MTRWriteParams * _Nullable)params completionHandler:(MTRStatusCompletion)completionHandler MTR_DEPRECATED("Please use writeAttributeLocalTemperatureCalibrationWithValue:params:completion:", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)); @@ -22842,15 +23094,6 @@ typedef NS_OPTIONS(uint8_t, MTRTestClusterSimpleBitmap) { reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_DEPRECATED("Please use subscribeAttributeACCoilTemperatureWithParams:subscriptionEstablished:", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)); + (void)readAttributeACCoilTemperatureWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler MTR_DEPRECATED("Please use readAttributeACCoilTemperatureWithAttributeCache:endpoint:queue:completion:", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)); -- (void)readAttributeACCapacityformatWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler MTR_DEPRECATED("Please use readAttributeACCapacityformatWithCompletion:", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)); -- (void)writeAttributeACCapacityformatWithValue:(NSNumber * _Nonnull)value completionHandler:(MTRStatusCompletion)completionHandler MTR_DEPRECATED("Please use writeAttributeACCapacityformatWithValue:completion:", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)); -- (void)writeAttributeACCapacityformatWithValue:(NSNumber * _Nonnull)value params:(MTRWriteParams * _Nullable)params completionHandler:(MTRStatusCompletion)completionHandler MTR_DEPRECATED("Please use writeAttributeACCapacityformatWithValue:params:completion:", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)); -- (void)subscribeAttributeACCapacityformatWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(MTRSubscribeParams * _Nullable)params - subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_DEPRECATED("Please use subscribeAttributeACCapacityformatWithParams:subscriptionEstablished:", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)); -+ (void)readAttributeACCapacityformatWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler MTR_DEPRECATED("Please use readAttributeACCapacityformatWithAttributeCache:endpoint:queue:completion:", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)); - - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler MTR_DEPRECATED("Please use readAttributeGeneratedCommandListWithCompletion:", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)); - (void)subscribeAttributeGeneratedCommandListWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval params:(MTRSubscribeParams * _Nullable)params diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm index 9d0ea6348d8ccb..084067e150f187 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm @@ -60546,6 +60546,214 @@ - (void)clearWeeklyScheduleWithParams:(MTRThermostatClusterClearWeeklySchedulePa queue:self.callbackQueue completion:responseHandler]; } +- (void)getRelayStatusLogWithCompletion:(void (^)(MTRThermostatClusterGetRelayStatusLogResponseParams * _Nullable data, NSError * _Nullable error))completion +{ + [self getRelayStatusLogWithParams:nil completion:completion]; +} +- (void)getRelayStatusLogWithParams:(MTRThermostatClusterGetRelayStatusLogParams * _Nullable)params completion:(void (^)(MTRThermostatClusterGetRelayStatusLogResponseParams * _Nullable data, NSError * _Nullable error))completion +{ + if (params == nil) { + params = [[MTRThermostatClusterGetRelayStatusLogParams + alloc] init]; + } + + auto responseHandler = ^(id _Nullable response, NSError * _Nullable error) { + completion(response, error); + }; + + auto * timedInvokeTimeoutMs = params.timedInvokeTimeoutMs; + + using RequestType = Thermostat::Commands::GetRelayStatusLog::Type; + [self.device _invokeKnownCommandWithEndpointID:@(self.endpoint) + clusterID:@(RequestType::GetClusterId()) + commandID:@(RequestType::GetCommandId()) + commandPayload:params + timedInvokeTimeout:timedInvokeTimeoutMs + serverSideProcessingTimeout:params.serverSideProcessingTimeout + responseClass:MTRThermostatClusterGetRelayStatusLogResponseParams.class + queue:self.callbackQueue + completion:responseHandler]; +} +- (void)setActiveScheduleRequestWithParams:(MTRThermostatClusterSetActiveScheduleRequestParams *)params completion:(MTRStatusCompletion)completion +{ + if (params == nil) { + params = [[MTRThermostatClusterSetActiveScheduleRequestParams + alloc] init]; + } + + auto responseHandler = ^(id _Nullable response, NSError * _Nullable error) { + completion(error); + }; + + auto * timedInvokeTimeoutMs = params.timedInvokeTimeoutMs; + + using RequestType = Thermostat::Commands::SetActiveScheduleRequest::Type; + [self.device _invokeKnownCommandWithEndpointID:@(self.endpoint) + clusterID:@(RequestType::GetClusterId()) + commandID:@(RequestType::GetCommandId()) + commandPayload:params + timedInvokeTimeout:timedInvokeTimeoutMs + serverSideProcessingTimeout:params.serverSideProcessingTimeout + responseClass:nil + queue:self.callbackQueue + completion:responseHandler]; +} +- (void)setActivePresetRequestWithParams:(MTRThermostatClusterSetActivePresetRequestParams *)params completion:(MTRStatusCompletion)completion +{ + if (params == nil) { + params = [[MTRThermostatClusterSetActivePresetRequestParams + alloc] init]; + } + + auto responseHandler = ^(id _Nullable response, NSError * _Nullable error) { + completion(error); + }; + + auto * timedInvokeTimeoutMs = params.timedInvokeTimeoutMs; + + using RequestType = Thermostat::Commands::SetActivePresetRequest::Type; + [self.device _invokeKnownCommandWithEndpointID:@(self.endpoint) + clusterID:@(RequestType::GetClusterId()) + commandID:@(RequestType::GetCommandId()) + commandPayload:params + timedInvokeTimeout:timedInvokeTimeoutMs + serverSideProcessingTimeout:params.serverSideProcessingTimeout + responseClass:nil + queue:self.callbackQueue + completion:responseHandler]; +} +- (void)startPresetsSchedulesEditRequestWithParams:(MTRThermostatClusterStartPresetsSchedulesEditRequestParams *)params completion:(MTRStatusCompletion)completion +{ + if (params == nil) { + params = [[MTRThermostatClusterStartPresetsSchedulesEditRequestParams + alloc] init]; + } + + auto responseHandler = ^(id _Nullable response, NSError * _Nullable error) { + completion(error); + }; + + auto * timedInvokeTimeoutMs = params.timedInvokeTimeoutMs; + + using RequestType = Thermostat::Commands::StartPresetsSchedulesEditRequest::Type; + [self.device _invokeKnownCommandWithEndpointID:@(self.endpoint) + clusterID:@(RequestType::GetClusterId()) + commandID:@(RequestType::GetCommandId()) + commandPayload:params + timedInvokeTimeout:timedInvokeTimeoutMs + serverSideProcessingTimeout:params.serverSideProcessingTimeout + responseClass:nil + queue:self.callbackQueue + completion:responseHandler]; +} +- (void)cancelPresetsSchedulesEditRequestWithCompletion:(MTRStatusCompletion)completion +{ + [self cancelPresetsSchedulesEditRequestWithParams:nil completion:completion]; +} +- (void)cancelPresetsSchedulesEditRequestWithParams:(MTRThermostatClusterCancelPresetsSchedulesEditRequestParams * _Nullable)params completion:(MTRStatusCompletion)completion +{ + if (params == nil) { + params = [[MTRThermostatClusterCancelPresetsSchedulesEditRequestParams + alloc] init]; + } + + auto responseHandler = ^(id _Nullable response, NSError * _Nullable error) { + completion(error); + }; + + auto * timedInvokeTimeoutMs = params.timedInvokeTimeoutMs; + + using RequestType = Thermostat::Commands::CancelPresetsSchedulesEditRequest::Type; + [self.device _invokeKnownCommandWithEndpointID:@(self.endpoint) + clusterID:@(RequestType::GetClusterId()) + commandID:@(RequestType::GetCommandId()) + commandPayload:params + timedInvokeTimeout:timedInvokeTimeoutMs + serverSideProcessingTimeout:params.serverSideProcessingTimeout + responseClass:nil + queue:self.callbackQueue + completion:responseHandler]; +} +- (void)commitPresetsSchedulesRequestWithCompletion:(MTRStatusCompletion)completion +{ + [self commitPresetsSchedulesRequestWithParams:nil completion:completion]; +} +- (void)commitPresetsSchedulesRequestWithParams:(MTRThermostatClusterCommitPresetsSchedulesRequestParams * _Nullable)params completion:(MTRStatusCompletion)completion +{ + if (params == nil) { + params = [[MTRThermostatClusterCommitPresetsSchedulesRequestParams + alloc] init]; + } + + auto responseHandler = ^(id _Nullable response, NSError * _Nullable error) { + completion(error); + }; + + auto * timedInvokeTimeoutMs = params.timedInvokeTimeoutMs; + + using RequestType = Thermostat::Commands::CommitPresetsSchedulesRequest::Type; + [self.device _invokeKnownCommandWithEndpointID:@(self.endpoint) + clusterID:@(RequestType::GetClusterId()) + commandID:@(RequestType::GetCommandId()) + commandPayload:params + timedInvokeTimeout:timedInvokeTimeoutMs + serverSideProcessingTimeout:params.serverSideProcessingTimeout + responseClass:nil + queue:self.callbackQueue + completion:responseHandler]; +} +- (void)cancelSetActivePresetRequestWithCompletion:(MTRStatusCompletion)completion +{ + [self cancelSetActivePresetRequestWithParams:nil completion:completion]; +} +- (void)cancelSetActivePresetRequestWithParams:(MTRThermostatClusterCancelSetActivePresetRequestParams * _Nullable)params completion:(MTRStatusCompletion)completion +{ + if (params == nil) { + params = [[MTRThermostatClusterCancelSetActivePresetRequestParams + alloc] init]; + } + + auto responseHandler = ^(id _Nullable response, NSError * _Nullable error) { + completion(error); + }; + + auto * timedInvokeTimeoutMs = params.timedInvokeTimeoutMs; + + using RequestType = Thermostat::Commands::CancelSetActivePresetRequest::Type; + [self.device _invokeKnownCommandWithEndpointID:@(self.endpoint) + clusterID:@(RequestType::GetClusterId()) + commandID:@(RequestType::GetCommandId()) + commandPayload:params + timedInvokeTimeout:timedInvokeTimeoutMs + serverSideProcessingTimeout:params.serverSideProcessingTimeout + responseClass:nil + queue:self.callbackQueue + completion:responseHandler]; +} +- (void)setTemperatureSetpointHoldPolicyWithParams:(MTRThermostatClusterSetTemperatureSetpointHoldPolicyParams *)params completion:(MTRStatusCompletion)completion +{ + if (params == nil) { + params = [[MTRThermostatClusterSetTemperatureSetpointHoldPolicyParams + alloc] init]; + } + + auto responseHandler = ^(id _Nullable response, NSError * _Nullable error) { + completion(error); + }; + + auto * timedInvokeTimeoutMs = params.timedInvokeTimeoutMs; + + using RequestType = Thermostat::Commands::SetTemperatureSetpointHoldPolicy::Type; + [self.device _invokeKnownCommandWithEndpointID:@(self.endpoint) + clusterID:@(RequestType::GetClusterId()) + commandID:@(RequestType::GetCommandId()) + commandPayload:params + timedInvokeTimeout:timedInvokeTimeoutMs + serverSideProcessingTimeout:params.serverSideProcessingTimeout + responseClass:nil + queue:self.callbackQueue + completion:responseHandler]; +} - (void)readAttributeLocalTemperatureWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion { @@ -60871,70 +61079,6 @@ + (void)readAttributePIHeatingDemandWithClusterStateCache:(MTRClusterStateCacheC completion:completion]; } -- (void)readAttributeHVACSystemTypeConfigurationWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion -{ - using TypeInfo = Thermostat::Attributes::HVACSystemTypeConfiguration::TypeInfo; - [self.device _readKnownAttributeWithEndpointID:@(self.endpoint) - clusterID:@(TypeInfo::GetClusterId()) - attributeID:@(TypeInfo::GetAttributeId()) - params:nil - queue:self.callbackQueue - completion:completion]; -} - -- (void)writeAttributeHVACSystemTypeConfigurationWithValue:(NSNumber * _Nonnull)value completion:(MTRStatusCompletion)completion -{ - [self writeAttributeHVACSystemTypeConfigurationWithValue:(NSNumber * _Nonnull) value params:nil completion:completion]; -} -- (void)writeAttributeHVACSystemTypeConfigurationWithValue:(NSNumber * _Nonnull)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion -{ - // Make a copy of params before we go async. - params = [params copy]; - value = [value copy]; - - auto * bridge = new MTRDefaultSuccessCallbackBridge(self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completion(error); }, ^(ExchangeManager & exchangeManager, const SessionHandle & session, DefaultSuccessCallbackType successCb, MTRErrorCallback failureCb, MTRCallbackBridgeBase * bridge) { - chip::Optional timedWriteTimeout; - if (params != nil) { - if (params.timedWriteTimeout != nil){ - timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); - } - } - - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::HVACSystemTypeConfiguration::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - - chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpoint); - return cppCluster.WriteAttribute(cppValue, bridge, successCb, failureCb, timedWriteTimeout); }); - std::move(*bridge).DispatchAction(self.device); -} - -- (void)subscribeAttributeHVACSystemTypeConfigurationWithParams:(MTRSubscribeParams * _Nonnull)params - subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished - reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler -{ - using TypeInfo = Thermostat::Attributes::HVACSystemTypeConfiguration::TypeInfo; - [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) - clusterID:@(TypeInfo::GetClusterId()) - attributeID:@(TypeInfo::GetAttributeId()) - params:params - queue:self.callbackQueue - reportHandler:reportHandler - subscriptionEstablished:subscriptionEstablished]; -} - -+ (void)readAttributeHVACSystemTypeConfigurationWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion -{ - using TypeInfo = Thermostat::Attributes::HVACSystemTypeConfiguration::TypeInfo; - [clusterStateCacheContainer - _readKnownCachedAttributeWithEndpointID:static_cast([endpoint unsignedShortValue]) - clusterID:TypeInfo::GetClusterId() - attributeID:TypeInfo::GetAttributeId() - queue:queue - completion:completion]; -} - - (void)readAttributeLocalTemperatureCalibrationWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion { using TypeInfo = Thermostat::Attributes::LocalTemperatureCalibration::TypeInfo; @@ -61607,7 +61751,7 @@ - (void)writeAttributeRemoteSensingWithValue:(NSNumber * _Nonnull)value params:( ListFreer listFreer; using TypeInfo = Thermostat::Attributes::RemoteSensing::TypeInfo; TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; + cppValue = static_cast>(value.unsignedCharValue); chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpoint); return cppCluster.WriteAttribute(cppValue, bridge, successCb, failureCb, timedWriteTimeout); }); @@ -61735,7 +61879,7 @@ - (void)writeAttributeSystemModeWithValue:(NSNumber * _Nonnull)value params:(MTR ListFreer listFreer; using TypeInfo = Thermostat::Attributes::SystemMode::TypeInfo; TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; + cppValue = static_cast>(value.unsignedCharValue); chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpoint); return cppCluster.WriteAttribute(cppValue, bridge, successCb, failureCb, timedWriteTimeout); }); @@ -61767,9 +61911,9 @@ + (void)readAttributeSystemModeWithClusterStateCache:(MTRClusterStateCacheContai completion:completion]; } -- (void)readAttributeThermostatRunningModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +- (void)readAttributeAlarmMaskWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion { - using TypeInfo = Thermostat::Attributes::ThermostatRunningMode::TypeInfo; + using TypeInfo = Thermostat::Attributes::AlarmMask::TypeInfo; [self.device _readKnownAttributeWithEndpointID:@(self.endpoint) clusterID:@(TypeInfo::GetClusterId()) attributeID:@(TypeInfo::GetAttributeId()) @@ -61778,11 +61922,11 @@ - (void)readAttributeThermostatRunningModeWithCompletion:(void (^)(NSNumber * _N completion:completion]; } -- (void)subscribeAttributeThermostatRunningModeWithParams:(MTRSubscribeParams * _Nonnull)params - subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished - reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler +- (void)subscribeAttributeAlarmMaskWithParams:(MTRSubscribeParams * _Nonnull)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - using TypeInfo = Thermostat::Attributes::ThermostatRunningMode::TypeInfo; + using TypeInfo = Thermostat::Attributes::AlarmMask::TypeInfo; [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) clusterID:@(TypeInfo::GetClusterId()) attributeID:@(TypeInfo::GetAttributeId()) @@ -61792,9 +61936,9 @@ - (void)subscribeAttributeThermostatRunningModeWithParams:(MTRSubscribeParams * subscriptionEstablished:subscriptionEstablished]; } -+ (void)readAttributeThermostatRunningModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion ++ (void)readAttributeAlarmMaskWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion { - using TypeInfo = Thermostat::Attributes::ThermostatRunningMode::TypeInfo; + using TypeInfo = Thermostat::Attributes::AlarmMask::TypeInfo; [clusterStateCacheContainer _readKnownCachedAttributeWithEndpointID:static_cast([endpoint unsignedShortValue]) clusterID:TypeInfo::GetClusterId() @@ -61803,9 +61947,9 @@ + (void)readAttributeThermostatRunningModeWithClusterStateCache:(MTRClusterState completion:completion]; } -- (void)readAttributeStartOfWeekWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +- (void)readAttributeThermostatRunningModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion { - using TypeInfo = Thermostat::Attributes::StartOfWeek::TypeInfo; + using TypeInfo = Thermostat::Attributes::ThermostatRunningMode::TypeInfo; [self.device _readKnownAttributeWithEndpointID:@(self.endpoint) clusterID:@(TypeInfo::GetClusterId()) attributeID:@(TypeInfo::GetAttributeId()) @@ -61814,11 +61958,11 @@ - (void)readAttributeStartOfWeekWithCompletion:(void (^)(NSNumber * _Nullable va completion:completion]; } -- (void)subscribeAttributeStartOfWeekWithParams:(MTRSubscribeParams * _Nonnull)params - subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished - reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler +- (void)subscribeAttributeThermostatRunningModeWithParams:(MTRSubscribeParams * _Nonnull)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - using TypeInfo = Thermostat::Attributes::StartOfWeek::TypeInfo; + using TypeInfo = Thermostat::Attributes::ThermostatRunningMode::TypeInfo; [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) clusterID:@(TypeInfo::GetClusterId()) attributeID:@(TypeInfo::GetAttributeId()) @@ -61828,7 +61972,43 @@ - (void)subscribeAttributeStartOfWeekWithParams:(MTRSubscribeParams * _Nonnull)p subscriptionEstablished:subscriptionEstablished]; } -+ (void)readAttributeStartOfWeekWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion ++ (void)readAttributeThermostatRunningModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::ThermostatRunningMode::TypeInfo; + [clusterStateCacheContainer + _readKnownCachedAttributeWithEndpointID:static_cast([endpoint unsignedShortValue]) + clusterID:TypeInfo::GetClusterId() + attributeID:TypeInfo::GetAttributeId() + queue:queue + completion:completion]; +} + +- (void)readAttributeStartOfWeekWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::StartOfWeek::TypeInfo; + [self.device _readKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:nil + queue:self.callbackQueue + completion:completion]; +} + +- (void)subscribeAttributeStartOfWeekWithParams:(MTRSubscribeParams * _Nonnull)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler +{ + using TypeInfo = Thermostat::Attributes::StartOfWeek::TypeInfo; + [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:params + queue:self.callbackQueue + reportHandler:reportHandler + subscriptionEstablished:subscriptionEstablished]; +} + ++ (void)readAttributeStartOfWeekWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion { using TypeInfo = Thermostat::Attributes::StartOfWeek::TypeInfo; [clusterStateCacheContainer @@ -61943,7 +62123,7 @@ - (void)writeAttributeTemperatureSetpointHoldWithValue:(NSNumber * _Nonnull)valu ListFreer listFreer; using TypeInfo = Thermostat::Attributes::TemperatureSetpointHold::TypeInfo; TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; + cppValue = static_cast>(value.unsignedCharValue); chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpoint); return cppCluster.WriteAttribute(cppValue, bridge, successCb, failureCb, timedWriteTimeout); }); @@ -62076,7 +62256,7 @@ - (void)writeAttributeThermostatProgrammingOperationModeWithValue:(NSNumber * _N ListFreer listFreer; using TypeInfo = Thermostat::Attributes::ThermostatProgrammingOperationMode::TypeInfo; TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; + cppValue = static_cast>(value.unsignedCharValue); chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpoint); return cppCluster.WriteAttribute(cppValue, bridge, successCb, failureCb, timedWriteTimeout); }); @@ -62630,7 +62810,7 @@ - (void)writeAttributeACTypeWithValue:(NSNumber * _Nonnull)value params:(MTRWrit ListFreer listFreer; using TypeInfo = Thermostat::Attributes::ACType::TypeInfo; TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; + cppValue = static_cast>(value.unsignedCharValue); chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpoint); return cppCluster.WriteAttribute(cppValue, bridge, successCb, failureCb, timedWriteTimeout); }); @@ -62753,23 +62933,717 @@ - (void)writeAttributeACRefrigerantTypeWithValue:(NSNumber * _Nonnull)value para if (params.timedWriteTimeout != nil){ timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); } - } - - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::ACRefrigerantType::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; + } + + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::ACRefrigerantType::TypeInfo; + TypeInfo::Type cppValue; + cppValue = static_cast>(value.unsignedCharValue); + + chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpoint); + return cppCluster.WriteAttribute(cppValue, bridge, successCb, failureCb, timedWriteTimeout); }); + std::move(*bridge).DispatchAction(self.device); +} + +- (void)subscribeAttributeACRefrigerantTypeWithParams:(MTRSubscribeParams * _Nonnull)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler +{ + using TypeInfo = Thermostat::Attributes::ACRefrigerantType::TypeInfo; + [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:params + queue:self.callbackQueue + reportHandler:reportHandler + subscriptionEstablished:subscriptionEstablished]; +} + ++ (void)readAttributeACRefrigerantTypeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::ACRefrigerantType::TypeInfo; + [clusterStateCacheContainer + _readKnownCachedAttributeWithEndpointID:static_cast([endpoint unsignedShortValue]) + clusterID:TypeInfo::GetClusterId() + attributeID:TypeInfo::GetAttributeId() + queue:queue + completion:completion]; +} + +- (void)readAttributeACCompressorTypeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::ACCompressorType::TypeInfo; + [self.device _readKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:nil + queue:self.callbackQueue + completion:completion]; +} + +- (void)writeAttributeACCompressorTypeWithValue:(NSNumber * _Nonnull)value completion:(MTRStatusCompletion)completion +{ + [self writeAttributeACCompressorTypeWithValue:(NSNumber * _Nonnull) value params:nil completion:completion]; +} +- (void)writeAttributeACCompressorTypeWithValue:(NSNumber * _Nonnull)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion +{ + // Make a copy of params before we go async. + params = [params copy]; + value = [value copy]; + + auto * bridge = new MTRDefaultSuccessCallbackBridge(self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completion(error); }, ^(ExchangeManager & exchangeManager, const SessionHandle & session, DefaultSuccessCallbackType successCb, MTRErrorCallback failureCb, MTRCallbackBridgeBase * bridge) { + chip::Optional timedWriteTimeout; + if (params != nil) { + if (params.timedWriteTimeout != nil){ + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); + } + } + + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::ACCompressorType::TypeInfo; + TypeInfo::Type cppValue; + cppValue = static_cast>(value.unsignedCharValue); + + chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpoint); + return cppCluster.WriteAttribute(cppValue, bridge, successCb, failureCb, timedWriteTimeout); }); + std::move(*bridge).DispatchAction(self.device); +} + +- (void)subscribeAttributeACCompressorTypeWithParams:(MTRSubscribeParams * _Nonnull)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler +{ + using TypeInfo = Thermostat::Attributes::ACCompressorType::TypeInfo; + [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:params + queue:self.callbackQueue + reportHandler:reportHandler + subscriptionEstablished:subscriptionEstablished]; +} + ++ (void)readAttributeACCompressorTypeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::ACCompressorType::TypeInfo; + [clusterStateCacheContainer + _readKnownCachedAttributeWithEndpointID:static_cast([endpoint unsignedShortValue]) + clusterID:TypeInfo::GetClusterId() + attributeID:TypeInfo::GetAttributeId() + queue:queue + completion:completion]; +} + +- (void)readAttributeACErrorCodeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::ACErrorCode::TypeInfo; + [self.device _readKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:nil + queue:self.callbackQueue + completion:completion]; +} + +- (void)writeAttributeACErrorCodeWithValue:(NSNumber * _Nonnull)value completion:(MTRStatusCompletion)completion +{ + [self writeAttributeACErrorCodeWithValue:(NSNumber * _Nonnull) value params:nil completion:completion]; +} +- (void)writeAttributeACErrorCodeWithValue:(NSNumber * _Nonnull)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion +{ + // Make a copy of params before we go async. + params = [params copy]; + value = [value copy]; + + auto * bridge = new MTRDefaultSuccessCallbackBridge(self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completion(error); }, ^(ExchangeManager & exchangeManager, const SessionHandle & session, DefaultSuccessCallbackType successCb, MTRErrorCallback failureCb, MTRCallbackBridgeBase * bridge) { + chip::Optional timedWriteTimeout; + if (params != nil) { + if (params.timedWriteTimeout != nil){ + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); + } + } + + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::ACErrorCode::TypeInfo; + TypeInfo::Type cppValue; + cppValue = static_cast>(value.unsignedIntValue); + + chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpoint); + return cppCluster.WriteAttribute(cppValue, bridge, successCb, failureCb, timedWriteTimeout); }); + std::move(*bridge).DispatchAction(self.device); +} + +- (void)subscribeAttributeACErrorCodeWithParams:(MTRSubscribeParams * _Nonnull)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler +{ + using TypeInfo = Thermostat::Attributes::ACErrorCode::TypeInfo; + [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:params + queue:self.callbackQueue + reportHandler:reportHandler + subscriptionEstablished:subscriptionEstablished]; +} + ++ (void)readAttributeACErrorCodeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::ACErrorCode::TypeInfo; + [clusterStateCacheContainer + _readKnownCachedAttributeWithEndpointID:static_cast([endpoint unsignedShortValue]) + clusterID:TypeInfo::GetClusterId() + attributeID:TypeInfo::GetAttributeId() + queue:queue + completion:completion]; +} + +- (void)readAttributeACLouverPositionWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::ACLouverPosition::TypeInfo; + [self.device _readKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:nil + queue:self.callbackQueue + completion:completion]; +} + +- (void)writeAttributeACLouverPositionWithValue:(NSNumber * _Nonnull)value completion:(MTRStatusCompletion)completion +{ + [self writeAttributeACLouverPositionWithValue:(NSNumber * _Nonnull) value params:nil completion:completion]; +} +- (void)writeAttributeACLouverPositionWithValue:(NSNumber * _Nonnull)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion +{ + // Make a copy of params before we go async. + params = [params copy]; + value = [value copy]; + + auto * bridge = new MTRDefaultSuccessCallbackBridge(self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completion(error); }, ^(ExchangeManager & exchangeManager, const SessionHandle & session, DefaultSuccessCallbackType successCb, MTRErrorCallback failureCb, MTRCallbackBridgeBase * bridge) { + chip::Optional timedWriteTimeout; + if (params != nil) { + if (params.timedWriteTimeout != nil){ + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); + } + } + + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::ACLouverPosition::TypeInfo; + TypeInfo::Type cppValue; + cppValue = static_cast>(value.unsignedCharValue); + + chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpoint); + return cppCluster.WriteAttribute(cppValue, bridge, successCb, failureCb, timedWriteTimeout); }); + std::move(*bridge).DispatchAction(self.device); +} + +- (void)subscribeAttributeACLouverPositionWithParams:(MTRSubscribeParams * _Nonnull)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler +{ + using TypeInfo = Thermostat::Attributes::ACLouverPosition::TypeInfo; + [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:params + queue:self.callbackQueue + reportHandler:reportHandler + subscriptionEstablished:subscriptionEstablished]; +} + ++ (void)readAttributeACLouverPositionWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::ACLouverPosition::TypeInfo; + [clusterStateCacheContainer + _readKnownCachedAttributeWithEndpointID:static_cast([endpoint unsignedShortValue]) + clusterID:TypeInfo::GetClusterId() + attributeID:TypeInfo::GetAttributeId() + queue:queue + completion:completion]; +} + +- (void)readAttributeACCoilTemperatureWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::ACCoilTemperature::TypeInfo; + [self.device _readKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:nil + queue:self.callbackQueue + completion:completion]; +} + +- (void)subscribeAttributeACCoilTemperatureWithParams:(MTRSubscribeParams * _Nonnull)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler +{ + using TypeInfo = Thermostat::Attributes::ACCoilTemperature::TypeInfo; + [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:params + queue:self.callbackQueue + reportHandler:reportHandler + subscriptionEstablished:subscriptionEstablished]; +} + ++ (void)readAttributeACCoilTemperatureWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::ACCoilTemperature::TypeInfo; + [clusterStateCacheContainer + _readKnownCachedAttributeWithEndpointID:static_cast([endpoint unsignedShortValue]) + clusterID:TypeInfo::GetClusterId() + attributeID:TypeInfo::GetAttributeId() + queue:queue + completion:completion]; +} + +- (void)readAttributeACCapacityFormatWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::ACCapacityFormat::TypeInfo; + [self.device _readKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:nil + queue:self.callbackQueue + completion:completion]; +} + +- (void)writeAttributeACCapacityFormatWithValue:(NSNumber * _Nonnull)value completion:(MTRStatusCompletion)completion +{ + [self writeAttributeACCapacityFormatWithValue:(NSNumber * _Nonnull) value params:nil completion:completion]; +} +- (void)writeAttributeACCapacityFormatWithValue:(NSNumber * _Nonnull)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion +{ + // Make a copy of params before we go async. + params = [params copy]; + value = [value copy]; + + auto * bridge = new MTRDefaultSuccessCallbackBridge(self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completion(error); }, ^(ExchangeManager & exchangeManager, const SessionHandle & session, DefaultSuccessCallbackType successCb, MTRErrorCallback failureCb, MTRCallbackBridgeBase * bridge) { + chip::Optional timedWriteTimeout; + if (params != nil) { + if (params.timedWriteTimeout != nil){ + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); + } + } + + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::ACCapacityFormat::TypeInfo; + TypeInfo::Type cppValue; + cppValue = static_cast>(value.unsignedCharValue); + + chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpoint); + return cppCluster.WriteAttribute(cppValue, bridge, successCb, failureCb, timedWriteTimeout); }); + std::move(*bridge).DispatchAction(self.device); +} + +- (void)subscribeAttributeACCapacityFormatWithParams:(MTRSubscribeParams * _Nonnull)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler +{ + using TypeInfo = Thermostat::Attributes::ACCapacityFormat::TypeInfo; + [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:params + queue:self.callbackQueue + reportHandler:reportHandler + subscriptionEstablished:subscriptionEstablished]; +} + ++ (void)readAttributeACCapacityFormatWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::ACCapacityFormat::TypeInfo; + [clusterStateCacheContainer + _readKnownCachedAttributeWithEndpointID:static_cast([endpoint unsignedShortValue]) + clusterID:TypeInfo::GetClusterId() + attributeID:TypeInfo::GetAttributeId() + queue:queue + completion:completion]; +} + +- (void)readAttributePresetTypesWithCompletion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::PresetTypes::TypeInfo; + [self.device _readKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:nil + queue:self.callbackQueue + completion:completion]; +} + +- (void)subscribeAttributePresetTypesWithParams:(MTRSubscribeParams * _Nonnull)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler +{ + using TypeInfo = Thermostat::Attributes::PresetTypes::TypeInfo; + [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:params + queue:self.callbackQueue + reportHandler:reportHandler + subscriptionEstablished:subscriptionEstablished]; +} + ++ (void)readAttributePresetTypesWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::PresetTypes::TypeInfo; + [clusterStateCacheContainer + _readKnownCachedAttributeWithEndpointID:static_cast([endpoint unsignedShortValue]) + clusterID:TypeInfo::GetClusterId() + attributeID:TypeInfo::GetAttributeId() + queue:queue + completion:completion]; +} + +- (void)readAttributeScheduleTypesWithCompletion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::ScheduleTypes::TypeInfo; + [self.device _readKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:nil + queue:self.callbackQueue + completion:completion]; +} + +- (void)subscribeAttributeScheduleTypesWithParams:(MTRSubscribeParams * _Nonnull)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler +{ + using TypeInfo = Thermostat::Attributes::ScheduleTypes::TypeInfo; + [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:params + queue:self.callbackQueue + reportHandler:reportHandler + subscriptionEstablished:subscriptionEstablished]; +} + ++ (void)readAttributeScheduleTypesWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::ScheduleTypes::TypeInfo; + [clusterStateCacheContainer + _readKnownCachedAttributeWithEndpointID:static_cast([endpoint unsignedShortValue]) + clusterID:TypeInfo::GetClusterId() + attributeID:TypeInfo::GetAttributeId() + queue:queue + completion:completion]; +} + +- (void)readAttributeNumberOfPresetsWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::NumberOfPresets::TypeInfo; + [self.device _readKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:nil + queue:self.callbackQueue + completion:completion]; +} + +- (void)subscribeAttributeNumberOfPresetsWithParams:(MTRSubscribeParams * _Nonnull)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler +{ + using TypeInfo = Thermostat::Attributes::NumberOfPresets::TypeInfo; + [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:params + queue:self.callbackQueue + reportHandler:reportHandler + subscriptionEstablished:subscriptionEstablished]; +} + ++ (void)readAttributeNumberOfPresetsWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::NumberOfPresets::TypeInfo; + [clusterStateCacheContainer + _readKnownCachedAttributeWithEndpointID:static_cast([endpoint unsignedShortValue]) + clusterID:TypeInfo::GetClusterId() + attributeID:TypeInfo::GetAttributeId() + queue:queue + completion:completion]; +} + +- (void)readAttributeNumberOfSchedulesWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::NumberOfSchedules::TypeInfo; + [self.device _readKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:nil + queue:self.callbackQueue + completion:completion]; +} + +- (void)subscribeAttributeNumberOfSchedulesWithParams:(MTRSubscribeParams * _Nonnull)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler +{ + using TypeInfo = Thermostat::Attributes::NumberOfSchedules::TypeInfo; + [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:params + queue:self.callbackQueue + reportHandler:reportHandler + subscriptionEstablished:subscriptionEstablished]; +} + ++ (void)readAttributeNumberOfSchedulesWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::NumberOfSchedules::TypeInfo; + [clusterStateCacheContainer + _readKnownCachedAttributeWithEndpointID:static_cast([endpoint unsignedShortValue]) + clusterID:TypeInfo::GetClusterId() + attributeID:TypeInfo::GetAttributeId() + queue:queue + completion:completion]; +} + +- (void)readAttributeNumberOfScheduleTransitionsWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::NumberOfScheduleTransitions::TypeInfo; + [self.device _readKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:nil + queue:self.callbackQueue + completion:completion]; +} + +- (void)subscribeAttributeNumberOfScheduleTransitionsWithParams:(MTRSubscribeParams * _Nonnull)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler +{ + using TypeInfo = Thermostat::Attributes::NumberOfScheduleTransitions::TypeInfo; + [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:params + queue:self.callbackQueue + reportHandler:reportHandler + subscriptionEstablished:subscriptionEstablished]; +} + ++ (void)readAttributeNumberOfScheduleTransitionsWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::NumberOfScheduleTransitions::TypeInfo; + [clusterStateCacheContainer + _readKnownCachedAttributeWithEndpointID:static_cast([endpoint unsignedShortValue]) + clusterID:TypeInfo::GetClusterId() + attributeID:TypeInfo::GetAttributeId() + queue:queue + completion:completion]; +} + +- (void)readAttributeNumberOfScheduleTransitionPerDayWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::NumberOfScheduleTransitionPerDay::TypeInfo; + [self.device _readKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:nil + queue:self.callbackQueue + completion:completion]; +} + +- (void)subscribeAttributeNumberOfScheduleTransitionPerDayWithParams:(MTRSubscribeParams * _Nonnull)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler +{ + using TypeInfo = Thermostat::Attributes::NumberOfScheduleTransitionPerDay::TypeInfo; + [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:params + queue:self.callbackQueue + reportHandler:reportHandler + subscriptionEstablished:subscriptionEstablished]; +} + ++ (void)readAttributeNumberOfScheduleTransitionPerDayWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::NumberOfScheduleTransitionPerDay::TypeInfo; + [clusterStateCacheContainer + _readKnownCachedAttributeWithEndpointID:static_cast([endpoint unsignedShortValue]) + clusterID:TypeInfo::GetClusterId() + attributeID:TypeInfo::GetAttributeId() + queue:queue + completion:completion]; +} + +- (void)readAttributeActivePresetHandleWithCompletion:(void (^)(NSData * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::ActivePresetHandle::TypeInfo; + [self.device _readKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:nil + queue:self.callbackQueue + completion:completion]; +} + +- (void)subscribeAttributeActivePresetHandleWithParams:(MTRSubscribeParams * _Nonnull)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSData * _Nullable value, NSError * _Nullable error))reportHandler +{ + using TypeInfo = Thermostat::Attributes::ActivePresetHandle::TypeInfo; + [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:params + queue:self.callbackQueue + reportHandler:reportHandler + subscriptionEstablished:subscriptionEstablished]; +} + ++ (void)readAttributeActivePresetHandleWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSData * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::ActivePresetHandle::TypeInfo; + [clusterStateCacheContainer + _readKnownCachedAttributeWithEndpointID:static_cast([endpoint unsignedShortValue]) + clusterID:TypeInfo::GetClusterId() + attributeID:TypeInfo::GetAttributeId() + queue:queue + completion:completion]; +} + +- (void)readAttributeActiveScheduleHandleWithCompletion:(void (^)(NSData * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::ActiveScheduleHandle::TypeInfo; + [self.device _readKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:nil + queue:self.callbackQueue + completion:completion]; +} + +- (void)subscribeAttributeActiveScheduleHandleWithParams:(MTRSubscribeParams * _Nonnull)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSData * _Nullable value, NSError * _Nullable error))reportHandler +{ + using TypeInfo = Thermostat::Attributes::ActiveScheduleHandle::TypeInfo; + [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:params + queue:self.callbackQueue + reportHandler:reportHandler + subscriptionEstablished:subscriptionEstablished]; +} + ++ (void)readAttributeActiveScheduleHandleWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSData * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::ActiveScheduleHandle::TypeInfo; + [clusterStateCacheContainer + _readKnownCachedAttributeWithEndpointID:static_cast([endpoint unsignedShortValue]) + clusterID:TypeInfo::GetClusterId() + attributeID:TypeInfo::GetAttributeId() + queue:queue + completion:completion]; +} + +- (void)readAttributePresetsWithCompletion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion +{ + using TypeInfo = Thermostat::Attributes::Presets::TypeInfo; + [self.device _readKnownAttributeWithEndpointID:@(self.endpoint) + clusterID:@(TypeInfo::GetClusterId()) + attributeID:@(TypeInfo::GetAttributeId()) + params:nil + queue:self.callbackQueue + completion:completion]; +} + +- (void)writeAttributePresetsWithValue:(NSArray * _Nonnull)value completion:(MTRStatusCompletion)completion +{ + [self writeAttributePresetsWithValue:(NSArray * _Nonnull) value params:nil completion:completion]; +} +- (void)writeAttributePresetsWithValue:(NSArray * _Nonnull)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion +{ + // Make a copy of params before we go async. + params = [params copy]; + value = [value copy]; + + auto * bridge = new MTRDefaultSuccessCallbackBridge(self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completion(error); }, ^(ExchangeManager & exchangeManager, const SessionHandle & session, DefaultSuccessCallbackType successCb, MTRErrorCallback failureCb, MTRCallbackBridgeBase * bridge) { + chip::Optional timedWriteTimeout; + if (params != nil) { + if (params.timedWriteTimeout != nil){ + timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); + } + } + + ListFreer listFreer; + using TypeInfo = Thermostat::Attributes::Presets::TypeInfo; + TypeInfo::Type cppValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if ( ! [value[i_0] isKindOfClass: [MTRThermostatClusterPresetStruct class]] ) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (MTRThermostatClusterPresetStruct *)value[i_0]; + if (element_0.presetHandle == nil) { + listHolder_0->mList[i_0].presetHandle.SetNull(); + } else { + auto & nonNullValue_2 = listHolder_0->mList[i_0].presetHandle.SetNonNull(); + nonNullValue_2 = AsByteSpan(element_0.presetHandle); + } + listHolder_0->mList[i_0].presetScenario = static_castmList[i_0].presetScenario)>>(element_0.presetScenario.unsignedCharValue); + if (element_0.name != nil) { + auto & definedValue_2 = listHolder_0->mList[i_0].name.Emplace(); + if (element_0.name == nil) { + definedValue_2.SetNull(); + } else { + auto & nonNullValue_3 = definedValue_2.SetNonNull(); + nonNullValue_3 = AsCharSpan(element_0.name); + } + } + if (element_0.coolingSetpoint != nil) { + auto & definedValue_2 = listHolder_0->mList[i_0].coolingSetpoint.Emplace(); + definedValue_2 = element_0.coolingSetpoint.shortValue; + } + if (element_0.heatingSetpoint != nil) { + auto & definedValue_2 = listHolder_0->mList[i_0].heatingSetpoint.Emplace(); + definedValue_2 = element_0.heatingSetpoint.shortValue; + } + if (element_0.builtIn == nil) { + listHolder_0->mList[i_0].builtIn.SetNull(); + } else { + auto & nonNullValue_2 = listHolder_0->mList[i_0].builtIn.SetNonNull(); + nonNullValue_2 = element_0.builtIn.boolValue; + } + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpoint); return cppCluster.WriteAttribute(cppValue, bridge, successCb, failureCb, timedWriteTimeout); }); std::move(*bridge).DispatchAction(self.device); } -- (void)subscribeAttributeACRefrigerantTypeWithParams:(MTRSubscribeParams * _Nonnull)params - subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished - reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler +- (void)subscribeAttributePresetsWithParams:(MTRSubscribeParams * _Nonnull)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - using TypeInfo = Thermostat::Attributes::ACRefrigerantType::TypeInfo; + using TypeInfo = Thermostat::Attributes::Presets::TypeInfo; [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) clusterID:@(TypeInfo::GetClusterId()) attributeID:@(TypeInfo::GetAttributeId()) @@ -62779,9 +63653,9 @@ - (void)subscribeAttributeACRefrigerantTypeWithParams:(MTRSubscribeParams * _Non subscriptionEstablished:subscriptionEstablished]; } -+ (void)readAttributeACRefrigerantTypeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion ++ (void)readAttributePresetsWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion { - using TypeInfo = Thermostat::Attributes::ACRefrigerantType::TypeInfo; + using TypeInfo = Thermostat::Attributes::Presets::TypeInfo; [clusterStateCacheContainer _readKnownCachedAttributeWithEndpointID:static_cast([endpoint unsignedShortValue]) clusterID:TypeInfo::GetClusterId() @@ -62790,9 +63664,9 @@ + (void)readAttributeACRefrigerantTypeWithClusterStateCache:(MTRClusterStateCach completion:completion]; } -- (void)readAttributeACCompressorTypeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +- (void)readAttributeSchedulesWithCompletion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion { - using TypeInfo = Thermostat::Attributes::ACCompressorType::TypeInfo; + using TypeInfo = Thermostat::Attributes::Schedules::TypeInfo; [self.device _readKnownAttributeWithEndpointID:@(self.endpoint) clusterID:@(TypeInfo::GetClusterId()) attributeID:@(TypeInfo::GetAttributeId()) @@ -62801,11 +63675,11 @@ - (void)readAttributeACCompressorTypeWithCompletion:(void (^)(NSNumber * _Nullab completion:completion]; } -- (void)writeAttributeACCompressorTypeWithValue:(NSNumber * _Nonnull)value completion:(MTRStatusCompletion)completion +- (void)writeAttributeSchedulesWithValue:(NSArray * _Nonnull)value completion:(MTRStatusCompletion)completion { - [self writeAttributeACCompressorTypeWithValue:(NSNumber * _Nonnull) value params:nil completion:completion]; + [self writeAttributeSchedulesWithValue:(NSArray * _Nonnull) value params:nil completion:completion]; } -- (void)writeAttributeACCompressorTypeWithValue:(NSNumber * _Nonnull)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion +- (void)writeAttributeSchedulesWithValue:(NSArray * _Nonnull)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion { // Make a copy of params before we go async. params = [params copy]; @@ -62820,20 +63694,103 @@ - (void)writeAttributeACCompressorTypeWithValue:(NSNumber * _Nonnull)value param } ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::ACCompressorType::TypeInfo; + using TypeInfo = Thermostat::Attributes::Schedules::TypeInfo; TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; + { + using ListType_0 = std::remove_reference_t; + using ListMemberType_0 = ListMemberTypeGetter::Type; + if (value.count != 0) { + auto * listHolder_0 = new ListHolder(value.count); + if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_0); + for (size_t i_0 = 0; i_0 < value.count; ++i_0) { + if ( ! [value[i_0] isKindOfClass: [MTRThermostatClusterScheduleStruct class]] ) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_0 = (MTRThermostatClusterScheduleStruct *)value[i_0]; + if (element_0.scheduleHandle == nil) { + listHolder_0->mList[i_0].scheduleHandle.SetNull(); + } else { + auto & nonNullValue_2 = listHolder_0->mList[i_0].scheduleHandle.SetNonNull(); + nonNullValue_2 = AsByteSpan(element_0.scheduleHandle); + } + listHolder_0->mList[i_0].systemMode = static_castmList[i_0].systemMode)>>(element_0.systemMode.unsignedCharValue); + if (element_0.name != nil) { + auto & definedValue_2 = listHolder_0->mList[i_0].name.Emplace(); + definedValue_2 = AsCharSpan(element_0.name); + } + if (element_0.presetHandle != nil) { + auto & definedValue_2 = listHolder_0->mList[i_0].presetHandle.Emplace(); + definedValue_2 = AsByteSpan(element_0.presetHandle); + } + { + using ListType_2 = std::remove_reference_tmList[i_0].transitions)>; + using ListMemberType_2 = ListMemberTypeGetter::Type; + if (element_0.transitions.count != 0) { + auto * listHolder_2 = new ListHolder(element_0.transitions.count); + if (listHolder_2 == nullptr || listHolder_2->mList == nullptr) { + return CHIP_ERROR_INVALID_ARGUMENT; + } + listFreer.add(listHolder_2); + for (size_t i_2 = 0; i_2 < element_0.transitions.count; ++i_2) { + if ( ! [element_0.transitions[i_2] isKindOfClass: [MTRThermostatClusterScheduleTransitionStruct class]] ) { + // Wrong kind of value. + return CHIP_ERROR_INVALID_ARGUMENT; + } + auto element_2 = (MTRThermostatClusterScheduleTransitionStruct *)element_0.transitions[i_2]; + listHolder_2->mList[i_2].dayOfWeek = static_castmList[i_2].dayOfWeek)>>(element_2.dayOfWeek.unsignedCharValue); + listHolder_2->mList[i_2].transitionTime = element_2.transitionTime.unsignedShortValue; + if (element_2.presetHandle != nil) { + auto & definedValue_4 = listHolder_2->mList[i_2].presetHandle.Emplace(); + definedValue_4 = AsByteSpan(element_2.presetHandle); + } + if (element_2.systemMode != nil) { + auto & definedValue_4 = listHolder_2->mList[i_2].systemMode.Emplace(); + definedValue_4 = static_cast>(element_2.systemMode.unsignedCharValue); + } + if (element_2.coolingSetpoint != nil) { + auto & definedValue_4 = listHolder_2->mList[i_2].coolingSetpoint.Emplace(); + definedValue_4 = element_2.coolingSetpoint.shortValue; + } + if (element_2.heatingSetpoint != nil) { + auto & definedValue_4 = listHolder_2->mList[i_2].heatingSetpoint.Emplace(); + definedValue_4 = element_2.heatingSetpoint.shortValue; + } + } + listHolder_0->mList[i_0].transitions = ListType_2(listHolder_2->mList, element_0.transitions.count); + } else { + listHolder_0->mList[i_0].transitions = ListType_2(); + } + } + if (element_0.builtIn != nil) { + auto & definedValue_2 = listHolder_0->mList[i_0].builtIn.Emplace(); + if (element_0.builtIn == nil) { + definedValue_2.SetNull(); + } else { + auto & nonNullValue_3 = definedValue_2.SetNonNull(); + nonNullValue_3 = element_0.builtIn.boolValue; + } + } + } + cppValue = ListType_0(listHolder_0->mList, value.count); + } else { + cppValue = ListType_0(); + } + } chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpoint); return cppCluster.WriteAttribute(cppValue, bridge, successCb, failureCb, timedWriteTimeout); }); std::move(*bridge).DispatchAction(self.device); } -- (void)subscribeAttributeACCompressorTypeWithParams:(MTRSubscribeParams * _Nonnull)params - subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished - reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler +- (void)subscribeAttributeSchedulesWithParams:(MTRSubscribeParams * _Nonnull)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))reportHandler { - using TypeInfo = Thermostat::Attributes::ACCompressorType::TypeInfo; + using TypeInfo = Thermostat::Attributes::Schedules::TypeInfo; [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) clusterID:@(TypeInfo::GetClusterId()) attributeID:@(TypeInfo::GetAttributeId()) @@ -62843,9 +63800,9 @@ - (void)subscribeAttributeACCompressorTypeWithParams:(MTRSubscribeParams * _Nonn subscriptionEstablished:subscriptionEstablished]; } -+ (void)readAttributeACCompressorTypeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion ++ (void)readAttributeSchedulesWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion { - using TypeInfo = Thermostat::Attributes::ACCompressorType::TypeInfo; + using TypeInfo = Thermostat::Attributes::Schedules::TypeInfo; [clusterStateCacheContainer _readKnownCachedAttributeWithEndpointID:static_cast([endpoint unsignedShortValue]) clusterID:TypeInfo::GetClusterId() @@ -62854,9 +63811,9 @@ + (void)readAttributeACCompressorTypeWithClusterStateCache:(MTRClusterStateCache completion:completion]; } -- (void)readAttributeACErrorCodeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +- (void)readAttributePresetsSchedulesEditableWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion { - using TypeInfo = Thermostat::Attributes::ACErrorCode::TypeInfo; + using TypeInfo = Thermostat::Attributes::PresetsSchedulesEditable::TypeInfo; [self.device _readKnownAttributeWithEndpointID:@(self.endpoint) clusterID:@(TypeInfo::GetClusterId()) attributeID:@(TypeInfo::GetAttributeId()) @@ -62865,39 +63822,11 @@ - (void)readAttributeACErrorCodeWithCompletion:(void (^)(NSNumber * _Nullable va completion:completion]; } -- (void)writeAttributeACErrorCodeWithValue:(NSNumber * _Nonnull)value completion:(MTRStatusCompletion)completion -{ - [self writeAttributeACErrorCodeWithValue:(NSNumber * _Nonnull) value params:nil completion:completion]; -} -- (void)writeAttributeACErrorCodeWithValue:(NSNumber * _Nonnull)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion -{ - // Make a copy of params before we go async. - params = [params copy]; - value = [value copy]; - - auto * bridge = new MTRDefaultSuccessCallbackBridge(self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completion(error); }, ^(ExchangeManager & exchangeManager, const SessionHandle & session, DefaultSuccessCallbackType successCb, MTRErrorCallback failureCb, MTRCallbackBridgeBase * bridge) { - chip::Optional timedWriteTimeout; - if (params != nil) { - if (params.timedWriteTimeout != nil){ - timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); - } - } - - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::ACErrorCode::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - - chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpoint); - return cppCluster.WriteAttribute(cppValue, bridge, successCb, failureCb, timedWriteTimeout); }); - std::move(*bridge).DispatchAction(self.device); -} - -- (void)subscribeAttributeACErrorCodeWithParams:(MTRSubscribeParams * _Nonnull)params - subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished - reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler +- (void)subscribeAttributePresetsSchedulesEditableWithParams:(MTRSubscribeParams * _Nonnull)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - using TypeInfo = Thermostat::Attributes::ACErrorCode::TypeInfo; + using TypeInfo = Thermostat::Attributes::PresetsSchedulesEditable::TypeInfo; [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) clusterID:@(TypeInfo::GetClusterId()) attributeID:@(TypeInfo::GetAttributeId()) @@ -62907,9 +63836,9 @@ - (void)subscribeAttributeACErrorCodeWithParams:(MTRSubscribeParams * _Nonnull)p subscriptionEstablished:subscriptionEstablished]; } -+ (void)readAttributeACErrorCodeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion ++ (void)readAttributePresetsSchedulesEditableWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion { - using TypeInfo = Thermostat::Attributes::ACErrorCode::TypeInfo; + using TypeInfo = Thermostat::Attributes::PresetsSchedulesEditable::TypeInfo; [clusterStateCacheContainer _readKnownCachedAttributeWithEndpointID:static_cast([endpoint unsignedShortValue]) clusterID:TypeInfo::GetClusterId() @@ -62918,9 +63847,9 @@ + (void)readAttributeACErrorCodeWithClusterStateCache:(MTRClusterStateCacheConta completion:completion]; } -- (void)readAttributeACLouverPositionWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +- (void)readAttributeTemperatureSetpointHoldPolicyWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion { - using TypeInfo = Thermostat::Attributes::ACLouverPosition::TypeInfo; + using TypeInfo = Thermostat::Attributes::TemperatureSetpointHoldPolicy::TypeInfo; [self.device _readKnownAttributeWithEndpointID:@(self.endpoint) clusterID:@(TypeInfo::GetClusterId()) attributeID:@(TypeInfo::GetAttributeId()) @@ -62929,39 +63858,11 @@ - (void)readAttributeACLouverPositionWithCompletion:(void (^)(NSNumber * _Nullab completion:completion]; } -- (void)writeAttributeACLouverPositionWithValue:(NSNumber * _Nonnull)value completion:(MTRStatusCompletion)completion -{ - [self writeAttributeACLouverPositionWithValue:(NSNumber * _Nonnull) value params:nil completion:completion]; -} -- (void)writeAttributeACLouverPositionWithValue:(NSNumber * _Nonnull)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion -{ - // Make a copy of params before we go async. - params = [params copy]; - value = [value copy]; - - auto * bridge = new MTRDefaultSuccessCallbackBridge(self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completion(error); }, ^(ExchangeManager & exchangeManager, const SessionHandle & session, DefaultSuccessCallbackType successCb, MTRErrorCallback failureCb, MTRCallbackBridgeBase * bridge) { - chip::Optional timedWriteTimeout; - if (params != nil) { - if (params.timedWriteTimeout != nil){ - timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); - } - } - - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::ACLouverPosition::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - - chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpoint); - return cppCluster.WriteAttribute(cppValue, bridge, successCb, failureCb, timedWriteTimeout); }); - std::move(*bridge).DispatchAction(self.device); -} - -- (void)subscribeAttributeACLouverPositionWithParams:(MTRSubscribeParams * _Nonnull)params - subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished - reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler +- (void)subscribeAttributeTemperatureSetpointHoldPolicyWithParams:(MTRSubscribeParams * _Nonnull)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - using TypeInfo = Thermostat::Attributes::ACLouverPosition::TypeInfo; + using TypeInfo = Thermostat::Attributes::TemperatureSetpointHoldPolicy::TypeInfo; [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) clusterID:@(TypeInfo::GetClusterId()) attributeID:@(TypeInfo::GetAttributeId()) @@ -62971,9 +63872,9 @@ - (void)subscribeAttributeACLouverPositionWithParams:(MTRSubscribeParams * _Nonn subscriptionEstablished:subscriptionEstablished]; } -+ (void)readAttributeACLouverPositionWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion ++ (void)readAttributeTemperatureSetpointHoldPolicyWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion { - using TypeInfo = Thermostat::Attributes::ACLouverPosition::TypeInfo; + using TypeInfo = Thermostat::Attributes::TemperatureSetpointHoldPolicy::TypeInfo; [clusterStateCacheContainer _readKnownCachedAttributeWithEndpointID:static_cast([endpoint unsignedShortValue]) clusterID:TypeInfo::GetClusterId() @@ -62982,9 +63883,9 @@ + (void)readAttributeACLouverPositionWithClusterStateCache:(MTRClusterStateCache completion:completion]; } -- (void)readAttributeACCoilTemperatureWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +- (void)readAttributeSetpointHoldExpiryTimestampWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion { - using TypeInfo = Thermostat::Attributes::ACCoilTemperature::TypeInfo; + using TypeInfo = Thermostat::Attributes::SetpointHoldExpiryTimestamp::TypeInfo; [self.device _readKnownAttributeWithEndpointID:@(self.endpoint) clusterID:@(TypeInfo::GetClusterId()) attributeID:@(TypeInfo::GetAttributeId()) @@ -62993,11 +63894,11 @@ - (void)readAttributeACCoilTemperatureWithCompletion:(void (^)(NSNumber * _Nulla completion:completion]; } -- (void)subscribeAttributeACCoilTemperatureWithParams:(MTRSubscribeParams * _Nonnull)params - subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished - reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler +- (void)subscribeAttributeSetpointHoldExpiryTimestampWithParams:(MTRSubscribeParams * _Nonnull)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler { - using TypeInfo = Thermostat::Attributes::ACCoilTemperature::TypeInfo; + using TypeInfo = Thermostat::Attributes::SetpointHoldExpiryTimestamp::TypeInfo; [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) clusterID:@(TypeInfo::GetClusterId()) attributeID:@(TypeInfo::GetAttributeId()) @@ -63007,9 +63908,9 @@ - (void)subscribeAttributeACCoilTemperatureWithParams:(MTRSubscribeParams * _Non subscriptionEstablished:subscriptionEstablished]; } -+ (void)readAttributeACCoilTemperatureWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion ++ (void)readAttributeSetpointHoldExpiryTimestampWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion { - using TypeInfo = Thermostat::Attributes::ACCoilTemperature::TypeInfo; + using TypeInfo = Thermostat::Attributes::SetpointHoldExpiryTimestamp::TypeInfo; [clusterStateCacheContainer _readKnownCachedAttributeWithEndpointID:static_cast([endpoint unsignedShortValue]) clusterID:TypeInfo::GetClusterId() @@ -63018,9 +63919,9 @@ + (void)readAttributeACCoilTemperatureWithClusterStateCache:(MTRClusterStateCach completion:completion]; } -- (void)readAttributeACCapacityformatWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion +- (void)readAttributeQueuedPresetWithCompletion:(void (^)(MTRThermostatClusterQueuedPresetStruct * _Nullable value, NSError * _Nullable error))completion { - using TypeInfo = Thermostat::Attributes::ACCapacityformat::TypeInfo; + using TypeInfo = Thermostat::Attributes::QueuedPreset::TypeInfo; [self.device _readKnownAttributeWithEndpointID:@(self.endpoint) clusterID:@(TypeInfo::GetClusterId()) attributeID:@(TypeInfo::GetAttributeId()) @@ -63029,39 +63930,11 @@ - (void)readAttributeACCapacityformatWithCompletion:(void (^)(NSNumber * _Nullab completion:completion]; } -- (void)writeAttributeACCapacityformatWithValue:(NSNumber * _Nonnull)value completion:(MTRStatusCompletion)completion -{ - [self writeAttributeACCapacityformatWithValue:(NSNumber * _Nonnull) value params:nil completion:completion]; -} -- (void)writeAttributeACCapacityformatWithValue:(NSNumber * _Nonnull)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion -{ - // Make a copy of params before we go async. - params = [params copy]; - value = [value copy]; - - auto * bridge = new MTRDefaultSuccessCallbackBridge(self.callbackQueue, ^(id _Nullable ignored, NSError * _Nullable error) { completion(error); }, ^(ExchangeManager & exchangeManager, const SessionHandle & session, DefaultSuccessCallbackType successCb, MTRErrorCallback failureCb, MTRCallbackBridgeBase * bridge) { - chip::Optional timedWriteTimeout; - if (params != nil) { - if (params.timedWriteTimeout != nil){ - timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue); - } - } - - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::ACCapacityformat::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - - chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpoint); - return cppCluster.WriteAttribute(cppValue, bridge, successCb, failureCb, timedWriteTimeout); }); - std::move(*bridge).DispatchAction(self.device); -} - -- (void)subscribeAttributeACCapacityformatWithParams:(MTRSubscribeParams * _Nonnull)params - subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished - reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler +- (void)subscribeAttributeQueuedPresetWithParams:(MTRSubscribeParams * _Nonnull)params + subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished + reportHandler:(void (^)(MTRThermostatClusterQueuedPresetStruct * _Nullable value, NSError * _Nullable error))reportHandler { - using TypeInfo = Thermostat::Attributes::ACCapacityformat::TypeInfo; + using TypeInfo = Thermostat::Attributes::QueuedPreset::TypeInfo; [self.device _subscribeToKnownAttributeWithEndpointID:@(self.endpoint) clusterID:@(TypeInfo::GetClusterId()) attributeID:@(TypeInfo::GetAttributeId()) @@ -63071,9 +63944,9 @@ - (void)subscribeAttributeACCapacityformatWithParams:(MTRSubscribeParams * _Nonn subscriptionEstablished:subscriptionEstablished]; } -+ (void)readAttributeACCapacityformatWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion ++ (void)readAttributeQueuedPresetWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(MTRThermostatClusterQueuedPresetStruct * _Nullable value, NSError * _Nullable error))completion { - using TypeInfo = Thermostat::Attributes::ACCapacityformat::TypeInfo; + using TypeInfo = Thermostat::Attributes::QueuedPreset::TypeInfo; [clusterStateCacheContainer _readKnownCachedAttributeWithEndpointID:static_cast([endpoint unsignedShortValue]) clusterID:TypeInfo::GetClusterId() @@ -63645,49 +64518,6 @@ + (void)readAttributePIHeatingDemandWithAttributeCache:(MTRAttributeCacheContain }]; } -- (void)readAttributeHVACSystemTypeConfigurationWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler -{ - [self readAttributeHVACSystemTypeConfigurationWithCompletion: - ^(NSNumber * _Nullable value, NSError * _Nullable error) { - // Cast is safe because subclass does not add any selectors. - completionHandler(static_cast(value), error); - }]; -} -- (void)writeAttributeHVACSystemTypeConfigurationWithValue:(NSNumber * _Nonnull)value completionHandler:(MTRStatusCompletion)completionHandler -{ - [self writeAttributeHVACSystemTypeConfigurationWithValue:value params:nil completion:completionHandler]; -} -- (void)writeAttributeHVACSystemTypeConfigurationWithValue:(NSNumber * _Nonnull)value params:(MTRWriteParams * _Nullable)params completionHandler:(MTRStatusCompletion)completionHandler -{ - [self writeAttributeHVACSystemTypeConfigurationWithValue:value params:params completion:completionHandler]; -} -- (void)subscribeAttributeHVACSystemTypeConfigurationWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(MTRSubscribeParams * _Nullable)params - subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler -{ - MTRSubscribeParams * _Nullable subscribeParams = [params copy]; - if (subscribeParams == nil) { - subscribeParams = [[MTRSubscribeParams alloc] initWithMinInterval:minInterval maxInterval:maxInterval]; - } else { - subscribeParams.minInterval = minInterval; - subscribeParams.maxInterval = maxInterval; - } - [self subscribeAttributeHVACSystemTypeConfigurationWithParams:subscribeParams subscriptionEstablished:subscriptionEstablishedHandler reportHandler: - ^(NSNumber * _Nullable value, NSError * _Nullable error) { - // Cast is safe because subclass does not add any selectors. - reportHandler(static_cast(value), error); - }]; -} -+ (void)readAttributeHVACSystemTypeConfigurationWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler -{ - [self readAttributeHVACSystemTypeConfigurationWithClusterStateCache:attributeCacheContainer.realContainer endpoint:endpoint queue:queue completion: - ^(NSNumber * _Nullable value, NSError * _Nullable error) { - // Cast is safe because subclass does not add any selectors. - completionHandler(static_cast(value), error); - }]; -} - - (void)readAttributeLocalTemperatureCalibrationWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler { [self readAttributeLocalTemperatureCalibrationWithCompletion: @@ -65218,49 +66048,6 @@ + (void)readAttributeACCoilTemperatureWithAttributeCache:(MTRAttributeCacheConta }]; } -- (void)readAttributeACCapacityformatWithCompletionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler -{ - [self readAttributeACCapacityformatWithCompletion: - ^(NSNumber * _Nullable value, NSError * _Nullable error) { - // Cast is safe because subclass does not add any selectors. - completionHandler(static_cast(value), error); - }]; -} -- (void)writeAttributeACCapacityformatWithValue:(NSNumber * _Nonnull)value completionHandler:(MTRStatusCompletion)completionHandler -{ - [self writeAttributeACCapacityformatWithValue:value params:nil completion:completionHandler]; -} -- (void)writeAttributeACCapacityformatWithValue:(NSNumber * _Nonnull)value params:(MTRWriteParams * _Nullable)params completionHandler:(MTRStatusCompletion)completionHandler -{ - [self writeAttributeACCapacityformatWithValue:value params:params completion:completionHandler]; -} -- (void)subscribeAttributeACCapacityformatWithMinInterval:(NSNumber * _Nonnull)minInterval maxInterval:(NSNumber * _Nonnull)maxInterval - params:(MTRSubscribeParams * _Nullable)params - subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablishedHandler - reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler -{ - MTRSubscribeParams * _Nullable subscribeParams = [params copy]; - if (subscribeParams == nil) { - subscribeParams = [[MTRSubscribeParams alloc] initWithMinInterval:minInterval maxInterval:maxInterval]; - } else { - subscribeParams.minInterval = minInterval; - subscribeParams.maxInterval = maxInterval; - } - [self subscribeAttributeACCapacityformatWithParams:subscribeParams subscriptionEstablished:subscriptionEstablishedHandler reportHandler: - ^(NSNumber * _Nullable value, NSError * _Nullable error) { - // Cast is safe because subclass does not add any selectors. - reportHandler(static_cast(value), error); - }]; -} -+ (void)readAttributeACCapacityformatWithAttributeCache:(MTRAttributeCacheContainer *)attributeCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completionHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completionHandler -{ - [self readAttributeACCapacityformatWithClusterStateCache:attributeCacheContainer.realContainer endpoint:endpoint queue:queue completion: - ^(NSNumber * _Nullable value, NSError * _Nullable error) { - // Cast is safe because subclass does not add any selectors. - completionHandler(static_cast(value), error); - }]; -} - - (void)readAttributeGeneratedCommandListWithCompletionHandler:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completionHandler { [self readAttributeGeneratedCommandListWithCompletion: diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h b/src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h index 1c84c35a6db617..0e0dd0b4702490 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h @@ -3094,9 +3094,6 @@ typedef NS_ENUM(uint32_t, MTRAttributeIDType) { MTRClusterThermostatAttributePIHeatingDemandID MTR_DEPRECATED("Please use MTRAttributeIDTypeClusterThermostatAttributePIHeatingDemandID", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)) = 0x00000008, - MTRClusterThermostatAttributeHVACSystemTypeConfigurationID - MTR_DEPRECATED("Please use MTRAttributeIDTypeClusterThermostatAttributeHVACSystemTypeConfigurationID", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)) - = 0x00000009, MTRClusterThermostatAttributeLocalTemperatureCalibrationID MTR_DEPRECATED("Please use MTRAttributeIDTypeClusterThermostatAttributeLocalTemperatureCalibrationID", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)) = 0x00000010, @@ -3211,9 +3208,6 @@ typedef NS_ENUM(uint32_t, MTRAttributeIDType) { MTRClusterThermostatAttributeACCoilTemperatureID MTR_DEPRECATED("Please use MTRAttributeIDTypeClusterThermostatAttributeACCoilTemperatureID", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)) = 0x00000046, - MTRClusterThermostatAttributeACCapacityformatID - MTR_DEPRECATED("Please use MTRAttributeIDTypeClusterThermostatAttributeACCapacityformatID", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)) - = 0x00000047, MTRClusterThermostatAttributeGeneratedCommandListID MTR_DEPRECATED("Please use MTRAttributeIDTypeClusterThermostatAttributeGeneratedCommandListID", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)) = MTRClusterGlobalAttributeGeneratedCommandListID, @@ -3240,7 +3234,6 @@ typedef NS_ENUM(uint32_t, MTRAttributeIDType) { MTRAttributeIDTypeClusterThermostatAttributeAbsMaxCoolSetpointLimitID MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x00000006, MTRAttributeIDTypeClusterThermostatAttributePICoolingDemandID MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x00000007, MTRAttributeIDTypeClusterThermostatAttributePIHeatingDemandID MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x00000008, - MTRAttributeIDTypeClusterThermostatAttributeHVACSystemTypeConfigurationID MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x00000009, MTRAttributeIDTypeClusterThermostatAttributeLocalTemperatureCalibrationID MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x00000010, MTRAttributeIDTypeClusterThermostatAttributeOccupiedCoolingSetpointID MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x00000011, MTRAttributeIDTypeClusterThermostatAttributeOccupiedHeatingSetpointID MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x00000012, @@ -3254,6 +3247,7 @@ typedef NS_ENUM(uint32_t, MTRAttributeIDType) { MTRAttributeIDTypeClusterThermostatAttributeRemoteSensingID MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x0000001A, MTRAttributeIDTypeClusterThermostatAttributeControlSequenceOfOperationID MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x0000001B, MTRAttributeIDTypeClusterThermostatAttributeSystemModeID MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x0000001C, + MTRAttributeIDTypeClusterThermostatAttributeAlarmMaskID MTR_PROVISIONALLY_AVAILABLE = 0x0000001D, MTRAttributeIDTypeClusterThermostatAttributeThermostatRunningModeID MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x0000001E, MTRAttributeIDTypeClusterThermostatAttributeStartOfWeekID MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x00000020, MTRAttributeIDTypeClusterThermostatAttributeNumberOfWeeklyTransitionsID MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x00000021, @@ -3279,7 +3273,21 @@ typedef NS_ENUM(uint32_t, MTRAttributeIDType) { MTRAttributeIDTypeClusterThermostatAttributeACErrorCodeID MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x00000044, MTRAttributeIDTypeClusterThermostatAttributeACLouverPositionID MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x00000045, MTRAttributeIDTypeClusterThermostatAttributeACCoilTemperatureID MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x00000046, - MTRAttributeIDTypeClusterThermostatAttributeACCapacityformatID MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x00000047, + MTRAttributeIDTypeClusterThermostatAttributeACCapacityFormatID MTR_PROVISIONALLY_AVAILABLE = 0x00000047, + MTRAttributeIDTypeClusterThermostatAttributePresetTypesID MTR_PROVISIONALLY_AVAILABLE = 0x00000048, + MTRAttributeIDTypeClusterThermostatAttributeScheduleTypesID MTR_PROVISIONALLY_AVAILABLE = 0x00000049, + MTRAttributeIDTypeClusterThermostatAttributeNumberOfPresetsID MTR_PROVISIONALLY_AVAILABLE = 0x0000004A, + MTRAttributeIDTypeClusterThermostatAttributeNumberOfSchedulesID MTR_PROVISIONALLY_AVAILABLE = 0x0000004B, + MTRAttributeIDTypeClusterThermostatAttributeNumberOfScheduleTransitionsID MTR_PROVISIONALLY_AVAILABLE = 0x0000004C, + MTRAttributeIDTypeClusterThermostatAttributeNumberOfScheduleTransitionPerDayID MTR_PROVISIONALLY_AVAILABLE = 0x0000004D, + MTRAttributeIDTypeClusterThermostatAttributeActivePresetHandleID MTR_PROVISIONALLY_AVAILABLE = 0x0000004E, + MTRAttributeIDTypeClusterThermostatAttributeActiveScheduleHandleID MTR_PROVISIONALLY_AVAILABLE = 0x0000004F, + MTRAttributeIDTypeClusterThermostatAttributePresetsID MTR_PROVISIONALLY_AVAILABLE = 0x00000050, + MTRAttributeIDTypeClusterThermostatAttributeSchedulesID MTR_PROVISIONALLY_AVAILABLE = 0x00000051, + MTRAttributeIDTypeClusterThermostatAttributePresetsSchedulesEditableID MTR_PROVISIONALLY_AVAILABLE = 0x00000052, + MTRAttributeIDTypeClusterThermostatAttributeTemperatureSetpointHoldPolicyID MTR_PROVISIONALLY_AVAILABLE = 0x00000053, + MTRAttributeIDTypeClusterThermostatAttributeSetpointHoldExpiryTimestampID MTR_PROVISIONALLY_AVAILABLE = 0x00000054, + MTRAttributeIDTypeClusterThermostatAttributeQueuedPresetID MTR_PROVISIONALLY_AVAILABLE = 0x00000055, MTRAttributeIDTypeClusterThermostatAttributeGeneratedCommandListID MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = MTRAttributeIDTypeGlobalAttributeGeneratedCommandListID, MTRAttributeIDTypeClusterThermostatAttributeAcceptedCommandListID MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = MTRAttributeIDTypeGlobalAttributeAcceptedCommandListID, MTRAttributeIDTypeClusterThermostatAttributeEventListID MTR_PROVISIONALLY_AVAILABLE = MTRAttributeIDTypeGlobalAttributeEventListID, @@ -6311,8 +6319,17 @@ typedef NS_ENUM(uint32_t, MTRCommandIDType) { MTRCommandIDTypeClusterThermostatCommandSetpointRaiseLowerID MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x00000000, MTRCommandIDTypeClusterThermostatCommandGetWeeklyScheduleResponseID MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x00000000, MTRCommandIDTypeClusterThermostatCommandSetWeeklyScheduleID MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x00000001, + MTRCommandIDTypeClusterThermostatCommandGetRelayStatusLogResponseID MTR_PROVISIONALLY_AVAILABLE = 0x00000001, MTRCommandIDTypeClusterThermostatCommandGetWeeklyScheduleID MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x00000002, MTRCommandIDTypeClusterThermostatCommandClearWeeklyScheduleID MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x00000003, + MTRCommandIDTypeClusterThermostatCommandGetRelayStatusLogID MTR_PROVISIONALLY_AVAILABLE = 0x00000004, + MTRCommandIDTypeClusterThermostatCommandSetActiveScheduleRequestID MTR_PROVISIONALLY_AVAILABLE = 0x00000005, + MTRCommandIDTypeClusterThermostatCommandSetActivePresetRequestID MTR_PROVISIONALLY_AVAILABLE = 0x00000006, + MTRCommandIDTypeClusterThermostatCommandStartPresetsSchedulesEditRequestID MTR_PROVISIONALLY_AVAILABLE = 0x00000007, + MTRCommandIDTypeClusterThermostatCommandCancelPresetsSchedulesEditRequestID MTR_PROVISIONALLY_AVAILABLE = 0x00000008, + MTRCommandIDTypeClusterThermostatCommandCommitPresetsSchedulesRequestID MTR_PROVISIONALLY_AVAILABLE = 0x00000009, + MTRCommandIDTypeClusterThermostatCommandCancelSetActivePresetRequestID MTR_PROVISIONALLY_AVAILABLE = 0x0000000A, + MTRCommandIDTypeClusterThermostatCommandSetTemperatureSetpointHoldPolicyID MTR_PROVISIONALLY_AVAILABLE = 0x0000000B, // Cluster FanControl deprecated command id names diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRClusters.h b/src/darwin/Framework/CHIP/zap-generated/MTRClusters.h index fa14a4326e7262..eb893b1294311e 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRClusters.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRClusters.h @@ -3856,7 +3856,7 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) /** * Cluster Thermostat - * An interface for configuring and controlling the functionality of a thermostat. + * This cluster provides an interface to the functionality of a thermostat. */ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) @interface MTRClusterThermostat : MTRGenericCluster @@ -3867,6 +3867,22 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) - (void)clearWeeklyScheduleWithParams:(MTRThermostatClusterClearWeeklyScheduleParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)clearWeeklyScheduleWithExpectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); +- (void)getRelayStatusLogWithParams:(MTRThermostatClusterGetRelayStatusLogParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRThermostatClusterGetRelayStatusLogResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE; +- (void)getRelayStatusLogWithExpectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRThermostatClusterGetRelayStatusLogResponseParams * _Nullable data, NSError * _Nullable error))completion + MTR_PROVISIONALLY_AVAILABLE; +- (void)setActiveScheduleRequestWithParams:(MTRThermostatClusterSetActiveScheduleRequestParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; +- (void)setActivePresetRequestWithParams:(MTRThermostatClusterSetActivePresetRequestParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; +- (void)startPresetsSchedulesEditRequestWithParams:(MTRThermostatClusterStartPresetsSchedulesEditRequestParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; +- (void)cancelPresetsSchedulesEditRequestWithParams:(MTRThermostatClusterCancelPresetsSchedulesEditRequestParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; +- (void)cancelPresetsSchedulesEditRequestWithExpectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion + MTR_PROVISIONALLY_AVAILABLE; +- (void)commitPresetsSchedulesRequestWithParams:(MTRThermostatClusterCommitPresetsSchedulesRequestParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; +- (void)commitPresetsSchedulesRequestWithExpectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion + MTR_PROVISIONALLY_AVAILABLE; +- (void)cancelSetActivePresetRequestWithParams:(MTRThermostatClusterCancelSetActivePresetRequestParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; +- (void)cancelSetActivePresetRequestWithExpectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion + MTR_PROVISIONALLY_AVAILABLE; +- (void)setTemperatureSetpointHoldPolicyWithParams:(MTRThermostatClusterSetTemperatureSetpointHoldPolicyParams *)params expectedValues:(NSArray *> * _Nullable)expectedDataValueDictionaries expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; - (NSDictionary * _Nullable)readAttributeLocalTemperatureWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -3886,10 +3902,6 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) - (NSDictionary * _Nullable)readAttributePIHeatingDemandWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); -- (NSDictionary * _Nullable)readAttributeHVACSystemTypeConfigurationWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); -- (void)writeAttributeHVACSystemTypeConfigurationWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); -- (void)writeAttributeHVACSystemTypeConfigurationWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - - (NSDictionary * _Nullable)readAttributeLocalTemperatureCalibrationWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (void)writeAttributeLocalTemperatureCalibrationWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (void)writeAttributeLocalTemperatureCalibrationWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -3942,6 +3954,8 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) - (void)writeAttributeSystemModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (void)writeAttributeSystemModeWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); +- (NSDictionary * _Nullable)readAttributeAlarmMaskWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; + - (NSDictionary * _Nullable)readAttributeThermostatRunningModeWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); - (NSDictionary * _Nullable)readAttributeStartOfWeekWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -4016,9 +4030,41 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) - (NSDictionary * _Nullable)readAttributeACCoilTemperatureWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); -- (NSDictionary * _Nullable)readAttributeACCapacityformatWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); -- (void)writeAttributeACCapacityformatWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); -- (void)writeAttributeACCapacityformatWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); +- (NSDictionary * _Nullable)readAttributeACCapacityFormatWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; +- (void)writeAttributeACCapacityFormatWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_PROVISIONALLY_AVAILABLE; +- (void)writeAttributeACCapacityFormatWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; + +- (NSDictionary * _Nullable)readAttributePresetTypesWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; + +- (NSDictionary * _Nullable)readAttributeScheduleTypesWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; + +- (NSDictionary * _Nullable)readAttributeNumberOfPresetsWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; + +- (NSDictionary * _Nullable)readAttributeNumberOfSchedulesWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; + +- (NSDictionary * _Nullable)readAttributeNumberOfScheduleTransitionsWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; + +- (NSDictionary * _Nullable)readAttributeNumberOfScheduleTransitionPerDayWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; + +- (NSDictionary * _Nullable)readAttributeActivePresetHandleWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; + +- (NSDictionary * _Nullable)readAttributeActiveScheduleHandleWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; + +- (NSDictionary * _Nullable)readAttributePresetsWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; +- (void)writeAttributePresetsWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_PROVISIONALLY_AVAILABLE; +- (void)writeAttributePresetsWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; + +- (NSDictionary * _Nullable)readAttributeSchedulesWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; +- (void)writeAttributeSchedulesWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_PROVISIONALLY_AVAILABLE; +- (void)writeAttributeSchedulesWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; + +- (NSDictionary * _Nullable)readAttributePresetsSchedulesEditableWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; + +- (NSDictionary * _Nullable)readAttributeTemperatureSetpointHoldPolicyWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; + +- (NSDictionary * _Nullable)readAttributeSetpointHoldExpiryTimestampWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; + +- (NSDictionary * _Nullable)readAttributeQueuedPresetWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE; - (NSDictionary * _Nullable)readAttributeGeneratedCommandListWithParams:(MTRReadParams * _Nullable)params MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRClusters.mm b/src/darwin/Framework/CHIP/zap-generated/MTRClusters.mm index 4d9af8e770ad79..d293150b02faff 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRClusters.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTRClusters.mm @@ -11325,6 +11325,238 @@ - (void)clearWeeklyScheduleWithParams:(MTRThermostatClusterClearWeeklySchedulePa completion:responseHandler]; } +- (void)getRelayStatusLogWithExpectedValues:(NSArray *> *)expectedValues expectedValueInterval:(NSNumber *)expectedValueIntervalMs completion:(void (^)(MTRThermostatClusterGetRelayStatusLogResponseParams * _Nullable data, NSError * _Nullable error))completion +{ + [self getRelayStatusLogWithParams:nil expectedValues:expectedValues expectedValueInterval:expectedValueIntervalMs completion:completion]; +} +- (void)getRelayStatusLogWithParams:(MTRThermostatClusterGetRelayStatusLogParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(void (^)(MTRThermostatClusterGetRelayStatusLogResponseParams * _Nullable data, NSError * _Nullable error))completion +{ + if (params == nil) { + params = [[MTRThermostatClusterGetRelayStatusLogParams + alloc] init]; + } + + auto responseHandler = ^(id _Nullable response, NSError * _Nullable error) { + completion(response, error); + }; + + auto * timedInvokeTimeoutMs = params.timedInvokeTimeoutMs; + + using RequestType = Thermostat::Commands::GetRelayStatusLog::Type; + [self.device _invokeKnownCommandWithEndpointID:@(self.endpoint) + clusterID:@(RequestType::GetClusterId()) + commandID:@(RequestType::GetCommandId()) + commandPayload:params + expectedValues:expectedValues + expectedValueInterval:expectedValueIntervalMs + timedInvokeTimeout:timedInvokeTimeoutMs + serverSideProcessingTimeout:params.serverSideProcessingTimeout + responseClass:MTRThermostatClusterGetRelayStatusLogResponseParams.class + queue:self.callbackQueue + completion:responseHandler]; +} + +- (void)setActiveScheduleRequestWithParams:(MTRThermostatClusterSetActiveScheduleRequestParams *)params expectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion +{ + if (params == nil) { + params = [[MTRThermostatClusterSetActiveScheduleRequestParams + alloc] init]; + } + + auto responseHandler = ^(id _Nullable response, NSError * _Nullable error) { + completion(error); + }; + + auto * timedInvokeTimeoutMs = params.timedInvokeTimeoutMs; + + using RequestType = Thermostat::Commands::SetActiveScheduleRequest::Type; + [self.device _invokeKnownCommandWithEndpointID:@(self.endpoint) + clusterID:@(RequestType::GetClusterId()) + commandID:@(RequestType::GetCommandId()) + commandPayload:params + expectedValues:expectedValues + expectedValueInterval:expectedValueIntervalMs + timedInvokeTimeout:timedInvokeTimeoutMs + serverSideProcessingTimeout:params.serverSideProcessingTimeout + responseClass:nil + queue:self.callbackQueue + completion:responseHandler]; +} + +- (void)setActivePresetRequestWithParams:(MTRThermostatClusterSetActivePresetRequestParams *)params expectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion +{ + if (params == nil) { + params = [[MTRThermostatClusterSetActivePresetRequestParams + alloc] init]; + } + + auto responseHandler = ^(id _Nullable response, NSError * _Nullable error) { + completion(error); + }; + + auto * timedInvokeTimeoutMs = params.timedInvokeTimeoutMs; + + using RequestType = Thermostat::Commands::SetActivePresetRequest::Type; + [self.device _invokeKnownCommandWithEndpointID:@(self.endpoint) + clusterID:@(RequestType::GetClusterId()) + commandID:@(RequestType::GetCommandId()) + commandPayload:params + expectedValues:expectedValues + expectedValueInterval:expectedValueIntervalMs + timedInvokeTimeout:timedInvokeTimeoutMs + serverSideProcessingTimeout:params.serverSideProcessingTimeout + responseClass:nil + queue:self.callbackQueue + completion:responseHandler]; +} + +- (void)startPresetsSchedulesEditRequestWithParams:(MTRThermostatClusterStartPresetsSchedulesEditRequestParams *)params expectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion +{ + if (params == nil) { + params = [[MTRThermostatClusterStartPresetsSchedulesEditRequestParams + alloc] init]; + } + + auto responseHandler = ^(id _Nullable response, NSError * _Nullable error) { + completion(error); + }; + + auto * timedInvokeTimeoutMs = params.timedInvokeTimeoutMs; + + using RequestType = Thermostat::Commands::StartPresetsSchedulesEditRequest::Type; + [self.device _invokeKnownCommandWithEndpointID:@(self.endpoint) + clusterID:@(RequestType::GetClusterId()) + commandID:@(RequestType::GetCommandId()) + commandPayload:params + expectedValues:expectedValues + expectedValueInterval:expectedValueIntervalMs + timedInvokeTimeout:timedInvokeTimeoutMs + serverSideProcessingTimeout:params.serverSideProcessingTimeout + responseClass:nil + queue:self.callbackQueue + completion:responseHandler]; +} + +- (void)cancelPresetsSchedulesEditRequestWithExpectedValues:(NSArray *> *)expectedValues expectedValueInterval:(NSNumber *)expectedValueIntervalMs completion:(MTRStatusCompletion)completion +{ + [self cancelPresetsSchedulesEditRequestWithParams:nil expectedValues:expectedValues expectedValueInterval:expectedValueIntervalMs completion:completion]; +} +- (void)cancelPresetsSchedulesEditRequestWithParams:(MTRThermostatClusterCancelPresetsSchedulesEditRequestParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion +{ + if (params == nil) { + params = [[MTRThermostatClusterCancelPresetsSchedulesEditRequestParams + alloc] init]; + } + + auto responseHandler = ^(id _Nullable response, NSError * _Nullable error) { + completion(error); + }; + + auto * timedInvokeTimeoutMs = params.timedInvokeTimeoutMs; + + using RequestType = Thermostat::Commands::CancelPresetsSchedulesEditRequest::Type; + [self.device _invokeKnownCommandWithEndpointID:@(self.endpoint) + clusterID:@(RequestType::GetClusterId()) + commandID:@(RequestType::GetCommandId()) + commandPayload:params + expectedValues:expectedValues + expectedValueInterval:expectedValueIntervalMs + timedInvokeTimeout:timedInvokeTimeoutMs + serverSideProcessingTimeout:params.serverSideProcessingTimeout + responseClass:nil + queue:self.callbackQueue + completion:responseHandler]; +} + +- (void)commitPresetsSchedulesRequestWithExpectedValues:(NSArray *> *)expectedValues expectedValueInterval:(NSNumber *)expectedValueIntervalMs completion:(MTRStatusCompletion)completion +{ + [self commitPresetsSchedulesRequestWithParams:nil expectedValues:expectedValues expectedValueInterval:expectedValueIntervalMs completion:completion]; +} +- (void)commitPresetsSchedulesRequestWithParams:(MTRThermostatClusterCommitPresetsSchedulesRequestParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion +{ + if (params == nil) { + params = [[MTRThermostatClusterCommitPresetsSchedulesRequestParams + alloc] init]; + } + + auto responseHandler = ^(id _Nullable response, NSError * _Nullable error) { + completion(error); + }; + + auto * timedInvokeTimeoutMs = params.timedInvokeTimeoutMs; + + using RequestType = Thermostat::Commands::CommitPresetsSchedulesRequest::Type; + [self.device _invokeKnownCommandWithEndpointID:@(self.endpoint) + clusterID:@(RequestType::GetClusterId()) + commandID:@(RequestType::GetCommandId()) + commandPayload:params + expectedValues:expectedValues + expectedValueInterval:expectedValueIntervalMs + timedInvokeTimeout:timedInvokeTimeoutMs + serverSideProcessingTimeout:params.serverSideProcessingTimeout + responseClass:nil + queue:self.callbackQueue + completion:responseHandler]; +} + +- (void)cancelSetActivePresetRequestWithExpectedValues:(NSArray *> *)expectedValues expectedValueInterval:(NSNumber *)expectedValueIntervalMs completion:(MTRStatusCompletion)completion +{ + [self cancelSetActivePresetRequestWithParams:nil expectedValues:expectedValues expectedValueInterval:expectedValueIntervalMs completion:completion]; +} +- (void)cancelSetActivePresetRequestWithParams:(MTRThermostatClusterCancelSetActivePresetRequestParams * _Nullable)params expectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion +{ + if (params == nil) { + params = [[MTRThermostatClusterCancelSetActivePresetRequestParams + alloc] init]; + } + + auto responseHandler = ^(id _Nullable response, NSError * _Nullable error) { + completion(error); + }; + + auto * timedInvokeTimeoutMs = params.timedInvokeTimeoutMs; + + using RequestType = Thermostat::Commands::CancelSetActivePresetRequest::Type; + [self.device _invokeKnownCommandWithEndpointID:@(self.endpoint) + clusterID:@(RequestType::GetClusterId()) + commandID:@(RequestType::GetCommandId()) + commandPayload:params + expectedValues:expectedValues + expectedValueInterval:expectedValueIntervalMs + timedInvokeTimeout:timedInvokeTimeoutMs + serverSideProcessingTimeout:params.serverSideProcessingTimeout + responseClass:nil + queue:self.callbackQueue + completion:responseHandler]; +} + +- (void)setTemperatureSetpointHoldPolicyWithParams:(MTRThermostatClusterSetTemperatureSetpointHoldPolicyParams *)params expectedValues:(NSArray *> * _Nullable)expectedValues expectedValueInterval:(NSNumber * _Nullable)expectedValueIntervalMs completion:(MTRStatusCompletion)completion +{ + if (params == nil) { + params = [[MTRThermostatClusterSetTemperatureSetpointHoldPolicyParams + alloc] init]; + } + + auto responseHandler = ^(id _Nullable response, NSError * _Nullable error) { + completion(error); + }; + + auto * timedInvokeTimeoutMs = params.timedInvokeTimeoutMs; + + using RequestType = Thermostat::Commands::SetTemperatureSetpointHoldPolicy::Type; + [self.device _invokeKnownCommandWithEndpointID:@(self.endpoint) + clusterID:@(RequestType::GetClusterId()) + commandID:@(RequestType::GetCommandId()) + commandPayload:params + expectedValues:expectedValues + expectedValueInterval:expectedValueIntervalMs + timedInvokeTimeout:timedInvokeTimeoutMs + serverSideProcessingTimeout:params.serverSideProcessingTimeout + responseClass:nil + queue:self.callbackQueue + completion:responseHandler]; +} + - (NSDictionary * _Nullable)readAttributeLocalTemperatureWithParams:(MTRReadParams * _Nullable)params { return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributeLocalTemperatureID) params:params]; @@ -11370,22 +11602,6 @@ - (void)clearWeeklyScheduleWithParams:(MTRThermostatClusterClearWeeklySchedulePa return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributePIHeatingDemandID) params:params]; } -- (NSDictionary * _Nullable)readAttributeHVACSystemTypeConfigurationWithParams:(MTRReadParams * _Nullable)params -{ - return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributeHVACSystemTypeConfigurationID) params:params]; -} - -- (void)writeAttributeHVACSystemTypeConfigurationWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs -{ - [self writeAttributeHVACSystemTypeConfigurationWithValue:dataValueDictionary expectedValueInterval:expectedValueIntervalMs params:nil]; -} -- (void)writeAttributeHVACSystemTypeConfigurationWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params -{ - NSNumber * timedWriteTimeout = params.timedWriteTimeout; - - [self.device writeAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributeHVACSystemTypeConfigurationID) value:dataValueDictionary expectedValueInterval:expectedValueIntervalMs timedWriteTimeout:timedWriteTimeout]; -} - - (NSDictionary * _Nullable)readAttributeLocalTemperatureCalibrationWithParams:(MTRReadParams * _Nullable)params { return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributeLocalTemperatureCalibrationID) params:params]; @@ -11594,6 +11810,11 @@ - (void)writeAttributeSystemModeWithValue:(NSDictionary *)dataVa [self.device writeAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributeSystemModeID) value:dataValueDictionary expectedValueInterval:expectedValueIntervalMs timedWriteTimeout:timedWriteTimeout]; } +- (NSDictionary * _Nullable)readAttributeAlarmMaskWithParams:(MTRReadParams * _Nullable)params +{ + return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributeAlarmMaskID) params:params]; +} + - (NSDictionary * _Nullable)readAttributeThermostatRunningModeWithParams:(MTRReadParams * _Nullable)params { return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributeThermostatRunningModeID) params:params]; @@ -11851,20 +12072,112 @@ - (void)writeAttributeACLouverPositionWithValue:(NSDictionary *) return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributeACCoilTemperatureID) params:params]; } -- (NSDictionary * _Nullable)readAttributeACCapacityformatWithParams:(MTRReadParams * _Nullable)params +- (NSDictionary * _Nullable)readAttributeACCapacityFormatWithParams:(MTRReadParams * _Nullable)params { - return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributeACCapacityformatID) params:params]; + return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributeACCapacityFormatID) params:params]; } -- (void)writeAttributeACCapacityformatWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs +- (void)writeAttributeACCapacityFormatWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs { - [self writeAttributeACCapacityformatWithValue:dataValueDictionary expectedValueInterval:expectedValueIntervalMs params:nil]; + [self writeAttributeACCapacityFormatWithValue:dataValueDictionary expectedValueInterval:expectedValueIntervalMs params:nil]; } -- (void)writeAttributeACCapacityformatWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params +- (void)writeAttributeACCapacityFormatWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params { NSNumber * timedWriteTimeout = params.timedWriteTimeout; - [self.device writeAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributeACCapacityformatID) value:dataValueDictionary expectedValueInterval:expectedValueIntervalMs timedWriteTimeout:timedWriteTimeout]; + [self.device writeAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributeACCapacityFormatID) value:dataValueDictionary expectedValueInterval:expectedValueIntervalMs timedWriteTimeout:timedWriteTimeout]; +} + +- (NSDictionary * _Nullable)readAttributePresetTypesWithParams:(MTRReadParams * _Nullable)params +{ + return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributePresetTypesID) params:params]; +} + +- (NSDictionary * _Nullable)readAttributeScheduleTypesWithParams:(MTRReadParams * _Nullable)params +{ + return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributeScheduleTypesID) params:params]; +} + +- (NSDictionary * _Nullable)readAttributeNumberOfPresetsWithParams:(MTRReadParams * _Nullable)params +{ + return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributeNumberOfPresetsID) params:params]; +} + +- (NSDictionary * _Nullable)readAttributeNumberOfSchedulesWithParams:(MTRReadParams * _Nullable)params +{ + return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributeNumberOfSchedulesID) params:params]; +} + +- (NSDictionary * _Nullable)readAttributeNumberOfScheduleTransitionsWithParams:(MTRReadParams * _Nullable)params +{ + return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributeNumberOfScheduleTransitionsID) params:params]; +} + +- (NSDictionary * _Nullable)readAttributeNumberOfScheduleTransitionPerDayWithParams:(MTRReadParams * _Nullable)params +{ + return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributeNumberOfScheduleTransitionPerDayID) params:params]; +} + +- (NSDictionary * _Nullable)readAttributeActivePresetHandleWithParams:(MTRReadParams * _Nullable)params +{ + return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributeActivePresetHandleID) params:params]; +} + +- (NSDictionary * _Nullable)readAttributeActiveScheduleHandleWithParams:(MTRReadParams * _Nullable)params +{ + return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributeActiveScheduleHandleID) params:params]; +} + +- (NSDictionary * _Nullable)readAttributePresetsWithParams:(MTRReadParams * _Nullable)params +{ + return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributePresetsID) params:params]; +} + +- (void)writeAttributePresetsWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs +{ + [self writeAttributePresetsWithValue:dataValueDictionary expectedValueInterval:expectedValueIntervalMs params:nil]; +} +- (void)writeAttributePresetsWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params +{ + NSNumber * timedWriteTimeout = params.timedWriteTimeout; + + [self.device writeAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributePresetsID) value:dataValueDictionary expectedValueInterval:expectedValueIntervalMs timedWriteTimeout:timedWriteTimeout]; +} + +- (NSDictionary * _Nullable)readAttributeSchedulesWithParams:(MTRReadParams * _Nullable)params +{ + return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributeSchedulesID) params:params]; +} + +- (void)writeAttributeSchedulesWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs +{ + [self writeAttributeSchedulesWithValue:dataValueDictionary expectedValueInterval:expectedValueIntervalMs params:nil]; +} +- (void)writeAttributeSchedulesWithValue:(NSDictionary *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params +{ + NSNumber * timedWriteTimeout = params.timedWriteTimeout; + + [self.device writeAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributeSchedulesID) value:dataValueDictionary expectedValueInterval:expectedValueIntervalMs timedWriteTimeout:timedWriteTimeout]; +} + +- (NSDictionary * _Nullable)readAttributePresetsSchedulesEditableWithParams:(MTRReadParams * _Nullable)params +{ + return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributePresetsSchedulesEditableID) params:params]; +} + +- (NSDictionary * _Nullable)readAttributeTemperatureSetpointHoldPolicyWithParams:(MTRReadParams * _Nullable)params +{ + return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributeTemperatureSetpointHoldPolicyID) params:params]; +} + +- (NSDictionary * _Nullable)readAttributeSetpointHoldExpiryTimestampWithParams:(MTRReadParams * _Nullable)params +{ + return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributeSetpointHoldExpiryTimestampID) params:params]; +} + +- (NSDictionary * _Nullable)readAttributeQueuedPresetWithParams:(MTRReadParams * _Nullable)params +{ + return [self.device readAttributeWithEndpointID:@(self.endpoint) clusterID:@(MTRClusterIDTypeThermostatID) attributeID:@(MTRAttributeIDTypeClusterThermostatAttributeQueuedPresetID) params:params]; } - (NSDictionary * _Nullable)readAttributeGeneratedCommandListWithParams:(MTRReadParams * _Nullable)params diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.h b/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.h index 6acf413ead81d6..35844d6e7af824 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.h @@ -6933,7 +6933,7 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) @property (nonatomic, copy) NSNumber * _Nonnull numberOfTransitionsForSequence MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); -@property (nonatomic, copy) NSNumber * _Nonnull dayOfWeekForSequence MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); +@property (nonatomic, copy) NSNumber * _Nonnull dayOfWeekforSequence MTR_PROVISIONALLY_AVAILABLE; @property (nonatomic, copy) NSNumber * _Nonnull modeForSequence MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -6973,7 +6973,7 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) @property (nonatomic, copy) NSNumber * _Nonnull numberOfTransitionsForSequence MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); -@property (nonatomic, copy) NSNumber * _Nonnull dayOfWeekForSequence MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); +@property (nonatomic, copy) NSNumber * _Nonnull dayOfWeekforSequence MTR_PROVISIONALLY_AVAILABLE; @property (nonatomic, copy) NSNumber * _Nonnull modeForSequence MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); @@ -7004,6 +7004,35 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) @property (nonatomic, copy, nullable) NSNumber * serverSideProcessingTimeout; @end +MTR_PROVISIONALLY_AVAILABLE +@interface MTRThermostatClusterGetRelayStatusLogResponseParams : NSObject + +@property (nonatomic, copy) NSNumber * _Nonnull timeOfDay MTR_PROVISIONALLY_AVAILABLE; + +@property (nonatomic, copy) NSNumber * _Nonnull relayStatus MTR_PROVISIONALLY_AVAILABLE; + +@property (nonatomic, copy) NSNumber * _Nullable localTemperature MTR_PROVISIONALLY_AVAILABLE; + +@property (nonatomic, copy) NSNumber * _Nullable humidityInPercentage MTR_PROVISIONALLY_AVAILABLE; + +@property (nonatomic, copy) NSNumber * _Nonnull setPoint MTR_PROVISIONALLY_AVAILABLE; + +@property (nonatomic, copy) NSNumber * _Nonnull unreadEntries MTR_PROVISIONALLY_AVAILABLE; + +/** + * Initialize an MTRThermostatClusterGetRelayStatusLogResponseParams with a response-value dictionary + * of the sort that MTRDeviceResponseHandler would receive. + * + * Will return nil and hand out an error if the response-value dictionary is not + * a command data response or is not the right command response. + * + * Will return nil and hand out an error if the data response does not match the known + * schema for this command. + */ +- (nullable instancetype)initWithResponseValue:(NSDictionary *)responseValue + error:(NSError * __autoreleasing *)error MTR_PROVISIONALLY_AVAILABLE; +@end + MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) @interface MTRThermostatClusterGetWeeklyScheduleParams : NSObject @@ -7064,6 +7093,240 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) @property (nonatomic, copy, nullable) NSNumber * serverSideProcessingTimeout; @end +MTR_PROVISIONALLY_AVAILABLE +@interface MTRThermostatClusterGetRelayStatusLogParams : NSObject +/** + * Controls whether the command is a timed command (using Timed Invoke). + * + * If nil (the default value), a regular invoke is done for commands that do + * not require a timed invoke and a timed invoke with some default timed request + * timeout is done for commands that require a timed invoke. + * + * If not nil, a timed invoke is done, with the provided value used as the timed + * request timeout. The value should be chosen small enough to provide the + * desired security properties but large enough that it will allow a round-trip + * from the sever to the client (for the status response and actual invoke + * request) within the timeout window. + * + */ +@property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; + +/** + * Controls how much time, in seconds, we will allow for the server to process the command. + * + * The command will then time out if that much time, plus an allowance for retransmits due to network failures, passes. + * + * If nil, the framework will try to select an appropriate timeout value itself. + */ +@property (nonatomic, copy, nullable) NSNumber * serverSideProcessingTimeout; +@end + +MTR_PROVISIONALLY_AVAILABLE +@interface MTRThermostatClusterSetActiveScheduleRequestParams : NSObject + +@property (nonatomic, copy) NSData * _Nonnull scheduleHandle MTR_PROVISIONALLY_AVAILABLE; +/** + * Controls whether the command is a timed command (using Timed Invoke). + * + * If nil (the default value), a regular invoke is done for commands that do + * not require a timed invoke and a timed invoke with some default timed request + * timeout is done for commands that require a timed invoke. + * + * If not nil, a timed invoke is done, with the provided value used as the timed + * request timeout. The value should be chosen small enough to provide the + * desired security properties but large enough that it will allow a round-trip + * from the sever to the client (for the status response and actual invoke + * request) within the timeout window. + * + */ +@property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; + +/** + * Controls how much time, in seconds, we will allow for the server to process the command. + * + * The command will then time out if that much time, plus an allowance for retransmits due to network failures, passes. + * + * If nil, the framework will try to select an appropriate timeout value itself. + */ +@property (nonatomic, copy, nullable) NSNumber * serverSideProcessingTimeout; +@end + +MTR_PROVISIONALLY_AVAILABLE +@interface MTRThermostatClusterSetActivePresetRequestParams : NSObject + +@property (nonatomic, copy) NSData * _Nonnull presetHandle MTR_PROVISIONALLY_AVAILABLE; + +@property (nonatomic, copy) NSNumber * _Nullable delayMinutes MTR_PROVISIONALLY_AVAILABLE; +/** + * Controls whether the command is a timed command (using Timed Invoke). + * + * If nil (the default value), a regular invoke is done for commands that do + * not require a timed invoke and a timed invoke with some default timed request + * timeout is done for commands that require a timed invoke. + * + * If not nil, a timed invoke is done, with the provided value used as the timed + * request timeout. The value should be chosen small enough to provide the + * desired security properties but large enough that it will allow a round-trip + * from the sever to the client (for the status response and actual invoke + * request) within the timeout window. + * + */ +@property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; + +/** + * Controls how much time, in seconds, we will allow for the server to process the command. + * + * The command will then time out if that much time, plus an allowance for retransmits due to network failures, passes. + * + * If nil, the framework will try to select an appropriate timeout value itself. + */ +@property (nonatomic, copy, nullable) NSNumber * serverSideProcessingTimeout; +@end + +MTR_PROVISIONALLY_AVAILABLE +@interface MTRThermostatClusterStartPresetsSchedulesEditRequestParams : NSObject + +@property (nonatomic, copy) NSNumber * _Nonnull timeoutSeconds MTR_PROVISIONALLY_AVAILABLE; +/** + * Controls whether the command is a timed command (using Timed Invoke). + * + * If nil (the default value), a regular invoke is done for commands that do + * not require a timed invoke and a timed invoke with some default timed request + * timeout is done for commands that require a timed invoke. + * + * If not nil, a timed invoke is done, with the provided value used as the timed + * request timeout. The value should be chosen small enough to provide the + * desired security properties but large enough that it will allow a round-trip + * from the sever to the client (for the status response and actual invoke + * request) within the timeout window. + * + */ +@property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; + +/** + * Controls how much time, in seconds, we will allow for the server to process the command. + * + * The command will then time out if that much time, plus an allowance for retransmits due to network failures, passes. + * + * If nil, the framework will try to select an appropriate timeout value itself. + */ +@property (nonatomic, copy, nullable) NSNumber * serverSideProcessingTimeout; +@end + +MTR_PROVISIONALLY_AVAILABLE +@interface MTRThermostatClusterCancelPresetsSchedulesEditRequestParams : NSObject +/** + * Controls whether the command is a timed command (using Timed Invoke). + * + * If nil (the default value), a regular invoke is done for commands that do + * not require a timed invoke and a timed invoke with some default timed request + * timeout is done for commands that require a timed invoke. + * + * If not nil, a timed invoke is done, with the provided value used as the timed + * request timeout. The value should be chosen small enough to provide the + * desired security properties but large enough that it will allow a round-trip + * from the sever to the client (for the status response and actual invoke + * request) within the timeout window. + * + */ +@property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; + +/** + * Controls how much time, in seconds, we will allow for the server to process the command. + * + * The command will then time out if that much time, plus an allowance for retransmits due to network failures, passes. + * + * If nil, the framework will try to select an appropriate timeout value itself. + */ +@property (nonatomic, copy, nullable) NSNumber * serverSideProcessingTimeout; +@end + +MTR_PROVISIONALLY_AVAILABLE +@interface MTRThermostatClusterCommitPresetsSchedulesRequestParams : NSObject +/** + * Controls whether the command is a timed command (using Timed Invoke). + * + * If nil (the default value), a regular invoke is done for commands that do + * not require a timed invoke and a timed invoke with some default timed request + * timeout is done for commands that require a timed invoke. + * + * If not nil, a timed invoke is done, with the provided value used as the timed + * request timeout. The value should be chosen small enough to provide the + * desired security properties but large enough that it will allow a round-trip + * from the sever to the client (for the status response and actual invoke + * request) within the timeout window. + * + */ +@property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; + +/** + * Controls how much time, in seconds, we will allow for the server to process the command. + * + * The command will then time out if that much time, plus an allowance for retransmits due to network failures, passes. + * + * If nil, the framework will try to select an appropriate timeout value itself. + */ +@property (nonatomic, copy, nullable) NSNumber * serverSideProcessingTimeout; +@end + +MTR_PROVISIONALLY_AVAILABLE +@interface MTRThermostatClusterCancelSetActivePresetRequestParams : NSObject +/** + * Controls whether the command is a timed command (using Timed Invoke). + * + * If nil (the default value), a regular invoke is done for commands that do + * not require a timed invoke and a timed invoke with some default timed request + * timeout is done for commands that require a timed invoke. + * + * If not nil, a timed invoke is done, with the provided value used as the timed + * request timeout. The value should be chosen small enough to provide the + * desired security properties but large enough that it will allow a round-trip + * from the sever to the client (for the status response and actual invoke + * request) within the timeout window. + * + */ +@property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; + +/** + * Controls how much time, in seconds, we will allow for the server to process the command. + * + * The command will then time out if that much time, plus an allowance for retransmits due to network failures, passes. + * + * If nil, the framework will try to select an appropriate timeout value itself. + */ +@property (nonatomic, copy, nullable) NSNumber * serverSideProcessingTimeout; +@end + +MTR_PROVISIONALLY_AVAILABLE +@interface MTRThermostatClusterSetTemperatureSetpointHoldPolicyParams : NSObject + +@property (nonatomic, copy) NSNumber * _Nonnull temperatureSetpointHoldPolicy MTR_PROVISIONALLY_AVAILABLE; +/** + * Controls whether the command is a timed command (using Timed Invoke). + * + * If nil (the default value), a regular invoke is done for commands that do + * not require a timed invoke and a timed invoke with some default timed request + * timeout is done for commands that require a timed invoke. + * + * If not nil, a timed invoke is done, with the provided value used as the timed + * request timeout. The value should be chosen small enough to provide the + * desired security properties but large enough that it will allow a round-trip + * from the sever to the client (for the status response and actual invoke + * request) within the timeout window. + * + */ +@property (nonatomic, copy, nullable) NSNumber * timedInvokeTimeoutMs; + +/** + * Controls how much time, in seconds, we will allow for the server to process the command. + * + * The command will then time out if that much time, plus an allowance for retransmits due to network failures, passes. + * + * If nil, the framework will try to select an appropriate timeout value itself. + */ +@property (nonatomic, copy, nullable) NSNumber * serverSideProcessingTimeout; +@end + MTR_PROVISIONALLY_AVAILABLE @interface MTRFanControlClusterStepParams : NSObject diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.mm b/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.mm index 77b3a652762a38..c8ea8e9bae30bc 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.mm @@ -19143,7 +19143,7 @@ - (instancetype)init _numberOfTransitionsForSequence = @(0); - _dayOfWeekForSequence = @(0); + _dayOfWeekforSequence = @(0); _modeForSequence = @(0); @@ -19158,7 +19158,7 @@ - (id)copyWithZone:(NSZone * _Nullable)zone; auto other = [[MTRThermostatClusterGetWeeklyScheduleResponseParams alloc] init]; other.numberOfTransitionsForSequence = self.numberOfTransitionsForSequence; - other.dayOfWeekForSequence = self.dayOfWeekForSequence; + other.dayOfWeekforSequence = self.dayOfWeekforSequence; other.modeForSequence = self.modeForSequence; other.transitions = self.transitions; other.timedInvokeTimeoutMs = self.timedInvokeTimeoutMs; @@ -19168,7 +19168,7 @@ - (id)copyWithZone:(NSZone * _Nullable)zone; - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: numberOfTransitionsForSequence:%@; dayOfWeekForSequence:%@; modeForSequence:%@; transitions:%@; >", NSStringFromClass([self class]), _numberOfTransitionsForSequence, _dayOfWeekForSequence, _modeForSequence, _transitions]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: numberOfTransitionsForSequence:%@; dayOfWeekforSequence:%@; modeForSequence:%@; transitions:%@; >", NSStringFromClass([self class]), _numberOfTransitionsForSequence, _dayOfWeekforSequence, _modeForSequence, _transitions]; return descriptionString; } @@ -19222,7 +19222,7 @@ - (CHIP_ERROR)_setFieldsFromDecodableStruct:(const chip::app::Clusters::Thermost self.numberOfTransitionsForSequence = [NSNumber numberWithUnsignedChar:decodableStruct.numberOfTransitionsForSequence]; } { - self.dayOfWeekForSequence = [NSNumber numberWithUnsignedChar:decodableStruct.dayOfWeekForSequence.Raw()]; + self.dayOfWeekforSequence = [NSNumber numberWithUnsignedChar:decodableStruct.dayOfWeekforSequence.Raw()]; } { self.modeForSequence = [NSNumber numberWithUnsignedChar:decodableStruct.modeForSequence.Raw()]; @@ -19233,19 +19233,11 @@ - (CHIP_ERROR)_setFieldsFromDecodableStruct:(const chip::app::Clusters::Thermost auto iter_0 = decodableStruct.transitions.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - MTRThermostatClusterThermostatScheduleTransition * newElement_0; - newElement_0 = [MTRThermostatClusterThermostatScheduleTransition new]; + MTRThermostatClusterThermostatScheduleTransitionStruct * newElement_0; + newElement_0 = [MTRThermostatClusterThermostatScheduleTransitionStruct new]; newElement_0.transitionTime = [NSNumber numberWithUnsignedShort:entry_0.transitionTime]; - if (entry_0.heatSetpoint.IsNull()) { - newElement_0.heatSetpoint = nil; - } else { - newElement_0.heatSetpoint = [NSNumber numberWithShort:entry_0.heatSetpoint.Value()]; - } - if (entry_0.coolSetpoint.IsNull()) { - newElement_0.coolSetpoint = nil; - } else { - newElement_0.coolSetpoint = [NSNumber numberWithShort:entry_0.coolSetpoint.Value()]; - } + newElement_0.heatSetpoint = [NSNumber numberWithShort:entry_0.heatSetpoint]; + newElement_0.coolSetpoint = [NSNumber numberWithShort:entry_0.coolSetpoint]; [array_0 addObject:newElement_0]; } CHIP_ERROR err = iter_0.GetStatus(); @@ -19267,7 +19259,7 @@ - (instancetype)init _numberOfTransitionsForSequence = @(0); - _dayOfWeekForSequence = @(0); + _dayOfWeekforSequence = @(0); _modeForSequence = @(0); @@ -19283,7 +19275,7 @@ - (id)copyWithZone:(NSZone * _Nullable)zone; auto other = [[MTRThermostatClusterSetWeeklyScheduleParams alloc] init]; other.numberOfTransitionsForSequence = self.numberOfTransitionsForSequence; - other.dayOfWeekForSequence = self.dayOfWeekForSequence; + other.dayOfWeekforSequence = self.dayOfWeekforSequence; other.modeForSequence = self.modeForSequence; other.transitions = self.transitions; other.timedInvokeTimeoutMs = self.timedInvokeTimeoutMs; @@ -19294,7 +19286,7 @@ - (id)copyWithZone:(NSZone * _Nullable)zone; - (NSString *)description { - NSString * descriptionString = [NSString stringWithFormat:@"<%@: numberOfTransitionsForSequence:%@; dayOfWeekForSequence:%@; modeForSequence:%@; transitions:%@; >", NSStringFromClass([self class]), _numberOfTransitionsForSequence, _dayOfWeekForSequence, _modeForSequence, _transitions]; + NSString * descriptionString = [NSString stringWithFormat:@"<%@: numberOfTransitionsForSequence:%@; dayOfWeekforSequence:%@; modeForSequence:%@; transitions:%@; >", NSStringFromClass([self class]), _numberOfTransitionsForSequence, _dayOfWeekforSequence, _modeForSequence, _transitions]; return descriptionString; } @@ -19310,7 +19302,7 @@ - (CHIP_ERROR)_encodeToTLVReader:(chip::System::PacketBufferTLVReader &)reader encodableStruct.numberOfTransitionsForSequence = self.numberOfTransitionsForSequence.unsignedCharValue; } { - encodableStruct.dayOfWeekForSequence = static_cast>(self.dayOfWeekForSequence.unsignedCharValue); + encodableStruct.dayOfWeekforSequence = static_cast>(self.dayOfWeekforSequence.unsignedCharValue); } { encodableStruct.modeForSequence = static_cast>(self.modeForSequence.unsignedCharValue); @@ -19326,24 +19318,14 @@ - (CHIP_ERROR)_encodeToTLVReader:(chip::System::PacketBufferTLVReader &)reader } listFreer.add(listHolder_0); for (size_t i_0 = 0; i_0 < self.transitions.count; ++i_0) { - if (![self.transitions[i_0] isKindOfClass:[MTRThermostatClusterThermostatScheduleTransition class]]) { + if (![self.transitions[i_0] isKindOfClass:[MTRThermostatClusterThermostatScheduleTransitionStruct class]]) { // Wrong kind of value. return CHIP_ERROR_INVALID_ARGUMENT; } - auto element_0 = (MTRThermostatClusterThermostatScheduleTransition *) self.transitions[i_0]; + auto element_0 = (MTRThermostatClusterThermostatScheduleTransitionStruct *) self.transitions[i_0]; listHolder_0->mList[i_0].transitionTime = element_0.transitionTime.unsignedShortValue; - if (element_0.heatSetpoint == nil) { - listHolder_0->mList[i_0].heatSetpoint.SetNull(); - } else { - auto & nonNullValue_2 = listHolder_0->mList[i_0].heatSetpoint.SetNonNull(); - nonNullValue_2 = element_0.heatSetpoint.shortValue; - } - if (element_0.coolSetpoint == nil) { - listHolder_0->mList[i_0].coolSetpoint.SetNull(); - } else { - auto & nonNullValue_2 = listHolder_0->mList[i_0].coolSetpoint.SetNonNull(); - nonNullValue_2 = element_0.coolSetpoint.shortValue; - } + listHolder_0->mList[i_0].heatSetpoint = element_0.heatSetpoint.shortValue; + listHolder_0->mList[i_0].coolSetpoint = element_0.coolSetpoint.shortValue; } encodableStruct.transitions = ListType_0(listHolder_0->mList, self.transitions.count); } else { @@ -19390,6 +19372,123 @@ - (CHIP_ERROR)_encodeToTLVReader:(chip::System::PacketBufferTLVReader &)reader } @end +@implementation MTRThermostatClusterGetRelayStatusLogResponseParams +- (instancetype)init +{ + if (self = [super init]) { + + _timeOfDay = @(0); + + _relayStatus = @(0); + + _localTemperature = nil; + + _humidityInPercentage = nil; + + _setPoint = @(0); + + _unreadEntries = @(0); + } + return self; +} + +- (id)copyWithZone:(NSZone * _Nullable)zone; +{ + auto other = [[MTRThermostatClusterGetRelayStatusLogResponseParams alloc] init]; + + other.timeOfDay = self.timeOfDay; + other.relayStatus = self.relayStatus; + other.localTemperature = self.localTemperature; + other.humidityInPercentage = self.humidityInPercentage; + other.setPoint = self.setPoint; + other.unreadEntries = self.unreadEntries; + + return other; +} + +- (NSString *)description +{ + NSString * descriptionString = [NSString stringWithFormat:@"<%@: timeOfDay:%@; relayStatus:%@; localTemperature:%@; humidityInPercentage:%@; setPoint:%@; unreadEntries:%@; >", NSStringFromClass([self class]), _timeOfDay, _relayStatus, _localTemperature, _humidityInPercentage, _setPoint, _unreadEntries]; + return descriptionString; +} + +- (nullable instancetype)initWithResponseValue:(NSDictionary *)responseValue + error:(NSError * __autoreleasing *)error +{ + if (!(self = [super init])) { + return nil; + } + + using DecodableType = chip::app::Clusters::Thermostat::Commands::GetRelayStatusLogResponse::DecodableType; + chip::System::PacketBufferHandle buffer = [MTRBaseDevice _responseDataForCommand:responseValue + clusterID:DecodableType::GetClusterId() + commandID:DecodableType::GetCommandId() + error:error]; + if (buffer.IsNull()) { + return nil; + } + + chip::TLV::TLVReader reader; + reader.Init(buffer->Start(), buffer->DataLength()); + + CHIP_ERROR err = reader.Next(chip::TLV::AnonymousTag()); + if (err == CHIP_NO_ERROR) { + DecodableType decodedStruct; + err = chip::app::DataModel::Decode(reader, decodedStruct); + if (err == CHIP_NO_ERROR) { + err = [self _setFieldsFromDecodableStruct:decodedStruct]; + if (err == CHIP_NO_ERROR) { + return self; + } + } + } + + NSString * errorStr = [NSString stringWithFormat:@"Command payload decoding failed: %s", err.AsString()]; + MTR_LOG_ERROR("%s", errorStr.UTF8String); + if (error != nil) { + NSDictionary * userInfo = @{ NSLocalizedFailureReasonErrorKey : NSLocalizedString(errorStr, nil) }; + *error = [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeSchemaMismatch userInfo:userInfo]; + } + return nil; +} + +@end + +@implementation MTRThermostatClusterGetRelayStatusLogResponseParams (InternalMethods) + +- (CHIP_ERROR)_setFieldsFromDecodableStruct:(const chip::app::Clusters::Thermostat::Commands::GetRelayStatusLogResponse::DecodableType &)decodableStruct +{ + { + self.timeOfDay = [NSNumber numberWithUnsignedShort:decodableStruct.timeOfDay]; + } + { + self.relayStatus = [NSNumber numberWithUnsignedShort:decodableStruct.relayStatus.Raw()]; + } + { + if (decodableStruct.localTemperature.IsNull()) { + self.localTemperature = nil; + } else { + self.localTemperature = [NSNumber numberWithShort:decodableStruct.localTemperature.Value()]; + } + } + { + if (decodableStruct.humidityInPercentage.IsNull()) { + self.humidityInPercentage = nil; + } else { + self.humidityInPercentage = [NSNumber numberWithUnsignedChar:decodableStruct.humidityInPercentage.Value()]; + } + } + { + self.setPoint = [NSNumber numberWithShort:decodableStruct.setPoint]; + } + { + self.unreadEntries = [NSNumber numberWithUnsignedShort:decodableStruct.unreadEntries]; + } + return CHIP_NO_ERROR; +} + +@end + @implementation MTRThermostatClusterGetWeeklyScheduleParams - (instancetype)init { @@ -19548,6 +19647,623 @@ - (CHIP_ERROR)_encodeToTLVReader:(chip::System::PacketBufferTLVReader &)reader } @end +@implementation MTRThermostatClusterGetRelayStatusLogParams +- (instancetype)init +{ + if (self = [super init]) { + _timedInvokeTimeoutMs = nil; + _serverSideProcessingTimeout = nil; + } + return self; +} + +- (id)copyWithZone:(NSZone * _Nullable)zone; +{ + auto other = [[MTRThermostatClusterGetRelayStatusLogParams alloc] init]; + + other.timedInvokeTimeoutMs = self.timedInvokeTimeoutMs; + other.serverSideProcessingTimeout = self.serverSideProcessingTimeout; + + return other; +} + +- (NSString *)description +{ + NSString * descriptionString = [NSString stringWithFormat:@"<%@: >", NSStringFromClass([self class])]; + return descriptionString; +} + +@end + +@implementation MTRThermostatClusterGetRelayStatusLogParams (InternalMethods) + +- (CHIP_ERROR)_encodeToTLVReader:(chip::System::PacketBufferTLVReader &)reader +{ + chip::app::Clusters::Thermostat::Commands::GetRelayStatusLog::Type encodableStruct; + ListFreer listFreer; + + auto buffer = chip::System::PacketBufferHandle::New(chip::System::PacketBuffer::kMaxSizeWithoutReserve, 0); + if (buffer.IsNull()) { + return CHIP_ERROR_NO_MEMORY; + } + + chip::System::PacketBufferTLVWriter writer; + // Commands never need chained buffers, since they cannot be chunked. + writer.Init(std::move(buffer), /* useChainedBuffers = */ false); + + ReturnErrorOnFailure(chip::app::DataModel::Encode(writer, chip::TLV::AnonymousTag(), encodableStruct)); + + ReturnErrorOnFailure(writer.Finalize(&buffer)); + + reader.Init(std::move(buffer)); + return reader.Next(chip::TLV::kTLVType_Structure, chip::TLV::AnonymousTag()); +} + +- (NSDictionary * _Nullable)_encodeAsDataValue:(NSError * __autoreleasing *)error +{ + chip::System::PacketBufferTLVReader reader; + CHIP_ERROR err = [self _encodeToTLVReader:reader]; + if (err != CHIP_NO_ERROR) { + if (error) { + *error = [MTRError errorForCHIPErrorCode:err]; + } + return nil; + } + + auto decodedObj = MTRDecodeDataValueDictionaryFromCHIPTLV(&reader); + if (decodedObj == nil) { + if (error) { + *error = [MTRError errorForCHIPErrorCode:CHIP_ERROR_INCORRECT_STATE]; + } + } + return decodedObj; +} +@end + +@implementation MTRThermostatClusterSetActiveScheduleRequestParams +- (instancetype)init +{ + if (self = [super init]) { + + _scheduleHandle = [NSData data]; + _timedInvokeTimeoutMs = nil; + _serverSideProcessingTimeout = nil; + } + return self; +} + +- (id)copyWithZone:(NSZone * _Nullable)zone; +{ + auto other = [[MTRThermostatClusterSetActiveScheduleRequestParams alloc] init]; + + other.scheduleHandle = self.scheduleHandle; + other.timedInvokeTimeoutMs = self.timedInvokeTimeoutMs; + other.serverSideProcessingTimeout = self.serverSideProcessingTimeout; + + return other; +} + +- (NSString *)description +{ + NSString * descriptionString = [NSString stringWithFormat:@"<%@: scheduleHandle:%@; >", NSStringFromClass([self class]), [_scheduleHandle base64EncodedStringWithOptions:0]]; + return descriptionString; +} + +@end + +@implementation MTRThermostatClusterSetActiveScheduleRequestParams (InternalMethods) + +- (CHIP_ERROR)_encodeToTLVReader:(chip::System::PacketBufferTLVReader &)reader +{ + chip::app::Clusters::Thermostat::Commands::SetActiveScheduleRequest::Type encodableStruct; + ListFreer listFreer; + { + encodableStruct.scheduleHandle = AsByteSpan(self.scheduleHandle); + } + + auto buffer = chip::System::PacketBufferHandle::New(chip::System::PacketBuffer::kMaxSizeWithoutReserve, 0); + if (buffer.IsNull()) { + return CHIP_ERROR_NO_MEMORY; + } + + chip::System::PacketBufferTLVWriter writer; + // Commands never need chained buffers, since they cannot be chunked. + writer.Init(std::move(buffer), /* useChainedBuffers = */ false); + + ReturnErrorOnFailure(chip::app::DataModel::Encode(writer, chip::TLV::AnonymousTag(), encodableStruct)); + + ReturnErrorOnFailure(writer.Finalize(&buffer)); + + reader.Init(std::move(buffer)); + return reader.Next(chip::TLV::kTLVType_Structure, chip::TLV::AnonymousTag()); +} + +- (NSDictionary * _Nullable)_encodeAsDataValue:(NSError * __autoreleasing *)error +{ + chip::System::PacketBufferTLVReader reader; + CHIP_ERROR err = [self _encodeToTLVReader:reader]; + if (err != CHIP_NO_ERROR) { + if (error) { + *error = [MTRError errorForCHIPErrorCode:err]; + } + return nil; + } + + auto decodedObj = MTRDecodeDataValueDictionaryFromCHIPTLV(&reader); + if (decodedObj == nil) { + if (error) { + *error = [MTRError errorForCHIPErrorCode:CHIP_ERROR_INCORRECT_STATE]; + } + } + return decodedObj; +} +@end + +@implementation MTRThermostatClusterSetActivePresetRequestParams +- (instancetype)init +{ + if (self = [super init]) { + + _presetHandle = [NSData data]; + + _delayMinutes = nil; + _timedInvokeTimeoutMs = nil; + _serverSideProcessingTimeout = nil; + } + return self; +} + +- (id)copyWithZone:(NSZone * _Nullable)zone; +{ + auto other = [[MTRThermostatClusterSetActivePresetRequestParams alloc] init]; + + other.presetHandle = self.presetHandle; + other.delayMinutes = self.delayMinutes; + other.timedInvokeTimeoutMs = self.timedInvokeTimeoutMs; + other.serverSideProcessingTimeout = self.serverSideProcessingTimeout; + + return other; +} + +- (NSString *)description +{ + NSString * descriptionString = [NSString stringWithFormat:@"<%@: presetHandle:%@; delayMinutes:%@; >", NSStringFromClass([self class]), [_presetHandle base64EncodedStringWithOptions:0], _delayMinutes]; + return descriptionString; +} + +@end + +@implementation MTRThermostatClusterSetActivePresetRequestParams (InternalMethods) + +- (CHIP_ERROR)_encodeToTLVReader:(chip::System::PacketBufferTLVReader &)reader +{ + chip::app::Clusters::Thermostat::Commands::SetActivePresetRequest::Type encodableStruct; + ListFreer listFreer; + { + encodableStruct.presetHandle = AsByteSpan(self.presetHandle); + } + { + if (self.delayMinutes != nil) { + auto & definedValue_0 = encodableStruct.delayMinutes.Emplace(); + definedValue_0 = self.delayMinutes.unsignedShortValue; + } + } + + auto buffer = chip::System::PacketBufferHandle::New(chip::System::PacketBuffer::kMaxSizeWithoutReserve, 0); + if (buffer.IsNull()) { + return CHIP_ERROR_NO_MEMORY; + } + + chip::System::PacketBufferTLVWriter writer; + // Commands never need chained buffers, since they cannot be chunked. + writer.Init(std::move(buffer), /* useChainedBuffers = */ false); + + ReturnErrorOnFailure(chip::app::DataModel::Encode(writer, chip::TLV::AnonymousTag(), encodableStruct)); + + ReturnErrorOnFailure(writer.Finalize(&buffer)); + + reader.Init(std::move(buffer)); + return reader.Next(chip::TLV::kTLVType_Structure, chip::TLV::AnonymousTag()); +} + +- (NSDictionary * _Nullable)_encodeAsDataValue:(NSError * __autoreleasing *)error +{ + chip::System::PacketBufferTLVReader reader; + CHIP_ERROR err = [self _encodeToTLVReader:reader]; + if (err != CHIP_NO_ERROR) { + if (error) { + *error = [MTRError errorForCHIPErrorCode:err]; + } + return nil; + } + + auto decodedObj = MTRDecodeDataValueDictionaryFromCHIPTLV(&reader); + if (decodedObj == nil) { + if (error) { + *error = [MTRError errorForCHIPErrorCode:CHIP_ERROR_INCORRECT_STATE]; + } + } + return decodedObj; +} +@end + +@implementation MTRThermostatClusterStartPresetsSchedulesEditRequestParams +- (instancetype)init +{ + if (self = [super init]) { + + _timeoutSeconds = @(0); + _timedInvokeTimeoutMs = nil; + _serverSideProcessingTimeout = nil; + } + return self; +} + +- (id)copyWithZone:(NSZone * _Nullable)zone; +{ + auto other = [[MTRThermostatClusterStartPresetsSchedulesEditRequestParams alloc] init]; + + other.timeoutSeconds = self.timeoutSeconds; + other.timedInvokeTimeoutMs = self.timedInvokeTimeoutMs; + other.serverSideProcessingTimeout = self.serverSideProcessingTimeout; + + return other; +} + +- (NSString *)description +{ + NSString * descriptionString = [NSString stringWithFormat:@"<%@: timeoutSeconds:%@; >", NSStringFromClass([self class]), _timeoutSeconds]; + return descriptionString; +} + +@end + +@implementation MTRThermostatClusterStartPresetsSchedulesEditRequestParams (InternalMethods) + +- (CHIP_ERROR)_encodeToTLVReader:(chip::System::PacketBufferTLVReader &)reader +{ + chip::app::Clusters::Thermostat::Commands::StartPresetsSchedulesEditRequest::Type encodableStruct; + ListFreer listFreer; + { + encodableStruct.timeoutSeconds = self.timeoutSeconds.unsignedShortValue; + } + + auto buffer = chip::System::PacketBufferHandle::New(chip::System::PacketBuffer::kMaxSizeWithoutReserve, 0); + if (buffer.IsNull()) { + return CHIP_ERROR_NO_MEMORY; + } + + chip::System::PacketBufferTLVWriter writer; + // Commands never need chained buffers, since they cannot be chunked. + writer.Init(std::move(buffer), /* useChainedBuffers = */ false); + + ReturnErrorOnFailure(chip::app::DataModel::Encode(writer, chip::TLV::AnonymousTag(), encodableStruct)); + + ReturnErrorOnFailure(writer.Finalize(&buffer)); + + reader.Init(std::move(buffer)); + return reader.Next(chip::TLV::kTLVType_Structure, chip::TLV::AnonymousTag()); +} + +- (NSDictionary * _Nullable)_encodeAsDataValue:(NSError * __autoreleasing *)error +{ + chip::System::PacketBufferTLVReader reader; + CHIP_ERROR err = [self _encodeToTLVReader:reader]; + if (err != CHIP_NO_ERROR) { + if (error) { + *error = [MTRError errorForCHIPErrorCode:err]; + } + return nil; + } + + auto decodedObj = MTRDecodeDataValueDictionaryFromCHIPTLV(&reader); + if (decodedObj == nil) { + if (error) { + *error = [MTRError errorForCHIPErrorCode:CHIP_ERROR_INCORRECT_STATE]; + } + } + return decodedObj; +} +@end + +@implementation MTRThermostatClusterCancelPresetsSchedulesEditRequestParams +- (instancetype)init +{ + if (self = [super init]) { + _timedInvokeTimeoutMs = nil; + _serverSideProcessingTimeout = nil; + } + return self; +} + +- (id)copyWithZone:(NSZone * _Nullable)zone; +{ + auto other = [[MTRThermostatClusterCancelPresetsSchedulesEditRequestParams alloc] init]; + + other.timedInvokeTimeoutMs = self.timedInvokeTimeoutMs; + other.serverSideProcessingTimeout = self.serverSideProcessingTimeout; + + return other; +} + +- (NSString *)description +{ + NSString * descriptionString = [NSString stringWithFormat:@"<%@: >", NSStringFromClass([self class])]; + return descriptionString; +} + +@end + +@implementation MTRThermostatClusterCancelPresetsSchedulesEditRequestParams (InternalMethods) + +- (CHIP_ERROR)_encodeToTLVReader:(chip::System::PacketBufferTLVReader &)reader +{ + chip::app::Clusters::Thermostat::Commands::CancelPresetsSchedulesEditRequest::Type encodableStruct; + ListFreer listFreer; + + auto buffer = chip::System::PacketBufferHandle::New(chip::System::PacketBuffer::kMaxSizeWithoutReserve, 0); + if (buffer.IsNull()) { + return CHIP_ERROR_NO_MEMORY; + } + + chip::System::PacketBufferTLVWriter writer; + // Commands never need chained buffers, since they cannot be chunked. + writer.Init(std::move(buffer), /* useChainedBuffers = */ false); + + ReturnErrorOnFailure(chip::app::DataModel::Encode(writer, chip::TLV::AnonymousTag(), encodableStruct)); + + ReturnErrorOnFailure(writer.Finalize(&buffer)); + + reader.Init(std::move(buffer)); + return reader.Next(chip::TLV::kTLVType_Structure, chip::TLV::AnonymousTag()); +} + +- (NSDictionary * _Nullable)_encodeAsDataValue:(NSError * __autoreleasing *)error +{ + chip::System::PacketBufferTLVReader reader; + CHIP_ERROR err = [self _encodeToTLVReader:reader]; + if (err != CHIP_NO_ERROR) { + if (error) { + *error = [MTRError errorForCHIPErrorCode:err]; + } + return nil; + } + + auto decodedObj = MTRDecodeDataValueDictionaryFromCHIPTLV(&reader); + if (decodedObj == nil) { + if (error) { + *error = [MTRError errorForCHIPErrorCode:CHIP_ERROR_INCORRECT_STATE]; + } + } + return decodedObj; +} +@end + +@implementation MTRThermostatClusterCommitPresetsSchedulesRequestParams +- (instancetype)init +{ + if (self = [super init]) { + _timedInvokeTimeoutMs = nil; + _serverSideProcessingTimeout = nil; + } + return self; +} + +- (id)copyWithZone:(NSZone * _Nullable)zone; +{ + auto other = [[MTRThermostatClusterCommitPresetsSchedulesRequestParams alloc] init]; + + other.timedInvokeTimeoutMs = self.timedInvokeTimeoutMs; + other.serverSideProcessingTimeout = self.serverSideProcessingTimeout; + + return other; +} + +- (NSString *)description +{ + NSString * descriptionString = [NSString stringWithFormat:@"<%@: >", NSStringFromClass([self class])]; + return descriptionString; +} + +@end + +@implementation MTRThermostatClusterCommitPresetsSchedulesRequestParams (InternalMethods) + +- (CHIP_ERROR)_encodeToTLVReader:(chip::System::PacketBufferTLVReader &)reader +{ + chip::app::Clusters::Thermostat::Commands::CommitPresetsSchedulesRequest::Type encodableStruct; + ListFreer listFreer; + + auto buffer = chip::System::PacketBufferHandle::New(chip::System::PacketBuffer::kMaxSizeWithoutReserve, 0); + if (buffer.IsNull()) { + return CHIP_ERROR_NO_MEMORY; + } + + chip::System::PacketBufferTLVWriter writer; + // Commands never need chained buffers, since they cannot be chunked. + writer.Init(std::move(buffer), /* useChainedBuffers = */ false); + + ReturnErrorOnFailure(chip::app::DataModel::Encode(writer, chip::TLV::AnonymousTag(), encodableStruct)); + + ReturnErrorOnFailure(writer.Finalize(&buffer)); + + reader.Init(std::move(buffer)); + return reader.Next(chip::TLV::kTLVType_Structure, chip::TLV::AnonymousTag()); +} + +- (NSDictionary * _Nullable)_encodeAsDataValue:(NSError * __autoreleasing *)error +{ + chip::System::PacketBufferTLVReader reader; + CHIP_ERROR err = [self _encodeToTLVReader:reader]; + if (err != CHIP_NO_ERROR) { + if (error) { + *error = [MTRError errorForCHIPErrorCode:err]; + } + return nil; + } + + auto decodedObj = MTRDecodeDataValueDictionaryFromCHIPTLV(&reader); + if (decodedObj == nil) { + if (error) { + *error = [MTRError errorForCHIPErrorCode:CHIP_ERROR_INCORRECT_STATE]; + } + } + return decodedObj; +} +@end + +@implementation MTRThermostatClusterCancelSetActivePresetRequestParams +- (instancetype)init +{ + if (self = [super init]) { + _timedInvokeTimeoutMs = nil; + _serverSideProcessingTimeout = nil; + } + return self; +} + +- (id)copyWithZone:(NSZone * _Nullable)zone; +{ + auto other = [[MTRThermostatClusterCancelSetActivePresetRequestParams alloc] init]; + + other.timedInvokeTimeoutMs = self.timedInvokeTimeoutMs; + other.serverSideProcessingTimeout = self.serverSideProcessingTimeout; + + return other; +} + +- (NSString *)description +{ + NSString * descriptionString = [NSString stringWithFormat:@"<%@: >", NSStringFromClass([self class])]; + return descriptionString; +} + +@end + +@implementation MTRThermostatClusterCancelSetActivePresetRequestParams (InternalMethods) + +- (CHIP_ERROR)_encodeToTLVReader:(chip::System::PacketBufferTLVReader &)reader +{ + chip::app::Clusters::Thermostat::Commands::CancelSetActivePresetRequest::Type encodableStruct; + ListFreer listFreer; + + auto buffer = chip::System::PacketBufferHandle::New(chip::System::PacketBuffer::kMaxSizeWithoutReserve, 0); + if (buffer.IsNull()) { + return CHIP_ERROR_NO_MEMORY; + } + + chip::System::PacketBufferTLVWriter writer; + // Commands never need chained buffers, since they cannot be chunked. + writer.Init(std::move(buffer), /* useChainedBuffers = */ false); + + ReturnErrorOnFailure(chip::app::DataModel::Encode(writer, chip::TLV::AnonymousTag(), encodableStruct)); + + ReturnErrorOnFailure(writer.Finalize(&buffer)); + + reader.Init(std::move(buffer)); + return reader.Next(chip::TLV::kTLVType_Structure, chip::TLV::AnonymousTag()); +} + +- (NSDictionary * _Nullable)_encodeAsDataValue:(NSError * __autoreleasing *)error +{ + chip::System::PacketBufferTLVReader reader; + CHIP_ERROR err = [self _encodeToTLVReader:reader]; + if (err != CHIP_NO_ERROR) { + if (error) { + *error = [MTRError errorForCHIPErrorCode:err]; + } + return nil; + } + + auto decodedObj = MTRDecodeDataValueDictionaryFromCHIPTLV(&reader); + if (decodedObj == nil) { + if (error) { + *error = [MTRError errorForCHIPErrorCode:CHIP_ERROR_INCORRECT_STATE]; + } + } + return decodedObj; +} +@end + +@implementation MTRThermostatClusterSetTemperatureSetpointHoldPolicyParams +- (instancetype)init +{ + if (self = [super init]) { + + _temperatureSetpointHoldPolicy = @(0); + _timedInvokeTimeoutMs = nil; + _serverSideProcessingTimeout = nil; + } + return self; +} + +- (id)copyWithZone:(NSZone * _Nullable)zone; +{ + auto other = [[MTRThermostatClusterSetTemperatureSetpointHoldPolicyParams alloc] init]; + + other.temperatureSetpointHoldPolicy = self.temperatureSetpointHoldPolicy; + other.timedInvokeTimeoutMs = self.timedInvokeTimeoutMs; + other.serverSideProcessingTimeout = self.serverSideProcessingTimeout; + + return other; +} + +- (NSString *)description +{ + NSString * descriptionString = [NSString stringWithFormat:@"<%@: temperatureSetpointHoldPolicy:%@; >", NSStringFromClass([self class]), _temperatureSetpointHoldPolicy]; + return descriptionString; +} + +@end + +@implementation MTRThermostatClusterSetTemperatureSetpointHoldPolicyParams (InternalMethods) + +- (CHIP_ERROR)_encodeToTLVReader:(chip::System::PacketBufferTLVReader &)reader +{ + chip::app::Clusters::Thermostat::Commands::SetTemperatureSetpointHoldPolicy::Type encodableStruct; + ListFreer listFreer; + { + encodableStruct.temperatureSetpointHoldPolicy = static_cast>(self.temperatureSetpointHoldPolicy.unsignedCharValue); + } + + auto buffer = chip::System::PacketBufferHandle::New(chip::System::PacketBuffer::kMaxSizeWithoutReserve, 0); + if (buffer.IsNull()) { + return CHIP_ERROR_NO_MEMORY; + } + + chip::System::PacketBufferTLVWriter writer; + // Commands never need chained buffers, since they cannot be chunked. + writer.Init(std::move(buffer), /* useChainedBuffers = */ false); + + ReturnErrorOnFailure(chip::app::DataModel::Encode(writer, chip::TLV::AnonymousTag(), encodableStruct)); + + ReturnErrorOnFailure(writer.Finalize(&buffer)); + + reader.Init(std::move(buffer)); + return reader.Next(chip::TLV::kTLVType_Structure, chip::TLV::AnonymousTag()); +} + +- (NSDictionary * _Nullable)_encodeAsDataValue:(NSError * __autoreleasing *)error +{ + chip::System::PacketBufferTLVReader reader; + CHIP_ERROR err = [self _encodeToTLVReader:reader]; + if (err != CHIP_NO_ERROR) { + if (error) { + *error = [MTRError errorForCHIPErrorCode:err]; + } + return nil; + } + + auto decodedObj = MTRDecodeDataValueDictionaryFromCHIPTLV(&reader); + if (decodedObj == nil) { + if (error) { + *error = [MTRError errorForCHIPErrorCode:CHIP_ERROR_INCORRECT_STATE]; + } + } + return decodedObj; +} +@end + @implementation MTRFanControlClusterStepParams - (instancetype)init { diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloads_Internal.h b/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloads_Internal.h index 93339e7d817021..5fe0c1564bb767 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloads_Internal.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloads_Internal.h @@ -1240,6 +1240,12 @@ NS_ASSUME_NONNULL_BEGIN @end +@interface MTRThermostatClusterGetRelayStatusLogResponseParams (InternalMethods) + +- (CHIP_ERROR)_setFieldsFromDecodableStruct:(const chip::app::Clusters::Thermostat::Commands::GetRelayStatusLogResponse::DecodableType &)decodableStruct; + +@end + @interface MTRThermostatClusterGetWeeklyScheduleParams (InternalMethods) - (NSDictionary * _Nullable)_encodeAsDataValue:(NSError * __autoreleasing *)error; @@ -1252,6 +1258,54 @@ NS_ASSUME_NONNULL_BEGIN @end +@interface MTRThermostatClusterGetRelayStatusLogParams (InternalMethods) + +- (NSDictionary * _Nullable)_encodeAsDataValue:(NSError * __autoreleasing *)error; + +@end + +@interface MTRThermostatClusterSetActiveScheduleRequestParams (InternalMethods) + +- (NSDictionary * _Nullable)_encodeAsDataValue:(NSError * __autoreleasing *)error; + +@end + +@interface MTRThermostatClusterSetActivePresetRequestParams (InternalMethods) + +- (NSDictionary * _Nullable)_encodeAsDataValue:(NSError * __autoreleasing *)error; + +@end + +@interface MTRThermostatClusterStartPresetsSchedulesEditRequestParams (InternalMethods) + +- (NSDictionary * _Nullable)_encodeAsDataValue:(NSError * __autoreleasing *)error; + +@end + +@interface MTRThermostatClusterCancelPresetsSchedulesEditRequestParams (InternalMethods) + +- (NSDictionary * _Nullable)_encodeAsDataValue:(NSError * __autoreleasing *)error; + +@end + +@interface MTRThermostatClusterCommitPresetsSchedulesRequestParams (InternalMethods) + +- (NSDictionary * _Nullable)_encodeAsDataValue:(NSError * __autoreleasing *)error; + +@end + +@interface MTRThermostatClusterCancelSetActivePresetRequestParams (InternalMethods) + +- (NSDictionary * _Nullable)_encodeAsDataValue:(NSError * __autoreleasing *)error; + +@end + +@interface MTRThermostatClusterSetTemperatureSetpointHoldPolicyParams (InternalMethods) + +- (NSDictionary * _Nullable)_encodeAsDataValue:(NSError * __autoreleasing *)error; + +@end + @interface MTRFanControlClusterStepParams (InternalMethods) - (NSDictionary * _Nullable)_encodeAsDataValue:(NSError * __autoreleasing *)error; diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.h b/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.h index 0c2d92b140f325..df6fa58635a07f 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.h @@ -1243,11 +1243,61 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) @interface MTRPumpConfigurationAndControlClusterTurbineOperationEvent : NSObject @end -MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) -@interface MTRThermostatClusterThermostatScheduleTransition : NSObject -@property (nonatomic, copy) NSNumber * _Nonnull transitionTime MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); -@property (nonatomic, copy) NSNumber * _Nullable heatSetpoint MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); -@property (nonatomic, copy) NSNumber * _Nullable coolSetpoint MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); +MTR_PROVISIONALLY_AVAILABLE +@interface MTRThermostatClusterScheduleTransitionStruct : NSObject +@property (nonatomic, copy) NSNumber * _Nonnull dayOfWeek MTR_PROVISIONALLY_AVAILABLE; +@property (nonatomic, copy) NSNumber * _Nonnull transitionTime MTR_PROVISIONALLY_AVAILABLE; +@property (nonatomic, copy) NSData * _Nullable presetHandle MTR_PROVISIONALLY_AVAILABLE; +@property (nonatomic, copy) NSNumber * _Nullable systemMode MTR_PROVISIONALLY_AVAILABLE; +@property (nonatomic, copy) NSNumber * _Nullable coolingSetpoint MTR_PROVISIONALLY_AVAILABLE; +@property (nonatomic, copy) NSNumber * _Nullable heatingSetpoint MTR_PROVISIONALLY_AVAILABLE; +@end + +MTR_PROVISIONALLY_AVAILABLE +@interface MTRThermostatClusterScheduleStruct : NSObject +@property (nonatomic, copy) NSData * _Nullable scheduleHandle MTR_PROVISIONALLY_AVAILABLE; +@property (nonatomic, copy) NSNumber * _Nonnull systemMode MTR_PROVISIONALLY_AVAILABLE; +@property (nonatomic, copy) NSString * _Nullable name MTR_PROVISIONALLY_AVAILABLE; +@property (nonatomic, copy) NSData * _Nullable presetHandle MTR_PROVISIONALLY_AVAILABLE; +@property (nonatomic, copy) NSArray * _Nonnull transitions MTR_PROVISIONALLY_AVAILABLE; +@property (nonatomic, copy) NSNumber * _Nullable builtIn MTR_PROVISIONALLY_AVAILABLE; +@end + +MTR_PROVISIONALLY_AVAILABLE +@interface MTRThermostatClusterPresetStruct : NSObject +@property (nonatomic, copy) NSData * _Nullable presetHandle MTR_PROVISIONALLY_AVAILABLE; +@property (nonatomic, copy) NSNumber * _Nonnull presetScenario MTR_PROVISIONALLY_AVAILABLE; +@property (nonatomic, copy) NSString * _Nullable name MTR_PROVISIONALLY_AVAILABLE; +@property (nonatomic, copy) NSNumber * _Nullable coolingSetpoint MTR_PROVISIONALLY_AVAILABLE; +@property (nonatomic, copy) NSNumber * _Nullable heatingSetpoint MTR_PROVISIONALLY_AVAILABLE; +@property (nonatomic, copy) NSNumber * _Nullable builtIn MTR_PROVISIONALLY_AVAILABLE; +@end + +MTR_PROVISIONALLY_AVAILABLE +@interface MTRThermostatClusterPresetTypeStruct : NSObject +@property (nonatomic, copy) NSNumber * _Nonnull presetScenario MTR_PROVISIONALLY_AVAILABLE; +@property (nonatomic, copy) NSNumber * _Nonnull numberOfPresets MTR_PROVISIONALLY_AVAILABLE; +@property (nonatomic, copy) NSNumber * _Nonnull presetTypeFeatures MTR_PROVISIONALLY_AVAILABLE; +@end + +MTR_PROVISIONALLY_AVAILABLE +@interface MTRThermostatClusterQueuedPresetStruct : NSObject +@property (nonatomic, copy) NSData * _Nullable presetHandle MTR_PROVISIONALLY_AVAILABLE; +@property (nonatomic, copy) NSNumber * _Nullable transitionTimestamp MTR_PROVISIONALLY_AVAILABLE; +@end + +MTR_PROVISIONALLY_AVAILABLE +@interface MTRThermostatClusterScheduleTypeStruct : NSObject +@property (nonatomic, copy) NSNumber * _Nonnull systemMode MTR_PROVISIONALLY_AVAILABLE; +@property (nonatomic, copy) NSNumber * _Nonnull numberOfSchedules MTR_PROVISIONALLY_AVAILABLE; +@property (nonatomic, copy) NSNumber * _Nonnull scheduleTypeFeatures MTR_PROVISIONALLY_AVAILABLE; +@end + +MTR_PROVISIONALLY_AVAILABLE +@interface MTRThermostatClusterThermostatScheduleTransitionStruct : NSObject +@property (nonatomic, copy) NSNumber * _Nonnull transitionTime MTR_PROVISIONALLY_AVAILABLE; +@property (nonatomic, copy) NSNumber * _Nonnull heatSetpoint MTR_PROVISIONALLY_AVAILABLE; +@property (nonatomic, copy) NSNumber * _Nonnull coolSetpoint MTR_PROVISIONALLY_AVAILABLE; @end MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.mm b/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.mm index 52086da233a48f..9bd19b3868032e 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.mm @@ -5129,23 +5129,245 @@ - (NSString *)description @end -@implementation MTRThermostatClusterThermostatScheduleTransition +@implementation MTRThermostatClusterScheduleTransitionStruct +- (instancetype)init +{ + if (self = [super init]) { + + _dayOfWeek = @(0); + + _transitionTime = @(0); + + _presetHandle = nil; + + _systemMode = nil; + + _coolingSetpoint = nil; + + _heatingSetpoint = nil; + } + return self; +} + +- (id)copyWithZone:(NSZone * _Nullable)zone +{ + auto other = [[MTRThermostatClusterScheduleTransitionStruct alloc] init]; + + other.dayOfWeek = self.dayOfWeek; + other.transitionTime = self.transitionTime; + other.presetHandle = self.presetHandle; + other.systemMode = self.systemMode; + other.coolingSetpoint = self.coolingSetpoint; + other.heatingSetpoint = self.heatingSetpoint; + + return other; +} + +- (NSString *)description +{ + NSString * descriptionString = [NSString stringWithFormat:@"<%@: dayOfWeek:%@; transitionTime:%@; presetHandle:%@; systemMode:%@; coolingSetpoint:%@; heatingSetpoint:%@; >", NSStringFromClass([self class]), _dayOfWeek, _transitionTime, [_presetHandle base64EncodedStringWithOptions:0], _systemMode, _coolingSetpoint, _heatingSetpoint]; + return descriptionString; +} + +@end + +@implementation MTRThermostatClusterScheduleStruct +- (instancetype)init +{ + if (self = [super init]) { + + _scheduleHandle = nil; + + _systemMode = @(0); + + _name = nil; + + _presetHandle = nil; + + _transitions = [NSArray array]; + + _builtIn = nil; + } + return self; +} + +- (id)copyWithZone:(NSZone * _Nullable)zone +{ + auto other = [[MTRThermostatClusterScheduleStruct alloc] init]; + + other.scheduleHandle = self.scheduleHandle; + other.systemMode = self.systemMode; + other.name = self.name; + other.presetHandle = self.presetHandle; + other.transitions = self.transitions; + other.builtIn = self.builtIn; + + return other; +} + +- (NSString *)description +{ + NSString * descriptionString = [NSString stringWithFormat:@"<%@: scheduleHandle:%@; systemMode:%@; name:%@; presetHandle:%@; transitions:%@; builtIn:%@; >", NSStringFromClass([self class]), [_scheduleHandle base64EncodedStringWithOptions:0], _systemMode, _name, [_presetHandle base64EncodedStringWithOptions:0], _transitions, _builtIn]; + return descriptionString; +} + +@end + +@implementation MTRThermostatClusterPresetStruct +- (instancetype)init +{ + if (self = [super init]) { + + _presetHandle = nil; + + _presetScenario = @(0); + + _name = nil; + + _coolingSetpoint = nil; + + _heatingSetpoint = nil; + + _builtIn = nil; + } + return self; +} + +- (id)copyWithZone:(NSZone * _Nullable)zone +{ + auto other = [[MTRThermostatClusterPresetStruct alloc] init]; + + other.presetHandle = self.presetHandle; + other.presetScenario = self.presetScenario; + other.name = self.name; + other.coolingSetpoint = self.coolingSetpoint; + other.heatingSetpoint = self.heatingSetpoint; + other.builtIn = self.builtIn; + + return other; +} + +- (NSString *)description +{ + NSString * descriptionString = [NSString stringWithFormat:@"<%@: presetHandle:%@; presetScenario:%@; name:%@; coolingSetpoint:%@; heatingSetpoint:%@; builtIn:%@; >", NSStringFromClass([self class]), [_presetHandle base64EncodedStringWithOptions:0], _presetScenario, _name, _coolingSetpoint, _heatingSetpoint, _builtIn]; + return descriptionString; +} + +@end + +@implementation MTRThermostatClusterPresetTypeStruct +- (instancetype)init +{ + if (self = [super init]) { + + _presetScenario = @(0); + + _numberOfPresets = @(0); + + _presetTypeFeatures = @(0); + } + return self; +} + +- (id)copyWithZone:(NSZone * _Nullable)zone +{ + auto other = [[MTRThermostatClusterPresetTypeStruct alloc] init]; + + other.presetScenario = self.presetScenario; + other.numberOfPresets = self.numberOfPresets; + other.presetTypeFeatures = self.presetTypeFeatures; + + return other; +} + +- (NSString *)description +{ + NSString * descriptionString = [NSString stringWithFormat:@"<%@: presetScenario:%@; numberOfPresets:%@; presetTypeFeatures:%@; >", NSStringFromClass([self class]), _presetScenario, _numberOfPresets, _presetTypeFeatures]; + return descriptionString; +} + +@end + +@implementation MTRThermostatClusterQueuedPresetStruct +- (instancetype)init +{ + if (self = [super init]) { + + _presetHandle = nil; + + _transitionTimestamp = nil; + } + return self; +} + +- (id)copyWithZone:(NSZone * _Nullable)zone +{ + auto other = [[MTRThermostatClusterQueuedPresetStruct alloc] init]; + + other.presetHandle = self.presetHandle; + other.transitionTimestamp = self.transitionTimestamp; + + return other; +} + +- (NSString *)description +{ + NSString * descriptionString = [NSString stringWithFormat:@"<%@: presetHandle:%@; transitionTimestamp:%@; >", NSStringFromClass([self class]), [_presetHandle base64EncodedStringWithOptions:0], _transitionTimestamp]; + return descriptionString; +} + +@end + +@implementation MTRThermostatClusterScheduleTypeStruct +- (instancetype)init +{ + if (self = [super init]) { + + _systemMode = @(0); + + _numberOfSchedules = @(0); + + _scheduleTypeFeatures = @(0); + } + return self; +} + +- (id)copyWithZone:(NSZone * _Nullable)zone +{ + auto other = [[MTRThermostatClusterScheduleTypeStruct alloc] init]; + + other.systemMode = self.systemMode; + other.numberOfSchedules = self.numberOfSchedules; + other.scheduleTypeFeatures = self.scheduleTypeFeatures; + + return other; +} + +- (NSString *)description +{ + NSString * descriptionString = [NSString stringWithFormat:@"<%@: systemMode:%@; numberOfSchedules:%@; scheduleTypeFeatures:%@; >", NSStringFromClass([self class]), _systemMode, _numberOfSchedules, _scheduleTypeFeatures]; + return descriptionString; +} + +@end + +@implementation MTRThermostatClusterThermostatScheduleTransitionStruct - (instancetype)init { if (self = [super init]) { _transitionTime = @(0); - _heatSetpoint = nil; + _heatSetpoint = @(0); - _coolSetpoint = nil; + _coolSetpoint = @(0); } return self; } - (id)copyWithZone:(NSZone * _Nullable)zone { - auto other = [[MTRThermostatClusterThermostatScheduleTransition alloc] init]; + auto other = [[MTRThermostatClusterThermostatScheduleTransitionStruct alloc] init]; other.transitionTime = self.transitionTime; other.heatSetpoint = self.heatSetpoint; diff --git a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp index f6fc2e8986b977..8935756df04621 100644 --- a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp +++ b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp @@ -14030,7 +14030,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); } EmberAfStatus SetNull(chip::EndpointId endpoint) @@ -14039,7 +14039,7 @@ EmberAfStatus SetNull(chip::EndpointId endpoint) Traits::StorageType value; Traits::SetNull(value); uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); } EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) @@ -14083,7 +14083,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); } EmberAfStatus SetNull(chip::EndpointId endpoint) @@ -14092,7 +14092,7 @@ EmberAfStatus SetNull(chip::EndpointId endpoint) Traits::StorageType value; Traits::SetNull(value); uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); } EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) @@ -14164,7 +14164,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); } } // namespace AbsMinHeatSetpointLimit @@ -14195,7 +14195,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); } } // namespace AbsMaxHeatSetpointLimit @@ -14226,7 +14226,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); } } // namespace AbsMinCoolSetpointLimit @@ -14257,7 +14257,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); } } // namespace AbsMaxCoolSetpointLimit @@ -14324,37 +14324,6 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) } // namespace PIHeatingDemand -namespace HVACSystemTypeConfiguration { - -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) -{ - using Traits = NumericAttributeTraits; - Traits::StorageType temp; - uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); - EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, readable, sizeof(temp)); - VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); - if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - *value = Traits::StorageToWorking(temp); - return status; -} -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) -{ - using Traits = NumericAttributeTraits; - if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) - { - return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; - } - Traits::StorageType storageValue; - Traits::WorkingToStorage(value, storageValue); - uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_BITMAP8_ATTRIBUTE_TYPE); -} - -} // namespace HVACSystemTypeConfiguration - namespace LocalTemperatureCalibration { EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value) @@ -14412,7 +14381,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); } } // namespace OccupiedCoolingSetpoint @@ -14443,7 +14412,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); } } // namespace OccupiedHeatingSetpoint @@ -14474,7 +14443,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); } } // namespace UnoccupiedCoolingSetpoint @@ -14505,7 +14474,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); } } // namespace UnoccupiedHeatingSetpoint @@ -14536,7 +14505,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); } } // namespace MinHeatSetpointLimit @@ -14567,7 +14536,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); } } // namespace MaxHeatSetpointLimit @@ -14598,7 +14567,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); } } // namespace MinCoolSetpointLimit @@ -14629,7 +14598,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); } } // namespace MaxCoolSetpointLimit @@ -14667,9 +14636,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, int8_t value) namespace RemoteSensing { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::BitMask * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, readable, sizeof(temp)); @@ -14681,9 +14650,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -14698,9 +14667,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) namespace ControlSequenceOfOperation { -EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ThermostatControlSequence * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ThermostatControlSequenceEnum * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, readable, sizeof(temp)); @@ -14712,9 +14681,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::Th *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ThermostatControlSequence value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ThermostatControlSequenceEnum value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -14729,9 +14698,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::Th namespace SystemMode { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ThermostatSystemModeEnum * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, readable, sizeof(temp)); @@ -14743,9 +14712,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ThermostatSystemModeEnum value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -14758,11 +14727,42 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) } // namespace SystemMode +namespace AlarmMask { + +EmberAfStatus Get(chip::EndpointId endpoint, chip::BitMask * value) +{ + using Traits = NumericAttributeTraits>; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, readable, sizeof(temp)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + *value = Traits::StorageToWorking(temp); + return status; +} +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value) +{ + using Traits = NumericAttributeTraits>; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_BITMAP8_ATTRIBUTE_TYPE); +} + +} // namespace AlarmMask + namespace ThermostatRunningMode { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ThermostatRunningModeEnum * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, readable, sizeof(temp)); @@ -14774,9 +14774,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ThermostatRunningModeEnum value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -14791,9 +14791,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) namespace StartOfWeek { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::StartOfWeekEnum * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, readable, sizeof(temp)); @@ -14805,9 +14805,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::StartOfWeekEnum value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -14884,9 +14884,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) namespace TemperatureSetpointHold { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::TemperatureSetpointHoldEnum * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, readable, sizeof(temp)); @@ -14898,9 +14898,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::TemperatureSetpointHoldEnum value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -14968,9 +14968,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullabl namespace ThermostatProgrammingOperationMode { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::BitMask * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, readable, sizeof(temp)); @@ -14982,9 +14982,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -14999,9 +14999,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) namespace ThermostatRunningState { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::BitMask * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, readable, sizeof(temp)); @@ -15013,9 +15013,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -15030,9 +15030,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) namespace SetpointChangeSource { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::SetpointChangeSourceEnum * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, readable, sizeof(temp)); @@ -15044,9 +15044,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::SetpointChangeSourceEnum value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -15494,9 +15494,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) namespace ACType { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ACTypeEnum * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, readable, sizeof(temp)); @@ -15508,9 +15508,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ACTypeEnum value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -15556,9 +15556,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value) namespace ACRefrigerantType { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ACRefrigerantTypeEnum * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, readable, sizeof(temp)); @@ -15570,9 +15570,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ACRefrigerantTypeEnum value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -15587,9 +15587,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) namespace ACCompressorType { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ACCompressorTypeEnum * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, readable, sizeof(temp)); @@ -15601,9 +15601,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ACCompressorTypeEnum value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -15618,9 +15618,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) namespace ACErrorCode { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::BitMask * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, readable, sizeof(temp)); @@ -15632,9 +15632,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits>; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -15649,9 +15649,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) namespace ACLouverPosition { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ACLouverPositionEnum * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, readable, sizeof(temp)); @@ -15663,9 +15663,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ACLouverPositionEnum value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -15707,7 +15707,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); } EmberAfStatus SetNull(chip::EndpointId endpoint) @@ -15716,7 +15716,7 @@ EmberAfStatus SetNull(chip::EndpointId endpoint) Traits::StorageType value; Traits::SetNull(value); uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); } EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) @@ -15731,7 +15731,38 @@ EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullabl } // namespace ACCoilTemperature -namespace ACCapacityformat { +namespace ACCapacityFormat { + +EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ACCapacityFormatEnum * value) +{ + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, readable, sizeof(temp)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + *value = Traits::StorageToWorking(temp); + return status; +} +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ACCapacityFormatEnum value) +{ + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_ENUM8_ATTRIBUTE_TYPE); +} + +} // namespace ACCapacityFormat + +namespace NumberOfPresets { EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) { @@ -15757,10 +15788,340 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_ENUM8_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE); +} + +} // namespace NumberOfPresets + +namespace NumberOfSchedules { + +EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) +{ + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, readable, sizeof(temp)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + *value = Traits::StorageToWorking(temp); + return status; +} +EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) +{ + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE); +} + +} // namespace NumberOfSchedules + +namespace NumberOfScheduleTransitions { + +EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value) +{ + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, readable, sizeof(temp)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + *value = Traits::StorageToWorking(temp); + return status; +} +EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) +{ + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE); +} + +} // namespace NumberOfScheduleTransitions + +namespace NumberOfScheduleTransitionPerDay { + +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +{ + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, readable, sizeof(temp)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + if (Traits::IsNullValue(temp)) + { + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); + } + return status; +} +EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value) +{ + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE); +} + +EmberAfStatus SetNull(chip::EndpointId endpoint) +{ + using Traits = NumericAttributeTraits; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE); +} + +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +{ + if (value.IsNull()) + { + return SetNull(endpoint); + } + + return Set(endpoint, value.Value()); +} + +} // namespace NumberOfScheduleTransitionPerDay + +namespace ActivePresetHandle { + +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +{ + uint8_t zclString[16 + 1]; + EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, zclString, sizeof(zclString)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + size_t length = emberAfStringLength(zclString); + if (length == NumericAttributeTraits::kNullValue) + { + value.SetNull(); + return EMBER_ZCL_STATUS_SUCCESS; + } + auto & span = value.SetNonNull(); + + VerifyOrReturnError(span.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); + memcpy(span.data(), &zclString[1], 16); + span.reduce_size(length); + return status; +} +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) +{ + static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); + uint8_t zclString[16 + 1]; + auto length = static_cast(value.size()); + Encoding::Put8(zclString, length); + memcpy(&zclString[1], value.data(), value.size()); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, zclString, ZCL_OCTET_STRING_ATTRIBUTE_TYPE); +} + +EmberAfStatus SetNull(chip::EndpointId endpoint) +{ + uint8_t zclString[1] = { 0xFF }; + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, zclString, ZCL_OCTET_STRING_ATTRIBUTE_TYPE); +} + +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +{ + if (value.IsNull()) + { + return SetNull(endpoint); + } + + return Set(endpoint, value.Value()); +} + +} // namespace ActivePresetHandle + +namespace ActiveScheduleHandle { + +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +{ + uint8_t zclString[16 + 1]; + EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, zclString, sizeof(zclString)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + size_t length = emberAfStringLength(zclString); + if (length == NumericAttributeTraits::kNullValue) + { + value.SetNull(); + return EMBER_ZCL_STATUS_SUCCESS; + } + auto & span = value.SetNonNull(); + + VerifyOrReturnError(span.size() == 16, EMBER_ZCL_STATUS_INVALID_DATA_TYPE); + memcpy(span.data(), &zclString[1], 16); + span.reduce_size(length); + return status; +} +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value) +{ + static_assert(16 < NumericAttributeTraits::kNullValue, "value.size() might be too big"); + VerifyOrReturnError(value.size() <= 16, EMBER_ZCL_STATUS_CONSTRAINT_ERROR); + uint8_t zclString[16 + 1]; + auto length = static_cast(value.size()); + Encoding::Put8(zclString, length); + memcpy(&zclString[1], value.data(), value.size()); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, zclString, ZCL_OCTET_STRING_ATTRIBUTE_TYPE); +} + +EmberAfStatus SetNull(chip::EndpointId endpoint) +{ + uint8_t zclString[1] = { 0xFF }; + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, zclString, ZCL_OCTET_STRING_ATTRIBUTE_TYPE); +} + +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +{ + if (value.IsNull()) + { + return SetNull(endpoint); + } + + return Set(endpoint, value.Value()); +} + +} // namespace ActiveScheduleHandle + +namespace PresetsSchedulesEditable { + +EmberAfStatus Get(chip::EndpointId endpoint, bool * value) +{ + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, readable, sizeof(temp)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + *value = Traits::StorageToWorking(temp); + return status; +} +EmberAfStatus Set(chip::EndpointId endpoint, bool value) +{ + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_BOOLEAN_ATTRIBUTE_TYPE); +} + +} // namespace PresetsSchedulesEditable + +namespace TemperatureSetpointHoldPolicy { + +EmberAfStatus Get(chip::EndpointId endpoint, + chip::BitMask * value) +{ + using Traits = NumericAttributeTraits>; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, readable, sizeof(temp)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + if (!Traits::CanRepresentValue(/* isNullable = */ false, temp)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + *value = Traits::StorageToWorking(temp); + return status; +} +EmberAfStatus Set(chip::EndpointId endpoint, + chip::BitMask value) +{ + using Traits = NumericAttributeTraits>; + if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_BITMAP8_ATTRIBUTE_TYPE); +} + +} // namespace TemperatureSetpointHoldPolicy + +namespace SetpointHoldExpiryTimestamp { + +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value) +{ + using Traits = NumericAttributeTraits; + Traits::StorageType temp; + uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); + EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, readable, sizeof(temp)); + VerifyOrReturnError(EMBER_ZCL_STATUS_SUCCESS == status, status); + if (Traits::IsNullValue(temp)) + { + value.SetNull(); + } + else + { + value.SetNonNull() = Traits::StorageToWorking(temp); + } + return status; +} +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value) +{ + using Traits = NumericAttributeTraits; + if (!Traits::CanRepresentValue(/* isNullable = */ true, value)) + { + return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; + } + Traits::StorageType storageValue; + Traits::WorkingToStorage(value, storageValue); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_EPOCH_S_ATTRIBUTE_TYPE); +} + +EmberAfStatus SetNull(chip::EndpointId endpoint) +{ + using Traits = NumericAttributeTraits; + Traits::StorageType value; + Traits::SetNull(value); + uint8_t * writable = Traits::ToAttributeStoreRepresentation(value); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_EPOCH_S_ATTRIBUTE_TYPE); +} + +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value) +{ + if (value.IsNull()) + { + return SetNull(endpoint); + } + + return Set(endpoint, value.Value()); } -} // namespace ACCapacityformat +} // namespace SetpointHoldExpiryTimestamp namespace FeatureMap { diff --git a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h index 6c7fa55e828c51..228e5386df44d2 100644 --- a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h +++ b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h @@ -2583,14 +2583,14 @@ namespace Thermostat { namespace Attributes { namespace LocalTemperature { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int16s +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // temperature EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); EmberAfStatus SetNull(chip::EndpointId endpoint); EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); } // namespace LocalTemperature namespace OutdoorTemperature { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int16s +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // temperature EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); EmberAfStatus SetNull(chip::EndpointId endpoint); EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); @@ -2602,22 +2602,22 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); } // namespace Occupancy namespace AbsMinHeatSetpointLimit { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // temperature EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); } // namespace AbsMinHeatSetpointLimit namespace AbsMaxHeatSetpointLimit { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // temperature EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); } // namespace AbsMaxHeatSetpointLimit namespace AbsMinCoolSetpointLimit { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // temperature EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); } // namespace AbsMinCoolSetpointLimit namespace AbsMaxCoolSetpointLimit { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // temperature EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); } // namespace AbsMaxCoolSetpointLimit @@ -2631,53 +2631,48 @@ EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // int8u EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); } // namespace PIHeatingDemand -namespace HVACSystemTypeConfiguration { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // bitmap8 -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); -} // namespace HVACSystemTypeConfiguration - namespace LocalTemperatureCalibration { EmberAfStatus Get(chip::EndpointId endpoint, int8_t * value); // int8s EmberAfStatus Set(chip::EndpointId endpoint, int8_t value); } // namespace LocalTemperatureCalibration namespace OccupiedCoolingSetpoint { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // temperature EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); } // namespace OccupiedCoolingSetpoint namespace OccupiedHeatingSetpoint { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // temperature EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); } // namespace OccupiedHeatingSetpoint namespace UnoccupiedCoolingSetpoint { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // temperature EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); } // namespace UnoccupiedCoolingSetpoint namespace UnoccupiedHeatingSetpoint { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // temperature EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); } // namespace UnoccupiedHeatingSetpoint namespace MinHeatSetpointLimit { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // temperature EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); } // namespace MinHeatSetpointLimit namespace MaxHeatSetpointLimit { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // temperature EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); } // namespace MaxHeatSetpointLimit namespace MinCoolSetpointLimit { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // temperature EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); } // namespace MinCoolSetpointLimit namespace MaxCoolSetpointLimit { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // temperature EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); } // namespace MaxCoolSetpointLimit @@ -2687,29 +2682,38 @@ EmberAfStatus Set(chip::EndpointId endpoint, int8_t value); } // namespace MinSetpointDeadBand namespace RemoteSensing { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // bitmap8 -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); +EmberAfStatus Get(chip::EndpointId endpoint, + chip::BitMask * value); // RemoteSensingBitmap +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value); } // namespace RemoteSensing namespace ControlSequenceOfOperation { EmberAfStatus Get(chip::EndpointId endpoint, - chip::app::Clusters::Thermostat::ThermostatControlSequence * value); // ThermostatControlSequence -EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ThermostatControlSequence value); + chip::app::Clusters::Thermostat::ThermostatControlSequenceEnum * value); // ThermostatControlSequenceEnum +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ThermostatControlSequenceEnum value); } // namespace ControlSequenceOfOperation namespace SystemMode { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // enum8 -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); +EmberAfStatus Get(chip::EndpointId endpoint, + chip::app::Clusters::Thermostat::ThermostatSystemModeEnum * value); // ThermostatSystemModeEnum +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ThermostatSystemModeEnum value); } // namespace SystemMode +namespace AlarmMask { +EmberAfStatus Get(chip::EndpointId endpoint, + chip::BitMask * value); // AlarmCodeBitmap +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value); +} // namespace AlarmMask + namespace ThermostatRunningMode { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // enum8 -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); +EmberAfStatus Get(chip::EndpointId endpoint, + chip::app::Clusters::Thermostat::ThermostatRunningModeEnum * value); // ThermostatRunningModeEnum +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ThermostatRunningModeEnum value); } // namespace ThermostatRunningMode namespace StartOfWeek { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // enum8 -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); +EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::StartOfWeekEnum * value); // StartOfWeekEnum +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::StartOfWeekEnum value); } // namespace StartOfWeek namespace NumberOfWeeklyTransitions { @@ -2723,8 +2727,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); } // namespace NumberOfDailyTransitions namespace TemperatureSetpointHold { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // enum8 -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); +EmberAfStatus Get(chip::EndpointId endpoint, + chip::app::Clusters::Thermostat::TemperatureSetpointHoldEnum * value); // TemperatureSetpointHoldEnum +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::TemperatureSetpointHoldEnum value); } // namespace TemperatureSetpointHold namespace TemperatureSetpointHoldDuration { @@ -2735,18 +2740,22 @@ EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullabl } // namespace TemperatureSetpointHoldDuration namespace ThermostatProgrammingOperationMode { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // bitmap8 -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); +EmberAfStatus +Get(chip::EndpointId endpoint, + chip::BitMask * value); // ProgrammingOperationModeBitmap +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value); } // namespace ThermostatProgrammingOperationMode namespace ThermostatRunningState { -EmberAfStatus Get(chip::EndpointId endpoint, uint16_t * value); // bitmap16 -EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); +EmberAfStatus Get(chip::EndpointId endpoint, + chip::BitMask * value); // RelayStateBitmap +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value); } // namespace ThermostatRunningState namespace SetpointChangeSource { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // enum8 -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); +EmberAfStatus Get(chip::EndpointId endpoint, + chip::app::Clusters::Thermostat::SetpointChangeSourceEnum * value); // SetpointChangeSourceEnum +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::SetpointChangeSourceEnum value); } // namespace SetpointChangeSource namespace SetpointChangeAmount { @@ -2809,8 +2818,8 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); } // namespace EmergencyHeatDelta namespace ACType { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // enum8 -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); +EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ACTypeEnum * value); // ACTypeEnum +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ACTypeEnum value); } // namespace ACType namespace ACCapacity { @@ -2819,36 +2828,94 @@ EmberAfStatus Set(chip::EndpointId endpoint, uint16_t value); } // namespace ACCapacity namespace ACRefrigerantType { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // enum8 -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); +EmberAfStatus Get(chip::EndpointId endpoint, + chip::app::Clusters::Thermostat::ACRefrigerantTypeEnum * value); // ACRefrigerantTypeEnum +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ACRefrigerantTypeEnum value); } // namespace ACRefrigerantType namespace ACCompressorType { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // enum8 -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); +EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ACCompressorTypeEnum * value); // ACCompressorTypeEnum +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ACCompressorTypeEnum value); } // namespace ACCompressorType namespace ACErrorCode { -EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // bitmap32 -EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); +EmberAfStatus Get(chip::EndpointId endpoint, + chip::BitMask * value); // ACErrorCodeBitmap +EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask value); } // namespace ACErrorCode namespace ACLouverPosition { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // enum8 -EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); +EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ACLouverPositionEnum * value); // ACLouverPositionEnum +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ACLouverPositionEnum value); } // namespace ACLouverPosition namespace ACCoilTemperature { -EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int16s +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // temperature EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); EmberAfStatus SetNull(chip::EndpointId endpoint); EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); } // namespace ACCoilTemperature -namespace ACCapacityformat { -EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // enum8 +namespace ACCapacityFormat { +EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ACCapacityFormatEnum * value); // ACCapacityFormatEnum +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ACCapacityFormatEnum value); +} // namespace ACCapacityFormat + +namespace NumberOfPresets { +EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // int8u +EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); +} // namespace NumberOfPresets + +namespace NumberOfSchedules { +EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // int8u +EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); +} // namespace NumberOfSchedules + +namespace NumberOfScheduleTransitions { +EmberAfStatus Get(chip::EndpointId endpoint, uint8_t * value); // int8u +EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); +} // namespace NumberOfScheduleTransitions + +namespace NumberOfScheduleTransitionPerDay { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // int8u EmberAfStatus Set(chip::EndpointId endpoint, uint8_t value); -} // namespace ACCapacityformat +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace NumberOfScheduleTransitionPerDay + +namespace ActivePresetHandle { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // octet_string +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace ActivePresetHandle + +namespace ActiveScheduleHandle { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // octet_string +EmberAfStatus Set(chip::EndpointId endpoint, chip::ByteSpan value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace ActiveScheduleHandle + +namespace PresetsSchedulesEditable { +EmberAfStatus Get(chip::EndpointId endpoint, bool * value); // boolean +EmberAfStatus Set(chip::EndpointId endpoint, bool value); +} // namespace PresetsSchedulesEditable + +namespace TemperatureSetpointHoldPolicy { +EmberAfStatus Get(chip::EndpointId endpoint, + chip::BitMask * + value); // TemperatureSetpointHoldPolicyBitmap +EmberAfStatus Set(chip::EndpointId endpoint, + chip::BitMask value); +} // namespace TemperatureSetpointHoldPolicy + +namespace SetpointHoldExpiryTimestamp { +EmberAfStatus Get(chip::EndpointId endpoint, DataModel::Nullable & value); // epoch_s +EmberAfStatus Set(chip::EndpointId endpoint, uint32_t value); +EmberAfStatus SetNull(chip::EndpointId endpoint); +EmberAfStatus Set(chip::EndpointId endpoint, const chip::app::DataModel::Nullable & value); +} // namespace SetpointHoldExpiryTimestamp namespace FeatureMap { EmberAfStatus Get(chip::EndpointId endpoint, uint32_t * value); // bitmap32 diff --git a/zzz_generated/app-common/app-common/zap-generated/callback.h b/zzz_generated/app-common/app-common/zap-generated/callback.h index 9a169142ac5faf..16189ef70e5b43 100644 --- a/zzz_generated/app-common/app-common/zap-generated/callback.h +++ b/zzz_generated/app-common/app-common/zap-generated/callback.h @@ -9823,6 +9823,54 @@ bool emberAfThermostatClusterGetWeeklyScheduleCallback( bool emberAfThermostatClusterClearWeeklyScheduleCallback( chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, const chip::app::Clusters::Thermostat::Commands::ClearWeeklySchedule::DecodableType & commandData); +/** + * @brief Thermostat Cluster GetRelayStatusLog Command callback (from client) + */ +bool emberAfThermostatClusterGetRelayStatusLogCallback( + chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, + const chip::app::Clusters::Thermostat::Commands::GetRelayStatusLog::DecodableType & commandData); +/** + * @brief Thermostat Cluster SetActiveScheduleRequest Command callback (from client) + */ +bool emberAfThermostatClusterSetActiveScheduleRequestCallback( + chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, + const chip::app::Clusters::Thermostat::Commands::SetActiveScheduleRequest::DecodableType & commandData); +/** + * @brief Thermostat Cluster SetActivePresetRequest Command callback (from client) + */ +bool emberAfThermostatClusterSetActivePresetRequestCallback( + chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, + const chip::app::Clusters::Thermostat::Commands::SetActivePresetRequest::DecodableType & commandData); +/** + * @brief Thermostat Cluster StartPresetsSchedulesEditRequest Command callback (from client) + */ +bool emberAfThermostatClusterStartPresetsSchedulesEditRequestCallback( + chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, + const chip::app::Clusters::Thermostat::Commands::StartPresetsSchedulesEditRequest::DecodableType & commandData); +/** + * @brief Thermostat Cluster CancelPresetsSchedulesEditRequest Command callback (from client) + */ +bool emberAfThermostatClusterCancelPresetsSchedulesEditRequestCallback( + chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, + const chip::app::Clusters::Thermostat::Commands::CancelPresetsSchedulesEditRequest::DecodableType & commandData); +/** + * @brief Thermostat Cluster CommitPresetsSchedulesRequest Command callback (from client) + */ +bool emberAfThermostatClusterCommitPresetsSchedulesRequestCallback( + chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, + const chip::app::Clusters::Thermostat::Commands::CommitPresetsSchedulesRequest::DecodableType & commandData); +/** + * @brief Thermostat Cluster CancelSetActivePresetRequest Command callback (from client) + */ +bool emberAfThermostatClusterCancelSetActivePresetRequestCallback( + chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, + const chip::app::Clusters::Thermostat::Commands::CancelSetActivePresetRequest::DecodableType & commandData); +/** + * @brief Thermostat Cluster SetTemperatureSetpointHoldPolicy Command callback (from client) + */ +bool emberAfThermostatClusterSetTemperatureSetpointHoldPolicyCallback( + chip::app::CommandHandler * commandObj, const chip::app::ConcreteCommandPath & commandPath, + const chip::app::Clusters::Thermostat::Commands::SetTemperatureSetpointHoldPolicy::DecodableType & commandData); /** * @brief Fan Control Cluster Step Command callback (from client) */ diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-enums-check.h b/zzz_generated/app-common/app-common/zap-generated/cluster-enums-check.h index 7664f4ff99393e..6c13bb3eb500fc 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-enums-check.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-enums-check.h @@ -1996,9 +1996,95 @@ static auto __attribute__((unused)) EnsureKnownEnumValue(PumpConfigurationAndCon } } -static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::SetpointAdjustMode val) +static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::ACCapacityFormatEnum val) { - using EnumType = Thermostat::SetpointAdjustMode; + using EnumType = Thermostat::ACCapacityFormatEnum; + switch (val) + { + case EnumType::kBTUh: + return val; + default: + return static_cast(1); + } +} +static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::ACCompressorTypeEnum val) +{ + using EnumType = Thermostat::ACCompressorTypeEnum; + switch (val) + { + case EnumType::kUnknown: + case EnumType::kT1: + case EnumType::kT2: + case EnumType::kT3: + return val; + default: + return static_cast(4); + } +} +static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::ACLouverPositionEnum val) +{ + using EnumType = Thermostat::ACLouverPositionEnum; + switch (val) + { + case EnumType::kClosed: + case EnumType::kOpen: + case EnumType::kQuarter: + case EnumType::kHalf: + case EnumType::kThreeQuarters: + return val; + default: + return static_cast(0); + } +} +static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::ACRefrigerantTypeEnum val) +{ + using EnumType = Thermostat::ACRefrigerantTypeEnum; + switch (val) + { + case EnumType::kUnknown: + case EnumType::kR22: + case EnumType::kR410a: + case EnumType::kR407c: + return val; + default: + return static_cast(4); + } +} +static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::ACTypeEnum val) +{ + using EnumType = Thermostat::ACTypeEnum; + switch (val) + { + case EnumType::kUnknown: + case EnumType::kCoolingFixed: + case EnumType::kHeatPumpFixed: + case EnumType::kCoolingInverter: + case EnumType::kHeatPumpInverter: + return val; + default: + return static_cast(5); + } +} +static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::PresetScenarioEnum val) +{ + using EnumType = Thermostat::PresetScenarioEnum; + switch (val) + { + case EnumType::kUnspecified: + case EnumType::kOccupied: + case EnumType::kUnoccupied: + case EnumType::kSleep: + case EnumType::kWake: + case EnumType::kVacation: + case EnumType::kUserDefined: + return val; + default: + return static_cast(7); + } +} +static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::SetpointAdjustModeEnum val) +{ + using EnumType = Thermostat::SetpointAdjustModeEnum; switch (val) { case EnumType::kHeat: @@ -2009,9 +2095,51 @@ static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::SetpointAdj return static_cast(3); } } -static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::ThermostatControlSequence val) +static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::SetpointChangeSourceEnum val) +{ + using EnumType = Thermostat::SetpointChangeSourceEnum; + switch (val) + { + case EnumType::kManual: + case EnumType::kSchedule: + case EnumType::kExternal: + return val; + default: + return static_cast(3); + } +} +static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::StartOfWeekEnum val) +{ + using EnumType = Thermostat::StartOfWeekEnum; + switch (val) + { + case EnumType::kSunday: + case EnumType::kMonday: + case EnumType::kTuesday: + case EnumType::kWednesday: + case EnumType::kThursday: + case EnumType::kFriday: + case EnumType::kSaturday: + return val; + default: + return static_cast(7); + } +} +static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::TemperatureSetpointHoldEnum val) +{ + using EnumType = Thermostat::TemperatureSetpointHoldEnum; + switch (val) + { + case EnumType::kSetpointHoldOff: + case EnumType::kSetpointHoldOn: + return val; + default: + return static_cast(2); + } +} +static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::ThermostatControlSequenceEnum val) { - using EnumType = Thermostat::ThermostatControlSequence; + using EnumType = Thermostat::ThermostatControlSequenceEnum; switch (val) { case EnumType::kCoolingOnly: @@ -2025,9 +2153,9 @@ static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::ThermostatC return static_cast(6); } } -static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::ThermostatRunningMode val) +static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::ThermostatRunningModeEnum val) { - using EnumType = Thermostat::ThermostatRunningMode; + using EnumType = Thermostat::ThermostatRunningModeEnum; switch (val) { case EnumType::kOff: @@ -2038,9 +2166,9 @@ static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::ThermostatR return static_cast(1); } } -static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::ThermostatSystemMode val) +static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::ThermostatSystemModeEnum val) { - using EnumType = Thermostat::ThermostatSystemMode; + using EnumType = Thermostat::ThermostatSystemModeEnum; switch (val) { case EnumType::kOff: diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h b/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h index 8b2d48c8541877..7df1dcbf6b4fa0 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h @@ -2980,8 +2980,94 @@ enum class PumpStatusBitmap : uint16_t namespace Thermostat { -// Enum for SetpointAdjustMode -enum class SetpointAdjustMode : uint8_t +// Enum for ACCapacityFormatEnum +enum class ACCapacityFormatEnum : uint8_t +{ + kBTUh = 0x00, + // All received enum values that are not listed above will be mapped + // to kUnknownEnumValue. This is a helper enum value that should only + // be used by code to process how it handles receiving and unknown + // enum value. This specific should never be transmitted. + kUnknownEnumValue = 1, +}; + +// Enum for ACCompressorTypeEnum +enum class ACCompressorTypeEnum : uint8_t +{ + kUnknown = 0x00, + kT1 = 0x01, + kT2 = 0x02, + kT3 = 0x03, + // All received enum values that are not listed above will be mapped + // to kUnknownEnumValue. This is a helper enum value that should only + // be used by code to process how it handles receiving and unknown + // enum value. This specific should never be transmitted. + kUnknownEnumValue = 4, +}; + +// Enum for ACLouverPositionEnum +enum class ACLouverPositionEnum : uint8_t +{ + kClosed = 0x01, + kOpen = 0x02, + kQuarter = 0x03, + kHalf = 0x04, + kThreeQuarters = 0x05, + // All received enum values that are not listed above will be mapped + // to kUnknownEnumValue. This is a helper enum value that should only + // be used by code to process how it handles receiving and unknown + // enum value. This specific should never be transmitted. + kUnknownEnumValue = 0, +}; + +// Enum for ACRefrigerantTypeEnum +enum class ACRefrigerantTypeEnum : uint8_t +{ + kUnknown = 0x00, + kR22 = 0x01, + kR410a = 0x02, + kR407c = 0x03, + // All received enum values that are not listed above will be mapped + // to kUnknownEnumValue. This is a helper enum value that should only + // be used by code to process how it handles receiving and unknown + // enum value. This specific should never be transmitted. + kUnknownEnumValue = 4, +}; + +// Enum for ACTypeEnum +enum class ACTypeEnum : uint8_t +{ + kUnknown = 0x00, + kCoolingFixed = 0x01, + kHeatPumpFixed = 0x02, + kCoolingInverter = 0x03, + kHeatPumpInverter = 0x04, + // All received enum values that are not listed above will be mapped + // to kUnknownEnumValue. This is a helper enum value that should only + // be used by code to process how it handles receiving and unknown + // enum value. This specific should never be transmitted. + kUnknownEnumValue = 5, +}; + +// Enum for PresetScenarioEnum +enum class PresetScenarioEnum : uint8_t +{ + kUnspecified = 0x00, + kOccupied = 0x01, + kUnoccupied = 0x02, + kSleep = 0x03, + kWake = 0x04, + kVacation = 0x05, + kUserDefined = 0x06, + // All received enum values that are not listed above will be mapped + // to kUnknownEnumValue. This is a helper enum value that should only + // be used by code to process how it handles receiving and unknown + // enum value. This specific should never be transmitted. + kUnknownEnumValue = 7, +}; + +// Enum for SetpointAdjustModeEnum +enum class SetpointAdjustModeEnum : uint8_t { kHeat = 0x00, kCool = 0x01, @@ -2993,8 +3079,50 @@ enum class SetpointAdjustMode : uint8_t kUnknownEnumValue = 3, }; -// Enum for ThermostatControlSequence -enum class ThermostatControlSequence : uint8_t +// Enum for SetpointChangeSourceEnum +enum class SetpointChangeSourceEnum : uint8_t +{ + kManual = 0x00, + kSchedule = 0x01, + kExternal = 0x02, + // All received enum values that are not listed above will be mapped + // to kUnknownEnumValue. This is a helper enum value that should only + // be used by code to process how it handles receiving and unknown + // enum value. This specific should never be transmitted. + kUnknownEnumValue = 3, +}; + +// Enum for StartOfWeekEnum +enum class StartOfWeekEnum : uint8_t +{ + kSunday = 0x00, + kMonday = 0x01, + kTuesday = 0x02, + kWednesday = 0x03, + kThursday = 0x04, + kFriday = 0x05, + kSaturday = 0x06, + // All received enum values that are not listed above will be mapped + // to kUnknownEnumValue. This is a helper enum value that should only + // be used by code to process how it handles receiving and unknown + // enum value. This specific should never be transmitted. + kUnknownEnumValue = 7, +}; + +// Enum for TemperatureSetpointHoldEnum +enum class TemperatureSetpointHoldEnum : uint8_t +{ + kSetpointHoldOff = 0x00, + kSetpointHoldOn = 0x01, + // All received enum values that are not listed above will be mapped + // to kUnknownEnumValue. This is a helper enum value that should only + // be used by code to process how it handles receiving and unknown + // enum value. This specific should never be transmitted. + kUnknownEnumValue = 2, +}; + +// Enum for ThermostatControlSequenceEnum +enum class ThermostatControlSequenceEnum : uint8_t { kCoolingOnly = 0x00, kCoolingWithReheat = 0x01, @@ -3009,8 +3137,8 @@ enum class ThermostatControlSequence : uint8_t kUnknownEnumValue = 6, }; -// Enum for ThermostatRunningMode -enum class ThermostatRunningMode : uint8_t +// Enum for ThermostatRunningModeEnum +enum class ThermostatRunningModeEnum : uint8_t { kOff = 0x00, kCool = 0x03, @@ -3022,8 +3150,8 @@ enum class ThermostatRunningMode : uint8_t kUnknownEnumValue = 1, }; -// Enum for ThermostatSystemMode -enum class ThermostatSystemMode : uint8_t +// Enum for ThermostatSystemModeEnum +enum class ThermostatSystemModeEnum : uint8_t { kOff = 0x00, kAuto = 0x01, @@ -3041,8 +3169,26 @@ enum class ThermostatSystemMode : uint8_t kUnknownEnumValue = 2, }; -// Bitmap for DayOfWeek -enum class DayOfWeek : uint8_t +// Bitmap for ACErrorCodeBitmap +enum class ACErrorCodeBitmap : uint32_t +{ + kCompressorFail = 0x1, + kRoomSensorFail = 0x2, + kOutdoorSensorFail = 0x4, + kCoilSensorFail = 0x8, + kFanFail = 0x10, +}; + +// Bitmap for AlarmCodeBitmap +enum class AlarmCodeBitmap : uint8_t +{ + kInitialization = 0x1, + kHardware = 0x2, + kSelfCalibration = 0x4, +}; + +// Bitmap for DayOfWeekBitmap +enum class DayOfWeekBitmap : uint8_t { kSunday = 0x1, kMonday = 0x2, @@ -3057,21 +3203,83 @@ enum class DayOfWeek : uint8_t // Bitmap for Feature enum class Feature : uint32_t { - kHeating = 0x1, - kCooling = 0x2, - kOccupancy = 0x4, - kScheduleConfiguration = 0x8, - kSetback = 0x10, - kAutoMode = 0x20, - kLocalTemperatureNotExposed = 0x40, + kHeating = 0x1, + kCooling = 0x2, + kOccupancy = 0x4, + kZigbeeScheduleConfiguration = 0x8, + kSetback = 0x10, + kAutoMode = 0x20, + kLocalTemperatureNotExposed = 0x40, + kMatterScheduleConfiguration = 0x80, + kPresets = 0x100, + kSetpoints = 0x200, + kQueuedPresetsSupported = 0x400, +}; + +// Bitmap for HVACSystemTypeBitmap +enum class HVACSystemTypeBitmap : uint8_t +{ + kHeatingType = 0x10, + kHeatingFuel = 0x20, }; -// Bitmap for ModeForSequence -enum class ModeForSequence : uint8_t +// Bitmap for ModeForSequenceBitmap +enum class ModeForSequenceBitmap : uint8_t { kHeatSetpointPresent = 0x1, kCoolSetpointPresent = 0x2, }; + +// Bitmap for PresetTypeFeaturesBitmap +enum class PresetTypeFeaturesBitmap : uint16_t +{ + kAutomatic = 0x1, + kSupportsNames = 0x2, +}; + +// Bitmap for ProgrammingOperationModeBitmap +enum class ProgrammingOperationModeBitmap : uint8_t +{ + kScheduleActive = 0x1, + kAutoRecovery = 0x2, + kEconomy = 0x4, +}; + +// Bitmap for RelayStateBitmap +enum class RelayStateBitmap : uint16_t +{ + kHeat = 0x1, + kCool = 0x2, + kFan = 0x4, + kHeatStage2 = 0x8, + kCoolStage2 = 0x10, + kFanStage2 = 0x20, + kFanStage3 = 0x40, +}; + +// Bitmap for RemoteSensingBitmap +enum class RemoteSensingBitmap : uint8_t +{ + kLocalTemperature = 0x1, + kOutdoorTemperature = 0x2, + kOccupancy = 0x4, +}; + +// Bitmap for ScheduleTypeFeaturesBitmap +enum class ScheduleTypeFeaturesBitmap : uint16_t +{ + kSupportsPresets = 0x1, + kSupportsSetpoints = 0x2, + kSupportsNames = 0x4, + kSupportsOff = 0x8, +}; + +// Bitmap for TemperatureSetpointHoldPolicyBitmap +enum class TemperatureSetpointHoldPolicyBitmap : uint8_t +{ + kHoldDurationElapsed = 0x1, + kHoldDurationElapsedOrPresetChanged = 0x2, +}; } // namespace Thermostat namespace FanControl { diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp index 951683417dccb2..5c98c44012e6ff 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp @@ -16799,7 +16799,323 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) namespace Thermostat { namespace Structs { -namespace ThermostatScheduleTransition { +namespace ScheduleTransitionStruct { +CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const +{ + DataModel::WrappedStructEncoder encoder{ aWriter, aTag }; + encoder.Encode(to_underlying(Fields::kDayOfWeek), dayOfWeek); + encoder.Encode(to_underlying(Fields::kTransitionTime), transitionTime); + encoder.Encode(to_underlying(Fields::kPresetHandle), presetHandle); + encoder.Encode(to_underlying(Fields::kSystemMode), systemMode); + encoder.Encode(to_underlying(Fields::kCoolingSetpoint), coolingSetpoint); + encoder.Encode(to_underlying(Fields::kHeatingSetpoint), heatingSetpoint); + return encoder.Finalize(); +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + detail::StructDecodeIterator __iterator(reader); + while (true) + { + auto __element = __iterator.Next(); + if (std::holds_alternative(__element)) + { + return std::get(__element); + } + + CHIP_ERROR err = CHIP_NO_ERROR; + const uint8_t __context_tag = std::get(__element); + + if (__context_tag == to_underlying(Fields::kDayOfWeek)) + { + err = DataModel::Decode(reader, dayOfWeek); + } + else if (__context_tag == to_underlying(Fields::kTransitionTime)) + { + err = DataModel::Decode(reader, transitionTime); + } + else if (__context_tag == to_underlying(Fields::kPresetHandle)) + { + err = DataModel::Decode(reader, presetHandle); + } + else if (__context_tag == to_underlying(Fields::kSystemMode)) + { + err = DataModel::Decode(reader, systemMode); + } + else if (__context_tag == to_underlying(Fields::kCoolingSetpoint)) + { + err = DataModel::Decode(reader, coolingSetpoint); + } + else if (__context_tag == to_underlying(Fields::kHeatingSetpoint)) + { + err = DataModel::Decode(reader, heatingSetpoint); + } + else + { + } + + ReturnErrorOnFailure(err); + } +} + +} // namespace ScheduleTransitionStruct + +namespace ScheduleStruct { +CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const +{ + DataModel::WrappedStructEncoder encoder{ aWriter, aTag }; + encoder.Encode(to_underlying(Fields::kScheduleHandle), scheduleHandle); + encoder.Encode(to_underlying(Fields::kSystemMode), systemMode); + encoder.Encode(to_underlying(Fields::kName), name); + encoder.Encode(to_underlying(Fields::kPresetHandle), presetHandle); + encoder.Encode(to_underlying(Fields::kTransitions), transitions); + encoder.Encode(to_underlying(Fields::kBuiltIn), builtIn); + return encoder.Finalize(); +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + detail::StructDecodeIterator __iterator(reader); + while (true) + { + auto __element = __iterator.Next(); + if (std::holds_alternative(__element)) + { + return std::get(__element); + } + + CHIP_ERROR err = CHIP_NO_ERROR; + const uint8_t __context_tag = std::get(__element); + + if (__context_tag == to_underlying(Fields::kScheduleHandle)) + { + err = DataModel::Decode(reader, scheduleHandle); + } + else if (__context_tag == to_underlying(Fields::kSystemMode)) + { + err = DataModel::Decode(reader, systemMode); + } + else if (__context_tag == to_underlying(Fields::kName)) + { + err = DataModel::Decode(reader, name); + } + else if (__context_tag == to_underlying(Fields::kPresetHandle)) + { + err = DataModel::Decode(reader, presetHandle); + } + else if (__context_tag == to_underlying(Fields::kTransitions)) + { + err = DataModel::Decode(reader, transitions); + } + else if (__context_tag == to_underlying(Fields::kBuiltIn)) + { + err = DataModel::Decode(reader, builtIn); + } + else + { + } + + ReturnErrorOnFailure(err); + } +} + +} // namespace ScheduleStruct + +namespace PresetStruct { +CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const +{ + DataModel::WrappedStructEncoder encoder{ aWriter, aTag }; + encoder.Encode(to_underlying(Fields::kPresetHandle), presetHandle); + encoder.Encode(to_underlying(Fields::kPresetScenario), presetScenario); + encoder.Encode(to_underlying(Fields::kName), name); + encoder.Encode(to_underlying(Fields::kCoolingSetpoint), coolingSetpoint); + encoder.Encode(to_underlying(Fields::kHeatingSetpoint), heatingSetpoint); + encoder.Encode(to_underlying(Fields::kBuiltIn), builtIn); + return encoder.Finalize(); +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + detail::StructDecodeIterator __iterator(reader); + while (true) + { + auto __element = __iterator.Next(); + if (std::holds_alternative(__element)) + { + return std::get(__element); + } + + CHIP_ERROR err = CHIP_NO_ERROR; + const uint8_t __context_tag = std::get(__element); + + if (__context_tag == to_underlying(Fields::kPresetHandle)) + { + err = DataModel::Decode(reader, presetHandle); + } + else if (__context_tag == to_underlying(Fields::kPresetScenario)) + { + err = DataModel::Decode(reader, presetScenario); + } + else if (__context_tag == to_underlying(Fields::kName)) + { + err = DataModel::Decode(reader, name); + } + else if (__context_tag == to_underlying(Fields::kCoolingSetpoint)) + { + err = DataModel::Decode(reader, coolingSetpoint); + } + else if (__context_tag == to_underlying(Fields::kHeatingSetpoint)) + { + err = DataModel::Decode(reader, heatingSetpoint); + } + else if (__context_tag == to_underlying(Fields::kBuiltIn)) + { + err = DataModel::Decode(reader, builtIn); + } + else + { + } + + ReturnErrorOnFailure(err); + } +} + +} // namespace PresetStruct + +namespace PresetTypeStruct { +CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const +{ + DataModel::WrappedStructEncoder encoder{ aWriter, aTag }; + encoder.Encode(to_underlying(Fields::kPresetScenario), presetScenario); + encoder.Encode(to_underlying(Fields::kNumberOfPresets), numberOfPresets); + encoder.Encode(to_underlying(Fields::kPresetTypeFeatures), presetTypeFeatures); + return encoder.Finalize(); +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + detail::StructDecodeIterator __iterator(reader); + while (true) + { + auto __element = __iterator.Next(); + if (std::holds_alternative(__element)) + { + return std::get(__element); + } + + CHIP_ERROR err = CHIP_NO_ERROR; + const uint8_t __context_tag = std::get(__element); + + if (__context_tag == to_underlying(Fields::kPresetScenario)) + { + err = DataModel::Decode(reader, presetScenario); + } + else if (__context_tag == to_underlying(Fields::kNumberOfPresets)) + { + err = DataModel::Decode(reader, numberOfPresets); + } + else if (__context_tag == to_underlying(Fields::kPresetTypeFeatures)) + { + err = DataModel::Decode(reader, presetTypeFeatures); + } + else + { + } + + ReturnErrorOnFailure(err); + } +} + +} // namespace PresetTypeStruct + +namespace QueuedPresetStruct { +CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const +{ + DataModel::WrappedStructEncoder encoder{ aWriter, aTag }; + encoder.Encode(to_underlying(Fields::kPresetHandle), presetHandle); + encoder.Encode(to_underlying(Fields::kTransitionTimestamp), transitionTimestamp); + return encoder.Finalize(); +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + detail::StructDecodeIterator __iterator(reader); + while (true) + { + auto __element = __iterator.Next(); + if (std::holds_alternative(__element)) + { + return std::get(__element); + } + + CHIP_ERROR err = CHIP_NO_ERROR; + const uint8_t __context_tag = std::get(__element); + + if (__context_tag == to_underlying(Fields::kPresetHandle)) + { + err = DataModel::Decode(reader, presetHandle); + } + else if (__context_tag == to_underlying(Fields::kTransitionTimestamp)) + { + err = DataModel::Decode(reader, transitionTimestamp); + } + else + { + } + + ReturnErrorOnFailure(err); + } +} + +} // namespace QueuedPresetStruct + +namespace ScheduleTypeStruct { +CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const +{ + DataModel::WrappedStructEncoder encoder{ aWriter, aTag }; + encoder.Encode(to_underlying(Fields::kSystemMode), systemMode); + encoder.Encode(to_underlying(Fields::kNumberOfSchedules), numberOfSchedules); + encoder.Encode(to_underlying(Fields::kScheduleTypeFeatures), scheduleTypeFeatures); + return encoder.Finalize(); +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + detail::StructDecodeIterator __iterator(reader); + while (true) + { + auto __element = __iterator.Next(); + if (std::holds_alternative(__element)) + { + return std::get(__element); + } + + CHIP_ERROR err = CHIP_NO_ERROR; + const uint8_t __context_tag = std::get(__element); + + if (__context_tag == to_underlying(Fields::kSystemMode)) + { + err = DataModel::Decode(reader, systemMode); + } + else if (__context_tag == to_underlying(Fields::kNumberOfSchedules)) + { + err = DataModel::Decode(reader, numberOfSchedules); + } + else if (__context_tag == to_underlying(Fields::kScheduleTypeFeatures)) + { + err = DataModel::Decode(reader, scheduleTypeFeatures); + } + else + { + } + + ReturnErrorOnFailure(err); + } +} + +} // namespace ScheduleTypeStruct + +namespace ThermostatScheduleTransitionStruct { CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const { DataModel::WrappedStructEncoder encoder{ aWriter, aTag }; @@ -16843,7 +17159,7 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } } -} // namespace ThermostatScheduleTransition +} // namespace ThermostatScheduleTransitionStruct } // namespace Structs namespace Commands { @@ -16891,7 +17207,7 @@ CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const { DataModel::WrappedStructEncoder encoder{ aWriter, aTag }; encoder.Encode(to_underlying(Fields::kNumberOfTransitionsForSequence), numberOfTransitionsForSequence); - encoder.Encode(to_underlying(Fields::kDayOfWeekForSequence), dayOfWeekForSequence); + encoder.Encode(to_underlying(Fields::kDayOfWeekforSequence), dayOfWeekforSequence); encoder.Encode(to_underlying(Fields::kModeForSequence), modeForSequence); encoder.Encode(to_underlying(Fields::kTransitions), transitions); return encoder.Finalize(); @@ -16915,9 +17231,9 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) { err = DataModel::Decode(reader, numberOfTransitionsForSequence); } - else if (__context_tag == to_underlying(Fields::kDayOfWeekForSequence)) + else if (__context_tag == to_underlying(Fields::kDayOfWeekforSequence)) { - err = DataModel::Decode(reader, dayOfWeekForSequence); + err = DataModel::Decode(reader, dayOfWeekforSequence); } else if (__context_tag == to_underlying(Fields::kModeForSequence)) { @@ -16940,7 +17256,7 @@ CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const { DataModel::WrappedStructEncoder encoder{ aWriter, aTag }; encoder.Encode(to_underlying(Fields::kNumberOfTransitionsForSequence), numberOfTransitionsForSequence); - encoder.Encode(to_underlying(Fields::kDayOfWeekForSequence), dayOfWeekForSequence); + encoder.Encode(to_underlying(Fields::kDayOfWeekforSequence), dayOfWeekforSequence); encoder.Encode(to_underlying(Fields::kModeForSequence), modeForSequence); encoder.Encode(to_underlying(Fields::kTransitions), transitions); return encoder.Finalize(); @@ -16964,9 +17280,9 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) { err = DataModel::Decode(reader, numberOfTransitionsForSequence); } - else if (__context_tag == to_underlying(Fields::kDayOfWeekForSequence)) + else if (__context_tag == to_underlying(Fields::kDayOfWeekforSequence)) { - err = DataModel::Decode(reader, dayOfWeekForSequence); + err = DataModel::Decode(reader, dayOfWeekforSequence); } else if (__context_tag == to_underlying(Fields::kModeForSequence)) { @@ -16984,6 +17300,65 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } } } // namespace SetWeeklySchedule. +namespace GetRelayStatusLogResponse { +CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const +{ + DataModel::WrappedStructEncoder encoder{ aWriter, aTag }; + encoder.Encode(to_underlying(Fields::kTimeOfDay), timeOfDay); + encoder.Encode(to_underlying(Fields::kRelayStatus), relayStatus); + encoder.Encode(to_underlying(Fields::kLocalTemperature), localTemperature); + encoder.Encode(to_underlying(Fields::kHumidityInPercentage), humidityInPercentage); + encoder.Encode(to_underlying(Fields::kSetPoint), setPoint); + encoder.Encode(to_underlying(Fields::kUnreadEntries), unreadEntries); + return encoder.Finalize(); +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + detail::StructDecodeIterator __iterator(reader); + while (true) + { + auto __element = __iterator.Next(); + if (std::holds_alternative(__element)) + { + return std::get(__element); + } + + CHIP_ERROR err = CHIP_NO_ERROR; + const uint8_t __context_tag = std::get(__element); + + if (__context_tag == to_underlying(Fields::kTimeOfDay)) + { + err = DataModel::Decode(reader, timeOfDay); + } + else if (__context_tag == to_underlying(Fields::kRelayStatus)) + { + err = DataModel::Decode(reader, relayStatus); + } + else if (__context_tag == to_underlying(Fields::kLocalTemperature)) + { + err = DataModel::Decode(reader, localTemperature); + } + else if (__context_tag == to_underlying(Fields::kHumidityInPercentage)) + { + err = DataModel::Decode(reader, humidityInPercentage); + } + else if (__context_tag == to_underlying(Fields::kSetPoint)) + { + err = DataModel::Decode(reader, setPoint); + } + else if (__context_tag == to_underlying(Fields::kUnreadEntries)) + { + err = DataModel::Decode(reader, unreadEntries); + } + else + { + } + + ReturnErrorOnFailure(err); + } +} +} // namespace GetRelayStatusLogResponse. namespace GetWeeklySchedule { CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const { @@ -17043,6 +17418,227 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } } } // namespace ClearWeeklySchedule. +namespace GetRelayStatusLog { +CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const +{ + DataModel::WrappedStructEncoder encoder{ aWriter, aTag }; + return encoder.Finalize(); +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + detail::StructDecodeIterator __iterator(reader); + while (true) + { + auto __element = __iterator.Next(); + if (std::holds_alternative(__element)) + { + return std::get(__element); + } + } +} +} // namespace GetRelayStatusLog. +namespace SetActiveScheduleRequest { +CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const +{ + DataModel::WrappedStructEncoder encoder{ aWriter, aTag }; + encoder.Encode(to_underlying(Fields::kScheduleHandle), scheduleHandle); + return encoder.Finalize(); +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + detail::StructDecodeIterator __iterator(reader); + while (true) + { + auto __element = __iterator.Next(); + if (std::holds_alternative(__element)) + { + return std::get(__element); + } + + CHIP_ERROR err = CHIP_NO_ERROR; + const uint8_t __context_tag = std::get(__element); + + if (__context_tag == to_underlying(Fields::kScheduleHandle)) + { + err = DataModel::Decode(reader, scheduleHandle); + } + else + { + } + + ReturnErrorOnFailure(err); + } +} +} // namespace SetActiveScheduleRequest. +namespace SetActivePresetRequest { +CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const +{ + DataModel::WrappedStructEncoder encoder{ aWriter, aTag }; + encoder.Encode(to_underlying(Fields::kPresetHandle), presetHandle); + encoder.Encode(to_underlying(Fields::kDelayMinutes), delayMinutes); + return encoder.Finalize(); +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + detail::StructDecodeIterator __iterator(reader); + while (true) + { + auto __element = __iterator.Next(); + if (std::holds_alternative(__element)) + { + return std::get(__element); + } + + CHIP_ERROR err = CHIP_NO_ERROR; + const uint8_t __context_tag = std::get(__element); + + if (__context_tag == to_underlying(Fields::kPresetHandle)) + { + err = DataModel::Decode(reader, presetHandle); + } + else if (__context_tag == to_underlying(Fields::kDelayMinutes)) + { + err = DataModel::Decode(reader, delayMinutes); + } + else + { + } + + ReturnErrorOnFailure(err); + } +} +} // namespace SetActivePresetRequest. +namespace StartPresetsSchedulesEditRequest { +CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const +{ + DataModel::WrappedStructEncoder encoder{ aWriter, aTag }; + encoder.Encode(to_underlying(Fields::kTimeoutSeconds), timeoutSeconds); + return encoder.Finalize(); +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + detail::StructDecodeIterator __iterator(reader); + while (true) + { + auto __element = __iterator.Next(); + if (std::holds_alternative(__element)) + { + return std::get(__element); + } + + CHIP_ERROR err = CHIP_NO_ERROR; + const uint8_t __context_tag = std::get(__element); + + if (__context_tag == to_underlying(Fields::kTimeoutSeconds)) + { + err = DataModel::Decode(reader, timeoutSeconds); + } + else + { + } + + ReturnErrorOnFailure(err); + } +} +} // namespace StartPresetsSchedulesEditRequest. +namespace CancelPresetsSchedulesEditRequest { +CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const +{ + DataModel::WrappedStructEncoder encoder{ aWriter, aTag }; + return encoder.Finalize(); +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + detail::StructDecodeIterator __iterator(reader); + while (true) + { + auto __element = __iterator.Next(); + if (std::holds_alternative(__element)) + { + return std::get(__element); + } + } +} +} // namespace CancelPresetsSchedulesEditRequest. +namespace CommitPresetsSchedulesRequest { +CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const +{ + DataModel::WrappedStructEncoder encoder{ aWriter, aTag }; + return encoder.Finalize(); +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + detail::StructDecodeIterator __iterator(reader); + while (true) + { + auto __element = __iterator.Next(); + if (std::holds_alternative(__element)) + { + return std::get(__element); + } + } +} +} // namespace CommitPresetsSchedulesRequest. +namespace CancelSetActivePresetRequest { +CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const +{ + DataModel::WrappedStructEncoder encoder{ aWriter, aTag }; + return encoder.Finalize(); +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + detail::StructDecodeIterator __iterator(reader); + while (true) + { + auto __element = __iterator.Next(); + if (std::holds_alternative(__element)) + { + return std::get(__element); + } + } +} +} // namespace CancelSetActivePresetRequest. +namespace SetTemperatureSetpointHoldPolicy { +CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const +{ + DataModel::WrappedStructEncoder encoder{ aWriter, aTag }; + encoder.Encode(to_underlying(Fields::kTemperatureSetpointHoldPolicy), temperatureSetpointHoldPolicy); + return encoder.Finalize(); +} + +CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) +{ + detail::StructDecodeIterator __iterator(reader); + while (true) + { + auto __element = __iterator.Next(); + if (std::holds_alternative(__element)) + { + return std::get(__element); + } + + CHIP_ERROR err = CHIP_NO_ERROR; + const uint8_t __context_tag = std::get(__element); + + if (__context_tag == to_underlying(Fields::kTemperatureSetpointHoldPolicy)) + { + err = DataModel::Decode(reader, temperatureSetpointHoldPolicy); + } + else + { + } + + ReturnErrorOnFailure(err); + } +} +} // namespace SetTemperatureSetpointHoldPolicy. } // namespace Commands namespace Attributes { @@ -17068,8 +17664,6 @@ CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const Concre return DataModel::Decode(reader, PICoolingDemand); case Attributes::PIHeatingDemand::TypeInfo::GetAttributeId(): return DataModel::Decode(reader, PIHeatingDemand); - case Attributes::HVACSystemTypeConfiguration::TypeInfo::GetAttributeId(): - return DataModel::Decode(reader, HVACSystemTypeConfiguration); case Attributes::LocalTemperatureCalibration::TypeInfo::GetAttributeId(): return DataModel::Decode(reader, localTemperatureCalibration); case Attributes::OccupiedCoolingSetpoint::TypeInfo::GetAttributeId(): @@ -17096,6 +17690,8 @@ CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const Concre return DataModel::Decode(reader, controlSequenceOfOperation); case Attributes::SystemMode::TypeInfo::GetAttributeId(): return DataModel::Decode(reader, systemMode); + case Attributes::AlarmMask::TypeInfo::GetAttributeId(): + return DataModel::Decode(reader, alarmMask); case Attributes::ThermostatRunningMode::TypeInfo::GetAttributeId(): return DataModel::Decode(reader, thermostatRunningMode); case Attributes::StartOfWeek::TypeInfo::GetAttributeId(): @@ -17146,8 +17742,36 @@ CHIP_ERROR TypeInfo::DecodableType::Decode(TLV::TLVReader & reader, const Concre return DataModel::Decode(reader, ACLouverPosition); case Attributes::ACCoilTemperature::TypeInfo::GetAttributeId(): return DataModel::Decode(reader, ACCoilTemperature); - case Attributes::ACCapacityformat::TypeInfo::GetAttributeId(): - return DataModel::Decode(reader, ACCapacityformat); + case Attributes::ACCapacityFormat::TypeInfo::GetAttributeId(): + return DataModel::Decode(reader, ACCapacityFormat); + case Attributes::PresetTypes::TypeInfo::GetAttributeId(): + return DataModel::Decode(reader, presetTypes); + case Attributes::ScheduleTypes::TypeInfo::GetAttributeId(): + return DataModel::Decode(reader, scheduleTypes); + case Attributes::NumberOfPresets::TypeInfo::GetAttributeId(): + return DataModel::Decode(reader, numberOfPresets); + case Attributes::NumberOfSchedules::TypeInfo::GetAttributeId(): + return DataModel::Decode(reader, numberOfSchedules); + case Attributes::NumberOfScheduleTransitions::TypeInfo::GetAttributeId(): + return DataModel::Decode(reader, numberOfScheduleTransitions); + case Attributes::NumberOfScheduleTransitionPerDay::TypeInfo::GetAttributeId(): + return DataModel::Decode(reader, numberOfScheduleTransitionPerDay); + case Attributes::ActivePresetHandle::TypeInfo::GetAttributeId(): + return DataModel::Decode(reader, activePresetHandle); + case Attributes::ActiveScheduleHandle::TypeInfo::GetAttributeId(): + return DataModel::Decode(reader, activeScheduleHandle); + case Attributes::Presets::TypeInfo::GetAttributeId(): + return DataModel::Decode(reader, presets); + case Attributes::Schedules::TypeInfo::GetAttributeId(): + return DataModel::Decode(reader, schedules); + case Attributes::PresetsSchedulesEditable::TypeInfo::GetAttributeId(): + return DataModel::Decode(reader, presetsSchedulesEditable); + case Attributes::TemperatureSetpointHoldPolicy::TypeInfo::GetAttributeId(): + return DataModel::Decode(reader, temperatureSetpointHoldPolicy); + case Attributes::SetpointHoldExpiryTimestamp::TypeInfo::GetAttributeId(): + return DataModel::Decode(reader, setpointHoldExpiryTimestamp); + case Attributes::QueuedPreset::TypeInfo::GetAttributeId(): + return DataModel::Decode(reader, queuedPreset); case Attributes::GeneratedCommandList::TypeInfo::GetAttributeId(): return DataModel::Decode(reader, generatedCommandList); case Attributes::AcceptedCommandList::TypeInfo::GetAttributeId(): diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h index 8aa5ff413f6278..f758ee8cb10351 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h @@ -23966,7 +23966,184 @@ struct DecodableType } // namespace PumpConfigurationAndControl namespace Thermostat { namespace Structs { -namespace ThermostatScheduleTransition { +namespace ScheduleTransitionStruct { +enum class Fields : uint8_t +{ + kDayOfWeek = 0, + kTransitionTime = 1, + kPresetHandle = 2, + kSystemMode = 3, + kCoolingSetpoint = 4, + kHeatingSetpoint = 5, +}; + +struct Type +{ +public: + chip::BitMask dayOfWeek = static_cast>(0); + uint16_t transitionTime = static_cast(0); + Optional presetHandle; + Optional systemMode; + Optional coolingSetpoint; + Optional heatingSetpoint; + + CHIP_ERROR Decode(TLV::TLVReader & reader); + + static constexpr bool kIsFabricScoped = false; + + CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; +}; + +using DecodableType = Type; + +} // namespace ScheduleTransitionStruct +namespace ScheduleStruct { +enum class Fields : uint8_t +{ + kScheduleHandle = 0, + kSystemMode = 1, + kName = 2, + kPresetHandle = 3, + kTransitions = 4, + kBuiltIn = 5, +}; + +struct Type +{ +public: + DataModel::Nullable scheduleHandle; + ThermostatSystemModeEnum systemMode = static_cast(0); + Optional name; + Optional presetHandle; + DataModel::List transitions; + Optional> builtIn; + + static constexpr bool kIsFabricScoped = false; + + CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; +}; + +struct DecodableType +{ +public: + DataModel::Nullable scheduleHandle; + ThermostatSystemModeEnum systemMode = static_cast(0); + Optional name; + Optional presetHandle; + DataModel::DecodableList transitions; + Optional> builtIn; + + CHIP_ERROR Decode(TLV::TLVReader & reader); + + static constexpr bool kIsFabricScoped = false; +}; + +} // namespace ScheduleStruct +namespace PresetStruct { +enum class Fields : uint8_t +{ + kPresetHandle = 0, + kPresetScenario = 1, + kName = 2, + kCoolingSetpoint = 3, + kHeatingSetpoint = 4, + kBuiltIn = 5, +}; + +struct Type +{ +public: + DataModel::Nullable presetHandle; + PresetScenarioEnum presetScenario = static_cast(0); + Optional> name; + Optional coolingSetpoint; + Optional heatingSetpoint; + DataModel::Nullable builtIn; + + CHIP_ERROR Decode(TLV::TLVReader & reader); + + static constexpr bool kIsFabricScoped = false; + + CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; +}; + +using DecodableType = Type; + +} // namespace PresetStruct +namespace PresetTypeStruct { +enum class Fields : uint8_t +{ + kPresetScenario = 0, + kNumberOfPresets = 1, + kPresetTypeFeatures = 2, +}; + +struct Type +{ +public: + PresetScenarioEnum presetScenario = static_cast(0); + uint8_t numberOfPresets = static_cast(0); + chip::BitMask presetTypeFeatures = static_cast>(0); + + CHIP_ERROR Decode(TLV::TLVReader & reader); + + static constexpr bool kIsFabricScoped = false; + + CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; +}; + +using DecodableType = Type; + +} // namespace PresetTypeStruct +namespace QueuedPresetStruct { +enum class Fields : uint8_t +{ + kPresetHandle = 0, + kTransitionTimestamp = 1, +}; + +struct Type +{ +public: + DataModel::Nullable presetHandle; + DataModel::Nullable transitionTimestamp; + + CHIP_ERROR Decode(TLV::TLVReader & reader); + + static constexpr bool kIsFabricScoped = false; + + CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; +}; + +using DecodableType = Type; + +} // namespace QueuedPresetStruct +namespace ScheduleTypeStruct { +enum class Fields : uint8_t +{ + kSystemMode = 0, + kNumberOfSchedules = 1, + kScheduleTypeFeatures = 2, +}; + +struct Type +{ +public: + ThermostatSystemModeEnum systemMode = static_cast(0); + uint8_t numberOfSchedules = static_cast(0); + chip::BitMask scheduleTypeFeatures = static_cast>(0); + + CHIP_ERROR Decode(TLV::TLVReader & reader); + + static constexpr bool kIsFabricScoped = false; + + CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; +}; + +using DecodableType = Type; + +} // namespace ScheduleTypeStruct +namespace ThermostatScheduleTransitionStruct { enum class Fields : uint8_t { kTransitionTime = 0, @@ -23977,69 +24154,434 @@ enum class Fields : uint8_t struct Type { public: - uint16_t transitionTime = static_cast(0); - DataModel::Nullable heatSetpoint; - DataModel::Nullable coolSetpoint; - - CHIP_ERROR Decode(TLV::TLVReader & reader); + uint16_t transitionTime = static_cast(0); + int16_t heatSetpoint = static_cast(0); + int16_t coolSetpoint = static_cast(0); + + CHIP_ERROR Decode(TLV::TLVReader & reader); + + static constexpr bool kIsFabricScoped = false; + + CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; +}; + +using DecodableType = Type; + +} // namespace ThermostatScheduleTransitionStruct +} // namespace Structs + +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace SetpointRaiseLower { +struct Type; +struct DecodableType; +} // namespace SetpointRaiseLower + +namespace GetWeeklyScheduleResponse { +struct Type; +struct DecodableType; +} // namespace GetWeeklyScheduleResponse + +namespace SetWeeklySchedule { +struct Type; +struct DecodableType; +} // namespace SetWeeklySchedule + +namespace GetRelayStatusLogResponse { +struct Type; +struct DecodableType; +} // namespace GetRelayStatusLogResponse + +namespace GetWeeklySchedule { +struct Type; +struct DecodableType; +} // namespace GetWeeklySchedule + +namespace ClearWeeklySchedule { +struct Type; +struct DecodableType; +} // namespace ClearWeeklySchedule + +namespace GetRelayStatusLog { +struct Type; +struct DecodableType; +} // namespace GetRelayStatusLog + +namespace SetActiveScheduleRequest { +struct Type; +struct DecodableType; +} // namespace SetActiveScheduleRequest + +namespace SetActivePresetRequest { +struct Type; +struct DecodableType; +} // namespace SetActivePresetRequest + +namespace StartPresetsSchedulesEditRequest { +struct Type; +struct DecodableType; +} // namespace StartPresetsSchedulesEditRequest + +namespace CancelPresetsSchedulesEditRequest { +struct Type; +struct DecodableType; +} // namespace CancelPresetsSchedulesEditRequest + +namespace CommitPresetsSchedulesRequest { +struct Type; +struct DecodableType; +} // namespace CommitPresetsSchedulesRequest + +namespace CancelSetActivePresetRequest { +struct Type; +struct DecodableType; +} // namespace CancelSetActivePresetRequest + +namespace SetTemperatureSetpointHoldPolicy { +struct Type; +struct DecodableType; +} // namespace SetTemperatureSetpointHoldPolicy + +} // namespace Commands + +namespace Commands { +namespace SetpointRaiseLower { +enum class Fields : uint8_t +{ + kMode = 0, + kAmount = 1, +}; + +struct Type +{ +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::SetpointRaiseLower::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + + SetpointAdjustModeEnum mode = static_cast(0); + int8_t amount = static_cast(0); + + CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; + + using ResponseType = DataModel::NullObjectType; + + static constexpr bool MustUseTimedInvoke() { return false; } +}; + +struct DecodableType +{ +public: + static constexpr CommandId GetCommandId() { return Commands::SetpointRaiseLower::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + + SetpointAdjustModeEnum mode = static_cast(0); + int8_t amount = static_cast(0); + CHIP_ERROR Decode(TLV::TLVReader & reader); +}; +}; // namespace SetpointRaiseLower +namespace GetWeeklyScheduleResponse { +enum class Fields : uint8_t +{ + kNumberOfTransitionsForSequence = 0, + kDayOfWeekforSequence = 1, + kModeForSequence = 2, + kTransitions = 3, +}; + +struct Type +{ +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::GetWeeklyScheduleResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + + uint8_t numberOfTransitionsForSequence = static_cast(0); + chip::BitMask dayOfWeekforSequence = static_cast>(0); + chip::BitMask modeForSequence = static_cast>(0); + DataModel::List transitions; + + CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; + + using ResponseType = DataModel::NullObjectType; + + static constexpr bool MustUseTimedInvoke() { return false; } +}; + +struct DecodableType +{ +public: + static constexpr CommandId GetCommandId() { return Commands::GetWeeklyScheduleResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + + uint8_t numberOfTransitionsForSequence = static_cast(0); + chip::BitMask dayOfWeekforSequence = static_cast>(0); + chip::BitMask modeForSequence = static_cast>(0); + DataModel::DecodableList transitions; + CHIP_ERROR Decode(TLV::TLVReader & reader); +}; +}; // namespace GetWeeklyScheduleResponse +namespace SetWeeklySchedule { +enum class Fields : uint8_t +{ + kNumberOfTransitionsForSequence = 0, + kDayOfWeekforSequence = 1, + kModeForSequence = 2, + kTransitions = 3, +}; + +struct Type +{ +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::SetWeeklySchedule::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + + uint8_t numberOfTransitionsForSequence = static_cast(0); + chip::BitMask dayOfWeekforSequence = static_cast>(0); + chip::BitMask modeForSequence = static_cast>(0); + DataModel::List transitions; + + CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; + + using ResponseType = DataModel::NullObjectType; + + static constexpr bool MustUseTimedInvoke() { return false; } +}; + +struct DecodableType +{ +public: + static constexpr CommandId GetCommandId() { return Commands::SetWeeklySchedule::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + + uint8_t numberOfTransitionsForSequence = static_cast(0); + chip::BitMask dayOfWeekforSequence = static_cast>(0); + chip::BitMask modeForSequence = static_cast>(0); + DataModel::DecodableList transitions; + CHIP_ERROR Decode(TLV::TLVReader & reader); +}; +}; // namespace SetWeeklySchedule +namespace GetRelayStatusLogResponse { +enum class Fields : uint8_t +{ + kTimeOfDay = 0, + kRelayStatus = 1, + kLocalTemperature = 2, + kHumidityInPercentage = 3, + kSetPoint = 4, + kUnreadEntries = 5, +}; + +struct Type +{ +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::GetRelayStatusLogResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + + uint16_t timeOfDay = static_cast(0); + chip::BitMask relayStatus = static_cast>(0); + DataModel::Nullable localTemperature; + DataModel::Nullable humidityInPercentage; + int16_t setPoint = static_cast(0); + uint16_t unreadEntries = static_cast(0); + + CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; + + using ResponseType = DataModel::NullObjectType; + + static constexpr bool MustUseTimedInvoke() { return false; } +}; + +struct DecodableType +{ +public: + static constexpr CommandId GetCommandId() { return Commands::GetRelayStatusLogResponse::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + + uint16_t timeOfDay = static_cast(0); + chip::BitMask relayStatus = static_cast>(0); + DataModel::Nullable localTemperature; + DataModel::Nullable humidityInPercentage; + int16_t setPoint = static_cast(0); + uint16_t unreadEntries = static_cast(0); + CHIP_ERROR Decode(TLV::TLVReader & reader); +}; +}; // namespace GetRelayStatusLogResponse +namespace GetWeeklySchedule { +enum class Fields : uint8_t +{ + kDaysToReturn = 0, + kModeToReturn = 1, +}; + +struct Type +{ +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::GetWeeklySchedule::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + + chip::BitMask daysToReturn = static_cast>(0); + chip::BitMask modeToReturn = static_cast>(0); + + CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; + + using ResponseType = Clusters::Thermostat::Commands::GetWeeklyScheduleResponse::DecodableType; + + static constexpr bool MustUseTimedInvoke() { return false; } +}; + +struct DecodableType +{ +public: + static constexpr CommandId GetCommandId() { return Commands::GetWeeklySchedule::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + + chip::BitMask daysToReturn = static_cast>(0); + chip::BitMask modeToReturn = static_cast>(0); + CHIP_ERROR Decode(TLV::TLVReader & reader); +}; +}; // namespace GetWeeklySchedule +namespace ClearWeeklySchedule { +enum class Fields : uint8_t +{ +}; + +struct Type +{ +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::ClearWeeklySchedule::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + + CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; + + using ResponseType = DataModel::NullObjectType; + + static constexpr bool MustUseTimedInvoke() { return false; } +}; + +struct DecodableType +{ +public: + static constexpr CommandId GetCommandId() { return Commands::ClearWeeklySchedule::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + + CHIP_ERROR Decode(TLV::TLVReader & reader); +}; +}; // namespace ClearWeeklySchedule +namespace GetRelayStatusLog { +enum class Fields : uint8_t +{ +}; + +struct Type +{ +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::GetRelayStatusLog::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + + CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; + + using ResponseType = Clusters::Thermostat::Commands::GetRelayStatusLogResponse::DecodableType; + + static constexpr bool MustUseTimedInvoke() { return false; } +}; + +struct DecodableType +{ +public: + static constexpr CommandId GetCommandId() { return Commands::GetRelayStatusLog::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + + CHIP_ERROR Decode(TLV::TLVReader & reader); +}; +}; // namespace GetRelayStatusLog +namespace SetActiveScheduleRequest { +enum class Fields : uint8_t +{ + kScheduleHandle = 0, +}; + +struct Type +{ +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::SetActiveScheduleRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + + chip::ByteSpan scheduleHandle; + + CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; + + using ResponseType = DataModel::NullObjectType; + + static constexpr bool MustUseTimedInvoke() { return false; } +}; + +struct DecodableType +{ +public: + static constexpr CommandId GetCommandId() { return Commands::SetActiveScheduleRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + + chip::ByteSpan scheduleHandle; + CHIP_ERROR Decode(TLV::TLVReader & reader); +}; +}; // namespace SetActiveScheduleRequest +namespace SetActivePresetRequest { +enum class Fields : uint8_t +{ + kPresetHandle = 0, + kDelayMinutes = 1, +}; + +struct Type +{ +public: + // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand + static constexpr CommandId GetCommandId() { return Commands::SetActivePresetRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - static constexpr bool kIsFabricScoped = false; + chip::ByteSpan presetHandle; + Optional delayMinutes; CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; -}; - -using DecodableType = Type; - -} // namespace ThermostatScheduleTransition -} // namespace Structs - -namespace Commands { -// Forward-declarations so we can reference these later. - -namespace SetpointRaiseLower { -struct Type; -struct DecodableType; -} // namespace SetpointRaiseLower - -namespace GetWeeklyScheduleResponse { -struct Type; -struct DecodableType; -} // namespace GetWeeklyScheduleResponse -namespace SetWeeklySchedule { -struct Type; -struct DecodableType; -} // namespace SetWeeklySchedule - -namespace GetWeeklySchedule { -struct Type; -struct DecodableType; -} // namespace GetWeeklySchedule + using ResponseType = DataModel::NullObjectType; -namespace ClearWeeklySchedule { -struct Type; -struct DecodableType; -} // namespace ClearWeeklySchedule + static constexpr bool MustUseTimedInvoke() { return false; } +}; -} // namespace Commands +struct DecodableType +{ +public: + static constexpr CommandId GetCommandId() { return Commands::SetActivePresetRequest::Id; } + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } -namespace Commands { -namespace SetpointRaiseLower { + chip::ByteSpan presetHandle; + Optional delayMinutes; + CHIP_ERROR Decode(TLV::TLVReader & reader); +}; +}; // namespace SetActivePresetRequest +namespace StartPresetsSchedulesEditRequest { enum class Fields : uint8_t { - kMode = 0, - kAmount = 1, + kTimeoutSeconds = 0, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::SetpointRaiseLower::Id; } + static constexpr CommandId GetCommandId() { return Commands::StartPresetsSchedulesEditRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - SetpointAdjustMode mode = static_cast(0); - int8_t amount = static_cast(0); + uint16_t timeoutSeconds = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; @@ -24051,35 +24593,25 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::SetpointRaiseLower::Id; } + static constexpr CommandId GetCommandId() { return Commands::StartPresetsSchedulesEditRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - SetpointAdjustMode mode = static_cast(0); - int8_t amount = static_cast(0); + uint16_t timeoutSeconds = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace SetpointRaiseLower -namespace GetWeeklyScheduleResponse { +}; // namespace StartPresetsSchedulesEditRequest +namespace CancelPresetsSchedulesEditRequest { enum class Fields : uint8_t { - kNumberOfTransitionsForSequence = 0, - kDayOfWeekForSequence = 1, - kModeForSequence = 2, - kTransitions = 3, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetWeeklyScheduleResponse::Id; } + static constexpr CommandId GetCommandId() { return Commands::CancelPresetsSchedulesEditRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - uint8_t numberOfTransitionsForSequence = static_cast(0); - chip::BitMask dayOfWeekForSequence = static_cast>(0); - chip::BitMask modeForSequence = static_cast>(0); - DataModel::List transitions; - CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; using ResponseType = DataModel::NullObjectType; @@ -24090,37 +24622,24 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::GetWeeklyScheduleResponse::Id; } + static constexpr CommandId GetCommandId() { return Commands::CancelPresetsSchedulesEditRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - uint8_t numberOfTransitionsForSequence = static_cast(0); - chip::BitMask dayOfWeekForSequence = static_cast>(0); - chip::BitMask modeForSequence = static_cast>(0); - DataModel::DecodableList transitions; CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace GetWeeklyScheduleResponse -namespace SetWeeklySchedule { +}; // namespace CancelPresetsSchedulesEditRequest +namespace CommitPresetsSchedulesRequest { enum class Fields : uint8_t { - kNumberOfTransitionsForSequence = 0, - kDayOfWeekForSequence = 1, - kModeForSequence = 2, - kTransitions = 3, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::SetWeeklySchedule::Id; } + static constexpr CommandId GetCommandId() { return Commands::CommitPresetsSchedulesRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - uint8_t numberOfTransitionsForSequence = static_cast(0); - chip::BitMask dayOfWeekForSequence = static_cast>(0); - chip::BitMask modeForSequence = static_cast>(0); - DataModel::List transitions; - CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; using ResponseType = DataModel::NullObjectType; @@ -24131,36 +24650,27 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::SetWeeklySchedule::Id; } + static constexpr CommandId GetCommandId() { return Commands::CommitPresetsSchedulesRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - uint8_t numberOfTransitionsForSequence = static_cast(0); - chip::BitMask dayOfWeekForSequence = static_cast>(0); - chip::BitMask modeForSequence = static_cast>(0); - DataModel::DecodableList transitions; CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace SetWeeklySchedule -namespace GetWeeklySchedule { +}; // namespace CommitPresetsSchedulesRequest +namespace CancelSetActivePresetRequest { enum class Fields : uint8_t { - kDaysToReturn = 0, - kModeToReturn = 1, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::GetWeeklySchedule::Id; } + static constexpr CommandId GetCommandId() { return Commands::CancelSetActivePresetRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - chip::BitMask daysToReturn = static_cast>(0); - chip::BitMask modeToReturn = static_cast>(0); - CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; - using ResponseType = Clusters::Thermostat::Commands::GetWeeklyScheduleResponse::DecodableType; + using ResponseType = DataModel::NullObjectType; static constexpr bool MustUseTimedInvoke() { return false; } }; @@ -24168,26 +24678,28 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::GetWeeklySchedule::Id; } + static constexpr CommandId GetCommandId() { return Commands::CancelSetActivePresetRequest::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - chip::BitMask daysToReturn = static_cast>(0); - chip::BitMask modeToReturn = static_cast>(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace GetWeeklySchedule -namespace ClearWeeklySchedule { +}; // namespace CancelSetActivePresetRequest +namespace SetTemperatureSetpointHoldPolicy { enum class Fields : uint8_t { + kTemperatureSetpointHoldPolicy = 0, }; struct Type { public: // Use GetCommandId instead of commandId directly to avoid naming conflict with CommandIdentification in ExecutionOfACommand - static constexpr CommandId GetCommandId() { return Commands::ClearWeeklySchedule::Id; } + static constexpr CommandId GetCommandId() { return Commands::SetTemperatureSetpointHoldPolicy::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + chip::BitMask temperatureSetpointHoldPolicy = + static_cast>(0); + CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; using ResponseType = DataModel::NullObjectType; @@ -24198,12 +24710,14 @@ struct Type struct DecodableType { public: - static constexpr CommandId GetCommandId() { return Commands::ClearWeeklySchedule::Id; } + static constexpr CommandId GetCommandId() { return Commands::SetTemperatureSetpointHoldPolicy::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + chip::BitMask temperatureSetpointHoldPolicy = + static_cast>(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; -}; // namespace ClearWeeklySchedule +}; // namespace SetTemperatureSetpointHoldPolicy } // namespace Commands namespace Attributes { @@ -24316,18 +24830,6 @@ struct TypeInfo static constexpr bool MustUseTimedWrite() { return false; } }; } // namespace PIHeatingDemand -namespace HVACSystemTypeConfiguration { -struct TypeInfo -{ - using Type = uint8_t; - using DecodableType = uint8_t; - using DecodableArgType = uint8_t; - - static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::HVACSystemTypeConfiguration::Id; } - static constexpr bool MustUseTimedWrite() { return false; } -}; -} // namespace HVACSystemTypeConfiguration namespace LocalTemperatureCalibration { struct TypeInfo { @@ -24451,9 +24953,9 @@ struct TypeInfo namespace RemoteSensing { struct TypeInfo { - using Type = uint8_t; - using DecodableType = uint8_t; - using DecodableArgType = uint8_t; + using Type = chip::BitMask; + using DecodableType = chip::BitMask; + using DecodableArgType = chip::BitMask; static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } static constexpr AttributeId GetAttributeId() { return Attributes::RemoteSensing::Id; } @@ -24463,9 +24965,9 @@ struct TypeInfo namespace ControlSequenceOfOperation { struct TypeInfo { - using Type = chip::app::Clusters::Thermostat::ThermostatControlSequence; - using DecodableType = chip::app::Clusters::Thermostat::ThermostatControlSequence; - using DecodableArgType = chip::app::Clusters::Thermostat::ThermostatControlSequence; + using Type = chip::app::Clusters::Thermostat::ThermostatControlSequenceEnum; + using DecodableType = chip::app::Clusters::Thermostat::ThermostatControlSequenceEnum; + using DecodableArgType = chip::app::Clusters::Thermostat::ThermostatControlSequenceEnum; static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } static constexpr AttributeId GetAttributeId() { return Attributes::ControlSequenceOfOperation::Id; } @@ -24475,21 +24977,33 @@ struct TypeInfo namespace SystemMode { struct TypeInfo { - using Type = uint8_t; - using DecodableType = uint8_t; - using DecodableArgType = uint8_t; + using Type = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum; + using DecodableType = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum; + using DecodableArgType = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum; static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } static constexpr AttributeId GetAttributeId() { return Attributes::SystemMode::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; } // namespace SystemMode +namespace AlarmMask { +struct TypeInfo +{ + using Type = chip::BitMask; + using DecodableType = chip::BitMask; + using DecodableArgType = chip::BitMask; + + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::AlarmMask::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace AlarmMask namespace ThermostatRunningMode { struct TypeInfo { - using Type = uint8_t; - using DecodableType = uint8_t; - using DecodableArgType = uint8_t; + using Type = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum; + using DecodableType = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum; + using DecodableArgType = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum; static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } static constexpr AttributeId GetAttributeId() { return Attributes::ThermostatRunningMode::Id; } @@ -24499,9 +25013,9 @@ struct TypeInfo namespace StartOfWeek { struct TypeInfo { - using Type = uint8_t; - using DecodableType = uint8_t; - using DecodableArgType = uint8_t; + using Type = chip::app::Clusters::Thermostat::StartOfWeekEnum; + using DecodableType = chip::app::Clusters::Thermostat::StartOfWeekEnum; + using DecodableArgType = chip::app::Clusters::Thermostat::StartOfWeekEnum; static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } static constexpr AttributeId GetAttributeId() { return Attributes::StartOfWeek::Id; } @@ -24535,9 +25049,9 @@ struct TypeInfo namespace TemperatureSetpointHold { struct TypeInfo { - using Type = uint8_t; - using DecodableType = uint8_t; - using DecodableArgType = uint8_t; + using Type = chip::app::Clusters::Thermostat::TemperatureSetpointHoldEnum; + using DecodableType = chip::app::Clusters::Thermostat::TemperatureSetpointHoldEnum; + using DecodableArgType = chip::app::Clusters::Thermostat::TemperatureSetpointHoldEnum; static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } static constexpr AttributeId GetAttributeId() { return Attributes::TemperatureSetpointHold::Id; } @@ -24559,9 +25073,9 @@ struct TypeInfo namespace ThermostatProgrammingOperationMode { struct TypeInfo { - using Type = uint8_t; - using DecodableType = uint8_t; - using DecodableArgType = uint8_t; + using Type = chip::BitMask; + using DecodableType = chip::BitMask; + using DecodableArgType = chip::BitMask; static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } static constexpr AttributeId GetAttributeId() { return Attributes::ThermostatProgrammingOperationMode::Id; } @@ -24571,9 +25085,9 @@ struct TypeInfo namespace ThermostatRunningState { struct TypeInfo { - using Type = uint16_t; - using DecodableType = uint16_t; - using DecodableArgType = uint16_t; + using Type = chip::BitMask; + using DecodableType = chip::BitMask; + using DecodableArgType = chip::BitMask; static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } static constexpr AttributeId GetAttributeId() { return Attributes::ThermostatRunningState::Id; } @@ -24583,9 +25097,9 @@ struct TypeInfo namespace SetpointChangeSource { struct TypeInfo { - using Type = uint8_t; - using DecodableType = uint8_t; - using DecodableArgType = uint8_t; + using Type = chip::app::Clusters::Thermostat::SetpointChangeSourceEnum; + using DecodableType = chip::app::Clusters::Thermostat::SetpointChangeSourceEnum; + using DecodableArgType = chip::app::Clusters::Thermostat::SetpointChangeSourceEnum; static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } static constexpr AttributeId GetAttributeId() { return Attributes::SetpointChangeSource::Id; } @@ -24703,9 +25217,9 @@ struct TypeInfo namespace ACType { struct TypeInfo { - using Type = uint8_t; - using DecodableType = uint8_t; - using DecodableArgType = uint8_t; + using Type = chip::app::Clusters::Thermostat::ACTypeEnum; + using DecodableType = chip::app::Clusters::Thermostat::ACTypeEnum; + using DecodableArgType = chip::app::Clusters::Thermostat::ACTypeEnum; static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } static constexpr AttributeId GetAttributeId() { return Attributes::ACType::Id; } @@ -24727,9 +25241,9 @@ struct TypeInfo namespace ACRefrigerantType { struct TypeInfo { - using Type = uint8_t; - using DecodableType = uint8_t; - using DecodableArgType = uint8_t; + using Type = chip::app::Clusters::Thermostat::ACRefrigerantTypeEnum; + using DecodableType = chip::app::Clusters::Thermostat::ACRefrigerantTypeEnum; + using DecodableArgType = chip::app::Clusters::Thermostat::ACRefrigerantTypeEnum; static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } static constexpr AttributeId GetAttributeId() { return Attributes::ACRefrigerantType::Id; } @@ -24739,9 +25253,9 @@ struct TypeInfo namespace ACCompressorType { struct TypeInfo { - using Type = uint8_t; - using DecodableType = uint8_t; - using DecodableArgType = uint8_t; + using Type = chip::app::Clusters::Thermostat::ACCompressorTypeEnum; + using DecodableType = chip::app::Clusters::Thermostat::ACCompressorTypeEnum; + using DecodableArgType = chip::app::Clusters::Thermostat::ACCompressorTypeEnum; static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } static constexpr AttributeId GetAttributeId() { return Attributes::ACCompressorType::Id; } @@ -24751,9 +25265,9 @@ struct TypeInfo namespace ACErrorCode { struct TypeInfo { - using Type = uint32_t; - using DecodableType = uint32_t; - using DecodableArgType = uint32_t; + using Type = chip::BitMask; + using DecodableType = chip::BitMask; + using DecodableArgType = chip::BitMask; static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } static constexpr AttributeId GetAttributeId() { return Attributes::ACErrorCode::Id; } @@ -24763,9 +25277,9 @@ struct TypeInfo namespace ACLouverPosition { struct TypeInfo { - using Type = uint8_t; - using DecodableType = uint8_t; - using DecodableArgType = uint8_t; + using Type = chip::app::Clusters::Thermostat::ACLouverPositionEnum; + using DecodableType = chip::app::Clusters::Thermostat::ACLouverPositionEnum; + using DecodableArgType = chip::app::Clusters::Thermostat::ACLouverPositionEnum; static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } static constexpr AttributeId GetAttributeId() { return Attributes::ACLouverPosition::Id; } @@ -24784,7 +25298,47 @@ struct TypeInfo static constexpr bool MustUseTimedWrite() { return false; } }; } // namespace ACCoilTemperature -namespace ACCapacityformat { +namespace ACCapacityFormat { +struct TypeInfo +{ + using Type = chip::app::Clusters::Thermostat::ACCapacityFormatEnum; + using DecodableType = chip::app::Clusters::Thermostat::ACCapacityFormatEnum; + using DecodableArgType = chip::app::Clusters::Thermostat::ACCapacityFormatEnum; + + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ACCapacityFormat::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace ACCapacityFormat +namespace PresetTypes { +struct TypeInfo +{ + using Type = chip::app::DataModel::List; + using DecodableType = + chip::app::DataModel::DecodableList; + using DecodableArgType = + const chip::app::DataModel::DecodableList &; + + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::PresetTypes::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace PresetTypes +namespace ScheduleTypes { +struct TypeInfo +{ + using Type = chip::app::DataModel::List; + using DecodableType = + chip::app::DataModel::DecodableList; + using DecodableArgType = + const chip::app::DataModel::DecodableList &; + + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ScheduleTypes::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace ScheduleTypes +namespace NumberOfPresets { struct TypeInfo { using Type = uint8_t; @@ -24792,10 +25346,150 @@ struct TypeInfo using DecodableArgType = uint8_t; static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - static constexpr AttributeId GetAttributeId() { return Attributes::ACCapacityformat::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NumberOfPresets::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace NumberOfPresets +namespace NumberOfSchedules { +struct TypeInfo +{ + using Type = uint8_t; + using DecodableType = uint8_t; + using DecodableArgType = uint8_t; + + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NumberOfSchedules::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace NumberOfSchedules +namespace NumberOfScheduleTransitions { +struct TypeInfo +{ + using Type = uint8_t; + using DecodableType = uint8_t; + using DecodableArgType = uint8_t; + + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NumberOfScheduleTransitions::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace NumberOfScheduleTransitions +namespace NumberOfScheduleTransitionPerDay { +struct TypeInfo +{ + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; + + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::NumberOfScheduleTransitionPerDay::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace NumberOfScheduleTransitionPerDay +namespace ActivePresetHandle { +struct TypeInfo +{ + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; + + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ActivePresetHandle::Id; } + static constexpr bool MustUseTimedWrite() { return false; } + static constexpr size_t MaxLength() { return 16; } +}; +} // namespace ActivePresetHandle +namespace ActiveScheduleHandle { +struct TypeInfo +{ + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; + + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::ActiveScheduleHandle::Id; } + static constexpr bool MustUseTimedWrite() { return false; } + static constexpr size_t MaxLength() { return 16; } +}; +} // namespace ActiveScheduleHandle +namespace Presets { +struct TypeInfo +{ + using Type = chip::app::DataModel::List; + using DecodableType = + chip::app::DataModel::DecodableList; + using DecodableArgType = + const chip::app::DataModel::DecodableList &; + + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Presets::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace Presets +namespace Schedules { +struct TypeInfo +{ + using Type = chip::app::DataModel::List; + using DecodableType = + chip::app::DataModel::DecodableList; + using DecodableArgType = + const chip::app::DataModel::DecodableList &; + + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::Schedules::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace Schedules +namespace PresetsSchedulesEditable { +struct TypeInfo +{ + using Type = bool; + using DecodableType = bool; + using DecodableArgType = bool; + + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::PresetsSchedulesEditable::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace PresetsSchedulesEditable +namespace TemperatureSetpointHoldPolicy { +struct TypeInfo +{ + using Type = chip::BitMask; + using DecodableType = chip::BitMask; + using DecodableArgType = chip::BitMask; + + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::TemperatureSetpointHoldPolicy::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace TemperatureSetpointHoldPolicy +namespace SetpointHoldExpiryTimestamp { +struct TypeInfo +{ + using Type = chip::app::DataModel::Nullable; + using DecodableType = chip::app::DataModel::Nullable; + using DecodableArgType = const chip::app::DataModel::Nullable &; + + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::SetpointHoldExpiryTimestamp::Id; } + static constexpr bool MustUseTimedWrite() { return false; } +}; +} // namespace SetpointHoldExpiryTimestamp +namespace QueuedPreset { +struct TypeInfo +{ + using Type = chip::app::DataModel::Nullable; + using DecodableType = + chip::app::DataModel::Nullable; + using DecodableArgType = + const chip::app::DataModel::Nullable &; + + static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } + static constexpr AttributeId GetAttributeId() { return Attributes::QueuedPreset::Id; } static constexpr bool MustUseTimedWrite() { return false; } }; -} // namespace ACCapacityformat +} // namespace QueuedPreset namespace GeneratedCommandList { struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo { @@ -24850,7 +25544,6 @@ struct TypeInfo Attributes::AbsMaxCoolSetpointLimit::TypeInfo::DecodableType absMaxCoolSetpointLimit = static_cast(0); Attributes::PICoolingDemand::TypeInfo::DecodableType PICoolingDemand = static_cast(0); Attributes::PIHeatingDemand::TypeInfo::DecodableType PIHeatingDemand = static_cast(0); - Attributes::HVACSystemTypeConfiguration::TypeInfo::DecodableType HVACSystemTypeConfiguration = static_cast(0); Attributes::LocalTemperatureCalibration::TypeInfo::DecodableType localTemperatureCalibration = static_cast(0); Attributes::OccupiedCoolingSetpoint::TypeInfo::DecodableType occupiedCoolingSetpoint = static_cast(0); Attributes::OccupiedHeatingSetpoint::TypeInfo::DecodableType occupiedHeatingSetpoint = static_cast(0); @@ -24861,20 +25554,29 @@ struct TypeInfo Attributes::MinCoolSetpointLimit::TypeInfo::DecodableType minCoolSetpointLimit = static_cast(0); Attributes::MaxCoolSetpointLimit::TypeInfo::DecodableType maxCoolSetpointLimit = static_cast(0); Attributes::MinSetpointDeadBand::TypeInfo::DecodableType minSetpointDeadBand = static_cast(0); - Attributes::RemoteSensing::TypeInfo::DecodableType remoteSensing = static_cast(0); + Attributes::RemoteSensing::TypeInfo::DecodableType remoteSensing = + static_cast>(0); Attributes::ControlSequenceOfOperation::TypeInfo::DecodableType controlSequenceOfOperation = - static_cast(0); - Attributes::SystemMode::TypeInfo::DecodableType systemMode = static_cast(0); - Attributes::ThermostatRunningMode::TypeInfo::DecodableType thermostatRunningMode = static_cast(0); - Attributes::StartOfWeek::TypeInfo::DecodableType startOfWeek = static_cast(0); + static_cast(0); + Attributes::SystemMode::TypeInfo::DecodableType systemMode = + static_cast(0); + Attributes::AlarmMask::TypeInfo::DecodableType alarmMask = + static_cast>(0); + Attributes::ThermostatRunningMode::TypeInfo::DecodableType thermostatRunningMode = + static_cast(0); + Attributes::StartOfWeek::TypeInfo::DecodableType startOfWeek = + static_cast(0); Attributes::NumberOfWeeklyTransitions::TypeInfo::DecodableType numberOfWeeklyTransitions = static_cast(0); Attributes::NumberOfDailyTransitions::TypeInfo::DecodableType numberOfDailyTransitions = static_cast(0); - Attributes::TemperatureSetpointHold::TypeInfo::DecodableType temperatureSetpointHold = static_cast(0); + Attributes::TemperatureSetpointHold::TypeInfo::DecodableType temperatureSetpointHold = + static_cast(0); Attributes::TemperatureSetpointHoldDuration::TypeInfo::DecodableType temperatureSetpointHoldDuration; Attributes::ThermostatProgrammingOperationMode::TypeInfo::DecodableType thermostatProgrammingOperationMode = - static_cast(0); - Attributes::ThermostatRunningState::TypeInfo::DecodableType thermostatRunningState = static_cast(0); - Attributes::SetpointChangeSource::TypeInfo::DecodableType setpointChangeSource = static_cast(0); + static_cast>(0); + Attributes::ThermostatRunningState::TypeInfo::DecodableType thermostatRunningState = + static_cast>(0); + Attributes::SetpointChangeSource::TypeInfo::DecodableType setpointChangeSource = + static_cast(0); Attributes::SetpointChangeAmount::TypeInfo::DecodableType setpointChangeAmount; Attributes::SetpointChangeSourceTimestamp::TypeInfo::DecodableType setpointChangeSourceTimestamp = static_cast(0); Attributes::OccupiedSetback::TypeInfo::DecodableType occupiedSetback; @@ -24884,14 +25586,34 @@ struct TypeInfo Attributes::UnoccupiedSetbackMin::TypeInfo::DecodableType unoccupiedSetbackMin; Attributes::UnoccupiedSetbackMax::TypeInfo::DecodableType unoccupiedSetbackMax; Attributes::EmergencyHeatDelta::TypeInfo::DecodableType emergencyHeatDelta = static_cast(0); - Attributes::ACType::TypeInfo::DecodableType ACType = static_cast(0); - Attributes::ACCapacity::TypeInfo::DecodableType ACCapacity = static_cast(0); - Attributes::ACRefrigerantType::TypeInfo::DecodableType ACRefrigerantType = static_cast(0); - Attributes::ACCompressorType::TypeInfo::DecodableType ACCompressorType = static_cast(0); - Attributes::ACErrorCode::TypeInfo::DecodableType ACErrorCode = static_cast(0); - Attributes::ACLouverPosition::TypeInfo::DecodableType ACLouverPosition = static_cast(0); + Attributes::ACType::TypeInfo::DecodableType ACType = static_cast(0); + Attributes::ACCapacity::TypeInfo::DecodableType ACCapacity = static_cast(0); + Attributes::ACRefrigerantType::TypeInfo::DecodableType ACRefrigerantType = + static_cast(0); + Attributes::ACCompressorType::TypeInfo::DecodableType ACCompressorType = + static_cast(0); + Attributes::ACErrorCode::TypeInfo::DecodableType ACErrorCode = + static_cast>(0); + Attributes::ACLouverPosition::TypeInfo::DecodableType ACLouverPosition = + static_cast(0); Attributes::ACCoilTemperature::TypeInfo::DecodableType ACCoilTemperature; - Attributes::ACCapacityformat::TypeInfo::DecodableType ACCapacityformat = static_cast(0); + Attributes::ACCapacityFormat::TypeInfo::DecodableType ACCapacityFormat = + static_cast(0); + Attributes::PresetTypes::TypeInfo::DecodableType presetTypes; + Attributes::ScheduleTypes::TypeInfo::DecodableType scheduleTypes; + Attributes::NumberOfPresets::TypeInfo::DecodableType numberOfPresets = static_cast(0); + Attributes::NumberOfSchedules::TypeInfo::DecodableType numberOfSchedules = static_cast(0); + Attributes::NumberOfScheduleTransitions::TypeInfo::DecodableType numberOfScheduleTransitions = static_cast(0); + Attributes::NumberOfScheduleTransitionPerDay::TypeInfo::DecodableType numberOfScheduleTransitionPerDay; + Attributes::ActivePresetHandle::TypeInfo::DecodableType activePresetHandle; + Attributes::ActiveScheduleHandle::TypeInfo::DecodableType activeScheduleHandle; + Attributes::Presets::TypeInfo::DecodableType presets; + Attributes::Schedules::TypeInfo::DecodableType schedules; + Attributes::PresetsSchedulesEditable::TypeInfo::DecodableType presetsSchedulesEditable = static_cast(0); + Attributes::TemperatureSetpointHoldPolicy::TypeInfo::DecodableType temperatureSetpointHoldPolicy = + static_cast>(0); + Attributes::SetpointHoldExpiryTimestamp::TypeInfo::DecodableType setpointHoldExpiryTimestamp; + Attributes::QueuedPreset::TypeInfo::DecodableType queuedPreset; Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList; Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList; Attributes::EventList::TypeInfo::DecodableType eventList; diff --git a/zzz_generated/app-common/app-common/zap-generated/ids/Attributes.h b/zzz_generated/app-common/app-common/zap-generated/ids/Attributes.h index 2e82a7be07c1d4..2b1fcf49beebf3 100644 --- a/zzz_generated/app-common/app-common/zap-generated/ids/Attributes.h +++ b/zzz_generated/app-common/app-common/zap-generated/ids/Attributes.h @@ -4160,10 +4160,6 @@ namespace PIHeatingDemand { static constexpr AttributeId Id = 0x00000008; } // namespace PIHeatingDemand -namespace HVACSystemTypeConfiguration { -static constexpr AttributeId Id = 0x00000009; -} // namespace HVACSystemTypeConfiguration - namespace LocalTemperatureCalibration { static constexpr AttributeId Id = 0x00000010; } // namespace LocalTemperatureCalibration @@ -4216,6 +4212,10 @@ namespace SystemMode { static constexpr AttributeId Id = 0x0000001C; } // namespace SystemMode +namespace AlarmMask { +static constexpr AttributeId Id = 0x0000001D; +} // namespace AlarmMask + namespace ThermostatRunningMode { static constexpr AttributeId Id = 0x0000001E; } // namespace ThermostatRunningMode @@ -4316,9 +4316,65 @@ namespace ACCoilTemperature { static constexpr AttributeId Id = 0x00000046; } // namespace ACCoilTemperature -namespace ACCapacityformat { +namespace ACCapacityFormat { static constexpr AttributeId Id = 0x00000047; -} // namespace ACCapacityformat +} // namespace ACCapacityFormat + +namespace PresetTypes { +static constexpr AttributeId Id = 0x00000048; +} // namespace PresetTypes + +namespace ScheduleTypes { +static constexpr AttributeId Id = 0x00000049; +} // namespace ScheduleTypes + +namespace NumberOfPresets { +static constexpr AttributeId Id = 0x0000004A; +} // namespace NumberOfPresets + +namespace NumberOfSchedules { +static constexpr AttributeId Id = 0x0000004B; +} // namespace NumberOfSchedules + +namespace NumberOfScheduleTransitions { +static constexpr AttributeId Id = 0x0000004C; +} // namespace NumberOfScheduleTransitions + +namespace NumberOfScheduleTransitionPerDay { +static constexpr AttributeId Id = 0x0000004D; +} // namespace NumberOfScheduleTransitionPerDay + +namespace ActivePresetHandle { +static constexpr AttributeId Id = 0x0000004E; +} // namespace ActivePresetHandle + +namespace ActiveScheduleHandle { +static constexpr AttributeId Id = 0x0000004F; +} // namespace ActiveScheduleHandle + +namespace Presets { +static constexpr AttributeId Id = 0x00000050; +} // namespace Presets + +namespace Schedules { +static constexpr AttributeId Id = 0x00000051; +} // namespace Schedules + +namespace PresetsSchedulesEditable { +static constexpr AttributeId Id = 0x00000052; +} // namespace PresetsSchedulesEditable + +namespace TemperatureSetpointHoldPolicy { +static constexpr AttributeId Id = 0x00000053; +} // namespace TemperatureSetpointHoldPolicy + +namespace SetpointHoldExpiryTimestamp { +static constexpr AttributeId Id = 0x00000054; +} // namespace SetpointHoldExpiryTimestamp + +namespace QueuedPreset { +static constexpr AttributeId Id = 0x00000055; +} // namespace QueuedPreset namespace GeneratedCommandList { static constexpr AttributeId Id = Globals::Attributes::GeneratedCommandList::Id; diff --git a/zzz_generated/app-common/app-common/zap-generated/ids/Commands.h b/zzz_generated/app-common/app-common/zap-generated/ids/Commands.h index 8b18795939a9ea..b0ea9d9db4f863 100644 --- a/zzz_generated/app-common/app-common/zap-generated/ids/Commands.h +++ b/zzz_generated/app-common/app-common/zap-generated/ids/Commands.h @@ -1110,6 +1110,10 @@ namespace SetWeeklySchedule { static constexpr CommandId Id = 0x00000001; } // namespace SetWeeklySchedule +namespace GetRelayStatusLogResponse { +static constexpr CommandId Id = 0x00000001; +} // namespace GetRelayStatusLogResponse + namespace GetWeeklySchedule { static constexpr CommandId Id = 0x00000002; } // namespace GetWeeklySchedule @@ -1118,6 +1122,38 @@ namespace ClearWeeklySchedule { static constexpr CommandId Id = 0x00000003; } // namespace ClearWeeklySchedule +namespace GetRelayStatusLog { +static constexpr CommandId Id = 0x00000004; +} // namespace GetRelayStatusLog + +namespace SetActiveScheduleRequest { +static constexpr CommandId Id = 0x00000005; +} // namespace SetActiveScheduleRequest + +namespace SetActivePresetRequest { +static constexpr CommandId Id = 0x00000006; +} // namespace SetActivePresetRequest + +namespace StartPresetsSchedulesEditRequest { +static constexpr CommandId Id = 0x00000007; +} // namespace StartPresetsSchedulesEditRequest + +namespace CancelPresetsSchedulesEditRequest { +static constexpr CommandId Id = 0x00000008; +} // namespace CancelPresetsSchedulesEditRequest + +namespace CommitPresetsSchedulesRequest { +static constexpr CommandId Id = 0x00000009; +} // namespace CommitPresetsSchedulesRequest + +namespace CancelSetActivePresetRequest { +static constexpr CommandId Id = 0x0000000A; +} // namespace CancelSetActivePresetRequest + +namespace SetTemperatureSetpointHoldPolicy { +static constexpr CommandId Id = 0x0000000B; +} // namespace SetTemperatureSetpointHoldPolicy + } // namespace Commands } // namespace Thermostat diff --git a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h index 3dbe37c3440d8d..2b895d88c24be0 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h @@ -7926,6 +7926,14 @@ class BarrierControlBarrierControlStop : public ClusterCommand | * SetWeeklySchedule | 0x01 | | * GetWeeklySchedule | 0x02 | | * ClearWeeklySchedule | 0x03 | +| * GetRelayStatusLog | 0x04 | +| * SetActiveScheduleRequest | 0x05 | +| * SetActivePresetRequest | 0x06 | +| * StartPresetsSchedulesEditRequest | 0x07 | +| * CancelPresetsSchedulesEditRequest | 0x08 | +| * CommitPresetsSchedulesRequest | 0x09 | +| * CancelSetActivePresetRequest | 0x0A | +| * SetTemperatureSetpointHoldPolicy | 0x0B | |------------------------------------------------------------------------------| | Attributes: | | | * LocalTemperature | 0x0000 | @@ -7937,7 +7945,6 @@ class BarrierControlBarrierControlStop : public ClusterCommand | * AbsMaxCoolSetpointLimit | 0x0006 | | * PICoolingDemand | 0x0007 | | * PIHeatingDemand | 0x0008 | -| * HVACSystemTypeConfiguration | 0x0009 | | * LocalTemperatureCalibration | 0x0010 | | * OccupiedCoolingSetpoint | 0x0011 | | * OccupiedHeatingSetpoint | 0x0012 | @@ -7951,6 +7958,7 @@ class BarrierControlBarrierControlStop : public ClusterCommand | * RemoteSensing | 0x001A | | * ControlSequenceOfOperation | 0x001B | | * SystemMode | 0x001C | +| * AlarmMask | 0x001D | | * ThermostatRunningMode | 0x001E | | * StartOfWeek | 0x0020 | | * NumberOfWeeklyTransitions | 0x0021 | @@ -7976,7 +7984,21 @@ class BarrierControlBarrierControlStop : public ClusterCommand | * ACErrorCode | 0x0044 | | * ACLouverPosition | 0x0045 | | * ACCoilTemperature | 0x0046 | -| * ACCapacityformat | 0x0047 | +| * ACCapacityFormat | 0x0047 | +| * PresetTypes | 0x0048 | +| * ScheduleTypes | 0x0049 | +| * NumberOfPresets | 0x004A | +| * NumberOfSchedules | 0x004B | +| * NumberOfScheduleTransitions | 0x004C | +| * NumberOfScheduleTransitionPerDay | 0x004D | +| * ActivePresetHandle | 0x004E | +| * ActiveScheduleHandle | 0x004F | +| * Presets | 0x0050 | +| * Schedules | 0x0051 | +| * PresetsSchedulesEditable | 0x0052 | +| * TemperatureSetpointHoldPolicy | 0x0053 | +| * SetpointHoldExpiryTimestamp | 0x0054 | +| * QueuedPreset | 0x0055 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | @@ -8036,7 +8058,7 @@ class ThermostatSetWeeklySchedule : public ClusterCommand ClusterCommand("set-weekly-schedule", credsIssuerConfig), mComplex_Transitions(&mRequest.transitions) { AddArgument("NumberOfTransitionsForSequence", 0, UINT8_MAX, &mRequest.numberOfTransitionsForSequence); - AddArgument("DayOfWeekForSequence", 0, UINT8_MAX, &mRequest.dayOfWeekForSequence); + AddArgument("DayOfWeekforSequence", 0, UINT8_MAX, &mRequest.dayOfWeekforSequence); AddArgument("ModeForSequence", 0, UINT8_MAX, &mRequest.modeForSequence); AddArgument("Transitions", &mComplex_Transitions); ClusterCommand::AddArguments(); @@ -8066,7 +8088,7 @@ class ThermostatSetWeeklySchedule : public ClusterCommand private: chip::app::Clusters::Thermostat::Commands::SetWeeklySchedule::Type mRequest; TypedComplexArgument< - chip::app::DataModel::List> + chip::app::DataModel::List> mComplex_Transitions; }; @@ -8146,6 +8168,307 @@ class ThermostatClearWeeklySchedule : public ClusterCommand chip::app::Clusters::Thermostat::Commands::ClearWeeklySchedule::Type mRequest; }; +/* + * Command GetRelayStatusLog + */ +class ThermostatGetRelayStatusLog : public ClusterCommand +{ +public: + ThermostatGetRelayStatusLog(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("get-relay-status-log", credsIssuerConfig) + { + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::GetRelayStatusLog::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, + commandId, endpointIds.at(0)); + return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); + } + + CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::GetRelayStatusLog::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, + groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); + } + +private: + chip::app::Clusters::Thermostat::Commands::GetRelayStatusLog::Type mRequest; +}; + +/* + * Command SetActiveScheduleRequest + */ +class ThermostatSetActiveScheduleRequest : public ClusterCommand +{ +public: + ThermostatSetActiveScheduleRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("set-active-schedule-request", credsIssuerConfig) + { + AddArgument("ScheduleHandle", &mRequest.scheduleHandle); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::SetActiveScheduleRequest::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, + commandId, endpointIds.at(0)); + return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); + } + + CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::SetActiveScheduleRequest::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, + groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); + } + +private: + chip::app::Clusters::Thermostat::Commands::SetActiveScheduleRequest::Type mRequest; +}; + +/* + * Command SetActivePresetRequest + */ +class ThermostatSetActivePresetRequest : public ClusterCommand +{ +public: + ThermostatSetActivePresetRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("set-active-preset-request", credsIssuerConfig) + { + AddArgument("PresetHandle", &mRequest.presetHandle); + AddArgument("DelayMinutes", 0, UINT16_MAX, &mRequest.delayMinutes); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::SetActivePresetRequest::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, + commandId, endpointIds.at(0)); + return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); + } + + CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::SetActivePresetRequest::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, + groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); + } + +private: + chip::app::Clusters::Thermostat::Commands::SetActivePresetRequest::Type mRequest; +}; + +/* + * Command StartPresetsSchedulesEditRequest + */ +class ThermostatStartPresetsSchedulesEditRequest : public ClusterCommand +{ +public: + ThermostatStartPresetsSchedulesEditRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("start-presets-schedules-edit-request", credsIssuerConfig) + { + AddArgument("TimeoutSeconds", 0, UINT16_MAX, &mRequest.timeoutSeconds); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::StartPresetsSchedulesEditRequest::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, + commandId, endpointIds.at(0)); + return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); + } + + CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::StartPresetsSchedulesEditRequest::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, + groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); + } + +private: + chip::app::Clusters::Thermostat::Commands::StartPresetsSchedulesEditRequest::Type mRequest; +}; + +/* + * Command CancelPresetsSchedulesEditRequest + */ +class ThermostatCancelPresetsSchedulesEditRequest : public ClusterCommand +{ +public: + ThermostatCancelPresetsSchedulesEditRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("cancel-presets-schedules-edit-request", credsIssuerConfig) + { + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::CancelPresetsSchedulesEditRequest::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, + commandId, endpointIds.at(0)); + return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); + } + + CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::CancelPresetsSchedulesEditRequest::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, + groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); + } + +private: + chip::app::Clusters::Thermostat::Commands::CancelPresetsSchedulesEditRequest::Type mRequest; +}; + +/* + * Command CommitPresetsSchedulesRequest + */ +class ThermostatCommitPresetsSchedulesRequest : public ClusterCommand +{ +public: + ThermostatCommitPresetsSchedulesRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("commit-presets-schedules-request", credsIssuerConfig) + { + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::CommitPresetsSchedulesRequest::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, + commandId, endpointIds.at(0)); + return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); + } + + CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::CommitPresetsSchedulesRequest::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, + groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); + } + +private: + chip::app::Clusters::Thermostat::Commands::CommitPresetsSchedulesRequest::Type mRequest; +}; + +/* + * Command CancelSetActivePresetRequest + */ +class ThermostatCancelSetActivePresetRequest : public ClusterCommand +{ +public: + ThermostatCancelSetActivePresetRequest(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("cancel-set-active-preset-request", credsIssuerConfig) + { + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::CancelSetActivePresetRequest::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, + commandId, endpointIds.at(0)); + return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); + } + + CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::CancelSetActivePresetRequest::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, + groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); + } + +private: + chip::app::Clusters::Thermostat::Commands::CancelSetActivePresetRequest::Type mRequest; +}; + +/* + * Command SetTemperatureSetpointHoldPolicy + */ +class ThermostatSetTemperatureSetpointHoldPolicy : public ClusterCommand +{ +public: + ThermostatSetTemperatureSetpointHoldPolicy(CredentialIssuerCommands * credsIssuerConfig) : + ClusterCommand("set-temperature-setpoint-hold-policy", credsIssuerConfig) + { + AddArgument("TemperatureSetpointHoldPolicy", 0, UINT8_MAX, &mRequest.temperatureSetpointHoldPolicy); + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(chip::DeviceProxy * device, std::vector endpointIds) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::SetTemperatureSetpointHoldPolicy::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, + commandId, endpointIds.at(0)); + return ClusterCommand::SendCommand(device, endpointIds.at(0), clusterId, commandId, mRequest); + } + + CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::SetTemperatureSetpointHoldPolicy::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on Group %u", clusterId, commandId, + groupId); + + return ClusterCommand::SendGroupCommand(groupId, fabricIndex, clusterId, commandId, mRequest); + } + +private: + chip::app::Clusters::Thermostat::Commands::SetTemperatureSetpointHoldPolicy::Type mRequest; +}; + /*----------------------------------------------------------------------------*\ | Cluster FanControl | 0x0202 | |------------------------------------------------------------------------------| @@ -18549,11 +18872,19 @@ void registerClusterThermostat(Commands & commands, CredentialIssuerCommands * c // // Commands // - make_unique(Id, credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // - make_unique(credsIssuerConfig), // + make_unique(Id, credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // + make_unique(credsIssuerConfig), // // // Attributes // @@ -18571,8 +18902,6 @@ void registerClusterThermostat(Commands & commands, CredentialIssuerCommands * c credsIssuerConfig), // make_unique(Id, "picooling-demand", Attributes::PICoolingDemand::Id, credsIssuerConfig), // make_unique(Id, "piheating-demand", Attributes::PIHeatingDemand::Id, credsIssuerConfig), // - make_unique(Id, "hvacsystem-type-configuration", Attributes::HVACSystemTypeConfiguration::Id, - credsIssuerConfig), // make_unique(Id, "local-temperature-calibration", Attributes::LocalTemperatureCalibration::Id, credsIssuerConfig), // make_unique(Id, "occupied-cooling-setpoint", Attributes::OccupiedCoolingSetpoint::Id, credsIssuerConfig), // @@ -18590,6 +18919,7 @@ void registerClusterThermostat(Commands & commands, CredentialIssuerCommands * c make_unique(Id, "control-sequence-of-operation", Attributes::ControlSequenceOfOperation::Id, credsIssuerConfig), // make_unique(Id, "system-mode", Attributes::SystemMode::Id, credsIssuerConfig), // + make_unique(Id, "alarm-mask", Attributes::AlarmMask::Id, credsIssuerConfig), // make_unique(Id, "thermostat-running-mode", Attributes::ThermostatRunningMode::Id, credsIssuerConfig), // make_unique(Id, "start-of-week", Attributes::StartOfWeek::Id, credsIssuerConfig), // make_unique(Id, "number-of-weekly-transitions", Attributes::NumberOfWeeklyTransitions::Id, @@ -18620,7 +18950,26 @@ void registerClusterThermostat(Commands & commands, CredentialIssuerCommands * c make_unique(Id, "acerror-code", Attributes::ACErrorCode::Id, credsIssuerConfig), // make_unique(Id, "aclouver-position", Attributes::ACLouverPosition::Id, credsIssuerConfig), // make_unique(Id, "accoil-temperature", Attributes::ACCoilTemperature::Id, credsIssuerConfig), // - make_unique(Id, "accapacityformat", Attributes::ACCapacityformat::Id, credsIssuerConfig), // + make_unique(Id, "accapacity-format", Attributes::ACCapacityFormat::Id, credsIssuerConfig), // + make_unique(Id, "preset-types", Attributes::PresetTypes::Id, credsIssuerConfig), // + make_unique(Id, "schedule-types", Attributes::ScheduleTypes::Id, credsIssuerConfig), // + make_unique(Id, "number-of-presets", Attributes::NumberOfPresets::Id, credsIssuerConfig), // + make_unique(Id, "number-of-schedules", Attributes::NumberOfSchedules::Id, credsIssuerConfig), // + make_unique(Id, "number-of-schedule-transitions", Attributes::NumberOfScheduleTransitions::Id, + credsIssuerConfig), // + make_unique(Id, "number-of-schedule-transition-per-day", Attributes::NumberOfScheduleTransitionPerDay::Id, + credsIssuerConfig), // + make_unique(Id, "active-preset-handle", Attributes::ActivePresetHandle::Id, credsIssuerConfig), // + make_unique(Id, "active-schedule-handle", Attributes::ActiveScheduleHandle::Id, credsIssuerConfig), // + make_unique(Id, "presets", Attributes::Presets::Id, credsIssuerConfig), // + make_unique(Id, "schedules", Attributes::Schedules::Id, credsIssuerConfig), // + make_unique(Id, "presets-schedules-editable", Attributes::PresetsSchedulesEditable::Id, + credsIssuerConfig), // + make_unique(Id, "temperature-setpoint-hold-policy", Attributes::TemperatureSetpointHoldPolicy::Id, + credsIssuerConfig), // + make_unique(Id, "setpoint-hold-expiry-timestamp", Attributes::SetpointHoldExpiryTimestamp::Id, + credsIssuerConfig), // + make_unique(Id, "queued-preset", Attributes::QueuedPreset::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // @@ -18652,9 +19001,6 @@ void registerClusterThermostat(Commands & commands, CredentialIssuerCommands * c WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "piheating-demand", 0, UINT8_MAX, Attributes::PIHeatingDemand::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // - make_unique>(Id, "hvacsystem-type-configuration", 0, UINT8_MAX, - Attributes::HVACSystemTypeConfiguration::Id, WriteCommandType::kWrite, - credsIssuerConfig), // make_unique>(Id, "local-temperature-calibration", INT8_MIN, INT8_MAX, Attributes::LocalTemperatureCalibration::Id, WriteCommandType::kWrite, credsIssuerConfig), // @@ -18680,35 +19026,41 @@ void registerClusterThermostat(Commands & commands, CredentialIssuerCommands * c Attributes::MaxCoolSetpointLimit::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "min-setpoint-dead-band", INT8_MIN, INT8_MAX, Attributes::MinSetpointDeadBand::Id, WriteCommandType::kWrite, credsIssuerConfig), // - make_unique>(Id, "remote-sensing", 0, UINT8_MAX, Attributes::RemoteSensing::Id, - WriteCommandType::kWrite, credsIssuerConfig), // - make_unique>( + make_unique>>( + Id, "remote-sensing", 0, UINT8_MAX, Attributes::RemoteSensing::Id, WriteCommandType::kWrite, credsIssuerConfig), // + make_unique>( Id, "control-sequence-of-operation", 0, UINT8_MAX, Attributes::ControlSequenceOfOperation::Id, WriteCommandType::kWrite, credsIssuerConfig), // - make_unique>(Id, "system-mode", 0, UINT8_MAX, Attributes::SystemMode::Id, WriteCommandType::kWrite, - credsIssuerConfig), // - make_unique>(Id, "thermostat-running-mode", 0, UINT8_MAX, Attributes::ThermostatRunningMode::Id, - WriteCommandType::kForceWrite, credsIssuerConfig), // - make_unique>(Id, "start-of-week", 0, UINT8_MAX, Attributes::StartOfWeek::Id, - WriteCommandType::kForceWrite, credsIssuerConfig), // + make_unique>( + Id, "system-mode", 0, UINT8_MAX, Attributes::SystemMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // + make_unique>>( + Id, "alarm-mask", 0, UINT8_MAX, Attributes::AlarmMask::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // + make_unique>( + Id, "thermostat-running-mode", 0, UINT8_MAX, Attributes::ThermostatRunningMode::Id, WriteCommandType::kForceWrite, + credsIssuerConfig), // + make_unique>( + Id, "start-of-week", 0, UINT8_MAX, Attributes::StartOfWeek::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "number-of-weekly-transitions", 0, UINT8_MAX, Attributes::NumberOfWeeklyTransitions::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "number-of-daily-transitions", 0, UINT8_MAX, Attributes::NumberOfDailyTransitions::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // - make_unique>(Id, "temperature-setpoint-hold", 0, UINT8_MAX, Attributes::TemperatureSetpointHold::Id, - WriteCommandType::kWrite, credsIssuerConfig), // + make_unique>( + Id, "temperature-setpoint-hold", 0, UINT8_MAX, Attributes::TemperatureSetpointHold::Id, WriteCommandType::kWrite, + credsIssuerConfig), // make_unique>>( Id, "temperature-setpoint-hold-duration", 0, UINT16_MAX, Attributes::TemperatureSetpointHoldDuration::Id, WriteCommandType::kWrite, credsIssuerConfig), // - make_unique>(Id, "thermostat-programming-operation-mode", 0, UINT8_MAX, - Attributes::ThermostatProgrammingOperationMode::Id, WriteCommandType::kWrite, - credsIssuerConfig), // - make_unique>(Id, "thermostat-running-state", 0, UINT16_MAX, Attributes::ThermostatRunningState::Id, - WriteCommandType::kForceWrite, credsIssuerConfig), // - make_unique>(Id, "setpoint-change-source", 0, UINT8_MAX, Attributes::SetpointChangeSource::Id, - WriteCommandType::kForceWrite, credsIssuerConfig), // + make_unique>>( + Id, "thermostat-programming-operation-mode", 0, UINT8_MAX, Attributes::ThermostatProgrammingOperationMode::Id, + WriteCommandType::kWrite, credsIssuerConfig), // + make_unique>>( + Id, "thermostat-running-state", 0, UINT16_MAX, Attributes::ThermostatRunningState::Id, WriteCommandType::kForceWrite, + credsIssuerConfig), // + make_unique>( + Id, "setpoint-change-source", 0, UINT8_MAX, Attributes::SetpointChangeSource::Id, WriteCommandType::kForceWrite, + credsIssuerConfig), // make_unique>>(Id, "setpoint-change-amount", INT16_MIN, INT16_MAX, Attributes::SetpointChangeAmount::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // @@ -18734,23 +19086,65 @@ void registerClusterThermostat(Commands & commands, CredentialIssuerCommands * c WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>(Id, "emergency-heat-delta", 0, UINT8_MAX, Attributes::EmergencyHeatDelta::Id, WriteCommandType::kWrite, credsIssuerConfig), // - make_unique>(Id, "actype", 0, UINT8_MAX, Attributes::ACType::Id, WriteCommandType::kWrite, - credsIssuerConfig), // + make_unique>(Id, "actype", 0, UINT8_MAX, Attributes::ACType::Id, + WriteCommandType::kWrite, credsIssuerConfig), // make_unique>(Id, "accapacity", 0, UINT16_MAX, Attributes::ACCapacity::Id, WriteCommandType::kWrite, credsIssuerConfig), // - make_unique>(Id, "acrefrigerant-type", 0, UINT8_MAX, Attributes::ACRefrigerantType::Id, - WriteCommandType::kWrite, credsIssuerConfig), // - make_unique>(Id, "accompressor-type", 0, UINT8_MAX, Attributes::ACCompressorType::Id, - WriteCommandType::kWrite, credsIssuerConfig), // - make_unique>(Id, "acerror-code", 0, UINT32_MAX, Attributes::ACErrorCode::Id, - WriteCommandType::kWrite, credsIssuerConfig), // - make_unique>(Id, "aclouver-position", 0, UINT8_MAX, Attributes::ACLouverPosition::Id, - WriteCommandType::kWrite, credsIssuerConfig), // + make_unique>( + Id, "acrefrigerant-type", 0, UINT8_MAX, Attributes::ACRefrigerantType::Id, WriteCommandType::kWrite, + credsIssuerConfig), // + make_unique>( + Id, "accompressor-type", 0, UINT8_MAX, Attributes::ACCompressorType::Id, WriteCommandType::kWrite, + credsIssuerConfig), // + make_unique>>( + Id, "acerror-code", 0, UINT32_MAX, Attributes::ACErrorCode::Id, WriteCommandType::kWrite, credsIssuerConfig), // + make_unique>( + Id, "aclouver-position", 0, UINT8_MAX, Attributes::ACLouverPosition::Id, WriteCommandType::kWrite, + credsIssuerConfig), // make_unique>>(Id, "accoil-temperature", INT16_MIN, INT16_MAX, Attributes::ACCoilTemperature::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // - make_unique>(Id, "accapacityformat", 0, UINT8_MAX, Attributes::ACCapacityformat::Id, - WriteCommandType::kWrite, credsIssuerConfig), // + make_unique>( + Id, "accapacity-format", 0, UINT8_MAX, Attributes::ACCapacityFormat::Id, WriteCommandType::kWrite, + credsIssuerConfig), // + make_unique>>( + Id, "preset-types", Attributes::PresetTypes::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // + make_unique>>( + Id, "schedule-types", Attributes::ScheduleTypes::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // + make_unique>(Id, "number-of-presets", 0, UINT8_MAX, Attributes::NumberOfPresets::Id, + WriteCommandType::kForceWrite, credsIssuerConfig), // + make_unique>(Id, "number-of-schedules", 0, UINT8_MAX, Attributes::NumberOfSchedules::Id, + WriteCommandType::kForceWrite, credsIssuerConfig), // + make_unique>(Id, "number-of-schedule-transitions", 0, UINT8_MAX, + Attributes::NumberOfScheduleTransitions::Id, WriteCommandType::kForceWrite, + credsIssuerConfig), // + make_unique>>( + Id, "number-of-schedule-transition-per-day", 0, UINT8_MAX, Attributes::NumberOfScheduleTransitionPerDay::Id, + WriteCommandType::kForceWrite, credsIssuerConfig), // + make_unique>>( + Id, "active-preset-handle", Attributes::ActivePresetHandle::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // + make_unique>>( + Id, "active-schedule-handle", Attributes::ActiveScheduleHandle::Id, WriteCommandType::kForceWrite, + credsIssuerConfig), // + make_unique>>( + Id, "presets", Attributes::Presets::Id, WriteCommandType::kWrite, credsIssuerConfig), // + make_unique>>( + Id, "schedules", Attributes::Schedules::Id, WriteCommandType::kWrite, credsIssuerConfig), // + make_unique>(Id, "presets-schedules-editable", 0, 1, Attributes::PresetsSchedulesEditable::Id, + WriteCommandType::kForceWrite, credsIssuerConfig), // + make_unique>>( + Id, "temperature-setpoint-hold-policy", 0, UINT8_MAX, Attributes::TemperatureSetpointHoldPolicy::Id, + WriteCommandType::kForceWrite, credsIssuerConfig), // + make_unique>>(Id, "setpoint-hold-expiry-timestamp", 0, UINT32_MAX, + Attributes::SetpointHoldExpiryTimestamp::Id, + WriteCommandType::kForceWrite, credsIssuerConfig), // + make_unique>>( + Id, "queued-preset", Attributes::QueuedPreset::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // make_unique>>( Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // @@ -18778,8 +19172,6 @@ void registerClusterThermostat(Commands & commands, CredentialIssuerCommands * c credsIssuerConfig), // make_unique(Id, "picooling-demand", Attributes::PICoolingDemand::Id, credsIssuerConfig), // make_unique(Id, "piheating-demand", Attributes::PIHeatingDemand::Id, credsIssuerConfig), // - make_unique(Id, "hvacsystem-type-configuration", Attributes::HVACSystemTypeConfiguration::Id, - credsIssuerConfig), // make_unique(Id, "local-temperature-calibration", Attributes::LocalTemperatureCalibration::Id, credsIssuerConfig), // make_unique(Id, "occupied-cooling-setpoint", Attributes::OccupiedCoolingSetpoint::Id, @@ -18799,6 +19191,7 @@ void registerClusterThermostat(Commands & commands, CredentialIssuerCommands * c make_unique(Id, "control-sequence-of-operation", Attributes::ControlSequenceOfOperation::Id, credsIssuerConfig), // make_unique(Id, "system-mode", Attributes::SystemMode::Id, credsIssuerConfig), // + make_unique(Id, "alarm-mask", Attributes::AlarmMask::Id, credsIssuerConfig), // make_unique(Id, "thermostat-running-mode", Attributes::ThermostatRunningMode::Id, credsIssuerConfig), // make_unique(Id, "start-of-week", Attributes::StartOfWeek::Id, credsIssuerConfig), // make_unique(Id, "number-of-weekly-transitions", Attributes::NumberOfWeeklyTransitions::Id, @@ -18831,7 +19224,26 @@ void registerClusterThermostat(Commands & commands, CredentialIssuerCommands * c make_unique(Id, "acerror-code", Attributes::ACErrorCode::Id, credsIssuerConfig), // make_unique(Id, "aclouver-position", Attributes::ACLouverPosition::Id, credsIssuerConfig), // make_unique(Id, "accoil-temperature", Attributes::ACCoilTemperature::Id, credsIssuerConfig), // - make_unique(Id, "accapacityformat", Attributes::ACCapacityformat::Id, credsIssuerConfig), // + make_unique(Id, "accapacity-format", Attributes::ACCapacityFormat::Id, credsIssuerConfig), // + make_unique(Id, "preset-types", Attributes::PresetTypes::Id, credsIssuerConfig), // + make_unique(Id, "schedule-types", Attributes::ScheduleTypes::Id, credsIssuerConfig), // + make_unique(Id, "number-of-presets", Attributes::NumberOfPresets::Id, credsIssuerConfig), // + make_unique(Id, "number-of-schedules", Attributes::NumberOfSchedules::Id, credsIssuerConfig), // + make_unique(Id, "number-of-schedule-transitions", Attributes::NumberOfScheduleTransitions::Id, + credsIssuerConfig), // + make_unique(Id, "number-of-schedule-transition-per-day", + Attributes::NumberOfScheduleTransitionPerDay::Id, credsIssuerConfig), // + make_unique(Id, "active-preset-handle", Attributes::ActivePresetHandle::Id, credsIssuerConfig), // + make_unique(Id, "active-schedule-handle", Attributes::ActiveScheduleHandle::Id, credsIssuerConfig), // + make_unique(Id, "presets", Attributes::Presets::Id, credsIssuerConfig), // + make_unique(Id, "schedules", Attributes::Schedules::Id, credsIssuerConfig), // + make_unique(Id, "presets-schedules-editable", Attributes::PresetsSchedulesEditable::Id, + credsIssuerConfig), // + make_unique(Id, "temperature-setpoint-hold-policy", Attributes::TemperatureSetpointHoldPolicy::Id, + credsIssuerConfig), // + make_unique(Id, "setpoint-hold-expiry-timestamp", Attributes::SetpointHoldExpiryTimestamp::Id, + credsIssuerConfig), // + make_unique(Id, "queued-preset", Attributes::QueuedPreset::Id, credsIssuerConfig), // make_unique(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), // make_unique(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), // make_unique(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), // diff --git a/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.cpp b/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.cpp index b99220cfda2c75..d5381f1ada6a9b 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.cpp +++ b/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.cpp @@ -2625,7 +2625,7 @@ void ComplexArgumentParser::Finalize(chip::app::Clusters::DoorLock::Structs::Cre } CHIP_ERROR ComplexArgumentParser::Setup(const char * label, - chip::app::Clusters::Thermostat::Structs::ThermostatScheduleTransition::Type & request, + chip::app::Clusters::Thermostat::Structs::ScheduleTransitionStruct::Type & request, Json::Value & value) { VerifyOrReturnError(value.isObject(), CHIP_ERROR_INVALID_ARGUMENT); @@ -2633,11 +2633,311 @@ CHIP_ERROR ComplexArgumentParser::Setup(const char * label, // Copy to track which members we already processed. Json::Value valueCopy(value); - ReturnErrorOnFailure(ComplexArgumentParser::EnsureMemberExist("ThermostatScheduleTransition.transitionTime", "transitionTime", + ReturnErrorOnFailure( + ComplexArgumentParser::EnsureMemberExist("ScheduleTransitionStruct.dayOfWeek", "dayOfWeek", value.isMember("dayOfWeek"))); + ReturnErrorOnFailure(ComplexArgumentParser::EnsureMemberExist("ScheduleTransitionStruct.transitionTime", "transitionTime", value.isMember("transitionTime"))); - ReturnErrorOnFailure(ComplexArgumentParser::EnsureMemberExist("ThermostatScheduleTransition.heatSetpoint", "heatSetpoint", + + char labelWithMember[kMaxLabelLength]; + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "dayOfWeek"); + ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.dayOfWeek, value["dayOfWeek"])); + valueCopy.removeMember("dayOfWeek"); + + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "transitionTime"); + ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.transitionTime, value["transitionTime"])); + valueCopy.removeMember("transitionTime"); + + if (value.isMember("presetHandle")) + { + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "presetHandle"); + ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.presetHandle, value["presetHandle"])); + } + valueCopy.removeMember("presetHandle"); + + if (value.isMember("systemMode")) + { + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "systemMode"); + ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.systemMode, value["systemMode"])); + } + valueCopy.removeMember("systemMode"); + + if (value.isMember("coolingSetpoint")) + { + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "coolingSetpoint"); + ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.coolingSetpoint, value["coolingSetpoint"])); + } + valueCopy.removeMember("coolingSetpoint"); + + if (value.isMember("heatingSetpoint")) + { + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "heatingSetpoint"); + ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.heatingSetpoint, value["heatingSetpoint"])); + } + valueCopy.removeMember("heatingSetpoint"); + + return ComplexArgumentParser::EnsureNoMembersRemaining(label, valueCopy); +} + +void ComplexArgumentParser::Finalize(chip::app::Clusters::Thermostat::Structs::ScheduleTransitionStruct::Type & request) +{ + ComplexArgumentParser::Finalize(request.dayOfWeek); + ComplexArgumentParser::Finalize(request.transitionTime); + ComplexArgumentParser::Finalize(request.presetHandle); + ComplexArgumentParser::Finalize(request.systemMode); + ComplexArgumentParser::Finalize(request.coolingSetpoint); + ComplexArgumentParser::Finalize(request.heatingSetpoint); +} + +CHIP_ERROR ComplexArgumentParser::Setup(const char * label, + chip::app::Clusters::Thermostat::Structs::ScheduleStruct::Type & request, + Json::Value & value) +{ + VerifyOrReturnError(value.isObject(), CHIP_ERROR_INVALID_ARGUMENT); + + // Copy to track which members we already processed. + Json::Value valueCopy(value); + + ReturnErrorOnFailure(ComplexArgumentParser::EnsureMemberExist("ScheduleStruct.scheduleHandle", "scheduleHandle", + value.isMember("scheduleHandle"))); + ReturnErrorOnFailure( + ComplexArgumentParser::EnsureMemberExist("ScheduleStruct.systemMode", "systemMode", value.isMember("systemMode"))); + ReturnErrorOnFailure( + ComplexArgumentParser::EnsureMemberExist("ScheduleStruct.transitions", "transitions", value.isMember("transitions"))); + + char labelWithMember[kMaxLabelLength]; + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "scheduleHandle"); + ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.scheduleHandle, value["scheduleHandle"])); + valueCopy.removeMember("scheduleHandle"); + + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "systemMode"); + ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.systemMode, value["systemMode"])); + valueCopy.removeMember("systemMode"); + + if (value.isMember("name")) + { + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "name"); + ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.name, value["name"])); + } + valueCopy.removeMember("name"); + + if (value.isMember("presetHandle")) + { + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "presetHandle"); + ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.presetHandle, value["presetHandle"])); + } + valueCopy.removeMember("presetHandle"); + + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "transitions"); + ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.transitions, value["transitions"])); + valueCopy.removeMember("transitions"); + + if (value.isMember("builtIn")) + { + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "builtIn"); + ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.builtIn, value["builtIn"])); + } + valueCopy.removeMember("builtIn"); + + return ComplexArgumentParser::EnsureNoMembersRemaining(label, valueCopy); +} + +void ComplexArgumentParser::Finalize(chip::app::Clusters::Thermostat::Structs::ScheduleStruct::Type & request) +{ + ComplexArgumentParser::Finalize(request.scheduleHandle); + ComplexArgumentParser::Finalize(request.systemMode); + ComplexArgumentParser::Finalize(request.name); + ComplexArgumentParser::Finalize(request.presetHandle); + ComplexArgumentParser::Finalize(request.transitions); + ComplexArgumentParser::Finalize(request.builtIn); +} + +CHIP_ERROR ComplexArgumentParser::Setup(const char * label, chip::app::Clusters::Thermostat::Structs::PresetStruct::Type & request, + Json::Value & value) +{ + VerifyOrReturnError(value.isObject(), CHIP_ERROR_INVALID_ARGUMENT); + + // Copy to track which members we already processed. + Json::Value valueCopy(value); + + ReturnErrorOnFailure( + ComplexArgumentParser::EnsureMemberExist("PresetStruct.presetHandle", "presetHandle", value.isMember("presetHandle"))); + ReturnErrorOnFailure(ComplexArgumentParser::EnsureMemberExist("PresetStruct.presetScenario", "presetScenario", + value.isMember("presetScenario"))); + ReturnErrorOnFailure(ComplexArgumentParser::EnsureMemberExist("PresetStruct.builtIn", "builtIn", value.isMember("builtIn"))); + + char labelWithMember[kMaxLabelLength]; + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "presetHandle"); + ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.presetHandle, value["presetHandle"])); + valueCopy.removeMember("presetHandle"); + + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "presetScenario"); + ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.presetScenario, value["presetScenario"])); + valueCopy.removeMember("presetScenario"); + + if (value.isMember("name")) + { + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "name"); + ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.name, value["name"])); + } + valueCopy.removeMember("name"); + + if (value.isMember("coolingSetpoint")) + { + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "coolingSetpoint"); + ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.coolingSetpoint, value["coolingSetpoint"])); + } + valueCopy.removeMember("coolingSetpoint"); + + if (value.isMember("heatingSetpoint")) + { + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "heatingSetpoint"); + ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.heatingSetpoint, value["heatingSetpoint"])); + } + valueCopy.removeMember("heatingSetpoint"); + + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "builtIn"); + ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.builtIn, value["builtIn"])); + valueCopy.removeMember("builtIn"); + + return ComplexArgumentParser::EnsureNoMembersRemaining(label, valueCopy); +} + +void ComplexArgumentParser::Finalize(chip::app::Clusters::Thermostat::Structs::PresetStruct::Type & request) +{ + ComplexArgumentParser::Finalize(request.presetHandle); + ComplexArgumentParser::Finalize(request.presetScenario); + ComplexArgumentParser::Finalize(request.name); + ComplexArgumentParser::Finalize(request.coolingSetpoint); + ComplexArgumentParser::Finalize(request.heatingSetpoint); + ComplexArgumentParser::Finalize(request.builtIn); +} + +CHIP_ERROR ComplexArgumentParser::Setup(const char * label, + chip::app::Clusters::Thermostat::Structs::PresetTypeStruct::Type & request, + Json::Value & value) +{ + VerifyOrReturnError(value.isObject(), CHIP_ERROR_INVALID_ARGUMENT); + + // Copy to track which members we already processed. + Json::Value valueCopy(value); + + ReturnErrorOnFailure(ComplexArgumentParser::EnsureMemberExist("PresetTypeStruct.presetScenario", "presetScenario", + value.isMember("presetScenario"))); + ReturnErrorOnFailure(ComplexArgumentParser::EnsureMemberExist("PresetTypeStruct.numberOfPresets", "numberOfPresets", + value.isMember("numberOfPresets"))); + ReturnErrorOnFailure(ComplexArgumentParser::EnsureMemberExist("PresetTypeStruct.presetTypeFeatures", "presetTypeFeatures", + value.isMember("presetTypeFeatures"))); + + char labelWithMember[kMaxLabelLength]; + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "presetScenario"); + ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.presetScenario, value["presetScenario"])); + valueCopy.removeMember("presetScenario"); + + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "numberOfPresets"); + ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.numberOfPresets, value["numberOfPresets"])); + valueCopy.removeMember("numberOfPresets"); + + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "presetTypeFeatures"); + ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.presetTypeFeatures, value["presetTypeFeatures"])); + valueCopy.removeMember("presetTypeFeatures"); + + return ComplexArgumentParser::EnsureNoMembersRemaining(label, valueCopy); +} + +void ComplexArgumentParser::Finalize(chip::app::Clusters::Thermostat::Structs::PresetTypeStruct::Type & request) +{ + ComplexArgumentParser::Finalize(request.presetScenario); + ComplexArgumentParser::Finalize(request.numberOfPresets); + ComplexArgumentParser::Finalize(request.presetTypeFeatures); +} + +CHIP_ERROR ComplexArgumentParser::Setup(const char * label, + chip::app::Clusters::Thermostat::Structs::QueuedPresetStruct::Type & request, + Json::Value & value) +{ + VerifyOrReturnError(value.isObject(), CHIP_ERROR_INVALID_ARGUMENT); + + // Copy to track which members we already processed. + Json::Value valueCopy(value); + + ReturnErrorOnFailure(ComplexArgumentParser::EnsureMemberExist("QueuedPresetStruct.presetHandle", "presetHandle", + value.isMember("presetHandle"))); + ReturnErrorOnFailure(ComplexArgumentParser::EnsureMemberExist("QueuedPresetStruct.transitionTimestamp", "transitionTimestamp", + value.isMember("transitionTimestamp"))); + + char labelWithMember[kMaxLabelLength]; + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "presetHandle"); + ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.presetHandle, value["presetHandle"])); + valueCopy.removeMember("presetHandle"); + + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "transitionTimestamp"); + ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.transitionTimestamp, value["transitionTimestamp"])); + valueCopy.removeMember("transitionTimestamp"); + + return ComplexArgumentParser::EnsureNoMembersRemaining(label, valueCopy); +} + +void ComplexArgumentParser::Finalize(chip::app::Clusters::Thermostat::Structs::QueuedPresetStruct::Type & request) +{ + ComplexArgumentParser::Finalize(request.presetHandle); + ComplexArgumentParser::Finalize(request.transitionTimestamp); +} + +CHIP_ERROR ComplexArgumentParser::Setup(const char * label, + chip::app::Clusters::Thermostat::Structs::ScheduleTypeStruct::Type & request, + Json::Value & value) +{ + VerifyOrReturnError(value.isObject(), CHIP_ERROR_INVALID_ARGUMENT); + + // Copy to track which members we already processed. + Json::Value valueCopy(value); + + ReturnErrorOnFailure( + ComplexArgumentParser::EnsureMemberExist("ScheduleTypeStruct.systemMode", "systemMode", value.isMember("systemMode"))); + ReturnErrorOnFailure(ComplexArgumentParser::EnsureMemberExist("ScheduleTypeStruct.numberOfSchedules", "numberOfSchedules", + value.isMember("numberOfSchedules"))); + ReturnErrorOnFailure(ComplexArgumentParser::EnsureMemberExist("ScheduleTypeStruct.scheduleTypeFeatures", "scheduleTypeFeatures", + value.isMember("scheduleTypeFeatures"))); + + char labelWithMember[kMaxLabelLength]; + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "systemMode"); + ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.systemMode, value["systemMode"])); + valueCopy.removeMember("systemMode"); + + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "numberOfSchedules"); + ReturnErrorOnFailure(ComplexArgumentParser::Setup(labelWithMember, request.numberOfSchedules, value["numberOfSchedules"])); + valueCopy.removeMember("numberOfSchedules"); + + snprintf(labelWithMember, sizeof(labelWithMember), "%s.%s", label, "scheduleTypeFeatures"); + ReturnErrorOnFailure( + ComplexArgumentParser::Setup(labelWithMember, request.scheduleTypeFeatures, value["scheduleTypeFeatures"])); + valueCopy.removeMember("scheduleTypeFeatures"); + + return ComplexArgumentParser::EnsureNoMembersRemaining(label, valueCopy); +} + +void ComplexArgumentParser::Finalize(chip::app::Clusters::Thermostat::Structs::ScheduleTypeStruct::Type & request) +{ + ComplexArgumentParser::Finalize(request.systemMode); + ComplexArgumentParser::Finalize(request.numberOfSchedules); + ComplexArgumentParser::Finalize(request.scheduleTypeFeatures); +} + +CHIP_ERROR +ComplexArgumentParser::Setup(const char * label, + chip::app::Clusters::Thermostat::Structs::ThermostatScheduleTransitionStruct::Type & request, + Json::Value & value) +{ + VerifyOrReturnError(value.isObject(), CHIP_ERROR_INVALID_ARGUMENT); + + // Copy to track which members we already processed. + Json::Value valueCopy(value); + + ReturnErrorOnFailure(ComplexArgumentParser::EnsureMemberExist("ThermostatScheduleTransitionStruct.transitionTime", + "transitionTime", value.isMember("transitionTime"))); + ReturnErrorOnFailure(ComplexArgumentParser::EnsureMemberExist("ThermostatScheduleTransitionStruct.heatSetpoint", "heatSetpoint", value.isMember("heatSetpoint"))); - ReturnErrorOnFailure(ComplexArgumentParser::EnsureMemberExist("ThermostatScheduleTransition.coolSetpoint", "coolSetpoint", + ReturnErrorOnFailure(ComplexArgumentParser::EnsureMemberExist("ThermostatScheduleTransitionStruct.coolSetpoint", "coolSetpoint", value.isMember("coolSetpoint"))); char labelWithMember[kMaxLabelLength]; @@ -2656,7 +2956,7 @@ CHIP_ERROR ComplexArgumentParser::Setup(const char * label, return ComplexArgumentParser::EnsureNoMembersRemaining(label, valueCopy); } -void ComplexArgumentParser::Finalize(chip::app::Clusters::Thermostat::Structs::ThermostatScheduleTransition::Type & request) +void ComplexArgumentParser::Finalize(chip::app::Clusters::Thermostat::Structs::ThermostatScheduleTransitionStruct::Type & request) { ComplexArgumentParser::Finalize(request.transitionTime); ComplexArgumentParser::Finalize(request.heatSetpoint); diff --git a/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.h b/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.h index 39eeb0b1fb5cce..b0013c5f0fb7b6 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.h +++ b/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.h @@ -329,10 +329,41 @@ static CHIP_ERROR Setup(const char * label, chip::app::Clusters::DoorLock::Struc static void Finalize(chip::app::Clusters::DoorLock::Structs::CredentialStruct::Type & request); -static CHIP_ERROR Setup(const char * label, chip::app::Clusters::Thermostat::Structs::ThermostatScheduleTransition::Type & request, +static CHIP_ERROR Setup(const char * label, chip::app::Clusters::Thermostat::Structs::ScheduleTransitionStruct::Type & request, Json::Value & value); -static void Finalize(chip::app::Clusters::Thermostat::Structs::ThermostatScheduleTransition::Type & request); +static void Finalize(chip::app::Clusters::Thermostat::Structs::ScheduleTransitionStruct::Type & request); + +static CHIP_ERROR Setup(const char * label, chip::app::Clusters::Thermostat::Structs::ScheduleStruct::Type & request, + Json::Value & value); + +static void Finalize(chip::app::Clusters::Thermostat::Structs::ScheduleStruct::Type & request); + +static CHIP_ERROR Setup(const char * label, chip::app::Clusters::Thermostat::Structs::PresetStruct::Type & request, + Json::Value & value); + +static void Finalize(chip::app::Clusters::Thermostat::Structs::PresetStruct::Type & request); + +static CHIP_ERROR Setup(const char * label, chip::app::Clusters::Thermostat::Structs::PresetTypeStruct::Type & request, + Json::Value & value); + +static void Finalize(chip::app::Clusters::Thermostat::Structs::PresetTypeStruct::Type & request); + +static CHIP_ERROR Setup(const char * label, chip::app::Clusters::Thermostat::Structs::QueuedPresetStruct::Type & request, + Json::Value & value); + +static void Finalize(chip::app::Clusters::Thermostat::Structs::QueuedPresetStruct::Type & request); + +static CHIP_ERROR Setup(const char * label, chip::app::Clusters::Thermostat::Structs::ScheduleTypeStruct::Type & request, + Json::Value & value); + +static void Finalize(chip::app::Clusters::Thermostat::Structs::ScheduleTypeStruct::Type & request); + +static CHIP_ERROR Setup(const char * label, + chip::app::Clusters::Thermostat::Structs::ThermostatScheduleTransitionStruct::Type & request, + Json::Value & value); + +static void Finalize(chip::app::Clusters::Thermostat::Structs::ThermostatScheduleTransitionStruct::Type & request); static CHIP_ERROR Setup(const char * label, chip::app::Clusters::Channel::Structs::ChannelInfoStruct::Type & request, Json::Value & value); diff --git a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp index 780aeec581baf8..296d3dc204c281 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp +++ b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp @@ -2316,7 +2316,270 @@ CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const chip::app::Clusters::Thermostat::Structs::ThermostatScheduleTransition::DecodableType & value) + const chip::app::Clusters::Thermostat::Structs::ScheduleTransitionStruct::DecodableType & value) +{ + DataModelLogger::LogString(label, indent, "{"); + { + CHIP_ERROR err = LogValue("DayOfWeek", indent + 1, value.dayOfWeek); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'DayOfWeek'"); + return err; + } + } + { + CHIP_ERROR err = LogValue("TransitionTime", indent + 1, value.transitionTime); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'TransitionTime'"); + return err; + } + } + { + CHIP_ERROR err = LogValue("PresetHandle", indent + 1, value.presetHandle); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'PresetHandle'"); + return err; + } + } + { + CHIP_ERROR err = LogValue("SystemMode", indent + 1, value.systemMode); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'SystemMode'"); + return err; + } + } + { + CHIP_ERROR err = LogValue("CoolingSetpoint", indent + 1, value.coolingSetpoint); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'CoolingSetpoint'"); + return err; + } + } + { + CHIP_ERROR err = LogValue("HeatingSetpoint", indent + 1, value.heatingSetpoint); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'HeatingSetpoint'"); + return err; + } + } + DataModelLogger::LogString(indent, "}"); + + return CHIP_NO_ERROR; +} + +CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, + const chip::app::Clusters::Thermostat::Structs::ScheduleStruct::DecodableType & value) +{ + DataModelLogger::LogString(label, indent, "{"); + { + CHIP_ERROR err = LogValue("ScheduleHandle", indent + 1, value.scheduleHandle); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'ScheduleHandle'"); + return err; + } + } + { + CHIP_ERROR err = LogValue("SystemMode", indent + 1, value.systemMode); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'SystemMode'"); + return err; + } + } + { + CHIP_ERROR err = LogValue("Name", indent + 1, value.name); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'Name'"); + return err; + } + } + { + CHIP_ERROR err = LogValue("PresetHandle", indent + 1, value.presetHandle); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'PresetHandle'"); + return err; + } + } + { + CHIP_ERROR err = LogValue("Transitions", indent + 1, value.transitions); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'Transitions'"); + return err; + } + } + { + CHIP_ERROR err = LogValue("BuiltIn", indent + 1, value.builtIn); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'BuiltIn'"); + return err; + } + } + DataModelLogger::LogString(indent, "}"); + + return CHIP_NO_ERROR; +} + +CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, + const chip::app::Clusters::Thermostat::Structs::PresetStruct::DecodableType & value) +{ + DataModelLogger::LogString(label, indent, "{"); + { + CHIP_ERROR err = LogValue("PresetHandle", indent + 1, value.presetHandle); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'PresetHandle'"); + return err; + } + } + { + CHIP_ERROR err = LogValue("PresetScenario", indent + 1, value.presetScenario); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'PresetScenario'"); + return err; + } + } + { + CHIP_ERROR err = LogValue("Name", indent + 1, value.name); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'Name'"); + return err; + } + } + { + CHIP_ERROR err = LogValue("CoolingSetpoint", indent + 1, value.coolingSetpoint); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'CoolingSetpoint'"); + return err; + } + } + { + CHIP_ERROR err = LogValue("HeatingSetpoint", indent + 1, value.heatingSetpoint); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'HeatingSetpoint'"); + return err; + } + } + { + CHIP_ERROR err = LogValue("BuiltIn", indent + 1, value.builtIn); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'BuiltIn'"); + return err; + } + } + DataModelLogger::LogString(indent, "}"); + + return CHIP_NO_ERROR; +} + +CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, + const chip::app::Clusters::Thermostat::Structs::PresetTypeStruct::DecodableType & value) +{ + DataModelLogger::LogString(label, indent, "{"); + { + CHIP_ERROR err = LogValue("PresetScenario", indent + 1, value.presetScenario); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'PresetScenario'"); + return err; + } + } + { + CHIP_ERROR err = LogValue("NumberOfPresets", indent + 1, value.numberOfPresets); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'NumberOfPresets'"); + return err; + } + } + { + CHIP_ERROR err = LogValue("PresetTypeFeatures", indent + 1, value.presetTypeFeatures); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'PresetTypeFeatures'"); + return err; + } + } + DataModelLogger::LogString(indent, "}"); + + return CHIP_NO_ERROR; +} + +CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, + const chip::app::Clusters::Thermostat::Structs::QueuedPresetStruct::DecodableType & value) +{ + DataModelLogger::LogString(label, indent, "{"); + { + CHIP_ERROR err = LogValue("PresetHandle", indent + 1, value.presetHandle); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'PresetHandle'"); + return err; + } + } + { + CHIP_ERROR err = LogValue("TransitionTimestamp", indent + 1, value.transitionTimestamp); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'TransitionTimestamp'"); + return err; + } + } + DataModelLogger::LogString(indent, "}"); + + return CHIP_NO_ERROR; +} + +CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, + const chip::app::Clusters::Thermostat::Structs::ScheduleTypeStruct::DecodableType & value) +{ + DataModelLogger::LogString(label, indent, "{"); + { + CHIP_ERROR err = LogValue("SystemMode", indent + 1, value.systemMode); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'SystemMode'"); + return err; + } + } + { + CHIP_ERROR err = LogValue("NumberOfSchedules", indent + 1, value.numberOfSchedules); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'NumberOfSchedules'"); + return err; + } + } + { + CHIP_ERROR err = LogValue("ScheduleTypeFeatures", indent + 1, value.scheduleTypeFeatures); + if (err != CHIP_NO_ERROR) + { + DataModelLogger::LogString(indent + 1, "Struct truncated due to invalid value for 'ScheduleTypeFeatures'"); + return err; + } + } + DataModelLogger::LogString(indent, "}"); + + return CHIP_NO_ERROR; +} + +CHIP_ERROR +DataModelLogger::LogValue(const char * label, size_t indent, + const chip::app::Clusters::Thermostat::Structs::ThermostatScheduleTransitionStruct::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); { @@ -5405,12 +5668,25 @@ CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, DataModelLogger::LogString(label, indent, "{"); ReturnErrorOnFailure( DataModelLogger::LogValue("numberOfTransitionsForSequence", indent + 1, value.numberOfTransitionsForSequence)); - ReturnErrorOnFailure(DataModelLogger::LogValue("dayOfWeekForSequence", indent + 1, value.dayOfWeekForSequence)); + ReturnErrorOnFailure(DataModelLogger::LogValue("dayOfWeekforSequence", indent + 1, value.dayOfWeekforSequence)); ReturnErrorOnFailure(DataModelLogger::LogValue("modeForSequence", indent + 1, value.modeForSequence)); ReturnErrorOnFailure(DataModelLogger::LogValue("transitions", indent + 1, value.transitions)); DataModelLogger::LogString(indent, "}"); return CHIP_NO_ERROR; } +CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, + const Thermostat::Commands::GetRelayStatusLogResponse::DecodableType & value) +{ + DataModelLogger::LogString(label, indent, "{"); + ReturnErrorOnFailure(DataModelLogger::LogValue("timeOfDay", indent + 1, value.timeOfDay)); + ReturnErrorOnFailure(DataModelLogger::LogValue("relayStatus", indent + 1, value.relayStatus)); + ReturnErrorOnFailure(DataModelLogger::LogValue("localTemperature", indent + 1, value.localTemperature)); + ReturnErrorOnFailure(DataModelLogger::LogValue("humidityInPercentage", indent + 1, value.humidityInPercentage)); + ReturnErrorOnFailure(DataModelLogger::LogValue("setPoint", indent + 1, value.setPoint)); + ReturnErrorOnFailure(DataModelLogger::LogValue("unreadEntries", indent + 1, value.unreadEntries)); + DataModelLogger::LogString(indent, "}"); + return CHIP_NO_ERROR; +} CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, const Channel::Commands::ChangeChannelResponse::DecodableType & value) { @@ -10727,11 +11003,6 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("PIHeatingDemand", 1, value); } - case Thermostat::Attributes::HVACSystemTypeConfiguration::Id: { - uint8_t value; - ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("HVACSystemTypeConfiguration", 1, value); - } case Thermostat::Attributes::LocalTemperatureCalibration::Id: { int8_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); @@ -10783,27 +11054,32 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP return DataModelLogger::LogValue("MinSetpointDeadBand", 1, value); } case Thermostat::Attributes::RemoteSensing::Id: { - uint8_t value; + chip::BitMask value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("RemoteSensing", 1, value); } case Thermostat::Attributes::ControlSequenceOfOperation::Id: { - chip::app::Clusters::Thermostat::ThermostatControlSequence value; + chip::app::Clusters::Thermostat::ThermostatControlSequenceEnum value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("ControlSequenceOfOperation", 1, value); } case Thermostat::Attributes::SystemMode::Id: { - uint8_t value; + chip::app::Clusters::Thermostat::ThermostatSystemModeEnum value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("SystemMode", 1, value); } + case Thermostat::Attributes::AlarmMask::Id: { + chip::BitMask value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("AlarmMask", 1, value); + } case Thermostat::Attributes::ThermostatRunningMode::Id: { - uint8_t value; + chip::app::Clusters::Thermostat::ThermostatRunningModeEnum value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("ThermostatRunningMode", 1, value); } case Thermostat::Attributes::StartOfWeek::Id: { - uint8_t value; + chip::app::Clusters::Thermostat::StartOfWeekEnum value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("StartOfWeek", 1, value); } @@ -10818,7 +11094,7 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP return DataModelLogger::LogValue("NumberOfDailyTransitions", 1, value); } case Thermostat::Attributes::TemperatureSetpointHold::Id: { - uint8_t value; + chip::app::Clusters::Thermostat::TemperatureSetpointHoldEnum value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("TemperatureSetpointHold", 1, value); } @@ -10828,17 +11104,17 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP return DataModelLogger::LogValue("TemperatureSetpointHoldDuration", 1, value); } case Thermostat::Attributes::ThermostatProgrammingOperationMode::Id: { - uint8_t value; + chip::BitMask value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("ThermostatProgrammingOperationMode", 1, value); } case Thermostat::Attributes::ThermostatRunningState::Id: { - uint16_t value; + chip::BitMask value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("ThermostatRunningState", 1, value); } case Thermostat::Attributes::SetpointChangeSource::Id: { - uint8_t value; + chip::app::Clusters::Thermostat::SetpointChangeSourceEnum value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("SetpointChangeSource", 1, value); } @@ -10888,7 +11164,7 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP return DataModelLogger::LogValue("EmergencyHeatDelta", 1, value); } case Thermostat::Attributes::ACType::Id: { - uint8_t value; + chip::app::Clusters::Thermostat::ACTypeEnum value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("ACType", 1, value); } @@ -10898,22 +11174,22 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP return DataModelLogger::LogValue("ACCapacity", 1, value); } case Thermostat::Attributes::ACRefrigerantType::Id: { - uint8_t value; + chip::app::Clusters::Thermostat::ACRefrigerantTypeEnum value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("ACRefrigerantType", 1, value); } case Thermostat::Attributes::ACCompressorType::Id: { - uint8_t value; + chip::app::Clusters::Thermostat::ACCompressorTypeEnum value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("ACCompressorType", 1, value); } case Thermostat::Attributes::ACErrorCode::Id: { - uint32_t value; + chip::BitMask value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("ACErrorCode", 1, value); } case Thermostat::Attributes::ACLouverPosition::Id: { - uint8_t value; + chip::app::Clusters::Thermostat::ACLouverPositionEnum value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("ACLouverPosition", 1, value); } @@ -10922,10 +11198,80 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("ACCoilTemperature", 1, value); } - case Thermostat::Attributes::ACCapacityformat::Id: { + case Thermostat::Attributes::ACCapacityFormat::Id: { + chip::app::Clusters::Thermostat::ACCapacityFormatEnum value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ACCapacityFormat", 1, value); + } + case Thermostat::Attributes::PresetTypes::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("PresetTypes", 1, value); + } + case Thermostat::Attributes::ScheduleTypes::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ScheduleTypes", 1, value); + } + case Thermostat::Attributes::NumberOfPresets::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("NumberOfPresets", 1, value); + } + case Thermostat::Attributes::NumberOfSchedules::Id: { + uint8_t value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("NumberOfSchedules", 1, value); + } + case Thermostat::Attributes::NumberOfScheduleTransitions::Id: { uint8_t value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); - return DataModelLogger::LogValue("ACCapacityformat", 1, value); + return DataModelLogger::LogValue("NumberOfScheduleTransitions", 1, value); + } + case Thermostat::Attributes::NumberOfScheduleTransitionPerDay::Id: { + chip::app::DataModel::Nullable value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("NumberOfScheduleTransitionPerDay", 1, value); + } + case Thermostat::Attributes::ActivePresetHandle::Id: { + chip::app::DataModel::Nullable value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ActivePresetHandle", 1, value); + } + case Thermostat::Attributes::ActiveScheduleHandle::Id: { + chip::app::DataModel::Nullable value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("ActiveScheduleHandle", 1, value); + } + case Thermostat::Attributes::Presets::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("Presets", 1, value); + } + case Thermostat::Attributes::Schedules::Id: { + chip::app::DataModel::DecodableList value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("Schedules", 1, value); + } + case Thermostat::Attributes::PresetsSchedulesEditable::Id: { + bool value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("PresetsSchedulesEditable", 1, value); + } + case Thermostat::Attributes::TemperatureSetpointHoldPolicy::Id: { + chip::BitMask value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("TemperatureSetpointHoldPolicy", 1, value); + } + case Thermostat::Attributes::SetpointHoldExpiryTimestamp::Id: { + chip::app::DataModel::Nullable value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("SetpointHoldExpiryTimestamp", 1, value); + } + case Thermostat::Attributes::QueuedPreset::Id: { + chip::app::DataModel::Nullable value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("QueuedPreset", 1, value); } case Thermostat::Attributes::GeneratedCommandList::Id: { chip::app::DataModel::DecodableList value; @@ -14989,6 +15335,11 @@ CHIP_ERROR DataModelLogger::LogCommand(const chip::app::ConcreteCommandPath & pa ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("GetWeeklyScheduleResponse", 1, value); } + case Thermostat::Commands::GetRelayStatusLogResponse::Id: { + Thermostat::Commands::GetRelayStatusLogResponse::DecodableType value; + ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); + return DataModelLogger::LogValue("GetRelayStatusLogResponse", 1, value); + } } break; } diff --git a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.h b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.h index a120b9021f7b95..49ee6be40c5859 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.h +++ b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.h @@ -209,7 +209,26 @@ static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::DoorLock::Structs::CredentialStruct::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, - const chip::app::Clusters::Thermostat::Structs::ThermostatScheduleTransition::DecodableType & value); + const chip::app::Clusters::Thermostat::Structs::ScheduleTransitionStruct::DecodableType & value); + +static CHIP_ERROR LogValue(const char * label, size_t indent, + const chip::app::Clusters::Thermostat::Structs::ScheduleStruct::DecodableType & value); + +static CHIP_ERROR LogValue(const char * label, size_t indent, + const chip::app::Clusters::Thermostat::Structs::PresetStruct::DecodableType & value); + +static CHIP_ERROR LogValue(const char * label, size_t indent, + const chip::app::Clusters::Thermostat::Structs::PresetTypeStruct::DecodableType & value); + +static CHIP_ERROR LogValue(const char * label, size_t indent, + const chip::app::Clusters::Thermostat::Structs::QueuedPresetStruct::DecodableType & value); + +static CHIP_ERROR LogValue(const char * label, size_t indent, + const chip::app::Clusters::Thermostat::Structs::ScheduleTypeStruct::DecodableType & value); + +static CHIP_ERROR +LogValue(const char * label, size_t indent, + const chip::app::Clusters::Thermostat::Structs::ThermostatScheduleTransitionStruct::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::Channel::Structs::ChannelInfoStruct::DecodableType & value); @@ -566,6 +585,8 @@ static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::DoorLock::Commands::GetCredentialStatusResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::Thermostat::Commands::GetWeeklyScheduleResponse::DecodableType & value); +static CHIP_ERROR LogValue(const char * label, size_t indent, + const chip::app::Clusters::Thermostat::Commands::GetRelayStatusLogResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::Channel::Commands::ChangeChannelResponse::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, diff --git a/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h b/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h index e7eeaf80841278..ed656335b9f5d9 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h @@ -88858,6 +88858,14 @@ class SubscribeAttributePumpConfigurationAndControlClusterRevision : public Subs | * SetWeeklySchedule | 0x01 | | * GetWeeklySchedule | 0x02 | | * ClearWeeklySchedule | 0x03 | +| * GetRelayStatusLog | 0x04 | +| * SetActiveScheduleRequest | 0x05 | +| * SetActivePresetRequest | 0x06 | +| * StartPresetsSchedulesEditRequest | 0x07 | +| * CancelPresetsSchedulesEditRequest | 0x08 | +| * CommitPresetsSchedulesRequest | 0x09 | +| * CancelSetActivePresetRequest | 0x0A | +| * SetTemperatureSetpointHoldPolicy | 0x0B | |------------------------------------------------------------------------------| | Attributes: | | | * LocalTemperature | 0x0000 | @@ -88869,7 +88877,6 @@ class SubscribeAttributePumpConfigurationAndControlClusterRevision : public Subs | * AbsMaxCoolSetpointLimit | 0x0006 | | * PICoolingDemand | 0x0007 | | * PIHeatingDemand | 0x0008 | -| * HVACSystemTypeConfiguration | 0x0009 | | * LocalTemperatureCalibration | 0x0010 | | * OccupiedCoolingSetpoint | 0x0011 | | * OccupiedHeatingSetpoint | 0x0012 | @@ -88883,6 +88890,7 @@ class SubscribeAttributePumpConfigurationAndControlClusterRevision : public Subs | * RemoteSensing | 0x001A | | * ControlSequenceOfOperation | 0x001B | | * SystemMode | 0x001C | +| * AlarmMask | 0x001D | | * ThermostatRunningMode | 0x001E | | * StartOfWeek | 0x0020 | | * NumberOfWeeklyTransitions | 0x0021 | @@ -88908,7 +88916,21 @@ class SubscribeAttributePumpConfigurationAndControlClusterRevision : public Subs | * ACErrorCode | 0x0044 | | * ACLouverPosition | 0x0045 | | * ACCoilTemperature | 0x0046 | -| * ACCapacityformat | 0x0047 | +| * ACCapacityFormat | 0x0047 | +| * PresetTypes | 0x0048 | +| * ScheduleTypes | 0x0049 | +| * NumberOfPresets | 0x004A | +| * NumberOfSchedules | 0x004B | +| * NumberOfScheduleTransitions | 0x004C | +| * NumberOfScheduleTransitionPerDay | 0x004D | +| * ActivePresetHandle | 0x004E | +| * ActiveScheduleHandle | 0x004F | +| * Presets | 0x0050 | +| * Schedules | 0x0051 | +| * PresetsSchedulesEditable | 0x0052 | +| * TemperatureSetpointHoldPolicy | 0x0053 | +| * SetpointHoldExpiryTimestamp | 0x0054 | +| * QueuedPreset | 0x0055 | | * GeneratedCommandList | 0xFFF8 | | * AcceptedCommandList | 0xFFF9 | | * EventList | 0xFFFA | @@ -88978,7 +89000,9 @@ class ThermostatSetWeeklySchedule : public ClusterCommand { , mComplex_Transitions(&mRequest.transitions) { AddArgument("NumberOfTransitionsForSequence", 0, UINT8_MAX, &mRequest.numberOfTransitionsForSequence); - AddArgument("DayOfWeekForSequence", 0, UINT8_MAX, &mRequest.dayOfWeekForSequence); +#if MTR_ENABLE_PROVISIONAL + AddArgument("DayOfWeekforSequence", 0, UINT8_MAX, &mRequest.dayOfWeekforSequence); +#endif // MTR_ENABLE_PROVISIONAL AddArgument("ModeForSequence", 0, UINT8_MAX, &mRequest.modeForSequence); AddArgument("Transitions", &mComplex_Transitions); ClusterCommand::AddArguments(); @@ -88996,24 +89020,18 @@ class ThermostatSetWeeklySchedule : public ClusterCommand { __auto_type * params = [[MTRThermostatClusterSetWeeklyScheduleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.numberOfTransitionsForSequence = [NSNumber numberWithUnsignedChar:mRequest.numberOfTransitionsForSequence]; - params.dayOfWeekForSequence = [NSNumber numberWithUnsignedChar:mRequest.dayOfWeekForSequence.Raw()]; +#if MTR_ENABLE_PROVISIONAL + params.dayOfWeekforSequence = [NSNumber numberWithUnsignedChar:mRequest.dayOfWeekforSequence.Raw()]; +#endif // MTR_ENABLE_PROVISIONAL params.modeForSequence = [NSNumber numberWithUnsignedChar:mRequest.modeForSequence.Raw()]; { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; for (auto & entry_0 : mRequest.transitions) { - MTRThermostatClusterThermostatScheduleTransition * newElement_0; - newElement_0 = [MTRThermostatClusterThermostatScheduleTransition new]; + MTRThermostatClusterThermostatScheduleTransitionStruct * newElement_0; + newElement_0 = [MTRThermostatClusterThermostatScheduleTransitionStruct new]; newElement_0.transitionTime = [NSNumber numberWithUnsignedShort:entry_0.transitionTime]; - if (entry_0.heatSetpoint.IsNull()) { - newElement_0.heatSetpoint = nil; - } else { - newElement_0.heatSetpoint = [NSNumber numberWithShort:entry_0.heatSetpoint.Value()]; - } - if (entry_0.coolSetpoint.IsNull()) { - newElement_0.coolSetpoint = nil; - } else { - newElement_0.coolSetpoint = [NSNumber numberWithShort:entry_0.coolSetpoint.Value()]; - } + newElement_0.heatSetpoint = [NSNumber numberWithShort:entry_0.heatSetpoint]; + newElement_0.coolSetpoint = [NSNumber numberWithShort:entry_0.coolSetpoint]; [array_0 addObject:newElement_0]; } params.transitions = array_0; @@ -89039,7 +89057,7 @@ class ThermostatSetWeeklySchedule : public ClusterCommand { private: chip::app::Clusters::Thermostat::Commands::SetWeeklySchedule::Type mRequest; - TypedComplexArgument> mComplex_Transitions; + TypedComplexArgument> mComplex_Transitions; }; /* @@ -89141,6 +89159,419 @@ class ThermostatClearWeeklySchedule : public ClusterCommand { private: }; +#if MTR_ENABLE_PROVISIONAL +/* + * Command GetRelayStatusLog + */ +class ThermostatGetRelayStatusLog : public ClusterCommand { +public: + ThermostatGetRelayStatusLog() + : ClusterCommand("get-relay-status-log") + { + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::GetRelayStatusLog::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointId); + + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + __auto_type * params = [[MTRThermostatClusterGetRelayStatusLogParams alloc] init]; + params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; + uint16_t repeatCount = mRepeatCount.ValueOr(1); + uint16_t __block responsesNeeded = repeatCount; + while (repeatCount--) { + [cluster getRelayStatusLogWithParams:params completion: + ^(MTRThermostatClusterGetRelayStatusLogResponseParams * _Nullable values, NSError * _Nullable error) { + NSLog(@"Values: %@", values); + if (error == nil) { + constexpr chip::CommandId responseId = chip::app::Clusters::Thermostat::Commands::GetRelayStatusLogResponse::Id; + RemoteDataModelLogger::LogCommandAsJSON(@(endpointId), @(clusterId), @(responseId), values); + } + responsesNeeded--; + if (error != nil) { + mError = error; + LogNSError("Error", error); + constexpr chip::CommandId responseId = chip::app::Clusters::Thermostat::Commands::GetRelayStatusLogResponse::Id; + RemoteDataModelLogger::LogCommandErrorAsJSON(@(endpointId), @(clusterId), @(responseId), error); + } + if (responsesNeeded == 0) { + SetCommandExitStatus(mError); + } + }]; + } + return CHIP_NO_ERROR; + } + +private: +}; + +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL +/* + * Command SetActiveScheduleRequest + */ +class ThermostatSetActiveScheduleRequest : public ClusterCommand { +public: + ThermostatSetActiveScheduleRequest() + : ClusterCommand("set-active-schedule-request") + { +#if MTR_ENABLE_PROVISIONAL + AddArgument("ScheduleHandle", &mRequest.scheduleHandle); +#endif // MTR_ENABLE_PROVISIONAL + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::SetActiveScheduleRequest::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointId); + + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + __auto_type * params = [[MTRThermostatClusterSetActiveScheduleRequestParams alloc] init]; + params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; +#if MTR_ENABLE_PROVISIONAL + params.scheduleHandle = [NSData dataWithBytes:mRequest.scheduleHandle.data() length:mRequest.scheduleHandle.size()]; +#endif // MTR_ENABLE_PROVISIONAL + uint16_t repeatCount = mRepeatCount.ValueOr(1); + uint16_t __block responsesNeeded = repeatCount; + while (repeatCount--) { + [cluster setActiveScheduleRequestWithParams:params completion: + ^(NSError * _Nullable error) { + responsesNeeded--; + if (error != nil) { + mError = error; + LogNSError("Error", error); + RemoteDataModelLogger::LogCommandErrorAsJSON(@(endpointId), @(clusterId), @(commandId), error); + } + if (responsesNeeded == 0) { + SetCommandExitStatus(mError); + } + }]; + } + return CHIP_NO_ERROR; + } + +private: + chip::app::Clusters::Thermostat::Commands::SetActiveScheduleRequest::Type mRequest; +}; + +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL +/* + * Command SetActivePresetRequest + */ +class ThermostatSetActivePresetRequest : public ClusterCommand { +public: + ThermostatSetActivePresetRequest() + : ClusterCommand("set-active-preset-request") + { +#if MTR_ENABLE_PROVISIONAL + AddArgument("PresetHandle", &mRequest.presetHandle); +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + AddArgument("DelayMinutes", 0, UINT16_MAX, &mRequest.delayMinutes); +#endif // MTR_ENABLE_PROVISIONAL + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::SetActivePresetRequest::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointId); + + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + __auto_type * params = [[MTRThermostatClusterSetActivePresetRequestParams alloc] init]; + params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; +#if MTR_ENABLE_PROVISIONAL + params.presetHandle = [NSData dataWithBytes:mRequest.presetHandle.data() length:mRequest.presetHandle.size()]; +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + if (mRequest.delayMinutes.HasValue()) { + params.delayMinutes = [NSNumber numberWithUnsignedShort:mRequest.delayMinutes.Value()]; + } else { + params.delayMinutes = nil; + } +#endif // MTR_ENABLE_PROVISIONAL + uint16_t repeatCount = mRepeatCount.ValueOr(1); + uint16_t __block responsesNeeded = repeatCount; + while (repeatCount--) { + [cluster setActivePresetRequestWithParams:params completion: + ^(NSError * _Nullable error) { + responsesNeeded--; + if (error != nil) { + mError = error; + LogNSError("Error", error); + RemoteDataModelLogger::LogCommandErrorAsJSON(@(endpointId), @(clusterId), @(commandId), error); + } + if (responsesNeeded == 0) { + SetCommandExitStatus(mError); + } + }]; + } + return CHIP_NO_ERROR; + } + +private: + chip::app::Clusters::Thermostat::Commands::SetActivePresetRequest::Type mRequest; +}; + +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL +/* + * Command StartPresetsSchedulesEditRequest + */ +class ThermostatStartPresetsSchedulesEditRequest : public ClusterCommand { +public: + ThermostatStartPresetsSchedulesEditRequest() + : ClusterCommand("start-presets-schedules-edit-request") + { +#if MTR_ENABLE_PROVISIONAL + AddArgument("TimeoutSeconds", 0, UINT16_MAX, &mRequest.timeoutSeconds); +#endif // MTR_ENABLE_PROVISIONAL + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::StartPresetsSchedulesEditRequest::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointId); + + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + __auto_type * params = [[MTRThermostatClusterStartPresetsSchedulesEditRequestParams alloc] init]; + params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; +#if MTR_ENABLE_PROVISIONAL + params.timeoutSeconds = [NSNumber numberWithUnsignedShort:mRequest.timeoutSeconds]; +#endif // MTR_ENABLE_PROVISIONAL + uint16_t repeatCount = mRepeatCount.ValueOr(1); + uint16_t __block responsesNeeded = repeatCount; + while (repeatCount--) { + [cluster startPresetsSchedulesEditRequestWithParams:params completion: + ^(NSError * _Nullable error) { + responsesNeeded--; + if (error != nil) { + mError = error; + LogNSError("Error", error); + RemoteDataModelLogger::LogCommandErrorAsJSON(@(endpointId), @(clusterId), @(commandId), error); + } + if (responsesNeeded == 0) { + SetCommandExitStatus(mError); + } + }]; + } + return CHIP_NO_ERROR; + } + +private: + chip::app::Clusters::Thermostat::Commands::StartPresetsSchedulesEditRequest::Type mRequest; +}; + +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL +/* + * Command CancelPresetsSchedulesEditRequest + */ +class ThermostatCancelPresetsSchedulesEditRequest : public ClusterCommand { +public: + ThermostatCancelPresetsSchedulesEditRequest() + : ClusterCommand("cancel-presets-schedules-edit-request") + { + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::CancelPresetsSchedulesEditRequest::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointId); + + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + __auto_type * params = [[MTRThermostatClusterCancelPresetsSchedulesEditRequestParams alloc] init]; + params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; + uint16_t repeatCount = mRepeatCount.ValueOr(1); + uint16_t __block responsesNeeded = repeatCount; + while (repeatCount--) { + [cluster cancelPresetsSchedulesEditRequestWithParams:params completion: + ^(NSError * _Nullable error) { + responsesNeeded--; + if (error != nil) { + mError = error; + LogNSError("Error", error); + RemoteDataModelLogger::LogCommandErrorAsJSON(@(endpointId), @(clusterId), @(commandId), error); + } + if (responsesNeeded == 0) { + SetCommandExitStatus(mError); + } + }]; + } + return CHIP_NO_ERROR; + } + +private: +}; + +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL +/* + * Command CommitPresetsSchedulesRequest + */ +class ThermostatCommitPresetsSchedulesRequest : public ClusterCommand { +public: + ThermostatCommitPresetsSchedulesRequest() + : ClusterCommand("commit-presets-schedules-request") + { + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::CommitPresetsSchedulesRequest::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointId); + + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + __auto_type * params = [[MTRThermostatClusterCommitPresetsSchedulesRequestParams alloc] init]; + params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; + uint16_t repeatCount = mRepeatCount.ValueOr(1); + uint16_t __block responsesNeeded = repeatCount; + while (repeatCount--) { + [cluster commitPresetsSchedulesRequestWithParams:params completion: + ^(NSError * _Nullable error) { + responsesNeeded--; + if (error != nil) { + mError = error; + LogNSError("Error", error); + RemoteDataModelLogger::LogCommandErrorAsJSON(@(endpointId), @(clusterId), @(commandId), error); + } + if (responsesNeeded == 0) { + SetCommandExitStatus(mError); + } + }]; + } + return CHIP_NO_ERROR; + } + +private: +}; + +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL +/* + * Command CancelSetActivePresetRequest + */ +class ThermostatCancelSetActivePresetRequest : public ClusterCommand { +public: + ThermostatCancelSetActivePresetRequest() + : ClusterCommand("cancel-set-active-preset-request") + { + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::CancelSetActivePresetRequest::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointId); + + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + __auto_type * params = [[MTRThermostatClusterCancelSetActivePresetRequestParams alloc] init]; + params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; + uint16_t repeatCount = mRepeatCount.ValueOr(1); + uint16_t __block responsesNeeded = repeatCount; + while (repeatCount--) { + [cluster cancelSetActivePresetRequestWithParams:params completion: + ^(NSError * _Nullable error) { + responsesNeeded--; + if (error != nil) { + mError = error; + LogNSError("Error", error); + RemoteDataModelLogger::LogCommandErrorAsJSON(@(endpointId), @(clusterId), @(commandId), error); + } + if (responsesNeeded == 0) { + SetCommandExitStatus(mError); + } + }]; + } + return CHIP_NO_ERROR; + } + +private: +}; + +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL +/* + * Command SetTemperatureSetpointHoldPolicy + */ +class ThermostatSetTemperatureSetpointHoldPolicy : public ClusterCommand { +public: + ThermostatSetTemperatureSetpointHoldPolicy() + : ClusterCommand("set-temperature-setpoint-hold-policy") + { +#if MTR_ENABLE_PROVISIONAL + AddArgument("TemperatureSetpointHoldPolicy", 0, UINT8_MAX, &mRequest.temperatureSetpointHoldPolicy); +#endif // MTR_ENABLE_PROVISIONAL + ClusterCommand::AddArguments(); + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId commandId = chip::app::Clusters::Thermostat::Commands::SetTemperatureSetpointHoldPolicy::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") command (0x%08" PRIX32 ") on endpoint %u", clusterId, commandId, endpointId); + + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + __auto_type * params = [[MTRThermostatClusterSetTemperatureSetpointHoldPolicyParams alloc] init]; + params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; +#if MTR_ENABLE_PROVISIONAL + params.temperatureSetpointHoldPolicy = [NSNumber numberWithUnsignedChar:mRequest.temperatureSetpointHoldPolicy.Raw()]; +#endif // MTR_ENABLE_PROVISIONAL + uint16_t repeatCount = mRepeatCount.ValueOr(1); + uint16_t __block responsesNeeded = repeatCount; + while (repeatCount--) { + [cluster setTemperatureSetpointHoldPolicyWithParams:params completion: + ^(NSError * _Nullable error) { + responsesNeeded--; + if (error != nil) { + mError = error; + LogNSError("Error", error); + RemoteDataModelLogger::LogCommandErrorAsJSON(@(endpointId), @(clusterId), @(commandId), error); + } + if (responsesNeeded == 0) { + SetCommandExitStatus(mError); + } + }]; + } + return CHIP_NO_ERROR; + } + +private: + chip::app::Clusters::Thermostat::Commands::SetTemperatureSetpointHoldPolicy::Type mRequest; +}; + +#endif // MTR_ENABLE_PROVISIONAL + /* * Attribute LocalTemperature */ @@ -89879,129 +90310,6 @@ class SubscribeAttributeThermostatPIHeatingDemand : public SubscribeAttribute { } }; -/* - * Attribute HVACSystemTypeConfiguration - */ -class ReadThermostatHVACSystemTypeConfiguration : public ReadAttribute { -public: - ReadThermostatHVACSystemTypeConfiguration() - : ReadAttribute("hvacsystem-type-configuration") - { - } - - ~ReadThermostatHVACSystemTypeConfiguration() - { - } - - CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override - { - constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; - constexpr chip::AttributeId attributeId = chip::app::Clusters::Thermostat::Attributes::HVACSystemTypeConfiguration::Id; - - ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReadAttribute (0x%08" PRIX32 ") on endpoint %u", endpointId, clusterId, attributeId); - - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; - [cluster readAttributeHVACSystemTypeConfigurationWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"Thermostat.HVACSystemTypeConfiguration response %@", [value description]); - if (error == nil) { - RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); - } else { - LogNSError("Thermostat HVACSystemTypeConfiguration read Error", error); - RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } -}; - -class WriteThermostatHVACSystemTypeConfiguration : public WriteAttribute { -public: - WriteThermostatHVACSystemTypeConfiguration() - : WriteAttribute("hvacsystem-type-configuration") - { - AddArgument("attr-name", "hvacsystem-type-configuration"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); - WriteAttribute::AddArguments(); - } - - ~WriteThermostatHVACSystemTypeConfiguration() - { - } - - CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override - { - constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; - constexpr chip::AttributeId attributeId = chip::app::Clusters::Thermostat::Attributes::HVACSystemTypeConfiguration::Id; - - ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") WriteAttribute (0x%08" PRIX32 ") on endpoint %u", clusterId, attributeId, endpointId); - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; - __auto_type * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; - params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; - NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; - - [cluster writeAttributeHVACSystemTypeConfigurationWithValue:value params:params completion:^(NSError * _Nullable error) { - if (error != nil) { - LogNSError("Thermostat HVACSystemTypeConfiguration write Error", error); - RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); - } - SetCommandExitStatus(error); - }]; - return CHIP_NO_ERROR; - } - -private: - uint8_t mValue; -}; - -class SubscribeAttributeThermostatHVACSystemTypeConfiguration : public SubscribeAttribute { -public: - SubscribeAttributeThermostatHVACSystemTypeConfiguration() - : SubscribeAttribute("hvacsystem-type-configuration") - { - } - - ~SubscribeAttributeThermostatHVACSystemTypeConfiguration() - { - } - - CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override - { - constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; - constexpr chip::CommandId attributeId = chip::app::Clusters::Thermostat::Attributes::HVACSystemTypeConfiguration::Id; - - ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReportAttribute (0x%08" PRIX32 ") on endpoint %u", clusterId, attributeId, endpointId); - dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; - __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(mMinInterval) maxInterval:@(mMaxInterval)]; - if (mKeepSubscriptions.HasValue()) { - params.replaceExistingSubscriptions = !mKeepSubscriptions.Value(); - } - if (mFabricFiltered.HasValue()) { - params.filterByFabric = mFabricFiltered.Value(); - } - if (mAutoResubscribe.HasValue()) { - params.resubscribeAutomatically = mAutoResubscribe.Value(); - } - [cluster subscribeAttributeHVACSystemTypeConfigurationWithParams:params - subscriptionEstablished:^() { mSubscriptionEstablished = YES; } - reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"Thermostat.HVACSystemTypeConfiguration response %@", [value description]); - if (error == nil) { - RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); - } else { - RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); - } - SetCommandExitStatus(error); - }]; - - return CHIP_NO_ERROR; - } -}; - /* * Attribute LocalTemperatureCalibration */ @@ -91601,6 +91909,92 @@ class SubscribeAttributeThermostatSystemMode : public SubscribeAttribute { } }; +#if MTR_ENABLE_PROVISIONAL + +/* + * Attribute AlarmMask + */ +class ReadThermostatAlarmMask : public ReadAttribute { +public: + ReadThermostatAlarmMask() + : ReadAttribute("alarm-mask") + { + } + + ~ReadThermostatAlarmMask() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::AttributeId attributeId = chip::app::Clusters::Thermostat::Attributes::AlarmMask::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReadAttribute (0x%08" PRIX32 ") on endpoint %u", endpointId, clusterId, attributeId); + + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + [cluster readAttributeAlarmMaskWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.AlarmMask response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + LogNSError("Thermostat AlarmMask read Error", error); + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + return CHIP_NO_ERROR; + } +}; + +class SubscribeAttributeThermostatAlarmMask : public SubscribeAttribute { +public: + SubscribeAttributeThermostatAlarmMask() + : SubscribeAttribute("alarm-mask") + { + } + + ~SubscribeAttributeThermostatAlarmMask() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId attributeId = chip::app::Clusters::Thermostat::Attributes::AlarmMask::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReportAttribute (0x%08" PRIX32 ") on endpoint %u", clusterId, attributeId, endpointId); + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(mMinInterval) maxInterval:@(mMaxInterval)]; + if (mKeepSubscriptions.HasValue()) { + params.replaceExistingSubscriptions = !mKeepSubscriptions.Value(); + } + if (mFabricFiltered.HasValue()) { + params.filterByFabric = mFabricFiltered.Value(); + } + if (mAutoResubscribe.HasValue()) { + params.resubscribeAutomatically = mAutoResubscribe.Value(); + } + [cluster subscribeAttributeAlarmMaskWithParams:params + subscriptionEstablished:^() { mSubscriptionEstablished = YES; } + reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.AlarmMask response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + + return CHIP_NO_ERROR; + } +}; + +#endif // MTR_ENABLE_PROVISIONAL + /* * Attribute ThermostatRunningMode */ @@ -94152,35 +94546,1010 @@ class SubscribeAttributeThermostatACCoilTemperature : public SubscribeAttribute } }; +#if MTR_ENABLE_PROVISIONAL + +/* + * Attribute ACCapacityFormat + */ +class ReadThermostatACCapacityFormat : public ReadAttribute { +public: + ReadThermostatACCapacityFormat() + : ReadAttribute("accapacity-format") + { + } + + ~ReadThermostatACCapacityFormat() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::AttributeId attributeId = chip::app::Clusters::Thermostat::Attributes::ACCapacityFormat::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReadAttribute (0x%08" PRIX32 ") on endpoint %u", endpointId, clusterId, attributeId); + + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + [cluster readAttributeACCapacityFormatWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.ACCapacityFormat response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + LogNSError("Thermostat ACCapacityFormat read Error", error); + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + return CHIP_NO_ERROR; + } +}; + +class WriteThermostatACCapacityFormat : public WriteAttribute { +public: + WriteThermostatACCapacityFormat() + : WriteAttribute("accapacity-format") + { + AddArgument("attr-name", "accapacity-format"); + AddArgument("attr-value", 0, UINT8_MAX, &mValue); + WriteAttribute::AddArguments(); + } + + ~WriteThermostatACCapacityFormat() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::AttributeId attributeId = chip::app::Clusters::Thermostat::Attributes::ACCapacityFormat::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") WriteAttribute (0x%08" PRIX32 ") on endpoint %u", clusterId, attributeId, endpointId); + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + __auto_type * params = [[MTRWriteParams alloc] init]; + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; + params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; + NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; + + [cluster writeAttributeACCapacityFormatWithValue:value params:params completion:^(NSError * _Nullable error) { + if (error != nil) { + LogNSError("Thermostat ACCapacityFormat write Error", error); + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + return CHIP_NO_ERROR; + } + +private: + uint8_t mValue; +}; + +class SubscribeAttributeThermostatACCapacityFormat : public SubscribeAttribute { +public: + SubscribeAttributeThermostatACCapacityFormat() + : SubscribeAttribute("accapacity-format") + { + } + + ~SubscribeAttributeThermostatACCapacityFormat() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId attributeId = chip::app::Clusters::Thermostat::Attributes::ACCapacityFormat::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReportAttribute (0x%08" PRIX32 ") on endpoint %u", clusterId, attributeId, endpointId); + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(mMinInterval) maxInterval:@(mMaxInterval)]; + if (mKeepSubscriptions.HasValue()) { + params.replaceExistingSubscriptions = !mKeepSubscriptions.Value(); + } + if (mFabricFiltered.HasValue()) { + params.filterByFabric = mFabricFiltered.Value(); + } + if (mAutoResubscribe.HasValue()) { + params.resubscribeAutomatically = mAutoResubscribe.Value(); + } + [cluster subscribeAttributeACCapacityFormatWithParams:params + subscriptionEstablished:^() { mSubscriptionEstablished = YES; } + reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.ACCapacityFormat response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + + return CHIP_NO_ERROR; + } +}; + +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + +/* + * Attribute PresetTypes + */ +class ReadThermostatPresetTypes : public ReadAttribute { +public: + ReadThermostatPresetTypes() + : ReadAttribute("preset-types") + { + } + + ~ReadThermostatPresetTypes() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::AttributeId attributeId = chip::app::Clusters::Thermostat::Attributes::PresetTypes::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReadAttribute (0x%08" PRIX32 ") on endpoint %u", endpointId, clusterId, attributeId); + + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + [cluster readAttributePresetTypesWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.PresetTypes response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + LogNSError("Thermostat PresetTypes read Error", error); + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + return CHIP_NO_ERROR; + } +}; + +class SubscribeAttributeThermostatPresetTypes : public SubscribeAttribute { +public: + SubscribeAttributeThermostatPresetTypes() + : SubscribeAttribute("preset-types") + { + } + + ~SubscribeAttributeThermostatPresetTypes() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId attributeId = chip::app::Clusters::Thermostat::Attributes::PresetTypes::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReportAttribute (0x%08" PRIX32 ") on endpoint %u", clusterId, attributeId, endpointId); + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(mMinInterval) maxInterval:@(mMaxInterval)]; + if (mKeepSubscriptions.HasValue()) { + params.replaceExistingSubscriptions = !mKeepSubscriptions.Value(); + } + if (mFabricFiltered.HasValue()) { + params.filterByFabric = mFabricFiltered.Value(); + } + if (mAutoResubscribe.HasValue()) { + params.resubscribeAutomatically = mAutoResubscribe.Value(); + } + [cluster subscribeAttributePresetTypesWithParams:params + subscriptionEstablished:^() { mSubscriptionEstablished = YES; } + reportHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.PresetTypes response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + + return CHIP_NO_ERROR; + } +}; + +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + +/* + * Attribute ScheduleTypes + */ +class ReadThermostatScheduleTypes : public ReadAttribute { +public: + ReadThermostatScheduleTypes() + : ReadAttribute("schedule-types") + { + } + + ~ReadThermostatScheduleTypes() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::AttributeId attributeId = chip::app::Clusters::Thermostat::Attributes::ScheduleTypes::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReadAttribute (0x%08" PRIX32 ") on endpoint %u", endpointId, clusterId, attributeId); + + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + [cluster readAttributeScheduleTypesWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.ScheduleTypes response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + LogNSError("Thermostat ScheduleTypes read Error", error); + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + return CHIP_NO_ERROR; + } +}; + +class SubscribeAttributeThermostatScheduleTypes : public SubscribeAttribute { +public: + SubscribeAttributeThermostatScheduleTypes() + : SubscribeAttribute("schedule-types") + { + } + + ~SubscribeAttributeThermostatScheduleTypes() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId attributeId = chip::app::Clusters::Thermostat::Attributes::ScheduleTypes::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReportAttribute (0x%08" PRIX32 ") on endpoint %u", clusterId, attributeId, endpointId); + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(mMinInterval) maxInterval:@(mMaxInterval)]; + if (mKeepSubscriptions.HasValue()) { + params.replaceExistingSubscriptions = !mKeepSubscriptions.Value(); + } + if (mFabricFiltered.HasValue()) { + params.filterByFabric = mFabricFiltered.Value(); + } + if (mAutoResubscribe.HasValue()) { + params.resubscribeAutomatically = mAutoResubscribe.Value(); + } + [cluster subscribeAttributeScheduleTypesWithParams:params + subscriptionEstablished:^() { mSubscriptionEstablished = YES; } + reportHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.ScheduleTypes response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + + return CHIP_NO_ERROR; + } +}; + +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + +/* + * Attribute NumberOfPresets + */ +class ReadThermostatNumberOfPresets : public ReadAttribute { +public: + ReadThermostatNumberOfPresets() + : ReadAttribute("number-of-presets") + { + } + + ~ReadThermostatNumberOfPresets() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::AttributeId attributeId = chip::app::Clusters::Thermostat::Attributes::NumberOfPresets::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReadAttribute (0x%08" PRIX32 ") on endpoint %u", endpointId, clusterId, attributeId); + + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + [cluster readAttributeNumberOfPresetsWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.NumberOfPresets response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + LogNSError("Thermostat NumberOfPresets read Error", error); + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + return CHIP_NO_ERROR; + } +}; + +class SubscribeAttributeThermostatNumberOfPresets : public SubscribeAttribute { +public: + SubscribeAttributeThermostatNumberOfPresets() + : SubscribeAttribute("number-of-presets") + { + } + + ~SubscribeAttributeThermostatNumberOfPresets() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId attributeId = chip::app::Clusters::Thermostat::Attributes::NumberOfPresets::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReportAttribute (0x%08" PRIX32 ") on endpoint %u", clusterId, attributeId, endpointId); + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(mMinInterval) maxInterval:@(mMaxInterval)]; + if (mKeepSubscriptions.HasValue()) { + params.replaceExistingSubscriptions = !mKeepSubscriptions.Value(); + } + if (mFabricFiltered.HasValue()) { + params.filterByFabric = mFabricFiltered.Value(); + } + if (mAutoResubscribe.HasValue()) { + params.resubscribeAutomatically = mAutoResubscribe.Value(); + } + [cluster subscribeAttributeNumberOfPresetsWithParams:params + subscriptionEstablished:^() { mSubscriptionEstablished = YES; } + reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.NumberOfPresets response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + + return CHIP_NO_ERROR; + } +}; + +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + +/* + * Attribute NumberOfSchedules + */ +class ReadThermostatNumberOfSchedules : public ReadAttribute { +public: + ReadThermostatNumberOfSchedules() + : ReadAttribute("number-of-schedules") + { + } + + ~ReadThermostatNumberOfSchedules() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::AttributeId attributeId = chip::app::Clusters::Thermostat::Attributes::NumberOfSchedules::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReadAttribute (0x%08" PRIX32 ") on endpoint %u", endpointId, clusterId, attributeId); + + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + [cluster readAttributeNumberOfSchedulesWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.NumberOfSchedules response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + LogNSError("Thermostat NumberOfSchedules read Error", error); + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + return CHIP_NO_ERROR; + } +}; + +class SubscribeAttributeThermostatNumberOfSchedules : public SubscribeAttribute { +public: + SubscribeAttributeThermostatNumberOfSchedules() + : SubscribeAttribute("number-of-schedules") + { + } + + ~SubscribeAttributeThermostatNumberOfSchedules() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId attributeId = chip::app::Clusters::Thermostat::Attributes::NumberOfSchedules::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReportAttribute (0x%08" PRIX32 ") on endpoint %u", clusterId, attributeId, endpointId); + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(mMinInterval) maxInterval:@(mMaxInterval)]; + if (mKeepSubscriptions.HasValue()) { + params.replaceExistingSubscriptions = !mKeepSubscriptions.Value(); + } + if (mFabricFiltered.HasValue()) { + params.filterByFabric = mFabricFiltered.Value(); + } + if (mAutoResubscribe.HasValue()) { + params.resubscribeAutomatically = mAutoResubscribe.Value(); + } + [cluster subscribeAttributeNumberOfSchedulesWithParams:params + subscriptionEstablished:^() { mSubscriptionEstablished = YES; } + reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.NumberOfSchedules response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + + return CHIP_NO_ERROR; + } +}; + +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + +/* + * Attribute NumberOfScheduleTransitions + */ +class ReadThermostatNumberOfScheduleTransitions : public ReadAttribute { +public: + ReadThermostatNumberOfScheduleTransitions() + : ReadAttribute("number-of-schedule-transitions") + { + } + + ~ReadThermostatNumberOfScheduleTransitions() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::AttributeId attributeId = chip::app::Clusters::Thermostat::Attributes::NumberOfScheduleTransitions::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReadAttribute (0x%08" PRIX32 ") on endpoint %u", endpointId, clusterId, attributeId); + + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + [cluster readAttributeNumberOfScheduleTransitionsWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.NumberOfScheduleTransitions response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + LogNSError("Thermostat NumberOfScheduleTransitions read Error", error); + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + return CHIP_NO_ERROR; + } +}; + +class SubscribeAttributeThermostatNumberOfScheduleTransitions : public SubscribeAttribute { +public: + SubscribeAttributeThermostatNumberOfScheduleTransitions() + : SubscribeAttribute("number-of-schedule-transitions") + { + } + + ~SubscribeAttributeThermostatNumberOfScheduleTransitions() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId attributeId = chip::app::Clusters::Thermostat::Attributes::NumberOfScheduleTransitions::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReportAttribute (0x%08" PRIX32 ") on endpoint %u", clusterId, attributeId, endpointId); + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(mMinInterval) maxInterval:@(mMaxInterval)]; + if (mKeepSubscriptions.HasValue()) { + params.replaceExistingSubscriptions = !mKeepSubscriptions.Value(); + } + if (mFabricFiltered.HasValue()) { + params.filterByFabric = mFabricFiltered.Value(); + } + if (mAutoResubscribe.HasValue()) { + params.resubscribeAutomatically = mAutoResubscribe.Value(); + } + [cluster subscribeAttributeNumberOfScheduleTransitionsWithParams:params + subscriptionEstablished:^() { mSubscriptionEstablished = YES; } + reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.NumberOfScheduleTransitions response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + + return CHIP_NO_ERROR; + } +}; + +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + +/* + * Attribute NumberOfScheduleTransitionPerDay + */ +class ReadThermostatNumberOfScheduleTransitionPerDay : public ReadAttribute { +public: + ReadThermostatNumberOfScheduleTransitionPerDay() + : ReadAttribute("number-of-schedule-transition-per-day") + { + } + + ~ReadThermostatNumberOfScheduleTransitionPerDay() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::AttributeId attributeId = chip::app::Clusters::Thermostat::Attributes::NumberOfScheduleTransitionPerDay::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReadAttribute (0x%08" PRIX32 ") on endpoint %u", endpointId, clusterId, attributeId); + + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + [cluster readAttributeNumberOfScheduleTransitionPerDayWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.NumberOfScheduleTransitionPerDay response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + LogNSError("Thermostat NumberOfScheduleTransitionPerDay read Error", error); + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + return CHIP_NO_ERROR; + } +}; + +class SubscribeAttributeThermostatNumberOfScheduleTransitionPerDay : public SubscribeAttribute { +public: + SubscribeAttributeThermostatNumberOfScheduleTransitionPerDay() + : SubscribeAttribute("number-of-schedule-transition-per-day") + { + } + + ~SubscribeAttributeThermostatNumberOfScheduleTransitionPerDay() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId attributeId = chip::app::Clusters::Thermostat::Attributes::NumberOfScheduleTransitionPerDay::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReportAttribute (0x%08" PRIX32 ") on endpoint %u", clusterId, attributeId, endpointId); + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(mMinInterval) maxInterval:@(mMaxInterval)]; + if (mKeepSubscriptions.HasValue()) { + params.replaceExistingSubscriptions = !mKeepSubscriptions.Value(); + } + if (mFabricFiltered.HasValue()) { + params.filterByFabric = mFabricFiltered.Value(); + } + if (mAutoResubscribe.HasValue()) { + params.resubscribeAutomatically = mAutoResubscribe.Value(); + } + [cluster subscribeAttributeNumberOfScheduleTransitionPerDayWithParams:params + subscriptionEstablished:^() { mSubscriptionEstablished = YES; } + reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.NumberOfScheduleTransitionPerDay response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + + return CHIP_NO_ERROR; + } +}; + +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + +/* + * Attribute ActivePresetHandle + */ +class ReadThermostatActivePresetHandle : public ReadAttribute { +public: + ReadThermostatActivePresetHandle() + : ReadAttribute("active-preset-handle") + { + } + + ~ReadThermostatActivePresetHandle() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::AttributeId attributeId = chip::app::Clusters::Thermostat::Attributes::ActivePresetHandle::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReadAttribute (0x%08" PRIX32 ") on endpoint %u", endpointId, clusterId, attributeId); + + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + [cluster readAttributeActivePresetHandleWithCompletion:^(NSData * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.ActivePresetHandle response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + LogNSError("Thermostat ActivePresetHandle read Error", error); + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + return CHIP_NO_ERROR; + } +}; + +class SubscribeAttributeThermostatActivePresetHandle : public SubscribeAttribute { +public: + SubscribeAttributeThermostatActivePresetHandle() + : SubscribeAttribute("active-preset-handle") + { + } + + ~SubscribeAttributeThermostatActivePresetHandle() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId attributeId = chip::app::Clusters::Thermostat::Attributes::ActivePresetHandle::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReportAttribute (0x%08" PRIX32 ") on endpoint %u", clusterId, attributeId, endpointId); + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(mMinInterval) maxInterval:@(mMaxInterval)]; + if (mKeepSubscriptions.HasValue()) { + params.replaceExistingSubscriptions = !mKeepSubscriptions.Value(); + } + if (mFabricFiltered.HasValue()) { + params.filterByFabric = mFabricFiltered.Value(); + } + if (mAutoResubscribe.HasValue()) { + params.resubscribeAutomatically = mAutoResubscribe.Value(); + } + [cluster subscribeAttributeActivePresetHandleWithParams:params + subscriptionEstablished:^() { mSubscriptionEstablished = YES; } + reportHandler:^(NSData * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.ActivePresetHandle response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + + return CHIP_NO_ERROR; + } +}; + +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + +/* + * Attribute ActiveScheduleHandle + */ +class ReadThermostatActiveScheduleHandle : public ReadAttribute { +public: + ReadThermostatActiveScheduleHandle() + : ReadAttribute("active-schedule-handle") + { + } + + ~ReadThermostatActiveScheduleHandle() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::AttributeId attributeId = chip::app::Clusters::Thermostat::Attributes::ActiveScheduleHandle::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReadAttribute (0x%08" PRIX32 ") on endpoint %u", endpointId, clusterId, attributeId); + + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + [cluster readAttributeActiveScheduleHandleWithCompletion:^(NSData * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.ActiveScheduleHandle response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + LogNSError("Thermostat ActiveScheduleHandle read Error", error); + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + return CHIP_NO_ERROR; + } +}; + +class SubscribeAttributeThermostatActiveScheduleHandle : public SubscribeAttribute { +public: + SubscribeAttributeThermostatActiveScheduleHandle() + : SubscribeAttribute("active-schedule-handle") + { + } + + ~SubscribeAttributeThermostatActiveScheduleHandle() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId attributeId = chip::app::Clusters::Thermostat::Attributes::ActiveScheduleHandle::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReportAttribute (0x%08" PRIX32 ") on endpoint %u", clusterId, attributeId, endpointId); + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(mMinInterval) maxInterval:@(mMaxInterval)]; + if (mKeepSubscriptions.HasValue()) { + params.replaceExistingSubscriptions = !mKeepSubscriptions.Value(); + } + if (mFabricFiltered.HasValue()) { + params.filterByFabric = mFabricFiltered.Value(); + } + if (mAutoResubscribe.HasValue()) { + params.resubscribeAutomatically = mAutoResubscribe.Value(); + } + [cluster subscribeAttributeActiveScheduleHandleWithParams:params + subscriptionEstablished:^() { mSubscriptionEstablished = YES; } + reportHandler:^(NSData * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.ActiveScheduleHandle response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + + return CHIP_NO_ERROR; + } +}; + +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + +/* + * Attribute Presets + */ +class ReadThermostatPresets : public ReadAttribute { +public: + ReadThermostatPresets() + : ReadAttribute("presets") + { + } + + ~ReadThermostatPresets() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::AttributeId attributeId = chip::app::Clusters::Thermostat::Attributes::Presets::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReadAttribute (0x%08" PRIX32 ") on endpoint %u", endpointId, clusterId, attributeId); + + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + [cluster readAttributePresetsWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.Presets response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + LogNSError("Thermostat Presets read Error", error); + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + return CHIP_NO_ERROR; + } +}; + +class WriteThermostatPresets : public WriteAttribute { +public: + WriteThermostatPresets() + : WriteAttribute("presets") + , mComplex(&mValue) + { + AddArgument("attr-name", "presets"); + AddArgument("attr-value", &mComplex); + WriteAttribute::AddArguments(); + } + + ~WriteThermostatPresets() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::AttributeId attributeId = chip::app::Clusters::Thermostat::Attributes::Presets::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") WriteAttribute (0x%08" PRIX32 ") on endpoint %u", clusterId, attributeId, endpointId); + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + __auto_type * params = [[MTRWriteParams alloc] init]; + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; + params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; + NSArray * _Nonnull value; + { // Scope for our temporary variables + auto * array_0 = [NSMutableArray new]; + for (auto & entry_0 : mValue) { + MTRThermostatClusterPresetStruct * newElement_0; + newElement_0 = [MTRThermostatClusterPresetStruct new]; + if (entry_0.presetHandle.IsNull()) { + newElement_0.presetHandle = nil; + } else { + newElement_0.presetHandle = [NSData dataWithBytes:entry_0.presetHandle.Value().data() length:entry_0.presetHandle.Value().size()]; + } + newElement_0.presetScenario = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.presetScenario)]; + if (entry_0.name.HasValue()) { + if (entry_0.name.Value().IsNull()) { + newElement_0.name = nil; + } else { + newElement_0.name = [[NSString alloc] initWithBytes:entry_0.name.Value().Value().data() length:entry_0.name.Value().Value().size() encoding:NSUTF8StringEncoding]; + } + } else { + newElement_0.name = nil; + } + if (entry_0.coolingSetpoint.HasValue()) { + newElement_0.coolingSetpoint = [NSNumber numberWithShort:entry_0.coolingSetpoint.Value()]; + } else { + newElement_0.coolingSetpoint = nil; + } + if (entry_0.heatingSetpoint.HasValue()) { + newElement_0.heatingSetpoint = [NSNumber numberWithShort:entry_0.heatingSetpoint.Value()]; + } else { + newElement_0.heatingSetpoint = nil; + } + if (entry_0.builtIn.IsNull()) { + newElement_0.builtIn = nil; + } else { + newElement_0.builtIn = [NSNumber numberWithBool:entry_0.builtIn.Value()]; + } + [array_0 addObject:newElement_0]; + } + value = array_0; + } + + [cluster writeAttributePresetsWithValue:value params:params completion:^(NSError * _Nullable error) { + if (error != nil) { + LogNSError("Thermostat Presets write Error", error); + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + return CHIP_NO_ERROR; + } + +private: + chip::app::DataModel::List mValue; + TypedComplexArgument> mComplex; +}; + +class SubscribeAttributeThermostatPresets : public SubscribeAttribute { +public: + SubscribeAttributeThermostatPresets() + : SubscribeAttribute("presets") + { + } + + ~SubscribeAttributeThermostatPresets() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId attributeId = chip::app::Clusters::Thermostat::Attributes::Presets::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReportAttribute (0x%08" PRIX32 ") on endpoint %u", clusterId, attributeId, endpointId); + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(mMinInterval) maxInterval:@(mMaxInterval)]; + if (mKeepSubscriptions.HasValue()) { + params.replaceExistingSubscriptions = !mKeepSubscriptions.Value(); + } + if (mFabricFiltered.HasValue()) { + params.filterByFabric = mFabricFiltered.Value(); + } + if (mAutoResubscribe.HasValue()) { + params.resubscribeAutomatically = mAutoResubscribe.Value(); + } + [cluster subscribeAttributePresetsWithParams:params + subscriptionEstablished:^() { mSubscriptionEstablished = YES; } + reportHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.Presets response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + + return CHIP_NO_ERROR; + } +}; + +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + /* - * Attribute ACCapacityformat + * Attribute Schedules */ -class ReadThermostatACCapacityformat : public ReadAttribute { +class ReadThermostatSchedules : public ReadAttribute { public: - ReadThermostatACCapacityformat() - : ReadAttribute("accapacityformat") + ReadThermostatSchedules() + : ReadAttribute("schedules") { } - ~ReadThermostatACCapacityformat() + ~ReadThermostatSchedules() { } CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; - constexpr chip::AttributeId attributeId = chip::app::Clusters::Thermostat::Attributes::ACCapacityformat::Id; + constexpr chip::AttributeId attributeId = chip::app::Clusters::Thermostat::Attributes::Schedules::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReadAttribute (0x%08" PRIX32 ") on endpoint %u", endpointId, clusterId, attributeId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; - [cluster readAttributeACCapacityformatWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"Thermostat.ACCapacityformat response %@", [value description]); + [cluster readAttributeSchedulesWithCompletion:^(NSArray * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.Schedules response %@", [value description]); if (error == nil) { RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); } else { - LogNSError("Thermostat ACCapacityformat read Error", error); + LogNSError("Thermostat Schedules read Error", error); RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); } SetCommandExitStatus(error); @@ -94189,24 +95558,25 @@ class ReadThermostatACCapacityformat : public ReadAttribute { } }; -class WriteThermostatACCapacityformat : public WriteAttribute { +class WriteThermostatSchedules : public WriteAttribute { public: - WriteThermostatACCapacityformat() - : WriteAttribute("accapacityformat") + WriteThermostatSchedules() + : WriteAttribute("schedules") + , mComplex(&mValue) { - AddArgument("attr-name", "accapacityformat"); - AddArgument("attr-value", 0, UINT8_MAX, &mValue); + AddArgument("attr-name", "schedules"); + AddArgument("attr-value", &mComplex); WriteAttribute::AddArguments(); } - ~WriteThermostatACCapacityformat() + ~WriteThermostatSchedules() { } CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; - constexpr chip::AttributeId attributeId = chip::app::Clusters::Thermostat::Attributes::ACCapacityformat::Id; + constexpr chip::AttributeId attributeId = chip::app::Clusters::Thermostat::Attributes::Schedules::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") WriteAttribute (0x%08" PRIX32 ") on endpoint %u", clusterId, attributeId, endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); @@ -94214,11 +95584,76 @@ class WriteThermostatACCapacityformat : public WriteAttribute { __auto_type * params = [[MTRWriteParams alloc] init]; params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; - NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; + NSArray * _Nonnull value; + { // Scope for our temporary variables + auto * array_0 = [NSMutableArray new]; + for (auto & entry_0 : mValue) { + MTRThermostatClusterScheduleStruct * newElement_0; + newElement_0 = [MTRThermostatClusterScheduleStruct new]; + if (entry_0.scheduleHandle.IsNull()) { + newElement_0.scheduleHandle = nil; + } else { + newElement_0.scheduleHandle = [NSData dataWithBytes:entry_0.scheduleHandle.Value().data() length:entry_0.scheduleHandle.Value().size()]; + } + newElement_0.systemMode = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_0.systemMode)]; + if (entry_0.name.HasValue()) { + newElement_0.name = [[NSString alloc] initWithBytes:entry_0.name.Value().data() length:entry_0.name.Value().size() encoding:NSUTF8StringEncoding]; + } else { + newElement_0.name = nil; + } + if (entry_0.presetHandle.HasValue()) { + newElement_0.presetHandle = [NSData dataWithBytes:entry_0.presetHandle.Value().data() length:entry_0.presetHandle.Value().size()]; + } else { + newElement_0.presetHandle = nil; + } + { // Scope for our temporary variables + auto * array_2 = [NSMutableArray new]; + for (auto & entry_2 : entry_0.transitions) { + MTRThermostatClusterScheduleTransitionStruct * newElement_2; + newElement_2 = [MTRThermostatClusterScheduleTransitionStruct new]; + newElement_2.dayOfWeek = [NSNumber numberWithUnsignedChar:entry_2.dayOfWeek.Raw()]; + newElement_2.transitionTime = [NSNumber numberWithUnsignedShort:entry_2.transitionTime]; + if (entry_2.presetHandle.HasValue()) { + newElement_2.presetHandle = [NSData dataWithBytes:entry_2.presetHandle.Value().data() length:entry_2.presetHandle.Value().size()]; + } else { + newElement_2.presetHandle = nil; + } + if (entry_2.systemMode.HasValue()) { + newElement_2.systemMode = [NSNumber numberWithUnsignedChar:chip::to_underlying(entry_2.systemMode.Value())]; + } else { + newElement_2.systemMode = nil; + } + if (entry_2.coolingSetpoint.HasValue()) { + newElement_2.coolingSetpoint = [NSNumber numberWithShort:entry_2.coolingSetpoint.Value()]; + } else { + newElement_2.coolingSetpoint = nil; + } + if (entry_2.heatingSetpoint.HasValue()) { + newElement_2.heatingSetpoint = [NSNumber numberWithShort:entry_2.heatingSetpoint.Value()]; + } else { + newElement_2.heatingSetpoint = nil; + } + [array_2 addObject:newElement_2]; + } + newElement_0.transitions = array_2; + } + if (entry_0.builtIn.HasValue()) { + if (entry_0.builtIn.Value().IsNull()) { + newElement_0.builtIn = nil; + } else { + newElement_0.builtIn = [NSNumber numberWithBool:entry_0.builtIn.Value().Value()]; + } + } else { + newElement_0.builtIn = nil; + } + [array_0 addObject:newElement_0]; + } + value = array_0; + } - [cluster writeAttributeACCapacityformatWithValue:value params:params completion:^(NSError * _Nullable error) { + [cluster writeAttributeSchedulesWithValue:value params:params completion:^(NSError * _Nullable error) { if (error != nil) { - LogNSError("Thermostat ACCapacityformat write Error", error); + LogNSError("Thermostat Schedules write Error", error); RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); } SetCommandExitStatus(error); @@ -94227,24 +95662,280 @@ class WriteThermostatACCapacityformat : public WriteAttribute { } private: - uint8_t mValue; + chip::app::DataModel::List mValue; + TypedComplexArgument> mComplex; +}; + +class SubscribeAttributeThermostatSchedules : public SubscribeAttribute { +public: + SubscribeAttributeThermostatSchedules() + : SubscribeAttribute("schedules") + { + } + + ~SubscribeAttributeThermostatSchedules() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId attributeId = chip::app::Clusters::Thermostat::Attributes::Schedules::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReportAttribute (0x%08" PRIX32 ") on endpoint %u", clusterId, attributeId, endpointId); + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(mMinInterval) maxInterval:@(mMaxInterval)]; + if (mKeepSubscriptions.HasValue()) { + params.replaceExistingSubscriptions = !mKeepSubscriptions.Value(); + } + if (mFabricFiltered.HasValue()) { + params.filterByFabric = mFabricFiltered.Value(); + } + if (mAutoResubscribe.HasValue()) { + params.resubscribeAutomatically = mAutoResubscribe.Value(); + } + [cluster subscribeAttributeSchedulesWithParams:params + subscriptionEstablished:^() { mSubscriptionEstablished = YES; } + reportHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.Schedules response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + + return CHIP_NO_ERROR; + } +}; + +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + +/* + * Attribute PresetsSchedulesEditable + */ +class ReadThermostatPresetsSchedulesEditable : public ReadAttribute { +public: + ReadThermostatPresetsSchedulesEditable() + : ReadAttribute("presets-schedules-editable") + { + } + + ~ReadThermostatPresetsSchedulesEditable() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::AttributeId attributeId = chip::app::Clusters::Thermostat::Attributes::PresetsSchedulesEditable::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReadAttribute (0x%08" PRIX32 ") on endpoint %u", endpointId, clusterId, attributeId); + + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + [cluster readAttributePresetsSchedulesEditableWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.PresetsSchedulesEditable response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + LogNSError("Thermostat PresetsSchedulesEditable read Error", error); + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + return CHIP_NO_ERROR; + } +}; + +class SubscribeAttributeThermostatPresetsSchedulesEditable : public SubscribeAttribute { +public: + SubscribeAttributeThermostatPresetsSchedulesEditable() + : SubscribeAttribute("presets-schedules-editable") + { + } + + ~SubscribeAttributeThermostatPresetsSchedulesEditable() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId attributeId = chip::app::Clusters::Thermostat::Attributes::PresetsSchedulesEditable::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReportAttribute (0x%08" PRIX32 ") on endpoint %u", clusterId, attributeId, endpointId); + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(mMinInterval) maxInterval:@(mMaxInterval)]; + if (mKeepSubscriptions.HasValue()) { + params.replaceExistingSubscriptions = !mKeepSubscriptions.Value(); + } + if (mFabricFiltered.HasValue()) { + params.filterByFabric = mFabricFiltered.Value(); + } + if (mAutoResubscribe.HasValue()) { + params.resubscribeAutomatically = mAutoResubscribe.Value(); + } + [cluster subscribeAttributePresetsSchedulesEditableWithParams:params + subscriptionEstablished:^() { mSubscriptionEstablished = YES; } + reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.PresetsSchedulesEditable response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + + return CHIP_NO_ERROR; + } +}; + +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + +/* + * Attribute TemperatureSetpointHoldPolicy + */ +class ReadThermostatTemperatureSetpointHoldPolicy : public ReadAttribute { +public: + ReadThermostatTemperatureSetpointHoldPolicy() + : ReadAttribute("temperature-setpoint-hold-policy") + { + } + + ~ReadThermostatTemperatureSetpointHoldPolicy() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::AttributeId attributeId = chip::app::Clusters::Thermostat::Attributes::TemperatureSetpointHoldPolicy::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReadAttribute (0x%08" PRIX32 ") on endpoint %u", endpointId, clusterId, attributeId); + + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + [cluster readAttributeTemperatureSetpointHoldPolicyWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.TemperatureSetpointHoldPolicy response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + LogNSError("Thermostat TemperatureSetpointHoldPolicy read Error", error); + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + return CHIP_NO_ERROR; + } +}; + +class SubscribeAttributeThermostatTemperatureSetpointHoldPolicy : public SubscribeAttribute { +public: + SubscribeAttributeThermostatTemperatureSetpointHoldPolicy() + : SubscribeAttribute("temperature-setpoint-hold-policy") + { + } + + ~SubscribeAttributeThermostatTemperatureSetpointHoldPolicy() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId attributeId = chip::app::Clusters::Thermostat::Attributes::TemperatureSetpointHoldPolicy::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReportAttribute (0x%08" PRIX32 ") on endpoint %u", clusterId, attributeId, endpointId); + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(mMinInterval) maxInterval:@(mMaxInterval)]; + if (mKeepSubscriptions.HasValue()) { + params.replaceExistingSubscriptions = !mKeepSubscriptions.Value(); + } + if (mFabricFiltered.HasValue()) { + params.filterByFabric = mFabricFiltered.Value(); + } + if (mAutoResubscribe.HasValue()) { + params.resubscribeAutomatically = mAutoResubscribe.Value(); + } + [cluster subscribeAttributeTemperatureSetpointHoldPolicyWithParams:params + subscriptionEstablished:^() { mSubscriptionEstablished = YES; } + reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.TemperatureSetpointHoldPolicy response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + + return CHIP_NO_ERROR; + } }; -class SubscribeAttributeThermostatACCapacityformat : public SubscribeAttribute { +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + +/* + * Attribute SetpointHoldExpiryTimestamp + */ +class ReadThermostatSetpointHoldExpiryTimestamp : public ReadAttribute { public: - SubscribeAttributeThermostatACCapacityformat() - : SubscribeAttribute("accapacityformat") + ReadThermostatSetpointHoldExpiryTimestamp() + : ReadAttribute("setpoint-hold-expiry-timestamp") { } - ~SubscribeAttributeThermostatACCapacityformat() + ~ReadThermostatSetpointHoldExpiryTimestamp() { } CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; - constexpr chip::CommandId attributeId = chip::app::Clusters::Thermostat::Attributes::ACCapacityformat::Id; + constexpr chip::AttributeId attributeId = chip::app::Clusters::Thermostat::Attributes::SetpointHoldExpiryTimestamp::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReadAttribute (0x%08" PRIX32 ") on endpoint %u", endpointId, clusterId, attributeId); + + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + [cluster readAttributeSetpointHoldExpiryTimestampWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.SetpointHoldExpiryTimestamp response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + LogNSError("Thermostat SetpointHoldExpiryTimestamp read Error", error); + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + return CHIP_NO_ERROR; + } +}; + +class SubscribeAttributeThermostatSetpointHoldExpiryTimestamp : public SubscribeAttribute { +public: + SubscribeAttributeThermostatSetpointHoldExpiryTimestamp() + : SubscribeAttribute("setpoint-hold-expiry-timestamp") + { + } + + ~SubscribeAttributeThermostatSetpointHoldExpiryTimestamp() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId attributeId = chip::app::Clusters::Thermostat::Attributes::SetpointHoldExpiryTimestamp::Id; ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReportAttribute (0x%08" PRIX32 ") on endpoint %u", clusterId, attributeId, endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); @@ -94259,10 +95950,95 @@ class SubscribeAttributeThermostatACCapacityformat : public SubscribeAttribute { if (mAutoResubscribe.HasValue()) { params.resubscribeAutomatically = mAutoResubscribe.Value(); } - [cluster subscribeAttributeACCapacityformatWithParams:params + [cluster subscribeAttributeSetpointHoldExpiryTimestampWithParams:params subscriptionEstablished:^() { mSubscriptionEstablished = YES; } reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { - NSLog(@"Thermostat.ACCapacityformat response %@", [value description]); + NSLog(@"Thermostat.SetpointHoldExpiryTimestamp response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + + return CHIP_NO_ERROR; + } +}; + +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + +/* + * Attribute QueuedPreset + */ +class ReadThermostatQueuedPreset : public ReadAttribute { +public: + ReadThermostatQueuedPreset() + : ReadAttribute("queued-preset") + { + } + + ~ReadThermostatQueuedPreset() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::AttributeId attributeId = chip::app::Clusters::Thermostat::Attributes::QueuedPreset::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReadAttribute (0x%08" PRIX32 ") on endpoint %u", endpointId, clusterId, attributeId); + + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + [cluster readAttributeQueuedPresetWithCompletion:^(MTRThermostatClusterQueuedPresetStruct * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.QueuedPreset response %@", [value description]); + if (error == nil) { + RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); + } else { + LogNSError("Thermostat QueuedPreset read Error", error); + RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error); + } + SetCommandExitStatus(error); + }]; + return CHIP_NO_ERROR; + } +}; + +class SubscribeAttributeThermostatQueuedPreset : public SubscribeAttribute { +public: + SubscribeAttributeThermostatQueuedPreset() + : SubscribeAttribute("queued-preset") + { + } + + ~SubscribeAttributeThermostatQueuedPreset() + { + } + + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override + { + constexpr chip::ClusterId clusterId = chip::app::Clusters::Thermostat::Id; + constexpr chip::CommandId attributeId = chip::app::Clusters::Thermostat::Attributes::QueuedPreset::Id; + + ChipLogProgress(chipTool, "Sending cluster (0x%08" PRIX32 ") ReportAttribute (0x%08" PRIX32 ") on endpoint %u", clusterId, attributeId, endpointId); + dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); + __auto_type * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue]; + __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(mMinInterval) maxInterval:@(mMaxInterval)]; + if (mKeepSubscriptions.HasValue()) { + params.replaceExistingSubscriptions = !mKeepSubscriptions.Value(); + } + if (mFabricFiltered.HasValue()) { + params.filterByFabric = mFabricFiltered.Value(); + } + if (mAutoResubscribe.HasValue()) { + params.resubscribeAutomatically = mAutoResubscribe.Value(); + } + [cluster subscribeAttributeQueuedPresetWithParams:params + subscriptionEstablished:^() { mSubscriptionEstablished = YES; } + reportHandler:^(MTRThermostatClusterQueuedPresetStruct * _Nullable value, NSError * _Nullable error) { + NSLog(@"Thermostat.QueuedPreset response %@", [value description]); if (error == nil) { RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value); } else { @@ -94275,6 +96051,8 @@ class SubscribeAttributeThermostatACCapacityformat : public SubscribeAttribute { } }; +#endif // MTR_ENABLE_PROVISIONAL + /* * Attribute GeneratedCommandList */ @@ -166663,6 +168441,30 @@ void registerClusterThermostat(Commands & commands) make_unique(), // make_unique(), // make_unique(), // +#if MTR_ENABLE_PROVISIONAL + make_unique(), // +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + make_unique(), // +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + make_unique(), // +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + make_unique(), // +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + make_unique(), // +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + make_unique(), // +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + make_unique(), // +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + make_unique(), // +#endif // MTR_ENABLE_PROVISIONAL make_unique(Id), // make_unique(Id), // make_unique(Id), // @@ -166684,9 +168486,6 @@ void registerClusterThermostat(Commands & commands) make_unique(), // make_unique(), // make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // make_unique(), // make_unique(), // make_unique(), // @@ -166726,6 +168525,10 @@ void registerClusterThermostat(Commands & commands) make_unique(), // make_unique(), // make_unique(), // +#if MTR_ENABLE_PROVISIONAL + make_unique(), // + make_unique(), // +#endif // MTR_ENABLE_PROVISIONAL make_unique(), // make_unique(), // make_unique(), // @@ -166788,9 +168591,69 @@ void registerClusterThermostat(Commands & commands) make_unique(), // make_unique(), // make_unique(), // - make_unique(), // - make_unique(), // - make_unique(), // +#if MTR_ENABLE_PROVISIONAL + make_unique(), // + make_unique(), // + make_unique(), // +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + make_unique(), // + make_unique(), // +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + make_unique(), // + make_unique(), // +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + make_unique(), // + make_unique(), // +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + make_unique(), // + make_unique(), // +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + make_unique(), // + make_unique(), // +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + make_unique(), // + make_unique(), // +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + make_unique(), // + make_unique(), // +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + make_unique(), // + make_unique(), // +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + make_unique(), // + make_unique(), // + make_unique(), // +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + make_unique(), // + make_unique(), // + make_unique(), // +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + make_unique(), // + make_unique(), // +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + make_unique(), // + make_unique(), // +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + make_unique(), // + make_unique(), // +#endif // MTR_ENABLE_PROVISIONAL +#if MTR_ENABLE_PROVISIONAL + make_unique(), // + make_unique(), // +#endif // MTR_ENABLE_PROVISIONAL make_unique(), // make_unique(), // make_unique(), // From e1645ba2474453b960929fe54be4d81038700993 Mon Sep 17 00:00:00 2001 From: David Rempel Date: Mon, 27 Nov 2023 13:46:35 -0800 Subject: [PATCH 02/41] Fixed Types (going blind here since I'm not sure how to compile these) --- examples/thermostat/asr/src/TemperatureManager.cpp | 3 ++- examples/thermostat/silabs/src/TemperatureManager.cpp | 3 ++- examples/thermostat/telink/src/TemperatureManager.cpp | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/thermostat/asr/src/TemperatureManager.cpp b/examples/thermostat/asr/src/TemperatureManager.cpp index 219f428e85e781..78ffb8f1de02aa 100644 --- a/examples/thermostat/asr/src/TemperatureManager.cpp +++ b/examples/thermostat/asr/src/TemperatureManager.cpp @@ -25,6 +25,7 @@ using namespace ::chip::DeviceLayer; constexpr EndpointId kThermostatEndpoint = 1; +using chip::app:Clusters::Thermostat; namespace ThermAttr = chip::app::Clusters::Thermostat::Attributes; TemperatureManager TemperatureManager::sTempMgr; @@ -33,7 +34,7 @@ CHIP_ERROR TemperatureManager::Init() { app::DataModel::Nullable temp; int16_t heatingSetpoint, coolingSetpoint; - uint8_t systemMode; + ThermostatSystemModeEnum systemMode; PlatformMgr().LockChipStack(); ThermAttr::LocalTemperature::Get(kThermostatEndpoint, temp); diff --git a/examples/thermostat/silabs/src/TemperatureManager.cpp b/examples/thermostat/silabs/src/TemperatureManager.cpp index 7bff7a7907cb96..10319716016325 100644 --- a/examples/thermostat/silabs/src/TemperatureManager.cpp +++ b/examples/thermostat/silabs/src/TemperatureManager.cpp @@ -36,6 +36,7 @@ using namespace ::chip::DeviceLayer; constexpr EndpointId kThermostatEndpoint = 1; +using chip::app:Clusters::Thermostat; namespace ThermAttr = chip::app::Clusters::Thermostat::Attributes; /********************************************************** * Variable declarations @@ -47,7 +48,7 @@ CHIP_ERROR TemperatureManager::Init() { app::DataModel::Nullable temp; int16_t heatingSetpoint, coolingSetpoint; - uint8_t systemMode; + ThermostatSystemModeEnum systemMode; PlatformMgr().LockChipStack(); ThermAttr::LocalTemperature::Get(kThermostatEndpoint, temp); diff --git a/examples/thermostat/telink/src/TemperatureManager.cpp b/examples/thermostat/telink/src/TemperatureManager.cpp index ca8b0eb4d98cb4..c3123e83aa17da 100644 --- a/examples/thermostat/telink/src/TemperatureManager.cpp +++ b/examples/thermostat/telink/src/TemperatureManager.cpp @@ -28,6 +28,7 @@ using namespace ::chip::DeviceLayer; constexpr EndpointId kThermostatEndpoint = 1; +using chip::app:Clusters::Thermostat; namespace ThermAttr = chip::app::Clusters::Thermostat::Attributes; TemperatureManager TemperatureManager::sTempMgr; @@ -36,7 +37,7 @@ CHIP_ERROR TemperatureManager::Init() { app::DataModel::Nullable temp; int16_t heatingSetpoint, coolingSetpoint; - uint8_t systemMode; + ThermostatSystemModeEnum systemMode; PlatformMgr().LockChipStack(); ThermAttr::LocalTemperature::Get(kThermostatEndpoint, temp); From 135ce2d2f54f1e1a906870b2ac827c1607a183d0 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Mon, 27 Nov 2023 21:48:21 +0000 Subject: [PATCH 03/41] Restyled by whitespace --- src/app/zap-templates/zcl/zcl-with-test-extensions.json | 2 +- src/app/zap-templates/zcl/zcl.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/zap-templates/zcl/zcl-with-test-extensions.json b/src/app/zap-templates/zcl/zcl-with-test-extensions.json index 270579d8d50b7c..b62179fdc700c7 100644 --- a/src/app/zap-templates/zcl/zcl-with-test-extensions.json +++ b/src/app/zap-templates/zcl/zcl-with-test-extensions.json @@ -530,7 +530,7 @@ "FeatureMap" ], "Air Quality": ["AirQuality", "FeatureMap"], - "Thermostat": ["QueuedPreset"] + "Thermostat": ["QueuedPreset"] }, "defaultReportingPolicy": "mandatory", "ZCLDataTypes": ["ARRAY", "BITMAP", "ENUM", "NUMBER", "STRING", "STRUCT"], diff --git a/src/app/zap-templates/zcl/zcl.json b/src/app/zap-templates/zcl/zcl.json index 88e630cc43614a..704b1b1057274a 100644 --- a/src/app/zap-templates/zcl/zcl.json +++ b/src/app/zap-templates/zcl/zcl.json @@ -528,7 +528,7 @@ "FeatureMap" ], "Air Quality": ["AirQuality", "FeatureMap"], - "Thermostat": ["QueuedPreset"] + "Thermostat": ["QueuedPreset"] }, "defaultReportingPolicy": "mandatory", "ZCLDataTypes": ["ARRAY", "BITMAP", "ENUM", "NUMBER", "STRING", "STRUCT"], From 39556b835393d4f87c549ba6fee06a2867e6b4d1 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Mon, 27 Nov 2023 21:48:23 +0000 Subject: [PATCH 04/41] Restyled by clang-format --- examples/thermostat/asr/src/TemperatureManager.cpp | 2 +- examples/thermostat/silabs/src/TemperatureManager.cpp | 2 +- examples/thermostat/telink/src/TemperatureManager.cpp | 2 +- src/app/clusters/thermostat-server/thermostat-server.cpp | 6 ++++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/examples/thermostat/asr/src/TemperatureManager.cpp b/examples/thermostat/asr/src/TemperatureManager.cpp index 78ffb8f1de02aa..4f729924027043 100644 --- a/examples/thermostat/asr/src/TemperatureManager.cpp +++ b/examples/thermostat/asr/src/TemperatureManager.cpp @@ -25,7 +25,7 @@ using namespace ::chip::DeviceLayer; constexpr EndpointId kThermostatEndpoint = 1; -using chip::app:Clusters::Thermostat; +using chip::app : Clusters::Thermostat; namespace ThermAttr = chip::app::Clusters::Thermostat::Attributes; TemperatureManager TemperatureManager::sTempMgr; diff --git a/examples/thermostat/silabs/src/TemperatureManager.cpp b/examples/thermostat/silabs/src/TemperatureManager.cpp index 10319716016325..674a1e442bf586 100644 --- a/examples/thermostat/silabs/src/TemperatureManager.cpp +++ b/examples/thermostat/silabs/src/TemperatureManager.cpp @@ -36,7 +36,7 @@ using namespace ::chip::DeviceLayer; constexpr EndpointId kThermostatEndpoint = 1; -using chip::app:Clusters::Thermostat; +using chip::app : Clusters::Thermostat; namespace ThermAttr = chip::app::Clusters::Thermostat::Attributes; /********************************************************** * Variable declarations diff --git a/examples/thermostat/telink/src/TemperatureManager.cpp b/examples/thermostat/telink/src/TemperatureManager.cpp index c3123e83aa17da..2e68bd9bbdbd61 100644 --- a/examples/thermostat/telink/src/TemperatureManager.cpp +++ b/examples/thermostat/telink/src/TemperatureManager.cpp @@ -28,7 +28,7 @@ using namespace ::chip::DeviceLayer; constexpr EndpointId kThermostatEndpoint = 1; -using chip::app:Clusters::Thermostat; +using chip::app : Clusters::Thermostat; namespace ThermAttr = chip::app::Clusters::Thermostat::Attributes; TemperatureManager TemperatureManager::sTempMgr; diff --git a/src/app/clusters/thermostat-server/thermostat-server.cpp b/src/app/clusters/thermostat-server/thermostat-server.cpp index 91fb5c5a7c88cb..f5334098b61682 100644 --- a/src/app/clusters/thermostat-server/thermostat-server.cpp +++ b/src/app/clusters/thermostat-server/thermostat-server.cpp @@ -418,14 +418,16 @@ MatterThermostatClusterServerPreAttributeChangedCallback(const app::ConcreteAttr { case ThermostatControlSequenceEnum::kCoolingOnly: case ThermostatControlSequenceEnum::kCoolingWithReheat: - if (RequestedSystemMode == ThermostatSystemModeEnum::kHeat || RequestedSystemMode == ThermostatSystemModeEnum::kEmergencyHeat) + if (RequestedSystemMode == ThermostatSystemModeEnum::kHeat || + RequestedSystemMode == ThermostatSystemModeEnum::kEmergencyHeat) return imcode::InvalidValue; else return imcode::Success; case ThermostatControlSequenceEnum::kHeatingOnly: case ThermostatControlSequenceEnum::kHeatingWithReheat: - if (RequestedSystemMode == ThermostatSystemModeEnum::kCool || RequestedSystemMode == ThermostatSystemModeEnum::kPrecooling) + if (RequestedSystemMode == ThermostatSystemModeEnum::kCool || + RequestedSystemMode == ThermostatSystemModeEnum::kPrecooling) return imcode::InvalidValue; else return imcode::Success; From f84e0cc12807fd64d6dfe827ba855eb939fcdbe5 Mon Sep 17 00:00:00 2001 From: David Rempel Date: Mon, 27 Nov 2023 14:38:06 -0800 Subject: [PATCH 05/41] manually adjust to the two's compliment since bad code gen was happening for some of the builds. --- .../app-templates/endpoint_config.h | 18 +++++++++--------- .../zcl/data-model/chip/thermostat-cluster.xml | 16 ++++++++-------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h b/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h index 0d23d277bcad97..d586cf15d0c626 100644 --- a/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h +++ b/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h @@ -305,15 +305,15 @@ { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x7 }, /* ControlMode */ \ \ /* Endpoint: 1, Cluster: Thermostat (server) */ \ - { (uint16_t) 0xA28, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* OccupiedCoolingSetpoint */ \ - { (uint16_t) 0x7D0, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* OccupiedHeatingSetpoint */ \ - { (uint16_t) 0x2BC, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* MinHeatSetpointLimit */ \ - { (uint16_t) 0xBB8, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* MaxHeatSetpointLimit */ \ - { (uint16_t) 0x640, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* MinCoolSetpointLimit */ \ - { (uint16_t) 0xC80, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* MaxCoolSetpointLimit */ \ - { (uint16_t) 0x19, (uint16_t) 0x0, (uint16_t) 0xFA }, /* MinSetpointDeadBand */ \ - { (uint16_t) 0x4, (uint16_t) 0x0, (uint16_t) 0x5 }, /* ControlSequenceOfOperation */ \ - { (uint16_t) 0x1, (uint16_t) 0x0, (uint16_t) 0x7 }, /* SystemMode */ \ + { (uint16_t) 0xA28, (uint16_t) 0x954D, (uint16_t) 0x7FFF }, /* OccupiedCoolingSetpoint */ \ + { (uint16_t) 0x7D0, (uint16_t) 0x954D, (uint16_t) 0x7FFF }, /* OccupiedHeatingSetpoint */ \ + { (uint16_t) 0x2BC, (uint16_t) 0x954D, (uint16_t) 0x7FFF }, /* MinHeatSetpointLimit */ \ + { (uint16_t) 0xBB8, (uint16_t) 0x954D, (uint16_t) 0x7FFF }, /* MaxHeatSetpointLimit */ \ + { (uint16_t) 0x640, (uint16_t) 0x954D, (uint16_t) 0x7FFF }, /* MinCoolSetpointLimit */ \ + { (uint16_t) 0xC80, (uint16_t) 0x954D, (uint16_t) 0x7FFF }, /* MaxCoolSetpointLimit */ \ + { (uint16_t) 0x19, (uint16_t) 0x0, (uint16_t) 0xFA }, /* MinSetpointDeadBand */ \ + { (uint16_t) 0x4, (uint16_t) 0x0, (uint16_t) 0x5 }, /* ControlSequenceOfOperation */ \ + { (uint16_t) 0x1, (uint16_t) 0x0, (uint16_t) 0x7 }, /* SystemMode */ \ \ /* Endpoint: 1, Cluster: Fan Control (server) */ \ { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x6 }, /* FanMode */ \ diff --git a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml index 7d64b3aefa9efd..b49c010c927675 100644 --- a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml @@ -122,23 +122,23 @@ limitations under the License. LocalTemperatureCalibration - OccupiedCoolingSetpoint - OccupiedHeatingSetpoint - UnoccupiedCoolingSetpoint - UnoccupiedHeatingSetpoint - + OccupiedCoolingSetpoint + OccupiedHeatingSetpoint + UnoccupiedCoolingSetpoint + UnoccupiedHeatingSetpoint + MinHeatSetpointLimit - + MaxHeatSetpointLimit - + MinCoolSetpointLimit - + MaxCoolSetpointLimit From bfc140a4d87565219acfae01331cc28554ca5717 Mon Sep 17 00:00:00 2001 From: David Rempel Date: Mon, 27 Nov 2023 15:26:08 -0800 Subject: [PATCH 06/41] fixed copypaste typo --- examples/thermostat/asr/src/TemperatureManager.cpp | 2 +- examples/thermostat/silabs/src/TemperatureManager.cpp | 2 +- examples/thermostat/telink/src/TemperatureManager.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/thermostat/asr/src/TemperatureManager.cpp b/examples/thermostat/asr/src/TemperatureManager.cpp index 4f729924027043..238cf521719a98 100644 --- a/examples/thermostat/asr/src/TemperatureManager.cpp +++ b/examples/thermostat/asr/src/TemperatureManager.cpp @@ -25,7 +25,7 @@ using namespace ::chip::DeviceLayer; constexpr EndpointId kThermostatEndpoint = 1; -using chip::app : Clusters::Thermostat; +using chip::app::Clusters::Thermostat; namespace ThermAttr = chip::app::Clusters::Thermostat::Attributes; TemperatureManager TemperatureManager::sTempMgr; diff --git a/examples/thermostat/silabs/src/TemperatureManager.cpp b/examples/thermostat/silabs/src/TemperatureManager.cpp index 674a1e442bf586..9ff696cb7a1ac1 100644 --- a/examples/thermostat/silabs/src/TemperatureManager.cpp +++ b/examples/thermostat/silabs/src/TemperatureManager.cpp @@ -36,7 +36,7 @@ using namespace ::chip::DeviceLayer; constexpr EndpointId kThermostatEndpoint = 1; -using chip::app : Clusters::Thermostat; +using chip::app::Clusters::Thermostat; namespace ThermAttr = chip::app::Clusters::Thermostat::Attributes; /********************************************************** * Variable declarations diff --git a/examples/thermostat/telink/src/TemperatureManager.cpp b/examples/thermostat/telink/src/TemperatureManager.cpp index 2e68bd9bbdbd61..145a29bb89311d 100644 --- a/examples/thermostat/telink/src/TemperatureManager.cpp +++ b/examples/thermostat/telink/src/TemperatureManager.cpp @@ -28,7 +28,7 @@ using namespace ::chip::DeviceLayer; constexpr EndpointId kThermostatEndpoint = 1; -using chip::app : Clusters::Thermostat; +using chip::app::Clusters::Thermostat; namespace ThermAttr = chip::app::Clusters::Thermostat::Attributes; TemperatureManager TemperatureManager::sTempMgr; From 259f45b950232a60c4c663ef453c1c1273fd2a90 Mon Sep 17 00:00:00 2001 From: David Rempel Date: Mon, 27 Nov 2023 15:59:46 -0800 Subject: [PATCH 07/41] fixing esp build --- .../esp32/main/DeviceWithDisplay.cpp | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp b/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp index 0a33fc1bafc6b0..3d876c5c79b989 100644 --- a/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp +++ b/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp @@ -157,13 +157,13 @@ class EditAttributeListModel : public TouchesMatterStackModel bool isValidThermostatRunningMode(uint8_t runningMode) { - chip::app::Clusters::Thermostat::ThermostatRunningMode mode = - static_cast(runningMode); + chip::app::Clusters::Thermostat::ThermostatRunningModeEnum mode = + static_cast(runningMode); switch (mode) { - case chip::app::Clusters::Thermostat::ThermostatRunningMode::kOff: - case chip::app::Clusters::Thermostat::ThermostatRunningMode::kCool: - case chip::app::Clusters::Thermostat::ThermostatRunningMode::kHeat: + case chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kOff: + case chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kCool: + case chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kHeat: return true; default: return false; @@ -233,24 +233,24 @@ class EditAttributeListModel : public TouchesMatterStackModel else if (name == "SystemMode") { // System modes - Off, Auto, Cool and Heat are currently supported. - uint8_t mode = n; + chip::app::Clusters::Thermostat::ThermostatSystemModeEnum mode = reinterpret_cast(n); // Update the system mode here for hardcoded endpoint 1 if (isValidThermostatSystemMode(mode)) { ESP_LOGI(TAG, "System Mode changed to : %d", mode); - app::Clusters::Thermostat::Attributes::SystemMode::Set(1, static_cast(mode)); + app::Clusters::Thermostat::Attributes::SystemMode::Set(1, mode); // If system mode is auto set running mode to off otherwise set it to what the system mode is set to if (mode == static_cast(chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kAuto)) { - app::Clusters::Thermostat::Attributes::ThermostatRunningMode::Set( - 1, static_cast(chip::app::Clusters::Thermostat::ThermostatRunningMode::kOff)); + app::Clusters::Thermostat::Attributes::ThermostatRunningModeEnum::Set( + 1, static_cast(chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kOff)); } else { if (isValidThermostatRunningMode(mode)) { ESP_LOGI(TAG, "Running Mode changed to : %d", mode); - app::Clusters::Thermostat::Attributes::ThermostatRunningMode::Set(1, static_cast(mode)); + app::Clusters::Thermostat::Attributes::ThermostatRunningModeEnum::Set(1, static_cast(mode)); } else { @@ -266,7 +266,7 @@ class EditAttributeListModel : public TouchesMatterStackModel else if (name == "RunningMode") { // Get the system mode - uint8_t systemMode = static_cast(chip::app::Clusters::Thermostat::ThermostatRunningMode::kOff); + uint8_t systemMode = static_cast(chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kOff); app::Clusters::Thermostat::Attributes::SystemMode::Get(1, static_cast(&systemMode)); if (systemMode != static_cast(chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kAuto)) { @@ -279,7 +279,7 @@ class EditAttributeListModel : public TouchesMatterStackModel if (isValidThermostatRunningMode(mode)) { ESP_LOGI(TAG, "Running Mode changed to : %d", mode); - app::Clusters::Thermostat::Attributes::ThermostatRunningMode::Set(1, static_cast(mode)); + app::Clusters::Thermostat::Attributes::ThermostatRunningModeEnum::Set(1, static_cast(mode)); } else { @@ -614,8 +614,8 @@ void SetupPretendDevices() AddAttribute("HeatSetpoint", "25"); app::Clusters::Thermostat::Attributes::OccupiedHeatingSetpoint::Set(1, static_cast(25 * 100)); AddAttribute("RunningMode", "4"); - app::Clusters::Thermostat::Attributes::ThermostatRunningMode::Set( - 1, static_cast(chip::app::Clusters::Thermostat::ThermostatRunningMode::kHeat)); + app::Clusters::Thermostat::Attributes::ThermostatRunningModeEnum::Set( + 1, static_cast(chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kHeat)); AddDevice("Humidity Sensor"); AddEndpoint("External"); From 4e76e3443c2187613624816ac697c48fd5653b73 Mon Sep 17 00:00:00 2001 From: David Rempel Date: Mon, 27 Nov 2023 16:34:18 -0800 Subject: [PATCH 08/41] didn't fix the build after all, reverted, and fixed another typo. --- .../telink/src/TemperatureManager.cpp | 2 +- .../app-templates/endpoint_config.h | 18 +++++++++--------- .../zcl/data-model/chip/thermostat-cluster.xml | 16 ++++++++-------- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/examples/thermostat/telink/src/TemperatureManager.cpp b/examples/thermostat/telink/src/TemperatureManager.cpp index 145a29bb89311d..08021616d9d3a4 100644 --- a/examples/thermostat/telink/src/TemperatureManager.cpp +++ b/examples/thermostat/telink/src/TemperatureManager.cpp @@ -28,7 +28,7 @@ using namespace ::chip::DeviceLayer; constexpr EndpointId kThermostatEndpoint = 1; -using chip::app::Clusters::Thermostat; +using namespace ::chip::app::Clusters::Thermostat; namespace ThermAttr = chip::app::Clusters::Thermostat::Attributes; TemperatureManager TemperatureManager::sTempMgr; diff --git a/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h b/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h index d586cf15d0c626..0d23d277bcad97 100644 --- a/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h +++ b/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h @@ -305,15 +305,15 @@ { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x7 }, /* ControlMode */ \ \ /* Endpoint: 1, Cluster: Thermostat (server) */ \ - { (uint16_t) 0xA28, (uint16_t) 0x954D, (uint16_t) 0x7FFF }, /* OccupiedCoolingSetpoint */ \ - { (uint16_t) 0x7D0, (uint16_t) 0x954D, (uint16_t) 0x7FFF }, /* OccupiedHeatingSetpoint */ \ - { (uint16_t) 0x2BC, (uint16_t) 0x954D, (uint16_t) 0x7FFF }, /* MinHeatSetpointLimit */ \ - { (uint16_t) 0xBB8, (uint16_t) 0x954D, (uint16_t) 0x7FFF }, /* MaxHeatSetpointLimit */ \ - { (uint16_t) 0x640, (uint16_t) 0x954D, (uint16_t) 0x7FFF }, /* MinCoolSetpointLimit */ \ - { (uint16_t) 0xC80, (uint16_t) 0x954D, (uint16_t) 0x7FFF }, /* MaxCoolSetpointLimit */ \ - { (uint16_t) 0x19, (uint16_t) 0x0, (uint16_t) 0xFA }, /* MinSetpointDeadBand */ \ - { (uint16_t) 0x4, (uint16_t) 0x0, (uint16_t) 0x5 }, /* ControlSequenceOfOperation */ \ - { (uint16_t) 0x1, (uint16_t) 0x0, (uint16_t) 0x7 }, /* SystemMode */ \ + { (uint16_t) 0xA28, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* OccupiedCoolingSetpoint */ \ + { (uint16_t) 0x7D0, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* OccupiedHeatingSetpoint */ \ + { (uint16_t) 0x2BC, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* MinHeatSetpointLimit */ \ + { (uint16_t) 0xBB8, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* MaxHeatSetpointLimit */ \ + { (uint16_t) 0x640, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* MinCoolSetpointLimit */ \ + { (uint16_t) 0xC80, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* MaxCoolSetpointLimit */ \ + { (uint16_t) 0x19, (uint16_t) 0x0, (uint16_t) 0xFA }, /* MinSetpointDeadBand */ \ + { (uint16_t) 0x4, (uint16_t) 0x0, (uint16_t) 0x5 }, /* ControlSequenceOfOperation */ \ + { (uint16_t) 0x1, (uint16_t) 0x0, (uint16_t) 0x7 }, /* SystemMode */ \ \ /* Endpoint: 1, Cluster: Fan Control (server) */ \ { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x6 }, /* FanMode */ \ diff --git a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml index b49c010c927675..7d64b3aefa9efd 100644 --- a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml @@ -122,23 +122,23 @@ limitations under the License. LocalTemperatureCalibration - OccupiedCoolingSetpoint - OccupiedHeatingSetpoint - UnoccupiedCoolingSetpoint - UnoccupiedHeatingSetpoint - + OccupiedCoolingSetpoint + OccupiedHeatingSetpoint + UnoccupiedCoolingSetpoint + UnoccupiedHeatingSetpoint + MinHeatSetpointLimit - + MaxHeatSetpointLimit - + MinCoolSetpointLimit - + MaxCoolSetpointLimit From 6e96a68935eeb619e8b60c1e74b0271eaf838670 Mon Sep 17 00:00:00 2001 From: David Rempel Date: Mon, 27 Nov 2023 17:08:25 -0800 Subject: [PATCH 09/41] Think last commit fixed telink build, lets see if this fixes the rest --- examples/thermostat/asr/src/TemperatureManager.cpp | 2 +- examples/thermostat/silabs/src/TemperatureManager.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/thermostat/asr/src/TemperatureManager.cpp b/examples/thermostat/asr/src/TemperatureManager.cpp index 238cf521719a98..6c297d98f42439 100644 --- a/examples/thermostat/asr/src/TemperatureManager.cpp +++ b/examples/thermostat/asr/src/TemperatureManager.cpp @@ -25,7 +25,7 @@ using namespace ::chip::DeviceLayer; constexpr EndpointId kThermostatEndpoint = 1; -using chip::app::Clusters::Thermostat; +using namespace ::chip::app::Clusters::Thermostat; namespace ThermAttr = chip::app::Clusters::Thermostat::Attributes; TemperatureManager TemperatureManager::sTempMgr; diff --git a/examples/thermostat/silabs/src/TemperatureManager.cpp b/examples/thermostat/silabs/src/TemperatureManager.cpp index 9ff696cb7a1ac1..de12f1d0894c65 100644 --- a/examples/thermostat/silabs/src/TemperatureManager.cpp +++ b/examples/thermostat/silabs/src/TemperatureManager.cpp @@ -36,7 +36,7 @@ using namespace ::chip::DeviceLayer; constexpr EndpointId kThermostatEndpoint = 1; -using chip::app::Clusters::Thermostat; +using namespace ::chip::app::Clusters::Thermostat; namespace ThermAttr = chip::app::Clusters::Thermostat::Attributes; /********************************************************** * Variable declarations From 087be7391554c271932163bcb841e7d0ca5c8f5b Mon Sep 17 00:00:00 2001 From: David Rempel Date: Mon, 27 Nov 2023 18:15:23 -0800 Subject: [PATCH 10/41] more blind changes using pull requests as a compiler... --- examples/thermostat/asr/src/TemperatureManager.cpp | 2 +- examples/thermostat/silabs/src/TemperatureManager.cpp | 2 +- examples/thermostat/telink/src/TemperatureManager.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/thermostat/asr/src/TemperatureManager.cpp b/examples/thermostat/asr/src/TemperatureManager.cpp index 6c297d98f42439..6aa543916f2a90 100644 --- a/examples/thermostat/asr/src/TemperatureManager.cpp +++ b/examples/thermostat/asr/src/TemperatureManager.cpp @@ -46,7 +46,7 @@ CHIP_ERROR TemperatureManager::Init() mCurrentTempCelsius = ConvertToPrintableTemp(temp.Value()); mHeatingCelsiusSetPoint = ConvertToPrintableTemp(coolingSetpoint); mCoolingCelsiusSetPoint = ConvertToPrintableTemp(heatingSetpoint); - mThermMode = systemMode; + mThermMode = reinterpret_cast(systemMode); GetAppTask().UpdateThermoStatUI(); diff --git a/examples/thermostat/silabs/src/TemperatureManager.cpp b/examples/thermostat/silabs/src/TemperatureManager.cpp index de12f1d0894c65..f4c0fb24babc65 100644 --- a/examples/thermostat/silabs/src/TemperatureManager.cpp +++ b/examples/thermostat/silabs/src/TemperatureManager.cpp @@ -60,7 +60,7 @@ CHIP_ERROR TemperatureManager::Init() mCurrentTempCelsius = ConvertToPrintableTemp((temp.IsNull()) ? static_cast(0.0) : temp.Value()); mHeatingCelsiusSetPoint = ConvertToPrintableTemp(coolingSetpoint); mCoolingCelsiusSetPoint = ConvertToPrintableTemp(heatingSetpoint); - mThermMode = systemMode; + mThermMode = reinterpret_cast(systemMode); AppTask::GetAppTask().UpdateThermoStatUI(); diff --git a/examples/thermostat/telink/src/TemperatureManager.cpp b/examples/thermostat/telink/src/TemperatureManager.cpp index 08021616d9d3a4..59df2230506f62 100644 --- a/examples/thermostat/telink/src/TemperatureManager.cpp +++ b/examples/thermostat/telink/src/TemperatureManager.cpp @@ -49,7 +49,7 @@ CHIP_ERROR TemperatureManager::Init() mCurrentTempCelsius = ConvertToPrintableTemp(temp.Value()); mHeatingCelsiusSetPoint = ConvertToPrintableTemp(coolingSetpoint); mCoolingCelsiusSetPoint = ConvertToPrintableTemp(heatingSetpoint); - mThermMode = systemMode; + mThermMode = reinterpret_cast(systemMode); GetAppTask().UpdateThermoStatUI(); From aabebf5ffca0ed0e98b1b733a595abb9cd61f2f4 Mon Sep 17 00:00:00 2001 From: David Rempel Date: Mon, 27 Nov 2023 18:54:29 -0800 Subject: [PATCH 11/41] switch is probably better --- examples/thermostat/asr/src/TemperatureManager.cpp | 14 +++++++++++++- .../thermostat/silabs/src/TemperatureManager.cpp | 14 +++++++++++++- .../thermostat/telink/src/TemperatureManager.cpp | 14 +++++++++++++- 3 files changed, 39 insertions(+), 3 deletions(-) diff --git a/examples/thermostat/asr/src/TemperatureManager.cpp b/examples/thermostat/asr/src/TemperatureManager.cpp index 6aa543916f2a90..c6d230b1f2f341 100644 --- a/examples/thermostat/asr/src/TemperatureManager.cpp +++ b/examples/thermostat/asr/src/TemperatureManager.cpp @@ -46,7 +46,19 @@ CHIP_ERROR TemperatureManager::Init() mCurrentTempCelsius = ConvertToPrintableTemp(temp.Value()); mHeatingCelsiusSetPoint = ConvertToPrintableTemp(coolingSetpoint); mCoolingCelsiusSetPoint = ConvertToPrintableTemp(heatingSetpoint); - mThermMode = reinterpret_cast(systemMode); + switch (systemMode) + { + case ThermostatSystemModeEnum::kOff: systemMode = 0; break; + case ThermostatSystemModeEnum::kAuto: systemMode = 1; break; + case ThermostatSystemModeEnum::kCool: systemMode = 3; break; + case ThermostatSystemModeEnum::kHeat: systemMode = 4; break; + case ThermostatSystemModeEnum::kEmergencyHeat: systemMode = 5; break; + case ThermostatSystemModeEnum::kPrecooling: systemMode = 6; break; + case ThermostatSystemModeEnum::kFanOnly: systemMode = 7; break; + case ThermostatSystemModeEnum::kDry: systemMode = 8; break; + case ThermostatSystemModeEnum::kSleep: systemMode = 9; break; + default: systemMode = 2; break; // unknown value; + } GetAppTask().UpdateThermoStatUI(); diff --git a/examples/thermostat/silabs/src/TemperatureManager.cpp b/examples/thermostat/silabs/src/TemperatureManager.cpp index f4c0fb24babc65..b7b98389f4acc8 100644 --- a/examples/thermostat/silabs/src/TemperatureManager.cpp +++ b/examples/thermostat/silabs/src/TemperatureManager.cpp @@ -60,7 +60,19 @@ CHIP_ERROR TemperatureManager::Init() mCurrentTempCelsius = ConvertToPrintableTemp((temp.IsNull()) ? static_cast(0.0) : temp.Value()); mHeatingCelsiusSetPoint = ConvertToPrintableTemp(coolingSetpoint); mCoolingCelsiusSetPoint = ConvertToPrintableTemp(heatingSetpoint); - mThermMode = reinterpret_cast(systemMode); + switch (systemMode) + { + case ThermostatSystemModeEnum::kOff: systemMode = 0; break; + case ThermostatSystemModeEnum::kAuto: systemMode = 1; break; + case ThermostatSystemModeEnum::kCool: systemMode = 3; break; + case ThermostatSystemModeEnum::kHeat: systemMode = 4; break; + case ThermostatSystemModeEnum::kEmergencyHeat: systemMode = 5; break; + case ThermostatSystemModeEnum::kPrecooling: systemMode = 6; break; + case ThermostatSystemModeEnum::kFanOnly: systemMode = 7; break; + case ThermostatSystemModeEnum::kDry: systemMode = 8; break; + case ThermostatSystemModeEnum::kSleep: systemMode = 9; break; + default: systemMode = 2; break; // unknown value; + } AppTask::GetAppTask().UpdateThermoStatUI(); diff --git a/examples/thermostat/telink/src/TemperatureManager.cpp b/examples/thermostat/telink/src/TemperatureManager.cpp index 59df2230506f62..449e1a55211ee4 100644 --- a/examples/thermostat/telink/src/TemperatureManager.cpp +++ b/examples/thermostat/telink/src/TemperatureManager.cpp @@ -49,7 +49,19 @@ CHIP_ERROR TemperatureManager::Init() mCurrentTempCelsius = ConvertToPrintableTemp(temp.Value()); mHeatingCelsiusSetPoint = ConvertToPrintableTemp(coolingSetpoint); mCoolingCelsiusSetPoint = ConvertToPrintableTemp(heatingSetpoint); - mThermMode = reinterpret_cast(systemMode); + switch (systemMode) + { + case ThermostatSystemModeEnum::kOff: systemMode = 0; break; + case ThermostatSystemModeEnum::kAuto: systemMode = 1; break; + case ThermostatSystemModeEnum::kCool: systemMode = 3; break; + case ThermostatSystemModeEnum::kHeat: systemMode = 4; break; + case ThermostatSystemModeEnum::kEmergencyHeat: systemMode = 5; break; + case ThermostatSystemModeEnum::kPrecooling: systemMode = 6; break; + case ThermostatSystemModeEnum::kFanOnly: systemMode = 7; break; + case ThermostatSystemModeEnum::kDry: systemMode = 8; break; + case ThermostatSystemModeEnum::kSleep: systemMode = 9; break; + default: systemMode = 2; break; // unknown value; + } GetAppTask().UpdateThermoStatUI(); From ad15e5f589f5a44be10326b95c16510f1006a93f Mon Sep 17 00:00:00 2001 From: David Rempel Date: Mon, 27 Nov 2023 19:19:40 -0800 Subject: [PATCH 12/41] would help if I used the right variable... --- .../thermostat/asr/src/TemperatureManager.cpp | 20 +++++++++---------- .../silabs/src/TemperatureManager.cpp | 20 +++++++++---------- .../telink/src/TemperatureManager.cpp | 20 +++++++++---------- 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/examples/thermostat/asr/src/TemperatureManager.cpp b/examples/thermostat/asr/src/TemperatureManager.cpp index c6d230b1f2f341..54108f2d39dad0 100644 --- a/examples/thermostat/asr/src/TemperatureManager.cpp +++ b/examples/thermostat/asr/src/TemperatureManager.cpp @@ -48,16 +48,16 @@ CHIP_ERROR TemperatureManager::Init() mCoolingCelsiusSetPoint = ConvertToPrintableTemp(heatingSetpoint); switch (systemMode) { - case ThermostatSystemModeEnum::kOff: systemMode = 0; break; - case ThermostatSystemModeEnum::kAuto: systemMode = 1; break; - case ThermostatSystemModeEnum::kCool: systemMode = 3; break; - case ThermostatSystemModeEnum::kHeat: systemMode = 4; break; - case ThermostatSystemModeEnum::kEmergencyHeat: systemMode = 5; break; - case ThermostatSystemModeEnum::kPrecooling: systemMode = 6; break; - case ThermostatSystemModeEnum::kFanOnly: systemMode = 7; break; - case ThermostatSystemModeEnum::kDry: systemMode = 8; break; - case ThermostatSystemModeEnum::kSleep: systemMode = 9; break; - default: systemMode = 2; break; // unknown value; + case ThermostatSystemModeEnum::kOff: mThermMode = 0; break; + case ThermostatSystemModeEnum::kAuto: mThermMode = 1; break; + case ThermostatSystemModeEnum::kCool: mThermMode = 3; break; + case ThermostatSystemModeEnum::kHeat: mThermMode = 4; break; + case ThermostatSystemModeEnum::kEmergencyHeat: mThermMode = 5; break; + case ThermostatSystemModeEnum::kPrecooling: mThermMode = 6; break; + case ThermostatSystemModeEnum::kFanOnly: mThermMode = 7; break; + case ThermostatSystemModeEnum::kDry: mThermMode = 8; break; + case ThermostatSystemModeEnum::kSleep: mThermMode = 9; break; + default: mThermMode = 2; break; // unknown value; } GetAppTask().UpdateThermoStatUI(); diff --git a/examples/thermostat/silabs/src/TemperatureManager.cpp b/examples/thermostat/silabs/src/TemperatureManager.cpp index b7b98389f4acc8..eb2b685ee55b21 100644 --- a/examples/thermostat/silabs/src/TemperatureManager.cpp +++ b/examples/thermostat/silabs/src/TemperatureManager.cpp @@ -62,16 +62,16 @@ CHIP_ERROR TemperatureManager::Init() mCoolingCelsiusSetPoint = ConvertToPrintableTemp(heatingSetpoint); switch (systemMode) { - case ThermostatSystemModeEnum::kOff: systemMode = 0; break; - case ThermostatSystemModeEnum::kAuto: systemMode = 1; break; - case ThermostatSystemModeEnum::kCool: systemMode = 3; break; - case ThermostatSystemModeEnum::kHeat: systemMode = 4; break; - case ThermostatSystemModeEnum::kEmergencyHeat: systemMode = 5; break; - case ThermostatSystemModeEnum::kPrecooling: systemMode = 6; break; - case ThermostatSystemModeEnum::kFanOnly: systemMode = 7; break; - case ThermostatSystemModeEnum::kDry: systemMode = 8; break; - case ThermostatSystemModeEnum::kSleep: systemMode = 9; break; - default: systemMode = 2; break; // unknown value; + case ThermostatSystemModeEnum::kOff: mThermMode = 0; break; + case ThermostatSystemModeEnum::kAuto: mThermMode = 1; break; + case ThermostatSystemModeEnum::kCool: mThermMode = 3; break; + case ThermostatSystemModeEnum::kHeat: mThermMode = 4; break; + case ThermostatSystemModeEnum::kEmergencyHeat: mThermMode = 5; break; + case ThermostatSystemModeEnum::kPrecooling: mThermMode = 6; break; + case ThermostatSystemModeEnum::kFanOnly: mThermMode = 7; break; + case ThermostatSystemModeEnum::kDry: mThermMode = 8; break; + case ThermostatSystemModeEnum::kSleep: mThermMode = 9; break; + default: mThermMode = 2; break; // unknown value; } AppTask::GetAppTask().UpdateThermoStatUI(); diff --git a/examples/thermostat/telink/src/TemperatureManager.cpp b/examples/thermostat/telink/src/TemperatureManager.cpp index 449e1a55211ee4..0fa8b35ca5cd2d 100644 --- a/examples/thermostat/telink/src/TemperatureManager.cpp +++ b/examples/thermostat/telink/src/TemperatureManager.cpp @@ -51,16 +51,16 @@ CHIP_ERROR TemperatureManager::Init() mCoolingCelsiusSetPoint = ConvertToPrintableTemp(heatingSetpoint); switch (systemMode) { - case ThermostatSystemModeEnum::kOff: systemMode = 0; break; - case ThermostatSystemModeEnum::kAuto: systemMode = 1; break; - case ThermostatSystemModeEnum::kCool: systemMode = 3; break; - case ThermostatSystemModeEnum::kHeat: systemMode = 4; break; - case ThermostatSystemModeEnum::kEmergencyHeat: systemMode = 5; break; - case ThermostatSystemModeEnum::kPrecooling: systemMode = 6; break; - case ThermostatSystemModeEnum::kFanOnly: systemMode = 7; break; - case ThermostatSystemModeEnum::kDry: systemMode = 8; break; - case ThermostatSystemModeEnum::kSleep: systemMode = 9; break; - default: systemMode = 2; break; // unknown value; + case ThermostatSystemModeEnum::kOff: mThermMode = 0; break; + case ThermostatSystemModeEnum::kAuto: mThermMode = 1; break; + case ThermostatSystemModeEnum::kCool: mThermMode = 3; break; + case ThermostatSystemModeEnum::kHeat: mThermMode = 4; break; + case ThermostatSystemModeEnum::kEmergencyHeat: mThermMode = 5; break; + case ThermostatSystemModeEnum::kPrecooling: mThermMode = 6; break; + case ThermostatSystemModeEnum::kFanOnly: mThermMode = 7; break; + case ThermostatSystemModeEnum::kDry: mThermMode = 8; break; + case ThermostatSystemModeEnum::kSleep: mThermMode = 9; break; + default: mThermMode = 2; break; // unknown value; } GetAppTask().UpdateThermoStatUI(); From 874a24f689254d6978eaf51689e6ee48e4715ec2 Mon Sep 17 00:00:00 2001 From: David Rempel Date: Mon, 27 Nov 2023 20:38:41 -0800 Subject: [PATCH 13/41] more type safety to make it build (not doing all of it, since I can't actually build locally or test locally) --- .../esp32/main/DeviceWithDisplay.cpp | 45 ++++++++++++++----- 1 file changed, 34 insertions(+), 11 deletions(-) diff --git a/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp b/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp index 3d876c5c79b989..76c386508c2562 100644 --- a/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp +++ b/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp @@ -233,17 +233,32 @@ class EditAttributeListModel : public TouchesMatterStackModel else if (name == "SystemMode") { // System modes - Off, Auto, Cool and Heat are currently supported. - chip::app::Clusters::Thermostat::ThermostatSystemModeEnum mode = reinterpret_cast(n); + chip::app::Clusters::Thermostat::ThermostatSystemModeEnum modeEnum = ThermostatSystemModeEnum::kUnknownEnumValue; + uint8_t mode = n; + + switch (n) + { + case 0: modeEnum = ThermostatSystemModeEnum::kOff; break; + case 1: modeEnum = ThermostatSystemModeEnum::kAuto; break; + case 3: modeEnum = ThermostatSystemModeEnum::kCool; break; + case 4: modeEnum = ThermostatSystemModeEnum::kHeat; break; + case 5: modeEnum = ThermostatSystemModeEnum::kEmergencyHeat; break; + case 6: modeEnum = ThermostatSystemModeEnum::kPrecooling; break; + case 7: modeEnum = ThermostatSystemModeEnum::kFanOnly; break; + case 8: modeEnum = ThermostatSystemModeEnum::kDry; break; + case 9: modeEnum = ThermostatSystemModeEnum::kSleep; break; + default: modeEnum = ThermostatSystemModeEnum::kUnknownEnumValue; break; + } + // Update the system mode here for hardcoded endpoint 1 if (isValidThermostatSystemMode(mode)) { ESP_LOGI(TAG, "System Mode changed to : %d", mode); - app::Clusters::Thermostat::Attributes::SystemMode::Set(1, mode); + app::Clusters::Thermostat::Attributes::SystemMode::Set(1, modeEnum); // If system mode is auto set running mode to off otherwise set it to what the system mode is set to - if (mode == static_cast(chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kAuto)) + if (modeEnum == chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kAuto) { - app::Clusters::Thermostat::Attributes::ThermostatRunningModeEnum::Set( - 1, static_cast(chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kOff)); + app::Clusters::Thermostat::Attributes::ThermostatRunningModeEnum::Set(1, chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kOff); } else { @@ -266,20 +281,28 @@ class EditAttributeListModel : public TouchesMatterStackModel else if (name == "RunningMode") { // Get the system mode - uint8_t systemMode = static_cast(chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kOff); - app::Clusters::Thermostat::Attributes::SystemMode::Get(1, static_cast(&systemMode)); - if (systemMode != static_cast(chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kAuto)) + chip::app::Clusters::Thermostat::ThermostatSystemModeEnum systemMode = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kOff; + app::Clusters::Thermostat::Attributes::SystemMode::Get(1, &systemMode); + if (systemMode != chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kAuto) { ESP_LOGI(TAG, "Running mode can be changed only for system mode auto. Current system mode %d", systemMode); } else { uint8_t mode = n; + chip::app::Clusters::Thermostat::ThermostatRunningModeEnum modeEnum = ThermostatRunningModeEnum::kUnknownEnumValue; // update the running mode here for hardcoded endpoint 1 if (isValidThermostatRunningMode(mode)) { ESP_LOGI(TAG, "Running Mode changed to : %d", mode); - app::Clusters::Thermostat::Attributes::ThermostatRunningModeEnum::Set(1, static_cast(mode)); + switch (n) + { + case 0: modeEnum = ThermostatRunningModeEnum::kOff; break; + case 3: modeEnum = ThermostatRunningModeEnum::kCool; break; + case 4: modeEnum = ThermostatRunningModeEnum::kHeat; break; + default: modeEnum = ThermostatRunningModeEnum::kUnknownEnumValue; break; + } + app::Clusters::Thermostat::Attributes::ThermostatRunningMode::Set(1, modeEnum); } else { @@ -608,14 +631,14 @@ void SetupPretendDevices() app::Clusters::Thermostat::Attributes::LocalTemperature::Set(1, static_cast(21 * 100)); AddAttribute("SystemMode", "4"); app::Clusters::Thermostat::Attributes::SystemMode::Set( - 1, static_cast(chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kHeat)); + 1, chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kHeat); AddAttribute("CoolSetpoint", "19"); app::Clusters::Thermostat::Attributes::OccupiedCoolingSetpoint::Set(1, static_cast(19 * 100)); AddAttribute("HeatSetpoint", "25"); app::Clusters::Thermostat::Attributes::OccupiedHeatingSetpoint::Set(1, static_cast(25 * 100)); AddAttribute("RunningMode", "4"); app::Clusters::Thermostat::Attributes::ThermostatRunningModeEnum::Set( - 1, static_cast(chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kHeat)); + 1, chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kHeat); AddDevice("Humidity Sensor"); AddEndpoint("External"); From 9c4be40d4fbd38ce6d24650e7edf8e68e89c78cb Mon Sep 17 00:00:00 2001 From: David Rempel Date: Mon, 27 Nov 2023 20:58:06 -0800 Subject: [PATCH 14/41] more type fixes --- .../esp32/main/DeviceWithDisplay.cpp | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp b/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp index 76c386508c2562..8e2aa514613f6c 100644 --- a/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp +++ b/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp @@ -238,16 +238,16 @@ class EditAttributeListModel : public TouchesMatterStackModel switch (n) { - case 0: modeEnum = ThermostatSystemModeEnum::kOff; break; - case 1: modeEnum = ThermostatSystemModeEnum::kAuto; break; - case 3: modeEnum = ThermostatSystemModeEnum::kCool; break; - case 4: modeEnum = ThermostatSystemModeEnum::kHeat; break; - case 5: modeEnum = ThermostatSystemModeEnum::kEmergencyHeat; break; - case 6: modeEnum = ThermostatSystemModeEnum::kPrecooling; break; - case 7: modeEnum = ThermostatSystemModeEnum::kFanOnly; break; - case 8: modeEnum = ThermostatSystemModeEnum::kDry; break; - case 9: modeEnum = ThermostatSystemModeEnum::kSleep; break; - default: modeEnum = ThermostatSystemModeEnum::kUnknownEnumValue; break; + case 0: modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kOff; break; + case 1: modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kAuto; break; + case 3: modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kCool; break; + case 4: modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kHeat; break; + case 5: modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kEmergencyHeat; break; + case 6: modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kPrecooling; break; + case 7: modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kFanOnly; break; + case 8: modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kDry; break; + case 9: modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kSleep; break; + default: modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kUnknownEnumValue; break; } // Update the system mode here for hardcoded endpoint 1 @@ -258,14 +258,14 @@ class EditAttributeListModel : public TouchesMatterStackModel // If system mode is auto set running mode to off otherwise set it to what the system mode is set to if (modeEnum == chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kAuto) { - app::Clusters::Thermostat::Attributes::ThermostatRunningModeEnum::Set(1, chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kOff); + app::Clusters::Thermostat::Attributes::ThermostatRunningMode::Set(1, chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kOff); } else { if (isValidThermostatRunningMode(mode)) { ESP_LOGI(TAG, "Running Mode changed to : %d", mode); - app::Clusters::Thermostat::Attributes::ThermostatRunningModeEnum::Set(1, static_cast(mode)); + app::Clusters::Thermostat::Attributes::ThermostatRunningMode::Set(1, static_cast(mode)); } else { @@ -297,10 +297,10 @@ class EditAttributeListModel : public TouchesMatterStackModel ESP_LOGI(TAG, "Running Mode changed to : %d", mode); switch (n) { - case 0: modeEnum = ThermostatRunningModeEnum::kOff; break; - case 3: modeEnum = ThermostatRunningModeEnum::kCool; break; - case 4: modeEnum = ThermostatRunningModeEnum::kHeat; break; - default: modeEnum = ThermostatRunningModeEnum::kUnknownEnumValue; break; + case 0: modeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kOff; break; + case 3: modeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kCool; break; + case 4: modeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kHeat; break; + default: modeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kUnknownEnumValue; break; } app::Clusters::Thermostat::Attributes::ThermostatRunningMode::Set(1, modeEnum); } From 0b8ea58aae5b4288d0ca6e76ad121f65263bba38 Mon Sep 17 00:00:00 2001 From: David Rempel Date: Mon, 27 Nov 2023 21:12:08 -0800 Subject: [PATCH 15/41] and some more --- .../esp32/main/DeviceWithDisplay.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp b/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp index 8e2aa514613f6c..68b24183e06026 100644 --- a/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp +++ b/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp @@ -233,7 +233,7 @@ class EditAttributeListModel : public TouchesMatterStackModel else if (name == "SystemMode") { // System modes - Off, Auto, Cool and Heat are currently supported. - chip::app::Clusters::Thermostat::ThermostatSystemModeEnum modeEnum = ThermostatSystemModeEnum::kUnknownEnumValue; + chip::app::Clusters::Thermostat::ThermostatSystemModeEnum modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kUnknownEnumValue; uint8_t mode = n; switch (n) @@ -265,7 +265,15 @@ class EditAttributeListModel : public TouchesMatterStackModel if (isValidThermostatRunningMode(mode)) { ESP_LOGI(TAG, "Running Mode changed to : %d", mode); - app::Clusters::Thermostat::Attributes::ThermostatRunningMode::Set(1, static_cast(mode)); + chip::app::Clusters::Thermostat::ThermostatRunningModeEnum runningModeEnum; + switch (mode) + { + case 0: runningModeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kOff; break; + case 3: runningModeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kCool; break; + case 4: runningModeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kHeat; break; + default: runningModeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kUnknownEnumValue; break; + } + app::Clusters::Thermostat::Attributes::ThermostatRunningMode::Set(1, static_cast(runningModeEnum)); } else { From e706f3cf7e3566f02d2c1e2e6641e3acde5f8dcd Mon Sep 17 00:00:00 2001 From: David Rempel Date: Mon, 27 Nov 2023 21:28:39 -0800 Subject: [PATCH 16/41] and more --- examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp b/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp index 68b24183e06026..ec9d96d7cf16af 100644 --- a/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp +++ b/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp @@ -273,7 +273,7 @@ class EditAttributeListModel : public TouchesMatterStackModel case 4: runningModeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kHeat; break; default: runningModeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kUnknownEnumValue; break; } - app::Clusters::Thermostat::Attributes::ThermostatRunningMode::Set(1, static_cast(runningModeEnum)); + app::Clusters::Thermostat::Attributes::ThermostatRunningMode::Set(1, runningModeEnum); } else { @@ -293,12 +293,12 @@ class EditAttributeListModel : public TouchesMatterStackModel app::Clusters::Thermostat::Attributes::SystemMode::Get(1, &systemMode); if (systemMode != chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kAuto) { - ESP_LOGI(TAG, "Running mode can be changed only for system mode auto. Current system mode %d", systemMode); + ESP_LOGI(TAG, "Running mode can be changed only for system mode auto. Current system mode %d", static_cast(systemMode)); } else { uint8_t mode = n; - chip::app::Clusters::Thermostat::ThermostatRunningModeEnum modeEnum = ThermostatRunningModeEnum::kUnknownEnumValue; + chip::app::Clusters::Thermostat::ThermostatRunningModeEnum modeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kUnknownEnumValue; // update the running mode here for hardcoded endpoint 1 if (isValidThermostatRunningMode(mode)) { From a17527b564ec9a14b7361974708188a4b8358ed2 Mon Sep 17 00:00:00 2001 From: David Rempel Date: Mon, 27 Nov 2023 21:44:27 -0800 Subject: [PATCH 17/41] last one? --- examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp b/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp index ec9d96d7cf16af..3c01985ab5ec0d 100644 --- a/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp +++ b/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp @@ -645,7 +645,7 @@ void SetupPretendDevices() AddAttribute("HeatSetpoint", "25"); app::Clusters::Thermostat::Attributes::OccupiedHeatingSetpoint::Set(1, static_cast(25 * 100)); AddAttribute("RunningMode", "4"); - app::Clusters::Thermostat::Attributes::ThermostatRunningModeEnum::Set( + app::Clusters::Thermostat::Attributes::ThermostatRunningMode::Set( 1, chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kHeat); AddDevice("Humidity Sensor"); From 3cdc17efca326a58df0ed48f19ed488e6179580d Mon Sep 17 00:00:00 2001 From: David Rempel Date: Mon, 27 Nov 2023 22:20:05 -0800 Subject: [PATCH 18/41] on to minimal... --- .../all-clusters-minimal-app/esp32/main/DeviceWithDisplay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/all-clusters-minimal-app/esp32/main/DeviceWithDisplay.cpp b/examples/all-clusters-minimal-app/esp32/main/DeviceWithDisplay.cpp index dd85fcda16a152..141c1b3ec6765c 100644 --- a/examples/all-clusters-minimal-app/esp32/main/DeviceWithDisplay.cpp +++ b/examples/all-clusters-minimal-app/esp32/main/DeviceWithDisplay.cpp @@ -544,7 +544,7 @@ void SetupPretendDevices() app::Clusters::TemperatureMeasurement::Attributes::MeasuredValue::Set(1, static_cast(21 * 100)); app::Clusters::Thermostat::Attributes::LocalTemperature::Set(1, static_cast(21 * 100)); AddAttribute("SystemMode", "4"); - app::Clusters::Thermostat::Attributes::SystemMode::Set(1, 4); + app::Clusters::Thermostat::Attributes::SystemMode::Set(1, app::Clusters::Thermostat::ThermostatSystemModeEnum::kHeat); AddAttribute("OccupiedCoolingSetpoint", "19"); app::Clusters::Thermostat::Attributes::OccupiedCoolingSetpoint::Set(1, static_cast(19 * 100)); AddAttribute("OccupiedHeatingSetpoint", "25"); From 7393dd6dd14766e9760a764a5c3e6282096fe050 Mon Sep 17 00:00:00 2001 From: David Rempel Date: Tue, 28 Nov 2023 10:36:53 -0800 Subject: [PATCH 19/41] regenerated with a new JRE, hopefully will pass the codegen check --- ...olClusterAccessControlEntryChangedEvent.kt | 99 +- ...usterAccessControlExtensionChangedEvent.kt | 99 +- .../ActionsClusterActionFailedEvent.kt | 21 +- .../ActionsClusterStateChangedEvent.kt | 15 +- .../BasicInformationClusterLeaveEvent.kt | 13 +- ...InformationClusterReachableChangedEvent.kt | 13 +- .../BasicInformationClusterStartUpEvent.kt | 13 +- ...igurationClusterAlarmsStateChangedEvent.kt | 43 +- .../BooleanStateClusterStateChangeEvent.kt | 13 +- ...InformationClusterReachableChangedEvent.kt | 16 +- ...viceBasicInformationClusterStartUpEvent.kt | 16 +- ...lusterLoadControlEventStatusChangeEvent.kt | 281 ++-- .../DishwasherAlarmClusterNotifyEvent.kt | 21 +- .../DoorLockClusterDoorLockAlarmEvent.kt | 13 +- .../DoorLockClusterDoorStateChangeEvent.kt | 13 +- .../DoorLockClusterLockOperationErrorEvent.kt | 161 ++- .../DoorLockClusterLockOperationEvent.kt | 158 ++- .../DoorLockClusterLockUserChangeEvent.kt | 121 +- ...eneralDiagnosticsClusterBootReasonEvent.kt | 13 +- ...gnosticsClusterHardwareFaultChangeEvent.kt | 49 +- ...agnosticsClusterNetworkFaultChangeEvent.kt | 49 +- ...DiagnosticsClusterRadioFaultChangeEvent.kt | 46 +- ...nalStateClusterOperationCompletionEvent.kt | 99 +- ...tionalStateClusterOperationalErrorEvent.kt | 21 +- ...pdateRequestorClusterDownloadErrorEvent.kt | 73 +- ...ateRequestorClusterStateTransitionEvent.kt | 52 +- ...dateRequestorClusterVersionAppliedEvent.kt | 20 +- ...rSourceClusterBatChargeFaultChangeEvent.kt | 46 +- .../PowerSourceClusterBatFaultChangeEvent.kt | 43 +- ...PowerSourceClusterWiredFaultChangeEvent.kt | 43 +- .../RefrigeratorAlarmClusterNotifyEvent.kt | 21 +- ...nalStateClusterOperationCompletionEvent.kt | 99 +- ...tionalStateClusterOperationalErrorEvent.kt | 24 +- .../SmokeCoAlarmClusterCOAlarmEvent.kt | 13 +- ...eCoAlarmClusterInterconnectCOAlarmEvent.kt | 13 +- ...AlarmClusterInterconnectSmokeAlarmEvent.kt | 13 +- .../SmokeCoAlarmClusterLowBatteryEvent.kt | 13 +- .../SmokeCoAlarmClusterSmokeAlarmEvent.kt | 13 +- ...areDiagnosticsClusterSoftwareFaultEvent.kt | 54 +- .../SwitchClusterInitialPressEvent.kt | 13 +- .../SwitchClusterLongPressEvent.kt | 13 +- .../SwitchClusterLongReleaseEvent.kt | 13 +- .../SwitchClusterMultiPressCompleteEvent.kt | 20 +- .../SwitchClusterMultiPressOngoingEvent.kt | 20 +- .../SwitchClusterShortReleaseEvent.kt | 13 +- .../SwitchClusterSwitchLatchedEvent.kt | 13 +- ...DiagnosticsClusterConnectionStatusEvent.kt | 16 +- ...agnosticsClusterNetworkFaultChangeEvent.kt | 49 +- ...imeSynchronizationClusterDSTStatusEvent.kt | 13 +- ...nchronizationClusterTimeZoneStatusEvent.kt | 32 +- .../UnitTestingClusterTestEventEvent.kt | 65 +- ...estingClusterTestFabricScopedEventEvent.kt | 13 +- ...urationAndControlClusterValveFaultEvent.kt | 16 +- ...AndControlClusterValveStateChangedEvent.kt | 16 +- ...agnosticsClusterAssociationFailureEvent.kt | 23 +- ...DiagnosticsClusterConnectionStatusEvent.kt | 16 +- ...orkDiagnosticsClusterDisconnectionEvent.kt | 16 +- ...sControlClusterAccessControlEntryStruct.kt | 108 +- ...trolClusterAccessControlExtensionStruct.kt | 17 +- ...ControlClusterAccessControlTargetStruct.kt | 82 +- .../structs/ActionsClusterActionStruct.kt | 34 +- .../ActionsClusterEndpointListStruct.kt | 35 +- ...nitoringClusterReplacementProductStruct.kt | 28 +- ...pplicationBasicClusterApplicationStruct.kt | 17 +- ...ationLauncherClusterApplicationEPStruct.kt | 41 +- ...icationLauncherClusterApplicationStruct.kt | 17 +- .../AudioOutputClusterOutputInfoStruct.kt | 15 +- ...nformationClusterCapabilityMinimaStruct.kt | 28 +- ...formationClusterProductAppearanceStruct.kt | 35 +- .../structs/BindingClusterTargetStruct.kt | 92 +- ...formationClusterProductAppearanceStruct.kt | 41 +- .../ChannelClusterChannelInfoStruct.kt | 83 +- .../structs/ChannelClusterLineupInfoStruct.kt | 56 +- ...tentLauncherClusterAdditionalInfoStruct.kt | 14 +- ...auncherClusterBrandingInformationStruct.kt | 148 +- ...ntentLauncherClusterContentSearchStruct.kt | 29 +- .../ContentLauncherClusterDimensionStruct.kt | 19 +- .../ContentLauncherClusterParameterStruct.kt | 56 +- ...ntLauncherClusterStyleInformationStruct.kt | 73 +- ...dControlClusterAverageLoadControlStruct.kt | 16 +- ...oadControlClusterDutyCycleControlStruct.kt | 16 +- ...ontrolClusterHeatingSourceControlStruct.kt | 16 +- ...oadControlClusterLoadControlEventStruct.kt | 122 +- ...ClusterLoadControlEventTransitionStruct.kt | 151 ++- ...dControlClusterLoadControlProgramStruct.kt | 97 +- ...ControlClusterPowerSavingsControlStruct.kt | 16 +- ...dControlClusterTemperatureControlStruct.kt | 172 +-- .../DescriptorClusterDeviceTypeStruct.kt | 14 +- .../DescriptorClusterSemanticTagStruct.kt | 78 +- .../DishwasherModeClusterModeOptionStruct.kt | 33 +- .../DishwasherModeClusterModeTagStruct.kt | 32 +- .../DoorLockClusterCredentialStruct.kt | 14 +- .../structs/FixedLabelClusterLabelStruct.kt | 14 +- ...missioningClusterBasicCommissioningInfo.kt | 31 +- ...neralDiagnosticsClusterNetworkInterface.kt | 117 +- ...pKeyManagementClusterGroupInfoMapStruct.kt | 53 +- ...upKeyManagementClusterGroupKeyMapStruct.kt | 19 +- ...upKeyManagementClusterGroupKeySetStruct.kt | 169 +-- ...nitoringClusterReplacementProductStruct.kt | 28 +- ...mentClusterMonitoringRegistrationStruct.kt | 28 +- ...aundryWasherModeClusterModeOptionStruct.kt | 33 +- .../LaundryWasherModeClusterModeTagStruct.kt | 32 +- .../MediaInputClusterInputInfoStruct.kt | 21 +- ...iaPlaybackClusterPlaybackPositionStruct.kt | 35 +- ...icrowaveOvenModeClusterModeOptionStruct.kt | 33 +- .../MicrowaveOvenModeClusterModeTagStruct.kt | 32 +- .../ModeSelectClusterModeOptionStruct.kt | 33 +- .../ModeSelectClusterSemanticTagStruct.kt | 14 +- ...rkCommissioningClusterNetworkInfoStruct.kt | 99 +- ...gClusterThreadInterfaceScanResultStruct.kt | 43 +- ...ingClusterWiFiInterfaceScanResultStruct.kt | 37 +- ...redentialsClusterFabricDescriptorStruct.kt | 37 +- .../OperationalCredentialsClusterNOCStruct.kt | 40 +- ...OperationalStateClusterErrorStateStruct.kt | 60 +- ...ionalStateClusterOperationalStateStruct.kt | 40 +- ...eUpdateRequestorClusterProviderLocation.kt | 28 +- .../OvenModeClusterModeOptionStruct.kt | 33 +- .../structs/OvenModeClusterModeTagStruct.kt | 32 +- ...erSourceClusterBatChargeFaultChangeType.kt | 46 +- .../PowerSourceClusterBatFaultChangeType.kt | 43 +- .../PowerSourceClusterWiredFaultChangeType.kt | 43 +- ...olledCabinetModeClusterModeOptionStruct.kt | 47 +- ...ntrolledCabinetModeClusterModeTagStruct.kt | 38 +- .../RvcCleanModeClusterModeOptionStruct.kt | 33 +- .../RvcCleanModeClusterModeTagStruct.kt | 32 +- ...OperationalStateClusterErrorStateStruct.kt | 60 +- ...ionalStateClusterOperationalStateStruct.kt | 43 +- .../RvcRunModeClusterModeOptionStruct.kt | 33 +- .../structs/RvcRunModeClusterModeTagStruct.kt | 32 +- .../ScenesClusterAttributeValuePair.kt | 14 +- .../structs/ScenesClusterExtensionFieldSet.kt | 31 +- .../structs/ScenesClusterSceneInfoStruct.kt | 34 +- ...reDiagnosticsClusterThreadMetricsStruct.kt | 100 +- .../TargetNavigatorClusterTargetInfoStruct.kt | 14 +- .../structs/ThermostatClusterPresetStruct.kt | 146 +- .../ThermostatClusterPresetTypeStruct.kt | 19 +- .../ThermostatClusterQueuedPresetStruct.kt | 59 +- .../ThermostatClusterScheduleStruct.kt | 139 +- ...ermostatClusterScheduleTransitionStruct.kt | 103 +- .../ThermostatClusterScheduleTypeStruct.kt | 25 +- ...usterThermostatScheduleTransitionStruct.kt | 28 +- ...rkDiagnosticsClusterNeighborTableStruct.kt | 103 +- ...ticsClusterOperationalDatasetComponents.kt | 70 +- ...tworkDiagnosticsClusterRouteTableStruct.kt | 49 +- ...NetworkDiagnosticsClusterSecurityPolicy.kt | 14 +- ...meSynchronizationClusterDSTOffsetStruct.kt | 40 +- ...sterFabricScopedTrustedTimeSourceStruct.kt | 20 +- ...imeSynchronizationClusterTimeZoneStruct.kt | 37 +- ...onizationClusterTrustedTimeSourceStruct.kt | 22 +- ...nitTestingClusterDoubleNestedStructList.kt | 27 +- .../structs/UnitTestingClusterNestedStruct.kt | 19 +- .../UnitTestingClusterNestedStructList.kt | 86 +- ...stingClusterNullablesAndOptionalsStruct.kt | 412 +++--- .../structs/UnitTestingClusterSimpleStruct.kt | 29 +- .../UnitTestingClusterTestFabricScoped.kt | 147 +- .../UnitTestingClusterTestListStructOctet.kt | 14 +- .../structs/UserLabelClusterLabelStruct.kt | 14 +- .../cluster/clusters/AccessControlCluster.kt | 68 +- .../cluster/clusters/AccountLoginCluster.kt | 51 +- .../cluster/clusters/ActionsCluster.kt | 103 +- .../ActivatedCarbonFilterMonitoringCluster.kt | 69 +- .../AdministratorCommissioningCluster.kt | 69 +- .../cluster/clusters/AirQualityCluster.kt | 36 +- .../clusters/ApplicationBasicCluster.kt | 74 +- .../clusters/ApplicationLauncherCluster.kt | 71 +- .../cluster/clusters/AudioOutputCluster.kt | 44 +- .../clusters/BallastConfigurationCluster.kt | 168 +-- .../cluster/clusters/BarrierControlCluster.kt | 116 +- .../clusters/BasicInformationCluster.kt | 162 +-- .../clusters/BinaryInputBasicCluster.kt | 123 +- .../cluster/clusters/BindingCluster.kt | 49 +- .../BooleanSensorConfigurationCluster.kt | 72 +- .../cluster/clusters/BooleanStateCluster.kt | 41 +- .../BridgedDeviceBasicInformationCluster.kt | 108 +- ...nDioxideConcentrationMeasurementCluster.kt | 81 +- ...MonoxideConcentrationMeasurementCluster.kt | 81 +- .../cluster/clusters/ChannelCluster.kt | 70 +- .../cluster/clusters/ColorControlCluster.kt | 561 ++++---- .../clusters/ContentLauncherCluster.kt | 63 +- .../DemandResponseLoadControlCluster.kt | 105 +- .../cluster/clusters/DescriptorCluster.kt | 61 +- .../cluster/clusters/DiagnosticLogsCluster.kt | 51 +- .../clusters/DishwasherAlarmCluster.kt | 60 +- .../cluster/clusters/DishwasherModeCluster.kt | 84 +- .../cluster/clusters/DoorLockCluster.kt | 443 +++--- .../clusters/ElectricalMeasurementCluster.kt | 556 ++------ .../EthernetNetworkDiagnosticsCluster.kt | 85 +- .../cluster/clusters/FanControlCluster.kt | 140 +- .../cluster/clusters/FaultInjectionCluster.kt | 64 +- .../cluster/clusters/FixedLabelCluster.kt | 40 +- .../clusters/FlowMeasurementCluster.kt | 53 +- ...aldehydeConcentrationMeasurementCluster.kt | 81 +- .../clusters/GeneralCommissioningCluster.kt | 96 +- .../clusters/GeneralDiagnosticsCluster.kt | 87 +- .../clusters/GroupKeyManagementCluster.kt | 90 +- .../cluster/clusters/GroupsCluster.kt | 102 +- .../clusters/HepaFilterMonitoringCluster.kt | 69 +- .../cluster/clusters/IcdManagementCluster.kt | 85 +- .../cluster/clusters/IdentifyCluster.kt | 58 +- .../clusters/IlluminanceMeasurementCluster.kt | 57 +- .../cluster/clusters/KeypadInputCluster.kt | 37 +- .../clusters/LaundryDryerControlsCluster.kt | 51 +- .../clusters/LaundryWasherControlsCluster.kt | 67 +- .../clusters/LaundryWasherModeCluster.kt | 84 +- .../cluster/clusters/LevelControlCluster.kt | 228 ++-- .../LocalizationConfigurationCluster.kt | 52 +- .../cluster/clusters/LowPowerCluster.kt | 33 +- .../cluster/clusters/MediaInputCluster.kt | 53 +- .../cluster/clusters/MediaPlaybackCluster.kt | 113 +- .../clusters/MicrowaveOvenControlCluster.kt | 72 +- .../clusters/MicrowaveOvenModeCluster.kt | 45 +- .../cluster/clusters/ModeSelectCluster.kt | 78 +- .../clusters/NetworkCommissioningCluster.kt | 181 ++- ...nDioxideConcentrationMeasurementCluster.kt | 81 +- .../clusters/OccupancySensingCluster.kt | 82 +- .../cluster/clusters/OnOffCluster.kt | 101 +- .../OnOffSwitchConfigurationCluster.kt | 53 +- .../clusters/OperationalCredentialsCluster.kt | 152 +-- .../clusters/OperationalStateCluster.kt | 70 +- .../OtaSoftwareUpdateProviderCluster.kt | 85 +- .../OtaSoftwareUpdateRequestorCluster.kt | 66 +- .../cluster/clusters/OvenModeCluster.kt | 79 +- .../OzoneConcentrationMeasurementCluster.kt | 81 +- .../Pm10ConcentrationMeasurementCluster.kt | 81 +- .../Pm1ConcentrationMeasurementCluster.kt | 81 +- .../Pm25ConcentrationMeasurementCluster.kt | 81 +- .../cluster/clusters/PowerSourceCluster.kt | 169 +-- .../PowerSourceConfigurationCluster.kt | 45 +- .../clusters/PressureMeasurementCluster.kt | 75 +- .../clusters/ProxyConfigurationCluster.kt | 36 +- .../cluster/clusters/ProxyDiscoveryCluster.kt | 36 +- .../cluster/clusters/ProxyValidCluster.kt | 31 +- .../clusters/PulseWidthModulationCluster.kt | 36 +- .../PumpConfigurationAndControlCluster.kt | 186 +-- .../RadonConcentrationMeasurementCluster.kt | 81 +- .../clusters/RefrigeratorAlarmCluster.kt | 51 +- ...TemperatureControlledCabinetModeCluster.kt | 80 +- .../RelativeHumidityMeasurementCluster.kt | 53 +- .../cluster/clusters/RvcCleanModeCluster.kt | 73 +- .../clusters/RvcOperationalStateCluster.kt | 70 +- .../cluster/clusters/RvcRunModeCluster.kt | 68 +- .../cluster/clusters/SampleMeiCluster.kt | 57 +- .../cluster/clusters/ScenesCluster.kt | 217 ++- .../cluster/clusters/SmokeCoAlarmCluster.kt | 110 +- .../clusters/SoftwareDiagnosticsCluster.kt | 52 +- .../cluster/clusters/SwitchCluster.kt | 46 +- .../clusters/TargetNavigatorCluster.kt | 58 +- .../clusters/TemperatureControlCluster.kt | 68 +- .../clusters/TemperatureMeasurementCluster.kt | 53 +- .../cluster/clusters/ThermostatCluster.kt | 528 +++----- ...mostatUserInterfaceConfigurationCluster.kt | 64 +- .../ThreadNetworkDiagnosticsCluster.kt | 329 +---- .../clusters/TimeFormatLocalizationCluster.kt | 64 +- .../clusters/TimeSynchronizationCluster.kt | 151 +-- .../cluster/clusters/TimerCluster.kt | 54 +- ...ompoundsConcentrationMeasurementCluster.kt | 81 +- .../clusters/UnitLocalizationCluster.kt | 48 +- .../cluster/clusters/UnitTestingCluster.kt | 1202 ++++++----------- .../cluster/clusters/UserLabelCluster.kt | 44 +- .../ValveConfigurationAndControlCluster.kt | 110 +- .../cluster/clusters/WakeOnLanCluster.kt | 41 +- .../clusters/WiFiNetworkDiagnosticsCluster.kt | 100 +- .../cluster/clusters/WindowCoveringCluster.kt | 161 +-- ...olClusterAccessControlEntryChangedEvent.kt | 60 +- ...usterAccessControlExtensionChangedEvent.kt | 60 +- .../ActionsClusterActionFailedEvent.kt | 6 +- .../ActionsClusterStateChangedEvent.kt | 6 +- .../BasicInformationClusterLeaveEvent.kt | 10 +- ...InformationClusterReachableChangedEvent.kt | 10 +- .../BasicInformationClusterStartUpEvent.kt | 10 +- ...igurationClusterAlarmsStateChangedEvent.kt | 24 +- .../BooleanStateClusterStateChangeEvent.kt | 10 +- ...InformationClusterReachableChangedEvent.kt | 13 +- ...viceBasicInformationClusterStartUpEvent.kt | 13 +- ...lusterLoadControlEventStatusChangeEvent.kt | 214 +-- .../DishwasherAlarmClusterNotifyEvent.kt | 6 +- .../DoorLockClusterDoorLockAlarmEvent.kt | 10 +- .../DoorLockClusterDoorStateChangeEvent.kt | 10 +- .../DoorLockClusterLockOperationErrorEvent.kt | 108 +- .../DoorLockClusterLockOperationEvent.kt | 107 +- .../DoorLockClusterLockUserChangeEvent.kt | 68 +- ...eneralDiagnosticsClusterBootReasonEvent.kt | 10 +- ...gnosticsClusterHardwareFaultChangeEvent.kt | 34 +- ...agnosticsClusterNetworkFaultChangeEvent.kt | 34 +- ...DiagnosticsClusterRadioFaultChangeEvent.kt | 31 +- ...nalStateClusterOperationCompletionEvent.kt | 68 +- ...tionalStateClusterOperationalErrorEvent.kt | 12 +- ...pdateRequestorClusterDownloadErrorEvent.kt | 42 +- ...ateRequestorClusterStateTransitionEvent.kt | 29 +- ...dateRequestorClusterVersionAppliedEvent.kt | 9 +- ...rSourceClusterBatChargeFaultChangeEvent.kt | 31 +- .../PowerSourceClusterBatFaultChangeEvent.kt | 36 +- ...PowerSourceClusterWiredFaultChangeEvent.kt | 36 +- .../RefrigeratorAlarmClusterNotifyEvent.kt | 6 +- ...nalStateClusterOperationCompletionEvent.kt | 68 +- ...tionalStateClusterOperationalErrorEvent.kt | 15 +- .../SmokeCoAlarmClusterCOAlarmEvent.kt | 10 +- ...eCoAlarmClusterInterconnectCOAlarmEvent.kt | 10 +- ...AlarmClusterInterconnectSmokeAlarmEvent.kt | 10 +- .../SmokeCoAlarmClusterLowBatteryEvent.kt | 10 +- .../SmokeCoAlarmClusterSmokeAlarmEvent.kt | 10 +- ...areDiagnosticsClusterSoftwareFaultEvent.kt | 27 +- .../SwitchClusterInitialPressEvent.kt | 10 +- .../SwitchClusterLongPressEvent.kt | 10 +- .../SwitchClusterLongReleaseEvent.kt | 10 +- .../SwitchClusterMultiPressCompleteEvent.kt | 9 +- .../SwitchClusterMultiPressOngoingEvent.kt | 9 +- .../SwitchClusterShortReleaseEvent.kt | 10 +- .../SwitchClusterSwitchLatchedEvent.kt | 10 +- ...DiagnosticsClusterConnectionStatusEvent.kt | 13 +- ...agnosticsClusterNetworkFaultChangeEvent.kt | 34 +- ...imeSynchronizationClusterDSTStatusEvent.kt | 10 +- ...nchronizationClusterTimeZoneStatusEvent.kt | 21 +- .../UnitTestingClusterTestEventEvent.kt | 42 +- ...estingClusterTestFabricScopedEventEvent.kt | 10 +- ...urationAndControlClusterValveFaultEvent.kt | 13 +- ...AndControlClusterValveStateChangedEvent.kt | 13 +- ...agnosticsClusterAssociationFailureEvent.kt | 12 +- ...DiagnosticsClusterConnectionStatusEvent.kt | 13 +- ...orkDiagnosticsClusterDisconnectionEvent.kt | 13 +- ...sControlClusterAccessControlEntryStruct.kt | 77 +- ...trolClusterAccessControlExtensionStruct.kt | 9 +- ...ControlClusterAccessControlTargetStruct.kt | 43 +- .../structs/ActionsClusterActionStruct.kt | 13 +- .../ActionsClusterEndpointListStruct.kt | 18 +- ...nitoringClusterReplacementProductStruct.kt | 17 +- ...pplicationBasicClusterApplicationStruct.kt | 4 +- ...ationLauncherClusterApplicationEPStruct.kt | 20 +- ...icationLauncherClusterApplicationStruct.kt | 4 +- .../AudioOutputClusterOutputInfoStruct.kt | 10 +- ...nformationClusterCapabilityMinimaStruct.kt | 15 +- ...formationClusterProductAppearanceStruct.kt | 22 +- .../structs/BindingClusterTargetStruct.kt | 47 +- ...formationClusterProductAppearanceStruct.kt | 22 +- .../ChannelClusterChannelInfoStruct.kt | 44 +- .../structs/ChannelClusterLineupInfoStruct.kt | 25 +- ...tentLauncherClusterAdditionalInfoStruct.kt | 9 +- ...auncherClusterBrandingInformationStruct.kt | 97 +- ...ntentLauncherClusterContentSearchStruct.kt | 18 +- .../ContentLauncherClusterDimensionStruct.kt | 4 +- .../ContentLauncherClusterParameterStruct.kt | 35 +- ...ntLauncherClusterStyleInformationStruct.kt | 38 +- ...dControlClusterAverageLoadControlStruct.kt | 13 +- ...oadControlClusterDutyCycleControlStruct.kt | 13 +- ...ontrolClusterHeatingSourceControlStruct.kt | 13 +- ...oadControlClusterLoadControlEventStruct.kt | 75 +- ...ClusterLoadControlEventTransitionStruct.kt | 98 +- ...dControlClusterLoadControlProgramStruct.kt | 56 +- ...ControlClusterPowerSavingsControlStruct.kt | 13 +- ...dControlClusterTemperatureControlStruct.kt | 123 +- .../DescriptorClusterDeviceTypeStruct.kt | 9 +- .../DescriptorClusterSemanticTagStruct.kt | 43 +- .../DishwasherModeClusterModeOptionStruct.kt | 18 +- .../DishwasherModeClusterModeTagStruct.kt | 19 +- .../DoorLockClusterCredentialStruct.kt | 9 +- .../structs/FixedLabelClusterLabelStruct.kt | 9 +- ...missioningClusterBasicCommissioningInfo.kt | 20 +- ...neralDiagnosticsClusterNetworkInterface.kt | 80 +- ...pKeyManagementClusterGroupInfoMapStruct.kt | 28 +- ...upKeyManagementClusterGroupKeyMapStruct.kt | 4 +- ...upKeyManagementClusterGroupKeySetStruct.kt | 96 +- ...nitoringClusterReplacementProductStruct.kt | 17 +- ...mentClusterMonitoringRegistrationStruct.kt | 15 +- ...aundryWasherModeClusterModeOptionStruct.kt | 18 +- .../LaundryWasherModeClusterModeTagStruct.kt | 19 +- .../MediaInputClusterInputInfoStruct.kt | 4 +- ...iaPlaybackClusterPlaybackPositionStruct.kt | 22 +- ...icrowaveOvenModeClusterModeOptionStruct.kt | 18 +- .../MicrowaveOvenModeClusterModeTagStruct.kt | 19 +- .../ModeSelectClusterModeOptionStruct.kt | 18 +- .../ModeSelectClusterSemanticTagStruct.kt | 9 +- ...rkCommissioningClusterNetworkInfoStruct.kt | 64 +- ...gClusterThreadInterfaceScanResultStruct.kt | 20 +- ...ingClusterWiFiInterfaceScanResultStruct.kt | 18 +- ...redentialsClusterFabricDescriptorStruct.kt | 18 +- .../OperationalCredentialsClusterNOCStruct.kt | 17 +- ...OperationalStateClusterErrorStateStruct.kt | 31 +- ...ionalStateClusterOperationalStateStruct.kt | 19 +- ...eUpdateRequestorClusterProviderLocation.kt | 15 +- .../OvenModeClusterModeOptionStruct.kt | 18 +- .../structs/OvenModeClusterModeTagStruct.kt | 19 +- ...erSourceClusterBatChargeFaultChangeType.kt | 33 +- .../PowerSourceClusterBatFaultChangeType.kt | 38 +- .../PowerSourceClusterWiredFaultChangeType.kt | 38 +- ...olledCabinetModeClusterModeOptionStruct.kt | 34 +- ...ntrolledCabinetModeClusterModeTagStruct.kt | 19 +- .../RvcCleanModeClusterModeOptionStruct.kt | 18 +- .../RvcCleanModeClusterModeTagStruct.kt | 19 +- ...OperationalStateClusterErrorStateStruct.kt | 31 +- ...ionalStateClusterOperationalStateStruct.kt | 24 +- .../RvcRunModeClusterModeOptionStruct.kt | 18 +- .../structs/RvcRunModeClusterModeTagStruct.kt | 19 +- .../ScenesClusterAttributeValuePair.kt | 9 +- .../structs/ScenesClusterExtensionFieldSet.kt | 18 +- .../structs/ScenesClusterSceneInfoStruct.kt | 13 +- ...reDiagnosticsClusterThreadMetricsStruct.kt | 55 +- .../TargetNavigatorClusterTargetInfoStruct.kt | 9 +- .../structs/ThermostatClusterPresetStruct.kt | 87 +- .../ThermostatClusterPresetTypeStruct.kt | 4 +- .../ThermostatClusterQueuedPresetStruct.kt | 30 +- .../ThermostatClusterScheduleStruct.kt | 88 +- ...ermostatClusterScheduleTransitionStruct.kt | 56 +- .../ThermostatClusterScheduleTypeStruct.kt | 10 +- ...usterThermostatScheduleTransitionStruct.kt | 15 +- ...rkDiagnosticsClusterNeighborTableStruct.kt | 52 +- ...ticsClusterOperationalDatasetComponents.kt | 39 +- ...tworkDiagnosticsClusterRouteTableStruct.kt | 22 +- ...NetworkDiagnosticsClusterSecurityPolicy.kt | 9 +- ...meSynchronizationClusterDSTOffsetStruct.kt | 17 +- ...sterFabricScopedTrustedTimeSourceStruct.kt | 9 +- ...imeSynchronizationClusterTimeZoneStruct.kt | 14 +- ...onizationClusterTrustedTimeSourceStruct.kt | 9 +- ...nitTestingClusterDoubleNestedStructList.kt | 22 +- .../structs/UnitTestingClusterNestedStruct.kt | 4 +- .../UnitTestingClusterNestedStructList.kt | 63 +- ...stingClusterNullablesAndOptionalsStruct.kt | 295 ++-- .../structs/UnitTestingClusterSimpleStruct.kt | 4 +- .../UnitTestingClusterTestFabricScoped.kt | 100 +- .../UnitTestingClusterTestListStructOctet.kt | 9 +- .../structs/UserLabelClusterLabelStruct.kt | 9 +- 420 files changed, 10243 insertions(+), 13631 deletions(-) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlEntryChangedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlEntryChangedEvent.kt index 75edd8da4997e5..a206757d729531 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlEntryChangedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlEntryChangedEvent.kt @@ -17,22 +17,20 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class AccessControlClusterAccessControlEntryChangedEvent ( - val adminNodeID: ULong?, - val adminPasscodeID: UInt?, - val changeType: UInt, - val latestValue: chip.devicecontroller.cluster.structs.AccessControlClusterAccessControlEntryStruct?, - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class AccessControlClusterAccessControlEntryChangedEvent( + val adminNodeID: ULong?, + val adminPasscodeID: UInt?, + val changeType: UInt, + val latestValue: + chip.devicecontroller.cluster.structs.AccessControlClusterAccessControlEntryStruct?, + val fabricIndex: UInt +) { + override fun toString(): String = buildString { append("AccessControlClusterAccessControlEntryChangedEvent {\n") append("\tadminNodeID : $adminNodeID\n") append("\tadminPasscodeID : $adminPasscodeID\n") @@ -46,21 +44,21 @@ class AccessControlClusterAccessControlEntryChangedEvent ( tlvWriter.apply { startStructure(tlvTag) if (adminNodeID != null) { - put(ContextSpecificTag(TAG_ADMIN_NODE_I_D), adminNodeID) - } else { - putNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - } + put(ContextSpecificTag(TAG_ADMIN_NODE_I_D), adminNodeID) + } else { + putNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + } if (adminPasscodeID != null) { - put(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D), adminPasscodeID) - } else { - putNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - } + put(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D), adminPasscodeID) + } else { + putNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + } put(ContextSpecificTag(TAG_CHANGE_TYPE), changeType) if (latestValue != null) { - latestValue.toTlv(ContextSpecificTag(TAG_LATEST_VALUE), this) - } else { - putNull(ContextSpecificTag(TAG_LATEST_VALUE)) - } + latestValue.toTlv(ContextSpecificTag(TAG_LATEST_VALUE), this) + } else { + putNull(ContextSpecificTag(TAG_LATEST_VALUE)) + } put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) endStructure() } @@ -73,32 +71,45 @@ class AccessControlClusterAccessControlEntryChangedEvent ( private const val TAG_LATEST_VALUE = 4 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlEntryChangedEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): AccessControlClusterAccessControlEntryChangedEvent { tlvReader.enterStructure(tlvTag) - val adminNodeID = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - null - } - val adminPasscodeID = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - null - } + val adminNodeID = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + null + } + val adminPasscodeID = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + null + } val changeType = tlvReader.getUInt(ContextSpecificTag(TAG_CHANGE_TYPE)) - val latestValue = if (!tlvReader.isNull()) { - chip.devicecontroller.cluster.structs.AccessControlClusterAccessControlEntryStruct.fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE)) - null - } + val latestValue = + if (!tlvReader.isNull()) { + chip.devicecontroller.cluster.structs.AccessControlClusterAccessControlEntryStruct + .fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE)) + null + } val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return AccessControlClusterAccessControlEntryChangedEvent(adminNodeID, adminPasscodeID, changeType, latestValue, fabricIndex) + return AccessControlClusterAccessControlEntryChangedEvent( + adminNodeID, + adminPasscodeID, + changeType, + latestValue, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlExtensionChangedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlExtensionChangedEvent.kt index 31aad754e04833..8377cc96d5f545 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlExtensionChangedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlExtensionChangedEvent.kt @@ -17,22 +17,20 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class AccessControlClusterAccessControlExtensionChangedEvent ( - val adminNodeID: ULong?, - val adminPasscodeID: UInt?, - val changeType: UInt, - val latestValue: chip.devicecontroller.cluster.structs.AccessControlClusterAccessControlExtensionStruct?, - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class AccessControlClusterAccessControlExtensionChangedEvent( + val adminNodeID: ULong?, + val adminPasscodeID: UInt?, + val changeType: UInt, + val latestValue: + chip.devicecontroller.cluster.structs.AccessControlClusterAccessControlExtensionStruct?, + val fabricIndex: UInt +) { + override fun toString(): String = buildString { append("AccessControlClusterAccessControlExtensionChangedEvent {\n") append("\tadminNodeID : $adminNodeID\n") append("\tadminPasscodeID : $adminPasscodeID\n") @@ -46,21 +44,21 @@ class AccessControlClusterAccessControlExtensionChangedEvent ( tlvWriter.apply { startStructure(tlvTag) if (adminNodeID != null) { - put(ContextSpecificTag(TAG_ADMIN_NODE_I_D), adminNodeID) - } else { - putNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - } + put(ContextSpecificTag(TAG_ADMIN_NODE_I_D), adminNodeID) + } else { + putNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + } if (adminPasscodeID != null) { - put(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D), adminPasscodeID) - } else { - putNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - } + put(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D), adminPasscodeID) + } else { + putNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + } put(ContextSpecificTag(TAG_CHANGE_TYPE), changeType) if (latestValue != null) { - latestValue.toTlv(ContextSpecificTag(TAG_LATEST_VALUE), this) - } else { - putNull(ContextSpecificTag(TAG_LATEST_VALUE)) - } + latestValue.toTlv(ContextSpecificTag(TAG_LATEST_VALUE), this) + } else { + putNull(ContextSpecificTag(TAG_LATEST_VALUE)) + } put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) endStructure() } @@ -73,32 +71,45 @@ class AccessControlClusterAccessControlExtensionChangedEvent ( private const val TAG_LATEST_VALUE = 4 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlExtensionChangedEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): AccessControlClusterAccessControlExtensionChangedEvent { tlvReader.enterStructure(tlvTag) - val adminNodeID = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - null - } - val adminPasscodeID = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - null - } + val adminNodeID = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + null + } + val adminPasscodeID = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + null + } val changeType = tlvReader.getUInt(ContextSpecificTag(TAG_CHANGE_TYPE)) - val latestValue = if (!tlvReader.isNull()) { - chip.devicecontroller.cluster.structs.AccessControlClusterAccessControlExtensionStruct.fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE)) - null - } + val latestValue = + if (!tlvReader.isNull()) { + chip.devicecontroller.cluster.structs.AccessControlClusterAccessControlExtensionStruct + .fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE)) + null + } val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return AccessControlClusterAccessControlExtensionChangedEvent(adminNodeID, adminPasscodeID, changeType, latestValue, fabricIndex) + return AccessControlClusterAccessControlExtensionChangedEvent( + adminNodeID, + adminPasscodeID, + changeType, + latestValue, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ActionsClusterActionFailedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ActionsClusterActionFailedEvent.kt index 59405162837cd8..ea2f1931564f35 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ActionsClusterActionFailedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ActionsClusterActionFailedEvent.kt @@ -17,21 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ActionsClusterActionFailedEvent ( - val actionID: UInt, - val invokeID: ULong, - val newState: UInt, - val error: UInt) { - override fun toString(): String = buildString { +class ActionsClusterActionFailedEvent( + val actionID: UInt, + val invokeID: ULong, + val newState: UInt, + val error: UInt +) { + override fun toString(): String = buildString { append("ActionsClusterActionFailedEvent {\n") append("\tactionID : $actionID\n") append("\tinvokeID : $invokeID\n") @@ -57,13 +54,13 @@ class ActionsClusterActionFailedEvent ( private const val TAG_NEW_STATE = 2 private const val TAG_ERROR = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActionsClusterActionFailedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ActionsClusterActionFailedEvent { tlvReader.enterStructure(tlvTag) val actionID = tlvReader.getUInt(ContextSpecificTag(TAG_ACTION_I_D)) val invokeID = tlvReader.getULong(ContextSpecificTag(TAG_INVOKE_I_D)) val newState = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_STATE)) val error = tlvReader.getUInt(ContextSpecificTag(TAG_ERROR)) - + tlvReader.exitContainer() return ActionsClusterActionFailedEvent(actionID, invokeID, newState, error) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ActionsClusterStateChangedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ActionsClusterStateChangedEvent.kt index 868fbace2ac50e..d95c5e9d66480b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ActionsClusterStateChangedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ActionsClusterStateChangedEvent.kt @@ -17,20 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ActionsClusterStateChangedEvent ( - val actionID: UInt, - val invokeID: ULong, - val newState: UInt) { - override fun toString(): String = buildString { +class ActionsClusterStateChangedEvent(val actionID: UInt, val invokeID: ULong, val newState: UInt) { + override fun toString(): String = buildString { append("ActionsClusterStateChangedEvent {\n") append("\tactionID : $actionID\n") append("\tinvokeID : $invokeID\n") @@ -53,12 +46,12 @@ class ActionsClusterStateChangedEvent ( private const val TAG_INVOKE_I_D = 1 private const val TAG_NEW_STATE = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActionsClusterStateChangedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ActionsClusterStateChangedEvent { tlvReader.enterStructure(tlvTag) val actionID = tlvReader.getUInt(ContextSpecificTag(TAG_ACTION_I_D)) val invokeID = tlvReader.getULong(ContextSpecificTag(TAG_INVOKE_I_D)) val newState = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_STATE)) - + tlvReader.exitContainer() return ActionsClusterStateChangedEvent(actionID, invokeID, newState) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterLeaveEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterLeaveEvent.kt index 8ca5a2a0195e9c..6d2c068c849afb 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterLeaveEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterLeaveEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BasicInformationClusterLeaveEvent ( - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class BasicInformationClusterLeaveEvent(val fabricIndex: UInt) { + override fun toString(): String = buildString { append("BasicInformationClusterLeaveEvent {\n") append("\tfabricIndex : $fabricIndex\n") append("}\n") @@ -45,10 +40,10 @@ class BasicInformationClusterLeaveEvent ( companion object { private const val TAG_FABRIC_INDEX = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterLeaveEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterLeaveEvent { tlvReader.enterStructure(tlvTag) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return BasicInformationClusterLeaveEvent(fabricIndex) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterReachableChangedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterReachableChangedEvent.kt index 4a6bf00b468e48..4e6cb20e13c5e0 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterReachableChangedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterReachableChangedEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BasicInformationClusterReachableChangedEvent ( - val reachableNewValue: Boolean) { - override fun toString(): String = buildString { +class BasicInformationClusterReachableChangedEvent(val reachableNewValue: Boolean) { + override fun toString(): String = buildString { append("BasicInformationClusterReachableChangedEvent {\n") append("\treachableNewValue : $reachableNewValue\n") append("}\n") @@ -45,10 +40,10 @@ class BasicInformationClusterReachableChangedEvent ( companion object { private const val TAG_REACHABLE_NEW_VALUE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterReachableChangedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterReachableChangedEvent { tlvReader.enterStructure(tlvTag) val reachableNewValue = tlvReader.getBoolean(ContextSpecificTag(TAG_REACHABLE_NEW_VALUE)) - + tlvReader.exitContainer() return BasicInformationClusterReachableChangedEvent(reachableNewValue) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterStartUpEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterStartUpEvent.kt index b87f7ebee81d72..5ba3a8d3591e9a 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterStartUpEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BasicInformationClusterStartUpEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BasicInformationClusterStartUpEvent ( - val softwareVersion: ULong) { - override fun toString(): String = buildString { +class BasicInformationClusterStartUpEvent(val softwareVersion: ULong) { + override fun toString(): String = buildString { append("BasicInformationClusterStartUpEvent {\n") append("\tsoftwareVersion : $softwareVersion\n") append("}\n") @@ -45,10 +40,10 @@ class BasicInformationClusterStartUpEvent ( companion object { private const val TAG_SOFTWARE_VERSION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterStartUpEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterStartUpEvent { tlvReader.enterStructure(tlvTag) val softwareVersion = tlvReader.getULong(ContextSpecificTag(TAG_SOFTWARE_VERSION)) - + tlvReader.exitContainer() return BasicInformationClusterStartUpEvent(softwareVersion) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BooleanSensorConfigurationClusterAlarmsStateChangedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BooleanSensorConfigurationClusterAlarmsStateChangedEvent.kt index 412a372e5baadd..c51a8e06724875 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BooleanSensorConfigurationClusterAlarmsStateChangedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BooleanSensorConfigurationClusterAlarmsStateChangedEvent.kt @@ -17,19 +17,17 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BooleanSensorConfigurationClusterAlarmsStateChangedEvent ( - val alarmsActive: UInt, - val alarmsSuppressed: Optional) { - override fun toString(): String = buildString { +class BooleanSensorConfigurationClusterAlarmsStateChangedEvent( + val alarmsActive: UInt, + val alarmsSuppressed: Optional +) { + override fun toString(): String = buildString { append("BooleanSensorConfigurationClusterAlarmsStateChangedEvent {\n") append("\talarmsActive : $alarmsActive\n") append("\talarmsSuppressed : $alarmsSuppressed\n") @@ -41,9 +39,9 @@ class BooleanSensorConfigurationClusterAlarmsStateChangedEvent ( startStructure(tlvTag) put(ContextSpecificTag(TAG_ALARMS_ACTIVE), alarmsActive) if (alarmsSuppressed.isPresent) { - val optalarmsSuppressed = alarmsSuppressed.get() - put(ContextSpecificTag(TAG_ALARMS_SUPPRESSED), optalarmsSuppressed) - } + val optalarmsSuppressed = alarmsSuppressed.get() + put(ContextSpecificTag(TAG_ALARMS_SUPPRESSED), optalarmsSuppressed) + } endStructure() } } @@ -52,18 +50,25 @@ class BooleanSensorConfigurationClusterAlarmsStateChangedEvent ( private const val TAG_ALARMS_ACTIVE = 0 private const val TAG_ALARMS_SUPPRESSED = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BooleanSensorConfigurationClusterAlarmsStateChangedEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): BooleanSensorConfigurationClusterAlarmsStateChangedEvent { tlvReader.enterStructure(tlvTag) val alarmsActive = tlvReader.getUInt(ContextSpecificTag(TAG_ALARMS_ACTIVE)) - val alarmsSuppressed = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ALARMS_SUPPRESSED))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_ALARMS_SUPPRESSED))) - } else { - Optional.empty() - } - + val alarmsSuppressed = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ALARMS_SUPPRESSED))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_ALARMS_SUPPRESSED))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return BooleanSensorConfigurationClusterAlarmsStateChangedEvent(alarmsActive, alarmsSuppressed) + return BooleanSensorConfigurationClusterAlarmsStateChangedEvent( + alarmsActive, + alarmsSuppressed + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BooleanStateClusterStateChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BooleanStateClusterStateChangeEvent.kt index 632226d00db082..f133fd21988180 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BooleanStateClusterStateChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BooleanStateClusterStateChangeEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BooleanStateClusterStateChangeEvent ( - val stateValue: Boolean) { - override fun toString(): String = buildString { +class BooleanStateClusterStateChangeEvent(val stateValue: Boolean) { + override fun toString(): String = buildString { append("BooleanStateClusterStateChangeEvent {\n") append("\tstateValue : $stateValue\n") append("}\n") @@ -45,10 +40,10 @@ class BooleanStateClusterStateChangeEvent ( companion object { private const val TAG_STATE_VALUE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BooleanStateClusterStateChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BooleanStateClusterStateChangeEvent { tlvReader.enterStructure(tlvTag) val stateValue = tlvReader.getBoolean(ContextSpecificTag(TAG_STATE_VALUE)) - + tlvReader.exitContainer() return BooleanStateClusterStateChangeEvent(stateValue) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterReachableChangedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterReachableChangedEvent.kt index b5bbae742887b3..4a66dd930bf954 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterReachableChangedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterReachableChangedEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BridgedDeviceBasicInformationClusterReachableChangedEvent ( - val reachableNewValue: Boolean) { - override fun toString(): String = buildString { +class BridgedDeviceBasicInformationClusterReachableChangedEvent(val reachableNewValue: Boolean) { + override fun toString(): String = buildString { append("BridgedDeviceBasicInformationClusterReachableChangedEvent {\n") append("\treachableNewValue : $reachableNewValue\n") append("}\n") @@ -45,10 +40,13 @@ class BridgedDeviceBasicInformationClusterReachableChangedEvent ( companion object { private const val TAG_REACHABLE_NEW_VALUE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BridgedDeviceBasicInformationClusterReachableChangedEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): BridgedDeviceBasicInformationClusterReachableChangedEvent { tlvReader.enterStructure(tlvTag) val reachableNewValue = tlvReader.getBoolean(ContextSpecificTag(TAG_REACHABLE_NEW_VALUE)) - + tlvReader.exitContainer() return BridgedDeviceBasicInformationClusterReachableChangedEvent(reachableNewValue) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterStartUpEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterStartUpEvent.kt index ac2c49d2929233..33e897ec0dcc9c 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterStartUpEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterStartUpEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BridgedDeviceBasicInformationClusterStartUpEvent ( - val softwareVersion: ULong) { - override fun toString(): String = buildString { +class BridgedDeviceBasicInformationClusterStartUpEvent(val softwareVersion: ULong) { + override fun toString(): String = buildString { append("BridgedDeviceBasicInformationClusterStartUpEvent {\n") append("\tsoftwareVersion : $softwareVersion\n") append("}\n") @@ -45,10 +40,13 @@ class BridgedDeviceBasicInformationClusterStartUpEvent ( companion object { private const val TAG_SOFTWARE_VERSION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BridgedDeviceBasicInformationClusterStartUpEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): BridgedDeviceBasicInformationClusterStartUpEvent { tlvReader.enterStructure(tlvTag) val softwareVersion = tlvReader.getULong(ContextSpecificTag(TAG_SOFTWARE_VERSION)) - + tlvReader.exitContainer() return BridgedDeviceBasicInformationClusterStartUpEvent(softwareVersion) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent.kt index 788512180453b2..a4ab48a89bc770 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent.kt @@ -17,27 +17,40 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent ( - val eventID: ByteArray, - val transitionIndex: UInt?, - val status: UInt, - val criticality: UInt, - val control: UInt, - val temperatureControl: Optional?, - val averageLoadControl: Optional?, - val dutyCycleControl: Optional?, - val powerSavingsControl: Optional?, - val heatingSourceControl: Optional?) { - override fun toString(): String = buildString { +class DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent( + val eventID: ByteArray, + val transitionIndex: UInt?, + val status: UInt, + val criticality: UInt, + val control: UInt, + val temperatureControl: + Optional< + chip.devicecontroller.cluster.structs.DemandResponseLoadControlClusterTemperatureControlStruct + >?, + val averageLoadControl: + Optional< + chip.devicecontroller.cluster.structs.DemandResponseLoadControlClusterAverageLoadControlStruct + >?, + val dutyCycleControl: + Optional< + chip.devicecontroller.cluster.structs.DemandResponseLoadControlClusterDutyCycleControlStruct + >?, + val powerSavingsControl: + Optional< + chip.devicecontroller.cluster.structs.DemandResponseLoadControlClusterPowerSavingsControlStruct + >?, + val heatingSourceControl: + Optional< + chip.devicecontroller.cluster.structs.DemandResponseLoadControlClusterHeatingSourceControlStruct + >? +) { + override fun toString(): String = buildString { append("DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent {\n") append("\teventID : $eventID\n") append("\ttransitionIndex : $transitionIndex\n") @@ -57,53 +70,53 @@ class DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent ( startStructure(tlvTag) put(ContextSpecificTag(TAG_EVENT_I_D), eventID) if (transitionIndex != null) { - put(ContextSpecificTag(TAG_TRANSITION_INDEX), transitionIndex) - } else { - putNull(ContextSpecificTag(TAG_TRANSITION_INDEX)) - } + put(ContextSpecificTag(TAG_TRANSITION_INDEX), transitionIndex) + } else { + putNull(ContextSpecificTag(TAG_TRANSITION_INDEX)) + } put(ContextSpecificTag(TAG_STATUS), status) put(ContextSpecificTag(TAG_CRITICALITY), criticality) put(ContextSpecificTag(TAG_CONTROL), control) if (temperatureControl != null) { - if (temperatureControl.isPresent) { - val opttemperatureControl = temperatureControl.get() - opttemperatureControl.toTlv(ContextSpecificTag(TAG_TEMPERATURE_CONTROL), this) - } - } else { - putNull(ContextSpecificTag(TAG_TEMPERATURE_CONTROL)) - } + if (temperatureControl.isPresent) { + val opttemperatureControl = temperatureControl.get() + opttemperatureControl.toTlv(ContextSpecificTag(TAG_TEMPERATURE_CONTROL), this) + } + } else { + putNull(ContextSpecificTag(TAG_TEMPERATURE_CONTROL)) + } if (averageLoadControl != null) { - if (averageLoadControl.isPresent) { - val optaverageLoadControl = averageLoadControl.get() - optaverageLoadControl.toTlv(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), this) - } - } else { - putNull(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL)) - } + if (averageLoadControl.isPresent) { + val optaverageLoadControl = averageLoadControl.get() + optaverageLoadControl.toTlv(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), this) + } + } else { + putNull(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL)) + } if (dutyCycleControl != null) { - if (dutyCycleControl.isPresent) { - val optdutyCycleControl = dutyCycleControl.get() - optdutyCycleControl.toTlv(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), this) - } - } else { - putNull(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL)) - } + if (dutyCycleControl.isPresent) { + val optdutyCycleControl = dutyCycleControl.get() + optdutyCycleControl.toTlv(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), this) + } + } else { + putNull(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL)) + } if (powerSavingsControl != null) { - if (powerSavingsControl.isPresent) { - val optpowerSavingsControl = powerSavingsControl.get() - optpowerSavingsControl.toTlv(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), this) - } - } else { - putNull(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL)) - } + if (powerSavingsControl.isPresent) { + val optpowerSavingsControl = powerSavingsControl.get() + optpowerSavingsControl.toTlv(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), this) + } + } else { + putNull(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL)) + } if (heatingSourceControl != null) { - if (heatingSourceControl.isPresent) { - val optheatingSourceControl = heatingSourceControl.get() - optheatingSourceControl.toTlv(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), this) - } - } else { - putNull(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL)) - } + if (heatingSourceControl.isPresent) { + val optheatingSourceControl = heatingSourceControl.get() + optheatingSourceControl.toTlv(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), this) + } + } else { + putNull(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL)) + } endStructure() } } @@ -120,72 +133,112 @@ class DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent ( private const val TAG_POWER_SAVINGS_CONTROL = 8 private const val TAG_HEATING_SOURCE_CONTROL = 9 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent { tlvReader.enterStructure(tlvTag) val eventID = tlvReader.getByteArray(ContextSpecificTag(TAG_EVENT_I_D)) - val transitionIndex = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_TRANSITION_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TRANSITION_INDEX)) - null - } + val transitionIndex = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_TRANSITION_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TRANSITION_INDEX)) + null + } val status = tlvReader.getUInt(ContextSpecificTag(TAG_STATUS)) val criticality = tlvReader.getUInt(ContextSpecificTag(TAG_CRITICALITY)) val control = tlvReader.getUInt(ContextSpecificTag(TAG_CONTROL)) - val temperatureControl = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_TEMPERATURE_CONTROL))) { - Optional.of(chip.devicecontroller.cluster.structs.DemandResponseLoadControlClusterTemperatureControlStruct.fromTlv(ContextSpecificTag(TAG_TEMPERATURE_CONTROL), tlvReader)) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TEMPERATURE_CONTROL)) - null - } - val averageLoadControl = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL))) { - Optional.of(chip.devicecontroller.cluster.structs.DemandResponseLoadControlClusterAverageLoadControlStruct.fromTlv(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), tlvReader)) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL)) - null - } - val dutyCycleControl = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL))) { - Optional.of(chip.devicecontroller.cluster.structs.DemandResponseLoadControlClusterDutyCycleControlStruct.fromTlv(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), tlvReader)) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL)) - null - } - val powerSavingsControl = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL))) { - Optional.of(chip.devicecontroller.cluster.structs.DemandResponseLoadControlClusterPowerSavingsControlStruct.fromTlv(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), tlvReader)) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL)) - null - } - val heatingSourceControl = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL))) { - Optional.of(chip.devicecontroller.cluster.structs.DemandResponseLoadControlClusterHeatingSourceControlStruct.fromTlv(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), tlvReader)) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL)) - null - } - + val temperatureControl = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_TEMPERATURE_CONTROL))) { + Optional.of( + chip.devicecontroller.cluster.structs + .DemandResponseLoadControlClusterTemperatureControlStruct + .fromTlv(ContextSpecificTag(TAG_TEMPERATURE_CONTROL), tlvReader) + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TEMPERATURE_CONTROL)) + null + } + val averageLoadControl = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL))) { + Optional.of( + chip.devicecontroller.cluster.structs + .DemandResponseLoadControlClusterAverageLoadControlStruct + .fromTlv(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), tlvReader) + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL)) + null + } + val dutyCycleControl = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL))) { + Optional.of( + chip.devicecontroller.cluster.structs + .DemandResponseLoadControlClusterDutyCycleControlStruct + .fromTlv(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), tlvReader) + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL)) + null + } + val powerSavingsControl = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL))) { + Optional.of( + chip.devicecontroller.cluster.structs + .DemandResponseLoadControlClusterPowerSavingsControlStruct + .fromTlv(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), tlvReader) + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL)) + null + } + val heatingSourceControl = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL))) { + Optional.of( + chip.devicecontroller.cluster.structs + .DemandResponseLoadControlClusterHeatingSourceControlStruct + .fromTlv(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), tlvReader) + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL)) + null + } + tlvReader.exitContainer() - return DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent(eventID, transitionIndex, status, criticality, control, temperatureControl, averageLoadControl, dutyCycleControl, powerSavingsControl, heatingSourceControl) + return DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent( + eventID, + transitionIndex, + status, + criticality, + control, + temperatureControl, + averageLoadControl, + dutyCycleControl, + powerSavingsControl, + heatingSourceControl + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DishwasherAlarmClusterNotifyEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DishwasherAlarmClusterNotifyEvent.kt index 71bdf0da0ad747..233b0d7030c8e5 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DishwasherAlarmClusterNotifyEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DishwasherAlarmClusterNotifyEvent.kt @@ -17,21 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DishwasherAlarmClusterNotifyEvent ( - val active: ULong, - val inactive: ULong, - val state: ULong, - val mask: ULong) { - override fun toString(): String = buildString { +class DishwasherAlarmClusterNotifyEvent( + val active: ULong, + val inactive: ULong, + val state: ULong, + val mask: ULong +) { + override fun toString(): String = buildString { append("DishwasherAlarmClusterNotifyEvent {\n") append("\tactive : $active\n") append("\tinactive : $inactive\n") @@ -57,13 +54,13 @@ class DishwasherAlarmClusterNotifyEvent ( private const val TAG_STATE = 2 private const val TAG_MASK = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DishwasherAlarmClusterNotifyEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DishwasherAlarmClusterNotifyEvent { tlvReader.enterStructure(tlvTag) val active = tlvReader.getULong(ContextSpecificTag(TAG_ACTIVE)) val inactive = tlvReader.getULong(ContextSpecificTag(TAG_INACTIVE)) val state = tlvReader.getULong(ContextSpecificTag(TAG_STATE)) val mask = tlvReader.getULong(ContextSpecificTag(TAG_MASK)) - + tlvReader.exitContainer() return DishwasherAlarmClusterNotifyEvent(active, inactive, state, mask) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterDoorLockAlarmEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterDoorLockAlarmEvent.kt index a64fa042cfcd15..918abe443473eb 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterDoorLockAlarmEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterDoorLockAlarmEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DoorLockClusterDoorLockAlarmEvent ( - val alarmCode: UInt) { - override fun toString(): String = buildString { +class DoorLockClusterDoorLockAlarmEvent(val alarmCode: UInt) { + override fun toString(): String = buildString { append("DoorLockClusterDoorLockAlarmEvent {\n") append("\talarmCode : $alarmCode\n") append("}\n") @@ -45,10 +40,10 @@ class DoorLockClusterDoorLockAlarmEvent ( companion object { private const val TAG_ALARM_CODE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterDoorLockAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterDoorLockAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmCode = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_CODE)) - + tlvReader.exitContainer() return DoorLockClusterDoorLockAlarmEvent(alarmCode) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterDoorStateChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterDoorStateChangeEvent.kt index bed611cb8674c0..64b69e7e205eb0 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterDoorStateChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterDoorStateChangeEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DoorLockClusterDoorStateChangeEvent ( - val doorState: UInt) { - override fun toString(): String = buildString { +class DoorLockClusterDoorStateChangeEvent(val doorState: UInt) { + override fun toString(): String = buildString { append("DoorLockClusterDoorStateChangeEvent {\n") append("\tdoorState : $doorState\n") append("}\n") @@ -45,10 +40,10 @@ class DoorLockClusterDoorStateChangeEvent ( companion object { private const val TAG_DOOR_STATE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterDoorStateChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterDoorStateChangeEvent { tlvReader.enterStructure(tlvTag) val doorState = tlvReader.getUInt(ContextSpecificTag(TAG_DOOR_STATE)) - + tlvReader.exitContainer() return DoorLockClusterDoorStateChangeEvent(doorState) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationErrorEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationErrorEvent.kt index c57900a30d7946..d943e5d8ece7b8 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationErrorEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationErrorEvent.kt @@ -17,24 +17,24 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import java.util.Optional import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DoorLockClusterLockOperationErrorEvent ( - val lockOperationType: UInt, - val operationSource: UInt, - val operationError: UInt, - val userIndex: UInt?, - val fabricIndex: UInt?, - val sourceNode: ULong?, - val credentials: Optional>?) { - override fun toString(): String = buildString { +class DoorLockClusterLockOperationErrorEvent( + val lockOperationType: UInt, + val operationSource: UInt, + val operationError: UInt, + val userIndex: UInt?, + val fabricIndex: UInt?, + val sourceNode: ULong?, + val credentials: + Optional>? +) { + override fun toString(): String = buildString { append("DoorLockClusterLockOperationErrorEvent {\n") append("\tlockOperationType : $lockOperationType\n") append("\toperationSource : $operationSource\n") @@ -53,32 +53,32 @@ class DoorLockClusterLockOperationErrorEvent ( put(ContextSpecificTag(TAG_OPERATION_SOURCE), operationSource) put(ContextSpecificTag(TAG_OPERATION_ERROR), operationError) if (userIndex != null) { - put(ContextSpecificTag(TAG_USER_INDEX), userIndex) - } else { - putNull(ContextSpecificTag(TAG_USER_INDEX)) - } + put(ContextSpecificTag(TAG_USER_INDEX), userIndex) + } else { + putNull(ContextSpecificTag(TAG_USER_INDEX)) + } if (fabricIndex != null) { - put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) - } else { - putNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - } + put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) + } else { + putNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + } if (sourceNode != null) { - put(ContextSpecificTag(TAG_SOURCE_NODE), sourceNode) - } else { - putNull(ContextSpecificTag(TAG_SOURCE_NODE)) - } + put(ContextSpecificTag(TAG_SOURCE_NODE), sourceNode) + } else { + putNull(ContextSpecificTag(TAG_SOURCE_NODE)) + } if (credentials != null) { - if (credentials.isPresent) { - val optcredentials = credentials.get() - startArray(ContextSpecificTag(TAG_CREDENTIALS)) - for (item in optcredentials.iterator()) { - item.toTlv(AnonymousTag, this) + if (credentials.isPresent) { + val optcredentials = credentials.get() + startArray(ContextSpecificTag(TAG_CREDENTIALS)) + for (item in optcredentials.iterator()) { + item.toTlv(AnonymousTag, this) + } + endArray() + } + } else { + putNull(ContextSpecificTag(TAG_CREDENTIALS)) } - endArray() - } - } else { - putNull(ContextSpecificTag(TAG_CREDENTIALS)) - } endStructure() } } @@ -92,49 +92,68 @@ class DoorLockClusterLockOperationErrorEvent ( private const val TAG_SOURCE_NODE = 5 private const val TAG_CREDENTIALS = 6 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterLockOperationErrorEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterLockOperationErrorEvent { tlvReader.enterStructure(tlvTag) val lockOperationType = tlvReader.getUInt(ContextSpecificTag(TAG_LOCK_OPERATION_TYPE)) val operationSource = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATION_SOURCE)) val operationError = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATION_ERROR)) - val userIndex = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_USER_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) - null - } - val fabricIndex = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - null - } - val sourceNode = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) - null - } - val credentials = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_CREDENTIALS))) { - Optional.of(buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CREDENTIALS)) - while(!tlvReader.isEndOfContainer()) { - this.add(chip.devicecontroller.cluster.structs.DoorLockClusterCredentialStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - }) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CREDENTIALS)) - null - } - + val userIndex = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_USER_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) + null + } + val fabricIndex = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + null + } + val sourceNode = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) + null + } + val credentials = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_CREDENTIALS))) { + Optional.of( + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CREDENTIALS)) + while (!tlvReader.isEndOfContainer()) { + this.add( + chip.devicecontroller.cluster.structs.DoorLockClusterCredentialStruct.fromTlv( + AnonymousTag, + tlvReader + ) + ) + } + tlvReader.exitContainer() + } + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_CREDENTIALS)) + null + } + tlvReader.exitContainer() - return DoorLockClusterLockOperationErrorEvent(lockOperationType, operationSource, operationError, userIndex, fabricIndex, sourceNode, credentials) + return DoorLockClusterLockOperationErrorEvent( + lockOperationType, + operationSource, + operationError, + userIndex, + fabricIndex, + sourceNode, + credentials + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationEvent.kt index e86a8e434ee3ae..0e7c7e678bac46 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationEvent.kt @@ -17,23 +17,23 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* +import java.util.Optional import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DoorLockClusterLockOperationEvent ( - val lockOperationType: UInt, - val operationSource: UInt, - val userIndex: UInt?, - val fabricIndex: UInt?, - val sourceNode: ULong?, - val credentials: Optional>?) { - override fun toString(): String = buildString { +class DoorLockClusterLockOperationEvent( + val lockOperationType: UInt, + val operationSource: UInt, + val userIndex: UInt?, + val fabricIndex: UInt?, + val sourceNode: ULong?, + val credentials: + Optional>? +) { + override fun toString(): String = buildString { append("DoorLockClusterLockOperationEvent {\n") append("\tlockOperationType : $lockOperationType\n") append("\toperationSource : $operationSource\n") @@ -50,32 +50,32 @@ class DoorLockClusterLockOperationEvent ( put(ContextSpecificTag(TAG_LOCK_OPERATION_TYPE), lockOperationType) put(ContextSpecificTag(TAG_OPERATION_SOURCE), operationSource) if (userIndex != null) { - put(ContextSpecificTag(TAG_USER_INDEX), userIndex) - } else { - putNull(ContextSpecificTag(TAG_USER_INDEX)) - } + put(ContextSpecificTag(TAG_USER_INDEX), userIndex) + } else { + putNull(ContextSpecificTag(TAG_USER_INDEX)) + } if (fabricIndex != null) { - put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) - } else { - putNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - } + put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) + } else { + putNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + } if (sourceNode != null) { - put(ContextSpecificTag(TAG_SOURCE_NODE), sourceNode) - } else { - putNull(ContextSpecificTag(TAG_SOURCE_NODE)) - } + put(ContextSpecificTag(TAG_SOURCE_NODE), sourceNode) + } else { + putNull(ContextSpecificTag(TAG_SOURCE_NODE)) + } if (credentials != null) { - if (credentials.isPresent) { - val optcredentials = credentials.get() - startArray(ContextSpecificTag(TAG_CREDENTIALS)) - for (item in optcredentials.iterator()) { - item.toTlv(AnonymousTag, this) + if (credentials.isPresent) { + val optcredentials = credentials.get() + startArray(ContextSpecificTag(TAG_CREDENTIALS)) + for (item in optcredentials.iterator()) { + item.toTlv(AnonymousTag, this) + } + endArray() + } + } else { + putNull(ContextSpecificTag(TAG_CREDENTIALS)) } - endArray() - } - } else { - putNull(ContextSpecificTag(TAG_CREDENTIALS)) - } endStructure() } } @@ -88,48 +88,66 @@ class DoorLockClusterLockOperationEvent ( private const val TAG_SOURCE_NODE = 4 private const val TAG_CREDENTIALS = 5 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterLockOperationEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterLockOperationEvent { tlvReader.enterStructure(tlvTag) val lockOperationType = tlvReader.getUInt(ContextSpecificTag(TAG_LOCK_OPERATION_TYPE)) val operationSource = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATION_SOURCE)) - val userIndex = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_USER_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) - null - } - val fabricIndex = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - null - } - val sourceNode = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) - null - } - val credentials = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_CREDENTIALS))) { - Optional.of(buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CREDENTIALS)) - while(!tlvReader.isEndOfContainer()) { - this.add(chip.devicecontroller.cluster.structs.DoorLockClusterCredentialStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - }) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CREDENTIALS)) - null - } - + val userIndex = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_USER_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) + null + } + val fabricIndex = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + null + } + val sourceNode = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) + null + } + val credentials = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_CREDENTIALS))) { + Optional.of( + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CREDENTIALS)) + while (!tlvReader.isEndOfContainer()) { + this.add( + chip.devicecontroller.cluster.structs.DoorLockClusterCredentialStruct.fromTlv( + AnonymousTag, + tlvReader + ) + ) + } + tlvReader.exitContainer() + } + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_CREDENTIALS)) + null + } + tlvReader.exitContainer() - return DoorLockClusterLockOperationEvent(lockOperationType, operationSource, userIndex, fabricIndex, sourceNode, credentials) + return DoorLockClusterLockOperationEvent( + lockOperationType, + operationSource, + userIndex, + fabricIndex, + sourceNode, + credentials + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockUserChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockUserChangeEvent.kt index 7ef7dc4931b846..a5fc3f3725485e 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockUserChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/DoorLockClusterLockUserChangeEvent.kt @@ -17,24 +17,21 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DoorLockClusterLockUserChangeEvent ( - val lockDataType: UInt, - val dataOperationType: UInt, - val operationSource: UInt, - val userIndex: UInt?, - val fabricIndex: UInt?, - val sourceNode: ULong?, - val dataIndex: UInt?) { - override fun toString(): String = buildString { +class DoorLockClusterLockUserChangeEvent( + val lockDataType: UInt, + val dataOperationType: UInt, + val operationSource: UInt, + val userIndex: UInt?, + val fabricIndex: UInt?, + val sourceNode: ULong?, + val dataIndex: UInt? +) { + override fun toString(): String = buildString { append("DoorLockClusterLockUserChangeEvent {\n") append("\tlockDataType : $lockDataType\n") append("\tdataOperationType : $dataOperationType\n") @@ -53,25 +50,25 @@ class DoorLockClusterLockUserChangeEvent ( put(ContextSpecificTag(TAG_DATA_OPERATION_TYPE), dataOperationType) put(ContextSpecificTag(TAG_OPERATION_SOURCE), operationSource) if (userIndex != null) { - put(ContextSpecificTag(TAG_USER_INDEX), userIndex) - } else { - putNull(ContextSpecificTag(TAG_USER_INDEX)) - } + put(ContextSpecificTag(TAG_USER_INDEX), userIndex) + } else { + putNull(ContextSpecificTag(TAG_USER_INDEX)) + } if (fabricIndex != null) { - put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) - } else { - putNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - } + put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) + } else { + putNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + } if (sourceNode != null) { - put(ContextSpecificTag(TAG_SOURCE_NODE), sourceNode) - } else { - putNull(ContextSpecificTag(TAG_SOURCE_NODE)) - } + put(ContextSpecificTag(TAG_SOURCE_NODE), sourceNode) + } else { + putNull(ContextSpecificTag(TAG_SOURCE_NODE)) + } if (dataIndex != null) { - put(ContextSpecificTag(TAG_DATA_INDEX), dataIndex) - } else { - putNull(ContextSpecificTag(TAG_DATA_INDEX)) - } + put(ContextSpecificTag(TAG_DATA_INDEX), dataIndex) + } else { + putNull(ContextSpecificTag(TAG_DATA_INDEX)) + } endStructure() } } @@ -85,39 +82,51 @@ class DoorLockClusterLockUserChangeEvent ( private const val TAG_SOURCE_NODE = 5 private const val TAG_DATA_INDEX = 6 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterLockUserChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterLockUserChangeEvent { tlvReader.enterStructure(tlvTag) val lockDataType = tlvReader.getUInt(ContextSpecificTag(TAG_LOCK_DATA_TYPE)) val dataOperationType = tlvReader.getUInt(ContextSpecificTag(TAG_DATA_OPERATION_TYPE)) val operationSource = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATION_SOURCE)) - val userIndex = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_USER_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) - null - } - val fabricIndex = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - null - } - val sourceNode = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) - null - } - val dataIndex = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_DATA_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_DATA_INDEX)) - null - } - + val userIndex = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_USER_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) + null + } + val fabricIndex = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + null + } + val sourceNode = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) + null + } + val dataIndex = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_DATA_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_DATA_INDEX)) + null + } + tlvReader.exitContainer() - return DoorLockClusterLockUserChangeEvent(lockDataType, dataOperationType, operationSource, userIndex, fabricIndex, sourceNode, dataIndex) + return DoorLockClusterLockUserChangeEvent( + lockDataType, + dataOperationType, + operationSource, + userIndex, + fabricIndex, + sourceNode, + dataIndex + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterBootReasonEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterBootReasonEvent.kt index c3100ce31c6f9b..ab8a2c3ad964b4 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterBootReasonEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterBootReasonEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GeneralDiagnosticsClusterBootReasonEvent ( - val bootReason: UInt) { - override fun toString(): String = buildString { +class GeneralDiagnosticsClusterBootReasonEvent(val bootReason: UInt) { + override fun toString(): String = buildString { append("GeneralDiagnosticsClusterBootReasonEvent {\n") append("\tbootReason : $bootReason\n") append("}\n") @@ -45,10 +40,10 @@ class GeneralDiagnosticsClusterBootReasonEvent ( companion object { private const val TAG_BOOT_REASON = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterBootReasonEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GeneralDiagnosticsClusterBootReasonEvent { tlvReader.enterStructure(tlvTag) val bootReason = tlvReader.getUInt(ContextSpecificTag(TAG_BOOT_REASON)) - + tlvReader.exitContainer() return GeneralDiagnosticsClusterBootReasonEvent(bootReason) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterHardwareFaultChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterHardwareFaultChangeEvent.kt index f93896c837f200..e09f3961230b34 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterHardwareFaultChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterHardwareFaultChangeEvent.kt @@ -20,16 +20,14 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GeneralDiagnosticsClusterHardwareFaultChangeEvent ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class GeneralDiagnosticsClusterHardwareFaultChangeEvent( + val current: List, + val previous: List +) { + override fun toString(): String = buildString { append("GeneralDiagnosticsClusterHardwareFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +55,28 @@ class GeneralDiagnosticsClusterHardwareFaultChangeEvent ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterHardwareFaultChangeEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): GeneralDiagnosticsClusterHardwareFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return GeneralDiagnosticsClusterHardwareFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterNetworkFaultChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterNetworkFaultChangeEvent.kt index ebc04643e795f2..2d17b1773194dc 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterNetworkFaultChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterNetworkFaultChangeEvent.kt @@ -20,16 +20,14 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GeneralDiagnosticsClusterNetworkFaultChangeEvent ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class GeneralDiagnosticsClusterNetworkFaultChangeEvent( + val current: List, + val previous: List +) { + override fun toString(): String = buildString { append("GeneralDiagnosticsClusterNetworkFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +55,28 @@ class GeneralDiagnosticsClusterNetworkFaultChangeEvent ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterNetworkFaultChangeEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): GeneralDiagnosticsClusterNetworkFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return GeneralDiagnosticsClusterNetworkFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterRadioFaultChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterRadioFaultChangeEvent.kt index 238e8657f6984b..3fc425674dde60 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterRadioFaultChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterRadioFaultChangeEvent.kt @@ -20,16 +20,14 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GeneralDiagnosticsClusterRadioFaultChangeEvent ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class GeneralDiagnosticsClusterRadioFaultChangeEvent( + val current: List, + val previous: List +) { + override fun toString(): String = buildString { append("GeneralDiagnosticsClusterRadioFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +55,25 @@ class GeneralDiagnosticsClusterRadioFaultChangeEvent ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterRadioFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GeneralDiagnosticsClusterRadioFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return GeneralDiagnosticsClusterRadioFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationCompletionEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationCompletionEvent.kt index bd2f7895bfd1e2..95cf699d416744 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationCompletionEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationCompletionEvent.kt @@ -17,20 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OperationalStateClusterOperationCompletionEvent ( - val completionErrorCode: UInt, - val totalOperationalTime: Optional?, - val pausedTime: Optional?) { - override fun toString(): String = buildString { +class OperationalStateClusterOperationCompletionEvent( + val completionErrorCode: UInt, + val totalOperationalTime: Optional?, + val pausedTime: Optional? +) { + override fun toString(): String = buildString { append("OperationalStateClusterOperationCompletionEvent {\n") append("\tcompletionErrorCode : $completionErrorCode\n") append("\ttotalOperationalTime : $totalOperationalTime\n") @@ -43,21 +41,21 @@ class OperationalStateClusterOperationCompletionEvent ( startStructure(tlvTag) put(ContextSpecificTag(TAG_COMPLETION_ERROR_CODE), completionErrorCode) if (totalOperationalTime != null) { - if (totalOperationalTime.isPresent) { - val opttotalOperationalTime = totalOperationalTime.get() - put(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME), opttotalOperationalTime) - } - } else { - putNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) - } + if (totalOperationalTime.isPresent) { + val opttotalOperationalTime = totalOperationalTime.get() + put(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME), opttotalOperationalTime) + } + } else { + putNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) + } if (pausedTime != null) { - if (pausedTime.isPresent) { - val optpausedTime = pausedTime.get() - put(ContextSpecificTag(TAG_PAUSED_TIME), optpausedTime) - } - } else { - putNull(ContextSpecificTag(TAG_PAUSED_TIME)) - } + if (pausedTime.isPresent) { + val optpausedTime = pausedTime.get() + put(ContextSpecificTag(TAG_PAUSED_TIME), optpausedTime) + } + } else { + putNull(ContextSpecificTag(TAG_PAUSED_TIME)) + } endStructure() } } @@ -67,33 +65,42 @@ class OperationalStateClusterOperationCompletionEvent ( private const val TAG_TOTAL_OPERATIONAL_TIME = 1 private const val TAG_PAUSED_TIME = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalStateClusterOperationCompletionEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): OperationalStateClusterOperationCompletionEvent { tlvReader.enterStructure(tlvTag) val completionErrorCode = tlvReader.getUInt(ContextSpecificTag(TAG_COMPLETION_ERROR_CODE)) - val totalOperationalTime = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) - null - } - val pausedTime = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_PAUSED_TIME))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_PAUSED_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PAUSED_TIME)) - null - } - + val totalOperationalTime = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) + null + } + val pausedTime = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_PAUSED_TIME))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_PAUSED_TIME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PAUSED_TIME)) + null + } + tlvReader.exitContainer() - return OperationalStateClusterOperationCompletionEvent(completionErrorCode, totalOperationalTime, pausedTime) + return OperationalStateClusterOperationCompletionEvent( + completionErrorCode, + totalOperationalTime, + pausedTime + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationalErrorEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationalErrorEvent.kt index f0cd196223d72c..4ff0719f3d0f3b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationalErrorEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationalErrorEvent.kt @@ -17,18 +17,15 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OperationalStateClusterOperationalErrorEvent ( - val errorState: chip.devicecontroller.cluster.structs.OperationalStateClusterErrorStateStruct) { - override fun toString(): String = buildString { +class OperationalStateClusterOperationalErrorEvent( + val errorState: chip.devicecontroller.cluster.structs.OperationalStateClusterErrorStateStruct +) { + override fun toString(): String = buildString { append("OperationalStateClusterOperationalErrorEvent {\n") append("\terrorState : $errorState\n") append("}\n") @@ -45,10 +42,14 @@ class OperationalStateClusterOperationalErrorEvent ( companion object { private const val TAG_ERROR_STATE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalStateClusterOperationalErrorEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalStateClusterOperationalErrorEvent { tlvReader.enterStructure(tlvTag) - val errorState = chip.devicecontroller.cluster.structs.OperationalStateClusterErrorStateStruct.fromTlv(ContextSpecificTag(TAG_ERROR_STATE), tlvReader) - + val errorState = + chip.devicecontroller.cluster.structs.OperationalStateClusterErrorStateStruct.fromTlv( + ContextSpecificTag(TAG_ERROR_STATE), + tlvReader + ) + tlvReader.exitContainer() return OperationalStateClusterOperationalErrorEvent(errorState) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterDownloadErrorEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterDownloadErrorEvent.kt index 67e9047f0532a4..8156c9578afadc 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterDownloadErrorEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterDownloadErrorEvent.kt @@ -17,21 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OtaSoftwareUpdateRequestorClusterDownloadErrorEvent ( - val softwareVersion: ULong, - val bytesDownloaded: ULong, - val progressPercent: UInt?, - val platformCode: Long?) { - override fun toString(): String = buildString { +class OtaSoftwareUpdateRequestorClusterDownloadErrorEvent( + val softwareVersion: ULong, + val bytesDownloaded: ULong, + val progressPercent: UInt?, + val platformCode: Long? +) { + override fun toString(): String = buildString { append("OtaSoftwareUpdateRequestorClusterDownloadErrorEvent {\n") append("\tsoftwareVersion : $softwareVersion\n") append("\tbytesDownloaded : $bytesDownloaded\n") @@ -46,15 +43,15 @@ class OtaSoftwareUpdateRequestorClusterDownloadErrorEvent ( put(ContextSpecificTag(TAG_SOFTWARE_VERSION), softwareVersion) put(ContextSpecificTag(TAG_BYTES_DOWNLOADED), bytesDownloaded) if (progressPercent != null) { - put(ContextSpecificTag(TAG_PROGRESS_PERCENT), progressPercent) - } else { - putNull(ContextSpecificTag(TAG_PROGRESS_PERCENT)) - } + put(ContextSpecificTag(TAG_PROGRESS_PERCENT), progressPercent) + } else { + putNull(ContextSpecificTag(TAG_PROGRESS_PERCENT)) + } if (platformCode != null) { - put(ContextSpecificTag(TAG_PLATFORM_CODE), platformCode) - } else { - putNull(ContextSpecificTag(TAG_PLATFORM_CODE)) - } + put(ContextSpecificTag(TAG_PLATFORM_CODE), platformCode) + } else { + putNull(ContextSpecificTag(TAG_PLATFORM_CODE)) + } endStructure() } } @@ -65,26 +62,36 @@ class OtaSoftwareUpdateRequestorClusterDownloadErrorEvent ( private const val TAG_PROGRESS_PERCENT = 2 private const val TAG_PLATFORM_CODE = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OtaSoftwareUpdateRequestorClusterDownloadErrorEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): OtaSoftwareUpdateRequestorClusterDownloadErrorEvent { tlvReader.enterStructure(tlvTag) val softwareVersion = tlvReader.getULong(ContextSpecificTag(TAG_SOFTWARE_VERSION)) val bytesDownloaded = tlvReader.getULong(ContextSpecificTag(TAG_BYTES_DOWNLOADED)) - val progressPercent = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_PROGRESS_PERCENT)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PROGRESS_PERCENT)) - null - } - val platformCode = if (!tlvReader.isNull()) { - tlvReader.getLong(ContextSpecificTag(TAG_PLATFORM_CODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PLATFORM_CODE)) - null - } - + val progressPercent = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_PROGRESS_PERCENT)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PROGRESS_PERCENT)) + null + } + val platformCode = + if (!tlvReader.isNull()) { + tlvReader.getLong(ContextSpecificTag(TAG_PLATFORM_CODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PLATFORM_CODE)) + null + } + tlvReader.exitContainer() - return OtaSoftwareUpdateRequestorClusterDownloadErrorEvent(softwareVersion, bytesDownloaded, progressPercent, platformCode) + return OtaSoftwareUpdateRequestorClusterDownloadErrorEvent( + softwareVersion, + bytesDownloaded, + progressPercent, + platformCode + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterStateTransitionEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterStateTransitionEvent.kt index 99acba4d90a2dd..3843fe8b3b782a 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterStateTransitionEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterStateTransitionEvent.kt @@ -17,21 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OtaSoftwareUpdateRequestorClusterStateTransitionEvent ( - val previousState: UInt, - val newState: UInt, - val reason: UInt, - val targetSoftwareVersion: ULong?) { - override fun toString(): String = buildString { +class OtaSoftwareUpdateRequestorClusterStateTransitionEvent( + val previousState: UInt, + val newState: UInt, + val reason: UInt, + val targetSoftwareVersion: ULong? +) { + override fun toString(): String = buildString { append("OtaSoftwareUpdateRequestorClusterStateTransitionEvent {\n") append("\tpreviousState : $previousState\n") append("\tnewState : $newState\n") @@ -47,10 +44,10 @@ class OtaSoftwareUpdateRequestorClusterStateTransitionEvent ( put(ContextSpecificTag(TAG_NEW_STATE), newState) put(ContextSpecificTag(TAG_REASON), reason) if (targetSoftwareVersion != null) { - put(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION), targetSoftwareVersion) - } else { - putNull(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) - } + put(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION), targetSoftwareVersion) + } else { + putNull(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) + } endStructure() } } @@ -61,21 +58,30 @@ class OtaSoftwareUpdateRequestorClusterStateTransitionEvent ( private const val TAG_REASON = 2 private const val TAG_TARGET_SOFTWARE_VERSION = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OtaSoftwareUpdateRequestorClusterStateTransitionEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): OtaSoftwareUpdateRequestorClusterStateTransitionEvent { tlvReader.enterStructure(tlvTag) val previousState = tlvReader.getUInt(ContextSpecificTag(TAG_PREVIOUS_STATE)) val newState = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_STATE)) val reason = tlvReader.getUInt(ContextSpecificTag(TAG_REASON)) - val targetSoftwareVersion = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) - null - } - + val targetSoftwareVersion = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) + null + } + tlvReader.exitContainer() - return OtaSoftwareUpdateRequestorClusterStateTransitionEvent(previousState, newState, reason, targetSoftwareVersion) + return OtaSoftwareUpdateRequestorClusterStateTransitionEvent( + previousState, + newState, + reason, + targetSoftwareVersion + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterVersionAppliedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterVersionAppliedEvent.kt index 50dda1eeae85db..43ec6b74bfc442 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterVersionAppliedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterVersionAppliedEvent.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OtaSoftwareUpdateRequestorClusterVersionAppliedEvent ( - val softwareVersion: ULong, - val productID: UInt) { - override fun toString(): String = buildString { +class OtaSoftwareUpdateRequestorClusterVersionAppliedEvent( + val softwareVersion: ULong, + val productID: UInt +) { + override fun toString(): String = buildString { append("OtaSoftwareUpdateRequestorClusterVersionAppliedEvent {\n") append("\tsoftwareVersion : $softwareVersion\n") append("\tproductID : $productID\n") @@ -49,11 +46,14 @@ class OtaSoftwareUpdateRequestorClusterVersionAppliedEvent ( private const val TAG_SOFTWARE_VERSION = 0 private const val TAG_PRODUCT_I_D = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OtaSoftwareUpdateRequestorClusterVersionAppliedEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): OtaSoftwareUpdateRequestorClusterVersionAppliedEvent { tlvReader.enterStructure(tlvTag) val softwareVersion = tlvReader.getULong(ContextSpecificTag(TAG_SOFTWARE_VERSION)) val productID = tlvReader.getUInt(ContextSpecificTag(TAG_PRODUCT_I_D)) - + tlvReader.exitContainer() return OtaSoftwareUpdateRequestorClusterVersionAppliedEvent(softwareVersion, productID) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterBatChargeFaultChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterBatChargeFaultChangeEvent.kt index b09829b20efd50..fdb0b033a7616a 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterBatChargeFaultChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterBatChargeFaultChangeEvent.kt @@ -20,16 +20,14 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class PowerSourceClusterBatChargeFaultChangeEvent ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class PowerSourceClusterBatChargeFaultChangeEvent( + val current: List, + val previous: List +) { + override fun toString(): String = buildString { append("PowerSourceClusterBatChargeFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +55,25 @@ class PowerSourceClusterBatChargeFaultChangeEvent ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterBatChargeFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterBatChargeFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterBatChargeFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterBatFaultChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterBatFaultChangeEvent.kt index ef4689fff56f84..7a5d133299cef5 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterBatFaultChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterBatFaultChangeEvent.kt @@ -20,16 +20,11 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class PowerSourceClusterBatFaultChangeEvent ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class PowerSourceClusterBatFaultChangeEvent(val current: List, val previous: List) { + override fun toString(): String = buildString { append("PowerSourceClusterBatFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +52,25 @@ class PowerSourceClusterBatFaultChangeEvent ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterBatFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterBatFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterBatFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterWiredFaultChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterWiredFaultChangeEvent.kt index 5062e14fc47019..1f004191d406f0 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterWiredFaultChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/PowerSourceClusterWiredFaultChangeEvent.kt @@ -20,16 +20,11 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class PowerSourceClusterWiredFaultChangeEvent ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class PowerSourceClusterWiredFaultChangeEvent(val current: List, val previous: List) { + override fun toString(): String = buildString { append("PowerSourceClusterWiredFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +52,25 @@ class PowerSourceClusterWiredFaultChangeEvent ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterWiredFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterWiredFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterWiredFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RefrigeratorAlarmClusterNotifyEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RefrigeratorAlarmClusterNotifyEvent.kt index 0d0ec7f29f122c..2584478cd02e39 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RefrigeratorAlarmClusterNotifyEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RefrigeratorAlarmClusterNotifyEvent.kt @@ -17,21 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RefrigeratorAlarmClusterNotifyEvent ( - val active: ULong, - val inactive: ULong, - val state: ULong, - val mask: ULong) { - override fun toString(): String = buildString { +class RefrigeratorAlarmClusterNotifyEvent( + val active: ULong, + val inactive: ULong, + val state: ULong, + val mask: ULong +) { + override fun toString(): String = buildString { append("RefrigeratorAlarmClusterNotifyEvent {\n") append("\tactive : $active\n") append("\tinactive : $inactive\n") @@ -57,13 +54,13 @@ class RefrigeratorAlarmClusterNotifyEvent ( private const val TAG_STATE = 2 private const val TAG_MASK = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RefrigeratorAlarmClusterNotifyEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RefrigeratorAlarmClusterNotifyEvent { tlvReader.enterStructure(tlvTag) val active = tlvReader.getULong(ContextSpecificTag(TAG_ACTIVE)) val inactive = tlvReader.getULong(ContextSpecificTag(TAG_INACTIVE)) val state = tlvReader.getULong(ContextSpecificTag(TAG_STATE)) val mask = tlvReader.getULong(ContextSpecificTag(TAG_MASK)) - + tlvReader.exitContainer() return RefrigeratorAlarmClusterNotifyEvent(active, inactive, state, mask) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationCompletionEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationCompletionEvent.kt index a9817567e22677..cfea1b82753b91 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationCompletionEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationCompletionEvent.kt @@ -17,20 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RvcOperationalStateClusterOperationCompletionEvent ( - val completionErrorCode: UInt, - val totalOperationalTime: Optional?, - val pausedTime: Optional?) { - override fun toString(): String = buildString { +class RvcOperationalStateClusterOperationCompletionEvent( + val completionErrorCode: UInt, + val totalOperationalTime: Optional?, + val pausedTime: Optional? +) { + override fun toString(): String = buildString { append("RvcOperationalStateClusterOperationCompletionEvent {\n") append("\tcompletionErrorCode : $completionErrorCode\n") append("\ttotalOperationalTime : $totalOperationalTime\n") @@ -43,21 +41,21 @@ class RvcOperationalStateClusterOperationCompletionEvent ( startStructure(tlvTag) put(ContextSpecificTag(TAG_COMPLETION_ERROR_CODE), completionErrorCode) if (totalOperationalTime != null) { - if (totalOperationalTime.isPresent) { - val opttotalOperationalTime = totalOperationalTime.get() - put(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME), opttotalOperationalTime) - } - } else { - putNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) - } + if (totalOperationalTime.isPresent) { + val opttotalOperationalTime = totalOperationalTime.get() + put(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME), opttotalOperationalTime) + } + } else { + putNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) + } if (pausedTime != null) { - if (pausedTime.isPresent) { - val optpausedTime = pausedTime.get() - put(ContextSpecificTag(TAG_PAUSED_TIME), optpausedTime) - } - } else { - putNull(ContextSpecificTag(TAG_PAUSED_TIME)) - } + if (pausedTime.isPresent) { + val optpausedTime = pausedTime.get() + put(ContextSpecificTag(TAG_PAUSED_TIME), optpausedTime) + } + } else { + putNull(ContextSpecificTag(TAG_PAUSED_TIME)) + } endStructure() } } @@ -67,33 +65,42 @@ class RvcOperationalStateClusterOperationCompletionEvent ( private const val TAG_TOTAL_OPERATIONAL_TIME = 1 private const val TAG_PAUSED_TIME = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcOperationalStateClusterOperationCompletionEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): RvcOperationalStateClusterOperationCompletionEvent { tlvReader.enterStructure(tlvTag) val completionErrorCode = tlvReader.getUInt(ContextSpecificTag(TAG_COMPLETION_ERROR_CODE)) - val totalOperationalTime = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) - null - } - val pausedTime = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_PAUSED_TIME))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_PAUSED_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PAUSED_TIME)) - null - } - + val totalOperationalTime = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) + null + } + val pausedTime = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_PAUSED_TIME))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_PAUSED_TIME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PAUSED_TIME)) + null + } + tlvReader.exitContainer() - return RvcOperationalStateClusterOperationCompletionEvent(completionErrorCode, totalOperationalTime, pausedTime) + return RvcOperationalStateClusterOperationCompletionEvent( + completionErrorCode, + totalOperationalTime, + pausedTime + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationalErrorEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationalErrorEvent.kt index 406ef9431645cd..6ad8a5e8875408 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationalErrorEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationalErrorEvent.kt @@ -17,18 +17,15 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RvcOperationalStateClusterOperationalErrorEvent ( - val errorState: chip.devicecontroller.cluster.structs.RvcOperationalStateClusterErrorStateStruct) { - override fun toString(): String = buildString { +class RvcOperationalStateClusterOperationalErrorEvent( + val errorState: chip.devicecontroller.cluster.structs.RvcOperationalStateClusterErrorStateStruct +) { + override fun toString(): String = buildString { append("RvcOperationalStateClusterOperationalErrorEvent {\n") append("\terrorState : $errorState\n") append("}\n") @@ -45,10 +42,17 @@ class RvcOperationalStateClusterOperationalErrorEvent ( companion object { private const val TAG_ERROR_STATE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcOperationalStateClusterOperationalErrorEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): RvcOperationalStateClusterOperationalErrorEvent { tlvReader.enterStructure(tlvTag) - val errorState = chip.devicecontroller.cluster.structs.RvcOperationalStateClusterErrorStateStruct.fromTlv(ContextSpecificTag(TAG_ERROR_STATE), tlvReader) - + val errorState = + chip.devicecontroller.cluster.structs.RvcOperationalStateClusterErrorStateStruct.fromTlv( + ContextSpecificTag(TAG_ERROR_STATE), + tlvReader + ) + tlvReader.exitContainer() return RvcOperationalStateClusterOperationalErrorEvent(errorState) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterCOAlarmEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterCOAlarmEvent.kt index 48acd74033fca2..a34090499ca233 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterCOAlarmEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterCOAlarmEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SmokeCoAlarmClusterCOAlarmEvent ( - val alarmSeverityLevel: UInt) { - override fun toString(): String = buildString { +class SmokeCoAlarmClusterCOAlarmEvent(val alarmSeverityLevel: UInt) { + override fun toString(): String = buildString { append("SmokeCoAlarmClusterCOAlarmEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") append("}\n") @@ -45,10 +40,10 @@ class SmokeCoAlarmClusterCOAlarmEvent ( companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterCOAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterCOAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterCOAlarmEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectCOAlarmEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectCOAlarmEvent.kt index 685a6ab5fc1059..c3ec4fbf491c87 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectCOAlarmEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectCOAlarmEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SmokeCoAlarmClusterInterconnectCOAlarmEvent ( - val alarmSeverityLevel: UInt) { - override fun toString(): String = buildString { +class SmokeCoAlarmClusterInterconnectCOAlarmEvent(val alarmSeverityLevel: UInt) { + override fun toString(): String = buildString { append("SmokeCoAlarmClusterInterconnectCOAlarmEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") append("}\n") @@ -45,10 +40,10 @@ class SmokeCoAlarmClusterInterconnectCOAlarmEvent ( companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterInterconnectCOAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterInterconnectCOAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterInterconnectCOAlarmEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectSmokeAlarmEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectSmokeAlarmEvent.kt index 1fb60bf24aec59..3957d722ade622 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectSmokeAlarmEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectSmokeAlarmEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SmokeCoAlarmClusterInterconnectSmokeAlarmEvent ( - val alarmSeverityLevel: UInt) { - override fun toString(): String = buildString { +class SmokeCoAlarmClusterInterconnectSmokeAlarmEvent(val alarmSeverityLevel: UInt) { + override fun toString(): String = buildString { append("SmokeCoAlarmClusterInterconnectSmokeAlarmEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") append("}\n") @@ -45,10 +40,10 @@ class SmokeCoAlarmClusterInterconnectSmokeAlarmEvent ( companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterInterconnectSmokeAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterInterconnectSmokeAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterInterconnectSmokeAlarmEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterLowBatteryEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterLowBatteryEvent.kt index 91345969b757b4..e855a9391a7491 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterLowBatteryEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterLowBatteryEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SmokeCoAlarmClusterLowBatteryEvent ( - val alarmSeverityLevel: UInt) { - override fun toString(): String = buildString { +class SmokeCoAlarmClusterLowBatteryEvent(val alarmSeverityLevel: UInt) { + override fun toString(): String = buildString { append("SmokeCoAlarmClusterLowBatteryEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") append("}\n") @@ -45,10 +40,10 @@ class SmokeCoAlarmClusterLowBatteryEvent ( companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterLowBatteryEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterLowBatteryEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterLowBatteryEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterSmokeAlarmEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterSmokeAlarmEvent.kt index 3494dffe4f3d5b..5e5ff96385c265 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterSmokeAlarmEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterSmokeAlarmEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SmokeCoAlarmClusterSmokeAlarmEvent ( - val alarmSeverityLevel: UInt) { - override fun toString(): String = buildString { +class SmokeCoAlarmClusterSmokeAlarmEvent(val alarmSeverityLevel: UInt) { + override fun toString(): String = buildString { append("SmokeCoAlarmClusterSmokeAlarmEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") append("}\n") @@ -45,10 +40,10 @@ class SmokeCoAlarmClusterSmokeAlarmEvent ( companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterSmokeAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterSmokeAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterSmokeAlarmEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SoftwareDiagnosticsClusterSoftwareFaultEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SoftwareDiagnosticsClusterSoftwareFaultEvent.kt index b0e0d4844fadca..d3389bbaf8f367 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SoftwareDiagnosticsClusterSoftwareFaultEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SoftwareDiagnosticsClusterSoftwareFaultEvent.kt @@ -17,20 +17,18 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SoftwareDiagnosticsClusterSoftwareFaultEvent ( - val id: ULong, - val name: Optional, - val faultRecording: Optional) { - override fun toString(): String = buildString { +class SoftwareDiagnosticsClusterSoftwareFaultEvent( + val id: ULong, + val name: Optional, + val faultRecording: Optional +) { + override fun toString(): String = buildString { append("SoftwareDiagnosticsClusterSoftwareFaultEvent {\n") append("\tid : $id\n") append("\tname : $name\n") @@ -43,13 +41,13 @@ class SoftwareDiagnosticsClusterSoftwareFaultEvent ( startStructure(tlvTag) put(ContextSpecificTag(TAG_ID), id) if (name.isPresent) { - val optname = name.get() - put(ContextSpecificTag(TAG_NAME), optname) - } + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } if (faultRecording.isPresent) { - val optfaultRecording = faultRecording.get() - put(ContextSpecificTag(TAG_FAULT_RECORDING), optfaultRecording) - } + val optfaultRecording = faultRecording.get() + put(ContextSpecificTag(TAG_FAULT_RECORDING), optfaultRecording) + } endStructure() } } @@ -59,20 +57,22 @@ class SoftwareDiagnosticsClusterSoftwareFaultEvent ( private const val TAG_NAME = 1 private const val TAG_FAULT_RECORDING = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SoftwareDiagnosticsClusterSoftwareFaultEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SoftwareDiagnosticsClusterSoftwareFaultEvent { tlvReader.enterStructure(tlvTag) val id = tlvReader.getULong(ContextSpecificTag(TAG_ID)) - val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - val faultRecording = if (tlvReader.isNextTag(ContextSpecificTag(TAG_FAULT_RECORDING))) { - Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_FAULT_RECORDING))) - } else { - Optional.empty() - } - + val name = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + val faultRecording = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_FAULT_RECORDING))) { + Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_FAULT_RECORDING))) + } else { + Optional.empty() + } + tlvReader.exitContainer() return SoftwareDiagnosticsClusterSoftwareFaultEvent(id, name, faultRecording) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterInitialPressEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterInitialPressEvent.kt index fa3cf254ebdb96..965bc1a81af5ac 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterInitialPressEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterInitialPressEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SwitchClusterInitialPressEvent ( - val newPosition: UInt) { - override fun toString(): String = buildString { +class SwitchClusterInitialPressEvent(val newPosition: UInt) { + override fun toString(): String = buildString { append("SwitchClusterInitialPressEvent {\n") append("\tnewPosition : $newPosition\n") append("}\n") @@ -45,10 +40,10 @@ class SwitchClusterInitialPressEvent ( companion object { private const val TAG_NEW_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterInitialPressEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterInitialPressEvent { tlvReader.enterStructure(tlvTag) val newPosition = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_POSITION)) - + tlvReader.exitContainer() return SwitchClusterInitialPressEvent(newPosition) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterLongPressEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterLongPressEvent.kt index 2748e8e6a44449..e986ef1d8d97fe 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterLongPressEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterLongPressEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SwitchClusterLongPressEvent ( - val newPosition: UInt) { - override fun toString(): String = buildString { +class SwitchClusterLongPressEvent(val newPosition: UInt) { + override fun toString(): String = buildString { append("SwitchClusterLongPressEvent {\n") append("\tnewPosition : $newPosition\n") append("}\n") @@ -45,10 +40,10 @@ class SwitchClusterLongPressEvent ( companion object { private const val TAG_NEW_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterLongPressEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterLongPressEvent { tlvReader.enterStructure(tlvTag) val newPosition = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_POSITION)) - + tlvReader.exitContainer() return SwitchClusterLongPressEvent(newPosition) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterLongReleaseEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterLongReleaseEvent.kt index f4661d48d8e63e..e99b119d906e8b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterLongReleaseEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterLongReleaseEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SwitchClusterLongReleaseEvent ( - val previousPosition: UInt) { - override fun toString(): String = buildString { +class SwitchClusterLongReleaseEvent(val previousPosition: UInt) { + override fun toString(): String = buildString { append("SwitchClusterLongReleaseEvent {\n") append("\tpreviousPosition : $previousPosition\n") append("}\n") @@ -45,10 +40,10 @@ class SwitchClusterLongReleaseEvent ( companion object { private const val TAG_PREVIOUS_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterLongReleaseEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterLongReleaseEvent { tlvReader.enterStructure(tlvTag) val previousPosition = tlvReader.getUInt(ContextSpecificTag(TAG_PREVIOUS_POSITION)) - + tlvReader.exitContainer() return SwitchClusterLongReleaseEvent(previousPosition) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressCompleteEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressCompleteEvent.kt index b5d580a7cf0c55..381ec17ae29ac5 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressCompleteEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressCompleteEvent.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SwitchClusterMultiPressCompleteEvent ( - val previousPosition: UInt, - val totalNumberOfPressesCounted: UInt) { - override fun toString(): String = buildString { +class SwitchClusterMultiPressCompleteEvent( + val previousPosition: UInt, + val totalNumberOfPressesCounted: UInt +) { + override fun toString(): String = buildString { append("SwitchClusterMultiPressCompleteEvent {\n") append("\tpreviousPosition : $previousPosition\n") append("\ttotalNumberOfPressesCounted : $totalNumberOfPressesCounted\n") @@ -49,11 +46,12 @@ class SwitchClusterMultiPressCompleteEvent ( private const val TAG_PREVIOUS_POSITION = 0 private const val TAG_TOTAL_NUMBER_OF_PRESSES_COUNTED = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterMultiPressCompleteEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterMultiPressCompleteEvent { tlvReader.enterStructure(tlvTag) val previousPosition = tlvReader.getUInt(ContextSpecificTag(TAG_PREVIOUS_POSITION)) - val totalNumberOfPressesCounted = tlvReader.getUInt(ContextSpecificTag(TAG_TOTAL_NUMBER_OF_PRESSES_COUNTED)) - + val totalNumberOfPressesCounted = + tlvReader.getUInt(ContextSpecificTag(TAG_TOTAL_NUMBER_OF_PRESSES_COUNTED)) + tlvReader.exitContainer() return SwitchClusterMultiPressCompleteEvent(previousPosition, totalNumberOfPressesCounted) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressOngoingEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressOngoingEvent.kt index fcaf6c0ca5ef5f..dd904f59cb9fdc 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressOngoingEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressOngoingEvent.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SwitchClusterMultiPressOngoingEvent ( - val newPosition: UInt, - val currentNumberOfPressesCounted: UInt) { - override fun toString(): String = buildString { +class SwitchClusterMultiPressOngoingEvent( + val newPosition: UInt, + val currentNumberOfPressesCounted: UInt +) { + override fun toString(): String = buildString { append("SwitchClusterMultiPressOngoingEvent {\n") append("\tnewPosition : $newPosition\n") append("\tcurrentNumberOfPressesCounted : $currentNumberOfPressesCounted\n") @@ -49,11 +46,12 @@ class SwitchClusterMultiPressOngoingEvent ( private const val TAG_NEW_POSITION = 0 private const val TAG_CURRENT_NUMBER_OF_PRESSES_COUNTED = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterMultiPressOngoingEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterMultiPressOngoingEvent { tlvReader.enterStructure(tlvTag) val newPosition = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_POSITION)) - val currentNumberOfPressesCounted = tlvReader.getUInt(ContextSpecificTag(TAG_CURRENT_NUMBER_OF_PRESSES_COUNTED)) - + val currentNumberOfPressesCounted = + tlvReader.getUInt(ContextSpecificTag(TAG_CURRENT_NUMBER_OF_PRESSES_COUNTED)) + tlvReader.exitContainer() return SwitchClusterMultiPressOngoingEvent(newPosition, currentNumberOfPressesCounted) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterShortReleaseEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterShortReleaseEvent.kt index 91a786b4f78740..477dc53e895a2a 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterShortReleaseEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterShortReleaseEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SwitchClusterShortReleaseEvent ( - val previousPosition: UInt) { - override fun toString(): String = buildString { +class SwitchClusterShortReleaseEvent(val previousPosition: UInt) { + override fun toString(): String = buildString { append("SwitchClusterShortReleaseEvent {\n") append("\tpreviousPosition : $previousPosition\n") append("}\n") @@ -45,10 +40,10 @@ class SwitchClusterShortReleaseEvent ( companion object { private const val TAG_PREVIOUS_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterShortReleaseEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterShortReleaseEvent { tlvReader.enterStructure(tlvTag) val previousPosition = tlvReader.getUInt(ContextSpecificTag(TAG_PREVIOUS_POSITION)) - + tlvReader.exitContainer() return SwitchClusterShortReleaseEvent(previousPosition) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterSwitchLatchedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterSwitchLatchedEvent.kt index f6537ab66e931a..6a2ea4883e4f6f 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterSwitchLatchedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/SwitchClusterSwitchLatchedEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SwitchClusterSwitchLatchedEvent ( - val newPosition: UInt) { - override fun toString(): String = buildString { +class SwitchClusterSwitchLatchedEvent(val newPosition: UInt) { + override fun toString(): String = buildString { append("SwitchClusterSwitchLatchedEvent {\n") append("\tnewPosition : $newPosition\n") append("}\n") @@ -45,10 +40,10 @@ class SwitchClusterSwitchLatchedEvent ( companion object { private const val TAG_NEW_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterSwitchLatchedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterSwitchLatchedEvent { tlvReader.enterStructure(tlvTag) val newPosition = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_POSITION)) - + tlvReader.exitContainer() return SwitchClusterSwitchLatchedEvent(newPosition) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterConnectionStatusEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterConnectionStatusEvent.kt index 7a9290a163f25e..dc55e372090536 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterConnectionStatusEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterConnectionStatusEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThreadNetworkDiagnosticsClusterConnectionStatusEvent ( - val connectionStatus: UInt) { - override fun toString(): String = buildString { +class ThreadNetworkDiagnosticsClusterConnectionStatusEvent(val connectionStatus: UInt) { + override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterConnectionStatusEvent {\n") append("\tconnectionStatus : $connectionStatus\n") append("}\n") @@ -45,10 +40,13 @@ class ThreadNetworkDiagnosticsClusterConnectionStatusEvent ( companion object { private const val TAG_CONNECTION_STATUS = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterConnectionStatusEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ThreadNetworkDiagnosticsClusterConnectionStatusEvent { tlvReader.enterStructure(tlvTag) val connectionStatus = tlvReader.getUInt(ContextSpecificTag(TAG_CONNECTION_STATUS)) - + tlvReader.exitContainer() return ThreadNetworkDiagnosticsClusterConnectionStatusEvent(connectionStatus) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.kt index 384675b471a0d6..f2ce60e4c710ba 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.kt @@ -20,16 +20,14 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent( + val current: List, + val previous: List +) { + override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +55,28 @@ class ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterDSTStatusEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterDSTStatusEvent.kt index d4162a1dd3f5ae..7564293e97be61 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterDSTStatusEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterDSTStatusEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class TimeSynchronizationClusterDSTStatusEvent ( - val DSTOffsetActive: Boolean) { - override fun toString(): String = buildString { +class TimeSynchronizationClusterDSTStatusEvent(val DSTOffsetActive: Boolean) { + override fun toString(): String = buildString { append("TimeSynchronizationClusterDSTStatusEvent {\n") append("\tDSTOffsetActive : $DSTOffsetActive\n") append("}\n") @@ -45,10 +40,10 @@ class TimeSynchronizationClusterDSTStatusEvent ( companion object { private const val TAG_D_S_T_OFFSET_ACTIVE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterDSTStatusEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TimeSynchronizationClusterDSTStatusEvent { tlvReader.enterStructure(tlvTag) val DSTOffsetActive = tlvReader.getBoolean(ContextSpecificTag(TAG_D_S_T_OFFSET_ACTIVE)) - + tlvReader.exitContainer() return TimeSynchronizationClusterDSTStatusEvent(DSTOffsetActive) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterTimeZoneStatusEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterTimeZoneStatusEvent.kt index 52b2b4fd1e1dfa..9e9d5ef9f1355f 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterTimeZoneStatusEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterTimeZoneStatusEvent.kt @@ -17,19 +17,14 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class TimeSynchronizationClusterTimeZoneStatusEvent ( - val offset: Long, - val name: Optional) { - override fun toString(): String = buildString { +class TimeSynchronizationClusterTimeZoneStatusEvent(val offset: Long, val name: Optional) { + override fun toString(): String = buildString { append("TimeSynchronizationClusterTimeZoneStatusEvent {\n") append("\toffset : $offset\n") append("\tname : $name\n") @@ -41,9 +36,9 @@ class TimeSynchronizationClusterTimeZoneStatusEvent ( startStructure(tlvTag) put(ContextSpecificTag(TAG_OFFSET), offset) if (name.isPresent) { - val optname = name.get() - put(ContextSpecificTag(TAG_NAME), optname) - } + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } endStructure() } } @@ -52,15 +47,16 @@ class TimeSynchronizationClusterTimeZoneStatusEvent ( private const val TAG_OFFSET = 0 private const val TAG_NAME = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterTimeZoneStatusEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TimeSynchronizationClusterTimeZoneStatusEvent { tlvReader.enterStructure(tlvTag) val offset = tlvReader.getLong(ContextSpecificTag(TAG_OFFSET)) - val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - + val name = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + tlvReader.exitContainer() return TimeSynchronizationClusterTimeZoneStatusEvent(offset, name) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/UnitTestingClusterTestEventEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/UnitTestingClusterTestEventEvent.kt index 89dbdc9593b84e..d92c0b6b531a6b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/UnitTestingClusterTestEventEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/UnitTestingClusterTestEventEvent.kt @@ -20,20 +20,18 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterTestEventEvent ( - val arg1: UInt, - val arg2: UInt, - val arg3: Boolean, - val arg4: chip.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct, - val arg5: List, - val arg6: List) { - override fun toString(): String = buildString { +class UnitTestingClusterTestEventEvent( + val arg1: UInt, + val arg2: UInt, + val arg3: Boolean, + val arg4: chip.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct, + val arg5: List, + val arg6: List +) { + override fun toString(): String = buildString { append("UnitTestingClusterTestEventEvent {\n") append("\targ1 : $arg1\n") append("\targ2 : $arg2\n") @@ -73,27 +71,38 @@ class UnitTestingClusterTestEventEvent ( private const val TAG_ARG5 = 5 private const val TAG_ARG6 = 6 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterTestEventEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterTestEventEvent { tlvReader.enterStructure(tlvTag) val arg1 = tlvReader.getUInt(ContextSpecificTag(TAG_ARG1)) val arg2 = tlvReader.getUInt(ContextSpecificTag(TAG_ARG2)) val arg3 = tlvReader.getBoolean(ContextSpecificTag(TAG_ARG3)) - val arg4 = chip.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_ARG4), tlvReader) - val arg5 = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ARG5)) - while(!tlvReader.isEndOfContainer()) { - this.add(chip.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - val arg6 = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ARG6)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val arg4 = + chip.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct.fromTlv( + ContextSpecificTag(TAG_ARG4), + tlvReader + ) + val arg5 = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ARG5)) + while (!tlvReader.isEndOfContainer()) { + this.add( + chip.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct.fromTlv( + AnonymousTag, + tlvReader + ) + ) + } + tlvReader.exitContainer() + } + val arg6 = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ARG6)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return UnitTestingClusterTestEventEvent(arg1, arg2, arg3, arg4, arg5, arg6) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/UnitTestingClusterTestFabricScopedEventEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/UnitTestingClusterTestFabricScopedEventEvent.kt index b71c9c788a3a76..b6cc1c77125923 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/UnitTestingClusterTestFabricScopedEventEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/UnitTestingClusterTestFabricScopedEventEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterTestFabricScopedEventEvent ( - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class UnitTestingClusterTestFabricScopedEventEvent(val fabricIndex: UInt) { + override fun toString(): String = buildString { append("UnitTestingClusterTestFabricScopedEventEvent {\n") append("\tfabricIndex : $fabricIndex\n") append("}\n") @@ -45,10 +40,10 @@ class UnitTestingClusterTestFabricScopedEventEvent ( companion object { private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterTestFabricScopedEventEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterTestFabricScopedEventEvent { tlvReader.enterStructure(tlvTag) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return UnitTestingClusterTestFabricScopedEventEvent(fabricIndex) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveFaultEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveFaultEvent.kt index cead9f186377e2..cb432d975e1275 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveFaultEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveFaultEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ValveConfigurationAndControlClusterValveFaultEvent ( - val valveFault: UInt) { - override fun toString(): String = buildString { +class ValveConfigurationAndControlClusterValveFaultEvent(val valveFault: UInt) { + override fun toString(): String = buildString { append("ValveConfigurationAndControlClusterValveFaultEvent {\n") append("\tvalveFault : $valveFault\n") append("}\n") @@ -45,10 +40,13 @@ class ValveConfigurationAndControlClusterValveFaultEvent ( companion object { private const val TAG_VALVE_FAULT = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ValveConfigurationAndControlClusterValveFaultEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ValveConfigurationAndControlClusterValveFaultEvent { tlvReader.enterStructure(tlvTag) val valveFault = tlvReader.getUInt(ContextSpecificTag(TAG_VALVE_FAULT)) - + tlvReader.exitContainer() return ValveConfigurationAndControlClusterValveFaultEvent(valveFault) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveStateChangedEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveStateChangedEvent.kt index 235bd78e4bb88c..d015f73b2e61b5 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveStateChangedEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveStateChangedEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ValveConfigurationAndControlClusterValveStateChangedEvent ( - val valveState: UInt) { - override fun toString(): String = buildString { +class ValveConfigurationAndControlClusterValveStateChangedEvent(val valveState: UInt) { + override fun toString(): String = buildString { append("ValveConfigurationAndControlClusterValveStateChangedEvent {\n") append("\tvalveState : $valveState\n") append("}\n") @@ -45,10 +40,13 @@ class ValveConfigurationAndControlClusterValveStateChangedEvent ( companion object { private const val TAG_VALVE_STATE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ValveConfigurationAndControlClusterValveStateChangedEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ValveConfigurationAndControlClusterValveStateChangedEvent { tlvReader.enterStructure(tlvTag) val valveState = tlvReader.getUInt(ContextSpecificTag(TAG_VALVE_STATE)) - + tlvReader.exitContainer() return ValveConfigurationAndControlClusterValveStateChangedEvent(valveState) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterAssociationFailureEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterAssociationFailureEvent.kt index 353230c4664dc5..2f94dc8e6b1c58 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterAssociationFailureEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterAssociationFailureEvent.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class WiFiNetworkDiagnosticsClusterAssociationFailureEvent ( - val associationFailureCause: UInt, - val status: UInt) { - override fun toString(): String = buildString { +class WiFiNetworkDiagnosticsClusterAssociationFailureEvent( + val associationFailureCause: UInt, + val status: UInt +) { + override fun toString(): String = buildString { append("WiFiNetworkDiagnosticsClusterAssociationFailureEvent {\n") append("\tassociationFailureCause : $associationFailureCause\n") append("\tstatus : $status\n") @@ -49,11 +46,15 @@ class WiFiNetworkDiagnosticsClusterAssociationFailureEvent ( private const val TAG_ASSOCIATION_FAILURE_CAUSE = 0 private const val TAG_STATUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : WiFiNetworkDiagnosticsClusterAssociationFailureEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): WiFiNetworkDiagnosticsClusterAssociationFailureEvent { tlvReader.enterStructure(tlvTag) - val associationFailureCause = tlvReader.getUInt(ContextSpecificTag(TAG_ASSOCIATION_FAILURE_CAUSE)) + val associationFailureCause = + tlvReader.getUInt(ContextSpecificTag(TAG_ASSOCIATION_FAILURE_CAUSE)) val status = tlvReader.getUInt(ContextSpecificTag(TAG_STATUS)) - + tlvReader.exitContainer() return WiFiNetworkDiagnosticsClusterAssociationFailureEvent(associationFailureCause, status) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterConnectionStatusEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterConnectionStatusEvent.kt index e106ddd9b7498d..34b126059fffd2 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterConnectionStatusEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterConnectionStatusEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class WiFiNetworkDiagnosticsClusterConnectionStatusEvent ( - val connectionStatus: UInt) { - override fun toString(): String = buildString { +class WiFiNetworkDiagnosticsClusterConnectionStatusEvent(val connectionStatus: UInt) { + override fun toString(): String = buildString { append("WiFiNetworkDiagnosticsClusterConnectionStatusEvent {\n") append("\tconnectionStatus : $connectionStatus\n") append("}\n") @@ -45,10 +40,13 @@ class WiFiNetworkDiagnosticsClusterConnectionStatusEvent ( companion object { private const val TAG_CONNECTION_STATUS = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : WiFiNetworkDiagnosticsClusterConnectionStatusEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): WiFiNetworkDiagnosticsClusterConnectionStatusEvent { tlvReader.enterStructure(tlvTag) val connectionStatus = tlvReader.getUInt(ContextSpecificTag(TAG_CONNECTION_STATUS)) - + tlvReader.exitContainer() return WiFiNetworkDiagnosticsClusterConnectionStatusEvent(connectionStatus) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterDisconnectionEvent.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterDisconnectionEvent.kt index 33cb99c03f48a2..9c0875da20a177 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterDisconnectionEvent.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterDisconnectionEvent.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.eventstructs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class WiFiNetworkDiagnosticsClusterDisconnectionEvent ( - val reasonCode: UInt) { - override fun toString(): String = buildString { +class WiFiNetworkDiagnosticsClusterDisconnectionEvent(val reasonCode: UInt) { + override fun toString(): String = buildString { append("WiFiNetworkDiagnosticsClusterDisconnectionEvent {\n") append("\treasonCode : $reasonCode\n") append("}\n") @@ -45,10 +40,13 @@ class WiFiNetworkDiagnosticsClusterDisconnectionEvent ( companion object { private const val TAG_REASON_CODE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : WiFiNetworkDiagnosticsClusterDisconnectionEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): WiFiNetworkDiagnosticsClusterDisconnectionEvent { tlvReader.enterStructure(tlvTag) val reasonCode = tlvReader.getUInt(ContextSpecificTag(TAG_REASON_CODE)) - + tlvReader.exitContainer() return WiFiNetworkDiagnosticsClusterDisconnectionEvent(reasonCode) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlEntryStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlEntryStruct.kt index d228ef19fb8e79..ad7257cc39f901 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlEntryStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlEntryStruct.kt @@ -20,19 +20,17 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class AccessControlClusterAccessControlEntryStruct ( - val privilege: UInt, - val authMode: UInt, - val subjects: List?, - val targets: List?, - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class AccessControlClusterAccessControlEntryStruct( + val privilege: UInt, + val authMode: UInt, + val subjects: List?, + val targets: List?, + val fabricIndex: UInt +) { + override fun toString(): String = buildString { append("AccessControlClusterAccessControlEntryStruct {\n") append("\tprivilege : $privilege\n") append("\tauthMode : $authMode\n") @@ -48,23 +46,23 @@ class AccessControlClusterAccessControlEntryStruct ( put(ContextSpecificTag(TAG_PRIVILEGE), privilege) put(ContextSpecificTag(TAG_AUTH_MODE), authMode) if (subjects != null) { - startArray(ContextSpecificTag(TAG_SUBJECTS)) - for (item in subjects.iterator()) { - put(AnonymousTag, item) + startArray(ContextSpecificTag(TAG_SUBJECTS)) + for (item in subjects.iterator()) { + put(AnonymousTag, item) + } + endArray() + } else { + putNull(ContextSpecificTag(TAG_SUBJECTS)) } - endArray() - } else { - putNull(ContextSpecificTag(TAG_SUBJECTS)) - } if (targets != null) { - startArray(ContextSpecificTag(TAG_TARGETS)) - for (item in targets.iterator()) { - item.toTlv(AnonymousTag, this) + startArray(ContextSpecificTag(TAG_TARGETS)) + for (item in targets.iterator()) { + item.toTlv(AnonymousTag, this) + } + endArray() + } else { + putNull(ContextSpecificTag(TAG_TARGETS)) } - endArray() - } else { - putNull(ContextSpecificTag(TAG_TARGETS)) - } put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) endStructure() } @@ -77,39 +75,47 @@ class AccessControlClusterAccessControlEntryStruct ( private const val TAG_TARGETS = 4 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlEntryStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): AccessControlClusterAccessControlEntryStruct { tlvReader.enterStructure(tlvTag) val privilege = tlvReader.getUInt(ContextSpecificTag(TAG_PRIVILEGE)) val authMode = tlvReader.getUInt(ContextSpecificTag(TAG_AUTH_MODE)) - val subjects = if (!tlvReader.isNull()) { - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_SUBJECTS)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getULong(AnonymousTag)) - } - tlvReader.exitContainer() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SUBJECTS)) - null - } - val targets = if (!tlvReader.isNull()) { - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_TARGETS)) - while(!tlvReader.isEndOfContainer()) { - add(AccessControlClusterAccessControlTargetStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TARGETS)) - null - } + val subjects = + if (!tlvReader.isNull()) { + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_SUBJECTS)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getULong(AnonymousTag)) + } + tlvReader.exitContainer() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SUBJECTS)) + null + } + val targets = + if (!tlvReader.isNull()) { + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_TARGETS)) + while (!tlvReader.isEndOfContainer()) { + add(AccessControlClusterAccessControlTargetStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TARGETS)) + null + } val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return AccessControlClusterAccessControlEntryStruct(privilege, authMode, subjects, targets, fabricIndex) + return AccessControlClusterAccessControlEntryStruct( + privilege, + authMode, + subjects, + targets, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlExtensionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlExtensionStruct.kt index b41ebafd9de72a..c75c7632f06be3 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlExtensionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlExtensionStruct.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class AccessControlClusterAccessControlExtensionStruct ( - val data: ByteArray, - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class AccessControlClusterAccessControlExtensionStruct(val data: ByteArray, val fabricIndex: UInt) { + override fun toString(): String = buildString { append("AccessControlClusterAccessControlExtensionStruct {\n") append("\tdata : $data\n") append("\tfabricIndex : $fabricIndex\n") @@ -49,11 +43,14 @@ class AccessControlClusterAccessControlExtensionStruct ( private const val TAG_DATA = 1 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlExtensionStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): AccessControlClusterAccessControlExtensionStruct { tlvReader.enterStructure(tlvTag) val data = tlvReader.getByteArray(ContextSpecificTag(TAG_DATA)) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return AccessControlClusterAccessControlExtensionStruct(data, fabricIndex) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlTargetStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlTargetStruct.kt index 1eab00f450d8f0..5fb4de109d6c6a 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlTargetStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AccessControlClusterAccessControlTargetStruct.kt @@ -17,20 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class AccessControlClusterAccessControlTargetStruct ( - val cluster: ULong?, - val endpoint: UInt?, - val deviceType: ULong?) { - override fun toString(): String = buildString { +class AccessControlClusterAccessControlTargetStruct( + val cluster: ULong?, + val endpoint: UInt?, + val deviceType: ULong? +) { + override fun toString(): String = buildString { append("AccessControlClusterAccessControlTargetStruct {\n") append("\tcluster : $cluster\n") append("\tendpoint : $endpoint\n") @@ -42,20 +39,20 @@ class AccessControlClusterAccessControlTargetStruct ( tlvWriter.apply { startStructure(tlvTag) if (cluster != null) { - put(ContextSpecificTag(TAG_CLUSTER), cluster) - } else { - putNull(ContextSpecificTag(TAG_CLUSTER)) - } + put(ContextSpecificTag(TAG_CLUSTER), cluster) + } else { + putNull(ContextSpecificTag(TAG_CLUSTER)) + } if (endpoint != null) { - put(ContextSpecificTag(TAG_ENDPOINT), endpoint) - } else { - putNull(ContextSpecificTag(TAG_ENDPOINT)) - } + put(ContextSpecificTag(TAG_ENDPOINT), endpoint) + } else { + putNull(ContextSpecificTag(TAG_ENDPOINT)) + } if (deviceType != null) { - put(ContextSpecificTag(TAG_DEVICE_TYPE), deviceType) - } else { - putNull(ContextSpecificTag(TAG_DEVICE_TYPE)) - } + put(ContextSpecificTag(TAG_DEVICE_TYPE), deviceType) + } else { + putNull(ContextSpecificTag(TAG_DEVICE_TYPE)) + } endStructure() } } @@ -65,27 +62,30 @@ class AccessControlClusterAccessControlTargetStruct ( private const val TAG_ENDPOINT = 1 private const val TAG_DEVICE_TYPE = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlTargetStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): AccessControlClusterAccessControlTargetStruct { tlvReader.enterStructure(tlvTag) - val cluster = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_CLUSTER)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CLUSTER)) - null - } - val endpoint = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ENDPOINT)) - null - } - val deviceType = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_DEVICE_TYPE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_DEVICE_TYPE)) - null - } - + val cluster = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_CLUSTER)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_CLUSTER)) + null + } + val endpoint = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ENDPOINT)) + null + } + val deviceType = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_DEVICE_TYPE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_DEVICE_TYPE)) + null + } + tlvReader.exitContainer() return AccessControlClusterAccessControlTargetStruct(cluster, endpoint, deviceType) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActionsClusterActionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActionsClusterActionStruct.kt index 8ae474f8e727db..5d5c21a6906968 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActionsClusterActionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActionsClusterActionStruct.kt @@ -17,23 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ActionsClusterActionStruct ( - val actionID: UInt, - val name: String, - val type: UInt, - val endpointListID: UInt, - val supportedCommands: UInt, - val state: UInt) { - override fun toString(): String = buildString { +class ActionsClusterActionStruct( + val actionID: UInt, + val name: String, + val type: UInt, + val endpointListID: UInt, + val supportedCommands: UInt, + val state: UInt +) { + override fun toString(): String = buildString { append("ActionsClusterActionStruct {\n") append("\tactionID : $actionID\n") append("\tname : $name\n") @@ -65,7 +62,7 @@ class ActionsClusterActionStruct ( private const val TAG_SUPPORTED_COMMANDS = 4 private const val TAG_STATE = 5 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActionsClusterActionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ActionsClusterActionStruct { tlvReader.enterStructure(tlvTag) val actionID = tlvReader.getUInt(ContextSpecificTag(TAG_ACTION_I_D)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) @@ -73,10 +70,17 @@ class ActionsClusterActionStruct ( val endpointListID = tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT_LIST_I_D)) val supportedCommands = tlvReader.getUInt(ContextSpecificTag(TAG_SUPPORTED_COMMANDS)) val state = tlvReader.getUInt(ContextSpecificTag(TAG_STATE)) - + tlvReader.exitContainer() - return ActionsClusterActionStruct(actionID, name, type, endpointListID, supportedCommands, state) + return ActionsClusterActionStruct( + actionID, + name, + type, + endpointListID, + supportedCommands, + state + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActionsClusterEndpointListStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActionsClusterEndpointListStruct.kt index a8f078a4ba75c6..d5716531a18c99 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActionsClusterEndpointListStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActionsClusterEndpointListStruct.kt @@ -20,18 +20,16 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ActionsClusterEndpointListStruct ( - val endpointListID: UInt, - val name: String, - val type: UInt, - val endpoints: List) { - override fun toString(): String = buildString { +class ActionsClusterEndpointListStruct( + val endpointListID: UInt, + val name: String, + val type: UInt, + val endpoints: List +) { + override fun toString(): String = buildString { append("ActionsClusterEndpointListStruct {\n") append("\tendpointListID : $endpointListID\n") append("\tname : $name\n") @@ -61,19 +59,20 @@ class ActionsClusterEndpointListStruct ( private const val TAG_TYPE = 2 private const val TAG_ENDPOINTS = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActionsClusterEndpointListStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ActionsClusterEndpointListStruct { tlvReader.enterStructure(tlvTag) val endpointListID = tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT_LIST_I_D)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) val type = tlvReader.getUInt(ContextSpecificTag(TAG_TYPE)) - val endpoints = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ENDPOINTS)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val endpoints = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ENDPOINTS)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ActionsClusterEndpointListStruct(endpointListID, name, type, endpoints) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActivatedCarbonFilterMonitoringClusterReplacementProductStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActivatedCarbonFilterMonitoringClusterReplacementProductStruct.kt index fa41e784da11de..138571f0342bb8 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActivatedCarbonFilterMonitoringClusterReplacementProductStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ActivatedCarbonFilterMonitoringClusterReplacementProductStruct.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ActivatedCarbonFilterMonitoringClusterReplacementProductStruct ( - val productIdentifierType: UInt, - val productIdentifierValue: String) { - override fun toString(): String = buildString { +class ActivatedCarbonFilterMonitoringClusterReplacementProductStruct( + val productIdentifierType: UInt, + val productIdentifierValue: String +) { + override fun toString(): String = buildString { append("ActivatedCarbonFilterMonitoringClusterReplacementProductStruct {\n") append("\tproductIdentifierType : $productIdentifierType\n") append("\tproductIdentifierValue : $productIdentifierValue\n") @@ -49,14 +46,21 @@ class ActivatedCarbonFilterMonitoringClusterReplacementProductStruct ( private const val TAG_PRODUCT_IDENTIFIER_TYPE = 0 private const val TAG_PRODUCT_IDENTIFIER_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActivatedCarbonFilterMonitoringClusterReplacementProductStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ActivatedCarbonFilterMonitoringClusterReplacementProductStruct { tlvReader.enterStructure(tlvTag) val productIdentifierType = tlvReader.getUInt(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_TYPE)) - val productIdentifierValue = tlvReader.getString(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_VALUE)) - + val productIdentifierValue = + tlvReader.getString(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_VALUE)) + tlvReader.exitContainer() - return ActivatedCarbonFilterMonitoringClusterReplacementProductStruct(productIdentifierType, productIdentifierValue) + return ActivatedCarbonFilterMonitoringClusterReplacementProductStruct( + productIdentifierType, + productIdentifierValue + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationBasicClusterApplicationStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationBasicClusterApplicationStruct.kt index f052c51f03c144..1fb108656c7973 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationBasicClusterApplicationStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationBasicClusterApplicationStruct.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ApplicationBasicClusterApplicationStruct ( - val catalogVendorID: UInt, - val applicationID: String) { - override fun toString(): String = buildString { +class ApplicationBasicClusterApplicationStruct( + val catalogVendorID: UInt, + val applicationID: String +) { + override fun toString(): String = buildString { append("ApplicationBasicClusterApplicationStruct {\n") append("\tcatalogVendorID : $catalogVendorID\n") append("\tapplicationID : $applicationID\n") @@ -49,11 +46,11 @@ class ApplicationBasicClusterApplicationStruct ( private const val TAG_CATALOG_VENDOR_I_D = 0 private const val TAG_APPLICATION_I_D = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ApplicationBasicClusterApplicationStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ApplicationBasicClusterApplicationStruct { tlvReader.enterStructure(tlvTag) val catalogVendorID = tlvReader.getUInt(ContextSpecificTag(TAG_CATALOG_VENDOR_I_D)) val applicationID = tlvReader.getString(ContextSpecificTag(TAG_APPLICATION_I_D)) - + tlvReader.exitContainer() return ApplicationBasicClusterApplicationStruct(catalogVendorID, applicationID) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationEPStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationEPStruct.kt index 89f372803fe317..ea33f81faaf3e0 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationEPStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationEPStruct.kt @@ -17,19 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ApplicationLauncherClusterApplicationEPStruct ( - val application: ApplicationLauncherClusterApplicationStruct, - val endpoint: Optional) { - override fun toString(): String = buildString { +class ApplicationLauncherClusterApplicationEPStruct( + val application: ApplicationLauncherClusterApplicationStruct, + val endpoint: Optional +) { + override fun toString(): String = buildString { append("ApplicationLauncherClusterApplicationEPStruct {\n") append("\tapplication : $application\n") append("\tendpoint : $endpoint\n") @@ -41,9 +39,9 @@ class ApplicationLauncherClusterApplicationEPStruct ( startStructure(tlvTag) application.toTlv(ContextSpecificTag(TAG_APPLICATION), this) if (endpoint.isPresent) { - val optendpoint = endpoint.get() - put(ContextSpecificTag(TAG_ENDPOINT), optendpoint) - } + val optendpoint = endpoint.get() + put(ContextSpecificTag(TAG_ENDPOINT), optendpoint) + } endStructure() } } @@ -52,15 +50,20 @@ class ApplicationLauncherClusterApplicationEPStruct ( private const val TAG_APPLICATION = 0 private const val TAG_ENDPOINT = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ApplicationLauncherClusterApplicationEPStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ApplicationLauncherClusterApplicationEPStruct { tlvReader.enterStructure(tlvTag) - val application = ApplicationLauncherClusterApplicationStruct.fromTlv(ContextSpecificTag(TAG_APPLICATION), tlvReader) - val endpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENDPOINT))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT))) - } else { - Optional.empty() - } - + val application = + ApplicationLauncherClusterApplicationStruct.fromTlv( + ContextSpecificTag(TAG_APPLICATION), + tlvReader + ) + val endpoint = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENDPOINT))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT))) + } else { + Optional.empty() + } + tlvReader.exitContainer() return ApplicationLauncherClusterApplicationEPStruct(application, endpoint) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationStruct.kt index b306cbca62125a..c7ec51b47dfb4b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationStruct.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ApplicationLauncherClusterApplicationStruct ( - val catalogVendorID: UInt, - val applicationID: String) { - override fun toString(): String = buildString { +class ApplicationLauncherClusterApplicationStruct( + val catalogVendorID: UInt, + val applicationID: String +) { + override fun toString(): String = buildString { append("ApplicationLauncherClusterApplicationStruct {\n") append("\tcatalogVendorID : $catalogVendorID\n") append("\tapplicationID : $applicationID\n") @@ -49,11 +46,11 @@ class ApplicationLauncherClusterApplicationStruct ( private const val TAG_CATALOG_VENDOR_I_D = 0 private const val TAG_APPLICATION_I_D = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ApplicationLauncherClusterApplicationStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ApplicationLauncherClusterApplicationStruct { tlvReader.enterStructure(tlvTag) val catalogVendorID = tlvReader.getUInt(ContextSpecificTag(TAG_CATALOG_VENDOR_I_D)) val applicationID = tlvReader.getString(ContextSpecificTag(TAG_APPLICATION_I_D)) - + tlvReader.exitContainer() return ApplicationLauncherClusterApplicationStruct(catalogVendorID, applicationID) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AudioOutputClusterOutputInfoStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AudioOutputClusterOutputInfoStruct.kt index 60726ce82d5c56..6336549e45a0bc 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AudioOutputClusterOutputInfoStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/AudioOutputClusterOutputInfoStruct.kt @@ -17,20 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class AudioOutputClusterOutputInfoStruct ( - val index: UInt, - val outputType: UInt, - val name: String) { - override fun toString(): String = buildString { +class AudioOutputClusterOutputInfoStruct(val index: UInt, val outputType: UInt, val name: String) { + override fun toString(): String = buildString { append("AudioOutputClusterOutputInfoStruct {\n") append("\tindex : $index\n") append("\toutputType : $outputType\n") @@ -53,12 +46,12 @@ class AudioOutputClusterOutputInfoStruct ( private const val TAG_OUTPUT_TYPE = 1 private const val TAG_NAME = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AudioOutputClusterOutputInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): AudioOutputClusterOutputInfoStruct { tlvReader.enterStructure(tlvTag) val index = tlvReader.getUInt(ContextSpecificTag(TAG_INDEX)) val outputType = tlvReader.getUInt(ContextSpecificTag(TAG_OUTPUT_TYPE)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) - + tlvReader.exitContainer() return AudioOutputClusterOutputInfoStruct(index, outputType, name) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BasicInformationClusterCapabilityMinimaStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BasicInformationClusterCapabilityMinimaStruct.kt index 494c946f40b998..d79225dd61468e 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BasicInformationClusterCapabilityMinimaStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BasicInformationClusterCapabilityMinimaStruct.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BasicInformationClusterCapabilityMinimaStruct ( - val caseSessionsPerFabric: UInt, - val subscriptionsPerFabric: UInt) { - override fun toString(): String = buildString { +class BasicInformationClusterCapabilityMinimaStruct( + val caseSessionsPerFabric: UInt, + val subscriptionsPerFabric: UInt +) { + override fun toString(): String = buildString { append("BasicInformationClusterCapabilityMinimaStruct {\n") append("\tcaseSessionsPerFabric : $caseSessionsPerFabric\n") append("\tsubscriptionsPerFabric : $subscriptionsPerFabric\n") @@ -49,14 +46,19 @@ class BasicInformationClusterCapabilityMinimaStruct ( private const val TAG_CASE_SESSIONS_PER_FABRIC = 0 private const val TAG_SUBSCRIPTIONS_PER_FABRIC = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterCapabilityMinimaStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterCapabilityMinimaStruct { tlvReader.enterStructure(tlvTag) - val caseSessionsPerFabric = tlvReader.getUInt(ContextSpecificTag(TAG_CASE_SESSIONS_PER_FABRIC)) - val subscriptionsPerFabric = tlvReader.getUInt(ContextSpecificTag(TAG_SUBSCRIPTIONS_PER_FABRIC)) - + val caseSessionsPerFabric = + tlvReader.getUInt(ContextSpecificTag(TAG_CASE_SESSIONS_PER_FABRIC)) + val subscriptionsPerFabric = + tlvReader.getUInt(ContextSpecificTag(TAG_SUBSCRIPTIONS_PER_FABRIC)) + tlvReader.exitContainer() - return BasicInformationClusterCapabilityMinimaStruct(caseSessionsPerFabric, subscriptionsPerFabric) + return BasicInformationClusterCapabilityMinimaStruct( + caseSessionsPerFabric, + subscriptionsPerFabric + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BasicInformationClusterProductAppearanceStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BasicInformationClusterProductAppearanceStruct.kt index 44f42edb6adf2d..5a0eb3ace2ef7b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BasicInformationClusterProductAppearanceStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BasicInformationClusterProductAppearanceStruct.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BasicInformationClusterProductAppearanceStruct ( - val finish: UInt, - val primaryColor: UInt?) { - override fun toString(): String = buildString { +class BasicInformationClusterProductAppearanceStruct(val finish: UInt, val primaryColor: UInt?) { + override fun toString(): String = buildString { append("BasicInformationClusterProductAppearanceStruct {\n") append("\tfinish : $finish\n") append("\tprimaryColor : $primaryColor\n") @@ -41,10 +35,10 @@ class BasicInformationClusterProductAppearanceStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_FINISH), finish) if (primaryColor != null) { - put(ContextSpecificTag(TAG_PRIMARY_COLOR), primaryColor) - } else { - putNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) - } + put(ContextSpecificTag(TAG_PRIMARY_COLOR), primaryColor) + } else { + putNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) + } endStructure() } } @@ -53,16 +47,17 @@ class BasicInformationClusterProductAppearanceStruct ( private const val TAG_FINISH = 0 private const val TAG_PRIMARY_COLOR = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterProductAppearanceStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterProductAppearanceStruct { tlvReader.enterStructure(tlvTag) val finish = tlvReader.getUInt(ContextSpecificTag(TAG_FINISH)) - val primaryColor = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_PRIMARY_COLOR)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) - null - } - + val primaryColor = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_PRIMARY_COLOR)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) + null + } + tlvReader.exitContainer() return BasicInformationClusterProductAppearanceStruct(finish, primaryColor) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BindingClusterTargetStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BindingClusterTargetStruct.kt index 9454790cb7ac05..70c8deedaaaf6a 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BindingClusterTargetStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BindingClusterTargetStruct.kt @@ -17,22 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BindingClusterTargetStruct ( - val node: Optional, - val group: Optional, - val endpoint: Optional, - val cluster: Optional, - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class BindingClusterTargetStruct( + val node: Optional, + val group: Optional, + val endpoint: Optional, + val cluster: Optional, + val fabricIndex: UInt +) { + override fun toString(): String = buildString { append("BindingClusterTargetStruct {\n") append("\tnode : $node\n") append("\tgroup : $group\n") @@ -46,21 +44,21 @@ class BindingClusterTargetStruct ( tlvWriter.apply { startStructure(tlvTag) if (node.isPresent) { - val optnode = node.get() - put(ContextSpecificTag(TAG_NODE), optnode) - } + val optnode = node.get() + put(ContextSpecificTag(TAG_NODE), optnode) + } if (group.isPresent) { - val optgroup = group.get() - put(ContextSpecificTag(TAG_GROUP), optgroup) - } + val optgroup = group.get() + put(ContextSpecificTag(TAG_GROUP), optgroup) + } if (endpoint.isPresent) { - val optendpoint = endpoint.get() - put(ContextSpecificTag(TAG_ENDPOINT), optendpoint) - } + val optendpoint = endpoint.get() + put(ContextSpecificTag(TAG_ENDPOINT), optendpoint) + } if (cluster.isPresent) { - val optcluster = cluster.get() - put(ContextSpecificTag(TAG_CLUSTER), optcluster) - } + val optcluster = cluster.get() + put(ContextSpecificTag(TAG_CLUSTER), optcluster) + } put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) endStructure() } @@ -73,30 +71,34 @@ class BindingClusterTargetStruct ( private const val TAG_CLUSTER = 4 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BindingClusterTargetStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BindingClusterTargetStruct { tlvReader.enterStructure(tlvTag) - val node = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NODE))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_NODE))) - } else { - Optional.empty() - } - val group = if (tlvReader.isNextTag(ContextSpecificTag(TAG_GROUP))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_GROUP))) - } else { - Optional.empty() - } - val endpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENDPOINT))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT))) - } else { - Optional.empty() - } - val cluster = if (tlvReader.isNextTag(ContextSpecificTag(TAG_CLUSTER))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_CLUSTER))) - } else { - Optional.empty() - } + val node = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NODE))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_NODE))) + } else { + Optional.empty() + } + val group = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_GROUP))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_GROUP))) + } else { + Optional.empty() + } + val endpoint = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENDPOINT))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT))) + } else { + Optional.empty() + } + val cluster = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_CLUSTER))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_CLUSTER))) + } else { + Optional.empty() + } val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return BindingClusterTargetStruct(node, group, endpoint, cluster, fabricIndex) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BridgedDeviceBasicInformationClusterProductAppearanceStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BridgedDeviceBasicInformationClusterProductAppearanceStruct.kt index 6f548b1a015b9c..ec2d58aa588cea 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BridgedDeviceBasicInformationClusterProductAppearanceStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/BridgedDeviceBasicInformationClusterProductAppearanceStruct.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class BridgedDeviceBasicInformationClusterProductAppearanceStruct ( - val finish: UInt, - val primaryColor: UInt?) { - override fun toString(): String = buildString { +class BridgedDeviceBasicInformationClusterProductAppearanceStruct( + val finish: UInt, + val primaryColor: UInt? +) { + override fun toString(): String = buildString { append("BridgedDeviceBasicInformationClusterProductAppearanceStruct {\n") append("\tfinish : $finish\n") append("\tprimaryColor : $primaryColor\n") @@ -41,10 +38,10 @@ class BridgedDeviceBasicInformationClusterProductAppearanceStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_FINISH), finish) if (primaryColor != null) { - put(ContextSpecificTag(TAG_PRIMARY_COLOR), primaryColor) - } else { - putNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) - } + put(ContextSpecificTag(TAG_PRIMARY_COLOR), primaryColor) + } else { + putNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) + } endStructure() } } @@ -53,16 +50,20 @@ class BridgedDeviceBasicInformationClusterProductAppearanceStruct ( private const val TAG_FINISH = 0 private const val TAG_PRIMARY_COLOR = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BridgedDeviceBasicInformationClusterProductAppearanceStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): BridgedDeviceBasicInformationClusterProductAppearanceStruct { tlvReader.enterStructure(tlvTag) val finish = tlvReader.getUInt(ContextSpecificTag(TAG_FINISH)) - val primaryColor = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_PRIMARY_COLOR)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) - null - } - + val primaryColor = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_PRIMARY_COLOR)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) + null + } + tlvReader.exitContainer() return BridgedDeviceBasicInformationClusterProductAppearanceStruct(finish, primaryColor) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ChannelClusterChannelInfoStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ChannelClusterChannelInfoStruct.kt index eacde5acfb039b..f8ca194e2e444e 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ChannelClusterChannelInfoStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ChannelClusterChannelInfoStruct.kt @@ -17,22 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ChannelClusterChannelInfoStruct ( - val majorNumber: UInt, - val minorNumber: UInt, - val name: Optional, - val callSign: Optional, - val affiliateCallSign: Optional) { - override fun toString(): String = buildString { +class ChannelClusterChannelInfoStruct( + val majorNumber: UInt, + val minorNumber: UInt, + val name: Optional, + val callSign: Optional, + val affiliateCallSign: Optional +) { + override fun toString(): String = buildString { append("ChannelClusterChannelInfoStruct {\n") append("\tmajorNumber : $majorNumber\n") append("\tminorNumber : $minorNumber\n") @@ -48,17 +46,17 @@ class ChannelClusterChannelInfoStruct ( put(ContextSpecificTag(TAG_MAJOR_NUMBER), majorNumber) put(ContextSpecificTag(TAG_MINOR_NUMBER), minorNumber) if (name.isPresent) { - val optname = name.get() - put(ContextSpecificTag(TAG_NAME), optname) - } + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } if (callSign.isPresent) { - val optcallSign = callSign.get() - put(ContextSpecificTag(TAG_CALL_SIGN), optcallSign) - } + val optcallSign = callSign.get() + put(ContextSpecificTag(TAG_CALL_SIGN), optcallSign) + } if (affiliateCallSign.isPresent) { - val optaffiliateCallSign = affiliateCallSign.get() - put(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN), optaffiliateCallSign) - } + val optaffiliateCallSign = affiliateCallSign.get() + put(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN), optaffiliateCallSign) + } endStructure() } } @@ -70,29 +68,38 @@ class ChannelClusterChannelInfoStruct ( private const val TAG_CALL_SIGN = 3 private const val TAG_AFFILIATE_CALL_SIGN = 4 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ChannelClusterChannelInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ChannelClusterChannelInfoStruct { tlvReader.enterStructure(tlvTag) val majorNumber = tlvReader.getUInt(ContextSpecificTag(TAG_MAJOR_NUMBER)) val minorNumber = tlvReader.getUInt(ContextSpecificTag(TAG_MINOR_NUMBER)) - val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - val callSign = if (tlvReader.isNextTag(ContextSpecificTag(TAG_CALL_SIGN))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_CALL_SIGN))) - } else { - Optional.empty() - } - val affiliateCallSign = if (tlvReader.isNextTag(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN))) - } else { - Optional.empty() - } - + val name = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + val callSign = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_CALL_SIGN))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_CALL_SIGN))) + } else { + Optional.empty() + } + val affiliateCallSign = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return ChannelClusterChannelInfoStruct(majorNumber, minorNumber, name, callSign, affiliateCallSign) + return ChannelClusterChannelInfoStruct( + majorNumber, + minorNumber, + name, + callSign, + affiliateCallSign + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ChannelClusterLineupInfoStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ChannelClusterLineupInfoStruct.kt index 357509b7e3eb70..d205e89f966bae 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ChannelClusterLineupInfoStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ChannelClusterLineupInfoStruct.kt @@ -17,21 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ChannelClusterLineupInfoStruct ( - val operatorName: String, - val lineupName: Optional, - val postalCode: Optional, - val lineupInfoType: UInt) { - override fun toString(): String = buildString { +class ChannelClusterLineupInfoStruct( + val operatorName: String, + val lineupName: Optional, + val postalCode: Optional, + val lineupInfoType: UInt +) { + override fun toString(): String = buildString { append("ChannelClusterLineupInfoStruct {\n") append("\toperatorName : $operatorName\n") append("\tlineupName : $lineupName\n") @@ -45,13 +43,13 @@ class ChannelClusterLineupInfoStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_OPERATOR_NAME), operatorName) if (lineupName.isPresent) { - val optlineupName = lineupName.get() - put(ContextSpecificTag(TAG_LINEUP_NAME), optlineupName) - } + val optlineupName = lineupName.get() + put(ContextSpecificTag(TAG_LINEUP_NAME), optlineupName) + } if (postalCode.isPresent) { - val optpostalCode = postalCode.get() - put(ContextSpecificTag(TAG_POSTAL_CODE), optpostalCode) - } + val optpostalCode = postalCode.get() + put(ContextSpecificTag(TAG_POSTAL_CODE), optpostalCode) + } put(ContextSpecificTag(TAG_LINEUP_INFO_TYPE), lineupInfoType) endStructure() } @@ -63,21 +61,23 @@ class ChannelClusterLineupInfoStruct ( private const val TAG_POSTAL_CODE = 2 private const val TAG_LINEUP_INFO_TYPE = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ChannelClusterLineupInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ChannelClusterLineupInfoStruct { tlvReader.enterStructure(tlvTag) val operatorName = tlvReader.getString(ContextSpecificTag(TAG_OPERATOR_NAME)) - val lineupName = if (tlvReader.isNextTag(ContextSpecificTag(TAG_LINEUP_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_LINEUP_NAME))) - } else { - Optional.empty() - } - val postalCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_POSTAL_CODE))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_POSTAL_CODE))) - } else { - Optional.empty() - } + val lineupName = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_LINEUP_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_LINEUP_NAME))) + } else { + Optional.empty() + } + val postalCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_POSTAL_CODE))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_POSTAL_CODE))) + } else { + Optional.empty() + } val lineupInfoType = tlvReader.getUInt(ContextSpecificTag(TAG_LINEUP_INFO_TYPE)) - + tlvReader.exitContainer() return ChannelClusterLineupInfoStruct(operatorName, lineupName, postalCode, lineupInfoType) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterAdditionalInfoStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterAdditionalInfoStruct.kt index cdc41e36467d57..c9df652a2ca5a8 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterAdditionalInfoStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterAdditionalInfoStruct.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ContentLauncherClusterAdditionalInfoStruct ( - val name: String, - val value: String) { - override fun toString(): String = buildString { +class ContentLauncherClusterAdditionalInfoStruct(val name: String, val value: String) { + override fun toString(): String = buildString { append("ContentLauncherClusterAdditionalInfoStruct {\n") append("\tname : $name\n") append("\tvalue : $value\n") @@ -49,11 +43,11 @@ class ContentLauncherClusterAdditionalInfoStruct ( private const val TAG_NAME = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ContentLauncherClusterAdditionalInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterAdditionalInfoStruct { tlvReader.enterStructure(tlvTag) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) val value = tlvReader.getString(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return ContentLauncherClusterAdditionalInfoStruct(name, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterBrandingInformationStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterBrandingInformationStruct.kt index 56028fc4d11e93..5508763757c036 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterBrandingInformationStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterBrandingInformationStruct.kt @@ -17,23 +17,21 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ContentLauncherClusterBrandingInformationStruct ( - val providerName: String, - val background: Optional, - val logo: Optional, - val progressBar: Optional, - val splash: Optional, - val waterMark: Optional) { - override fun toString(): String = buildString { +class ContentLauncherClusterBrandingInformationStruct( + val providerName: String, + val background: Optional, + val logo: Optional, + val progressBar: Optional, + val splash: Optional, + val waterMark: Optional +) { + override fun toString(): String = buildString { append("ContentLauncherClusterBrandingInformationStruct {\n") append("\tproviderName : $providerName\n") append("\tbackground : $background\n") @@ -49,25 +47,25 @@ class ContentLauncherClusterBrandingInformationStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_PROVIDER_NAME), providerName) if (background.isPresent) { - val optbackground = background.get() - optbackground.toTlv(ContextSpecificTag(TAG_BACKGROUND), this) - } + val optbackground = background.get() + optbackground.toTlv(ContextSpecificTag(TAG_BACKGROUND), this) + } if (logo.isPresent) { - val optlogo = logo.get() - optlogo.toTlv(ContextSpecificTag(TAG_LOGO), this) - } + val optlogo = logo.get() + optlogo.toTlv(ContextSpecificTag(TAG_LOGO), this) + } if (progressBar.isPresent) { - val optprogressBar = progressBar.get() - optprogressBar.toTlv(ContextSpecificTag(TAG_PROGRESS_BAR), this) - } + val optprogressBar = progressBar.get() + optprogressBar.toTlv(ContextSpecificTag(TAG_PROGRESS_BAR), this) + } if (splash.isPresent) { - val optsplash = splash.get() - optsplash.toTlv(ContextSpecificTag(TAG_SPLASH), this) - } + val optsplash = splash.get() + optsplash.toTlv(ContextSpecificTag(TAG_SPLASH), this) + } if (waterMark.isPresent) { - val optwaterMark = waterMark.get() - optwaterMark.toTlv(ContextSpecificTag(TAG_WATER_MARK), this) - } + val optwaterMark = waterMark.get() + optwaterMark.toTlv(ContextSpecificTag(TAG_WATER_MARK), this) + } endStructure() } } @@ -80,38 +78,78 @@ class ContentLauncherClusterBrandingInformationStruct ( private const val TAG_SPLASH = 4 private const val TAG_WATER_MARK = 5 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ContentLauncherClusterBrandingInformationStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ContentLauncherClusterBrandingInformationStruct { tlvReader.enterStructure(tlvTag) val providerName = tlvReader.getString(ContextSpecificTag(TAG_PROVIDER_NAME)) - val background = if (tlvReader.isNextTag(ContextSpecificTag(TAG_BACKGROUND))) { - Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_BACKGROUND), tlvReader)) - } else { - Optional.empty() - } - val logo = if (tlvReader.isNextTag(ContextSpecificTag(TAG_LOGO))) { - Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_LOGO), tlvReader)) - } else { - Optional.empty() - } - val progressBar = if (tlvReader.isNextTag(ContextSpecificTag(TAG_PROGRESS_BAR))) { - Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_PROGRESS_BAR), tlvReader)) - } else { - Optional.empty() - } - val splash = if (tlvReader.isNextTag(ContextSpecificTag(TAG_SPLASH))) { - Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_SPLASH), tlvReader)) - } else { - Optional.empty() - } - val waterMark = if (tlvReader.isNextTag(ContextSpecificTag(TAG_WATER_MARK))) { - Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_WATER_MARK), tlvReader)) - } else { - Optional.empty() - } - + val background = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_BACKGROUND))) { + Optional.of( + ContentLauncherClusterStyleInformationStruct.fromTlv( + ContextSpecificTag(TAG_BACKGROUND), + tlvReader + ) + ) + } else { + Optional.empty() + } + val logo = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_LOGO))) { + Optional.of( + ContentLauncherClusterStyleInformationStruct.fromTlv( + ContextSpecificTag(TAG_LOGO), + tlvReader + ) + ) + } else { + Optional.empty() + } + val progressBar = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_PROGRESS_BAR))) { + Optional.of( + ContentLauncherClusterStyleInformationStruct.fromTlv( + ContextSpecificTag(TAG_PROGRESS_BAR), + tlvReader + ) + ) + } else { + Optional.empty() + } + val splash = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_SPLASH))) { + Optional.of( + ContentLauncherClusterStyleInformationStruct.fromTlv( + ContextSpecificTag(TAG_SPLASH), + tlvReader + ) + ) + } else { + Optional.empty() + } + val waterMark = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_WATER_MARK))) { + Optional.of( + ContentLauncherClusterStyleInformationStruct.fromTlv( + ContextSpecificTag(TAG_WATER_MARK), + tlvReader + ) + ) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return ContentLauncherClusterBrandingInformationStruct(providerName, background, logo, progressBar, splash, waterMark) + return ContentLauncherClusterBrandingInformationStruct( + providerName, + background, + logo, + progressBar, + splash, + waterMark + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterContentSearchStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterContentSearchStruct.kt index 9f100e058c4305..fc1cfc5de7b014 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterContentSearchStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterContentSearchStruct.kt @@ -20,15 +20,13 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ContentLauncherClusterContentSearchStruct ( - val parameterList: List) { - override fun toString(): String = buildString { +class ContentLauncherClusterContentSearchStruct( + val parameterList: List +) { + override fun toString(): String = buildString { append("ContentLauncherClusterContentSearchStruct {\n") append("\tparameterList : $parameterList\n") append("}\n") @@ -49,16 +47,17 @@ class ContentLauncherClusterContentSearchStruct ( companion object { private const val TAG_PARAMETER_LIST = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ContentLauncherClusterContentSearchStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterContentSearchStruct { tlvReader.enterStructure(tlvTag) - val parameterList = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PARAMETER_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(ContentLauncherClusterParameterStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val parameterList = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PARAMETER_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(ContentLauncherClusterParameterStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ContentLauncherClusterContentSearchStruct(parameterList) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterDimensionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterDimensionStruct.kt index 8c6fd83e614072..f00027d639958c 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterDimensionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterDimensionStruct.kt @@ -17,20 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ContentLauncherClusterDimensionStruct ( - val width: Double, - val height: Double, - val metric: UInt) { - override fun toString(): String = buildString { +class ContentLauncherClusterDimensionStruct( + val width: Double, + val height: Double, + val metric: UInt +) { + override fun toString(): String = buildString { append("ContentLauncherClusterDimensionStruct {\n") append("\twidth : $width\n") append("\theight : $height\n") @@ -53,12 +50,12 @@ class ContentLauncherClusterDimensionStruct ( private const val TAG_HEIGHT = 1 private const val TAG_METRIC = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ContentLauncherClusterDimensionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterDimensionStruct { tlvReader.enterStructure(tlvTag) val width = tlvReader.getDouble(ContextSpecificTag(TAG_WIDTH)) val height = tlvReader.getDouble(ContextSpecificTag(TAG_HEIGHT)) val metric = tlvReader.getUInt(ContextSpecificTag(TAG_METRIC)) - + tlvReader.exitContainer() return ContentLauncherClusterDimensionStruct(width, height, metric) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterParameterStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterParameterStruct.kt index 0a547a665e8609..458fb5e7b29d9c 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterParameterStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterParameterStruct.kt @@ -17,20 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import java.util.Optional import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ContentLauncherClusterParameterStruct ( - val type: UInt, - val value: String, - val externalIDList: Optional>) { - override fun toString(): String = buildString { +class ContentLauncherClusterParameterStruct( + val type: UInt, + val value: String, + val externalIDList: Optional> +) { + override fun toString(): String = buildString { append("ContentLauncherClusterParameterStruct {\n") append("\ttype : $type\n") append("\tvalue : $value\n") @@ -44,13 +43,13 @@ class ContentLauncherClusterParameterStruct ( put(ContextSpecificTag(TAG_TYPE), type) put(ContextSpecificTag(TAG_VALUE), value) if (externalIDList.isPresent) { - val optexternalIDList = externalIDList.get() - startArray(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST)) - for (item in optexternalIDList.iterator()) { - item.toTlv(AnonymousTag, this) + val optexternalIDList = externalIDList.get() + startArray(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST)) + for (item in optexternalIDList.iterator()) { + item.toTlv(AnonymousTag, this) + } + endArray() } - endArray() - } endStructure() } } @@ -60,22 +59,25 @@ class ContentLauncherClusterParameterStruct ( private const val TAG_VALUE = 1 private const val TAG_EXTERNAL_I_D_LIST = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ContentLauncherClusterParameterStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterParameterStruct { tlvReader.enterStructure(tlvTag) val type = tlvReader.getUInt(ContextSpecificTag(TAG_TYPE)) val value = tlvReader.getString(ContextSpecificTag(TAG_VALUE)) - val externalIDList = if (tlvReader.isNextTag(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST))) { - Optional.of(buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(ContentLauncherClusterAdditionalInfoStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - }) - } else { - Optional.empty() - } - + val externalIDList = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST))) { + Optional.of( + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(ContentLauncherClusterAdditionalInfoStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + ) + } else { + Optional.empty() + } + tlvReader.exitContainer() return ContentLauncherClusterParameterStruct(type, value, externalIDList) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterStyleInformationStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterStyleInformationStruct.kt index c5de0e5706eaea..9b34f59f3eefa6 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterStyleInformationStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ContentLauncherClusterStyleInformationStruct.kt @@ -17,20 +17,18 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ContentLauncherClusterStyleInformationStruct ( - val imageURL: Optional, - val color: Optional, - val size: Optional) { - override fun toString(): String = buildString { +class ContentLauncherClusterStyleInformationStruct( + val imageURL: Optional, + val color: Optional, + val size: Optional +) { + override fun toString(): String = buildString { append("ContentLauncherClusterStyleInformationStruct {\n") append("\timageURL : $imageURL\n") append("\tcolor : $color\n") @@ -42,17 +40,17 @@ class ContentLauncherClusterStyleInformationStruct ( tlvWriter.apply { startStructure(tlvTag) if (imageURL.isPresent) { - val optimageURL = imageURL.get() - put(ContextSpecificTag(TAG_IMAGE_U_R_L), optimageURL) - } + val optimageURL = imageURL.get() + put(ContextSpecificTag(TAG_IMAGE_U_R_L), optimageURL) + } if (color.isPresent) { - val optcolor = color.get() - put(ContextSpecificTag(TAG_COLOR), optcolor) - } + val optcolor = color.get() + put(ContextSpecificTag(TAG_COLOR), optcolor) + } if (size.isPresent) { - val optsize = size.get() - optsize.toTlv(ContextSpecificTag(TAG_SIZE), this) - } + val optsize = size.get() + optsize.toTlv(ContextSpecificTag(TAG_SIZE), this) + } endStructure() } } @@ -62,24 +60,29 @@ class ContentLauncherClusterStyleInformationStruct ( private const val TAG_COLOR = 1 private const val TAG_SIZE = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ContentLauncherClusterStyleInformationStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterStyleInformationStruct { tlvReader.enterStructure(tlvTag) - val imageURL = if (tlvReader.isNextTag(ContextSpecificTag(TAG_IMAGE_U_R_L))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_IMAGE_U_R_L))) - } else { - Optional.empty() - } - val color = if (tlvReader.isNextTag(ContextSpecificTag(TAG_COLOR))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_COLOR))) - } else { - Optional.empty() - } - val size = if (tlvReader.isNextTag(ContextSpecificTag(TAG_SIZE))) { - Optional.of(ContentLauncherClusterDimensionStruct.fromTlv(ContextSpecificTag(TAG_SIZE), tlvReader)) - } else { - Optional.empty() - } - + val imageURL = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_IMAGE_U_R_L))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_IMAGE_U_R_L))) + } else { + Optional.empty() + } + val color = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_COLOR))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_COLOR))) + } else { + Optional.empty() + } + val size = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_SIZE))) { + Optional.of( + ContentLauncherClusterDimensionStruct.fromTlv(ContextSpecificTag(TAG_SIZE), tlvReader) + ) + } else { + Optional.empty() + } + tlvReader.exitContainer() return ContentLauncherClusterStyleInformationStruct(imageURL, color, size) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterAverageLoadControlStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterAverageLoadControlStruct.kt index 4357cf625ca244..a4dd7c659efb22 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterAverageLoadControlStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterAverageLoadControlStruct.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DemandResponseLoadControlClusterAverageLoadControlStruct ( - val loadAdjustment: Int) { - override fun toString(): String = buildString { +class DemandResponseLoadControlClusterAverageLoadControlStruct(val loadAdjustment: Int) { + override fun toString(): String = buildString { append("DemandResponseLoadControlClusterAverageLoadControlStruct {\n") append("\tloadAdjustment : $loadAdjustment\n") append("}\n") @@ -45,10 +40,13 @@ class DemandResponseLoadControlClusterAverageLoadControlStruct ( companion object { private const val TAG_LOAD_ADJUSTMENT = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DemandResponseLoadControlClusterAverageLoadControlStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): DemandResponseLoadControlClusterAverageLoadControlStruct { tlvReader.enterStructure(tlvTag) val loadAdjustment = tlvReader.getInt(ContextSpecificTag(TAG_LOAD_ADJUSTMENT)) - + tlvReader.exitContainer() return DemandResponseLoadControlClusterAverageLoadControlStruct(loadAdjustment) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterDutyCycleControlStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterDutyCycleControlStruct.kt index ce5980bf12eab7..af1ad8026cc11b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterDutyCycleControlStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterDutyCycleControlStruct.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DemandResponseLoadControlClusterDutyCycleControlStruct ( - val dutyCycle: UInt) { - override fun toString(): String = buildString { +class DemandResponseLoadControlClusterDutyCycleControlStruct(val dutyCycle: UInt) { + override fun toString(): String = buildString { append("DemandResponseLoadControlClusterDutyCycleControlStruct {\n") append("\tdutyCycle : $dutyCycle\n") append("}\n") @@ -45,10 +40,13 @@ class DemandResponseLoadControlClusterDutyCycleControlStruct ( companion object { private const val TAG_DUTY_CYCLE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DemandResponseLoadControlClusterDutyCycleControlStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): DemandResponseLoadControlClusterDutyCycleControlStruct { tlvReader.enterStructure(tlvTag) val dutyCycle = tlvReader.getUInt(ContextSpecificTag(TAG_DUTY_CYCLE)) - + tlvReader.exitContainer() return DemandResponseLoadControlClusterDutyCycleControlStruct(dutyCycle) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterHeatingSourceControlStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterHeatingSourceControlStruct.kt index c957612bd8942e..049c061b9966e1 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterHeatingSourceControlStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterHeatingSourceControlStruct.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DemandResponseLoadControlClusterHeatingSourceControlStruct ( - val heatingSource: UInt) { - override fun toString(): String = buildString { +class DemandResponseLoadControlClusterHeatingSourceControlStruct(val heatingSource: UInt) { + override fun toString(): String = buildString { append("DemandResponseLoadControlClusterHeatingSourceControlStruct {\n") append("\theatingSource : $heatingSource\n") append("}\n") @@ -45,10 +40,13 @@ class DemandResponseLoadControlClusterHeatingSourceControlStruct ( companion object { private const val TAG_HEATING_SOURCE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DemandResponseLoadControlClusterHeatingSourceControlStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): DemandResponseLoadControlClusterHeatingSourceControlStruct { tlvReader.enterStructure(tlvTag) val heatingSource = tlvReader.getUInt(ContextSpecificTag(TAG_HEATING_SOURCE)) - + tlvReader.exitContainer() return DemandResponseLoadControlClusterHeatingSourceControlStruct(heatingSource) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventStruct.kt index 150b4bc952bad3..f714af6d7b8fbd 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventStruct.kt @@ -17,25 +17,24 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import java.util.Optional import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DemandResponseLoadControlClusterLoadControlEventStruct ( - val eventID: ByteArray, - val programID: ByteArray?, - val control: UInt, - val deviceClass: ULong, - val enrollmentGroup: Optional, - val criticality: UInt, - val startTime: ULong?, - val transitions: List) { - override fun toString(): String = buildString { +class DemandResponseLoadControlClusterLoadControlEventStruct( + val eventID: ByteArray, + val programID: ByteArray?, + val control: UInt, + val deviceClass: ULong, + val enrollmentGroup: Optional, + val criticality: UInt, + val startTime: ULong?, + val transitions: List +) { + override fun toString(): String = buildString { append("DemandResponseLoadControlClusterLoadControlEventStruct {\n") append("\teventID : $eventID\n") append("\tprogramID : $programID\n") @@ -53,22 +52,22 @@ class DemandResponseLoadControlClusterLoadControlEventStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_EVENT_I_D), eventID) if (programID != null) { - put(ContextSpecificTag(TAG_PROGRAM_I_D), programID) - } else { - putNull(ContextSpecificTag(TAG_PROGRAM_I_D)) - } + put(ContextSpecificTag(TAG_PROGRAM_I_D), programID) + } else { + putNull(ContextSpecificTag(TAG_PROGRAM_I_D)) + } put(ContextSpecificTag(TAG_CONTROL), control) put(ContextSpecificTag(TAG_DEVICE_CLASS), deviceClass) if (enrollmentGroup.isPresent) { - val optenrollmentGroup = enrollmentGroup.get() - put(ContextSpecificTag(TAG_ENROLLMENT_GROUP), optenrollmentGroup) - } + val optenrollmentGroup = enrollmentGroup.get() + put(ContextSpecificTag(TAG_ENROLLMENT_GROUP), optenrollmentGroup) + } put(ContextSpecificTag(TAG_CRITICALITY), criticality) if (startTime != null) { - put(ContextSpecificTag(TAG_START_TIME), startTime) - } else { - putNull(ContextSpecificTag(TAG_START_TIME)) - } + put(ContextSpecificTag(TAG_START_TIME), startTime) + } else { + putNull(ContextSpecificTag(TAG_START_TIME)) + } startArray(ContextSpecificTag(TAG_TRANSITIONS)) for (item in transitions.iterator()) { item.toTlv(AnonymousTag, this) @@ -88,40 +87,61 @@ class DemandResponseLoadControlClusterLoadControlEventStruct ( private const val TAG_START_TIME = 6 private const val TAG_TRANSITIONS = 7 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DemandResponseLoadControlClusterLoadControlEventStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): DemandResponseLoadControlClusterLoadControlEventStruct { tlvReader.enterStructure(tlvTag) val eventID = tlvReader.getByteArray(ContextSpecificTag(TAG_EVENT_I_D)) - val programID = if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_PROGRAM_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PROGRAM_I_D)) - null - } + val programID = + if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_PROGRAM_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PROGRAM_I_D)) + null + } val control = tlvReader.getUInt(ContextSpecificTag(TAG_CONTROL)) val deviceClass = tlvReader.getULong(ContextSpecificTag(TAG_DEVICE_CLASS)) - val enrollmentGroup = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENROLLMENT_GROUP))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_ENROLLMENT_GROUP))) - } else { - Optional.empty() - } + val enrollmentGroup = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENROLLMENT_GROUP))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_ENROLLMENT_GROUP))) + } else { + Optional.empty() + } val criticality = tlvReader.getUInt(ContextSpecificTag(TAG_CRITICALITY)) - val startTime = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_START_TIME)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_START_TIME)) - null - } - val transitions = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_TRANSITIONS)) - while(!tlvReader.isEndOfContainer()) { - add(DemandResponseLoadControlClusterLoadControlEventTransitionStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val startTime = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_START_TIME)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_START_TIME)) + null + } + val transitions = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_TRANSITIONS)) + while (!tlvReader.isEndOfContainer()) { + add( + DemandResponseLoadControlClusterLoadControlEventTransitionStruct.fromTlv( + AnonymousTag, + tlvReader + ) + ) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() - return DemandResponseLoadControlClusterLoadControlEventStruct(eventID, programID, control, deviceClass, enrollmentGroup, criticality, startTime, transitions) + return DemandResponseLoadControlClusterLoadControlEventStruct( + eventID, + programID, + control, + deviceClass, + enrollmentGroup, + criticality, + startTime, + transitions + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventTransitionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventTransitionStruct.kt index c1643805f9a6bf..6d44b1e020d180 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventTransitionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventTransitionStruct.kt @@ -17,24 +17,22 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DemandResponseLoadControlClusterLoadControlEventTransitionStruct ( - val duration: UInt, - val control: UInt, - val temperatureControl: Optional, - val averageLoadControl: Optional, - val dutyCycleControl: Optional, - val powerSavingsControl: Optional, - val heatingSourceControl: Optional) { - override fun toString(): String = buildString { +class DemandResponseLoadControlClusterLoadControlEventTransitionStruct( + val duration: UInt, + val control: UInt, + val temperatureControl: Optional, + val averageLoadControl: Optional, + val dutyCycleControl: Optional, + val powerSavingsControl: Optional, + val heatingSourceControl: Optional +) { + override fun toString(): String = buildString { append("DemandResponseLoadControlClusterLoadControlEventTransitionStruct {\n") append("\tduration : $duration\n") append("\tcontrol : $control\n") @@ -52,25 +50,25 @@ class DemandResponseLoadControlClusterLoadControlEventTransitionStruct ( put(ContextSpecificTag(TAG_DURATION), duration) put(ContextSpecificTag(TAG_CONTROL), control) if (temperatureControl.isPresent) { - val opttemperatureControl = temperatureControl.get() - opttemperatureControl.toTlv(ContextSpecificTag(TAG_TEMPERATURE_CONTROL), this) - } + val opttemperatureControl = temperatureControl.get() + opttemperatureControl.toTlv(ContextSpecificTag(TAG_TEMPERATURE_CONTROL), this) + } if (averageLoadControl.isPresent) { - val optaverageLoadControl = averageLoadControl.get() - optaverageLoadControl.toTlv(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), this) - } + val optaverageLoadControl = averageLoadControl.get() + optaverageLoadControl.toTlv(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), this) + } if (dutyCycleControl.isPresent) { - val optdutyCycleControl = dutyCycleControl.get() - optdutyCycleControl.toTlv(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), this) - } + val optdutyCycleControl = dutyCycleControl.get() + optdutyCycleControl.toTlv(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), this) + } if (powerSavingsControl.isPresent) { - val optpowerSavingsControl = powerSavingsControl.get() - optpowerSavingsControl.toTlv(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), this) - } + val optpowerSavingsControl = powerSavingsControl.get() + optpowerSavingsControl.toTlv(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), this) + } if (heatingSourceControl.isPresent) { - val optheatingSourceControl = heatingSourceControl.get() - optheatingSourceControl.toTlv(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), this) - } + val optheatingSourceControl = heatingSourceControl.get() + optheatingSourceControl.toTlv(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), this) + } endStructure() } } @@ -84,39 +82,80 @@ class DemandResponseLoadControlClusterLoadControlEventTransitionStruct ( private const val TAG_POWER_SAVINGS_CONTROL = 5 private const val TAG_HEATING_SOURCE_CONTROL = 6 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DemandResponseLoadControlClusterLoadControlEventTransitionStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): DemandResponseLoadControlClusterLoadControlEventTransitionStruct { tlvReader.enterStructure(tlvTag) val duration = tlvReader.getUInt(ContextSpecificTag(TAG_DURATION)) val control = tlvReader.getUInt(ContextSpecificTag(TAG_CONTROL)) - val temperatureControl = if (tlvReader.isNextTag(ContextSpecificTag(TAG_TEMPERATURE_CONTROL))) { - Optional.of(DemandResponseLoadControlClusterTemperatureControlStruct.fromTlv(ContextSpecificTag(TAG_TEMPERATURE_CONTROL), tlvReader)) - } else { - Optional.empty() - } - val averageLoadControl = if (tlvReader.isNextTag(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL))) { - Optional.of(DemandResponseLoadControlClusterAverageLoadControlStruct.fromTlv(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), tlvReader)) - } else { - Optional.empty() - } - val dutyCycleControl = if (tlvReader.isNextTag(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL))) { - Optional.of(DemandResponseLoadControlClusterDutyCycleControlStruct.fromTlv(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), tlvReader)) - } else { - Optional.empty() - } - val powerSavingsControl = if (tlvReader.isNextTag(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL))) { - Optional.of(DemandResponseLoadControlClusterPowerSavingsControlStruct.fromTlv(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), tlvReader)) - } else { - Optional.empty() - } - val heatingSourceControl = if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL))) { - Optional.of(DemandResponseLoadControlClusterHeatingSourceControlStruct.fromTlv(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), tlvReader)) - } else { - Optional.empty() - } - + val temperatureControl = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_TEMPERATURE_CONTROL))) { + Optional.of( + DemandResponseLoadControlClusterTemperatureControlStruct.fromTlv( + ContextSpecificTag(TAG_TEMPERATURE_CONTROL), + tlvReader + ) + ) + } else { + Optional.empty() + } + val averageLoadControl = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL))) { + Optional.of( + DemandResponseLoadControlClusterAverageLoadControlStruct.fromTlv( + ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), + tlvReader + ) + ) + } else { + Optional.empty() + } + val dutyCycleControl = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL))) { + Optional.of( + DemandResponseLoadControlClusterDutyCycleControlStruct.fromTlv( + ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), + tlvReader + ) + ) + } else { + Optional.empty() + } + val powerSavingsControl = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL))) { + Optional.of( + DemandResponseLoadControlClusterPowerSavingsControlStruct.fromTlv( + ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), + tlvReader + ) + ) + } else { + Optional.empty() + } + val heatingSourceControl = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL))) { + Optional.of( + DemandResponseLoadControlClusterHeatingSourceControlStruct.fromTlv( + ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), + tlvReader + ) + ) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return DemandResponseLoadControlClusterLoadControlEventTransitionStruct(duration, control, temperatureControl, averageLoadControl, dutyCycleControl, powerSavingsControl, heatingSourceControl) + return DemandResponseLoadControlClusterLoadControlEventTransitionStruct( + duration, + control, + temperatureControl, + averageLoadControl, + dutyCycleControl, + powerSavingsControl, + heatingSourceControl + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlProgramStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlProgramStruct.kt index 70787ef931f659..289e4b0a1dbebf 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlProgramStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlProgramStruct.kt @@ -17,22 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DemandResponseLoadControlClusterLoadControlProgramStruct ( - val programID: ByteArray, - val name: String, - val enrollmentGroup: UInt?, - val randomStartMinutes: UInt?, - val randomDurationMinutes: UInt?) { - override fun toString(): String = buildString { +class DemandResponseLoadControlClusterLoadControlProgramStruct( + val programID: ByteArray, + val name: String, + val enrollmentGroup: UInt?, + val randomStartMinutes: UInt?, + val randomDurationMinutes: UInt? +) { + override fun toString(): String = buildString { append("DemandResponseLoadControlClusterLoadControlProgramStruct {\n") append("\tprogramID : $programID\n") append("\tname : $name\n") @@ -48,20 +45,20 @@ class DemandResponseLoadControlClusterLoadControlProgramStruct ( put(ContextSpecificTag(TAG_PROGRAM_I_D), programID) put(ContextSpecificTag(TAG_NAME), name) if (enrollmentGroup != null) { - put(ContextSpecificTag(TAG_ENROLLMENT_GROUP), enrollmentGroup) - } else { - putNull(ContextSpecificTag(TAG_ENROLLMENT_GROUP)) - } + put(ContextSpecificTag(TAG_ENROLLMENT_GROUP), enrollmentGroup) + } else { + putNull(ContextSpecificTag(TAG_ENROLLMENT_GROUP)) + } if (randomStartMinutes != null) { - put(ContextSpecificTag(TAG_RANDOM_START_MINUTES), randomStartMinutes) - } else { - putNull(ContextSpecificTag(TAG_RANDOM_START_MINUTES)) - } + put(ContextSpecificTag(TAG_RANDOM_START_MINUTES), randomStartMinutes) + } else { + putNull(ContextSpecificTag(TAG_RANDOM_START_MINUTES)) + } if (randomDurationMinutes != null) { - put(ContextSpecificTag(TAG_RANDOM_DURATION_MINUTES), randomDurationMinutes) - } else { - putNull(ContextSpecificTag(TAG_RANDOM_DURATION_MINUTES)) - } + put(ContextSpecificTag(TAG_RANDOM_DURATION_MINUTES), randomDurationMinutes) + } else { + putNull(ContextSpecificTag(TAG_RANDOM_DURATION_MINUTES)) + } endStructure() } } @@ -73,32 +70,44 @@ class DemandResponseLoadControlClusterLoadControlProgramStruct ( private const val TAG_RANDOM_START_MINUTES = 3 private const val TAG_RANDOM_DURATION_MINUTES = 4 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DemandResponseLoadControlClusterLoadControlProgramStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): DemandResponseLoadControlClusterLoadControlProgramStruct { tlvReader.enterStructure(tlvTag) val programID = tlvReader.getByteArray(ContextSpecificTag(TAG_PROGRAM_I_D)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) - val enrollmentGroup = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_ENROLLMENT_GROUP)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ENROLLMENT_GROUP)) - null - } - val randomStartMinutes = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_RANDOM_START_MINUTES)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_RANDOM_START_MINUTES)) - null - } - val randomDurationMinutes = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_RANDOM_DURATION_MINUTES)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_RANDOM_DURATION_MINUTES)) - null - } - + val enrollmentGroup = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_ENROLLMENT_GROUP)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ENROLLMENT_GROUP)) + null + } + val randomStartMinutes = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_RANDOM_START_MINUTES)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_RANDOM_START_MINUTES)) + null + } + val randomDurationMinutes = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_RANDOM_DURATION_MINUTES)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_RANDOM_DURATION_MINUTES)) + null + } + tlvReader.exitContainer() - return DemandResponseLoadControlClusterLoadControlProgramStruct(programID, name, enrollmentGroup, randomStartMinutes, randomDurationMinutes) + return DemandResponseLoadControlClusterLoadControlProgramStruct( + programID, + name, + enrollmentGroup, + randomStartMinutes, + randomDurationMinutes + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterPowerSavingsControlStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterPowerSavingsControlStruct.kt index a06b0011af0b89..30ed601d4ac156 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterPowerSavingsControlStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterPowerSavingsControlStruct.kt @@ -17,18 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DemandResponseLoadControlClusterPowerSavingsControlStruct ( - val powerSavings: UInt) { - override fun toString(): String = buildString { +class DemandResponseLoadControlClusterPowerSavingsControlStruct(val powerSavings: UInt) { + override fun toString(): String = buildString { append("DemandResponseLoadControlClusterPowerSavingsControlStruct {\n") append("\tpowerSavings : $powerSavings\n") append("}\n") @@ -45,10 +40,13 @@ class DemandResponseLoadControlClusterPowerSavingsControlStruct ( companion object { private const val TAG_POWER_SAVINGS = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DemandResponseLoadControlClusterPowerSavingsControlStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): DemandResponseLoadControlClusterPowerSavingsControlStruct { tlvReader.enterStructure(tlvTag) val powerSavings = tlvReader.getUInt(ContextSpecificTag(TAG_POWER_SAVINGS)) - + tlvReader.exitContainer() return DemandResponseLoadControlClusterPowerSavingsControlStruct(powerSavings) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterTemperatureControlStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterTemperatureControlStruct.kt index 70524b6e349fca..925c1db888410a 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterTemperatureControlStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DemandResponseLoadControlClusterTemperatureControlStruct.kt @@ -17,21 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DemandResponseLoadControlClusterTemperatureControlStruct ( - val coolingTempOffset: Optional?, - val heatingtTempOffset: Optional?, - val coolingTempSetpoint: Optional?, - val heatingTempSetpoint: Optional?) { - override fun toString(): String = buildString { +class DemandResponseLoadControlClusterTemperatureControlStruct( + val coolingTempOffset: Optional?, + val heatingtTempOffset: Optional?, + val coolingTempSetpoint: Optional?, + val heatingTempSetpoint: Optional? +) { + override fun toString(): String = buildString { append("DemandResponseLoadControlClusterTemperatureControlStruct {\n") append("\tcoolingTempOffset : $coolingTempOffset\n") append("\theatingtTempOffset : $heatingtTempOffset\n") @@ -44,37 +42,37 @@ class DemandResponseLoadControlClusterTemperatureControlStruct ( tlvWriter.apply { startStructure(tlvTag) if (coolingTempOffset != null) { - if (coolingTempOffset.isPresent) { - val optcoolingTempOffset = coolingTempOffset.get() - put(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET), optcoolingTempOffset) - } - } else { - putNull(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET)) - } + if (coolingTempOffset.isPresent) { + val optcoolingTempOffset = coolingTempOffset.get() + put(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET), optcoolingTempOffset) + } + } else { + putNull(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET)) + } if (heatingtTempOffset != null) { - if (heatingtTempOffset.isPresent) { - val optheatingtTempOffset = heatingtTempOffset.get() - put(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET), optheatingtTempOffset) - } - } else { - putNull(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET)) - } + if (heatingtTempOffset.isPresent) { + val optheatingtTempOffset = heatingtTempOffset.get() + put(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET), optheatingtTempOffset) + } + } else { + putNull(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET)) + } if (coolingTempSetpoint != null) { - if (coolingTempSetpoint.isPresent) { - val optcoolingTempSetpoint = coolingTempSetpoint.get() - put(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT), optcoolingTempSetpoint) - } - } else { - putNull(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT)) - } + if (coolingTempSetpoint.isPresent) { + val optcoolingTempSetpoint = coolingTempSetpoint.get() + put(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT), optcoolingTempSetpoint) + } + } else { + putNull(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT)) + } if (heatingTempSetpoint != null) { - if (heatingTempSetpoint.isPresent) { - val optheatingTempSetpoint = heatingTempSetpoint.get() - put(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT), optheatingTempSetpoint) - } - } else { - putNull(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT)) - } + if (heatingTempSetpoint.isPresent) { + val optheatingTempSetpoint = heatingTempSetpoint.get() + put(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT), optheatingTempSetpoint) + } + } else { + putNull(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT)) + } endStructure() } } @@ -85,52 +83,64 @@ class DemandResponseLoadControlClusterTemperatureControlStruct ( private const val TAG_COOLING_TEMP_SETPOINT = 2 private const val TAG_HEATING_TEMP_SETPOINT = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DemandResponseLoadControlClusterTemperatureControlStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): DemandResponseLoadControlClusterTemperatureControlStruct { tlvReader.enterStructure(tlvTag) - val coolingTempOffset = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET)) - null - } - val heatingtTempOffset = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET)) - null - } - val coolingTempSetpoint = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT))) { - Optional.of(tlvReader.getInt(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT)) - null - } - val heatingTempSetpoint = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT))) { - Optional.of(tlvReader.getInt(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT)) - null - } - + val coolingTempOffset = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET)) + null + } + val heatingtTempOffset = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET)) + null + } + val coolingTempSetpoint = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT))) { + Optional.of(tlvReader.getInt(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT)) + null + } + val heatingTempSetpoint = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT))) { + Optional.of(tlvReader.getInt(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT)) + null + } + tlvReader.exitContainer() - return DemandResponseLoadControlClusterTemperatureControlStruct(coolingTempOffset, heatingtTempOffset, coolingTempSetpoint, heatingTempSetpoint) + return DemandResponseLoadControlClusterTemperatureControlStruct( + coolingTempOffset, + heatingtTempOffset, + coolingTempSetpoint, + heatingTempSetpoint + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DescriptorClusterDeviceTypeStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DescriptorClusterDeviceTypeStruct.kt index c5529da5072ea8..0a867ba2296515 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DescriptorClusterDeviceTypeStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DescriptorClusterDeviceTypeStruct.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DescriptorClusterDeviceTypeStruct ( - val deviceType: ULong, - val revision: UInt) { - override fun toString(): String = buildString { +class DescriptorClusterDeviceTypeStruct(val deviceType: ULong, val revision: UInt) { + override fun toString(): String = buildString { append("DescriptorClusterDeviceTypeStruct {\n") append("\tdeviceType : $deviceType\n") append("\trevision : $revision\n") @@ -49,11 +43,11 @@ class DescriptorClusterDeviceTypeStruct ( private const val TAG_DEVICE_TYPE = 0 private const val TAG_REVISION = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DescriptorClusterDeviceTypeStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DescriptorClusterDeviceTypeStruct { tlvReader.enterStructure(tlvTag) val deviceType = tlvReader.getULong(ContextSpecificTag(TAG_DEVICE_TYPE)) val revision = tlvReader.getUInt(ContextSpecificTag(TAG_REVISION)) - + tlvReader.exitContainer() return DescriptorClusterDeviceTypeStruct(deviceType, revision) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DescriptorClusterSemanticTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DescriptorClusterSemanticTagStruct.kt index 89967a1445d75d..91d33d5c0fe2e5 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DescriptorClusterSemanticTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DescriptorClusterSemanticTagStruct.kt @@ -17,21 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DescriptorClusterSemanticTagStruct ( - val mfgCode: UInt?, - val namespaceID: UInt, - val tag: UInt, - val label: Optional?) { - override fun toString(): String = buildString { +class DescriptorClusterSemanticTagStruct( + val mfgCode: UInt?, + val namespaceID: UInt, + val tag: UInt, + val label: Optional? +) { + override fun toString(): String = buildString { append("DescriptorClusterSemanticTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tnamespaceID : $namespaceID\n") @@ -44,20 +42,20 @@ class DescriptorClusterSemanticTagStruct ( tlvWriter.apply { startStructure(tlvTag) if (mfgCode != null) { - put(ContextSpecificTag(TAG_MFG_CODE), mfgCode) - } else { - putNull(ContextSpecificTag(TAG_MFG_CODE)) - } + put(ContextSpecificTag(TAG_MFG_CODE), mfgCode) + } else { + putNull(ContextSpecificTag(TAG_MFG_CODE)) + } put(ContextSpecificTag(TAG_NAMESPACE_I_D), namespaceID) put(ContextSpecificTag(TAG_TAG), tag) if (label != null) { - if (label.isPresent) { - val optlabel = label.get() - put(ContextSpecificTag(TAG_LABEL), optlabel) - } - } else { - putNull(ContextSpecificTag(TAG_LABEL)) - } + if (label.isPresent) { + val optlabel = label.get() + put(ContextSpecificTag(TAG_LABEL), optlabel) + } + } else { + putNull(ContextSpecificTag(TAG_LABEL)) + } endStructure() } } @@ -68,27 +66,29 @@ class DescriptorClusterSemanticTagStruct ( private const val TAG_TAG = 2 private const val TAG_LABEL = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DescriptorClusterSemanticTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DescriptorClusterSemanticTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_MFG_CODE)) - null - } + val mfgCode = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_MFG_CODE)) + null + } val namespaceID = tlvReader.getUInt(ContextSpecificTag(TAG_NAMESPACE_I_D)) val tag = tlvReader.getUInt(ContextSpecificTag(TAG_TAG)) - val label = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_LABEL))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_LABEL)) - null - } - + val label = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_LABEL))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_LABEL)) + null + } + tlvReader.exitContainer() return DescriptorClusterSemanticTagStruct(mfgCode, namespaceID, tag, label) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DishwasherModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DishwasherModeClusterModeOptionStruct.kt index 04305789265487..0cbbf8fb8c37eb 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DishwasherModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DishwasherModeClusterModeOptionStruct.kt @@ -20,17 +20,15 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DishwasherModeClusterModeOptionStruct ( - val label: String, - val mode: UInt, - val modeTags: List) { - override fun toString(): String = buildString { +class DishwasherModeClusterModeOptionStruct( + val label: String, + val mode: UInt, + val modeTags: List +) { + override fun toString(): String = buildString { append("DishwasherModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -57,18 +55,19 @@ class DishwasherModeClusterModeOptionStruct ( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DishwasherModeClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DishwasherModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUInt(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(DishwasherModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(DishwasherModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return DishwasherModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DishwasherModeClusterModeTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DishwasherModeClusterModeTagStruct.kt index f2615f2ddeb01e..916f58bdab72e6 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DishwasherModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DishwasherModeClusterModeTagStruct.kt @@ -17,19 +17,14 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DishwasherModeClusterModeTagStruct ( - val mfgCode: Optional, - val value: UInt) { - override fun toString(): String = buildString { +class DishwasherModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { + override fun toString(): String = buildString { append("DishwasherModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -40,9 +35,9 @@ class DishwasherModeClusterModeTagStruct ( tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -52,15 +47,16 @@ class DishwasherModeClusterModeTagStruct ( private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DishwasherModeClusterModeTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DishwasherModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return DishwasherModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DoorLockClusterCredentialStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DoorLockClusterCredentialStruct.kt index 108dd2b0efe922..5ee8045b4d17ed 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DoorLockClusterCredentialStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/DoorLockClusterCredentialStruct.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class DoorLockClusterCredentialStruct ( - val credentialType: UInt, - val credentialIndex: UInt) { - override fun toString(): String = buildString { +class DoorLockClusterCredentialStruct(val credentialType: UInt, val credentialIndex: UInt) { + override fun toString(): String = buildString { append("DoorLockClusterCredentialStruct {\n") append("\tcredentialType : $credentialType\n") append("\tcredentialIndex : $credentialIndex\n") @@ -49,11 +43,11 @@ class DoorLockClusterCredentialStruct ( private const val TAG_CREDENTIAL_TYPE = 0 private const val TAG_CREDENTIAL_INDEX = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterCredentialStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterCredentialStruct { tlvReader.enterStructure(tlvTag) val credentialType = tlvReader.getUInt(ContextSpecificTag(TAG_CREDENTIAL_TYPE)) val credentialIndex = tlvReader.getUInt(ContextSpecificTag(TAG_CREDENTIAL_INDEX)) - + tlvReader.exitContainer() return DoorLockClusterCredentialStruct(credentialType, credentialIndex) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/FixedLabelClusterLabelStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/FixedLabelClusterLabelStruct.kt index 3ca4e99e618df8..258f336d66e50b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/FixedLabelClusterLabelStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/FixedLabelClusterLabelStruct.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class FixedLabelClusterLabelStruct ( - val label: String, - val value: String) { - override fun toString(): String = buildString { +class FixedLabelClusterLabelStruct(val label: String, val value: String) { + override fun toString(): String = buildString { append("FixedLabelClusterLabelStruct {\n") append("\tlabel : $label\n") append("\tvalue : $value\n") @@ -49,11 +43,11 @@ class FixedLabelClusterLabelStruct ( private const val TAG_LABEL = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : FixedLabelClusterLabelStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): FixedLabelClusterLabelStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val value = tlvReader.getString(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return FixedLabelClusterLabelStruct(label, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GeneralCommissioningClusterBasicCommissioningInfo.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GeneralCommissioningClusterBasicCommissioningInfo.kt index 6ea28a8fbf75da..eb37145e36f754 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GeneralCommissioningClusterBasicCommissioningInfo.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GeneralCommissioningClusterBasicCommissioningInfo.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GeneralCommissioningClusterBasicCommissioningInfo ( - val failSafeExpiryLengthSeconds: UInt, - val maxCumulativeFailsafeSeconds: UInt) { - override fun toString(): String = buildString { +class GeneralCommissioningClusterBasicCommissioningInfo( + val failSafeExpiryLengthSeconds: UInt, + val maxCumulativeFailsafeSeconds: UInt +) { + override fun toString(): String = buildString { append("GeneralCommissioningClusterBasicCommissioningInfo {\n") append("\tfailSafeExpiryLengthSeconds : $failSafeExpiryLengthSeconds\n") append("\tmaxCumulativeFailsafeSeconds : $maxCumulativeFailsafeSeconds\n") @@ -49,14 +46,22 @@ class GeneralCommissioningClusterBasicCommissioningInfo ( private const val TAG_FAIL_SAFE_EXPIRY_LENGTH_SECONDS = 0 private const val TAG_MAX_CUMULATIVE_FAILSAFE_SECONDS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralCommissioningClusterBasicCommissioningInfo { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): GeneralCommissioningClusterBasicCommissioningInfo { tlvReader.enterStructure(tlvTag) - val failSafeExpiryLengthSeconds = tlvReader.getUInt(ContextSpecificTag(TAG_FAIL_SAFE_EXPIRY_LENGTH_SECONDS)) - val maxCumulativeFailsafeSeconds = tlvReader.getUInt(ContextSpecificTag(TAG_MAX_CUMULATIVE_FAILSAFE_SECONDS)) - + val failSafeExpiryLengthSeconds = + tlvReader.getUInt(ContextSpecificTag(TAG_FAIL_SAFE_EXPIRY_LENGTH_SECONDS)) + val maxCumulativeFailsafeSeconds = + tlvReader.getUInt(ContextSpecificTag(TAG_MAX_CUMULATIVE_FAILSAFE_SECONDS)) + tlvReader.exitContainer() - return GeneralCommissioningClusterBasicCommissioningInfo(failSafeExpiryLengthSeconds, maxCumulativeFailsafeSeconds) + return GeneralCommissioningClusterBasicCommissioningInfo( + failSafeExpiryLengthSeconds, + maxCumulativeFailsafeSeconds + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GeneralDiagnosticsClusterNetworkInterface.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GeneralDiagnosticsClusterNetworkInterface.kt index 7656b672bd9058..3f310757c51e6f 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GeneralDiagnosticsClusterNetworkInterface.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GeneralDiagnosticsClusterNetworkInterface.kt @@ -20,22 +20,20 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GeneralDiagnosticsClusterNetworkInterface ( - val name: String, - val isOperational: Boolean, - val offPremiseServicesReachableIPv4: Boolean?, - val offPremiseServicesReachableIPv6: Boolean?, - val hardwareAddress: ByteArray, - val IPv4Addresses: List, - val IPv6Addresses: List, - val type: UInt) { - override fun toString(): String = buildString { +class GeneralDiagnosticsClusterNetworkInterface( + val name: String, + val isOperational: Boolean, + val offPremiseServicesReachableIPv4: Boolean?, + val offPremiseServicesReachableIPv6: Boolean?, + val hardwareAddress: ByteArray, + val IPv4Addresses: List, + val IPv6Addresses: List, + val type: UInt +) { + override fun toString(): String = buildString { append("GeneralDiagnosticsClusterNetworkInterface {\n") append("\tname : $name\n") append("\tisOperational : $isOperational\n") @@ -54,15 +52,21 @@ class GeneralDiagnosticsClusterNetworkInterface ( put(ContextSpecificTag(TAG_NAME), name) put(ContextSpecificTag(TAG_IS_OPERATIONAL), isOperational) if (offPremiseServicesReachableIPv4 != null) { - put(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4), offPremiseServicesReachableIPv4) - } else { - putNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) - } + put( + ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4), + offPremiseServicesReachableIPv4 + ) + } else { + putNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) + } if (offPremiseServicesReachableIPv6 != null) { - put(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6), offPremiseServicesReachableIPv6) - } else { - putNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) - } + put( + ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6), + offPremiseServicesReachableIPv6 + ) + } else { + putNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) + } put(ContextSpecificTag(TAG_HARDWARE_ADDRESS), hardwareAddress) startArray(ContextSpecificTag(TAG_I_PV4_ADDRESSES)) for (item in IPv4Addresses.iterator()) { @@ -89,42 +93,55 @@ class GeneralDiagnosticsClusterNetworkInterface ( private const val TAG_I_PV6_ADDRESSES = 6 private const val TAG_TYPE = 7 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterNetworkInterface { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GeneralDiagnosticsClusterNetworkInterface { tlvReader.enterStructure(tlvTag) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) val isOperational = tlvReader.getBoolean(ContextSpecificTag(TAG_IS_OPERATIONAL)) - val offPremiseServicesReachableIPv4 = if (!tlvReader.isNull()) { - tlvReader.getBoolean(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) - null - } - val offPremiseServicesReachableIPv6 = if (!tlvReader.isNull()) { - tlvReader.getBoolean(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) - null - } + val offPremiseServicesReachableIPv4 = + if (!tlvReader.isNull()) { + tlvReader.getBoolean(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) + null + } + val offPremiseServicesReachableIPv6 = + if (!tlvReader.isNull()) { + tlvReader.getBoolean(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) + null + } val hardwareAddress = tlvReader.getByteArray(ContextSpecificTag(TAG_HARDWARE_ADDRESS)) - val IPv4Addresses = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_I_PV4_ADDRESSES)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getByteArray(AnonymousTag)) - } - tlvReader.exitContainer() - } - val IPv6Addresses = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_I_PV6_ADDRESSES)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getByteArray(AnonymousTag)) - } - tlvReader.exitContainer() - } + val IPv4Addresses = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_I_PV4_ADDRESSES)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getByteArray(AnonymousTag)) + } + tlvReader.exitContainer() + } + val IPv6Addresses = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_I_PV6_ADDRESSES)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getByteArray(AnonymousTag)) + } + tlvReader.exitContainer() + } val type = tlvReader.getUInt(ContextSpecificTag(TAG_TYPE)) - + tlvReader.exitContainer() - return GeneralDiagnosticsClusterNetworkInterface(name, isOperational, offPremiseServicesReachableIPv4, offPremiseServicesReachableIPv6, hardwareAddress, IPv4Addresses, IPv6Addresses, type) + return GeneralDiagnosticsClusterNetworkInterface( + name, + isOperational, + offPremiseServicesReachableIPv4, + offPremiseServicesReachableIPv6, + hardwareAddress, + IPv4Addresses, + IPv6Addresses, + type + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupInfoMapStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupInfoMapStruct.kt index 72cf67168df8e4..1549a376b4542a 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupInfoMapStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupInfoMapStruct.kt @@ -17,21 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import java.util.Optional import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GroupKeyManagementClusterGroupInfoMapStruct ( - val groupId: UInt, - val endpoints: List, - val groupName: Optional, - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class GroupKeyManagementClusterGroupInfoMapStruct( + val groupId: UInt, + val endpoints: List, + val groupName: Optional, + val fabricIndex: UInt +) { + override fun toString(): String = buildString { append("GroupKeyManagementClusterGroupInfoMapStruct {\n") append("\tgroupId : $groupId\n") append("\tendpoints : $endpoints\n") @@ -50,9 +49,9 @@ class GroupKeyManagementClusterGroupInfoMapStruct ( } endArray() if (groupName.isPresent) { - val optgroupName = groupName.get() - put(ContextSpecificTag(TAG_GROUP_NAME), optgroupName) - } + val optgroupName = groupName.get() + put(ContextSpecificTag(TAG_GROUP_NAME), optgroupName) + } put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) endStructure() } @@ -64,23 +63,25 @@ class GroupKeyManagementClusterGroupInfoMapStruct ( private const val TAG_GROUP_NAME = 3 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GroupKeyManagementClusterGroupInfoMapStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GroupKeyManagementClusterGroupInfoMapStruct { tlvReader.enterStructure(tlvTag) val groupId = tlvReader.getUInt(ContextSpecificTag(TAG_GROUP_ID)) - val endpoints = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ENDPOINTS)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val groupName = if (tlvReader.isNextTag(ContextSpecificTag(TAG_GROUP_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_GROUP_NAME))) - } else { - Optional.empty() - } + val endpoints = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ENDPOINTS)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val groupName = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_GROUP_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_GROUP_NAME))) + } else { + Optional.empty() + } val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return GroupKeyManagementClusterGroupInfoMapStruct(groupId, endpoints, groupName, fabricIndex) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeyMapStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeyMapStruct.kt index 71d7c3ca4cb959..46f4656366bbc8 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeyMapStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeyMapStruct.kt @@ -17,20 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GroupKeyManagementClusterGroupKeyMapStruct ( - val groupId: UInt, - val groupKeySetID: UInt, - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class GroupKeyManagementClusterGroupKeyMapStruct( + val groupId: UInt, + val groupKeySetID: UInt, + val fabricIndex: UInt +) { + override fun toString(): String = buildString { append("GroupKeyManagementClusterGroupKeyMapStruct {\n") append("\tgroupId : $groupId\n") append("\tgroupKeySetID : $groupKeySetID\n") @@ -53,12 +50,12 @@ class GroupKeyManagementClusterGroupKeyMapStruct ( private const val TAG_GROUP_KEY_SET_I_D = 2 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GroupKeyManagementClusterGroupKeyMapStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GroupKeyManagementClusterGroupKeyMapStruct { tlvReader.enterStructure(tlvTag) val groupId = tlvReader.getUInt(ContextSpecificTag(TAG_GROUP_ID)) val groupKeySetID = tlvReader.getUInt(ContextSpecificTag(TAG_GROUP_KEY_SET_I_D)) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return GroupKeyManagementClusterGroupKeyMapStruct(groupId, groupKeySetID, fabricIndex) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeySetStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeySetStruct.kt index 2eee6ef47d3353..4d995ac2974023 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeySetStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeySetStruct.kt @@ -17,25 +17,22 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class GroupKeyManagementClusterGroupKeySetStruct ( - val groupKeySetID: UInt, - val groupKeySecurityPolicy: UInt, - val epochKey0: ByteArray?, - val epochStartTime0: ULong?, - val epochKey1: ByteArray?, - val epochStartTime1: ULong?, - val epochKey2: ByteArray?, - val epochStartTime2: ULong?) { - override fun toString(): String = buildString { +class GroupKeyManagementClusterGroupKeySetStruct( + val groupKeySetID: UInt, + val groupKeySecurityPolicy: UInt, + val epochKey0: ByteArray?, + val epochStartTime0: ULong?, + val epochKey1: ByteArray?, + val epochStartTime1: ULong?, + val epochKey2: ByteArray?, + val epochStartTime2: ULong? +) { + override fun toString(): String = buildString { append("GroupKeyManagementClusterGroupKeySetStruct {\n") append("\tgroupKeySetID : $groupKeySetID\n") append("\tgroupKeySecurityPolicy : $groupKeySecurityPolicy\n") @@ -54,35 +51,35 @@ class GroupKeyManagementClusterGroupKeySetStruct ( put(ContextSpecificTag(TAG_GROUP_KEY_SET_I_D), groupKeySetID) put(ContextSpecificTag(TAG_GROUP_KEY_SECURITY_POLICY), groupKeySecurityPolicy) if (epochKey0 != null) { - put(ContextSpecificTag(TAG_EPOCH_KEY0), epochKey0) - } else { - putNull(ContextSpecificTag(TAG_EPOCH_KEY0)) - } + put(ContextSpecificTag(TAG_EPOCH_KEY0), epochKey0) + } else { + putNull(ContextSpecificTag(TAG_EPOCH_KEY0)) + } if (epochStartTime0 != null) { - put(ContextSpecificTag(TAG_EPOCH_START_TIME0), epochStartTime0) - } else { - putNull(ContextSpecificTag(TAG_EPOCH_START_TIME0)) - } + put(ContextSpecificTag(TAG_EPOCH_START_TIME0), epochStartTime0) + } else { + putNull(ContextSpecificTag(TAG_EPOCH_START_TIME0)) + } if (epochKey1 != null) { - put(ContextSpecificTag(TAG_EPOCH_KEY1), epochKey1) - } else { - putNull(ContextSpecificTag(TAG_EPOCH_KEY1)) - } + put(ContextSpecificTag(TAG_EPOCH_KEY1), epochKey1) + } else { + putNull(ContextSpecificTag(TAG_EPOCH_KEY1)) + } if (epochStartTime1 != null) { - put(ContextSpecificTag(TAG_EPOCH_START_TIME1), epochStartTime1) - } else { - putNull(ContextSpecificTag(TAG_EPOCH_START_TIME1)) - } + put(ContextSpecificTag(TAG_EPOCH_START_TIME1), epochStartTime1) + } else { + putNull(ContextSpecificTag(TAG_EPOCH_START_TIME1)) + } if (epochKey2 != null) { - put(ContextSpecificTag(TAG_EPOCH_KEY2), epochKey2) - } else { - putNull(ContextSpecificTag(TAG_EPOCH_KEY2)) - } + put(ContextSpecificTag(TAG_EPOCH_KEY2), epochKey2) + } else { + putNull(ContextSpecificTag(TAG_EPOCH_KEY2)) + } if (epochStartTime2 != null) { - put(ContextSpecificTag(TAG_EPOCH_START_TIME2), epochStartTime2) - } else { - putNull(ContextSpecificTag(TAG_EPOCH_START_TIME2)) - } + put(ContextSpecificTag(TAG_EPOCH_START_TIME2), epochStartTime2) + } else { + putNull(ContextSpecificTag(TAG_EPOCH_START_TIME2)) + } endStructure() } } @@ -97,50 +94,66 @@ class GroupKeyManagementClusterGroupKeySetStruct ( private const val TAG_EPOCH_KEY2 = 6 private const val TAG_EPOCH_START_TIME2 = 7 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GroupKeyManagementClusterGroupKeySetStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GroupKeyManagementClusterGroupKeySetStruct { tlvReader.enterStructure(tlvTag) val groupKeySetID = tlvReader.getUInt(ContextSpecificTag(TAG_GROUP_KEY_SET_I_D)) - val groupKeySecurityPolicy = tlvReader.getUInt(ContextSpecificTag(TAG_GROUP_KEY_SECURITY_POLICY)) - val epochKey0 = if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY0)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY0)) - null - } - val epochStartTime0 = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME0)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME0)) - null - } - val epochKey1 = if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY1)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY1)) - null - } - val epochStartTime1 = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME1)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME1)) - null - } - val epochKey2 = if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY2)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY2)) - null - } - val epochStartTime2 = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME2)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME2)) - null - } - + val groupKeySecurityPolicy = + tlvReader.getUInt(ContextSpecificTag(TAG_GROUP_KEY_SECURITY_POLICY)) + val epochKey0 = + if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY0)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY0)) + null + } + val epochStartTime0 = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME0)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME0)) + null + } + val epochKey1 = + if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY1)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY1)) + null + } + val epochStartTime1 = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME1)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME1)) + null + } + val epochKey2 = + if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY2)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY2)) + null + } + val epochStartTime2 = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME2)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME2)) + null + } + tlvReader.exitContainer() - return GroupKeyManagementClusterGroupKeySetStruct(groupKeySetID, groupKeySecurityPolicy, epochKey0, epochStartTime0, epochKey1, epochStartTime1, epochKey2, epochStartTime2) + return GroupKeyManagementClusterGroupKeySetStruct( + groupKeySetID, + groupKeySecurityPolicy, + epochKey0, + epochStartTime0, + epochKey1, + epochStartTime1, + epochKey2, + epochStartTime2 + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/HepaFilterMonitoringClusterReplacementProductStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/HepaFilterMonitoringClusterReplacementProductStruct.kt index a5e79f7e076234..b36468116ac1dd 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/HepaFilterMonitoringClusterReplacementProductStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/HepaFilterMonitoringClusterReplacementProductStruct.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class HepaFilterMonitoringClusterReplacementProductStruct ( - val productIdentifierType: UInt, - val productIdentifierValue: String) { - override fun toString(): String = buildString { +class HepaFilterMonitoringClusterReplacementProductStruct( + val productIdentifierType: UInt, + val productIdentifierValue: String +) { + override fun toString(): String = buildString { append("HepaFilterMonitoringClusterReplacementProductStruct {\n") append("\tproductIdentifierType : $productIdentifierType\n") append("\tproductIdentifierValue : $productIdentifierValue\n") @@ -49,14 +46,21 @@ class HepaFilterMonitoringClusterReplacementProductStruct ( private const val TAG_PRODUCT_IDENTIFIER_TYPE = 0 private const val TAG_PRODUCT_IDENTIFIER_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : HepaFilterMonitoringClusterReplacementProductStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): HepaFilterMonitoringClusterReplacementProductStruct { tlvReader.enterStructure(tlvTag) val productIdentifierType = tlvReader.getUInt(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_TYPE)) - val productIdentifierValue = tlvReader.getString(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_VALUE)) - + val productIdentifierValue = + tlvReader.getString(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_VALUE)) + tlvReader.exitContainer() - return HepaFilterMonitoringClusterReplacementProductStruct(productIdentifierType, productIdentifierValue) + return HepaFilterMonitoringClusterReplacementProductStruct( + productIdentifierType, + productIdentifierValue + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/IcdManagementClusterMonitoringRegistrationStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/IcdManagementClusterMonitoringRegistrationStruct.kt index 73b5b688af77c2..87927430232e4e 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/IcdManagementClusterMonitoringRegistrationStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/IcdManagementClusterMonitoringRegistrationStruct.kt @@ -17,20 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class IcdManagementClusterMonitoringRegistrationStruct ( - val checkInNodeID: ULong, - val monitoredSubject: ULong, - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class IcdManagementClusterMonitoringRegistrationStruct( + val checkInNodeID: ULong, + val monitoredSubject: ULong, + val fabricIndex: UInt +) { + override fun toString(): String = buildString { append("IcdManagementClusterMonitoringRegistrationStruct {\n") append("\tcheckInNodeID : $checkInNodeID\n") append("\tmonitoredSubject : $monitoredSubject\n") @@ -53,15 +50,22 @@ class IcdManagementClusterMonitoringRegistrationStruct ( private const val TAG_MONITORED_SUBJECT = 2 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : IcdManagementClusterMonitoringRegistrationStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): IcdManagementClusterMonitoringRegistrationStruct { tlvReader.enterStructure(tlvTag) val checkInNodeID = tlvReader.getULong(ContextSpecificTag(TAG_CHECK_IN_NODE_I_D)) val monitoredSubject = tlvReader.getULong(ContextSpecificTag(TAG_MONITORED_SUBJECT)) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return IcdManagementClusterMonitoringRegistrationStruct(checkInNodeID, monitoredSubject, fabricIndex) + return IcdManagementClusterMonitoringRegistrationStruct( + checkInNodeID, + monitoredSubject, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/LaundryWasherModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/LaundryWasherModeClusterModeOptionStruct.kt index 539ddd1fe657ec..f6ca291e0bb46e 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/LaundryWasherModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/LaundryWasherModeClusterModeOptionStruct.kt @@ -20,17 +20,15 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class LaundryWasherModeClusterModeOptionStruct ( - val label: String, - val mode: UInt, - val modeTags: List) { - override fun toString(): String = buildString { +class LaundryWasherModeClusterModeOptionStruct( + val label: String, + val mode: UInt, + val modeTags: List +) { + override fun toString(): String = buildString { append("LaundryWasherModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -57,18 +55,19 @@ class LaundryWasherModeClusterModeOptionStruct ( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : LaundryWasherModeClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): LaundryWasherModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUInt(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(LaundryWasherModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(LaundryWasherModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return LaundryWasherModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/LaundryWasherModeClusterModeTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/LaundryWasherModeClusterModeTagStruct.kt index f5e971f19259ee..09c2915126efd6 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/LaundryWasherModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/LaundryWasherModeClusterModeTagStruct.kt @@ -17,19 +17,14 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class LaundryWasherModeClusterModeTagStruct ( - val mfgCode: Optional, - val value: UInt) { - override fun toString(): String = buildString { +class LaundryWasherModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { + override fun toString(): String = buildString { append("LaundryWasherModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -40,9 +35,9 @@ class LaundryWasherModeClusterModeTagStruct ( tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -52,15 +47,16 @@ class LaundryWasherModeClusterModeTagStruct ( private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : LaundryWasherModeClusterModeTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): LaundryWasherModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return LaundryWasherModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MediaInputClusterInputInfoStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MediaInputClusterInputInfoStruct.kt index a1e171a4805248..b2b26104143da8 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MediaInputClusterInputInfoStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MediaInputClusterInputInfoStruct.kt @@ -17,21 +17,18 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class MediaInputClusterInputInfoStruct ( - val index: UInt, - val inputType: UInt, - val name: String, - val description: String) { - override fun toString(): String = buildString { +class MediaInputClusterInputInfoStruct( + val index: UInt, + val inputType: UInt, + val name: String, + val description: String +) { + override fun toString(): String = buildString { append("MediaInputClusterInputInfoStruct {\n") append("\tindex : $index\n") append("\tinputType : $inputType\n") @@ -57,13 +54,13 @@ class MediaInputClusterInputInfoStruct ( private const val TAG_NAME = 2 private const val TAG_DESCRIPTION = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : MediaInputClusterInputInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): MediaInputClusterInputInfoStruct { tlvReader.enterStructure(tlvTag) val index = tlvReader.getUInt(ContextSpecificTag(TAG_INDEX)) val inputType = tlvReader.getUInt(ContextSpecificTag(TAG_INPUT_TYPE)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) val description = tlvReader.getString(ContextSpecificTag(TAG_DESCRIPTION)) - + tlvReader.exitContainer() return MediaInputClusterInputInfoStruct(index, inputType, name, description) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MediaPlaybackClusterPlaybackPositionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MediaPlaybackClusterPlaybackPositionStruct.kt index a41c94eb25f23b..c58c381f8d6e14 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MediaPlaybackClusterPlaybackPositionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MediaPlaybackClusterPlaybackPositionStruct.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class MediaPlaybackClusterPlaybackPositionStruct ( - val updatedAt: ULong, - val position: ULong?) { - override fun toString(): String = buildString { +class MediaPlaybackClusterPlaybackPositionStruct(val updatedAt: ULong, val position: ULong?) { + override fun toString(): String = buildString { append("MediaPlaybackClusterPlaybackPositionStruct {\n") append("\tupdatedAt : $updatedAt\n") append("\tposition : $position\n") @@ -41,10 +35,10 @@ class MediaPlaybackClusterPlaybackPositionStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_UPDATED_AT), updatedAt) if (position != null) { - put(ContextSpecificTag(TAG_POSITION), position) - } else { - putNull(ContextSpecificTag(TAG_POSITION)) - } + put(ContextSpecificTag(TAG_POSITION), position) + } else { + putNull(ContextSpecificTag(TAG_POSITION)) + } endStructure() } } @@ -53,16 +47,17 @@ class MediaPlaybackClusterPlaybackPositionStruct ( private const val TAG_UPDATED_AT = 0 private const val TAG_POSITION = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : MediaPlaybackClusterPlaybackPositionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): MediaPlaybackClusterPlaybackPositionStruct { tlvReader.enterStructure(tlvTag) val updatedAt = tlvReader.getULong(ContextSpecificTag(TAG_UPDATED_AT)) - val position = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_POSITION)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_POSITION)) - null - } - + val position = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_POSITION)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_POSITION)) + null + } + tlvReader.exitContainer() return MediaPlaybackClusterPlaybackPositionStruct(updatedAt, position) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeOptionStruct.kt index 504a72e24e3598..69caf35509d049 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeOptionStruct.kt @@ -20,17 +20,15 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class MicrowaveOvenModeClusterModeOptionStruct ( - val label: String, - val mode: UInt, - val modeTags: List) { - override fun toString(): String = buildString { +class MicrowaveOvenModeClusterModeOptionStruct( + val label: String, + val mode: UInt, + val modeTags: List +) { + override fun toString(): String = buildString { append("MicrowaveOvenModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -57,18 +55,19 @@ class MicrowaveOvenModeClusterModeOptionStruct ( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : MicrowaveOvenModeClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): MicrowaveOvenModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUInt(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(MicrowaveOvenModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(MicrowaveOvenModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return MicrowaveOvenModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeTagStruct.kt index 4459562dcadcf3..bf9800a012de5f 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeTagStruct.kt @@ -17,19 +17,14 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class MicrowaveOvenModeClusterModeTagStruct ( - val mfgCode: Optional, - val value: UInt) { - override fun toString(): String = buildString { +class MicrowaveOvenModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { + override fun toString(): String = buildString { append("MicrowaveOvenModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -40,9 +35,9 @@ class MicrowaveOvenModeClusterModeTagStruct ( tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -52,15 +47,16 @@ class MicrowaveOvenModeClusterModeTagStruct ( private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : MicrowaveOvenModeClusterModeTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): MicrowaveOvenModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return MicrowaveOvenModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ModeSelectClusterModeOptionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ModeSelectClusterModeOptionStruct.kt index 6613c8f6988cc6..fb74943fcd20b0 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ModeSelectClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ModeSelectClusterModeOptionStruct.kt @@ -20,17 +20,15 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ModeSelectClusterModeOptionStruct ( - val label: String, - val mode: UInt, - val semanticTags: List) { - override fun toString(): String = buildString { +class ModeSelectClusterModeOptionStruct( + val label: String, + val mode: UInt, + val semanticTags: List +) { + override fun toString(): String = buildString { append("ModeSelectClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -57,18 +55,19 @@ class ModeSelectClusterModeOptionStruct ( private const val TAG_MODE = 1 private const val TAG_SEMANTIC_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ModeSelectClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ModeSelectClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUInt(ContextSpecificTag(TAG_MODE)) - val semanticTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_SEMANTIC_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(ModeSelectClusterSemanticTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val semanticTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_SEMANTIC_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(ModeSelectClusterSemanticTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ModeSelectClusterModeOptionStruct(label, mode, semanticTags) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ModeSelectClusterSemanticTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ModeSelectClusterSemanticTagStruct.kt index 2b501b089a5d8e..ca14c2ebd4d8dc 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ModeSelectClusterSemanticTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ModeSelectClusterSemanticTagStruct.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ModeSelectClusterSemanticTagStruct ( - val mfgCode: UInt, - val value: UInt) { - override fun toString(): String = buildString { +class ModeSelectClusterSemanticTagStruct(val mfgCode: UInt, val value: UInt) { + override fun toString(): String = buildString { append("ModeSelectClusterSemanticTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -49,11 +43,11 @@ class ModeSelectClusterSemanticTagStruct ( private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ModeSelectClusterSemanticTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ModeSelectClusterSemanticTagStruct { tlvReader.enterStructure(tlvTag) val mfgCode = tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE)) val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return ModeSelectClusterSemanticTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterNetworkInfoStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterNetworkInfoStruct.kt index 78e54129ba293a..82f98aeb677204 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterNetworkInfoStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterNetworkInfoStruct.kt @@ -17,21 +17,19 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class NetworkCommissioningClusterNetworkInfoStruct ( - val networkID: ByteArray, - val connected: Boolean, - val networkIdentifier: Optional?, - val clientIdentifier: Optional?) { - override fun toString(): String = buildString { +class NetworkCommissioningClusterNetworkInfoStruct( + val networkID: ByteArray, + val connected: Boolean, + val networkIdentifier: Optional?, + val clientIdentifier: Optional? +) { + override fun toString(): String = buildString { append("NetworkCommissioningClusterNetworkInfoStruct {\n") append("\tnetworkID : $networkID\n") append("\tconnected : $connected\n") @@ -46,21 +44,21 @@ class NetworkCommissioningClusterNetworkInfoStruct ( put(ContextSpecificTag(TAG_NETWORK_I_D), networkID) put(ContextSpecificTag(TAG_CONNECTED), connected) if (networkIdentifier != null) { - if (networkIdentifier.isPresent) { - val optnetworkIdentifier = networkIdentifier.get() - put(ContextSpecificTag(TAG_NETWORK_IDENTIFIER), optnetworkIdentifier) - } - } else { - putNull(ContextSpecificTag(TAG_NETWORK_IDENTIFIER)) - } + if (networkIdentifier.isPresent) { + val optnetworkIdentifier = networkIdentifier.get() + put(ContextSpecificTag(TAG_NETWORK_IDENTIFIER), optnetworkIdentifier) + } + } else { + putNull(ContextSpecificTag(TAG_NETWORK_IDENTIFIER)) + } if (clientIdentifier != null) { - if (clientIdentifier.isPresent) { - val optclientIdentifier = clientIdentifier.get() - put(ContextSpecificTag(TAG_CLIENT_IDENTIFIER), optclientIdentifier) - } - } else { - putNull(ContextSpecificTag(TAG_CLIENT_IDENTIFIER)) - } + if (clientIdentifier.isPresent) { + val optclientIdentifier = clientIdentifier.get() + put(ContextSpecificTag(TAG_CLIENT_IDENTIFIER), optclientIdentifier) + } + } else { + putNull(ContextSpecificTag(TAG_CLIENT_IDENTIFIER)) + } endStructure() } } @@ -71,34 +69,41 @@ class NetworkCommissioningClusterNetworkInfoStruct ( private const val TAG_NETWORK_IDENTIFIER = 2 private const val TAG_CLIENT_IDENTIFIER = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : NetworkCommissioningClusterNetworkInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): NetworkCommissioningClusterNetworkInfoStruct { tlvReader.enterStructure(tlvTag) val networkID = tlvReader.getByteArray(ContextSpecificTag(TAG_NETWORK_I_D)) val connected = tlvReader.getBoolean(ContextSpecificTag(TAG_CONNECTED)) - val networkIdentifier = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NETWORK_IDENTIFIER))) { - Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_NETWORK_IDENTIFIER))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NETWORK_IDENTIFIER)) - null - } - val clientIdentifier = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_CLIENT_IDENTIFIER))) { - Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_CLIENT_IDENTIFIER))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CLIENT_IDENTIFIER)) - null - } - + val networkIdentifier = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NETWORK_IDENTIFIER))) { + Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_NETWORK_IDENTIFIER))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NETWORK_IDENTIFIER)) + null + } + val clientIdentifier = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_CLIENT_IDENTIFIER))) { + Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_CLIENT_IDENTIFIER))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_CLIENT_IDENTIFIER)) + null + } + tlvReader.exitContainer() - return NetworkCommissioningClusterNetworkInfoStruct(networkID, connected, networkIdentifier, clientIdentifier) + return NetworkCommissioningClusterNetworkInfoStruct( + networkID, + connected, + networkIdentifier, + clientIdentifier + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterThreadInterfaceScanResultStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterThreadInterfaceScanResultStruct.kt index 01d987d0125f0f..c72319998ba002 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterThreadInterfaceScanResultStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterThreadInterfaceScanResultStruct.kt @@ -17,25 +17,22 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class NetworkCommissioningClusterThreadInterfaceScanResultStruct ( - val panId: UInt, - val extendedPanId: ULong, - val networkName: String, - val channel: UInt, - val version: UInt, - val extendedAddress: ByteArray, - val rssi: Int, - val lqi: UInt) { - override fun toString(): String = buildString { +class NetworkCommissioningClusterThreadInterfaceScanResultStruct( + val panId: UInt, + val extendedPanId: ULong, + val networkName: String, + val channel: UInt, + val version: UInt, + val extendedAddress: ByteArray, + val rssi: Int, + val lqi: UInt +) { + override fun toString(): String = buildString { append("NetworkCommissioningClusterThreadInterfaceScanResultStruct {\n") append("\tpanId : $panId\n") append("\textendedPanId : $extendedPanId\n") @@ -73,7 +70,10 @@ class NetworkCommissioningClusterThreadInterfaceScanResultStruct ( private const val TAG_RSSI = 6 private const val TAG_LQI = 7 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : NetworkCommissioningClusterThreadInterfaceScanResultStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): NetworkCommissioningClusterThreadInterfaceScanResultStruct { tlvReader.enterStructure(tlvTag) val panId = tlvReader.getUInt(ContextSpecificTag(TAG_PAN_ID)) val extendedPanId = tlvReader.getULong(ContextSpecificTag(TAG_EXTENDED_PAN_ID)) @@ -83,10 +83,19 @@ class NetworkCommissioningClusterThreadInterfaceScanResultStruct ( val extendedAddress = tlvReader.getByteArray(ContextSpecificTag(TAG_EXTENDED_ADDRESS)) val rssi = tlvReader.getInt(ContextSpecificTag(TAG_RSSI)) val lqi = tlvReader.getUInt(ContextSpecificTag(TAG_LQI)) - + tlvReader.exitContainer() - return NetworkCommissioningClusterThreadInterfaceScanResultStruct(panId, extendedPanId, networkName, channel, version, extendedAddress, rssi, lqi) + return NetworkCommissioningClusterThreadInterfaceScanResultStruct( + panId, + extendedPanId, + networkName, + channel, + version, + extendedAddress, + rssi, + lqi + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterWiFiInterfaceScanResultStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterWiFiInterfaceScanResultStruct.kt index 8bdbd11bbc322c..e3e4ef10cbce76 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterWiFiInterfaceScanResultStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/NetworkCommissioningClusterWiFiInterfaceScanResultStruct.kt @@ -17,23 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class NetworkCommissioningClusterWiFiInterfaceScanResultStruct ( - val security: UInt, - val ssid: ByteArray, - val bssid: ByteArray, - val channel: UInt, - val wiFiBand: UInt, - val rssi: Int) { - override fun toString(): String = buildString { +class NetworkCommissioningClusterWiFiInterfaceScanResultStruct( + val security: UInt, + val ssid: ByteArray, + val bssid: ByteArray, + val channel: UInt, + val wiFiBand: UInt, + val rssi: Int +) { + override fun toString(): String = buildString { append("NetworkCommissioningClusterWiFiInterfaceScanResultStruct {\n") append("\tsecurity : $security\n") append("\tssid : $ssid\n") @@ -65,7 +62,10 @@ class NetworkCommissioningClusterWiFiInterfaceScanResultStruct ( private const val TAG_WI_FI_BAND = 4 private const val TAG_RSSI = 5 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : NetworkCommissioningClusterWiFiInterfaceScanResultStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): NetworkCommissioningClusterWiFiInterfaceScanResultStruct { tlvReader.enterStructure(tlvTag) val security = tlvReader.getUInt(ContextSpecificTag(TAG_SECURITY)) val ssid = tlvReader.getByteArray(ContextSpecificTag(TAG_SSID)) @@ -73,10 +73,17 @@ class NetworkCommissioningClusterWiFiInterfaceScanResultStruct ( val channel = tlvReader.getUInt(ContextSpecificTag(TAG_CHANNEL)) val wiFiBand = tlvReader.getUInt(ContextSpecificTag(TAG_WI_FI_BAND)) val rssi = tlvReader.getInt(ContextSpecificTag(TAG_RSSI)) - + tlvReader.exitContainer() - return NetworkCommissioningClusterWiFiInterfaceScanResultStruct(security, ssid, bssid, channel, wiFiBand, rssi) + return NetworkCommissioningClusterWiFiInterfaceScanResultStruct( + security, + ssid, + bssid, + channel, + wiFiBand, + rssi + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalCredentialsClusterFabricDescriptorStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalCredentialsClusterFabricDescriptorStruct.kt index de9d80b7482140..a1e736d1b0407c 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalCredentialsClusterFabricDescriptorStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalCredentialsClusterFabricDescriptorStruct.kt @@ -17,23 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OperationalCredentialsClusterFabricDescriptorStruct ( - val rootPublicKey: ByteArray, - val vendorID: UInt, - val fabricID: ULong, - val nodeID: ULong, - val label: String, - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class OperationalCredentialsClusterFabricDescriptorStruct( + val rootPublicKey: ByteArray, + val vendorID: UInt, + val fabricID: ULong, + val nodeID: ULong, + val label: String, + val fabricIndex: UInt +) { + override fun toString(): String = buildString { append("OperationalCredentialsClusterFabricDescriptorStruct {\n") append("\trootPublicKey : $rootPublicKey\n") append("\tvendorID : $vendorID\n") @@ -65,7 +62,10 @@ class OperationalCredentialsClusterFabricDescriptorStruct ( private const val TAG_LABEL = 5 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalCredentialsClusterFabricDescriptorStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): OperationalCredentialsClusterFabricDescriptorStruct { tlvReader.enterStructure(tlvTag) val rootPublicKey = tlvReader.getByteArray(ContextSpecificTag(TAG_ROOT_PUBLIC_KEY)) val vendorID = tlvReader.getUInt(ContextSpecificTag(TAG_VENDOR_I_D)) @@ -73,10 +73,17 @@ class OperationalCredentialsClusterFabricDescriptorStruct ( val nodeID = tlvReader.getULong(ContextSpecificTag(TAG_NODE_I_D)) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return OperationalCredentialsClusterFabricDescriptorStruct(rootPublicKey, vendorID, fabricID, nodeID, label, fabricIndex) + return OperationalCredentialsClusterFabricDescriptorStruct( + rootPublicKey, + vendorID, + fabricID, + nodeID, + label, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalCredentialsClusterNOCStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalCredentialsClusterNOCStruct.kt index 2013bec14e74b5..a45a68e28cf2f8 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalCredentialsClusterNOCStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalCredentialsClusterNOCStruct.kt @@ -17,20 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OperationalCredentialsClusterNOCStruct ( - val noc: ByteArray, - val icac: ByteArray?, - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class OperationalCredentialsClusterNOCStruct( + val noc: ByteArray, + val icac: ByteArray?, + val fabricIndex: UInt +) { + override fun toString(): String = buildString { append("OperationalCredentialsClusterNOCStruct {\n") append("\tnoc : $noc\n") append("\ticac : $icac\n") @@ -43,10 +40,10 @@ class OperationalCredentialsClusterNOCStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_NOC), noc) if (icac != null) { - put(ContextSpecificTag(TAG_ICAC), icac) - } else { - putNull(ContextSpecificTag(TAG_ICAC)) - } + put(ContextSpecificTag(TAG_ICAC), icac) + } else { + putNull(ContextSpecificTag(TAG_ICAC)) + } put(ContextSpecificTag(TAG_FABRIC_INDEX), fabricIndex) endStructure() } @@ -57,17 +54,18 @@ class OperationalCredentialsClusterNOCStruct ( private const val TAG_ICAC = 2 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalCredentialsClusterNOCStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalCredentialsClusterNOCStruct { tlvReader.enterStructure(tlvTag) val noc = tlvReader.getByteArray(ContextSpecificTag(TAG_NOC)) - val icac = if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_ICAC)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ICAC)) - null - } + val icac = + if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_ICAC)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ICAC)) + null + } val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return OperationalCredentialsClusterNOCStruct(noc, icac, fabricIndex) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalStateClusterErrorStateStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalStateClusterErrorStateStruct.kt index 6078c84c862ae8..c41c0205d88d84 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalStateClusterErrorStateStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalStateClusterErrorStateStruct.kt @@ -17,20 +17,18 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OperationalStateClusterErrorStateStruct ( - val errorStateID: UInt, - val errorStateLabel: Optional, - val errorStateDetails: Optional) { - override fun toString(): String = buildString { +class OperationalStateClusterErrorStateStruct( + val errorStateID: UInt, + val errorStateLabel: Optional, + val errorStateDetails: Optional +) { + override fun toString(): String = buildString { append("OperationalStateClusterErrorStateStruct {\n") append("\terrorStateID : $errorStateID\n") append("\terrorStateLabel : $errorStateLabel\n") @@ -43,13 +41,13 @@ class OperationalStateClusterErrorStateStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_ERROR_STATE_I_D), errorStateID) if (errorStateLabel.isPresent) { - val opterrorStateLabel = errorStateLabel.get() - put(ContextSpecificTag(TAG_ERROR_STATE_LABEL), opterrorStateLabel) - } + val opterrorStateLabel = errorStateLabel.get() + put(ContextSpecificTag(TAG_ERROR_STATE_LABEL), opterrorStateLabel) + } if (errorStateDetails.isPresent) { - val opterrorStateDetails = errorStateDetails.get() - put(ContextSpecificTag(TAG_ERROR_STATE_DETAILS), opterrorStateDetails) - } + val opterrorStateDetails = errorStateDetails.get() + put(ContextSpecificTag(TAG_ERROR_STATE_DETAILS), opterrorStateDetails) + } endStructure() } } @@ -59,23 +57,29 @@ class OperationalStateClusterErrorStateStruct ( private const val TAG_ERROR_STATE_LABEL = 1 private const val TAG_ERROR_STATE_DETAILS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalStateClusterErrorStateStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalStateClusterErrorStateStruct { tlvReader.enterStructure(tlvTag) val errorStateID = tlvReader.getUInt(ContextSpecificTag(TAG_ERROR_STATE_I_D)) - val errorStateLabel = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) - } else { - Optional.empty() - } - val errorStateDetails = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) - } else { - Optional.empty() - } - + val errorStateLabel = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) + } else { + Optional.empty() + } + val errorStateDetails = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return OperationalStateClusterErrorStateStruct(errorStateID, errorStateLabel, errorStateDetails) + return OperationalStateClusterErrorStateStruct( + errorStateID, + errorStateLabel, + errorStateDetails + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalStateClusterOperationalStateStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalStateClusterOperationalStateStruct.kt index e464504d71b4f1..3157b9c4b7dec2 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalStateClusterOperationalStateStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OperationalStateClusterOperationalStateStruct.kt @@ -17,19 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OperationalStateClusterOperationalStateStruct ( - val operationalStateID: UInt, - val operationalStateLabel: Optional) { - override fun toString(): String = buildString { +class OperationalStateClusterOperationalStateStruct( + val operationalStateID: UInt, + val operationalStateLabel: Optional +) { + override fun toString(): String = buildString { append("OperationalStateClusterOperationalStateStruct {\n") append("\toperationalStateID : $operationalStateID\n") append("\toperationalStateLabel : $operationalStateLabel\n") @@ -41,9 +39,9 @@ class OperationalStateClusterOperationalStateStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_OPERATIONAL_STATE_I_D), operationalStateID) if (operationalStateLabel.isPresent) { - val optoperationalStateLabel = operationalStateLabel.get() - put(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL), optoperationalStateLabel) - } + val optoperationalStateLabel = operationalStateLabel.get() + put(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL), optoperationalStateLabel) + } endStructure() } } @@ -52,18 +50,22 @@ class OperationalStateClusterOperationalStateStruct ( private const val TAG_OPERATIONAL_STATE_I_D = 0 private const val TAG_OPERATIONAL_STATE_LABEL = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalStateClusterOperationalStateStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalStateClusterOperationalStateStruct { tlvReader.enterStructure(tlvTag) val operationalStateID = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATIONAL_STATE_I_D)) - val operationalStateLabel = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) - } else { - Optional.empty() - } - + val operationalStateLabel = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return OperationalStateClusterOperationalStateStruct(operationalStateID, operationalStateLabel) + return OperationalStateClusterOperationalStateStruct( + operationalStateID, + operationalStateLabel + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OtaSoftwareUpdateRequestorClusterProviderLocation.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OtaSoftwareUpdateRequestorClusterProviderLocation.kt index 7f80ca90ed8c9f..abb8f952cfce50 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OtaSoftwareUpdateRequestorClusterProviderLocation.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OtaSoftwareUpdateRequestorClusterProviderLocation.kt @@ -17,20 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OtaSoftwareUpdateRequestorClusterProviderLocation ( - val providerNodeID: ULong, - val endpoint: UInt, - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class OtaSoftwareUpdateRequestorClusterProviderLocation( + val providerNodeID: ULong, + val endpoint: UInt, + val fabricIndex: UInt +) { + override fun toString(): String = buildString { append("OtaSoftwareUpdateRequestorClusterProviderLocation {\n") append("\tproviderNodeID : $providerNodeID\n") append("\tendpoint : $endpoint\n") @@ -53,15 +50,22 @@ class OtaSoftwareUpdateRequestorClusterProviderLocation ( private const val TAG_ENDPOINT = 2 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OtaSoftwareUpdateRequestorClusterProviderLocation { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): OtaSoftwareUpdateRequestorClusterProviderLocation { tlvReader.enterStructure(tlvTag) val providerNodeID = tlvReader.getULong(ContextSpecificTag(TAG_PROVIDER_NODE_I_D)) val endpoint = tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT)) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return OtaSoftwareUpdateRequestorClusterProviderLocation(providerNodeID, endpoint, fabricIndex) + return OtaSoftwareUpdateRequestorClusterProviderLocation( + providerNodeID, + endpoint, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OvenModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OvenModeClusterModeOptionStruct.kt index 4698441672eae2..0df558d3935e26 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OvenModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OvenModeClusterModeOptionStruct.kt @@ -20,17 +20,15 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OvenModeClusterModeOptionStruct ( - val label: String, - val mode: UInt, - val modeTags: List) { - override fun toString(): String = buildString { +class OvenModeClusterModeOptionStruct( + val label: String, + val mode: UInt, + val modeTags: List +) { + override fun toString(): String = buildString { append("OvenModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -57,18 +55,19 @@ class OvenModeClusterModeOptionStruct ( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OvenModeClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OvenModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUInt(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(OvenModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(OvenModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return OvenModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OvenModeClusterModeTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OvenModeClusterModeTagStruct.kt index 9c204fa8ecb2ea..df0465b2c3055d 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OvenModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/OvenModeClusterModeTagStruct.kt @@ -17,19 +17,14 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class OvenModeClusterModeTagStruct ( - val mfgCode: Optional, - val value: UInt) { - override fun toString(): String = buildString { +class OvenModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { + override fun toString(): String = buildString { append("OvenModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -40,9 +35,9 @@ class OvenModeClusterModeTagStruct ( tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -52,15 +47,16 @@ class OvenModeClusterModeTagStruct ( private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OvenModeClusterModeTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OvenModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return OvenModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterBatChargeFaultChangeType.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterBatChargeFaultChangeType.kt index c24d47fe4b23ee..1d260017a0b722 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterBatChargeFaultChangeType.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterBatChargeFaultChangeType.kt @@ -20,16 +20,14 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class PowerSourceClusterBatChargeFaultChangeType ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class PowerSourceClusterBatChargeFaultChangeType( + val current: List, + val previous: List +) { + override fun toString(): String = buildString { append("PowerSourceClusterBatChargeFaultChangeType {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +55,25 @@ class PowerSourceClusterBatChargeFaultChangeType ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterBatChargeFaultChangeType { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterBatChargeFaultChangeType { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterBatChargeFaultChangeType(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterBatFaultChangeType.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterBatFaultChangeType.kt index 789a1f0a36c47c..07ed4351bcd3a1 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterBatFaultChangeType.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterBatFaultChangeType.kt @@ -20,16 +20,11 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class PowerSourceClusterBatFaultChangeType ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class PowerSourceClusterBatFaultChangeType(val current: List, val previous: List) { + override fun toString(): String = buildString { append("PowerSourceClusterBatFaultChangeType {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +52,25 @@ class PowerSourceClusterBatFaultChangeType ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterBatFaultChangeType { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterBatFaultChangeType { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterBatFaultChangeType(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterWiredFaultChangeType.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterWiredFaultChangeType.kt index 849c0b2edfc454..f0c80ef26ff5ad 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterWiredFaultChangeType.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/PowerSourceClusterWiredFaultChangeType.kt @@ -20,16 +20,11 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class PowerSourceClusterWiredFaultChangeType ( - val current: List, - val previous: List) { - override fun toString(): String = buildString { +class PowerSourceClusterWiredFaultChangeType(val current: List, val previous: List) { + override fun toString(): String = buildString { append("PowerSourceClusterWiredFaultChangeType {\n") append("\tcurrent : $current\n") append("\tprevious : $previous\n") @@ -57,23 +52,25 @@ class PowerSourceClusterWiredFaultChangeType ( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterWiredFaultChangeType { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterWiredFaultChangeType { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterWiredFaultChangeType(current, previous) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.kt index 74809e3ae5215c..85b1d995d2fd76 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.kt @@ -20,17 +20,15 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct ( - val label: String, - val mode: UInt, - val modeTags: List) { - override fun toString(): String = buildString { +class RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct( + val label: String, + val mode: UInt, + val modeTags: List +) { + override fun toString(): String = buildString { append("RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -57,21 +55,34 @@ class RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct ( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUInt(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add( + RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.fromTlv( + AnonymousTag, + tlvReader + ) + ) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() - return RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct(label, mode, modeTags) + return RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct( + label, + mode, + modeTags + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.kt index 0831587768d6a3..db10b1db8bab30 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.kt @@ -17,19 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct ( - val mfgCode: Optional, - val value: UInt) { - override fun toString(): String = buildString { +class RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct( + val mfgCode: Optional, + val value: UInt +) { + override fun toString(): String = buildString { append("RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -40,9 +38,9 @@ class RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct ( tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -52,15 +50,19 @@ class RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct ( private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcCleanModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcCleanModeClusterModeOptionStruct.kt index d4cf5dd09a6214..31f7b8adb6ac63 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcCleanModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcCleanModeClusterModeOptionStruct.kt @@ -20,17 +20,15 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RvcCleanModeClusterModeOptionStruct ( - val label: String, - val mode: UInt, - val modeTags: List) { - override fun toString(): String = buildString { +class RvcCleanModeClusterModeOptionStruct( + val label: String, + val mode: UInt, + val modeTags: List +) { + override fun toString(): String = buildString { append("RvcCleanModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -57,18 +55,19 @@ class RvcCleanModeClusterModeOptionStruct ( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcCleanModeClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcCleanModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUInt(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(RvcCleanModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(RvcCleanModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return RvcCleanModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcCleanModeClusterModeTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcCleanModeClusterModeTagStruct.kt index 7c293c839acb4f..a06d26774dacc6 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcCleanModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcCleanModeClusterModeTagStruct.kt @@ -17,19 +17,14 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RvcCleanModeClusterModeTagStruct ( - val mfgCode: Optional, - val value: UInt) { - override fun toString(): String = buildString { +class RvcCleanModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { + override fun toString(): String = buildString { append("RvcCleanModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -40,9 +35,9 @@ class RvcCleanModeClusterModeTagStruct ( tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -52,15 +47,16 @@ class RvcCleanModeClusterModeTagStruct ( private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcCleanModeClusterModeTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcCleanModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return RvcCleanModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcOperationalStateClusterErrorStateStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcOperationalStateClusterErrorStateStruct.kt index 15f9250edbe478..0f8daddb5212c3 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcOperationalStateClusterErrorStateStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcOperationalStateClusterErrorStateStruct.kt @@ -17,20 +17,18 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RvcOperationalStateClusterErrorStateStruct ( - val errorStateID: UInt, - val errorStateLabel: Optional, - val errorStateDetails: Optional) { - override fun toString(): String = buildString { +class RvcOperationalStateClusterErrorStateStruct( + val errorStateID: UInt, + val errorStateLabel: Optional, + val errorStateDetails: Optional +) { + override fun toString(): String = buildString { append("RvcOperationalStateClusterErrorStateStruct {\n") append("\terrorStateID : $errorStateID\n") append("\terrorStateLabel : $errorStateLabel\n") @@ -43,13 +41,13 @@ class RvcOperationalStateClusterErrorStateStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_ERROR_STATE_I_D), errorStateID) if (errorStateLabel.isPresent) { - val opterrorStateLabel = errorStateLabel.get() - put(ContextSpecificTag(TAG_ERROR_STATE_LABEL), opterrorStateLabel) - } + val opterrorStateLabel = errorStateLabel.get() + put(ContextSpecificTag(TAG_ERROR_STATE_LABEL), opterrorStateLabel) + } if (errorStateDetails.isPresent) { - val opterrorStateDetails = errorStateDetails.get() - put(ContextSpecificTag(TAG_ERROR_STATE_DETAILS), opterrorStateDetails) - } + val opterrorStateDetails = errorStateDetails.get() + put(ContextSpecificTag(TAG_ERROR_STATE_DETAILS), opterrorStateDetails) + } endStructure() } } @@ -59,23 +57,29 @@ class RvcOperationalStateClusterErrorStateStruct ( private const val TAG_ERROR_STATE_LABEL = 1 private const val TAG_ERROR_STATE_DETAILS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcOperationalStateClusterErrorStateStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcOperationalStateClusterErrorStateStruct { tlvReader.enterStructure(tlvTag) val errorStateID = tlvReader.getUInt(ContextSpecificTag(TAG_ERROR_STATE_I_D)) - val errorStateLabel = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) - } else { - Optional.empty() - } - val errorStateDetails = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) - } else { - Optional.empty() - } - + val errorStateLabel = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) + } else { + Optional.empty() + } + val errorStateDetails = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return RvcOperationalStateClusterErrorStateStruct(errorStateID, errorStateLabel, errorStateDetails) + return RvcOperationalStateClusterErrorStateStruct( + errorStateID, + errorStateLabel, + errorStateDetails + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcOperationalStateClusterOperationalStateStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcOperationalStateClusterOperationalStateStruct.kt index 930daff7a6d833..cc01c472f7f71b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcOperationalStateClusterOperationalStateStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcOperationalStateClusterOperationalStateStruct.kt @@ -17,19 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RvcOperationalStateClusterOperationalStateStruct ( - val operationalStateID: UInt, - val operationalStateLabel: Optional) { - override fun toString(): String = buildString { +class RvcOperationalStateClusterOperationalStateStruct( + val operationalStateID: UInt, + val operationalStateLabel: Optional +) { + override fun toString(): String = buildString { append("RvcOperationalStateClusterOperationalStateStruct {\n") append("\toperationalStateID : $operationalStateID\n") append("\toperationalStateLabel : $operationalStateLabel\n") @@ -41,9 +39,9 @@ class RvcOperationalStateClusterOperationalStateStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_OPERATIONAL_STATE_I_D), operationalStateID) if (operationalStateLabel.isPresent) { - val optoperationalStateLabel = operationalStateLabel.get() - put(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL), optoperationalStateLabel) - } + val optoperationalStateLabel = operationalStateLabel.get() + put(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL), optoperationalStateLabel) + } endStructure() } } @@ -52,18 +50,25 @@ class RvcOperationalStateClusterOperationalStateStruct ( private const val TAG_OPERATIONAL_STATE_I_D = 0 private const val TAG_OPERATIONAL_STATE_LABEL = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcOperationalStateClusterOperationalStateStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): RvcOperationalStateClusterOperationalStateStruct { tlvReader.enterStructure(tlvTag) val operationalStateID = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATIONAL_STATE_I_D)) - val operationalStateLabel = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) - } else { - Optional.empty() - } - + val operationalStateLabel = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return RvcOperationalStateClusterOperationalStateStruct(operationalStateID, operationalStateLabel) + return RvcOperationalStateClusterOperationalStateStruct( + operationalStateID, + operationalStateLabel + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcRunModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcRunModeClusterModeOptionStruct.kt index 519546666e3b33..c20f7b3f626474 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcRunModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcRunModeClusterModeOptionStruct.kt @@ -20,17 +20,15 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RvcRunModeClusterModeOptionStruct ( - val label: String, - val mode: UInt, - val modeTags: List) { - override fun toString(): String = buildString { +class RvcRunModeClusterModeOptionStruct( + val label: String, + val mode: UInt, + val modeTags: List +) { + override fun toString(): String = buildString { append("RvcRunModeClusterModeOptionStruct {\n") append("\tlabel : $label\n") append("\tmode : $mode\n") @@ -57,18 +55,19 @@ class RvcRunModeClusterModeOptionStruct ( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcRunModeClusterModeOptionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcRunModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUInt(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(RvcRunModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(RvcRunModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return RvcRunModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcRunModeClusterModeTagStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcRunModeClusterModeTagStruct.kt index c6183c3e89c585..4c32d28ee6ad67 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcRunModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/RvcRunModeClusterModeTagStruct.kt @@ -17,19 +17,14 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class RvcRunModeClusterModeTagStruct ( - val mfgCode: Optional, - val value: UInt) { - override fun toString(): String = buildString { +class RvcRunModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { + override fun toString(): String = buildString { append("RvcRunModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") append("\tvalue : $value\n") @@ -40,9 +35,9 @@ class RvcRunModeClusterModeTagStruct ( tlvWriter.apply { startStructure(tlvTag) if (mfgCode.isPresent) { - val optmfgCode = mfgCode.get() - put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) - } + val optmfgCode = mfgCode.get() + put(ContextSpecificTag(TAG_MFG_CODE), optmfgCode) + } put(ContextSpecificTag(TAG_VALUE), value) endStructure() } @@ -52,15 +47,16 @@ class RvcRunModeClusterModeTagStruct ( private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcRunModeClusterModeTagStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcRunModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return RvcRunModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterAttributeValuePair.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterAttributeValuePair.kt index 61bf2d3c5b9321..f26ab20211dd8d 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterAttributeValuePair.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterAttributeValuePair.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ScenesClusterAttributeValuePair ( - val attributeID: ULong, - val attributeValue: ULong) { - override fun toString(): String = buildString { +class ScenesClusterAttributeValuePair(val attributeID: ULong, val attributeValue: ULong) { + override fun toString(): String = buildString { append("ScenesClusterAttributeValuePair {\n") append("\tattributeID : $attributeID\n") append("\tattributeValue : $attributeValue\n") @@ -49,11 +43,11 @@ class ScenesClusterAttributeValuePair ( private const val TAG_ATTRIBUTE_I_D = 0 private const val TAG_ATTRIBUTE_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ScenesClusterAttributeValuePair { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ScenesClusterAttributeValuePair { tlvReader.enterStructure(tlvTag) val attributeID = tlvReader.getULong(ContextSpecificTag(TAG_ATTRIBUTE_I_D)) val attributeValue = tlvReader.getULong(ContextSpecificTag(TAG_ATTRIBUTE_VALUE)) - + tlvReader.exitContainer() return ScenesClusterAttributeValuePair(attributeID, attributeValue) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterExtensionFieldSet.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterExtensionFieldSet.kt index d6b615b148c3dd..7999a24e2d78de 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterExtensionFieldSet.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterExtensionFieldSet.kt @@ -20,16 +20,14 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ScenesClusterExtensionFieldSet ( - val clusterID: ULong, - val attributeValueList: List) { - override fun toString(): String = buildString { +class ScenesClusterExtensionFieldSet( + val clusterID: ULong, + val attributeValueList: List +) { + override fun toString(): String = buildString { append("ScenesClusterExtensionFieldSet {\n") append("\tclusterID : $clusterID\n") append("\tattributeValueList : $attributeValueList\n") @@ -53,17 +51,18 @@ class ScenesClusterExtensionFieldSet ( private const val TAG_CLUSTER_I_D = 0 private const val TAG_ATTRIBUTE_VALUE_LIST = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ScenesClusterExtensionFieldSet { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ScenesClusterExtensionFieldSet { tlvReader.enterStructure(tlvTag) val clusterID = tlvReader.getULong(ContextSpecificTag(TAG_CLUSTER_I_D)) - val attributeValueList = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ATTRIBUTE_VALUE_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(ScenesClusterAttributeValuePair.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val attributeValueList = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ATTRIBUTE_VALUE_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(ScenesClusterAttributeValuePair.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ScenesClusterExtensionFieldSet(clusterID, attributeValueList) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterSceneInfoStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterSceneInfoStruct.kt index 0c287d11ac2f19..066ade4d02a12f 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterSceneInfoStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ScenesClusterSceneInfoStruct.kt @@ -17,23 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ScenesClusterSceneInfoStruct ( - val sceneCount: UInt, - val currentScene: UInt, - val currentGroup: UInt, - val sceneValid: Boolean, - val remainingCapacity: UInt, - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class ScenesClusterSceneInfoStruct( + val sceneCount: UInt, + val currentScene: UInt, + val currentGroup: UInt, + val sceneValid: Boolean, + val remainingCapacity: UInt, + val fabricIndex: UInt +) { + override fun toString(): String = buildString { append("ScenesClusterSceneInfoStruct {\n") append("\tsceneCount : $sceneCount\n") append("\tcurrentScene : $currentScene\n") @@ -65,7 +62,7 @@ class ScenesClusterSceneInfoStruct ( private const val TAG_REMAINING_CAPACITY = 4 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ScenesClusterSceneInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ScenesClusterSceneInfoStruct { tlvReader.enterStructure(tlvTag) val sceneCount = tlvReader.getUInt(ContextSpecificTag(TAG_SCENE_COUNT)) val currentScene = tlvReader.getUInt(ContextSpecificTag(TAG_CURRENT_SCENE)) @@ -73,10 +70,17 @@ class ScenesClusterSceneInfoStruct ( val sceneValid = tlvReader.getBoolean(ContextSpecificTag(TAG_SCENE_VALID)) val remainingCapacity = tlvReader.getUInt(ContextSpecificTag(TAG_REMAINING_CAPACITY)) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return ScenesClusterSceneInfoStruct(sceneCount, currentScene, currentGroup, sceneValid, remainingCapacity, fabricIndex) + return ScenesClusterSceneInfoStruct( + sceneCount, + currentScene, + currentGroup, + sceneValid, + remainingCapacity, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt index 3ef4fc6b3bbfa6..f606a46f9fd057 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt @@ -17,22 +17,20 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class SoftwareDiagnosticsClusterThreadMetricsStruct ( - val id: ULong, - val name: Optional, - val stackFreeCurrent: Optional, - val stackFreeMinimum: Optional, - val stackSize: Optional) { - override fun toString(): String = buildString { +class SoftwareDiagnosticsClusterThreadMetricsStruct( + val id: ULong, + val name: Optional, + val stackFreeCurrent: Optional, + val stackFreeMinimum: Optional, + val stackSize: Optional +) { + override fun toString(): String = buildString { append("SoftwareDiagnosticsClusterThreadMetricsStruct {\n") append("\tid : $id\n") append("\tname : $name\n") @@ -47,21 +45,21 @@ class SoftwareDiagnosticsClusterThreadMetricsStruct ( startStructure(tlvTag) put(ContextSpecificTag(TAG_ID), id) if (name.isPresent) { - val optname = name.get() - put(ContextSpecificTag(TAG_NAME), optname) - } + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } if (stackFreeCurrent.isPresent) { - val optstackFreeCurrent = stackFreeCurrent.get() - put(ContextSpecificTag(TAG_STACK_FREE_CURRENT), optstackFreeCurrent) - } + val optstackFreeCurrent = stackFreeCurrent.get() + put(ContextSpecificTag(TAG_STACK_FREE_CURRENT), optstackFreeCurrent) + } if (stackFreeMinimum.isPresent) { - val optstackFreeMinimum = stackFreeMinimum.get() - put(ContextSpecificTag(TAG_STACK_FREE_MINIMUM), optstackFreeMinimum) - } + val optstackFreeMinimum = stackFreeMinimum.get() + put(ContextSpecificTag(TAG_STACK_FREE_MINIMUM), optstackFreeMinimum) + } if (stackSize.isPresent) { - val optstackSize = stackSize.get() - put(ContextSpecificTag(TAG_STACK_SIZE), optstackSize) - } + val optstackSize = stackSize.get() + put(ContextSpecificTag(TAG_STACK_SIZE), optstackSize) + } endStructure() } } @@ -73,33 +71,43 @@ class SoftwareDiagnosticsClusterThreadMetricsStruct ( private const val TAG_STACK_FREE_MINIMUM = 3 private const val TAG_STACK_SIZE = 4 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SoftwareDiagnosticsClusterThreadMetricsStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SoftwareDiagnosticsClusterThreadMetricsStruct { tlvReader.enterStructure(tlvTag) val id = tlvReader.getULong(ContextSpecificTag(TAG_ID)) - val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - val stackFreeCurrent = if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_FREE_CURRENT))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_STACK_FREE_CURRENT))) - } else { - Optional.empty() - } - val stackFreeMinimum = if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_FREE_MINIMUM))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_STACK_FREE_MINIMUM))) - } else { - Optional.empty() - } - val stackSize = if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_SIZE))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_STACK_SIZE))) - } else { - Optional.empty() - } - + val name = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + val stackFreeCurrent = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_FREE_CURRENT))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_STACK_FREE_CURRENT))) + } else { + Optional.empty() + } + val stackFreeMinimum = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_FREE_MINIMUM))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_STACK_FREE_MINIMUM))) + } else { + Optional.empty() + } + val stackSize = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_SIZE))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_STACK_SIZE))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return SoftwareDiagnosticsClusterThreadMetricsStruct(id, name, stackFreeCurrent, stackFreeMinimum, stackSize) + return SoftwareDiagnosticsClusterThreadMetricsStruct( + id, + name, + stackFreeCurrent, + stackFreeMinimum, + stackSize + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt index 49ebd8e74713c8..8d667ba0f94cfa 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class TargetNavigatorClusterTargetInfoStruct ( - val identifier: UInt, - val name: String) { - override fun toString(): String = buildString { +class TargetNavigatorClusterTargetInfoStruct(val identifier: UInt, val name: String) { + override fun toString(): String = buildString { append("TargetNavigatorClusterTargetInfoStruct {\n") append("\tidentifier : $identifier\n") append("\tname : $name\n") @@ -49,11 +43,11 @@ class TargetNavigatorClusterTargetInfoStruct ( private const val TAG_IDENTIFIER = 0 private const val TAG_NAME = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TargetNavigatorClusterTargetInfoStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TargetNavigatorClusterTargetInfoStruct { tlvReader.enterStructure(tlvTag) val identifier = tlvReader.getUInt(ContextSpecificTag(TAG_IDENTIFIER)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) - + tlvReader.exitContainer() return TargetNavigatorClusterTargetInfoStruct(identifier, name) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterPresetStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterPresetStruct.kt index 5b426e8234fc4d..cb91c04d920b9c 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterPresetStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterPresetStruct.kt @@ -17,23 +17,21 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThermostatClusterPresetStruct ( - val presetHandle: ByteArray?, - val presetScenario: UInt, - val name: Optional?, - val coolingSetpoint: Optional, - val heatingSetpoint: Optional, - val builtIn: Boolean?) { - override fun toString(): String = buildString { +class ThermostatClusterPresetStruct( + val presetHandle: ByteArray?, + val presetScenario: UInt, + val name: Optional?, + val coolingSetpoint: Optional, + val heatingSetpoint: Optional, + val builtIn: Boolean? +) { + override fun toString(): String = buildString { append("ThermostatClusterPresetStruct {\n") append("\tpresetHandle : $presetHandle\n") append("\tpresetScenario : $presetScenario\n") @@ -48,32 +46,32 @@ class ThermostatClusterPresetStruct ( tlvWriter.apply { startStructure(tlvTag) if (presetHandle != null) { - put(ContextSpecificTag(TAG_PRESET_HANDLE), presetHandle) - } else { - putNull(ContextSpecificTag(TAG_PRESET_HANDLE)) - } + put(ContextSpecificTag(TAG_PRESET_HANDLE), presetHandle) + } else { + putNull(ContextSpecificTag(TAG_PRESET_HANDLE)) + } put(ContextSpecificTag(TAG_PRESET_SCENARIO), presetScenario) if (name != null) { - if (name.isPresent) { - val optname = name.get() - put(ContextSpecificTag(TAG_NAME), optname) - } - } else { - putNull(ContextSpecificTag(TAG_NAME)) - } + if (name.isPresent) { + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } + } else { + putNull(ContextSpecificTag(TAG_NAME)) + } if (coolingSetpoint.isPresent) { - val optcoolingSetpoint = coolingSetpoint.get() - put(ContextSpecificTag(TAG_COOLING_SETPOINT), optcoolingSetpoint) - } + val optcoolingSetpoint = coolingSetpoint.get() + put(ContextSpecificTag(TAG_COOLING_SETPOINT), optcoolingSetpoint) + } if (heatingSetpoint.isPresent) { - val optheatingSetpoint = heatingSetpoint.get() - put(ContextSpecificTag(TAG_HEATING_SETPOINT), optheatingSetpoint) - } + val optheatingSetpoint = heatingSetpoint.get() + put(ContextSpecificTag(TAG_HEATING_SETPOINT), optheatingSetpoint) + } if (builtIn != null) { - put(ContextSpecificTag(TAG_BUILT_IN), builtIn) - } else { - putNull(ContextSpecificTag(TAG_BUILT_IN)) - } + put(ContextSpecificTag(TAG_BUILT_IN), builtIn) + } else { + putNull(ContextSpecificTag(TAG_BUILT_IN)) + } endStructure() } } @@ -86,45 +84,57 @@ class ThermostatClusterPresetStruct ( private const val TAG_HEATING_SETPOINT = 4 private const val TAG_BUILT_IN = 5 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThermostatClusterPresetStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThermostatClusterPresetStruct { tlvReader.enterStructure(tlvTag) - val presetHandle = if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_PRESET_HANDLE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PRESET_HANDLE)) - null - } + val presetHandle = + if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_PRESET_HANDLE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PRESET_HANDLE)) + null + } val presetScenario = tlvReader.getUInt(ContextSpecificTag(TAG_PRESET_SCENARIO)) - val name = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NAME)) - null - } - val coolingSetpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_SETPOINT))) { - Optional.of(tlvReader.getInt(ContextSpecificTag(TAG_COOLING_SETPOINT))) - } else { - Optional.empty() - } - val heatingSetpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SETPOINT))) { - Optional.of(tlvReader.getInt(ContextSpecificTag(TAG_HEATING_SETPOINT))) - } else { - Optional.empty() - } - val builtIn = if (!tlvReader.isNull()) { - tlvReader.getBoolean(ContextSpecificTag(TAG_BUILT_IN)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_BUILT_IN)) - null - } - + val name = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NAME)) + null + } + val coolingSetpoint = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_SETPOINT))) { + Optional.of(tlvReader.getInt(ContextSpecificTag(TAG_COOLING_SETPOINT))) + } else { + Optional.empty() + } + val heatingSetpoint = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SETPOINT))) { + Optional.of(tlvReader.getInt(ContextSpecificTag(TAG_HEATING_SETPOINT))) + } else { + Optional.empty() + } + val builtIn = + if (!tlvReader.isNull()) { + tlvReader.getBoolean(ContextSpecificTag(TAG_BUILT_IN)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_BUILT_IN)) + null + } + tlvReader.exitContainer() - return ThermostatClusterPresetStruct(presetHandle, presetScenario, name, coolingSetpoint, heatingSetpoint, builtIn) + return ThermostatClusterPresetStruct( + presetHandle, + presetScenario, + name, + coolingSetpoint, + heatingSetpoint, + builtIn + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterPresetTypeStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterPresetTypeStruct.kt index 26a9bab02f91e6..386af8f682e665 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterPresetTypeStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterPresetTypeStruct.kt @@ -17,20 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThermostatClusterPresetTypeStruct ( - val presetScenario: UInt, - val numberOfPresets: UInt, - val presetTypeFeatures: UInt) { - override fun toString(): String = buildString { +class ThermostatClusterPresetTypeStruct( + val presetScenario: UInt, + val numberOfPresets: UInt, + val presetTypeFeatures: UInt +) { + override fun toString(): String = buildString { append("ThermostatClusterPresetTypeStruct {\n") append("\tpresetScenario : $presetScenario\n") append("\tnumberOfPresets : $numberOfPresets\n") @@ -53,12 +50,12 @@ class ThermostatClusterPresetTypeStruct ( private const val TAG_NUMBER_OF_PRESETS = 1 private const val TAG_PRESET_TYPE_FEATURES = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThermostatClusterPresetTypeStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThermostatClusterPresetTypeStruct { tlvReader.enterStructure(tlvTag) val presetScenario = tlvReader.getUInt(ContextSpecificTag(TAG_PRESET_SCENARIO)) val numberOfPresets = tlvReader.getUInt(ContextSpecificTag(TAG_NUMBER_OF_PRESETS)) val presetTypeFeatures = tlvReader.getUInt(ContextSpecificTag(TAG_PRESET_TYPE_FEATURES)) - + tlvReader.exitContainer() return ThermostatClusterPresetTypeStruct(presetScenario, numberOfPresets, presetTypeFeatures) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterQueuedPresetStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterQueuedPresetStruct.kt index 92e30614970dd2..4ecaecf98901dc 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterQueuedPresetStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterQueuedPresetStruct.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThermostatClusterQueuedPresetStruct ( - val presetHandle: ByteArray?, - val transitionTimestamp: ULong?) { - override fun toString(): String = buildString { +class ThermostatClusterQueuedPresetStruct( + val presetHandle: ByteArray?, + val transitionTimestamp: ULong? +) { + override fun toString(): String = buildString { append("ThermostatClusterQueuedPresetStruct {\n") append("\tpresetHandle : $presetHandle\n") append("\ttransitionTimestamp : $transitionTimestamp\n") @@ -40,15 +37,15 @@ class ThermostatClusterQueuedPresetStruct ( tlvWriter.apply { startStructure(tlvTag) if (presetHandle != null) { - put(ContextSpecificTag(TAG_PRESET_HANDLE), presetHandle) - } else { - putNull(ContextSpecificTag(TAG_PRESET_HANDLE)) - } + put(ContextSpecificTag(TAG_PRESET_HANDLE), presetHandle) + } else { + putNull(ContextSpecificTag(TAG_PRESET_HANDLE)) + } if (transitionTimestamp != null) { - put(ContextSpecificTag(TAG_TRANSITION_TIMESTAMP), transitionTimestamp) - } else { - putNull(ContextSpecificTag(TAG_TRANSITION_TIMESTAMP)) - } + put(ContextSpecificTag(TAG_TRANSITION_TIMESTAMP), transitionTimestamp) + } else { + putNull(ContextSpecificTag(TAG_TRANSITION_TIMESTAMP)) + } endStructure() } } @@ -57,21 +54,23 @@ class ThermostatClusterQueuedPresetStruct ( private const val TAG_PRESET_HANDLE = 0 private const val TAG_TRANSITION_TIMESTAMP = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThermostatClusterQueuedPresetStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThermostatClusterQueuedPresetStruct { tlvReader.enterStructure(tlvTag) - val presetHandle = if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_PRESET_HANDLE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PRESET_HANDLE)) - null - } - val transitionTimestamp = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_TRANSITION_TIMESTAMP)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TRANSITION_TIMESTAMP)) - null - } - + val presetHandle = + if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_PRESET_HANDLE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PRESET_HANDLE)) + null + } + val transitionTimestamp = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_TRANSITION_TIMESTAMP)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TRANSITION_TIMESTAMP)) + null + } + tlvReader.exitContainer() return ThermostatClusterQueuedPresetStruct(presetHandle, transitionTimestamp) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleStruct.kt index f07278bc4b607a..ac1ffbde1caca9 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleStruct.kt @@ -17,23 +17,22 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import java.util.Optional import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThermostatClusterScheduleStruct ( - val scheduleHandle: ByteArray?, - val systemMode: UInt, - val name: Optional, - val presetHandle: Optional, - val transitions: List, - val builtIn: Optional?) { - override fun toString(): String = buildString { +class ThermostatClusterScheduleStruct( + val scheduleHandle: ByteArray?, + val systemMode: UInt, + val name: Optional, + val presetHandle: Optional, + val transitions: List, + val builtIn: Optional? +) { + override fun toString(): String = buildString { append("ThermostatClusterScheduleStruct {\n") append("\tscheduleHandle : $scheduleHandle\n") append("\tsystemMode : $systemMode\n") @@ -48,32 +47,32 @@ class ThermostatClusterScheduleStruct ( tlvWriter.apply { startStructure(tlvTag) if (scheduleHandle != null) { - put(ContextSpecificTag(TAG_SCHEDULE_HANDLE), scheduleHandle) - } else { - putNull(ContextSpecificTag(TAG_SCHEDULE_HANDLE)) - } + put(ContextSpecificTag(TAG_SCHEDULE_HANDLE), scheduleHandle) + } else { + putNull(ContextSpecificTag(TAG_SCHEDULE_HANDLE)) + } put(ContextSpecificTag(TAG_SYSTEM_MODE), systemMode) if (name.isPresent) { - val optname = name.get() - put(ContextSpecificTag(TAG_NAME), optname) - } + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } if (presetHandle.isPresent) { - val optpresetHandle = presetHandle.get() - put(ContextSpecificTag(TAG_PRESET_HANDLE), optpresetHandle) - } + val optpresetHandle = presetHandle.get() + put(ContextSpecificTag(TAG_PRESET_HANDLE), optpresetHandle) + } startArray(ContextSpecificTag(TAG_TRANSITIONS)) for (item in transitions.iterator()) { item.toTlv(AnonymousTag, this) } endArray() if (builtIn != null) { - if (builtIn.isPresent) { - val optbuiltIn = builtIn.get() - put(ContextSpecificTag(TAG_BUILT_IN), optbuiltIn) - } - } else { - putNull(ContextSpecificTag(TAG_BUILT_IN)) - } + if (builtIn.isPresent) { + val optbuiltIn = builtIn.get() + put(ContextSpecificTag(TAG_BUILT_IN), optbuiltIn) + } + } else { + putNull(ContextSpecificTag(TAG_BUILT_IN)) + } endStructure() } } @@ -86,46 +85,58 @@ class ThermostatClusterScheduleStruct ( private const val TAG_TRANSITIONS = 4 private const val TAG_BUILT_IN = 5 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThermostatClusterScheduleStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThermostatClusterScheduleStruct { tlvReader.enterStructure(tlvTag) - val scheduleHandle = if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_SCHEDULE_HANDLE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SCHEDULE_HANDLE)) - null - } + val scheduleHandle = + if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_SCHEDULE_HANDLE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SCHEDULE_HANDLE)) + null + } val systemMode = tlvReader.getUInt(ContextSpecificTag(TAG_SYSTEM_MODE)) - val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - val presetHandle = if (tlvReader.isNextTag(ContextSpecificTag(TAG_PRESET_HANDLE))) { - Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_PRESET_HANDLE))) - } else { - Optional.empty() - } - val transitions = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_TRANSITIONS)) - while(!tlvReader.isEndOfContainer()) { - add(ThermostatClusterScheduleTransitionStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - val builtIn = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_BUILT_IN))) { - Optional.of(tlvReader.getBoolean(ContextSpecificTag(TAG_BUILT_IN))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_BUILT_IN)) - null - } - + val name = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + val presetHandle = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_PRESET_HANDLE))) { + Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_PRESET_HANDLE))) + } else { + Optional.empty() + } + val transitions = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_TRANSITIONS)) + while (!tlvReader.isEndOfContainer()) { + add(ThermostatClusterScheduleTransitionStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + val builtIn = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_BUILT_IN))) { + Optional.of(tlvReader.getBoolean(ContextSpecificTag(TAG_BUILT_IN))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_BUILT_IN)) + null + } + tlvReader.exitContainer() - return ThermostatClusterScheduleStruct(scheduleHandle, systemMode, name, presetHandle, transitions, builtIn) + return ThermostatClusterScheduleStruct( + scheduleHandle, + systemMode, + name, + presetHandle, + transitions, + builtIn + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleTransitionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleTransitionStruct.kt index e429994e90d20a..aabb3b6418da7b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleTransitionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleTransitionStruct.kt @@ -17,23 +17,21 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThermostatClusterScheduleTransitionStruct ( - val dayOfWeek: UInt, - val transitionTime: UInt, - val presetHandle: Optional, - val systemMode: Optional, - val coolingSetpoint: Optional, - val heatingSetpoint: Optional) { - override fun toString(): String = buildString { +class ThermostatClusterScheduleTransitionStruct( + val dayOfWeek: UInt, + val transitionTime: UInt, + val presetHandle: Optional, + val systemMode: Optional, + val coolingSetpoint: Optional, + val heatingSetpoint: Optional +) { + override fun toString(): String = buildString { append("ThermostatClusterScheduleTransitionStruct {\n") append("\tdayOfWeek : $dayOfWeek\n") append("\ttransitionTime : $transitionTime\n") @@ -50,21 +48,21 @@ class ThermostatClusterScheduleTransitionStruct ( put(ContextSpecificTag(TAG_DAY_OF_WEEK), dayOfWeek) put(ContextSpecificTag(TAG_TRANSITION_TIME), transitionTime) if (presetHandle.isPresent) { - val optpresetHandle = presetHandle.get() - put(ContextSpecificTag(TAG_PRESET_HANDLE), optpresetHandle) - } + val optpresetHandle = presetHandle.get() + put(ContextSpecificTag(TAG_PRESET_HANDLE), optpresetHandle) + } if (systemMode.isPresent) { - val optsystemMode = systemMode.get() - put(ContextSpecificTag(TAG_SYSTEM_MODE), optsystemMode) - } + val optsystemMode = systemMode.get() + put(ContextSpecificTag(TAG_SYSTEM_MODE), optsystemMode) + } if (coolingSetpoint.isPresent) { - val optcoolingSetpoint = coolingSetpoint.get() - put(ContextSpecificTag(TAG_COOLING_SETPOINT), optcoolingSetpoint) - } + val optcoolingSetpoint = coolingSetpoint.get() + put(ContextSpecificTag(TAG_COOLING_SETPOINT), optcoolingSetpoint) + } if (heatingSetpoint.isPresent) { - val optheatingSetpoint = heatingSetpoint.get() - put(ContextSpecificTag(TAG_HEATING_SETPOINT), optheatingSetpoint) - } + val optheatingSetpoint = heatingSetpoint.get() + put(ContextSpecificTag(TAG_HEATING_SETPOINT), optheatingSetpoint) + } endStructure() } } @@ -77,34 +75,45 @@ class ThermostatClusterScheduleTransitionStruct ( private const val TAG_COOLING_SETPOINT = 4 private const val TAG_HEATING_SETPOINT = 5 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThermostatClusterScheduleTransitionStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThermostatClusterScheduleTransitionStruct { tlvReader.enterStructure(tlvTag) val dayOfWeek = tlvReader.getUInt(ContextSpecificTag(TAG_DAY_OF_WEEK)) val transitionTime = tlvReader.getUInt(ContextSpecificTag(TAG_TRANSITION_TIME)) - val presetHandle = if (tlvReader.isNextTag(ContextSpecificTag(TAG_PRESET_HANDLE))) { - Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_PRESET_HANDLE))) - } else { - Optional.empty() - } - val systemMode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_SYSTEM_MODE))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_SYSTEM_MODE))) - } else { - Optional.empty() - } - val coolingSetpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_SETPOINT))) { - Optional.of(tlvReader.getInt(ContextSpecificTag(TAG_COOLING_SETPOINT))) - } else { - Optional.empty() - } - val heatingSetpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SETPOINT))) { - Optional.of(tlvReader.getInt(ContextSpecificTag(TAG_HEATING_SETPOINT))) - } else { - Optional.empty() - } - + val presetHandle = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_PRESET_HANDLE))) { + Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_PRESET_HANDLE))) + } else { + Optional.empty() + } + val systemMode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_SYSTEM_MODE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_SYSTEM_MODE))) + } else { + Optional.empty() + } + val coolingSetpoint = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_SETPOINT))) { + Optional.of(tlvReader.getInt(ContextSpecificTag(TAG_COOLING_SETPOINT))) + } else { + Optional.empty() + } + val heatingSetpoint = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SETPOINT))) { + Optional.of(tlvReader.getInt(ContextSpecificTag(TAG_HEATING_SETPOINT))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return ThermostatClusterScheduleTransitionStruct(dayOfWeek, transitionTime, presetHandle, systemMode, coolingSetpoint, heatingSetpoint) + return ThermostatClusterScheduleTransitionStruct( + dayOfWeek, + transitionTime, + presetHandle, + systemMode, + coolingSetpoint, + heatingSetpoint + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleTypeStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleTypeStruct.kt index 02b2c88e6c9d01..eb62cbf32b28a4 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleTypeStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleTypeStruct.kt @@ -17,20 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThermostatClusterScheduleTypeStruct ( - val systemMode: UInt, - val numberOfSchedules: UInt, - val scheduleTypeFeatures: UInt) { - override fun toString(): String = buildString { +class ThermostatClusterScheduleTypeStruct( + val systemMode: UInt, + val numberOfSchedules: UInt, + val scheduleTypeFeatures: UInt +) { + override fun toString(): String = buildString { append("ThermostatClusterScheduleTypeStruct {\n") append("\tsystemMode : $systemMode\n") append("\tnumberOfSchedules : $numberOfSchedules\n") @@ -53,15 +50,19 @@ class ThermostatClusterScheduleTypeStruct ( private const val TAG_NUMBER_OF_SCHEDULES = 1 private const val TAG_SCHEDULE_TYPE_FEATURES = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThermostatClusterScheduleTypeStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThermostatClusterScheduleTypeStruct { tlvReader.enterStructure(tlvTag) val systemMode = tlvReader.getUInt(ContextSpecificTag(TAG_SYSTEM_MODE)) val numberOfSchedules = tlvReader.getUInt(ContextSpecificTag(TAG_NUMBER_OF_SCHEDULES)) val scheduleTypeFeatures = tlvReader.getUInt(ContextSpecificTag(TAG_SCHEDULE_TYPE_FEATURES)) - + tlvReader.exitContainer() - return ThermostatClusterScheduleTypeStruct(systemMode, numberOfSchedules, scheduleTypeFeatures) + return ThermostatClusterScheduleTypeStruct( + systemMode, + numberOfSchedules, + scheduleTypeFeatures + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt index f6180f0e066a89..8b1ae0ae2b05ed 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt @@ -17,20 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThermostatClusterThermostatScheduleTransitionStruct ( - val transitionTime: UInt, - val heatSetpoint: Int, - val coolSetpoint: Int) { - override fun toString(): String = buildString { +class ThermostatClusterThermostatScheduleTransitionStruct( + val transitionTime: UInt, + val heatSetpoint: Int, + val coolSetpoint: Int +) { + override fun toString(): String = buildString { append("ThermostatClusterThermostatScheduleTransitionStruct {\n") append("\ttransitionTime : $transitionTime\n") append("\theatSetpoint : $heatSetpoint\n") @@ -53,15 +50,22 @@ class ThermostatClusterThermostatScheduleTransitionStruct ( private const val TAG_HEAT_SETPOINT = 1 private const val TAG_COOL_SETPOINT = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThermostatClusterThermostatScheduleTransitionStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ThermostatClusterThermostatScheduleTransitionStruct { tlvReader.enterStructure(tlvTag) val transitionTime = tlvReader.getUInt(ContextSpecificTag(TAG_TRANSITION_TIME)) val heatSetpoint = tlvReader.getInt(ContextSpecificTag(TAG_HEAT_SETPOINT)) val coolSetpoint = tlvReader.getInt(ContextSpecificTag(TAG_COOL_SETPOINT)) - + tlvReader.exitContainer() - return ThermostatClusterThermostatScheduleTransitionStruct(transitionTime, heatSetpoint, coolSetpoint) + return ThermostatClusterThermostatScheduleTransitionStruct( + transitionTime, + heatSetpoint, + coolSetpoint + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt index 40156c06651284..84733d5bd9d5fc 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt @@ -17,31 +17,28 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThreadNetworkDiagnosticsClusterNeighborTableStruct ( - val extAddress: ULong, - val age: ULong, - val rloc16: UInt, - val linkFrameCounter: ULong, - val mleFrameCounter: ULong, - val lqi: UInt, - val averageRssi: Int?, - val lastRssi: Int?, - val frameErrorRate: UInt, - val messageErrorRate: UInt, - val rxOnWhenIdle: Boolean, - val fullThreadDevice: Boolean, - val fullNetworkData: Boolean, - val isChild: Boolean) { - override fun toString(): String = buildString { +class ThreadNetworkDiagnosticsClusterNeighborTableStruct( + val extAddress: ULong, + val age: ULong, + val rloc16: UInt, + val linkFrameCounter: ULong, + val mleFrameCounter: ULong, + val lqi: UInt, + val averageRssi: Int?, + val lastRssi: Int?, + val frameErrorRate: UInt, + val messageErrorRate: UInt, + val rxOnWhenIdle: Boolean, + val fullThreadDevice: Boolean, + val fullNetworkData: Boolean, + val isChild: Boolean +) { + override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterNeighborTableStruct {\n") append("\textAddress : $extAddress\n") append("\tage : $age\n") @@ -70,15 +67,15 @@ class ThreadNetworkDiagnosticsClusterNeighborTableStruct ( put(ContextSpecificTag(TAG_MLE_FRAME_COUNTER), mleFrameCounter) put(ContextSpecificTag(TAG_LQI), lqi) if (averageRssi != null) { - put(ContextSpecificTag(TAG_AVERAGE_RSSI), averageRssi) - } else { - putNull(ContextSpecificTag(TAG_AVERAGE_RSSI)) - } + put(ContextSpecificTag(TAG_AVERAGE_RSSI), averageRssi) + } else { + putNull(ContextSpecificTag(TAG_AVERAGE_RSSI)) + } if (lastRssi != null) { - put(ContextSpecificTag(TAG_LAST_RSSI), lastRssi) - } else { - putNull(ContextSpecificTag(TAG_LAST_RSSI)) - } + put(ContextSpecificTag(TAG_LAST_RSSI), lastRssi) + } else { + putNull(ContextSpecificTag(TAG_LAST_RSSI)) + } put(ContextSpecificTag(TAG_FRAME_ERROR_RATE), frameErrorRate) put(ContextSpecificTag(TAG_MESSAGE_ERROR_RATE), messageErrorRate) put(ContextSpecificTag(TAG_RX_ON_WHEN_IDLE), rxOnWhenIdle) @@ -105,7 +102,10 @@ class ThreadNetworkDiagnosticsClusterNeighborTableStruct ( private const val TAG_FULL_NETWORK_DATA = 12 private const val TAG_IS_CHILD = 13 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterNeighborTableStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ThreadNetworkDiagnosticsClusterNeighborTableStruct { tlvReader.enterStructure(tlvTag) val extAddress = tlvReader.getULong(ContextSpecificTag(TAG_EXT_ADDRESS)) val age = tlvReader.getULong(ContextSpecificTag(TAG_AGE)) @@ -113,28 +113,45 @@ class ThreadNetworkDiagnosticsClusterNeighborTableStruct ( val linkFrameCounter = tlvReader.getULong(ContextSpecificTag(TAG_LINK_FRAME_COUNTER)) val mleFrameCounter = tlvReader.getULong(ContextSpecificTag(TAG_MLE_FRAME_COUNTER)) val lqi = tlvReader.getUInt(ContextSpecificTag(TAG_LQI)) - val averageRssi = if (!tlvReader.isNull()) { - tlvReader.getInt(ContextSpecificTag(TAG_AVERAGE_RSSI)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_AVERAGE_RSSI)) - null - } - val lastRssi = if (!tlvReader.isNull()) { - tlvReader.getInt(ContextSpecificTag(TAG_LAST_RSSI)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_LAST_RSSI)) - null - } + val averageRssi = + if (!tlvReader.isNull()) { + tlvReader.getInt(ContextSpecificTag(TAG_AVERAGE_RSSI)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_AVERAGE_RSSI)) + null + } + val lastRssi = + if (!tlvReader.isNull()) { + tlvReader.getInt(ContextSpecificTag(TAG_LAST_RSSI)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_LAST_RSSI)) + null + } val frameErrorRate = tlvReader.getUInt(ContextSpecificTag(TAG_FRAME_ERROR_RATE)) val messageErrorRate = tlvReader.getUInt(ContextSpecificTag(TAG_MESSAGE_ERROR_RATE)) val rxOnWhenIdle = tlvReader.getBoolean(ContextSpecificTag(TAG_RX_ON_WHEN_IDLE)) val fullThreadDevice = tlvReader.getBoolean(ContextSpecificTag(TAG_FULL_THREAD_DEVICE)) val fullNetworkData = tlvReader.getBoolean(ContextSpecificTag(TAG_FULL_NETWORK_DATA)) val isChild = tlvReader.getBoolean(ContextSpecificTag(TAG_IS_CHILD)) - + tlvReader.exitContainer() - return ThreadNetworkDiagnosticsClusterNeighborTableStruct(extAddress, age, rloc16, linkFrameCounter, mleFrameCounter, lqi, averageRssi, lastRssi, frameErrorRate, messageErrorRate, rxOnWhenIdle, fullThreadDevice, fullNetworkData, isChild) + return ThreadNetworkDiagnosticsClusterNeighborTableStruct( + extAddress, + age, + rloc16, + linkFrameCounter, + mleFrameCounter, + lqi, + averageRssi, + lastRssi, + frameErrorRate, + messageErrorRate, + rxOnWhenIdle, + fullThreadDevice, + fullNetworkData, + isChild + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt index b236dab6cb1906..39938fd1ee6403 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt @@ -17,29 +17,26 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThreadNetworkDiagnosticsClusterOperationalDatasetComponents ( - val activeTimestampPresent: Boolean, - val pendingTimestampPresent: Boolean, - val masterKeyPresent: Boolean, - val networkNamePresent: Boolean, - val extendedPanIdPresent: Boolean, - val meshLocalPrefixPresent: Boolean, - val delayPresent: Boolean, - val panIdPresent: Boolean, - val channelPresent: Boolean, - val pskcPresent: Boolean, - val securityPolicyPresent: Boolean, - val channelMaskPresent: Boolean) { - override fun toString(): String = buildString { +class ThreadNetworkDiagnosticsClusterOperationalDatasetComponents( + val activeTimestampPresent: Boolean, + val pendingTimestampPresent: Boolean, + val masterKeyPresent: Boolean, + val networkNamePresent: Boolean, + val extendedPanIdPresent: Boolean, + val meshLocalPrefixPresent: Boolean, + val delayPresent: Boolean, + val panIdPresent: Boolean, + val channelPresent: Boolean, + val pskcPresent: Boolean, + val securityPolicyPresent: Boolean, + val channelMaskPresent: Boolean +) { + override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterOperationalDatasetComponents {\n") append("\tactiveTimestampPresent : $activeTimestampPresent\n") append("\tpendingTimestampPresent : $pendingTimestampPresent\n") @@ -89,24 +86,45 @@ class ThreadNetworkDiagnosticsClusterOperationalDatasetComponents ( private const val TAG_SECURITY_POLICY_PRESENT = 10 private const val TAG_CHANNEL_MASK_PRESENT = 11 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterOperationalDatasetComponents { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ThreadNetworkDiagnosticsClusterOperationalDatasetComponents { tlvReader.enterStructure(tlvTag) - val activeTimestampPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_ACTIVE_TIMESTAMP_PRESENT)) - val pendingTimestampPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_PENDING_TIMESTAMP_PRESENT)) + val activeTimestampPresent = + tlvReader.getBoolean(ContextSpecificTag(TAG_ACTIVE_TIMESTAMP_PRESENT)) + val pendingTimestampPresent = + tlvReader.getBoolean(ContextSpecificTag(TAG_PENDING_TIMESTAMP_PRESENT)) val masterKeyPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_MASTER_KEY_PRESENT)) val networkNamePresent = tlvReader.getBoolean(ContextSpecificTag(TAG_NETWORK_NAME_PRESENT)) - val extendedPanIdPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_EXTENDED_PAN_ID_PRESENT)) - val meshLocalPrefixPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_MESH_LOCAL_PREFIX_PRESENT)) + val extendedPanIdPresent = + tlvReader.getBoolean(ContextSpecificTag(TAG_EXTENDED_PAN_ID_PRESENT)) + val meshLocalPrefixPresent = + tlvReader.getBoolean(ContextSpecificTag(TAG_MESH_LOCAL_PREFIX_PRESENT)) val delayPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_DELAY_PRESENT)) val panIdPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_PAN_ID_PRESENT)) val channelPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_CHANNEL_PRESENT)) val pskcPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_PSKC_PRESENT)) - val securityPolicyPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_SECURITY_POLICY_PRESENT)) + val securityPolicyPresent = + tlvReader.getBoolean(ContextSpecificTag(TAG_SECURITY_POLICY_PRESENT)) val channelMaskPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_CHANNEL_MASK_PRESENT)) - + tlvReader.exitContainer() - return ThreadNetworkDiagnosticsClusterOperationalDatasetComponents(activeTimestampPresent, pendingTimestampPresent, masterKeyPresent, networkNamePresent, extendedPanIdPresent, meshLocalPrefixPresent, delayPresent, panIdPresent, channelPresent, pskcPresent, securityPolicyPresent, channelMaskPresent) + return ThreadNetworkDiagnosticsClusterOperationalDatasetComponents( + activeTimestampPresent, + pendingTimestampPresent, + masterKeyPresent, + networkNamePresent, + extendedPanIdPresent, + meshLocalPrefixPresent, + delayPresent, + panIdPresent, + channelPresent, + pskcPresent, + securityPolicyPresent, + channelMaskPresent + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt index 3d5edad134669d..d1bbbec7592462 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt @@ -17,27 +17,24 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThreadNetworkDiagnosticsClusterRouteTableStruct ( - val extAddress: ULong, - val rloc16: UInt, - val routerId: UInt, - val nextHop: UInt, - val pathCost: UInt, - val LQIIn: UInt, - val LQIOut: UInt, - val age: UInt, - val allocated: Boolean, - val linkEstablished: Boolean) { - override fun toString(): String = buildString { +class ThreadNetworkDiagnosticsClusterRouteTableStruct( + val extAddress: ULong, + val rloc16: UInt, + val routerId: UInt, + val nextHop: UInt, + val pathCost: UInt, + val LQIIn: UInt, + val LQIOut: UInt, + val age: UInt, + val allocated: Boolean, + val linkEstablished: Boolean +) { + override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterRouteTableStruct {\n") append("\textAddress : $extAddress\n") append("\trloc16 : $rloc16\n") @@ -81,7 +78,10 @@ class ThreadNetworkDiagnosticsClusterRouteTableStruct ( private const val TAG_ALLOCATED = 8 private const val TAG_LINK_ESTABLISHED = 9 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterRouteTableStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ThreadNetworkDiagnosticsClusterRouteTableStruct { tlvReader.enterStructure(tlvTag) val extAddress = tlvReader.getULong(ContextSpecificTag(TAG_EXT_ADDRESS)) val rloc16 = tlvReader.getUInt(ContextSpecificTag(TAG_RLOC16)) @@ -93,10 +93,21 @@ class ThreadNetworkDiagnosticsClusterRouteTableStruct ( val age = tlvReader.getUInt(ContextSpecificTag(TAG_AGE)) val allocated = tlvReader.getBoolean(ContextSpecificTag(TAG_ALLOCATED)) val linkEstablished = tlvReader.getBoolean(ContextSpecificTag(TAG_LINK_ESTABLISHED)) - + tlvReader.exitContainer() - return ThreadNetworkDiagnosticsClusterRouteTableStruct(extAddress, rloc16, routerId, nextHop, pathCost, LQIIn, LQIOut, age, allocated, linkEstablished) + return ThreadNetworkDiagnosticsClusterRouteTableStruct( + extAddress, + rloc16, + routerId, + nextHop, + pathCost, + LQIIn, + LQIOut, + age, + allocated, + linkEstablished + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterSecurityPolicy.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterSecurityPolicy.kt index 44eec2ff64ab26..c0d8b857424511 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterSecurityPolicy.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterSecurityPolicy.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class ThreadNetworkDiagnosticsClusterSecurityPolicy ( - val rotationTime: UInt, - val flags: UInt) { - override fun toString(): String = buildString { +class ThreadNetworkDiagnosticsClusterSecurityPolicy(val rotationTime: UInt, val flags: UInt) { + override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterSecurityPolicy {\n") append("\trotationTime : $rotationTime\n") append("\tflags : $flags\n") @@ -49,11 +43,11 @@ class ThreadNetworkDiagnosticsClusterSecurityPolicy ( private const val TAG_ROTATION_TIME = 0 private const val TAG_FLAGS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterSecurityPolicy { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThreadNetworkDiagnosticsClusterSecurityPolicy { tlvReader.enterStructure(tlvTag) val rotationTime = tlvReader.getUInt(ContextSpecificTag(TAG_ROTATION_TIME)) val flags = tlvReader.getUInt(ContextSpecificTag(TAG_FLAGS)) - + tlvReader.exitContainer() return ThreadNetworkDiagnosticsClusterSecurityPolicy(rotationTime, flags) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterDSTOffsetStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterDSTOffsetStruct.kt index c960f8a3d1e069..6df9767939dcef 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterDSTOffsetStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterDSTOffsetStruct.kt @@ -17,20 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class TimeSynchronizationClusterDSTOffsetStruct ( - val offset: Long, - val validStarting: ULong, - val validUntil: ULong?) { - override fun toString(): String = buildString { +class TimeSynchronizationClusterDSTOffsetStruct( + val offset: Long, + val validStarting: ULong, + val validUntil: ULong? +) { + override fun toString(): String = buildString { append("TimeSynchronizationClusterDSTOffsetStruct {\n") append("\toffset : $offset\n") append("\tvalidStarting : $validStarting\n") @@ -44,10 +41,10 @@ class TimeSynchronizationClusterDSTOffsetStruct ( put(ContextSpecificTag(TAG_OFFSET), offset) put(ContextSpecificTag(TAG_VALID_STARTING), validStarting) if (validUntil != null) { - put(ContextSpecificTag(TAG_VALID_UNTIL), validUntil) - } else { - putNull(ContextSpecificTag(TAG_VALID_UNTIL)) - } + put(ContextSpecificTag(TAG_VALID_UNTIL), validUntil) + } else { + putNull(ContextSpecificTag(TAG_VALID_UNTIL)) + } endStructure() } } @@ -57,17 +54,18 @@ class TimeSynchronizationClusterDSTOffsetStruct ( private const val TAG_VALID_STARTING = 1 private const val TAG_VALID_UNTIL = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterDSTOffsetStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TimeSynchronizationClusterDSTOffsetStruct { tlvReader.enterStructure(tlvTag) val offset = tlvReader.getLong(ContextSpecificTag(TAG_OFFSET)) val validStarting = tlvReader.getULong(ContextSpecificTag(TAG_VALID_STARTING)) - val validUntil = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_VALID_UNTIL)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_VALID_UNTIL)) - null - } - + val validUntil = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_VALID_UNTIL)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_VALID_UNTIL)) + null + } + tlvReader.exitContainer() return TimeSynchronizationClusterDSTOffsetStruct(offset, validStarting, validUntil) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.kt index 956908c9cd381d..cca59a20972c7b 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.kt @@ -17,19 +17,16 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct ( - val nodeID: ULong, - val endpoint: UInt) { - override fun toString(): String = buildString { +class TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct( + val nodeID: ULong, + val endpoint: UInt +) { + override fun toString(): String = buildString { append("TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct {\n") append("\tnodeID : $nodeID\n") append("\tendpoint : $endpoint\n") @@ -49,11 +46,14 @@ class TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct ( private const val TAG_NODE_I_D = 0 private const val TAG_ENDPOINT = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct { tlvReader.enterStructure(tlvTag) val nodeID = tlvReader.getULong(ContextSpecificTag(TAG_NODE_I_D)) val endpoint = tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT)) - + tlvReader.exitContainer() return TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct(nodeID, endpoint) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterTimeZoneStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterTimeZoneStruct.kt index d972f05dbd528a..0d870bb1aa4b11 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterTimeZoneStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterTimeZoneStruct.kt @@ -17,20 +17,18 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag +import java.util.Optional import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class TimeSynchronizationClusterTimeZoneStruct ( - val offset: Long, - val validAt: ULong, - val name: Optional) { - override fun toString(): String = buildString { +class TimeSynchronizationClusterTimeZoneStruct( + val offset: Long, + val validAt: ULong, + val name: Optional +) { + override fun toString(): String = buildString { append("TimeSynchronizationClusterTimeZoneStruct {\n") append("\toffset : $offset\n") append("\tvalidAt : $validAt\n") @@ -44,9 +42,9 @@ class TimeSynchronizationClusterTimeZoneStruct ( put(ContextSpecificTag(TAG_OFFSET), offset) put(ContextSpecificTag(TAG_VALID_AT), validAt) if (name.isPresent) { - val optname = name.get() - put(ContextSpecificTag(TAG_NAME), optname) - } + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } endStructure() } } @@ -56,16 +54,17 @@ class TimeSynchronizationClusterTimeZoneStruct ( private const val TAG_VALID_AT = 1 private const val TAG_NAME = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterTimeZoneStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TimeSynchronizationClusterTimeZoneStruct { tlvReader.enterStructure(tlvTag) val offset = tlvReader.getLong(ContextSpecificTag(TAG_OFFSET)) val validAt = tlvReader.getULong(ContextSpecificTag(TAG_VALID_AT)) - val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - + val name = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + tlvReader.exitContainer() return TimeSynchronizationClusterTimeZoneStruct(offset, validAt, name) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterTrustedTimeSourceStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterTrustedTimeSourceStruct.kt index 16685608686cb7..db6786d49ee802 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterTrustedTimeSourceStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/TimeSynchronizationClusterTrustedTimeSourceStruct.kt @@ -17,20 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class TimeSynchronizationClusterTrustedTimeSourceStruct ( - val fabricIndex: UInt, - val nodeID: ULong, - val endpoint: UInt) { - override fun toString(): String = buildString { +class TimeSynchronizationClusterTrustedTimeSourceStruct( + val fabricIndex: UInt, + val nodeID: ULong, + val endpoint: UInt +) { + override fun toString(): String = buildString { append("TimeSynchronizationClusterTrustedTimeSourceStruct {\n") append("\tfabricIndex : $fabricIndex\n") append("\tnodeID : $nodeID\n") @@ -53,12 +50,15 @@ class TimeSynchronizationClusterTrustedTimeSourceStruct ( private const val TAG_NODE_I_D = 1 private const val TAG_ENDPOINT = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterTrustedTimeSourceStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): TimeSynchronizationClusterTrustedTimeSourceStruct { tlvReader.enterStructure(tlvTag) val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) val nodeID = tlvReader.getULong(ContextSpecificTag(TAG_NODE_I_D)) val endpoint = tlvReader.getUInt(ContextSpecificTag(TAG_ENDPOINT)) - + tlvReader.exitContainer() return TimeSynchronizationClusterTrustedTimeSourceStruct(fabricIndex, nodeID, endpoint) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterDoubleNestedStructList.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterDoubleNestedStructList.kt index 4ae6ee1b7692ff..46ebbe20eb1528 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterDoubleNestedStructList.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterDoubleNestedStructList.kt @@ -20,15 +20,11 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterDoubleNestedStructList ( - val a: List) { - override fun toString(): String = buildString { +class UnitTestingClusterDoubleNestedStructList(val a: List) { + override fun toString(): String = buildString { append("UnitTestingClusterDoubleNestedStructList {\n") append("\ta : $a\n") append("}\n") @@ -49,16 +45,17 @@ class UnitTestingClusterDoubleNestedStructList ( companion object { private const val TAG_A = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterDoubleNestedStructList { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterDoubleNestedStructList { tlvReader.enterStructure(tlvTag) - val a = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_A)) - while(!tlvReader.isEndOfContainer()) { - add(UnitTestingClusterNestedStructList.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val a = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_A)) + while (!tlvReader.isEndOfContainer()) { + add(UnitTestingClusterNestedStructList.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return UnitTestingClusterDoubleNestedStructList(a) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNestedStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNestedStruct.kt index 0a3799929a49c6..cd2c6a5d251fe9 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNestedStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNestedStruct.kt @@ -17,20 +17,17 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterNestedStruct ( - val a: UInt, - val b: Boolean, - val c: UnitTestingClusterSimpleStruct) { - override fun toString(): String = buildString { +class UnitTestingClusterNestedStruct( + val a: UInt, + val b: Boolean, + val c: UnitTestingClusterSimpleStruct +) { + override fun toString(): String = buildString { append("UnitTestingClusterNestedStruct {\n") append("\ta : $a\n") append("\tb : $b\n") @@ -53,12 +50,12 @@ class UnitTestingClusterNestedStruct ( private const val TAG_B = 1 private const val TAG_C = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterNestedStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterNestedStruct { tlvReader.enterStructure(tlvTag) val a = tlvReader.getUInt(ContextSpecificTag(TAG_A)) val b = tlvReader.getBoolean(ContextSpecificTag(TAG_B)) val c = UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_C), tlvReader) - + tlvReader.exitContainer() return UnitTestingClusterNestedStruct(a, b, c) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNestedStructList.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNestedStructList.kt index 425b1753d17039..9b32b5343204c5 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNestedStructList.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNestedStructList.kt @@ -20,21 +20,19 @@ import chip.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterNestedStructList ( - val a: UInt, - val b: Boolean, - val c: UnitTestingClusterSimpleStruct, - val d: List, - val e: List, - val f: List, - val g: List) { - override fun toString(): String = buildString { +class UnitTestingClusterNestedStructList( + val a: UInt, + val b: Boolean, + val c: UnitTestingClusterSimpleStruct, + val d: List, + val e: List, + val f: List, + val g: List +) { + override fun toString(): String = buildString { append("UnitTestingClusterNestedStructList {\n") append("\ta : $a\n") append("\tb : $b\n") @@ -85,40 +83,44 @@ class UnitTestingClusterNestedStructList ( private const val TAG_F = 5 private const val TAG_G = 6 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterNestedStructList { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterNestedStructList { tlvReader.enterStructure(tlvTag) val a = tlvReader.getUInt(ContextSpecificTag(TAG_A)) val b = tlvReader.getBoolean(ContextSpecificTag(TAG_B)) val c = UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_C), tlvReader) - val d = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_D)) - while(!tlvReader.isEndOfContainer()) { - add(UnitTestingClusterSimpleStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - val e = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_E)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getULong(AnonymousTag)) - } - tlvReader.exitContainer() - } - val f = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_F)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getByteArray(AnonymousTag)) - } - tlvReader.exitContainer() - } - val g = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_G)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val d = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_D)) + while (!tlvReader.isEndOfContainer()) { + add(UnitTestingClusterSimpleStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + val e = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_E)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getULong(AnonymousTag)) + } + tlvReader.exitContainer() + } + val f = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_F)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getByteArray(AnonymousTag)) + } + tlvReader.exitContainer() + } + val g = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_G)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return UnitTestingClusterNestedStructList(a, b, c, d, e, f, g) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNullablesAndOptionalsStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNullablesAndOptionalsStruct.kt index 4758e679ca22cb..e8f12057027054 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNullablesAndOptionalsStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterNullablesAndOptionalsStruct.kt @@ -17,29 +17,28 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import java.util.Optional import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterNullablesAndOptionalsStruct ( - val nullableInt: UInt?, - val optionalInt: Optional, - val nullableOptionalInt: Optional?, - val nullableString: String?, - val optionalString: Optional, - val nullableOptionalString: Optional?, - val nullableStruct: UnitTestingClusterSimpleStruct?, - val optionalStruct: Optional, - val nullableOptionalStruct: Optional?, - val nullableList: List?, - val optionalList: Optional>, - val nullableOptionalList: Optional>?) { - override fun toString(): String = buildString { +class UnitTestingClusterNullablesAndOptionalsStruct( + val nullableInt: UInt?, + val optionalInt: Optional, + val nullableOptionalInt: Optional?, + val nullableString: String?, + val optionalString: Optional, + val nullableOptionalString: Optional?, + val nullableStruct: UnitTestingClusterSimpleStruct?, + val optionalStruct: Optional, + val nullableOptionalStruct: Optional?, + val nullableList: List?, + val optionalList: Optional>, + val nullableOptionalList: Optional>? +) { + override fun toString(): String = buildString { append("UnitTestingClusterNullablesAndOptionalsStruct {\n") append("\tnullableInt : $nullableInt\n") append("\toptionalInt : $optionalInt\n") @@ -60,85 +59,85 @@ class UnitTestingClusterNullablesAndOptionalsStruct ( tlvWriter.apply { startStructure(tlvTag) if (nullableInt != null) { - put(ContextSpecificTag(TAG_NULLABLE_INT), nullableInt) - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_INT)) - } + put(ContextSpecificTag(TAG_NULLABLE_INT), nullableInt) + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_INT)) + } if (optionalInt.isPresent) { - val optoptionalInt = optionalInt.get() - put(ContextSpecificTag(TAG_OPTIONAL_INT), optoptionalInt) - } + val optoptionalInt = optionalInt.get() + put(ContextSpecificTag(TAG_OPTIONAL_INT), optoptionalInt) + } if (nullableOptionalInt != null) { - if (nullableOptionalInt.isPresent) { - val optnullableOptionalInt = nullableOptionalInt.get() - put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT), optnullableOptionalInt) - } - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT)) - } + if (nullableOptionalInt.isPresent) { + val optnullableOptionalInt = nullableOptionalInt.get() + put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT), optnullableOptionalInt) + } + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT)) + } if (nullableString != null) { - put(ContextSpecificTag(TAG_NULLABLE_STRING), nullableString) - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_STRING)) - } + put(ContextSpecificTag(TAG_NULLABLE_STRING), nullableString) + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_STRING)) + } if (optionalString.isPresent) { - val optoptionalString = optionalString.get() - put(ContextSpecificTag(TAG_OPTIONAL_STRING), optoptionalString) - } + val optoptionalString = optionalString.get() + put(ContextSpecificTag(TAG_OPTIONAL_STRING), optoptionalString) + } if (nullableOptionalString != null) { - if (nullableOptionalString.isPresent) { - val optnullableOptionalString = nullableOptionalString.get() - put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING), optnullableOptionalString) - } - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING)) - } + if (nullableOptionalString.isPresent) { + val optnullableOptionalString = nullableOptionalString.get() + put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING), optnullableOptionalString) + } + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING)) + } if (nullableStruct != null) { - nullableStruct.toTlv(ContextSpecificTag(TAG_NULLABLE_STRUCT), this) - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_STRUCT)) - } + nullableStruct.toTlv(ContextSpecificTag(TAG_NULLABLE_STRUCT), this) + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_STRUCT)) + } if (optionalStruct.isPresent) { - val optoptionalStruct = optionalStruct.get() - optoptionalStruct.toTlv(ContextSpecificTag(TAG_OPTIONAL_STRUCT), this) - } + val optoptionalStruct = optionalStruct.get() + optoptionalStruct.toTlv(ContextSpecificTag(TAG_OPTIONAL_STRUCT), this) + } if (nullableOptionalStruct != null) { - if (nullableOptionalStruct.isPresent) { - val optnullableOptionalStruct = nullableOptionalStruct.get() - optnullableOptionalStruct.toTlv(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT), this) - } - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT)) - } + if (nullableOptionalStruct.isPresent) { + val optnullableOptionalStruct = nullableOptionalStruct.get() + optnullableOptionalStruct.toTlv(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT), this) + } + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT)) + } if (nullableList != null) { - startArray(ContextSpecificTag(TAG_NULLABLE_LIST)) - for (item in nullableList.iterator()) { - put(AnonymousTag, item) + startArray(ContextSpecificTag(TAG_NULLABLE_LIST)) + for (item in nullableList.iterator()) { + put(AnonymousTag, item) + } + endArray() + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_LIST)) } - endArray() - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_LIST)) - } if (optionalList.isPresent) { - val optoptionalList = optionalList.get() - startArray(ContextSpecificTag(TAG_OPTIONAL_LIST)) - for (item in optoptionalList.iterator()) { - put(AnonymousTag, item) + val optoptionalList = optionalList.get() + startArray(ContextSpecificTag(TAG_OPTIONAL_LIST)) + for (item in optoptionalList.iterator()) { + put(AnonymousTag, item) + } + endArray() } - endArray() - } if (nullableOptionalList != null) { - if (nullableOptionalList.isPresent) { - val optnullableOptionalList = nullableOptionalList.get() - startArray(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) - for (item in optnullableOptionalList.iterator()) { - put(AnonymousTag, item) + if (nullableOptionalList.isPresent) { + val optnullableOptionalList = nullableOptionalList.get() + startArray(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) + for (item in optnullableOptionalList.iterator()) { + put(AnonymousTag, item) + } + endArray() + } + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) } - endArray() - } - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) - } endStructure() } } @@ -157,114 +156,153 @@ class UnitTestingClusterNullablesAndOptionalsStruct ( private const val TAG_OPTIONAL_LIST = 10 private const val TAG_NULLABLE_OPTIONAL_LIST = 11 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterNullablesAndOptionalsStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterNullablesAndOptionalsStruct { tlvReader.enterStructure(tlvTag) - val nullableInt = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_NULLABLE_INT)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_INT)) - null - } - val optionalInt = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_INT))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_OPTIONAL_INT))) - } else { - Optional.empty() - } - val nullableOptionalInt = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT)) - null - } - val nullableString = if (!tlvReader.isNull()) { - tlvReader.getString(ContextSpecificTag(TAG_NULLABLE_STRING)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_STRING)) - null - } - val optionalString = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_STRING))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPTIONAL_STRING))) - } else { - Optional.empty() - } - val nullableOptionalString = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING)) - null - } - val nullableStruct = if (!tlvReader.isNull()) { - UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_NULLABLE_STRUCT), tlvReader) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_STRUCT)) - null - } - val optionalStruct = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_STRUCT))) { - Optional.of(UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_OPTIONAL_STRUCT), tlvReader)) - } else { - Optional.empty() - } - val nullableOptionalStruct = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT))) { - Optional.of(UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT), tlvReader)) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT)) - null - } - val nullableList = if (!tlvReader.isNull()) { - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_NULLABLE_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_LIST)) - null - } - val optionalList = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_LIST))) { - Optional.of(buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_OPTIONAL_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - }) - } else { - Optional.empty() - } - val nullableOptionalList = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST))) { - Optional.of(buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - }) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) - null - } - + val nullableInt = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_NULLABLE_INT)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_INT)) + null + } + val optionalInt = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_INT))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_OPTIONAL_INT))) + } else { + Optional.empty() + } + val nullableOptionalInt = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT)) + null + } + val nullableString = + if (!tlvReader.isNull()) { + tlvReader.getString(ContextSpecificTag(TAG_NULLABLE_STRING)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_STRING)) + null + } + val optionalString = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_STRING))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPTIONAL_STRING))) + } else { + Optional.empty() + } + val nullableOptionalString = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING)) + null + } + val nullableStruct = + if (!tlvReader.isNull()) { + UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_NULLABLE_STRUCT), tlvReader) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_STRUCT)) + null + } + val optionalStruct = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_STRUCT))) { + Optional.of( + UnitTestingClusterSimpleStruct.fromTlv( + ContextSpecificTag(TAG_OPTIONAL_STRUCT), + tlvReader + ) + ) + } else { + Optional.empty() + } + val nullableOptionalStruct = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT))) { + Optional.of( + UnitTestingClusterSimpleStruct.fromTlv( + ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT), + tlvReader + ) + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT)) + null + } + val nullableList = + if (!tlvReader.isNull()) { + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_NULLABLE_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_LIST)) + null + } + val optionalList = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_LIST))) { + Optional.of( + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_OPTIONAL_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + ) + } else { + Optional.empty() + } + val nullableOptionalList = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST))) { + Optional.of( + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) + null + } + tlvReader.exitContainer() - return UnitTestingClusterNullablesAndOptionalsStruct(nullableInt, optionalInt, nullableOptionalInt, nullableString, optionalString, nullableOptionalString, nullableStruct, optionalStruct, nullableOptionalStruct, nullableList, optionalList, nullableOptionalList) + return UnitTestingClusterNullablesAndOptionalsStruct( + nullableInt, + optionalInt, + nullableOptionalInt, + nullableString, + optionalString, + nullableOptionalString, + nullableStruct, + optionalStruct, + nullableOptionalStruct, + nullableList, + optionalList, + nullableOptionalList + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterSimpleStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterSimpleStruct.kt index 3026a55dc4380c..217991a38b634a 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterSimpleStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterSimpleStruct.kt @@ -17,25 +17,22 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterSimpleStruct ( - val a: UInt, - val b: Boolean, - val c: UInt, - val d: ByteArray, - val e: String, - val f: UInt, - val g: Float, - val h: Double) { - override fun toString(): String = buildString { +class UnitTestingClusterSimpleStruct( + val a: UInt, + val b: Boolean, + val c: UInt, + val d: ByteArray, + val e: String, + val f: UInt, + val g: Float, + val h: Double +) { + override fun toString(): String = buildString { append("UnitTestingClusterSimpleStruct {\n") append("\ta : $a\n") append("\tb : $b\n") @@ -73,7 +70,7 @@ class UnitTestingClusterSimpleStruct ( private const val TAG_G = 6 private const val TAG_H = 7 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterSimpleStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterSimpleStruct { tlvReader.enterStructure(tlvTag) val a = tlvReader.getUInt(ContextSpecificTag(TAG_A)) val b = tlvReader.getBoolean(ContextSpecificTag(TAG_B)) @@ -83,7 +80,7 @@ class UnitTestingClusterSimpleStruct ( val f = tlvReader.getUInt(ContextSpecificTag(TAG_F)) val g = tlvReader.getFloat(ContextSpecificTag(TAG_G)) val h = tlvReader.getDouble(ContextSpecificTag(TAG_H)) - + tlvReader.exitContainer() return UnitTestingClusterSimpleStruct(a, b, c, d, e, f, g, h) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterTestFabricScoped.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterTestFabricScoped.kt index 22970640c5eb3c..36da8ea1549865 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterTestFabricScoped.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterTestFabricScoped.kt @@ -17,25 +17,24 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* +import java.util.Optional import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterTestFabricScoped ( - val fabricSensitiveInt8u: UInt, - val optionalFabricSensitiveInt8u: Optional, - val nullableFabricSensitiveInt8u: UInt?, - val nullableOptionalFabricSensitiveInt8u: Optional?, - val fabricSensitiveCharString: String, - val fabricSensitiveStruct: UnitTestingClusterSimpleStruct, - val fabricSensitiveInt8uList: List, - val fabricIndex: UInt) { - override fun toString(): String = buildString { +class UnitTestingClusterTestFabricScoped( + val fabricSensitiveInt8u: UInt, + val optionalFabricSensitiveInt8u: Optional, + val nullableFabricSensitiveInt8u: UInt?, + val nullableOptionalFabricSensitiveInt8u: Optional?, + val fabricSensitiveCharString: String, + val fabricSensitiveStruct: UnitTestingClusterSimpleStruct, + val fabricSensitiveInt8uList: List, + val fabricIndex: UInt +) { + override fun toString(): String = buildString { append("UnitTestingClusterTestFabricScoped {\n") append("\tfabricSensitiveInt8u : $fabricSensitiveInt8u\n") append("\toptionalFabricSensitiveInt8u : $optionalFabricSensitiveInt8u\n") @@ -53,22 +52,28 @@ class UnitTestingClusterTestFabricScoped ( startStructure(tlvTag) put(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U), fabricSensitiveInt8u) if (optionalFabricSensitiveInt8u.isPresent) { - val optoptionalFabricSensitiveInt8u = optionalFabricSensitiveInt8u.get() - put(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U), optoptionalFabricSensitiveInt8u) - } + val optoptionalFabricSensitiveInt8u = optionalFabricSensitiveInt8u.get() + put( + ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U), + optoptionalFabricSensitiveInt8u + ) + } if (nullableFabricSensitiveInt8u != null) { - put(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U), nullableFabricSensitiveInt8u) - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) - } + put(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U), nullableFabricSensitiveInt8u) + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) + } if (nullableOptionalFabricSensitiveInt8u != null) { - if (nullableOptionalFabricSensitiveInt8u.isPresent) { - val optnullableOptionalFabricSensitiveInt8u = nullableOptionalFabricSensitiveInt8u.get() - put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U), optnullableOptionalFabricSensitiveInt8u) - } - } else { - putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) - } + if (nullableOptionalFabricSensitiveInt8u.isPresent) { + val optnullableOptionalFabricSensitiveInt8u = nullableOptionalFabricSensitiveInt8u.get() + put( + ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U), + optnullableOptionalFabricSensitiveInt8u + ) + } + } else { + putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) + } put(ContextSpecificTag(TAG_FABRIC_SENSITIVE_CHAR_STRING), fabricSensitiveCharString) fabricSensitiveStruct.toTlv(ContextSpecificTag(TAG_FABRIC_SENSITIVE_STRUCT), this) startArray(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U_LIST)) @@ -91,44 +96,66 @@ class UnitTestingClusterTestFabricScoped ( private const val TAG_FABRIC_SENSITIVE_INT8U_LIST = 7 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterTestFabricScoped { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterTestFabricScoped { tlvReader.enterStructure(tlvTag) val fabricSensitiveInt8u = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U)) - val optionalFabricSensitiveInt8u = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U))) - } else { - Optional.empty() - } - val nullableFabricSensitiveInt8u = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) - null - } - val nullableOptionalFabricSensitiveInt8u = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) - null - } - val fabricSensitiveCharString = tlvReader.getString(ContextSpecificTag(TAG_FABRIC_SENSITIVE_CHAR_STRING)) - val fabricSensitiveStruct = UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_FABRIC_SENSITIVE_STRUCT), tlvReader) - val fabricSensitiveInt8uList = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } + val optionalFabricSensitiveInt8u = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U))) + } else { + Optional.empty() + } + val nullableFabricSensitiveInt8u = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) + null + } + val nullableOptionalFabricSensitiveInt8u = + if (!tlvReader.isNull()) { + if ( + tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) + ) { + Optional.of( + tlvReader.getUInt(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) + null + } + val fabricSensitiveCharString = + tlvReader.getString(ContextSpecificTag(TAG_FABRIC_SENSITIVE_CHAR_STRING)) + val fabricSensitiveStruct = + UnitTestingClusterSimpleStruct.fromTlv( + ContextSpecificTag(TAG_FABRIC_SENSITIVE_STRUCT), + tlvReader + ) + val fabricSensitiveInt8uList = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } val fabricIndex = tlvReader.getUInt(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return UnitTestingClusterTestFabricScoped(fabricSensitiveInt8u, optionalFabricSensitiveInt8u, nullableFabricSensitiveInt8u, nullableOptionalFabricSensitiveInt8u, fabricSensitiveCharString, fabricSensitiveStruct, fabricSensitiveInt8uList, fabricIndex) + return UnitTestingClusterTestFabricScoped( + fabricSensitiveInt8u, + optionalFabricSensitiveInt8u, + nullableFabricSensitiveInt8u, + nullableOptionalFabricSensitiveInt8u, + fabricSensitiveCharString, + fabricSensitiveStruct, + fabricSensitiveInt8uList, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterTestListStructOctet.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterTestListStructOctet.kt index 1f823ba5cb92f9..91afedb93a404f 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterTestListStructOctet.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UnitTestingClusterTestListStructOctet.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UnitTestingClusterTestListStructOctet ( - val member1: ULong, - val member2: ByteArray) { - override fun toString(): String = buildString { +class UnitTestingClusterTestListStructOctet(val member1: ULong, val member2: ByteArray) { + override fun toString(): String = buildString { append("UnitTestingClusterTestListStructOctet {\n") append("\tmember1 : $member1\n") append("\tmember2 : $member2\n") @@ -49,11 +43,11 @@ class UnitTestingClusterTestListStructOctet ( private const val TAG_MEMBER1 = 0 private const val TAG_MEMBER2 = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterTestListStructOctet { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterTestListStructOctet { tlvReader.enterStructure(tlvTag) val member1 = tlvReader.getULong(ContextSpecificTag(TAG_MEMBER1)) val member2 = tlvReader.getByteArray(ContextSpecificTag(TAG_MEMBER2)) - + tlvReader.exitContainer() return UnitTestingClusterTestListStructOctet(member1, member2) diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UserLabelClusterLabelStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UserLabelClusterLabelStruct.kt index 02509a81a9dbbc..1cfbb532f5abaf 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UserLabelClusterLabelStruct.kt +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/UserLabelClusterLabelStruct.kt @@ -17,19 +17,13 @@ package chip.devicecontroller.cluster.structs import chip.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag -import matter.tlv.TlvParsingException import matter.tlv.TlvReader import matter.tlv.TlvWriter -import java.util.Optional - -class UserLabelClusterLabelStruct ( - val label: String, - val value: String) { - override fun toString(): String = buildString { +class UserLabelClusterLabelStruct(val label: String, val value: String) { + override fun toString(): String = buildString { append("UserLabelClusterLabelStruct {\n") append("\tlabel : $label\n") append("\tvalue : $value\n") @@ -49,11 +43,11 @@ class UserLabelClusterLabelStruct ( private const val TAG_LABEL = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UserLabelClusterLabelStruct { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UserLabelClusterLabelStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val value = tlvReader.getString(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return UserLabelClusterLabelStruct(label, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccessControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccessControlCluster.kt index 33b48a8275160b..78ee6725bb7646 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccessControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccessControlCluster.kt @@ -20,57 +20,42 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class AccessControlCluster(private val controller: MatterController, private val endpointId: UShort) { - class AclAttribute( - val value: List - ) +class AccessControlCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class AclAttribute(val value: List) - class ExtensionAttribute( - val value: List? - ) + class ExtensionAttribute(val value: List?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readAclAttribute(): AclAttribute { // Implementation needs to be added here } - suspend fun readAclAttributeWithFabricFilter( - isFabricFiltered: Boolean - ): AclAttribute { + suspend fun readAclAttributeWithFabricFilter(isFabricFiltered: Boolean): AclAttribute { // Implementation needs to be added here } - suspend fun writeAclAttribute( value: List, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeAclAttribute( - minInterval: Int, - maxInterval: Int - ): AclAttribute { + suspend fun subscribeAclAttribute(minInterval: Int, maxInterval: Int): AclAttribute { // Implementation needs to be added here } @@ -84,22 +69,18 @@ class AccessControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun writeExtensionAttribute( value: List, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeExtensionAttribute( - minInterval: Int, - maxInterval: Int - ): ExtensionAttribute { + suspend fun subscribeExtensionAttribute(minInterval: Int, maxInterval: Int): ExtensionAttribute { // Implementation needs to be added here } @@ -162,10 +143,7 @@ class AccessControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -184,10 +162,7 @@ class AccessControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -195,10 +170,7 @@ class AccessControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccountLoginCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccountLoginCluster.kt index 7cc4aefe7bd5d7..32bca8bbe97d6c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccountLoginCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccountLoginCluster.kt @@ -20,43 +20,39 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class AccountLoginCluster(private val controller: MatterController, private val endpointId: UShort) { - class GetSetupPINResponse( - val setupPIN: String - ) +class AccountLoginCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class GetSetupPINResponse(val setupPIN: String) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun getSetupPIN(tempAccountIdentifier: String, timedInvokeTimeoutMs: Int): GetSetupPINResponse { + suspend fun getSetupPIN( + tempAccountIdentifier: String, + timedInvokeTimeoutMs: Int + ): GetSetupPINResponse { val commandId = 0L - // Implementation needs to be added here + // Implementation needs to be added here } suspend fun login(tempAccountIdentifier: String, setupPIN: String, timedInvokeTimeoutMs: Int) { val commandId = 2L - // Implementation needs to be added here + // Implementation needs to be added here } suspend fun logout(timedInvokeTimeoutMs: Int) { val commandId = 3L - // Implementation needs to be added here + // Implementation needs to be added here } suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { @@ -85,10 +81,7 @@ class AccountLoginCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -107,10 +100,7 @@ class AccountLoginCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -118,10 +108,7 @@ class AccountLoginCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActionsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActionsCluster.kt index 38b03f64813377..264bde16fae360 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActionsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActionsCluster.kt @@ -21,29 +21,17 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class ActionsCluster(private val controller: MatterController, private val endpointId: UShort) { - class ActionListAttribute( - val value: List - ) + class ActionListAttribute(val value: List) - class EndpointListsAttribute( - val value: List - ) + class EndpointListsAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun instantAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -52,17 +40,22 @@ class ActionsCluster(private val controller: MatterController, private val endpo // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun instantActionWithTransition(actionID: UShort, invokeID: UInt?, transitionTime: UShort, timedInvokeTimeoutMs: Int? = null) { + suspend fun instantActionWithTransition( + actionID: UShort, + invokeID: UInt?, + transitionTime: UShort, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 1L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun startAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { @@ -72,17 +65,22 @@ class ActionsCluster(private val controller: MatterController, private val endpo // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun startActionWithDuration(actionID: UShort, invokeID: UInt?, duration: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun startActionWithDuration( + actionID: UShort, + invokeID: UInt?, + duration: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 3L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun stopAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { @@ -92,7 +90,7 @@ class ActionsCluster(private val controller: MatterController, private val endpo // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun pauseAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { @@ -102,17 +100,22 @@ class ActionsCluster(private val controller: MatterController, private val endpo // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun pauseActionWithDuration(actionID: UShort, invokeID: UInt?, duration: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun pauseActionWithDuration( + actionID: UShort, + invokeID: UInt?, + duration: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 6L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun resumeAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { @@ -122,7 +125,7 @@ class ActionsCluster(private val controller: MatterController, private val endpo // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun enableAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { @@ -132,17 +135,22 @@ class ActionsCluster(private val controller: MatterController, private val endpo // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun enableActionWithDuration(actionID: UShort, invokeID: UInt?, duration: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun enableActionWithDuration( + actionID: UShort, + invokeID: UInt?, + duration: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 9L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun disableAction(actionID: UShort, invokeID: UInt?, timedInvokeTimeoutMs: Int? = null) { @@ -152,17 +160,22 @@ class ActionsCluster(private val controller: MatterController, private val endpo // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun disableActionWithDuration(actionID: UShort, invokeID: UInt?, duration: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun disableActionWithDuration( + actionID: UShort, + invokeID: UInt?, + duration: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 11L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readActionListAttribute(): ActionListAttribute { @@ -191,10 +204,7 @@ class ActionsCluster(private val controller: MatterController, private val endpo // Implementation needs to be added here } - suspend fun subscribeSetupURLAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeSetupURLAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -224,10 +234,7 @@ class ActionsCluster(private val controller: MatterController, private val endpo // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -246,10 +253,7 @@ class ActionsCluster(private val controller: MatterController, private val endpo // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -257,10 +261,7 @@ class ActionsCluster(private val controller: MatterController, private val endpo // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActivatedCarbonFilterMonitoringCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActivatedCarbonFilterMonitoringCluster.kt index 4b33dedad9432e..9b128e71667096 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActivatedCarbonFilterMonitoringCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActivatedCarbonFilterMonitoringCluster.kt @@ -20,30 +20,23 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class ActivatedCarbonFilterMonitoringCluster(private val controller: MatterController, private val endpointId: UShort) { - class LastChangedTimeAttribute( - val value: UInt? - ) +class ActivatedCarbonFilterMonitoringCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class LastChangedTimeAttribute(val value: UInt?) class ReplacementProductListAttribute( val value: List? ) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun resetCondition(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -52,17 +45,14 @@ class ActivatedCarbonFilterMonitoringCluster(private val controller: MatterContr // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readConditionAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeConditionAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeConditionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -70,10 +60,7 @@ class ActivatedCarbonFilterMonitoringCluster(private val controller: MatterContr // Implementation needs to be added here } - suspend fun subscribeDegradationDirectionAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeDegradationDirectionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -81,10 +68,7 @@ class ActivatedCarbonFilterMonitoringCluster(private val controller: MatterContr // Implementation needs to be added here } - suspend fun subscribeChangeIndicationAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeChangeIndicationAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -92,10 +76,7 @@ class ActivatedCarbonFilterMonitoringCluster(private val controller: MatterContr // Implementation needs to be added here } - suspend fun subscribeInPlaceIndicatorAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeInPlaceIndicatorAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -103,15 +84,12 @@ class ActivatedCarbonFilterMonitoringCluster(private val controller: MatterContr // Implementation needs to be added here } - suspend fun writeLastChangedTimeAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeLastChangedTimeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeLastChangedTimeAttribute( @@ -158,10 +136,7 @@ class ActivatedCarbonFilterMonitoringCluster(private val controller: MatterContr // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -180,10 +155,7 @@ class ActivatedCarbonFilterMonitoringCluster(private val controller: MatterContr // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -191,10 +163,7 @@ class ActivatedCarbonFilterMonitoringCluster(private val controller: MatterContr // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AdministratorCommissioningCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AdministratorCommissioningCluster.kt index dbc01d4b3ead6b..fa3698f95ac7e6 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AdministratorCommissioningCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AdministratorCommissioningCluster.kt @@ -20,57 +20,55 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class AdministratorCommissioningCluster(private val controller: MatterController, private val endpointId: UShort) { - class AdminFabricIndexAttribute( - val value: UByte? - ) +class AdministratorCommissioningCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class AdminFabricIndexAttribute(val value: UByte?) - class AdminVendorIdAttribute( - val value: UShort? - ) + class AdminVendorIdAttribute(val value: UShort?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun openCommissioningWindow(commissioningTimeout: UShort, PAKEPasscodeVerifier: ByteArray, discriminator: UShort, iterations: UInt, salt: ByteArray, timedInvokeTimeoutMs: Int) { + suspend fun openCommissioningWindow( + commissioningTimeout: UShort, + PAKEPasscodeVerifier: ByteArray, + discriminator: UShort, + iterations: UInt, + salt: ByteArray, + timedInvokeTimeoutMs: Int + ) { val commandId = 0L - // Implementation needs to be added here + // Implementation needs to be added here } - suspend fun openBasicCommissioningWindow(commissioningTimeout: UShort, timedInvokeTimeoutMs: Int) { + suspend fun openBasicCommissioningWindow( + commissioningTimeout: UShort, + timedInvokeTimeoutMs: Int + ) { val commandId = 1L - // Implementation needs to be added here + // Implementation needs to be added here } suspend fun revokeCommissioning(timedInvokeTimeoutMs: Int) { val commandId = 2L - // Implementation needs to be added here + // Implementation needs to be added here } suspend fun readWindowStatusAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeWindowStatusAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeWindowStatusAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -122,10 +120,7 @@ class AdministratorCommissioningCluster(private val controller: MatterController // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -144,10 +139,7 @@ class AdministratorCommissioningCluster(private val controller: MatterController // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -155,10 +147,7 @@ class AdministratorCommissioningCluster(private val controller: MatterController // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AirQualityCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AirQualityCluster.kt index ba3aa58a547d79..6355856efbd286 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AirQualityCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AirQualityCluster.kt @@ -21,30 +21,19 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class AirQualityCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readAirQualityAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeAirQualityAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeAirQualityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -74,10 +63,7 @@ class AirQualityCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -96,10 +82,7 @@ class AirQualityCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -107,10 +90,7 @@ class AirQualityCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationBasicCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationBasicCluster.kt index f8adac86886a65..58b400775a3fea 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationBasicCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationBasicCluster.kt @@ -20,39 +20,27 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class ApplicationBasicCluster(private val controller: MatterController, private val endpointId: UShort) { - class ApplicationAttribute( - val value: ApplicationBasicClusterApplicationStruct - ) +class ApplicationBasicCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class ApplicationAttribute(val value: ApplicationBasicClusterApplicationStruct) - class AllowedVendorListAttribute( - val value: List - ) + class AllowedVendorListAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readVendorNameAttribute(): CharString { // Implementation needs to be added here } - suspend fun subscribeVendorNameAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeVendorNameAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -60,10 +48,7 @@ class ApplicationBasicCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeVendorIDAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeVendorIDAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -71,10 +56,7 @@ class ApplicationBasicCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeApplicationNameAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeApplicationNameAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -82,10 +64,7 @@ class ApplicationBasicCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeProductIDAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeProductIDAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -104,10 +83,7 @@ class ApplicationBasicCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeStatusAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeStatusAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -115,10 +91,7 @@ class ApplicationBasicCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeApplicationVersionAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeApplicationVersionAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -159,10 +132,7 @@ class ApplicationBasicCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -181,10 +151,7 @@ class ApplicationBasicCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -192,10 +159,7 @@ class ApplicationBasicCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationLauncherCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationLauncherCluster.kt index 8c00be0712a94c..cd1fb69aa46af3 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationLauncherCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationLauncherCluster.kt @@ -20,64 +20,62 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class ApplicationLauncherCluster(private val controller: MatterController, private val endpointId: UShort) { - class LauncherResponse( - val status: UInt, - val data: ByteArray? - ) +class ApplicationLauncherCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class LauncherResponse(val status: UInt, val data: ByteArray?) - class CatalogListAttribute( - val value: List? - ) + class CatalogListAttribute(val value: List?) - class CurrentAppAttribute( - val value: ApplicationLauncherClusterApplicationEPStruct? - ) + class CurrentAppAttribute(val value: ApplicationLauncherClusterApplicationEPStruct?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun launchApp(application: ApplicationLauncherClusterApplicationStruct?, data: ByteArray?, timedInvokeTimeoutMs: Int? = null): LauncherResponse { + suspend fun launchApp( + application: ApplicationLauncherClusterApplicationStruct?, + data: ByteArray?, + timedInvokeTimeoutMs: Int? = null + ): LauncherResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun stopApp(application: ApplicationLauncherClusterApplicationStruct?, timedInvokeTimeoutMs: Int? = null): LauncherResponse { + suspend fun stopApp( + application: ApplicationLauncherClusterApplicationStruct?, + timedInvokeTimeoutMs: Int? = null + ): LauncherResponse { val commandId = 1L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun hideApp(application: ApplicationLauncherClusterApplicationStruct?, timedInvokeTimeoutMs: Int? = null): LauncherResponse { + suspend fun hideApp( + application: ApplicationLauncherClusterApplicationStruct?, + timedInvokeTimeoutMs: Int? = null + ): LauncherResponse { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readCatalogListAttribute(): CatalogListAttribute { @@ -128,10 +126,7 @@ class ApplicationLauncherCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -150,10 +145,7 @@ class ApplicationLauncherCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -161,10 +153,7 @@ class ApplicationLauncherCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AudioOutputCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AudioOutputCluster.kt index a73cb03731de24..e90ee1bd52ce00 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AudioOutputCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AudioOutputCluster.kt @@ -21,25 +21,15 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class AudioOutputCluster(private val controller: MatterController, private val endpointId: UShort) { - class OutputListAttribute( - val value: List - ) + class OutputListAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun selectOutput(index: UByte, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -48,7 +38,7 @@ class AudioOutputCluster(private val controller: MatterController, private val e // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun renameOutput(index: UByte, name: String, timedInvokeTimeoutMs: Int? = null) { @@ -58,7 +48,7 @@ class AudioOutputCluster(private val controller: MatterController, private val e // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readOutputListAttribute(): OutputListAttribute { @@ -76,10 +66,7 @@ class AudioOutputCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeCurrentOutputAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentOutputAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -109,10 +96,7 @@ class AudioOutputCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -131,10 +115,7 @@ class AudioOutputCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -142,10 +123,7 @@ class AudioOutputCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BallastConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BallastConfigurationCluster.kt index 2f135199ca213d..c3a9d6c78807eb 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BallastConfigurationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BallastConfigurationCluster.kt @@ -20,51 +20,33 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class BallastConfigurationCluster(private val controller: MatterController, private val endpointId: UShort) { - class IntrinsicBallastFactorAttribute( - val value: UByte? - ) +class BallastConfigurationCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class IntrinsicBallastFactorAttribute(val value: UByte?) - class BallastFactorAdjustmentAttribute( - val value: UByte? - ) + class BallastFactorAdjustmentAttribute(val value: UByte?) - class LampRatedHoursAttribute( - val value: UInt? - ) + class LampRatedHoursAttribute(val value: UInt?) - class LampBurnHoursAttribute( - val value: UInt? - ) + class LampBurnHoursAttribute(val value: UInt?) - class LampBurnHoursTripPointAttribute( - val value: UInt? - ) + class LampBurnHoursTripPointAttribute(val value: UInt?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readPhysicalMinLevelAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribePhysicalMinLevelAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribePhysicalMinLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -72,10 +54,7 @@ class BallastConfigurationCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribePhysicalMaxLevelAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribePhysicalMaxLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -83,10 +62,7 @@ class BallastConfigurationCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeBallastStatusAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeBallastStatusAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -94,21 +70,15 @@ class BallastConfigurationCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun writeMinLevelAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeMinLevelAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeMinLevelAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMinLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -116,21 +86,15 @@ class BallastConfigurationCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun writeMaxLevelAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeMaxLevelAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeMaxLevelAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMaxLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -138,15 +102,12 @@ class BallastConfigurationCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun writeIntrinsicBallastFactorAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeIntrinsicBallastFactorAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeIntrinsicBallastFactorAttribute( @@ -162,13 +123,13 @@ class BallastConfigurationCluster(private val controller: MatterController, priv suspend fun writeBallastFactorAdjustmentAttribute( value: UByte, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeBallastFactorAdjustmentAttribute( @@ -182,10 +143,7 @@ class BallastConfigurationCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeLampQuantityAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLampQuantityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -193,21 +151,15 @@ class BallastConfigurationCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun writeLampTypeAttribute( - value: String, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeLampTypeAttribute(value: String, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeLampTypeAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeLampTypeAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -215,21 +167,15 @@ class BallastConfigurationCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun writeLampManufacturerAttribute( - value: String, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeLampManufacturerAttribute(value: String, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeLampManufacturerAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeLampManufacturerAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -237,15 +183,12 @@ class BallastConfigurationCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun writeLampRatedHoursAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeLampRatedHoursAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeLampRatedHoursAttribute( @@ -259,15 +202,12 @@ class BallastConfigurationCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun writeLampBurnHoursAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeLampBurnHoursAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeLampBurnHoursAttribute( @@ -281,21 +221,15 @@ class BallastConfigurationCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun writeLampAlarmModeAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeLampAlarmModeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeLampAlarmModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLampAlarmModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -303,15 +237,12 @@ class BallastConfigurationCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun writeLampBurnHoursTripPointAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeLampBurnHoursTripPointAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeLampBurnHoursTripPointAttribute( @@ -347,10 +278,7 @@ class BallastConfigurationCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -369,10 +297,7 @@ class BallastConfigurationCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -380,10 +305,7 @@ class BallastConfigurationCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BarrierControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BarrierControlCluster.kt index 990fe317baa7a6..e3446f20394a8e 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BarrierControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BarrierControlCluster.kt @@ -20,22 +20,17 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class BarrierControlCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) +class BarrierControlCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun barrierControlGoToPercent(percentOpen: UByte, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -44,7 +39,7 @@ class BarrierControlCluster(private val controller: MatterController, private va // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun barrierControlStop(timedInvokeTimeoutMs: Int? = null) { @@ -54,17 +49,14 @@ class BarrierControlCluster(private val controller: MatterController, private va // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readBarrierMovingStateAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeBarrierMovingStateAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeBarrierMovingStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -72,10 +64,7 @@ class BarrierControlCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeBarrierSafetyStatusAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeBarrierSafetyStatusAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -83,10 +72,7 @@ class BarrierControlCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeBarrierCapabilitiesAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeBarrierCapabilitiesAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -94,21 +80,15 @@ class BarrierControlCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun writeBarrierOpenEventsAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeBarrierOpenEventsAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeBarrierOpenEventsAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeBarrierOpenEventsAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -116,21 +96,15 @@ class BarrierControlCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun writeBarrierCloseEventsAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeBarrierCloseEventsAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeBarrierCloseEventsAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeBarrierCloseEventsAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -140,13 +114,13 @@ class BarrierControlCluster(private val controller: MatterController, private va suspend fun writeBarrierCommandOpenEventsAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeBarrierCommandOpenEventsAttribute( @@ -162,13 +136,13 @@ class BarrierControlCluster(private val controller: MatterController, private va suspend fun writeBarrierCommandCloseEventsAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeBarrierCommandCloseEventsAttribute( @@ -182,21 +156,15 @@ class BarrierControlCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun writeBarrierOpenPeriodAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeBarrierOpenPeriodAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeBarrierOpenPeriodAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeBarrierOpenPeriodAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -204,21 +172,15 @@ class BarrierControlCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun writeBarrierClosePeriodAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeBarrierClosePeriodAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeBarrierClosePeriodAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeBarrierClosePeriodAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -226,10 +188,7 @@ class BarrierControlCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeBarrierPositionAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeBarrierPositionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -259,10 +218,7 @@ class BarrierControlCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -281,10 +237,7 @@ class BarrierControlCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -292,10 +245,7 @@ class BarrierControlCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BasicInformationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BasicInformationCluster.kt index cfd2e2517b7ca7..9cfb4657ad3cc0 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BasicInformationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BasicInformationCluster.kt @@ -20,30 +20,21 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class BasicInformationCluster(private val controller: MatterController, private val endpointId: UShort) { - class CapabilityMinimaAttribute( - val value: BasicInformationClusterCapabilityMinimaStruct - ) +class BasicInformationCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class CapabilityMinimaAttribute(val value: BasicInformationClusterCapabilityMinimaStruct) - class ProductAppearanceAttribute( - val value: BasicInformationClusterProductAppearanceStruct? - ) + class ProductAppearanceAttribute(val value: BasicInformationClusterProductAppearanceStruct?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun mfgSpecificPing(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -52,17 +43,14 @@ class BasicInformationCluster(private val controller: MatterController, private // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readDataModelRevisionAttribute(): UShort { // Implementation needs to be added here } - suspend fun subscribeDataModelRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeDataModelRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -70,10 +58,7 @@ class BasicInformationCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeVendorNameAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeVendorNameAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -81,10 +66,7 @@ class BasicInformationCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeVendorIDAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeVendorIDAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -92,10 +74,7 @@ class BasicInformationCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeProductNameAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeProductNameAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -103,10 +82,7 @@ class BasicInformationCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeProductIDAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeProductIDAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -114,21 +90,15 @@ class BasicInformationCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun writeNodeLabelAttribute( - value: String, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNodeLabelAttribute(value: String, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeNodeLabelAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeNodeLabelAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -136,21 +106,15 @@ class BasicInformationCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun writeLocationAttribute( - value: String, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeLocationAttribute(value: String, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeLocationAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeLocationAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -158,10 +122,7 @@ class BasicInformationCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeHardwareVersionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeHardwareVersionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -180,10 +141,7 @@ class BasicInformationCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeSoftwareVersionAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeSoftwareVersionAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -202,10 +160,7 @@ class BasicInformationCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeManufacturingDateAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeManufacturingDateAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -213,10 +168,7 @@ class BasicInformationCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribePartNumberAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribePartNumberAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -224,10 +176,7 @@ class BasicInformationCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeProductURLAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeProductURLAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -235,10 +184,7 @@ class BasicInformationCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeProductLabelAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeProductLabelAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -246,10 +192,7 @@ class BasicInformationCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeSerialNumberAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeSerialNumberAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -257,21 +200,15 @@ class BasicInformationCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun writeLocalConfigDisabledAttribute( - value: Boolean, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeLocalConfigDisabledAttribute(value: Boolean, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeLocalConfigDisabledAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeLocalConfigDisabledAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -279,10 +216,7 @@ class BasicInformationCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeReachableAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeReachableAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -290,10 +224,7 @@ class BasicInformationCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeUniqueIDAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeUniqueIDAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -323,10 +254,7 @@ class BasicInformationCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeSpecificationVersionAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeSpecificationVersionAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -334,10 +262,7 @@ class BasicInformationCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeMaxPathsPerInvokeAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeMaxPathsPerInvokeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -367,10 +292,7 @@ class BasicInformationCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -389,10 +311,7 @@ class BasicInformationCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -400,10 +319,7 @@ class BasicInformationCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BinaryInputBasicCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BinaryInputBasicCluster.kt index 1f1ef730adfcd1..a8da4754e7748f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BinaryInputBasicCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BinaryInputBasicCluster.kt @@ -20,42 +20,31 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class BinaryInputBasicCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) +class BinaryInputBasicCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readActiveTextAttribute(): CharString { // Implementation needs to be added here } - suspend fun writeActiveTextAttribute( - value: String, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeActiveTextAttribute(value: String, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeActiveTextAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeActiveTextAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -63,21 +52,15 @@ class BinaryInputBasicCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun writeDescriptionAttribute( - value: String, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeDescriptionAttribute(value: String, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeDescriptionAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeDescriptionAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -85,21 +68,15 @@ class BinaryInputBasicCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun writeInactiveTextAttribute( - value: String, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeInactiveTextAttribute(value: String, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInactiveTextAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeInactiveTextAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -107,21 +84,15 @@ class BinaryInputBasicCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun writeOutOfServiceAttribute( - value: Boolean, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeOutOfServiceAttribute(value: Boolean, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOutOfServiceAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeOutOfServiceAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -129,10 +100,7 @@ class BinaryInputBasicCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribePolarityAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribePolarityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -140,21 +108,15 @@ class BinaryInputBasicCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun writePresentValueAttribute( - value: Boolean, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writePresentValueAttribute(value: Boolean, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribePresentValueAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribePresentValueAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -162,21 +124,15 @@ class BinaryInputBasicCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun writeReliabilityAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeReliabilityAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeReliabilityAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeReliabilityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -184,10 +140,7 @@ class BinaryInputBasicCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeStatusFlagsAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeStatusFlagsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -195,10 +148,7 @@ class BinaryInputBasicCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeApplicationTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeApplicationTypeAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -228,10 +178,7 @@ class BinaryInputBasicCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -250,10 +197,7 @@ class BinaryInputBasicCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -261,10 +205,7 @@ class BinaryInputBasicCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BindingCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BindingCluster.kt index 4f56788097ff7d..824522c0a95f7d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BindingCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BindingCluster.kt @@ -21,52 +21,36 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class BindingCluster(private val controller: MatterController, private val endpointId: UShort) { - class BindingAttribute( - val value: List - ) + class BindingAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readBindingAttribute(): BindingAttribute { // Implementation needs to be added here } - suspend fun readBindingAttributeWithFabricFilter( - isFabricFiltered: Boolean - ): BindingAttribute { + suspend fun readBindingAttributeWithFabricFilter(isFabricFiltered: Boolean): BindingAttribute { // Implementation needs to be added here } - suspend fun writeBindingAttribute( value: List, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeBindingAttribute( - minInterval: Int, - maxInterval: Int - ): BindingAttribute { + suspend fun subscribeBindingAttribute(minInterval: Int, maxInterval: Int): BindingAttribute { // Implementation needs to be added here } @@ -96,10 +80,7 @@ class BindingCluster(private val controller: MatterController, private val endpo // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -118,10 +99,7 @@ class BindingCluster(private val controller: MatterController, private val endpo // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -129,10 +107,7 @@ class BindingCluster(private val controller: MatterController, private val endpo // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanSensorConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanSensorConfigurationCluster.kt index 6f8aacc11e2394..068aa709815206 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanSensorConfigurationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanSensorConfigurationCluster.kt @@ -20,22 +20,17 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class BooleanSensorConfigurationCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) +class BooleanSensorConfigurationCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun suppressRequest(alarmsToSuppress: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -44,28 +39,22 @@ class BooleanSensorConfigurationCluster(private val controller: MatterController // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readSensitivityLevelAttribute(): UByte { // Implementation needs to be added here } - suspend fun writeSensitivityLevelAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeSensitivityLevelAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeSensitivityLevelAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeSensitivityLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -73,10 +62,7 @@ class BooleanSensorConfigurationCluster(private val controller: MatterController // Implementation needs to be added here } - suspend fun subscribeAlarmsActiveAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeAlarmsActiveAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -84,10 +70,7 @@ class BooleanSensorConfigurationCluster(private val controller: MatterController // Implementation needs to be added here } - suspend fun subscribeAlarmsSuppressedAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeAlarmsSuppressedAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -95,21 +78,15 @@ class BooleanSensorConfigurationCluster(private val controller: MatterController // Implementation needs to be added here } - suspend fun writeAlarmsEnabledAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeAlarmsEnabledAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeAlarmsEnabledAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeAlarmsEnabledAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -139,10 +116,7 @@ class BooleanSensorConfigurationCluster(private val controller: MatterController // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -161,10 +135,7 @@ class BooleanSensorConfigurationCluster(private val controller: MatterController // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -172,10 +143,7 @@ class BooleanSensorConfigurationCluster(private val controller: MatterController // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanStateCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanStateCluster.kt index ec04ce9e691239..f8b8fa301c2ee1 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanStateCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanStateCluster.kt @@ -20,31 +20,23 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class BooleanStateCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) +class BooleanStateCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readStateValueAttribute(): Boolean { // Implementation needs to be added here } - suspend fun subscribeStateValueAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeStateValueAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -74,10 +66,7 @@ class BooleanStateCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -96,10 +85,7 @@ class BooleanStateCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -107,10 +93,7 @@ class BooleanStateCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BridgedDeviceBasicInformationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BridgedDeviceBasicInformationCluster.kt index c4ca1b7c339e70..6f16251fb84c31 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BridgedDeviceBasicInformationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BridgedDeviceBasicInformationCluster.kt @@ -20,35 +20,27 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class BridgedDeviceBasicInformationCluster(private val controller: MatterController, private val endpointId: UShort) { +class BridgedDeviceBasicInformationCluster( + private val controller: MatterController, + private val endpointId: UShort +) { class ProductAppearanceAttribute( val value: BridgedDeviceBasicInformationClusterProductAppearanceStruct? ) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readVendorNameAttribute(): CharString { // Implementation needs to be added here } - suspend fun subscribeVendorNameAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeVendorNameAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -56,10 +48,7 @@ class BridgedDeviceBasicInformationCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeVendorIDAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeVendorIDAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -67,10 +56,7 @@ class BridgedDeviceBasicInformationCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeProductNameAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeProductNameAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -78,21 +64,15 @@ class BridgedDeviceBasicInformationCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun writeNodeLabelAttribute( - value: String, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNodeLabelAttribute(value: String, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeNodeLabelAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeNodeLabelAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -100,10 +80,7 @@ class BridgedDeviceBasicInformationCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeHardwareVersionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeHardwareVersionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -122,10 +99,7 @@ class BridgedDeviceBasicInformationCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeSoftwareVersionAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeSoftwareVersionAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -144,10 +118,7 @@ class BridgedDeviceBasicInformationCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeManufacturingDateAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeManufacturingDateAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -155,10 +126,7 @@ class BridgedDeviceBasicInformationCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribePartNumberAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribePartNumberAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -166,10 +134,7 @@ class BridgedDeviceBasicInformationCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeProductURLAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeProductURLAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -177,10 +142,7 @@ class BridgedDeviceBasicInformationCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeProductLabelAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeProductLabelAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -188,10 +150,7 @@ class BridgedDeviceBasicInformationCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeSerialNumberAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeSerialNumberAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -199,10 +158,7 @@ class BridgedDeviceBasicInformationCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeReachableAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeReachableAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -210,10 +166,7 @@ class BridgedDeviceBasicInformationCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeUniqueIDAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeUniqueIDAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -254,10 +207,7 @@ class BridgedDeviceBasicInformationCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -276,10 +226,7 @@ class BridgedDeviceBasicInformationCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -287,10 +234,7 @@ class BridgedDeviceBasicInformationCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonDioxideConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonDioxideConcentrationMeasurementCluster.kt index 384bf228b15e11..9586beac02dbcc 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonDioxideConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonDioxideConcentrationMeasurementCluster.kt @@ -20,42 +20,27 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class CarbonDioxideConcentrationMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: Float? - ) +class CarbonDioxideConcentrationMeasurementCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class MeasuredValueAttribute(val value: Float?) - class MinMeasuredValueAttribute( - val value: Float? - ) + class MinMeasuredValueAttribute(val value: Float?) - class MaxMeasuredValueAttribute( - val value: Float? - ) + class MaxMeasuredValueAttribute(val value: Float?) - class PeakMeasuredValueAttribute( - val value: Float? - ) + class PeakMeasuredValueAttribute(val value: Float?) - class AverageMeasuredValueAttribute( - val value: Float? - ) + class AverageMeasuredValueAttribute(val value: Float?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -105,10 +90,7 @@ class CarbonDioxideConcentrationMeasurementCluster(private val controller: Matte // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -138,10 +120,7 @@ class CarbonDioxideConcentrationMeasurementCluster(private val controller: Matte // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute( - minInterval: Int, - maxInterval: Int - ): Float { + suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } @@ -149,10 +128,7 @@ class CarbonDioxideConcentrationMeasurementCluster(private val controller: Matte // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -160,10 +136,7 @@ class CarbonDioxideConcentrationMeasurementCluster(private val controller: Matte // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -171,10 +144,7 @@ class CarbonDioxideConcentrationMeasurementCluster(private val controller: Matte // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -204,10 +174,7 @@ class CarbonDioxideConcentrationMeasurementCluster(private val controller: Matte // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -226,10 +193,7 @@ class CarbonDioxideConcentrationMeasurementCluster(private val controller: Matte // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -237,10 +201,7 @@ class CarbonDioxideConcentrationMeasurementCluster(private val controller: Matte // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonMonoxideConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonMonoxideConcentrationMeasurementCluster.kt index 16f29e69d46764..fdb299760ce83a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonMonoxideConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonMonoxideConcentrationMeasurementCluster.kt @@ -20,42 +20,27 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class CarbonMonoxideConcentrationMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: Float? - ) +class CarbonMonoxideConcentrationMeasurementCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class MeasuredValueAttribute(val value: Float?) - class MinMeasuredValueAttribute( - val value: Float? - ) + class MinMeasuredValueAttribute(val value: Float?) - class MaxMeasuredValueAttribute( - val value: Float? - ) + class MaxMeasuredValueAttribute(val value: Float?) - class PeakMeasuredValueAttribute( - val value: Float? - ) + class PeakMeasuredValueAttribute(val value: Float?) - class AverageMeasuredValueAttribute( - val value: Float? - ) + class AverageMeasuredValueAttribute(val value: Float?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -105,10 +90,7 @@ class CarbonMonoxideConcentrationMeasurementCluster(private val controller: Matt // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -138,10 +120,7 @@ class CarbonMonoxideConcentrationMeasurementCluster(private val controller: Matt // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute( - minInterval: Int, - maxInterval: Int - ): Float { + suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } @@ -149,10 +128,7 @@ class CarbonMonoxideConcentrationMeasurementCluster(private val controller: Matt // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -160,10 +136,7 @@ class CarbonMonoxideConcentrationMeasurementCluster(private val controller: Matt // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -171,10 +144,7 @@ class CarbonMonoxideConcentrationMeasurementCluster(private val controller: Matt // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -204,10 +174,7 @@ class CarbonMonoxideConcentrationMeasurementCluster(private val controller: Matt // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -226,10 +193,7 @@ class CarbonMonoxideConcentrationMeasurementCluster(private val controller: Matt // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -237,10 +201,7 @@ class CarbonMonoxideConcentrationMeasurementCluster(private val controller: Matt // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ChannelCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ChannelCluster.kt index 6e2c43f24a6762..70cda55af0e17c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ChannelCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ChannelCluster.kt @@ -21,57 +21,47 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class ChannelCluster(private val controller: MatterController, private val endpointId: UShort) { - class ChangeChannelResponse( - val status: UInt, - val data: String? - ) + class ChangeChannelResponse(val status: UInt, val data: String?) - class ChannelListAttribute( - val value: List? - ) + class ChannelListAttribute(val value: List?) - class LineupAttribute( - val value: ChannelClusterLineupInfoStruct? - ) + class LineupAttribute(val value: ChannelClusterLineupInfoStruct?) - class CurrentChannelAttribute( - val value: ChannelClusterChannelInfoStruct? - ) + class CurrentChannelAttribute(val value: ChannelClusterChannelInfoStruct?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun changeChannel(match: String, timedInvokeTimeoutMs: Int? = null): ChangeChannelResponse { + suspend fun changeChannel( + match: String, + timedInvokeTimeoutMs: Int? = null + ): ChangeChannelResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun changeChannelByNumber(majorNumber: UShort, minorNumber: UShort, timedInvokeTimeoutMs: Int? = null) { + suspend fun changeChannelByNumber( + majorNumber: UShort, + minorNumber: UShort, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun skipChannel(count: Short, timedInvokeTimeoutMs: Int? = null) { @@ -81,7 +71,7 @@ class ChannelCluster(private val controller: MatterController, private val endpo // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readChannelListAttribute(): ChannelListAttribute { @@ -99,10 +89,7 @@ class ChannelCluster(private val controller: MatterController, private val endpo // Implementation needs to be added here } - suspend fun subscribeLineupAttribute( - minInterval: Int, - maxInterval: Int - ): LineupAttribute { + suspend fun subscribeLineupAttribute(minInterval: Int, maxInterval: Int): LineupAttribute { // Implementation needs to be added here } @@ -143,10 +130,7 @@ class ChannelCluster(private val controller: MatterController, private val endpo // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -165,10 +149,7 @@ class ChannelCluster(private val controller: MatterController, private val endpo // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -176,10 +157,7 @@ class ChannelCluster(private val controller: MatterController, private val endpo // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ColorControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ColorControlCluster.kt index 840c7bb561504b..1f30a7e219f96f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ColorControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ColorControlCluster.kt @@ -20,265 +20,364 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class ColorControlCluster(private val controller: MatterController, private val endpointId: UShort) { - class NumberOfPrimariesAttribute( - val value: UByte? - ) +class ColorControlCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class NumberOfPrimariesAttribute(val value: UByte?) - class Primary1IntensityAttribute( - val value: UByte? - ) + class Primary1IntensityAttribute(val value: UByte?) - class Primary2IntensityAttribute( - val value: UByte? - ) + class Primary2IntensityAttribute(val value: UByte?) - class Primary3IntensityAttribute( - val value: UByte? - ) + class Primary3IntensityAttribute(val value: UByte?) - class Primary4IntensityAttribute( - val value: UByte? - ) + class Primary4IntensityAttribute(val value: UByte?) - class Primary5IntensityAttribute( - val value: UByte? - ) + class Primary5IntensityAttribute(val value: UByte?) - class Primary6IntensityAttribute( - val value: UByte? - ) + class Primary6IntensityAttribute(val value: UByte?) - class ColorPointRIntensityAttribute( - val value: UByte? - ) + class ColorPointRIntensityAttribute(val value: UByte?) - class ColorPointGIntensityAttribute( - val value: UByte? - ) + class ColorPointGIntensityAttribute(val value: UByte?) - class ColorPointBIntensityAttribute( - val value: UByte? - ) + class ColorPointBIntensityAttribute(val value: UByte?) - class StartUpColorTemperatureMiredsAttribute( - val value: UShort? - ) + class StartUpColorTemperatureMiredsAttribute(val value: UShort?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun moveToHue(hue: UByte, direction: UInt, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun moveToHue( + hue: UByte, + direction: UInt, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun moveHue(moveMode: UInt, rate: UByte, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun moveHue( + moveMode: UInt, + rate: UByte, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 1L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun stepHue(stepMode: UInt, stepSize: UByte, transitionTime: UByte, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun stepHue( + stepMode: UInt, + stepSize: UByte, + transitionTime: UByte, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun moveToSaturation(saturation: UByte, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun moveToSaturation( + saturation: UByte, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 3L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun moveSaturation(moveMode: UInt, rate: UByte, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun moveSaturation( + moveMode: UInt, + rate: UByte, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 4L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun stepSaturation(stepMode: UInt, stepSize: UByte, transitionTime: UByte, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun stepSaturation( + stepMode: UInt, + stepSize: UByte, + transitionTime: UByte, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 5L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun moveToHueAndSaturation(hue: UByte, saturation: UByte, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun moveToHueAndSaturation( + hue: UByte, + saturation: UByte, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 6L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun moveToColor(colorX: UShort, colorY: UShort, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun moveToColor( + colorX: UShort, + colorY: UShort, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 7L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun moveColor(rateX: Short, rateY: Short, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun moveColor( + rateX: Short, + rateY: Short, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 8L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun stepColor(stepX: Short, stepY: Short, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun stepColor( + stepX: Short, + stepY: Short, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 9L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun moveToColorTemperature(colorTemperatureMireds: UShort, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun moveToColorTemperature( + colorTemperatureMireds: UShort, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 10L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun enhancedMoveToHue(enhancedHue: UShort, direction: UInt, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun enhancedMoveToHue( + enhancedHue: UShort, + direction: UInt, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 64L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun enhancedMoveHue(moveMode: UInt, rate: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun enhancedMoveHue( + moveMode: UInt, + rate: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 65L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun enhancedStepHue(stepMode: UInt, stepSize: UShort, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun enhancedStepHue( + stepMode: UInt, + stepSize: UShort, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 66L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun enhancedMoveToHueAndSaturation(enhancedHue: UShort, saturation: UByte, transitionTime: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun enhancedMoveToHueAndSaturation( + enhancedHue: UShort, + saturation: UByte, + transitionTime: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 67L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } - } - - suspend fun colorLoopSet(updateFlags: UInt, action: UInt, direction: UInt, time: UShort, startHue: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + } + } + + suspend fun colorLoopSet( + updateFlags: UInt, + action: UInt, + direction: UInt, + time: UShort, + startHue: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 68L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun stopMoveStep(optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun stopMoveStep( + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 71L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun moveColorTemperature(moveMode: UInt, rate: UShort, colorTemperatureMinimumMireds: UShort, colorTemperatureMaximumMireds: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun moveColorTemperature( + moveMode: UInt, + rate: UShort, + colorTemperatureMinimumMireds: UShort, + colorTemperatureMaximumMireds: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 75L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } - } - - suspend fun stepColorTemperature(stepMode: UInt, stepSize: UShort, transitionTime: UShort, colorTemperatureMinimumMireds: UShort, colorTemperatureMaximumMireds: UShort, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + } + } + + suspend fun stepColorTemperature( + stepMode: UInt, + stepSize: UShort, + transitionTime: UShort, + colorTemperatureMinimumMireds: UShort, + colorTemperatureMaximumMireds: UShort, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 76L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readCurrentHueAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeCurrentHueAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentHueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -286,10 +385,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeCurrentSaturationAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentSaturationAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -297,10 +393,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeRemainingTimeAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRemainingTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -308,10 +401,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeCurrentXAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeCurrentXAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -319,10 +409,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeCurrentYAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeCurrentYAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -330,10 +417,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeDriftCompensationAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeDriftCompensationAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -341,10 +425,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeCompensationTextAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeCompensationTextAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -352,10 +433,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeColorTemperatureMiredsAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeColorTemperatureMiredsAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -363,10 +441,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeColorModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeColorModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -374,21 +449,15 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun writeOptionsAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeOptionsAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOptionsAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeOptionsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -407,10 +476,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribePrimary1XAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePrimary1XAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -418,10 +484,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribePrimary1YAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePrimary1YAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -440,10 +503,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribePrimary2XAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePrimary2XAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -451,10 +511,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribePrimary2YAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePrimary2YAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -473,10 +530,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribePrimary3XAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePrimary3XAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -484,10 +538,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribePrimary3YAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePrimary3YAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -506,10 +557,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribePrimary4XAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePrimary4XAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -517,10 +565,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribePrimary4YAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePrimary4YAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -539,10 +584,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribePrimary5XAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePrimary5XAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -550,10 +592,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribePrimary5YAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePrimary5YAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -572,10 +611,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribePrimary6XAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePrimary6XAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -583,10 +619,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribePrimary6YAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePrimary6YAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -605,21 +638,15 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun writeWhitePointXAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeWhitePointXAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeWhitePointXAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeWhitePointXAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -627,21 +654,15 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun writeWhitePointYAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeWhitePointYAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeWhitePointYAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeWhitePointYAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -649,21 +670,15 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun writeColorPointRXAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeColorPointRXAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeColorPointRXAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeColorPointRXAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -671,21 +686,15 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun writeColorPointRYAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeColorPointRYAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeColorPointRYAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeColorPointRYAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -693,15 +702,12 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun writeColorPointRIntensityAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeColorPointRIntensityAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeColorPointRIntensityAttribute( @@ -715,21 +721,15 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun writeColorPointGXAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeColorPointGXAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeColorPointGXAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeColorPointGXAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -737,21 +737,15 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun writeColorPointGYAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeColorPointGYAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeColorPointGYAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeColorPointGYAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -759,15 +753,12 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun writeColorPointGIntensityAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeColorPointGIntensityAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeColorPointGIntensityAttribute( @@ -781,21 +772,15 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun writeColorPointBXAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeColorPointBXAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeColorPointBXAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeColorPointBXAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -803,21 +788,15 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun writeColorPointBYAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeColorPointBYAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeColorPointBYAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeColorPointBYAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -825,15 +804,12 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun writeColorPointBIntensityAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeColorPointBIntensityAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeColorPointBIntensityAttribute( @@ -847,10 +823,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeEnhancedCurrentHueAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeEnhancedCurrentHueAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -858,10 +831,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeEnhancedColorModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeEnhancedColorModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -869,10 +839,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeColorLoopActiveAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeColorLoopActiveAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -880,10 +847,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeColorLoopDirectionAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeColorLoopDirectionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -891,10 +855,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeColorLoopTimeAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeColorLoopTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -924,10 +885,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeColorCapabilitiesAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeColorCapabilitiesAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -970,13 +928,13 @@ class ColorControlCluster(private val controller: MatterController, private val suspend fun writeStartUpColorTemperatureMiredsAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeStartUpColorTemperatureMiredsAttribute( @@ -1012,10 +970,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -1034,10 +989,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -1045,10 +997,7 @@ class ColorControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ContentLauncherCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ContentLauncherCluster.kt index 25acd765d5ada7..d91c75e898b7ef 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ContentLauncherCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ContentLauncherCluster.kt @@ -20,50 +20,50 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class ContentLauncherCluster(private val controller: MatterController, private val endpointId: UShort) { - class LauncherResponse( - val status: UInt, - val data: String? - ) +class ContentLauncherCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class LauncherResponse(val status: UInt, val data: String?) - class AcceptHeaderAttribute( - val value: List? - ) + class AcceptHeaderAttribute(val value: List?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun launchContent(search: ContentLauncherClusterContentSearchStruct, autoPlay: Boolean, data: String?, timedInvokeTimeoutMs: Int? = null): LauncherResponse { + suspend fun launchContent( + search: ContentLauncherClusterContentSearchStruct, + autoPlay: Boolean, + data: String?, + timedInvokeTimeoutMs: Int? = null + ): LauncherResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun launchURL(contentURL: String, displayString: String?, brandingInformation: ContentLauncherClusterBrandingInformationStruct?, timedInvokeTimeoutMs: Int? = null): LauncherResponse { + suspend fun launchURL( + contentURL: String, + displayString: String?, + brandingInformation: ContentLauncherClusterBrandingInformationStruct?, + timedInvokeTimeoutMs: Int? = null + ): LauncherResponse { val commandId = 1L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readAcceptHeaderAttribute(): AcceptHeaderAttribute { @@ -114,10 +114,7 @@ class ContentLauncherCluster(private val controller: MatterController, private v // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -136,10 +133,7 @@ class ContentLauncherCluster(private val controller: MatterController, private v // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -147,10 +141,7 @@ class ContentLauncherCluster(private val controller: MatterController, private v // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DemandResponseLoadControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DemandResponseLoadControlCluster.kt index f4e33a04ee8846..2f61d6f7b0c5db 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DemandResponseLoadControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DemandResponseLoadControlCluster.kt @@ -20,73 +20,79 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class DemandResponseLoadControlCluster(private val controller: MatterController, private val endpointId: UShort) { +class DemandResponseLoadControlCluster( + private val controller: MatterController, + private val endpointId: UShort +) { class LoadControlProgramsAttribute( val value: List ) - class EventsAttribute( - val value: List - ) + class EventsAttribute(val value: List) class ActiveEventsAttribute( val value: List ) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun registerLoadControlProgramRequest(loadControlProgram: DemandResponseLoadControlClusterLoadControlProgramStruct, timedInvokeTimeoutMs: Int? = null) { + suspend fun registerLoadControlProgramRequest( + loadControlProgram: DemandResponseLoadControlClusterLoadControlProgramStruct, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun unregisterLoadControlProgramRequest(loadControlProgramID: ByteArray, timedInvokeTimeoutMs: Int? = null) { + suspend fun unregisterLoadControlProgramRequest( + loadControlProgramID: ByteArray, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 1L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun addLoadControlEventRequest(event: DemandResponseLoadControlClusterLoadControlEventStruct, timedInvokeTimeoutMs: Int? = null) { + suspend fun addLoadControlEventRequest( + event: DemandResponseLoadControlClusterLoadControlEventStruct, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun removeLoadControlEventRequest(eventID: ByteArray, cancelControl: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun removeLoadControlEventRequest( + eventID: ByteArray, + cancelControl: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 3L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun clearLoadControlEventsRequest(timedInvokeTimeoutMs: Int? = null) { @@ -96,7 +102,7 @@ class DemandResponseLoadControlCluster(private val controller: MatterController, // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readLoadControlProgramsAttribute(): LoadControlProgramsAttribute { @@ -125,10 +131,7 @@ class DemandResponseLoadControlCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeEventsAttribute( - minInterval: Int, - maxInterval: Int - ): EventsAttribute { + suspend fun subscribeEventsAttribute(minInterval: Int, maxInterval: Int): EventsAttribute { // Implementation needs to be added here } @@ -158,10 +161,7 @@ class DemandResponseLoadControlCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeNumberOfTransitionsAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeNumberOfTransitionsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -169,21 +169,15 @@ class DemandResponseLoadControlCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun writeDefaultRandomStartAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeDefaultRandomStartAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeDefaultRandomStartAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeDefaultRandomStartAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -191,21 +185,15 @@ class DemandResponseLoadControlCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun writeDefaultRandomDurationAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeDefaultRandomDurationAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeDefaultRandomDurationAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeDefaultRandomDurationAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -235,10 +223,7 @@ class DemandResponseLoadControlCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -257,10 +242,7 @@ class DemandResponseLoadControlCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -268,10 +250,7 @@ class DemandResponseLoadControlCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DescriptorCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DescriptorCluster.kt index 8fbb863bb17e76..109cefa90c030a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DescriptorCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DescriptorCluster.kt @@ -21,41 +21,23 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class DescriptorCluster(private val controller: MatterController, private val endpointId: UShort) { - class DeviceTypeListAttribute( - val value: List - ) + class DeviceTypeListAttribute(val value: List) - class ServerListAttribute( - val value: List - ) + class ServerListAttribute(val value: List) - class ClientListAttribute( - val value: List - ) + class ClientListAttribute(val value: List) - class PartsListAttribute( - val value: List - ) + class PartsListAttribute(val value: List) - class TagListAttribute( - val value: List? - ) + class TagListAttribute(val value: List?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readDeviceTypeListAttribute(): DeviceTypeListAttribute { // Implementation needs to be added here @@ -94,10 +76,7 @@ class DescriptorCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribePartsListAttribute( - minInterval: Int, - maxInterval: Int - ): PartsListAttribute { + suspend fun subscribePartsListAttribute(minInterval: Int, maxInterval: Int): PartsListAttribute { // Implementation needs to be added here } @@ -105,10 +84,7 @@ class DescriptorCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeTagListAttribute( - minInterval: Int, - maxInterval: Int - ): TagListAttribute { + suspend fun subscribeTagListAttribute(minInterval: Int, maxInterval: Int): TagListAttribute { // Implementation needs to be added here } @@ -138,10 +114,7 @@ class DescriptorCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -160,10 +133,7 @@ class DescriptorCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -171,10 +141,7 @@ class DescriptorCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DiagnosticLogsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DiagnosticLogsCluster.kt index 726b4072aac4d3..13b9d53a1f6740 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DiagnosticLogsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DiagnosticLogsCluster.kt @@ -20,38 +20,38 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class DiagnosticLogsCluster(private val controller: MatterController, private val endpointId: UShort) { +class DiagnosticLogsCluster( + private val controller: MatterController, + private val endpointId: UShort +) { class RetrieveLogsResponse( - val status: UInt, - val logContent: ByteArray, - val UTCTimeStamp: ULong?, + val status: UInt, + val logContent: ByteArray, + val UTCTimeStamp: ULong?, val timeSinceBoot: ULong? ) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun retrieveLogsRequest(intent: UInt, requestedProtocol: UInt, transferFileDesignator: String?, timedInvokeTimeoutMs: Int? = null): RetrieveLogsResponse { + suspend fun retrieveLogsRequest( + intent: UInt, + requestedProtocol: UInt, + transferFileDesignator: String?, + timedInvokeTimeoutMs: Int? = null + ): RetrieveLogsResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { @@ -80,10 +80,7 @@ class DiagnosticLogsCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -102,10 +99,7 @@ class DiagnosticLogsCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -113,10 +107,7 @@ class DiagnosticLogsCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherAlarmCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherAlarmCluster.kt index ef4777fe3527f7..e0d986f2c59042 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherAlarmCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherAlarmCluster.kt @@ -20,22 +20,17 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class DishwasherAlarmCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) +class DishwasherAlarmCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun reset(alarms: ULong, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -44,7 +39,7 @@ class DishwasherAlarmCluster(private val controller: MatterController, private v // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun modifyEnabledAlarms(mask: ULong, timedInvokeTimeoutMs: Int? = null) { @@ -54,17 +49,14 @@ class DishwasherAlarmCluster(private val controller: MatterController, private v // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readMaskAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeMaskAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeMaskAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -72,10 +64,7 @@ class DishwasherAlarmCluster(private val controller: MatterController, private v // Implementation needs to be added here } - suspend fun subscribeLatchAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeLatchAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -83,10 +72,7 @@ class DishwasherAlarmCluster(private val controller: MatterController, private v // Implementation needs to be added here } - suspend fun subscribeStateAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeStateAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -94,10 +80,7 @@ class DishwasherAlarmCluster(private val controller: MatterController, private v // Implementation needs to be added here } - suspend fun subscribeSupportedAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeSupportedAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -127,10 +110,7 @@ class DishwasherAlarmCluster(private val controller: MatterController, private v // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -149,10 +129,7 @@ class DishwasherAlarmCluster(private val controller: MatterController, private v // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -160,10 +137,7 @@ class DishwasherAlarmCluster(private val controller: MatterController, private v // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherModeCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherModeCluster.kt index 157bfa898d06cf..5352d16f02443c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherModeCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherModeCluster.kt @@ -20,48 +20,37 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class DishwasherModeCluster(private val controller: MatterController, private val endpointId: UShort) { - class ChangeToModeResponse( - val status: UInt, - val statusText: String? - ) +class DishwasherModeCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class ChangeToModeResponse(val status: UInt, val statusText: String?) - class SupportedModesAttribute( - val value: List - ) + class SupportedModesAttribute(val value: List) - class StartUpModeAttribute( - val value: UByte? - ) + class StartUpModeAttribute(val value: UByte?) - class OnModeAttribute( - val value: UByte? - ) + class OnModeAttribute(val value: UByte?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int? = null): ChangeToModeResponse { + suspend fun changeToMode( + newMode: UByte, + timedInvokeTimeoutMs: Int? = null + ): ChangeToModeResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readSupportedModesAttribute(): SupportedModesAttribute { @@ -79,10 +68,7 @@ class DishwasherModeCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -90,15 +76,12 @@ class DishwasherModeCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun writeStartUpModeAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeStartUpModeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeStartUpModeAttribute( @@ -112,21 +95,15 @@ class DishwasherModeCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun writeOnModeAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeOnModeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOnModeAttribute( - minInterval: Int, - maxInterval: Int - ): OnModeAttribute { + suspend fun subscribeOnModeAttribute(minInterval: Int, maxInterval: Int): OnModeAttribute { // Implementation needs to be added here } @@ -156,10 +133,7 @@ class DishwasherModeCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -178,10 +152,7 @@ class DishwasherModeCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -189,10 +160,7 @@ class DishwasherModeCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DoorLockCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DoorLockCluster.kt index 600bcb5b01947a..efe90d407177d7 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DoorLockCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DoorLockCluster.kt @@ -22,179 +22,207 @@ import matter.devicecontroller.cluster.structs.* class DoorLockCluster(private val controller: MatterController, private val endpointId: UShort) { class GetWeekDayScheduleResponse( - val weekDayIndex: UByte, - val userIndex: UShort, - val status: UInt, - val daysMask: UInt?, - val startHour: UByte?, - val startMinute: UByte?, - val endHour: UByte?, + val weekDayIndex: UByte, + val userIndex: UShort, + val status: UInt, + val daysMask: UInt?, + val startHour: UByte?, + val startMinute: UByte?, + val endHour: UByte?, val endMinute: UByte? ) class GetYearDayScheduleResponse( - val yearDayIndex: UByte, - val userIndex: UShort, - val status: UInt, - val localStartTime: UInt?, + val yearDayIndex: UByte, + val userIndex: UShort, + val status: UInt, + val localStartTime: UInt?, val localEndTime: UInt? ) class GetHolidayScheduleResponse( - val holidayIndex: UByte, - val status: UInt, - val localStartTime: UInt?, - val localEndTime: UInt?, + val holidayIndex: UByte, + val status: UInt, + val localStartTime: UInt?, + val localEndTime: UInt?, val operatingMode: UInt? ) class GetUserResponse( - val userIndex: UShort, - val userName: String?, - val userUniqueID: UInt?, - val userStatus: UInt?, - val userType: UInt?, - val credentialRule: UInt?, - val credentials: List?, - val creatorFabricIndex: UByte?, - val lastModifiedFabricIndex: UByte?, + val userIndex: UShort, + val userName: String?, + val userUniqueID: UInt?, + val userStatus: UInt?, + val userType: UInt?, + val credentialRule: UInt?, + val credentials: List?, + val creatorFabricIndex: UByte?, + val lastModifiedFabricIndex: UByte?, val nextUserIndex: UShort? ) class SetCredentialResponse( - val status: UInt, - val userIndex: UShort?, + val status: UInt, + val userIndex: UShort?, val nextCredentialIndex: UShort? ) class GetCredentialStatusResponse( - val credentialExists: Boolean, - val userIndex: UShort?, - val creatorFabricIndex: UByte?, - val lastModifiedFabricIndex: UByte?, + val credentialExists: Boolean, + val userIndex: UShort?, + val creatorFabricIndex: UByte?, + val lastModifiedFabricIndex: UByte?, val nextCredentialIndex: UShort? ) - class LockStateAttribute( - val value: UInt? - ) + class LockStateAttribute(val value: UInt?) - class DoorStateAttribute( - val value: UInt? - ) + class DoorStateAttribute(val value: UInt?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun lockDoor(PINCode: ByteArray?, timedInvokeTimeoutMs: Int) { val commandId = 0L - // Implementation needs to be added here + // Implementation needs to be added here } suspend fun unlockDoor(PINCode: ByteArray?, timedInvokeTimeoutMs: Int) { val commandId = 1L - // Implementation needs to be added here + // Implementation needs to be added here } suspend fun unlockWithTimeout(timeout: UShort, PINCode: ByteArray?, timedInvokeTimeoutMs: Int) { val commandId = 3L - // Implementation needs to be added here + // Implementation needs to be added here } - suspend fun setWeekDaySchedule(weekDayIndex: UByte, userIndex: UShort, daysMask: UInt, startHour: UByte, startMinute: UByte, endHour: UByte, endMinute: UByte, timedInvokeTimeoutMs: Int? = null) { + suspend fun setWeekDaySchedule( + weekDayIndex: UByte, + userIndex: UShort, + daysMask: UInt, + startHour: UByte, + startMinute: UByte, + endHour: UByte, + endMinute: UByte, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 11L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun getWeekDaySchedule(weekDayIndex: UByte, userIndex: UShort, timedInvokeTimeoutMs: Int? = null): GetWeekDayScheduleResponse { + suspend fun getWeekDaySchedule( + weekDayIndex: UByte, + userIndex: UShort, + timedInvokeTimeoutMs: Int? = null + ): GetWeekDayScheduleResponse { val commandId = 12L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun clearWeekDaySchedule(weekDayIndex: UByte, userIndex: UShort, timedInvokeTimeoutMs: Int? = null) { + suspend fun clearWeekDaySchedule( + weekDayIndex: UByte, + userIndex: UShort, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 13L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun setYearDaySchedule(yearDayIndex: UByte, userIndex: UShort, localStartTime: UInt, localEndTime: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun setYearDaySchedule( + yearDayIndex: UByte, + userIndex: UShort, + localStartTime: UInt, + localEndTime: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 14L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun getYearDaySchedule(yearDayIndex: UByte, userIndex: UShort, timedInvokeTimeoutMs: Int? = null): GetYearDayScheduleResponse { + suspend fun getYearDaySchedule( + yearDayIndex: UByte, + userIndex: UShort, + timedInvokeTimeoutMs: Int? = null + ): GetYearDayScheduleResponse { val commandId = 15L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun clearYearDaySchedule(yearDayIndex: UByte, userIndex: UShort, timedInvokeTimeoutMs: Int? = null) { + suspend fun clearYearDaySchedule( + yearDayIndex: UByte, + userIndex: UShort, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 16L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun setHolidaySchedule(holidayIndex: UByte, localStartTime: UInt, localEndTime: UInt, operatingMode: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun setHolidaySchedule( + holidayIndex: UByte, + localStartTime: UInt, + localEndTime: UInt, + operatingMode: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 17L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun getHolidaySchedule(holidayIndex: UByte, timedInvokeTimeoutMs: Int? = null): GetHolidayScheduleResponse { + suspend fun getHolidaySchedule( + holidayIndex: UByte, + timedInvokeTimeoutMs: Int? = null + ): GetHolidayScheduleResponse { val commandId = 18L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun clearHolidaySchedule(holidayIndex: UByte, timedInvokeTimeoutMs: Int? = null) { @@ -204,13 +232,22 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } - } - - suspend fun setUser(operationType: UInt, userIndex: UShort, userName: String?, userUniqueID: UInt?, userStatus: UInt?, userType: UInt?, credentialRule: UInt?, timedInvokeTimeoutMs: Int) { + } + } + + suspend fun setUser( + operationType: UInt, + userIndex: UShort, + userName: String?, + userUniqueID: UInt?, + userStatus: UInt?, + userType: UInt?, + credentialRule: UInt?, + timedInvokeTimeoutMs: Int + ) { val commandId = 26L - // Implementation needs to be added here + // Implementation needs to be added here } suspend fun getUser(userIndex: UShort, timedInvokeTimeoutMs: Int? = null): GetUserResponse { @@ -220,51 +257,62 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun clearUser(userIndex: UShort, timedInvokeTimeoutMs: Int) { val commandId = 29L - // Implementation needs to be added here + // Implementation needs to be added here } - suspend fun setCredential(operationType: UInt, credential: DoorLockClusterCredentialStruct, credentialData: ByteArray, userIndex: UShort?, userStatus: UInt?, userType: UInt?, timedInvokeTimeoutMs: Int): SetCredentialResponse { + suspend fun setCredential( + operationType: UInt, + credential: DoorLockClusterCredentialStruct, + credentialData: ByteArray, + userIndex: UShort?, + userStatus: UInt?, + userType: UInt?, + timedInvokeTimeoutMs: Int + ): SetCredentialResponse { val commandId = 34L - // Implementation needs to be added here + // Implementation needs to be added here } - suspend fun getCredentialStatus(credential: DoorLockClusterCredentialStruct, timedInvokeTimeoutMs: Int? = null): GetCredentialStatusResponse { + suspend fun getCredentialStatus( + credential: DoorLockClusterCredentialStruct, + timedInvokeTimeoutMs: Int? = null + ): GetCredentialStatusResponse { val commandId = 36L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun clearCredential(credential: DoorLockClusterCredentialStruct?, timedInvokeTimeoutMs: Int) { + suspend fun clearCredential( + credential: DoorLockClusterCredentialStruct?, + timedInvokeTimeoutMs: Int + ) { val commandId = 38L - // Implementation needs to be added here + // Implementation needs to be added here } suspend fun unboltDoor(PINCode: ByteArray?, timedInvokeTimeoutMs: Int) { val commandId = 39L - // Implementation needs to be added here + // Implementation needs to be added here } suspend fun readLockStateAttribute(): LockStateAttribute { // Implementation needs to be added here } - suspend fun subscribeLockStateAttribute( - minInterval: Int, - maxInterval: Int - ): LockStateAttribute { + suspend fun subscribeLockStateAttribute(minInterval: Int, maxInterval: Int): LockStateAttribute { // Implementation needs to be added here } @@ -272,10 +320,7 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeLockTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLockTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -283,10 +328,7 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeActuatorEnabledAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeActuatorEnabledAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -294,10 +336,7 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeDoorStateAttribute( - minInterval: Int, - maxInterval: Int - ): DoorStateAttribute { + suspend fun subscribeDoorStateAttribute(minInterval: Int, maxInterval: Int): DoorStateAttribute { // Implementation needs to be added here } @@ -305,21 +344,15 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeDoorOpenEventsAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeDoorOpenEventsAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeDoorOpenEventsAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeDoorOpenEventsAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -327,21 +360,15 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeDoorClosedEventsAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeDoorClosedEventsAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeDoorClosedEventsAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeDoorClosedEventsAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -349,21 +376,15 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeOpenPeriodAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeOpenPeriodAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOpenPeriodAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeOpenPeriodAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -437,10 +458,7 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeMaxPINCodeLengthAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMaxPINCodeLengthAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -448,10 +466,7 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeMinPINCodeLengthAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMinPINCodeLengthAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -459,10 +474,7 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeMaxRFIDCodeLengthAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMaxRFIDCodeLengthAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -470,10 +482,7 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeMinRFIDCodeLengthAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMinRFIDCodeLengthAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -481,10 +490,7 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeCredentialRulesSupportAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCredentialRulesSupportAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -503,21 +509,15 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeLanguageAttribute( - value: String, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeLanguageAttribute(value: String, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeLanguageAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeLanguageAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -525,21 +525,15 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeLEDSettingsAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeLEDSettingsAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeLEDSettingsAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLEDSettingsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -547,21 +541,15 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeAutoRelockTimeAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeAutoRelockTimeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeAutoRelockTimeAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeAutoRelockTimeAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -569,21 +557,15 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeSoundVolumeAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeSoundVolumeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeSoundVolumeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeSoundVolumeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -591,21 +573,15 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeOperatingModeAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeOperatingModeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOperatingModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeOperatingModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -637,13 +613,13 @@ class DoorLockCluster(private val controller: MatterController, private val endp suspend fun writeEnableLocalProgrammingAttribute( value: Boolean, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeEnableLocalProgrammingAttribute( @@ -659,19 +635,16 @@ class DoorLockCluster(private val controller: MatterController, private val endp suspend fun writeEnableOneTouchLockingAttribute( value: Boolean, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeEnableOneTouchLockingAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeEnableOneTouchLockingAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -681,19 +654,16 @@ class DoorLockCluster(private val controller: MatterController, private val endp suspend fun writeEnableInsideStatusLEDAttribute( value: Boolean, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeEnableInsideStatusLEDAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeEnableInsideStatusLEDAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -703,13 +673,13 @@ class DoorLockCluster(private val controller: MatterController, private val endp suspend fun writeEnablePrivacyModeButtonAttribute( value: Boolean, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeEnablePrivacyModeButtonAttribute( @@ -725,13 +695,13 @@ class DoorLockCluster(private val controller: MatterController, private val endp suspend fun writeLocalProgrammingFeaturesAttribute( value: UInt, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeLocalProgrammingFeaturesAttribute( @@ -745,21 +715,15 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeWrongCodeEntryLimitAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeWrongCodeEntryLimitAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeWrongCodeEntryLimitAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeWrongCodeEntryLimitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -769,13 +733,13 @@ class DoorLockCluster(private val controller: MatterController, private val endp suspend fun writeUserCodeTemporaryDisableTimeAttribute( value: UByte, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeUserCodeTemporaryDisableTimeAttribute( @@ -789,21 +753,15 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeSendPINOverTheAirAttribute( - value: Boolean, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeSendPINOverTheAirAttribute(value: Boolean, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeSendPINOverTheAirAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeSendPINOverTheAirAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -813,13 +771,13 @@ class DoorLockCluster(private val controller: MatterController, private val endp suspend fun writeRequirePINforRemoteOperationAttribute( value: Boolean, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeRequirePINforRemoteOperationAttribute( @@ -833,21 +791,15 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeExpiringUserTimeoutAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeExpiringUserTimeoutAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeExpiringUserTimeoutAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeExpiringUserTimeoutAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -877,10 +829,7 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -899,10 +848,7 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -910,10 +856,7 @@ class DoorLockCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ElectricalMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ElectricalMeasurementCluster.kt index 13bd2d1f4e2de6..9e3ed080f8c3f6 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ElectricalMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ElectricalMeasurementCluster.kt @@ -20,22 +20,17 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class ElectricalMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) +class ElectricalMeasurementCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun getProfileInfoCommand(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -44,27 +39,29 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun getMeasurementProfileCommand(attributeId: UShort, startTime: UInt, numberOfIntervals: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun getMeasurementProfileCommand( + attributeId: UShort, + startTime: UInt, + numberOfIntervals: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 1L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readMeasurementTypeAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeMeasurementTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeMeasurementTypeAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -72,10 +69,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeDcVoltageAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeDcVoltageAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -83,10 +77,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeDcVoltageMinAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeDcVoltageMinAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -94,10 +85,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeDcVoltageMaxAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeDcVoltageMaxAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -105,10 +93,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeDcCurrentAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeDcCurrentAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -116,10 +101,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeDcCurrentMinAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeDcCurrentMinAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -127,10 +109,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeDcCurrentMaxAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeDcCurrentMaxAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -138,10 +117,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeDcPowerAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeDcPowerAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -149,10 +125,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeDcPowerMinAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeDcPowerMinAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -160,10 +133,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeDcPowerMaxAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeDcPowerMaxAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -171,10 +141,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeDcVoltageMultiplierAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeDcVoltageMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -182,10 +149,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeDcVoltageDivisorAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeDcVoltageDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -193,10 +157,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeDcCurrentMultiplierAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeDcCurrentMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -204,10 +165,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeDcCurrentDivisorAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeDcCurrentDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -215,10 +173,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeDcPowerMultiplierAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeDcPowerMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -226,10 +181,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeDcPowerDivisorAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeDcPowerDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -237,10 +189,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeAcFrequencyAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAcFrequencyAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -248,10 +197,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeAcFrequencyMinAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAcFrequencyMinAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -259,10 +205,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeAcFrequencyMaxAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAcFrequencyMaxAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -270,10 +213,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeNeutralCurrentAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeNeutralCurrentAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -281,10 +221,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeTotalActivePowerAttribute( - minInterval: Int, - maxInterval: Int - ): Int { + suspend fun subscribeTotalActivePowerAttribute(minInterval: Int, maxInterval: Int): Int { // Implementation needs to be added here } @@ -292,10 +229,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeTotalReactivePowerAttribute( - minInterval: Int, - maxInterval: Int - ): Int { + suspend fun subscribeTotalReactivePowerAttribute(minInterval: Int, maxInterval: Int): Int { // Implementation needs to be added here } @@ -303,10 +237,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeTotalApparentPowerAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTotalApparentPowerAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -446,10 +377,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeAcFrequencyMultiplierAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAcFrequencyMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -457,10 +385,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeAcFrequencyDivisorAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAcFrequencyDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -468,10 +393,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribePowerMultiplierAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribePowerMultiplierAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -479,10 +401,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribePowerDivisorAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribePowerDivisorAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -512,10 +431,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeInstantaneousVoltageAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeInstantaneousVoltageAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -556,10 +472,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeInstantaneousPowerAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeInstantaneousPowerAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -567,10 +480,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeRmsVoltageAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsVoltageAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -578,10 +488,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeRmsVoltageMinAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsVoltageMinAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -589,10 +496,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeRmsVoltageMaxAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsVoltageMaxAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -600,10 +504,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeRmsCurrentAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsCurrentAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -611,10 +512,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeRmsCurrentMinAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsCurrentMinAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -622,10 +520,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeRmsCurrentMaxAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsCurrentMaxAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -633,10 +528,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeActivePowerAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeActivePowerAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -644,10 +536,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeActivePowerMinAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeActivePowerMinAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -655,10 +544,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeActivePowerMaxAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeActivePowerMaxAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -666,10 +552,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeReactivePowerAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeReactivePowerAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -677,10 +560,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeApparentPowerAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeApparentPowerAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -688,10 +568,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribePowerFactorAttribute( - minInterval: Int, - maxInterval: Int - ): Byte { + suspend fun subscribePowerFactorAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } @@ -701,13 +578,13 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri suspend fun writeAverageRmsVoltageMeasurementPeriodAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeAverageRmsVoltageMeasurementPeriodAttribute( @@ -723,13 +600,13 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri suspend fun writeAverageRmsUnderVoltageCounterAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeAverageRmsUnderVoltageCounterAttribute( @@ -745,13 +622,13 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri suspend fun writeRmsExtremeOverVoltagePeriodAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeRmsExtremeOverVoltagePeriodAttribute( @@ -767,13 +644,13 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri suspend fun writeRmsExtremeUnderVoltagePeriodAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeRmsExtremeUnderVoltagePeriodAttribute( @@ -787,21 +664,15 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun writeRmsVoltageSagPeriodAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeRmsVoltageSagPeriodAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeRmsVoltageSagPeriodAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsVoltageSagPeriodAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -809,21 +680,15 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun writeRmsVoltageSwellPeriodAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeRmsVoltageSwellPeriodAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeRmsVoltageSwellPeriodAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsVoltageSwellPeriodAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -831,10 +696,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeAcVoltageMultiplierAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAcVoltageMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -842,10 +704,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeAcVoltageDivisorAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAcVoltageDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -853,10 +712,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeAcCurrentMultiplierAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAcCurrentMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -864,10 +720,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeAcCurrentDivisorAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAcCurrentDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -875,10 +728,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeAcPowerMultiplierAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAcPowerMultiplierAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -886,10 +736,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeAcPowerDivisorAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAcPowerDivisorAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -897,21 +744,15 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun writeOverloadAlarmsMaskAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeOverloadAlarmsMaskAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOverloadAlarmsMaskAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeOverloadAlarmsMaskAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -919,10 +760,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeVoltageOverloadAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeVoltageOverloadAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -930,10 +768,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeCurrentOverloadAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeCurrentOverloadAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -941,21 +776,15 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun writeAcOverloadAlarmsMaskAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeAcOverloadAlarmsMaskAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeAcOverloadAlarmsMaskAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAcOverloadAlarmsMaskAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -963,10 +792,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeAcVoltageOverloadAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeAcVoltageOverloadAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -974,10 +800,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeAcCurrentOverloadAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeAcCurrentOverloadAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -985,10 +808,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeAcActivePowerOverloadAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeAcActivePowerOverloadAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -996,10 +816,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeAcReactivePowerOverloadAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeAcReactivePowerOverloadAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1007,10 +824,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeAverageRmsOverVoltageAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeAverageRmsOverVoltageAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1018,10 +832,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeAverageRmsUnderVoltageAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeAverageRmsUnderVoltageAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1029,10 +840,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeRmsExtremeOverVoltageAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeRmsExtremeOverVoltageAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1040,10 +848,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeRmsExtremeUnderVoltageAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeRmsExtremeUnderVoltageAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1051,10 +856,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeRmsVoltageSagAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeRmsVoltageSagAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1062,10 +864,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeRmsVoltageSwellAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeRmsVoltageSwellAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1073,10 +872,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeLineCurrentPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeLineCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1084,10 +880,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeActiveCurrentPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeActiveCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1095,10 +888,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeReactiveCurrentPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeReactiveCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1106,10 +896,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeRmsVoltagePhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsVoltagePhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1117,10 +904,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeRmsVoltageMinPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsVoltageMinPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1128,10 +912,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeRmsVoltageMaxPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsVoltageMaxPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1139,10 +920,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeRmsCurrentPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsCurrentPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1150,10 +928,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeRmsCurrentMinPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsCurrentMinPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1161,10 +936,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeRmsCurrentMaxPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsCurrentMaxPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1172,10 +944,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeActivePowerPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeActivePowerPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1183,10 +952,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeActivePowerMinPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeActivePowerMinPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1194,10 +960,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeActivePowerMaxPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeActivePowerMaxPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1205,10 +968,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeReactivePowerPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeReactivePowerPhaseBAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1216,10 +976,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeApparentPowerPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeApparentPowerPhaseBAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1227,10 +984,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribePowerFactorPhaseBAttribute( - minInterval: Int, - maxInterval: Int - ): Byte { + suspend fun subscribePowerFactorPhaseBAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } @@ -1315,10 +1069,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeLineCurrentPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeLineCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1326,10 +1077,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeActiveCurrentPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeActiveCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1337,10 +1085,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeReactiveCurrentPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeReactiveCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1348,10 +1093,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeRmsVoltagePhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsVoltagePhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1359,10 +1101,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeRmsVoltageMinPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsVoltageMinPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1370,10 +1109,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeRmsVoltageMaxPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsVoltageMaxPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1381,10 +1117,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeRmsCurrentPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsCurrentPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1392,10 +1125,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeRmsCurrentMinPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsCurrentMinPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1403,10 +1133,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeRmsCurrentMaxPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRmsCurrentMaxPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1414,10 +1141,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeActivePowerPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeActivePowerPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1425,10 +1149,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeActivePowerMinPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeActivePowerMinPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1436,10 +1157,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeActivePowerMaxPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeActivePowerMaxPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1447,10 +1165,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeReactivePowerPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeReactivePowerPhaseCAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1458,10 +1173,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeApparentPowerPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeApparentPowerPhaseCAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1469,10 +1181,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribePowerFactorPhaseCAttribute( - minInterval: Int, - maxInterval: Int - ): Byte { + suspend fun subscribePowerFactorPhaseCAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } @@ -1579,10 +1288,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -1601,10 +1307,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -1612,10 +1315,7 @@ class ElectricalMeasurementCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/EthernetNetworkDiagnosticsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/EthernetNetworkDiagnosticsCluster.kt index 6135b8459765b0..d7fc8fa494c838 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/EthernetNetworkDiagnosticsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/EthernetNetworkDiagnosticsCluster.kt @@ -20,34 +20,23 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class EthernetNetworkDiagnosticsCluster(private val controller: MatterController, private val endpointId: UShort) { - class PHYRateAttribute( - val value: UInt? - ) +class EthernetNetworkDiagnosticsCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class PHYRateAttribute(val value: UInt?) - class FullDuplexAttribute( - val value: Boolean? - ) + class FullDuplexAttribute(val value: Boolean?) - class CarrierDetectAttribute( - val value: Boolean? - ) + class CarrierDetectAttribute(val value: Boolean?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun resetCounts(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -56,17 +45,14 @@ class EthernetNetworkDiagnosticsCluster(private val controller: MatterController // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readPHYRateAttribute(): PHYRateAttribute { // Implementation needs to be added here } - suspend fun subscribePHYRateAttribute( - minInterval: Int, - maxInterval: Int - ): PHYRateAttribute { + suspend fun subscribePHYRateAttribute(minInterval: Int, maxInterval: Int): PHYRateAttribute { // Implementation needs to be added here } @@ -85,10 +71,7 @@ class EthernetNetworkDiagnosticsCluster(private val controller: MatterController // Implementation needs to be added here } - suspend fun subscribePacketRxCountAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribePacketRxCountAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -96,10 +79,7 @@ class EthernetNetworkDiagnosticsCluster(private val controller: MatterController // Implementation needs to be added here } - suspend fun subscribePacketTxCountAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribePacketTxCountAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -107,10 +87,7 @@ class EthernetNetworkDiagnosticsCluster(private val controller: MatterController // Implementation needs to be added here } - suspend fun subscribeTxErrCountAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeTxErrCountAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -118,10 +95,7 @@ class EthernetNetworkDiagnosticsCluster(private val controller: MatterController // Implementation needs to be added here } - suspend fun subscribeCollisionCountAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeCollisionCountAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -129,10 +103,7 @@ class EthernetNetworkDiagnosticsCluster(private val controller: MatterController // Implementation needs to be added here } - suspend fun subscribeOverrunCountAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeOverrunCountAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -151,10 +122,7 @@ class EthernetNetworkDiagnosticsCluster(private val controller: MatterController // Implementation needs to be added here } - suspend fun subscribeTimeSinceResetAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeTimeSinceResetAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -184,10 +152,7 @@ class EthernetNetworkDiagnosticsCluster(private val controller: MatterController // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -206,10 +171,7 @@ class EthernetNetworkDiagnosticsCluster(private val controller: MatterController // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -217,10 +179,7 @@ class EthernetNetworkDiagnosticsCluster(private val controller: MatterController // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FanControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FanControlCluster.kt index 1ef1e8d0398a53..178dde9600faad 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FanControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FanControlCluster.kt @@ -21,59 +21,46 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class FanControlCluster(private val controller: MatterController, private val endpointId: UShort) { - class PercentSettingAttribute( - val value: UByte? - ) + class PercentSettingAttribute(val value: UByte?) - class SpeedSettingAttribute( - val value: UByte? - ) + class SpeedSettingAttribute(val value: UByte?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun step(direction: UInt, wrap: Boolean?, lowestOff: Boolean?, timedInvokeTimeoutMs: Int? = null) { + suspend fun step( + direction: UInt, + wrap: Boolean?, + lowestOff: Boolean?, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readFanModeAttribute(): UByte { // Implementation needs to be added here } - suspend fun writeFanModeAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeFanModeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeFanModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeFanModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -81,10 +68,7 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeFanModeSequenceAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeFanModeSequenceAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -92,15 +76,12 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writePercentSettingAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writePercentSettingAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribePercentSettingAttribute( @@ -114,10 +95,7 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribePercentCurrentAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribePercentCurrentAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -125,10 +103,7 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeSpeedMaxAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeSpeedMaxAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -136,15 +111,12 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeSpeedSettingAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeSpeedSettingAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeSpeedSettingAttribute( @@ -158,10 +130,7 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeSpeedCurrentAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeSpeedCurrentAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -169,10 +138,7 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeRockSupportAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeRockSupportAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -180,21 +146,15 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeRockSettingAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeRockSettingAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeRockSettingAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeRockSettingAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -202,10 +162,7 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeWindSupportAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeWindSupportAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -213,21 +170,15 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeWindSettingAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeWindSettingAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeWindSettingAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeWindSettingAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -235,21 +186,15 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeAirflowDirectionAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeAirflowDirectionAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeAirflowDirectionAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeAirflowDirectionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -279,10 +224,7 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -301,10 +243,7 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -312,10 +251,7 @@ class FanControlCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FaultInjectionCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FaultInjectionCluster.kt index 9a39c25ba139c0..8580869b08b912 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FaultInjectionCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FaultInjectionCluster.kt @@ -20,41 +20,48 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class FaultInjectionCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) - - class AcceptedCommandListAttribute( - val value: List - ) - - class EventListAttribute( - val value: List - ) - - class AttributeListAttribute( - val value: List - ) - - suspend fun failAtFault(type: UInt, id: UInt, numCallsToSkip: UInt, numCallsToFail: UInt, takeMutex: Boolean, timedInvokeTimeoutMs: Int? = null) { +class FaultInjectionCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class GeneratedCommandListAttribute(val value: List) + + class AcceptedCommandListAttribute(val value: List) + + class EventListAttribute(val value: List) + + class AttributeListAttribute(val value: List) + + suspend fun failAtFault( + type: UInt, + id: UInt, + numCallsToSkip: UInt, + numCallsToFail: UInt, + takeMutex: Boolean, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun failRandomlyAtFault(type: UInt, id: UInt, percentage: UByte, timedInvokeTimeoutMs: Int? = null) { + suspend fun failRandomlyAtFault( + type: UInt, + id: UInt, + percentage: UByte, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 1L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { @@ -83,10 +90,7 @@ class FaultInjectionCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -105,10 +109,7 @@ class FaultInjectionCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -116,10 +117,7 @@ class FaultInjectionCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FixedLabelCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FixedLabelCluster.kt index cca34405c30b86..6d9458b0610c05 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FixedLabelCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FixedLabelCluster.kt @@ -21,34 +21,21 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class FixedLabelCluster(private val controller: MatterController, private val endpointId: UShort) { - class LabelListAttribute( - val value: List - ) + class LabelListAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readLabelListAttribute(): LabelListAttribute { // Implementation needs to be added here } - suspend fun subscribeLabelListAttribute( - minInterval: Int, - maxInterval: Int - ): LabelListAttribute { + suspend fun subscribeLabelListAttribute(minInterval: Int, maxInterval: Int): LabelListAttribute { // Implementation needs to be added here } @@ -78,10 +65,7 @@ class FixedLabelCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -100,10 +84,7 @@ class FixedLabelCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -111,10 +92,7 @@ class FixedLabelCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FlowMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FlowMeasurementCluster.kt index b72b3202e2cdd4..69a553ee21ae62 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FlowMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FlowMeasurementCluster.kt @@ -20,34 +20,23 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class FlowMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: UShort? - ) +class FlowMeasurementCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class MeasuredValueAttribute(val value: UShort?) - class MinMeasuredValueAttribute( - val value: UShort? - ) + class MinMeasuredValueAttribute(val value: UShort?) - class MaxMeasuredValueAttribute( - val value: UShort? - ) + class MaxMeasuredValueAttribute(val value: UShort?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -86,10 +75,7 @@ class FlowMeasurementCluster(private val controller: MatterController, private v // Implementation needs to be added here } - suspend fun subscribeToleranceAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -119,10 +105,7 @@ class FlowMeasurementCluster(private val controller: MatterController, private v // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -141,10 +124,7 @@ class FlowMeasurementCluster(private val controller: MatterController, private v // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -152,10 +132,7 @@ class FlowMeasurementCluster(private val controller: MatterController, private v // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FormaldehydeConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FormaldehydeConcentrationMeasurementCluster.kt index c2ddeea48242b3..12195781103ef8 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FormaldehydeConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FormaldehydeConcentrationMeasurementCluster.kt @@ -20,42 +20,27 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class FormaldehydeConcentrationMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: Float? - ) +class FormaldehydeConcentrationMeasurementCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class MeasuredValueAttribute(val value: Float?) - class MinMeasuredValueAttribute( - val value: Float? - ) + class MinMeasuredValueAttribute(val value: Float?) - class MaxMeasuredValueAttribute( - val value: Float? - ) + class MaxMeasuredValueAttribute(val value: Float?) - class PeakMeasuredValueAttribute( - val value: Float? - ) + class PeakMeasuredValueAttribute(val value: Float?) - class AverageMeasuredValueAttribute( - val value: Float? - ) + class AverageMeasuredValueAttribute(val value: Float?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -105,10 +90,7 @@ class FormaldehydeConcentrationMeasurementCluster(private val controller: Matter // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -138,10 +120,7 @@ class FormaldehydeConcentrationMeasurementCluster(private val controller: Matter // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute( - minInterval: Int, - maxInterval: Int - ): Float { + suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } @@ -149,10 +128,7 @@ class FormaldehydeConcentrationMeasurementCluster(private val controller: Matter // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -160,10 +136,7 @@ class FormaldehydeConcentrationMeasurementCluster(private val controller: Matter // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -171,10 +144,7 @@ class FormaldehydeConcentrationMeasurementCluster(private val controller: Matter // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -204,10 +174,7 @@ class FormaldehydeConcentrationMeasurementCluster(private val controller: Matter // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -226,10 +193,7 @@ class FormaldehydeConcentrationMeasurementCluster(private val controller: Matter // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -237,10 +201,7 @@ class FormaldehydeConcentrationMeasurementCluster(private val controller: Matter // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralCommissioningCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralCommissioningCluster.kt index b5114fa5a14027..b00a893fde74f8 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralCommissioningCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralCommissioningCluster.kt @@ -20,91 +20,82 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class GeneralCommissioningCluster(private val controller: MatterController, private val endpointId: UShort) { - class ArmFailSafeResponse( - val errorCode: UInt, - val debugText: String - ) +class GeneralCommissioningCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class ArmFailSafeResponse(val errorCode: UInt, val debugText: String) - class SetRegulatoryConfigResponse( - val errorCode: UInt, - val debugText: String - ) + class SetRegulatoryConfigResponse(val errorCode: UInt, val debugText: String) - class CommissioningCompleteResponse( - val errorCode: UInt, - val debugText: String - ) + class CommissioningCompleteResponse(val errorCode: UInt, val debugText: String) class BasicCommissioningInfoAttribute( val value: GeneralCommissioningClusterBasicCommissioningInfo ) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun armFailSafe(expiryLengthSeconds: UShort, breadcrumb: ULong, timedInvokeTimeoutMs: Int? = null): ArmFailSafeResponse { + suspend fun armFailSafe( + expiryLengthSeconds: UShort, + breadcrumb: ULong, + timedInvokeTimeoutMs: Int? = null + ): ArmFailSafeResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun setRegulatoryConfig(newRegulatoryConfig: UInt, countryCode: String, breadcrumb: ULong, timedInvokeTimeoutMs: Int? = null): SetRegulatoryConfigResponse { + suspend fun setRegulatoryConfig( + newRegulatoryConfig: UInt, + countryCode: String, + breadcrumb: ULong, + timedInvokeTimeoutMs: Int? = null + ): SetRegulatoryConfigResponse { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun commissioningComplete(timedInvokeTimeoutMs: Int? = null): CommissioningCompleteResponse { + suspend fun commissioningComplete( + timedInvokeTimeoutMs: Int? = null + ): CommissioningCompleteResponse { val commandId = 4L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readBreadcrumbAttribute(): ULong { // Implementation needs to be added here } - suspend fun writeBreadcrumbAttribute( - value: ULong, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeBreadcrumbAttribute(value: ULong, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeBreadcrumbAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeBreadcrumbAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -123,10 +114,7 @@ class GeneralCommissioningCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeRegulatoryConfigAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeRegulatoryConfigAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -134,10 +122,7 @@ class GeneralCommissioningCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeLocationCapabilityAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLocationCapabilityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -178,10 +163,7 @@ class GeneralCommissioningCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -200,10 +182,7 @@ class GeneralCommissioningCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -211,10 +190,7 @@ class GeneralCommissioningCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralDiagnosticsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralDiagnosticsCluster.kt index 49a018f45c9423..543a9bcb638158 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralDiagnosticsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralDiagnosticsCluster.kt @@ -20,52 +20,40 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class GeneralDiagnosticsCluster(private val controller: MatterController, private val endpointId: UShort) { - class TimeSnapshotResponse( - val systemTimeUs: ULong, - val UTCTimeUs: ULong? - ) +class GeneralDiagnosticsCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class TimeSnapshotResponse(val systemTimeUs: ULong, val UTCTimeUs: ULong?) - class NetworkInterfacesAttribute( - val value: List - ) + class NetworkInterfacesAttribute(val value: List) - class ActiveHardwareFaultsAttribute( - val value: List? - ) + class ActiveHardwareFaultsAttribute(val value: List?) - class ActiveRadioFaultsAttribute( - val value: List? - ) + class ActiveRadioFaultsAttribute(val value: List?) - class ActiveNetworkFaultsAttribute( - val value: List? - ) + class ActiveNetworkFaultsAttribute(val value: List?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun testEventTrigger(enableKey: ByteArray, eventTrigger: ULong, timedInvokeTimeoutMs: Int? = null) { + suspend fun testEventTrigger( + enableKey: ByteArray, + eventTrigger: ULong, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun timeSnapshot(timedInvokeTimeoutMs: Int? = null): TimeSnapshotResponse { @@ -75,7 +63,7 @@ class GeneralDiagnosticsCluster(private val controller: MatterController, privat // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readNetworkInterfacesAttribute(): NetworkInterfacesAttribute { @@ -93,10 +81,7 @@ class GeneralDiagnosticsCluster(private val controller: MatterController, privat // Implementation needs to be added here } - suspend fun subscribeRebootCountAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRebootCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -104,10 +89,7 @@ class GeneralDiagnosticsCluster(private val controller: MatterController, privat // Implementation needs to be added here } - suspend fun subscribeUpTimeAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeUpTimeAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -115,10 +97,7 @@ class GeneralDiagnosticsCluster(private val controller: MatterController, privat // Implementation needs to be added here } - suspend fun subscribeTotalOperationalHoursAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTotalOperationalHoursAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -126,10 +105,7 @@ class GeneralDiagnosticsCluster(private val controller: MatterController, privat // Implementation needs to be added here } - suspend fun subscribeBootReasonAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeBootReasonAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -203,10 +179,7 @@ class GeneralDiagnosticsCluster(private val controller: MatterController, privat // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -225,10 +198,7 @@ class GeneralDiagnosticsCluster(private val controller: MatterController, privat // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -236,10 +206,7 @@ class GeneralDiagnosticsCluster(private val controller: MatterController, privat // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupKeyManagementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupKeyManagementCluster.kt index a621327cc18090..254d6a4bf63803 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupKeyManagementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupKeyManagementCluster.kt @@ -20,57 +20,50 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class GroupKeyManagementCluster(private val controller: MatterController, private val endpointId: UShort) { - class KeySetReadResponse( - val groupKeySet: GroupKeyManagementClusterGroupKeySetStruct - ) +class GroupKeyManagementCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class KeySetReadResponse(val groupKeySet: GroupKeyManagementClusterGroupKeySetStruct) - class KeySetReadAllIndicesResponse( - val groupKeySetIDs: List - ) + class KeySetReadAllIndicesResponse(val groupKeySetIDs: List) - class GroupKeyMapAttribute( - val value: List - ) + class GroupKeyMapAttribute(val value: List) - class GroupTableAttribute( - val value: List - ) + class GroupTableAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun keySetWrite(groupKeySet: GroupKeyManagementClusterGroupKeySetStruct, timedInvokeTimeoutMs: Int? = null) { + suspend fun keySetWrite( + groupKeySet: GroupKeyManagementClusterGroupKeySetStruct, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun keySetRead(groupKeySetID: UShort, timedInvokeTimeoutMs: Int? = null): KeySetReadResponse { + suspend fun keySetRead( + groupKeySetID: UShort, + timedInvokeTimeoutMs: Int? = null + ): KeySetReadResponse { val commandId = 1L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun keySetRemove(groupKeySetID: UShort, timedInvokeTimeoutMs: Int? = null) { @@ -80,17 +73,19 @@ class GroupKeyManagementCluster(private val controller: MatterController, privat // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun keySetReadAllIndices(timedInvokeTimeoutMs: Int? = null): KeySetReadAllIndicesResponse { + suspend fun keySetReadAllIndices( + timedInvokeTimeoutMs: Int? = null + ): KeySetReadAllIndicesResponse { val commandId = 4L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readGroupKeyMapAttribute(): GroupKeyMapAttribute { @@ -103,16 +98,15 @@ class GroupKeyManagementCluster(private val controller: MatterController, privat // Implementation needs to be added here } - suspend fun writeGroupKeyMapAttribute( value: List, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeGroupKeyMapAttribute( @@ -132,7 +126,6 @@ class GroupKeyManagementCluster(private val controller: MatterController, privat // Implementation needs to be added here } - suspend fun subscribeGroupTableAttribute( minInterval: Int, maxInterval: Int @@ -144,10 +137,7 @@ class GroupKeyManagementCluster(private val controller: MatterController, privat // Implementation needs to be added here } - suspend fun subscribeMaxGroupsPerFabricAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeMaxGroupsPerFabricAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -155,10 +145,7 @@ class GroupKeyManagementCluster(private val controller: MatterController, privat // Implementation needs to be added here } - suspend fun subscribeMaxGroupKeysPerFabricAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeMaxGroupKeysPerFabricAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -188,10 +175,7 @@ class GroupKeyManagementCluster(private val controller: MatterController, privat // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -210,10 +194,7 @@ class GroupKeyManagementCluster(private val controller: MatterController, privat // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -221,10 +202,7 @@ class GroupKeyManagementCluster(private val controller: MatterController, privat // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupsCluster.kt index 8f13eef071ad62..4858d7a68b38db 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupsCluster.kt @@ -21,51 +21,34 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class GroupsCluster(private val controller: MatterController, private val endpointId: UShort) { - class AddGroupResponse( - val status: UInt, - val groupID: UShort - ) - - class ViewGroupResponse( - val status: UInt, - val groupID: UShort, - val groupName: String - ) - - class GetGroupMembershipResponse( - val capacity: UByte?, - val groupList: List - ) - - class RemoveGroupResponse( - val status: UInt, - val groupID: UShort - ) - - class GeneratedCommandListAttribute( - val value: List - ) - - class AcceptedCommandListAttribute( - val value: List - ) - - class EventListAttribute( - val value: List - ) - - class AttributeListAttribute( - val value: List - ) - - suspend fun addGroup(groupID: UShort, groupName: String, timedInvokeTimeoutMs: Int? = null): AddGroupResponse { + class AddGroupResponse(val status: UInt, val groupID: UShort) + + class ViewGroupResponse(val status: UInt, val groupID: UShort, val groupName: String) + + class GetGroupMembershipResponse(val capacity: UByte?, val groupList: List) + + class RemoveGroupResponse(val status: UInt, val groupID: UShort) + + class GeneratedCommandListAttribute(val value: List) + + class AcceptedCommandListAttribute(val value: List) + + class EventListAttribute(val value: List) + + class AttributeListAttribute(val value: List) + + suspend fun addGroup( + groupID: UShort, + groupName: String, + timedInvokeTimeoutMs: Int? = null + ): AddGroupResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun viewGroup(groupID: UShort, timedInvokeTimeoutMs: Int? = null): ViewGroupResponse { @@ -75,17 +58,20 @@ class GroupsCluster(private val controller: MatterController, private val endpoi // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun getGroupMembership(groupList: List, timedInvokeTimeoutMs: Int? = null): GetGroupMembershipResponse { + suspend fun getGroupMembership( + groupList: List, + timedInvokeTimeoutMs: Int? = null + ): GetGroupMembershipResponse { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun removeGroup(groupID: UShort, timedInvokeTimeoutMs: Int? = null): RemoveGroupResponse { @@ -95,7 +81,7 @@ class GroupsCluster(private val controller: MatterController, private val endpoi // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun removeAllGroups(timedInvokeTimeoutMs: Int? = null) { @@ -105,27 +91,28 @@ class GroupsCluster(private val controller: MatterController, private val endpoi // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun addGroupIfIdentifying(groupID: UShort, groupName: String, timedInvokeTimeoutMs: Int? = null) { + suspend fun addGroupIfIdentifying( + groupID: UShort, + groupName: String, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 5L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readNameSupportAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeNameSupportAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeNameSupportAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -155,10 +142,7 @@ class GroupsCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -177,10 +161,7 @@ class GroupsCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -188,10 +169,7 @@ class GroupsCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/HepaFilterMonitoringCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/HepaFilterMonitoringCluster.kt index fe6473f53ff413..465dd38a9397a5 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/HepaFilterMonitoringCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/HepaFilterMonitoringCluster.kt @@ -20,30 +20,23 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class HepaFilterMonitoringCluster(private val controller: MatterController, private val endpointId: UShort) { - class LastChangedTimeAttribute( - val value: UInt? - ) +class HepaFilterMonitoringCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class LastChangedTimeAttribute(val value: UInt?) class ReplacementProductListAttribute( val value: List? ) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun resetCondition(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -52,17 +45,14 @@ class HepaFilterMonitoringCluster(private val controller: MatterController, priv // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readConditionAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeConditionAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeConditionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -70,10 +60,7 @@ class HepaFilterMonitoringCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeDegradationDirectionAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeDegradationDirectionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -81,10 +68,7 @@ class HepaFilterMonitoringCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeChangeIndicationAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeChangeIndicationAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -92,10 +76,7 @@ class HepaFilterMonitoringCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeInPlaceIndicatorAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeInPlaceIndicatorAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -103,15 +84,12 @@ class HepaFilterMonitoringCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun writeLastChangedTimeAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeLastChangedTimeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeLastChangedTimeAttribute( @@ -158,10 +136,7 @@ class HepaFilterMonitoringCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -180,10 +155,7 @@ class HepaFilterMonitoringCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -191,10 +163,7 @@ class HepaFilterMonitoringCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IcdManagementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IcdManagementCluster.kt index 95f5fdeda8b7aa..c70094f9e08ec9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IcdManagementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IcdManagementCluster.kt @@ -20,53 +20,54 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class IcdManagementCluster(private val controller: MatterController, private val endpointId: UShort) { - class RegisterClientResponse( - val ICDCounter: UInt - ) +class IcdManagementCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class RegisterClientResponse(val ICDCounter: UInt) - class StayActiveResponse( - val promisedActiveDuration: UInt - ) + class StayActiveResponse(val promisedActiveDuration: UInt) class RegisteredClientsAttribute( val value: List? ) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun registerClient(checkInNodeID: ULong, monitoredSubject: ULong, key: ByteArray, verificationKey: ByteArray?, timedInvokeTimeoutMs: Int? = null): RegisterClientResponse { + suspend fun registerClient( + checkInNodeID: ULong, + monitoredSubject: ULong, + key: ByteArray, + verificationKey: ByteArray?, + timedInvokeTimeoutMs: Int? = null + ): RegisterClientResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun unregisterClient(checkInNodeID: ULong, verificationKey: ByteArray?, timedInvokeTimeoutMs: Int? = null) { + suspend fun unregisterClient( + checkInNodeID: ULong, + verificationKey: ByteArray?, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun stayActiveRequest(timedInvokeTimeoutMs: Int? = null): StayActiveResponse { @@ -76,17 +77,14 @@ class IcdManagementCluster(private val controller: MatterController, private val // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readIdleModeDurationAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeIdleModeDurationAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeIdleModeDurationAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -94,10 +92,7 @@ class IcdManagementCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeActiveModeDurationAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeActiveModeDurationAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -105,10 +100,7 @@ class IcdManagementCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeActiveModeThresholdAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeActiveModeThresholdAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -122,7 +114,6 @@ class IcdManagementCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeRegisteredClientsAttribute( minInterval: Int, maxInterval: Int @@ -134,10 +125,7 @@ class IcdManagementCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeICDCounterAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeICDCounterAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -200,10 +188,7 @@ class IcdManagementCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -222,10 +207,7 @@ class IcdManagementCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -233,10 +215,7 @@ class IcdManagementCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IdentifyCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IdentifyCluster.kt index 554c1fa2baa68a..72ec3e94ee2642 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IdentifyCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IdentifyCluster.kt @@ -21,21 +21,13 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class IdentifyCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun identify(identifyTime: UShort, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -44,38 +36,36 @@ class IdentifyCluster(private val controller: MatterController, private val endp // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun triggerEffect(effectIdentifier: UInt, effectVariant: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun triggerEffect( + effectIdentifier: UInt, + effectVariant: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 64L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readIdentifyTimeAttribute(): UShort { // Implementation needs to be added here } - suspend fun writeIdentifyTimeAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeIdentifyTimeAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeIdentifyTimeAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeIdentifyTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -83,10 +73,7 @@ class IdentifyCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeIdentifyTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeIdentifyTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -116,10 +103,7 @@ class IdentifyCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -138,10 +122,7 @@ class IdentifyCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -149,10 +130,7 @@ class IdentifyCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IlluminanceMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IlluminanceMeasurementCluster.kt index 76a8a4d4726bda..d1067f466fcc0f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IlluminanceMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IlluminanceMeasurementCluster.kt @@ -20,38 +20,25 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class IlluminanceMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: UShort? - ) +class IlluminanceMeasurementCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class MeasuredValueAttribute(val value: UShort?) - class MinMeasuredValueAttribute( - val value: UShort? - ) + class MinMeasuredValueAttribute(val value: UShort?) - class MaxMeasuredValueAttribute( - val value: UShort? - ) + class MaxMeasuredValueAttribute(val value: UShort?) - class LightSensorTypeAttribute( - val value: UInt? - ) + class LightSensorTypeAttribute(val value: UInt?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -90,10 +77,7 @@ class IlluminanceMeasurementCluster(private val controller: MatterController, pr // Implementation needs to be added here } - suspend fun subscribeToleranceAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -134,10 +118,7 @@ class IlluminanceMeasurementCluster(private val controller: MatterController, pr // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -156,10 +137,7 @@ class IlluminanceMeasurementCluster(private val controller: MatterController, pr // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -167,10 +145,7 @@ class IlluminanceMeasurementCluster(private val controller: MatterController, pr // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/KeypadInputCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/KeypadInputCluster.kt index 4499865f7962f5..365427acb053cc 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/KeypadInputCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/KeypadInputCluster.kt @@ -21,25 +21,15 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class KeypadInputCluster(private val controller: MatterController, private val endpointId: UShort) { - class SendKeyResponse( - val status: UInt - ) + class SendKeyResponse(val status: UInt) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun sendKey(keyCode: UInt, timedInvokeTimeoutMs: Int? = null): SendKeyResponse { val commandId = 0L @@ -48,7 +38,7 @@ class KeypadInputCluster(private val controller: MatterController, private val e // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { @@ -77,10 +67,7 @@ class KeypadInputCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -99,10 +86,7 @@ class KeypadInputCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -110,10 +94,7 @@ class KeypadInputCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryDryerControlsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryDryerControlsCluster.kt index eca8495de0e62c..7b05c8dc8a4b6c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryDryerControlsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryDryerControlsCluster.kt @@ -20,30 +20,21 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class LaundryDryerControlsCluster(private val controller: MatterController, private val endpointId: UShort) { - class SupportedDrynessLevelsAttribute( - val value: List - ) +class LaundryDryerControlsCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class SupportedDrynessLevelsAttribute(val value: List) - class SelectedDrynessLevelAttribute( - val value: UInt? - ) + class SelectedDrynessLevelAttribute(val value: UInt?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readSupportedDrynessLevelsAttribute(): SupportedDrynessLevelsAttribute { // Implementation needs to be added here @@ -60,15 +51,12 @@ class LaundryDryerControlsCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun writeSelectedDrynessLevelAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeSelectedDrynessLevelAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeSelectedDrynessLevelAttribute( @@ -104,10 +92,7 @@ class LaundryDryerControlsCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -126,10 +111,7 @@ class LaundryDryerControlsCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -137,10 +119,7 @@ class LaundryDryerControlsCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherControlsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherControlsCluster.kt index ecd5aaca0d7a96..e7d246777e25c2 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherControlsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherControlsCluster.kt @@ -20,34 +20,23 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class LaundryWasherControlsCluster(private val controller: MatterController, private val endpointId: UShort) { - class SpinSpeedsAttribute( - val value: List? - ) +class LaundryWasherControlsCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class SpinSpeedsAttribute(val value: List?) - class SpinSpeedCurrentAttribute( - val value: UByte? - ) + class SpinSpeedCurrentAttribute(val value: UByte?) - class SupportedRinsesAttribute( - val value: List? - ) + class SupportedRinsesAttribute(val value: List?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readSpinSpeedsAttribute(): SpinSpeedsAttribute { // Implementation needs to be added here @@ -64,15 +53,12 @@ class LaundryWasherControlsCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun writeSpinSpeedCurrentAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeSpinSpeedCurrentAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeSpinSpeedCurrentAttribute( @@ -86,21 +72,15 @@ class LaundryWasherControlsCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun writeNumberOfRinsesAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNumberOfRinsesAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeNumberOfRinsesAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeNumberOfRinsesAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -141,10 +121,7 @@ class LaundryWasherControlsCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -163,10 +140,7 @@ class LaundryWasherControlsCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -174,10 +148,7 @@ class LaundryWasherControlsCluster(private val controller: MatterController, pri // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherModeCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherModeCluster.kt index 92218ece31d165..1145e4b1d8b056 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherModeCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherModeCluster.kt @@ -20,48 +20,37 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class LaundryWasherModeCluster(private val controller: MatterController, private val endpointId: UShort) { - class ChangeToModeResponse( - val status: UInt, - val statusText: String? - ) +class LaundryWasherModeCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class ChangeToModeResponse(val status: UInt, val statusText: String?) - class SupportedModesAttribute( - val value: List - ) + class SupportedModesAttribute(val value: List) - class StartUpModeAttribute( - val value: UByte? - ) + class StartUpModeAttribute(val value: UByte?) - class OnModeAttribute( - val value: UByte? - ) + class OnModeAttribute(val value: UByte?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int? = null): ChangeToModeResponse { + suspend fun changeToMode( + newMode: UByte, + timedInvokeTimeoutMs: Int? = null + ): ChangeToModeResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readSupportedModesAttribute(): SupportedModesAttribute { @@ -79,10 +68,7 @@ class LaundryWasherModeCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -90,15 +76,12 @@ class LaundryWasherModeCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun writeStartUpModeAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeStartUpModeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeStartUpModeAttribute( @@ -112,21 +95,15 @@ class LaundryWasherModeCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun writeOnModeAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeOnModeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOnModeAttribute( - minInterval: Int, - maxInterval: Int - ): OnModeAttribute { + suspend fun subscribeOnModeAttribute(minInterval: Int, maxInterval: Int): OnModeAttribute { // Implementation needs to be added here } @@ -156,10 +133,7 @@ class LaundryWasherModeCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -178,10 +152,7 @@ class LaundryWasherModeCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -189,10 +160,7 @@ class LaundryWasherModeCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LevelControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LevelControlCluster.kt index cd04a5b5d316c3..a20be7c6f73199 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LevelControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LevelControlCluster.kt @@ -20,75 +20,77 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class LevelControlCluster(private val controller: MatterController, private val endpointId: UShort) { - class CurrentLevelAttribute( - val value: UByte? - ) +class LevelControlCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class CurrentLevelAttribute(val value: UByte?) - class OnLevelAttribute( - val value: UByte? - ) + class OnLevelAttribute(val value: UByte?) - class OnTransitionTimeAttribute( - val value: UShort? - ) + class OnTransitionTimeAttribute(val value: UShort?) - class OffTransitionTimeAttribute( - val value: UShort? - ) + class OffTransitionTimeAttribute(val value: UShort?) - class DefaultMoveRateAttribute( - val value: UByte? - ) + class DefaultMoveRateAttribute(val value: UByte?) - class StartUpCurrentLevelAttribute( - val value: UByte? - ) + class StartUpCurrentLevelAttribute(val value: UByte?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun moveToLevel(level: UByte, transitionTime: UShort?, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun moveToLevel( + level: UByte, + transitionTime: UShort?, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun move(moveMode: UInt, rate: UByte?, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun move( + moveMode: UInt, + rate: UByte?, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 1L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun step(stepMode: UInt, stepSize: UByte, transitionTime: UShort?, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun step( + stepMode: UInt, + stepSize: UByte, + transitionTime: UShort?, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun stop(optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { @@ -98,47 +100,70 @@ class LevelControlCluster(private val controller: MatterController, private val // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun moveToLevelWithOnOff(level: UByte, transitionTime: UShort?, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun moveToLevelWithOnOff( + level: UByte, + transitionTime: UShort?, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 4L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun moveWithOnOff(moveMode: UInt, rate: UByte?, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun moveWithOnOff( + moveMode: UInt, + rate: UByte?, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 5L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun stepWithOnOff(stepMode: UInt, stepSize: UByte, transitionTime: UShort?, optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun stepWithOnOff( + stepMode: UInt, + stepSize: UByte, + transitionTime: UShort?, + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 6L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun stopWithOnOff(optionsMask: UInt, optionsOverride: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun stopWithOnOff( + optionsMask: UInt, + optionsOverride: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 7L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun moveToClosestFrequency(frequency: UShort, timedInvokeTimeoutMs: Int? = null) { @@ -148,7 +173,7 @@ class LevelControlCluster(private val controller: MatterController, private val // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readCurrentLevelAttribute(): CurrentLevelAttribute { @@ -166,10 +191,7 @@ class LevelControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeRemainingTimeAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRemainingTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -177,10 +199,7 @@ class LevelControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeMinLevelAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMinLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -188,10 +207,7 @@ class LevelControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeMaxLevelAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMaxLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -199,10 +215,7 @@ class LevelControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeCurrentFrequencyAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeCurrentFrequencyAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -210,10 +223,7 @@ class LevelControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeMinFrequencyAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeMinFrequencyAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -221,10 +231,7 @@ class LevelControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeMaxFrequencyAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeMaxFrequencyAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -232,21 +239,15 @@ class LevelControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun writeOptionsAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeOptionsAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOptionsAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeOptionsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -254,21 +255,15 @@ class LevelControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun writeOnOffTransitionTimeAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeOnOffTransitionTimeAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOnOffTransitionTimeAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeOnOffTransitionTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -276,21 +271,15 @@ class LevelControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun writeOnLevelAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeOnLevelAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOnLevelAttribute( - minInterval: Int, - maxInterval: Int - ): OnLevelAttribute { + suspend fun subscribeOnLevelAttribute(minInterval: Int, maxInterval: Int): OnLevelAttribute { // Implementation needs to be added here } @@ -298,15 +287,12 @@ class LevelControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun writeOnTransitionTimeAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeOnTransitionTimeAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeOnTransitionTimeAttribute( @@ -320,15 +306,12 @@ class LevelControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun writeOffTransitionTimeAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeOffTransitionTimeAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeOffTransitionTimeAttribute( @@ -342,15 +325,12 @@ class LevelControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun writeDefaultMoveRateAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeDefaultMoveRateAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeDefaultMoveRateAttribute( @@ -364,15 +344,12 @@ class LevelControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun writeStartUpCurrentLevelAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeStartUpCurrentLevelAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeStartUpCurrentLevelAttribute( @@ -408,10 +385,7 @@ class LevelControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -430,10 +404,7 @@ class LevelControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -441,10 +412,7 @@ class LevelControlCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LocalizationConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LocalizationConfigurationCluster.kt index 3c1a6df195bd4b..4cd978399d01d7 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LocalizationConfigurationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LocalizationConfigurationCluster.kt @@ -20,46 +20,33 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class LocalizationConfigurationCluster(private val controller: MatterController, private val endpointId: UShort) { - class SupportedLocalesAttribute( - val value: List - ) +class LocalizationConfigurationCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class SupportedLocalesAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readActiveLocaleAttribute(): CharString { // Implementation needs to be added here } - suspend fun writeActiveLocaleAttribute( - value: String, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeActiveLocaleAttribute(value: String, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeActiveLocaleAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeActiveLocaleAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -100,10 +87,7 @@ class LocalizationConfigurationCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -122,10 +106,7 @@ class LocalizationConfigurationCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -133,10 +114,7 @@ class LocalizationConfigurationCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LowPowerCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LowPowerCluster.kt index e243e859a8fad3..74390f3a6fb4dd 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LowPowerCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LowPowerCluster.kt @@ -21,21 +21,13 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class LowPowerCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun sleep(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -44,7 +36,7 @@ class LowPowerCluster(private val controller: MatterController, private val endp // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { @@ -73,10 +65,7 @@ class LowPowerCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -95,10 +84,7 @@ class LowPowerCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -106,10 +92,7 @@ class LowPowerCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaInputCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaInputCluster.kt index 9623fcc5be60fb..97ba8c68b95619 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaInputCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaInputCluster.kt @@ -21,25 +21,15 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class MediaInputCluster(private val controller: MatterController, private val endpointId: UShort) { - class InputListAttribute( - val value: List - ) + class InputListAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun selectInput(index: UByte, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -48,7 +38,7 @@ class MediaInputCluster(private val controller: MatterController, private val en // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun showInputStatus(timedInvokeTimeoutMs: Int? = null) { @@ -58,7 +48,7 @@ class MediaInputCluster(private val controller: MatterController, private val en // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun hideInputStatus(timedInvokeTimeoutMs: Int? = null) { @@ -68,7 +58,7 @@ class MediaInputCluster(private val controller: MatterController, private val en // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun renameInput(index: UByte, name: String, timedInvokeTimeoutMs: Int? = null) { @@ -78,17 +68,14 @@ class MediaInputCluster(private val controller: MatterController, private val en // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readInputListAttribute(): InputListAttribute { // Implementation needs to be added here } - suspend fun subscribeInputListAttribute( - minInterval: Int, - maxInterval: Int - ): InputListAttribute { + suspend fun subscribeInputListAttribute(minInterval: Int, maxInterval: Int): InputListAttribute { // Implementation needs to be added here } @@ -96,10 +83,7 @@ class MediaInputCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeCurrentInputAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentInputAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -129,10 +113,7 @@ class MediaInputCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -151,10 +132,7 @@ class MediaInputCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -162,10 +140,7 @@ class MediaInputCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaPlaybackCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaPlaybackCluster.kt index e2cf05165b268c..9c38c74c79c543 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaPlaybackCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaPlaybackCluster.kt @@ -20,47 +20,29 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class MediaPlaybackCluster(private val controller: MatterController, private val endpointId: UShort) { - class PlaybackResponse( - val status: UInt, - val data: String? - ) +class MediaPlaybackCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class PlaybackResponse(val status: UInt, val data: String?) - class StartTimeAttribute( - val value: ULong? - ) + class StartTimeAttribute(val value: ULong?) - class DurationAttribute( - val value: ULong? - ) + class DurationAttribute(val value: ULong?) - class SampledPositionAttribute( - val value: MediaPlaybackClusterPlaybackPositionStruct? - ) + class SampledPositionAttribute(val value: MediaPlaybackClusterPlaybackPositionStruct?) - class SeekRangeEndAttribute( - val value: ULong? - ) + class SeekRangeEndAttribute(val value: ULong?) - class SeekRangeStartAttribute( - val value: ULong? - ) + class SeekRangeStartAttribute(val value: ULong?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun play(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { val commandId = 0L @@ -69,7 +51,7 @@ class MediaPlaybackCluster(private val controller: MatterController, private val // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun pause(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { @@ -79,7 +61,7 @@ class MediaPlaybackCluster(private val controller: MatterController, private val // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun stop(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { @@ -89,7 +71,7 @@ class MediaPlaybackCluster(private val controller: MatterController, private val // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun startOver(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { @@ -99,7 +81,7 @@ class MediaPlaybackCluster(private val controller: MatterController, private val // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun previous(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { @@ -109,7 +91,7 @@ class MediaPlaybackCluster(private val controller: MatterController, private val // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun next(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { @@ -119,7 +101,7 @@ class MediaPlaybackCluster(private val controller: MatterController, private val // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun rewind(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { @@ -129,7 +111,7 @@ class MediaPlaybackCluster(private val controller: MatterController, private val // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun fastForward(timedInvokeTimeoutMs: Int? = null): PlaybackResponse { @@ -139,27 +121,33 @@ class MediaPlaybackCluster(private val controller: MatterController, private val // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun skipForward(deltaPositionMilliseconds: ULong, timedInvokeTimeoutMs: Int? = null): PlaybackResponse { + suspend fun skipForward( + deltaPositionMilliseconds: ULong, + timedInvokeTimeoutMs: Int? = null + ): PlaybackResponse { val commandId = 8L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun skipBackward(deltaPositionMilliseconds: ULong, timedInvokeTimeoutMs: Int? = null): PlaybackResponse { + suspend fun skipBackward( + deltaPositionMilliseconds: ULong, + timedInvokeTimeoutMs: Int? = null + ): PlaybackResponse { val commandId = 9L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun seek(position: ULong, timedInvokeTimeoutMs: Int? = null): PlaybackResponse { @@ -169,17 +157,14 @@ class MediaPlaybackCluster(private val controller: MatterController, private val // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readCurrentStateAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeCurrentStateAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -187,10 +172,7 @@ class MediaPlaybackCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeStartTimeAttribute( - minInterval: Int, - maxInterval: Int - ): StartTimeAttribute { + suspend fun subscribeStartTimeAttribute(minInterval: Int, maxInterval: Int): StartTimeAttribute { // Implementation needs to be added here } @@ -198,10 +180,7 @@ class MediaPlaybackCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeDurationAttribute( - minInterval: Int, - maxInterval: Int - ): DurationAttribute { + suspend fun subscribeDurationAttribute(minInterval: Int, maxInterval: Int): DurationAttribute { // Implementation needs to be added here } @@ -220,10 +199,7 @@ class MediaPlaybackCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribePlaybackSpeedAttribute( - minInterval: Int, - maxInterval: Int - ): Float { + suspend fun subscribePlaybackSpeedAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } @@ -275,10 +251,7 @@ class MediaPlaybackCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -297,10 +270,7 @@ class MediaPlaybackCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -308,10 +278,7 @@ class MediaPlaybackCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenControlCluster.kt index aae56b065ff16e..d655422ace9ae5 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenControlCluster.kt @@ -20,31 +20,31 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class MicrowaveOvenControlCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) +class MicrowaveOvenControlCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun setCookingParameters(cookMode: UByte?, cookTime: UInt?, powerSetting: UByte?, timedInvokeTimeoutMs: Int? = null) { + suspend fun setCookingParameters( + cookMode: UByte?, + cookTime: UInt?, + powerSetting: UByte?, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun addMoreTime(timeToAdd: UInt, timedInvokeTimeoutMs: Int? = null) { @@ -54,17 +54,14 @@ class MicrowaveOvenControlCluster(private val controller: MatterController, priv // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readCookTimeAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeCookTimeAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeCookTimeAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -72,10 +69,7 @@ class MicrowaveOvenControlCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribePowerSettingAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribePowerSettingAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -83,10 +77,7 @@ class MicrowaveOvenControlCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeMinPowerAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMinPowerAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -94,10 +85,7 @@ class MicrowaveOvenControlCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeMaxPowerAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMaxPowerAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -105,10 +93,7 @@ class MicrowaveOvenControlCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribePowerStepAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribePowerStepAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -138,10 +123,7 @@ class MicrowaveOvenControlCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -160,10 +142,7 @@ class MicrowaveOvenControlCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -171,10 +150,7 @@ class MicrowaveOvenControlCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenModeCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenModeCluster.kt index 840df1554f6574..1483cab29ac970 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenModeCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenModeCluster.kt @@ -20,26 +20,19 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class MicrowaveOvenModeCluster(private val controller: MatterController, private val endpointId: UShort) { - class SupportedModesAttribute( - val value: List - ) +class MicrowaveOvenModeCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class SupportedModesAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readSupportedModesAttribute(): SupportedModesAttribute { // Implementation needs to be added here @@ -56,10 +49,7 @@ class MicrowaveOvenModeCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -89,10 +79,7 @@ class MicrowaveOvenModeCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -111,10 +98,7 @@ class MicrowaveOvenModeCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -122,10 +106,7 @@ class MicrowaveOvenModeCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ModeSelectCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ModeSelectCluster.kt index 2735f5ab77446a..22e63c94a66d54 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ModeSelectCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ModeSelectCluster.kt @@ -21,37 +21,21 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class ModeSelectCluster(private val controller: MatterController, private val endpointId: UShort) { - class StandardNamespaceAttribute( - val value: UInt? - ) + class StandardNamespaceAttribute(val value: UInt?) - class SupportedModesAttribute( - val value: List - ) + class SupportedModesAttribute(val value: List) - class StartUpModeAttribute( - val value: UByte? - ) + class StartUpModeAttribute(val value: UByte?) - class OnModeAttribute( - val value: UByte? - ) + class OnModeAttribute(val value: UByte?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -60,17 +44,14 @@ class ModeSelectCluster(private val controller: MatterController, private val en // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readDescriptionAttribute(): CharString { // Implementation needs to be added here } - suspend fun subscribeDescriptionAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeDescriptionAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -100,10 +81,7 @@ class ModeSelectCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -111,15 +89,12 @@ class ModeSelectCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeStartUpModeAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeStartUpModeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeStartUpModeAttribute( @@ -133,21 +108,15 @@ class ModeSelectCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeOnModeAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeOnModeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOnModeAttribute( - minInterval: Int, - maxInterval: Int - ): OnModeAttribute { + suspend fun subscribeOnModeAttribute(minInterval: Int, maxInterval: Int): OnModeAttribute { // Implementation needs to be added here } @@ -177,10 +146,7 @@ class ModeSelectCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -199,10 +165,7 @@ class ModeSelectCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -210,10 +173,7 @@ class ModeSelectCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NetworkCommissioningCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NetworkCommissioningCluster.kt index 52aeffdc3e768b..053471c8a853f7 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NetworkCommissioningCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NetworkCommissioningCluster.kt @@ -20,147 +20,159 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class NetworkCommissioningCluster(private val controller: MatterController, private val endpointId: UShort) { +class NetworkCommissioningCluster( + private val controller: MatterController, + private val endpointId: UShort +) { class ScanNetworksResponse( - val networkingStatus: UInt, - val debugText: String?, - val wiFiScanResults: List?, + val networkingStatus: UInt, + val debugText: String?, + val wiFiScanResults: List?, val threadScanResults: List? ) class NetworkConfigResponse( - val networkingStatus: UInt, - val debugText: String?, - val networkIndex: UByte?, - val clientIdentity: ByteArray?, + val networkingStatus: UInt, + val debugText: String?, + val networkIndex: UByte?, + val clientIdentity: ByteArray?, val possessionSignature: ByteArray? ) class ConnectNetworkResponse( - val networkingStatus: UInt, - val debugText: String?, + val networkingStatus: UInt, + val debugText: String?, val errorValue: Int? ) - class QueryIdentityResponse( - val identity: ByteArray, - val possessionSignature: ByteArray? - ) + class QueryIdentityResponse(val identity: ByteArray, val possessionSignature: ByteArray?) - class NetworksAttribute( - val value: List - ) + class NetworksAttribute(val value: List) - class LastNetworkingStatusAttribute( - val value: UInt? - ) + class LastNetworkingStatusAttribute(val value: UInt?) - class LastNetworkIDAttribute( - val value: ByteArray? - ) + class LastNetworkIDAttribute(val value: ByteArray?) - class LastConnectErrorValueAttribute( - val value: Int? - ) + class LastConnectErrorValueAttribute(val value: Int?) - class SupportedWiFiBandsAttribute( - val value: List? - ) + class SupportedWiFiBandsAttribute(val value: List?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun scanNetworks(ssid: ByteArray?, breadcrumb: ULong?, timedInvokeTimeoutMs: Int? = null): ScanNetworksResponse { + suspend fun scanNetworks( + ssid: ByteArray?, + breadcrumb: ULong?, + timedInvokeTimeoutMs: Int? = null + ): ScanNetworksResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } - } - - suspend fun addOrUpdateWiFiNetwork(ssid: ByteArray, credentials: ByteArray, breadcrumb: ULong?, networkIdentity: ByteArray?, clientIdentifier: ByteArray?, possessionNonce: ByteArray?, timedInvokeTimeoutMs: Int? = null): NetworkConfigResponse { + } + } + + suspend fun addOrUpdateWiFiNetwork( + ssid: ByteArray, + credentials: ByteArray, + breadcrumb: ULong?, + networkIdentity: ByteArray?, + clientIdentifier: ByteArray?, + possessionNonce: ByteArray?, + timedInvokeTimeoutMs: Int? = null + ): NetworkConfigResponse { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun addOrUpdateThreadNetwork(operationalDataset: ByteArray, breadcrumb: ULong?, timedInvokeTimeoutMs: Int? = null): NetworkConfigResponse { + suspend fun addOrUpdateThreadNetwork( + operationalDataset: ByteArray, + breadcrumb: ULong?, + timedInvokeTimeoutMs: Int? = null + ): NetworkConfigResponse { val commandId = 3L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun removeNetwork(networkID: ByteArray, breadcrumb: ULong?, timedInvokeTimeoutMs: Int? = null): NetworkConfigResponse { + suspend fun removeNetwork( + networkID: ByteArray, + breadcrumb: ULong?, + timedInvokeTimeoutMs: Int? = null + ): NetworkConfigResponse { val commandId = 4L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun connectNetwork(networkID: ByteArray, breadcrumb: ULong?, timedInvokeTimeoutMs: Int? = null): ConnectNetworkResponse { + suspend fun connectNetwork( + networkID: ByteArray, + breadcrumb: ULong?, + timedInvokeTimeoutMs: Int? = null + ): ConnectNetworkResponse { val commandId = 6L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun reorderNetwork(networkID: ByteArray, networkIndex: UByte, breadcrumb: ULong?, timedInvokeTimeoutMs: Int? = null): NetworkConfigResponse { + suspend fun reorderNetwork( + networkID: ByteArray, + networkIndex: UByte, + breadcrumb: ULong?, + timedInvokeTimeoutMs: Int? = null + ): NetworkConfigResponse { val commandId = 8L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun queryIdentity(keyIdentifier: ByteArray, possessionNonce: ByteArray?, timedInvokeTimeoutMs: Int? = null): QueryIdentityResponse { + suspend fun queryIdentity( + keyIdentifier: ByteArray, + possessionNonce: ByteArray?, + timedInvokeTimeoutMs: Int? = null + ): QueryIdentityResponse { val commandId = 9L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readMaxNetworksAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeMaxNetworksAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMaxNetworksAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -168,10 +180,7 @@ class NetworkCommissioningCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeNetworksAttribute( - minInterval: Int, - maxInterval: Int - ): NetworksAttribute { + suspend fun subscribeNetworksAttribute(minInterval: Int, maxInterval: Int): NetworksAttribute { // Implementation needs to be added here } @@ -179,10 +188,7 @@ class NetworkCommissioningCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeScanMaxTimeSecondsAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeScanMaxTimeSecondsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -190,10 +196,7 @@ class NetworkCommissioningCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeConnectMaxTimeSecondsAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeConnectMaxTimeSecondsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -201,21 +204,15 @@ class NetworkCommissioningCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun writeInterfaceEnabledAttribute( - value: Boolean, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeInterfaceEnabledAttribute(value: Boolean, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInterfaceEnabledAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeInterfaceEnabledAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -278,10 +275,7 @@ class NetworkCommissioningCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeThreadVersionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeThreadVersionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -311,10 +305,7 @@ class NetworkCommissioningCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -333,10 +324,7 @@ class NetworkCommissioningCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -344,10 +332,7 @@ class NetworkCommissioningCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NitrogenDioxideConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NitrogenDioxideConcentrationMeasurementCluster.kt index 93af8959f78ab3..eb911e990eaf8f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NitrogenDioxideConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NitrogenDioxideConcentrationMeasurementCluster.kt @@ -20,42 +20,27 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class NitrogenDioxideConcentrationMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: Float? - ) +class NitrogenDioxideConcentrationMeasurementCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class MeasuredValueAttribute(val value: Float?) - class MinMeasuredValueAttribute( - val value: Float? - ) + class MinMeasuredValueAttribute(val value: Float?) - class MaxMeasuredValueAttribute( - val value: Float? - ) + class MaxMeasuredValueAttribute(val value: Float?) - class PeakMeasuredValueAttribute( - val value: Float? - ) + class PeakMeasuredValueAttribute(val value: Float?) - class AverageMeasuredValueAttribute( - val value: Float? - ) + class AverageMeasuredValueAttribute(val value: Float?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -105,10 +90,7 @@ class NitrogenDioxideConcentrationMeasurementCluster(private val controller: Mat // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -138,10 +120,7 @@ class NitrogenDioxideConcentrationMeasurementCluster(private val controller: Mat // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute( - minInterval: Int, - maxInterval: Int - ): Float { + suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } @@ -149,10 +128,7 @@ class NitrogenDioxideConcentrationMeasurementCluster(private val controller: Mat // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -160,10 +136,7 @@ class NitrogenDioxideConcentrationMeasurementCluster(private val controller: Mat // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -171,10 +144,7 @@ class NitrogenDioxideConcentrationMeasurementCluster(private val controller: Mat // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -204,10 +174,7 @@ class NitrogenDioxideConcentrationMeasurementCluster(private val controller: Mat // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -226,10 +193,7 @@ class NitrogenDioxideConcentrationMeasurementCluster(private val controller: Mat // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -237,10 +201,7 @@ class NitrogenDioxideConcentrationMeasurementCluster(private val controller: Mat // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OccupancySensingCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OccupancySensingCluster.kt index 3e1c227eed6a22..07cb5e7d9ab25d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OccupancySensingCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OccupancySensingCluster.kt @@ -20,31 +20,23 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class OccupancySensingCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) +class OccupancySensingCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readOccupancyAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeOccupancyAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeOccupancyAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -52,10 +44,7 @@ class OccupancySensingCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeOccupancySensorTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeOccupancySensorTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -76,13 +65,13 @@ class OccupancySensingCluster(private val controller: MatterController, private suspend fun writePIROccupiedToUnoccupiedDelayAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribePIROccupiedToUnoccupiedDelayAttribute( @@ -98,13 +87,13 @@ class OccupancySensingCluster(private val controller: MatterController, private suspend fun writePIRUnoccupiedToOccupiedDelayAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribePIRUnoccupiedToOccupiedDelayAttribute( @@ -120,13 +109,13 @@ class OccupancySensingCluster(private val controller: MatterController, private suspend fun writePIRUnoccupiedToOccupiedThresholdAttribute( value: UByte, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribePIRUnoccupiedToOccupiedThresholdAttribute( @@ -142,13 +131,13 @@ class OccupancySensingCluster(private val controller: MatterController, private suspend fun writeUltrasonicOccupiedToUnoccupiedDelayAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeUltrasonicOccupiedToUnoccupiedDelayAttribute( @@ -164,13 +153,13 @@ class OccupancySensingCluster(private val controller: MatterController, private suspend fun writeUltrasonicUnoccupiedToOccupiedDelayAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeUltrasonicUnoccupiedToOccupiedDelayAttribute( @@ -186,13 +175,13 @@ class OccupancySensingCluster(private val controller: MatterController, private suspend fun writeUltrasonicUnoccupiedToOccupiedThresholdAttribute( value: UByte, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeUltrasonicUnoccupiedToOccupiedThresholdAttribute( @@ -208,13 +197,13 @@ class OccupancySensingCluster(private val controller: MatterController, private suspend fun writePhysicalContactOccupiedToUnoccupiedDelayAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribePhysicalContactOccupiedToUnoccupiedDelayAttribute( @@ -230,13 +219,13 @@ class OccupancySensingCluster(private val controller: MatterController, private suspend fun writePhysicalContactUnoccupiedToOccupiedDelayAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribePhysicalContactUnoccupiedToOccupiedDelayAttribute( @@ -252,13 +241,13 @@ class OccupancySensingCluster(private val controller: MatterController, private suspend fun writePhysicalContactUnoccupiedToOccupiedThresholdAttribute( value: UByte, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribePhysicalContactUnoccupiedToOccupiedThresholdAttribute( @@ -294,10 +283,7 @@ class OccupancySensingCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -316,10 +302,7 @@ class OccupancySensingCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -327,10 +310,7 @@ class OccupancySensingCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffCluster.kt index fea3e3bd0f8591..76a0996babd8e3 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffCluster.kt @@ -21,25 +21,15 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class OnOffCluster(private val controller: MatterController, private val endpointId: UShort) { - class StartUpOnOffAttribute( - val value: UInt? - ) + class StartUpOnOffAttribute(val value: UInt?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun off(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -48,7 +38,7 @@ class OnOffCluster(private val controller: MatterController, private val endpoin // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun on(timedInvokeTimeoutMs: Int? = null) { @@ -58,7 +48,7 @@ class OnOffCluster(private val controller: MatterController, private val endpoin // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun toggle(timedInvokeTimeoutMs: Int? = null) { @@ -68,17 +58,21 @@ class OnOffCluster(private val controller: MatterController, private val endpoin // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun offWithEffect(effectIdentifier: UInt, effectVariant: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun offWithEffect( + effectIdentifier: UInt, + effectVariant: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 64L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun onWithRecallGlobalScene(timedInvokeTimeoutMs: Int? = null) { @@ -88,27 +82,29 @@ class OnOffCluster(private val controller: MatterController, private val endpoin // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun onWithTimedOff(onOffControl: UInt, onTime: UShort, offWaitTime: UShort, timedInvokeTimeoutMs: Int? = null) { + suspend fun onWithTimedOff( + onOffControl: UInt, + onTime: UShort, + offWaitTime: UShort, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 66L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readOnOffAttribute(): Boolean { // Implementation needs to be added here } - suspend fun subscribeOnOffAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeOnOffAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -116,10 +112,7 @@ class OnOffCluster(private val controller: MatterController, private val endpoin // Implementation needs to be added here } - suspend fun subscribeGlobalSceneControlAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeGlobalSceneControlAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -127,21 +120,15 @@ class OnOffCluster(private val controller: MatterController, private val endpoin // Implementation needs to be added here } - suspend fun writeOnTimeAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeOnTimeAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOnTimeAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeOnTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -149,21 +136,15 @@ class OnOffCluster(private val controller: MatterController, private val endpoin // Implementation needs to be added here } - suspend fun writeOffWaitTimeAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeOffWaitTimeAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOffWaitTimeAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeOffWaitTimeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -171,15 +152,12 @@ class OnOffCluster(private val controller: MatterController, private val endpoin // Implementation needs to be added here } - suspend fun writeStartUpOnOffAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeStartUpOnOffAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeStartUpOnOffAttribute( @@ -215,10 +193,7 @@ class OnOffCluster(private val controller: MatterController, private val endpoin // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -237,10 +212,7 @@ class OnOffCluster(private val controller: MatterController, private val endpoin // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -248,10 +220,7 @@ class OnOffCluster(private val controller: MatterController, private val endpoin // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffSwitchConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffSwitchConfigurationCluster.kt index 28a579235b276b..71c1585a842d8d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffSwitchConfigurationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffSwitchConfigurationCluster.kt @@ -20,31 +20,23 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class OnOffSwitchConfigurationCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) +class OnOffSwitchConfigurationCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readSwitchTypeAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeSwitchTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeSwitchTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -52,21 +44,15 @@ class OnOffSwitchConfigurationCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun writeSwitchActionsAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeSwitchActionsAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeSwitchActionsAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeSwitchActionsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -96,10 +82,7 @@ class OnOffSwitchConfigurationCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -118,10 +101,7 @@ class OnOffSwitchConfigurationCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -129,10 +109,7 @@ class OnOffSwitchConfigurationCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalCredentialsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalCredentialsCluster.kt index b965b9a0c86e54..66f2b93d0351d1 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalCredentialsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalCredentialsCluster.kt @@ -20,103 +20,104 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class OperationalCredentialsCluster(private val controller: MatterController, private val endpointId: UShort) { +class OperationalCredentialsCluster( + private val controller: MatterController, + private val endpointId: UShort +) { class AttestationResponse( - val attestationElements: ByteArray, + val attestationElements: ByteArray, val attestationSignature: ByteArray ) - class CertificateChainResponse( - val certificate: ByteArray - ) + class CertificateChainResponse(val certificate: ByteArray) - class CSRResponse( - val NOCSRElements: ByteArray, - val attestationSignature: ByteArray - ) + class CSRResponse(val NOCSRElements: ByteArray, val attestationSignature: ByteArray) - class NOCResponse( - val statusCode: UInt, - val fabricIndex: UByte?, - val debugText: String? - ) + class NOCResponse(val statusCode: UInt, val fabricIndex: UByte?, val debugText: String?) - class NOCsAttribute( - val value: List - ) + class NOCsAttribute(val value: List) - class FabricsAttribute( - val value: List - ) + class FabricsAttribute(val value: List) - class TrustedRootCertificatesAttribute( - val value: List - ) + class TrustedRootCertificatesAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun attestationRequest(attestationNonce: ByteArray, timedInvokeTimeoutMs: Int? = null): AttestationResponse { + suspend fun attestationRequest( + attestationNonce: ByteArray, + timedInvokeTimeoutMs: Int? = null + ): AttestationResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun certificateChainRequest(certificateType: UInt, timedInvokeTimeoutMs: Int? = null): CertificateChainResponse { + suspend fun certificateChainRequest( + certificateType: UInt, + timedInvokeTimeoutMs: Int? = null + ): CertificateChainResponse { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun CSRRequest(CSRNonce: ByteArray, isForUpdateNOC: Boolean?, timedInvokeTimeoutMs: Int? = null): CSRResponse { + suspend fun CSRRequest( + CSRNonce: ByteArray, + isForUpdateNOC: Boolean?, + timedInvokeTimeoutMs: Int? = null + ): CSRResponse { val commandId = 4L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun addNOC(NOCValue: ByteArray, ICACValue: ByteArray?, IPKValue: ByteArray, caseAdminSubject: ULong, adminVendorId: UShort, timedInvokeTimeoutMs: Int? = null): NOCResponse { + suspend fun addNOC( + NOCValue: ByteArray, + ICACValue: ByteArray?, + IPKValue: ByteArray, + caseAdminSubject: ULong, + adminVendorId: UShort, + timedInvokeTimeoutMs: Int? = null + ): NOCResponse { val commandId = 6L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun updateNOC(NOCValue: ByteArray, ICACValue: ByteArray?, timedInvokeTimeoutMs: Int? = null): NOCResponse { + suspend fun updateNOC( + NOCValue: ByteArray, + ICACValue: ByteArray?, + timedInvokeTimeoutMs: Int? = null + ): NOCResponse { val commandId = 7L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun updateFabricLabel(label: String, timedInvokeTimeoutMs: Int? = null): NOCResponse { @@ -126,7 +127,7 @@ class OperationalCredentialsCluster(private val controller: MatterController, pr // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun removeFabric(fabricIndex: UByte, timedInvokeTimeoutMs: Int? = null): NOCResponse { @@ -136,34 +137,31 @@ class OperationalCredentialsCluster(private val controller: MatterController, pr // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun addTrustedRootCertificate(rootCACertificate: ByteArray, timedInvokeTimeoutMs: Int? = null) { + suspend fun addTrustedRootCertificate( + rootCACertificate: ByteArray, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 11L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readNOCsAttribute(): NOCsAttribute { // Implementation needs to be added here } - suspend fun readNOCsAttributeWithFabricFilter( - isFabricFiltered: Boolean - ): NOCsAttribute { + suspend fun readNOCsAttributeWithFabricFilter(isFabricFiltered: Boolean): NOCsAttribute { // Implementation needs to be added here } - - suspend fun subscribeNOCsAttribute( - minInterval: Int, - maxInterval: Int - ): NOCsAttribute { + suspend fun subscribeNOCsAttribute(minInterval: Int, maxInterval: Int): NOCsAttribute { // Implementation needs to be added here } @@ -171,17 +169,11 @@ class OperationalCredentialsCluster(private val controller: MatterController, pr // Implementation needs to be added here } - suspend fun readFabricsAttributeWithFabricFilter( - isFabricFiltered: Boolean - ): FabricsAttribute { + suspend fun readFabricsAttributeWithFabricFilter(isFabricFiltered: Boolean): FabricsAttribute { // Implementation needs to be added here } - - suspend fun subscribeFabricsAttribute( - minInterval: Int, - maxInterval: Int - ): FabricsAttribute { + suspend fun subscribeFabricsAttribute(minInterval: Int, maxInterval: Int): FabricsAttribute { // Implementation needs to be added here } @@ -189,10 +181,7 @@ class OperationalCredentialsCluster(private val controller: MatterController, pr // Implementation needs to be added here } - suspend fun subscribeSupportedFabricsAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeSupportedFabricsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -200,10 +189,7 @@ class OperationalCredentialsCluster(private val controller: MatterController, pr // Implementation needs to be added here } - suspend fun subscribeCommissionedFabricsAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCommissionedFabricsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -222,10 +208,7 @@ class OperationalCredentialsCluster(private val controller: MatterController, pr // Implementation needs to be added here } - suspend fun subscribeCurrentFabricIndexAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentFabricIndexAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -255,10 +238,7 @@ class OperationalCredentialsCluster(private val controller: MatterController, pr // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -277,10 +257,7 @@ class OperationalCredentialsCluster(private val controller: MatterController, pr // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -288,10 +265,7 @@ class OperationalCredentialsCluster(private val controller: MatterController, pr // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalStateCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalStateCluster.kt index 2c2ab5bb9f2b3f..2b4222c80d4efd 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalStateCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalStateCluster.kt @@ -20,46 +20,33 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class OperationalStateCluster(private val controller: MatterController, private val endpointId: UShort) { +class OperationalStateCluster( + private val controller: MatterController, + private val endpointId: UShort +) { class OperationalCommandResponse( val commandResponseState: OperationalStateClusterErrorStateStruct ) - class PhaseListAttribute( - val value: List? - ) + class PhaseListAttribute(val value: List?) - class CurrentPhaseAttribute( - val value: UByte? - ) + class CurrentPhaseAttribute(val value: UByte?) - class CountdownTimeAttribute( - val value: UInt? - ) + class CountdownTimeAttribute(val value: UInt?) class OperationalStateListAttribute( val value: List ) - class OperationalErrorAttribute( - val value: OperationalStateClusterErrorStateStruct - ) + class OperationalErrorAttribute(val value: OperationalStateClusterErrorStateStruct) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun pause(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { val commandId = 0L @@ -68,7 +55,7 @@ class OperationalStateCluster(private val controller: MatterController, private // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun stop(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { @@ -78,7 +65,7 @@ class OperationalStateCluster(private val controller: MatterController, private // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun start(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { @@ -88,7 +75,7 @@ class OperationalStateCluster(private val controller: MatterController, private // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun resume(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { @@ -98,17 +85,14 @@ class OperationalStateCluster(private val controller: MatterController, private // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readPhaseListAttribute(): PhaseListAttribute { // Implementation needs to be added here } - suspend fun subscribePhaseListAttribute( - minInterval: Int, - maxInterval: Int - ): PhaseListAttribute { + suspend fun subscribePhaseListAttribute(minInterval: Int, maxInterval: Int): PhaseListAttribute { // Implementation needs to be added here } @@ -149,10 +133,7 @@ class OperationalStateCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeOperationalStateAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeOperationalStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -193,10 +174,7 @@ class OperationalStateCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -215,10 +193,7 @@ class OperationalStateCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -226,10 +201,7 @@ class OperationalStateCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateProviderCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateProviderCluster.kt index 63b76d64fccf9c..df9a021ffe3d35 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateProviderCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateProviderCluster.kt @@ -20,67 +20,77 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class OtaSoftwareUpdateProviderCluster(private val controller: MatterController, private val endpointId: UShort) { +class OtaSoftwareUpdateProviderCluster( + private val controller: MatterController, + private val endpointId: UShort +) { class QueryImageResponse( - val status: UInt, - val delayedActionTime: UInt?, - val imageURI: String?, - val softwareVersion: UInt?, - val softwareVersionString: String?, - val updateToken: ByteArray?, - val userConsentNeeded: Boolean?, + val status: UInt, + val delayedActionTime: UInt?, + val imageURI: String?, + val softwareVersion: UInt?, + val softwareVersionString: String?, + val updateToken: ByteArray?, + val userConsentNeeded: Boolean?, val metadataForRequestor: ByteArray? ) - class ApplyUpdateResponse( - val action: UInt, - val delayedActionTime: UInt - ) + class ApplyUpdateResponse(val action: UInt, val delayedActionTime: UInt) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun queryImage(vendorID: UShort, productID: UShort, softwareVersion: UInt, protocolsSupported: List, hardwareVersion: UShort?, location: String?, requestorCanConsent: Boolean?, metadataForProvider: ByteArray?, timedInvokeTimeoutMs: Int? = null): QueryImageResponse { + suspend fun queryImage( + vendorID: UShort, + productID: UShort, + softwareVersion: UInt, + protocolsSupported: List, + hardwareVersion: UShort?, + location: String?, + requestorCanConsent: Boolean?, + metadataForProvider: ByteArray?, + timedInvokeTimeoutMs: Int? = null + ): QueryImageResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun applyUpdateRequest(updateToken: ByteArray, newVersion: UInt, timedInvokeTimeoutMs: Int? = null): ApplyUpdateResponse { + suspend fun applyUpdateRequest( + updateToken: ByteArray, + newVersion: UInt, + timedInvokeTimeoutMs: Int? = null + ): ApplyUpdateResponse { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun notifyUpdateApplied(updateToken: ByteArray, softwareVersion: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun notifyUpdateApplied( + updateToken: ByteArray, + softwareVersion: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 4L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { @@ -109,10 +119,7 @@ class OtaSoftwareUpdateProviderCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -131,10 +138,7 @@ class OtaSoftwareUpdateProviderCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -142,10 +146,7 @@ class OtaSoftwareUpdateProviderCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateRequestorCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateRequestorCluster.kt index df37a7f5be2a8e..7e422996631bdb 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateRequestorCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateRequestorCluster.kt @@ -20,39 +20,39 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class OtaSoftwareUpdateRequestorCluster(private val controller: MatterController, private val endpointId: UShort) { +class OtaSoftwareUpdateRequestorCluster( + private val controller: MatterController, + private val endpointId: UShort +) { class DefaultOTAProvidersAttribute( val value: List ) - class UpdateStateProgressAttribute( - val value: UByte? - ) + class UpdateStateProgressAttribute(val value: UByte?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun announceOTAProvider(providerNodeID: ULong, vendorID: UShort, announcementReason: UInt, metadataForNode: ByteArray?, endpoint: UShort, timedInvokeTimeoutMs: Int? = null) { + suspend fun announceOTAProvider( + providerNodeID: ULong, + vendorID: UShort, + announcementReason: UInt, + metadataForNode: ByteArray?, + endpoint: UShort, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readDefaultOTAProvidersAttribute(): DefaultOTAProvidersAttribute { @@ -65,16 +65,15 @@ class OtaSoftwareUpdateRequestorCluster(private val controller: MatterController // Implementation needs to be added here } - suspend fun writeDefaultOTAProvidersAttribute( value: List, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeDefaultOTAProvidersAttribute( @@ -88,10 +87,7 @@ class OtaSoftwareUpdateRequestorCluster(private val controller: MatterController // Implementation needs to be added here } - suspend fun subscribeUpdatePossibleAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeUpdatePossibleAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -99,10 +95,7 @@ class OtaSoftwareUpdateRequestorCluster(private val controller: MatterController // Implementation needs to be added here } - suspend fun subscribeUpdateStateAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeUpdateStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -143,10 +136,7 @@ class OtaSoftwareUpdateRequestorCluster(private val controller: MatterController // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -165,10 +155,7 @@ class OtaSoftwareUpdateRequestorCluster(private val controller: MatterController // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -176,10 +163,7 @@ class OtaSoftwareUpdateRequestorCluster(private val controller: MatterController // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OvenModeCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OvenModeCluster.kt index 6c71a42947fa4d..267bd10448cca1 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OvenModeCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OvenModeCluster.kt @@ -21,47 +21,33 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class OvenModeCluster(private val controller: MatterController, private val endpointId: UShort) { - class ChangeToModeResponse( - val status: UInt, - val statusText: String? - ) + class ChangeToModeResponse(val status: UInt, val statusText: String?) - class SupportedModesAttribute( - val value: List - ) + class SupportedModesAttribute(val value: List) - class StartUpModeAttribute( - val value: UByte? - ) + class StartUpModeAttribute(val value: UByte?) - class OnModeAttribute( - val value: UByte? - ) + class OnModeAttribute(val value: UByte?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int? = null): ChangeToModeResponse { + suspend fun changeToMode( + newMode: UByte, + timedInvokeTimeoutMs: Int? = null + ): ChangeToModeResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readSupportedModesAttribute(): SupportedModesAttribute { @@ -79,10 +65,7 @@ class OvenModeCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -90,15 +73,12 @@ class OvenModeCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeStartUpModeAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeStartUpModeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeStartUpModeAttribute( @@ -112,21 +92,15 @@ class OvenModeCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun writeOnModeAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeOnModeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOnModeAttribute( - minInterval: Int, - maxInterval: Int - ): OnModeAttribute { + suspend fun subscribeOnModeAttribute(minInterval: Int, maxInterval: Int): OnModeAttribute { // Implementation needs to be added here } @@ -156,10 +130,7 @@ class OvenModeCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -178,10 +149,7 @@ class OvenModeCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -189,10 +157,7 @@ class OvenModeCluster(private val controller: MatterController, private val endp // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OzoneConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OzoneConcentrationMeasurementCluster.kt index 1988086677eb73..3542a8e090a8fb 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OzoneConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OzoneConcentrationMeasurementCluster.kt @@ -20,42 +20,27 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class OzoneConcentrationMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: Float? - ) +class OzoneConcentrationMeasurementCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class MeasuredValueAttribute(val value: Float?) - class MinMeasuredValueAttribute( - val value: Float? - ) + class MinMeasuredValueAttribute(val value: Float?) - class MaxMeasuredValueAttribute( - val value: Float? - ) + class MaxMeasuredValueAttribute(val value: Float?) - class PeakMeasuredValueAttribute( - val value: Float? - ) + class PeakMeasuredValueAttribute(val value: Float?) - class AverageMeasuredValueAttribute( - val value: Float? - ) + class AverageMeasuredValueAttribute(val value: Float?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -105,10 +90,7 @@ class OzoneConcentrationMeasurementCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -138,10 +120,7 @@ class OzoneConcentrationMeasurementCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute( - minInterval: Int, - maxInterval: Int - ): Float { + suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } @@ -149,10 +128,7 @@ class OzoneConcentrationMeasurementCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -160,10 +136,7 @@ class OzoneConcentrationMeasurementCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -171,10 +144,7 @@ class OzoneConcentrationMeasurementCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -204,10 +174,7 @@ class OzoneConcentrationMeasurementCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -226,10 +193,7 @@ class OzoneConcentrationMeasurementCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -237,10 +201,7 @@ class OzoneConcentrationMeasurementCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm10ConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm10ConcentrationMeasurementCluster.kt index 2ca5e68259782c..f6cdf804a7642f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm10ConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm10ConcentrationMeasurementCluster.kt @@ -20,42 +20,27 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class Pm10ConcentrationMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: Float? - ) +class Pm10ConcentrationMeasurementCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class MeasuredValueAttribute(val value: Float?) - class MinMeasuredValueAttribute( - val value: Float? - ) + class MinMeasuredValueAttribute(val value: Float?) - class MaxMeasuredValueAttribute( - val value: Float? - ) + class MaxMeasuredValueAttribute(val value: Float?) - class PeakMeasuredValueAttribute( - val value: Float? - ) + class PeakMeasuredValueAttribute(val value: Float?) - class AverageMeasuredValueAttribute( - val value: Float? - ) + class AverageMeasuredValueAttribute(val value: Float?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -105,10 +90,7 @@ class Pm10ConcentrationMeasurementCluster(private val controller: MatterControll // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -138,10 +120,7 @@ class Pm10ConcentrationMeasurementCluster(private val controller: MatterControll // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute( - minInterval: Int, - maxInterval: Int - ): Float { + suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } @@ -149,10 +128,7 @@ class Pm10ConcentrationMeasurementCluster(private val controller: MatterControll // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -160,10 +136,7 @@ class Pm10ConcentrationMeasurementCluster(private val controller: MatterControll // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -171,10 +144,7 @@ class Pm10ConcentrationMeasurementCluster(private val controller: MatterControll // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -204,10 +174,7 @@ class Pm10ConcentrationMeasurementCluster(private val controller: MatterControll // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -226,10 +193,7 @@ class Pm10ConcentrationMeasurementCluster(private val controller: MatterControll // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -237,10 +201,7 @@ class Pm10ConcentrationMeasurementCluster(private val controller: MatterControll // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm1ConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm1ConcentrationMeasurementCluster.kt index 75260f50bc6e40..f07c97fbfd4468 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm1ConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm1ConcentrationMeasurementCluster.kt @@ -20,42 +20,27 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class Pm1ConcentrationMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: Float? - ) +class Pm1ConcentrationMeasurementCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class MeasuredValueAttribute(val value: Float?) - class MinMeasuredValueAttribute( - val value: Float? - ) + class MinMeasuredValueAttribute(val value: Float?) - class MaxMeasuredValueAttribute( - val value: Float? - ) + class MaxMeasuredValueAttribute(val value: Float?) - class PeakMeasuredValueAttribute( - val value: Float? - ) + class PeakMeasuredValueAttribute(val value: Float?) - class AverageMeasuredValueAttribute( - val value: Float? - ) + class AverageMeasuredValueAttribute(val value: Float?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -105,10 +90,7 @@ class Pm1ConcentrationMeasurementCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -138,10 +120,7 @@ class Pm1ConcentrationMeasurementCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute( - minInterval: Int, - maxInterval: Int - ): Float { + suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } @@ -149,10 +128,7 @@ class Pm1ConcentrationMeasurementCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -160,10 +136,7 @@ class Pm1ConcentrationMeasurementCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -171,10 +144,7 @@ class Pm1ConcentrationMeasurementCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -204,10 +174,7 @@ class Pm1ConcentrationMeasurementCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -226,10 +193,7 @@ class Pm1ConcentrationMeasurementCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -237,10 +201,7 @@ class Pm1ConcentrationMeasurementCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm25ConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm25ConcentrationMeasurementCluster.kt index a3cddf24db9256..424658e2bd6e0b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm25ConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm25ConcentrationMeasurementCluster.kt @@ -20,42 +20,27 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class Pm25ConcentrationMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: Float? - ) +class Pm25ConcentrationMeasurementCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class MeasuredValueAttribute(val value: Float?) - class MinMeasuredValueAttribute( - val value: Float? - ) + class MinMeasuredValueAttribute(val value: Float?) - class MaxMeasuredValueAttribute( - val value: Float? - ) + class MaxMeasuredValueAttribute(val value: Float?) - class PeakMeasuredValueAttribute( - val value: Float? - ) + class PeakMeasuredValueAttribute(val value: Float?) - class AverageMeasuredValueAttribute( - val value: Float? - ) + class AverageMeasuredValueAttribute(val value: Float?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -105,10 +90,7 @@ class Pm25ConcentrationMeasurementCluster(private val controller: MatterControll // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -138,10 +120,7 @@ class Pm25ConcentrationMeasurementCluster(private val controller: MatterControll // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute( - minInterval: Int, - maxInterval: Int - ): Float { + suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } @@ -149,10 +128,7 @@ class Pm25ConcentrationMeasurementCluster(private val controller: MatterControll // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -160,10 +136,7 @@ class Pm25ConcentrationMeasurementCluster(private val controller: MatterControll // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -171,10 +144,7 @@ class Pm25ConcentrationMeasurementCluster(private val controller: MatterControll // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -204,10 +174,7 @@ class Pm25ConcentrationMeasurementCluster(private val controller: MatterControll // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -226,10 +193,7 @@ class Pm25ConcentrationMeasurementCluster(private val controller: MatterControll // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -237,10 +201,7 @@ class Pm25ConcentrationMeasurementCluster(private val controller: MatterControll // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceCluster.kt index 6373b41ea7ad79..6dc18689f87f2d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceCluster.kt @@ -21,78 +21,43 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class PowerSourceCluster(private val controller: MatterController, private val endpointId: UShort) { - class WiredAssessedInputVoltageAttribute( - val value: UInt? - ) + class WiredAssessedInputVoltageAttribute(val value: UInt?) - class WiredAssessedInputFrequencyAttribute( - val value: UShort? - ) + class WiredAssessedInputFrequencyAttribute(val value: UShort?) - class WiredAssessedCurrentAttribute( - val value: UInt? - ) + class WiredAssessedCurrentAttribute(val value: UInt?) - class ActiveWiredFaultsAttribute( - val value: List? - ) + class ActiveWiredFaultsAttribute(val value: List?) - class BatVoltageAttribute( - val value: UInt? - ) + class BatVoltageAttribute(val value: UInt?) - class BatPercentRemainingAttribute( - val value: UByte? - ) + class BatPercentRemainingAttribute(val value: UByte?) - class BatTimeRemainingAttribute( - val value: UInt? - ) + class BatTimeRemainingAttribute(val value: UInt?) - class ActiveBatFaultsAttribute( - val value: List? - ) + class ActiveBatFaultsAttribute(val value: List?) - class BatTimeToFullChargeAttribute( - val value: UInt? - ) + class BatTimeToFullChargeAttribute(val value: UInt?) - class BatChargingCurrentAttribute( - val value: UInt? - ) + class BatChargingCurrentAttribute(val value: UInt?) - class ActiveBatChargeFaultsAttribute( - val value: List? - ) + class ActiveBatChargeFaultsAttribute(val value: List?) - class EndpointListAttribute( - val value: List - ) + class EndpointListAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readStatusAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeStatusAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeStatusAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -100,10 +65,7 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeOrderAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeOrderAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -111,10 +73,7 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeDescriptionAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeDescriptionAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -144,10 +103,7 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeWiredCurrentTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeWiredCurrentTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -166,10 +122,7 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeWiredNominalVoltageAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeWiredNominalVoltageAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -177,10 +130,7 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeWiredMaximumCurrentAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeWiredMaximumCurrentAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -188,10 +138,7 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeWiredPresentAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeWiredPresentAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -243,10 +190,7 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeBatChargeLevelAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeBatChargeLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -254,10 +198,7 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeBatReplacementNeededAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeBatReplacementNeededAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -265,10 +206,7 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeBatReplaceabilityAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeBatReplaceabilityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -276,10 +214,7 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeBatPresentAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeBatPresentAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -309,10 +244,7 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeBatCommonDesignationAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeBatCommonDesignationAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -320,10 +252,7 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeBatANSIDesignationAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeBatANSIDesignationAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -331,10 +260,7 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeBatIECDesignationAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeBatIECDesignationAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -342,10 +268,7 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeBatApprovedChemistryAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeBatApprovedChemistryAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -353,10 +276,7 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeBatCapacityAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeBatCapacityAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -364,10 +284,7 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeBatQuantityAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeBatQuantityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -375,10 +292,7 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeBatChargeStateAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeBatChargeStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -463,10 +377,7 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -485,10 +396,7 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -496,10 +404,7 @@ class PowerSourceCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceConfigurationCluster.kt index 33c8bf56f12f0d..b90d42743b65f8 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceConfigurationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceConfigurationCluster.kt @@ -20,35 +20,25 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class PowerSourceConfigurationCluster(private val controller: MatterController, private val endpointId: UShort) { - class SourcesAttribute( - val value: List - ) +class PowerSourceConfigurationCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class SourcesAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readSourcesAttribute(): SourcesAttribute { // Implementation needs to be added here } - suspend fun subscribeSourcesAttribute( - minInterval: Int, - maxInterval: Int - ): SourcesAttribute { + suspend fun subscribeSourcesAttribute(minInterval: Int, maxInterval: Int): SourcesAttribute { // Implementation needs to be added here } @@ -78,10 +68,7 @@ class PowerSourceConfigurationCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -100,10 +87,7 @@ class PowerSourceConfigurationCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -111,10 +95,7 @@ class PowerSourceConfigurationCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PressureMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PressureMeasurementCluster.kt index 8f862457bc1e1f..64c49e903d5988 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PressureMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PressureMeasurementCluster.kt @@ -20,46 +20,29 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class PressureMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: Short? - ) +class PressureMeasurementCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class MeasuredValueAttribute(val value: Short?) - class MinMeasuredValueAttribute( - val value: Short? - ) + class MinMeasuredValueAttribute(val value: Short?) - class MaxMeasuredValueAttribute( - val value: Short? - ) + class MaxMeasuredValueAttribute(val value: Short?) - class ScaledValueAttribute( - val value: Short? - ) + class ScaledValueAttribute(val value: Short?) - class MinScaledValueAttribute( - val value: Short? - ) + class MinScaledValueAttribute(val value: Short?) - class MaxScaledValueAttribute( - val value: Short? - ) + class MaxScaledValueAttribute(val value: Short?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -98,10 +81,7 @@ class PressureMeasurementCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeToleranceAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -142,10 +122,7 @@ class PressureMeasurementCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeScaledToleranceAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeScaledToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -153,10 +130,7 @@ class PressureMeasurementCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeScaleAttribute( - minInterval: Int, - maxInterval: Int - ): Byte { + suspend fun subscribeScaleAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } @@ -186,10 +160,7 @@ class PressureMeasurementCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -208,10 +179,7 @@ class PressureMeasurementCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -219,10 +187,7 @@ class PressureMeasurementCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyConfigurationCluster.kt index 4b129945947718..fe0e582c9d45da 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyConfigurationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyConfigurationCluster.kt @@ -20,22 +20,17 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class ProxyConfigurationCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) +class ProxyConfigurationCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { // Implementation needs to be added here @@ -63,10 +58,7 @@ class ProxyConfigurationCluster(private val controller: MatterController, privat // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -85,10 +77,7 @@ class ProxyConfigurationCluster(private val controller: MatterController, privat // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -96,10 +85,7 @@ class ProxyConfigurationCluster(private val controller: MatterController, privat // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyDiscoveryCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyDiscoveryCluster.kt index 063b71997bc4c5..fd1c428646a714 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyDiscoveryCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyDiscoveryCluster.kt @@ -20,22 +20,17 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class ProxyDiscoveryCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) +class ProxyDiscoveryCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { // Implementation needs to be added here @@ -63,10 +58,7 @@ class ProxyDiscoveryCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -85,10 +77,7 @@ class ProxyDiscoveryCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -96,10 +85,7 @@ class ProxyDiscoveryCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyValidCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyValidCluster.kt index 72fc97624b8205..589502096ac382 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyValidCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyValidCluster.kt @@ -21,21 +21,13 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class ProxyValidCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { // Implementation needs to be added here @@ -63,10 +55,7 @@ class ProxyValidCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -85,10 +74,7 @@ class ProxyValidCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -96,10 +82,7 @@ class ProxyValidCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PulseWidthModulationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PulseWidthModulationCluster.kt index a366298b43d571..d7e43df772c99b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PulseWidthModulationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PulseWidthModulationCluster.kt @@ -20,22 +20,17 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class PulseWidthModulationCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) +class PulseWidthModulationCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { // Implementation needs to be added here @@ -63,10 +58,7 @@ class PulseWidthModulationCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -85,10 +77,7 @@ class PulseWidthModulationCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -96,10 +85,7 @@ class PulseWidthModulationCluster(private val controller: MatterController, priv // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PumpConfigurationAndControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PumpConfigurationAndControlCluster.kt index 68c23e188fdeb1..501850ac2264d9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PumpConfigurationAndControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PumpConfigurationAndControlCluster.kt @@ -20,94 +20,53 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class PumpConfigurationAndControlCluster(private val controller: MatterController, private val endpointId: UShort) { - class MaxPressureAttribute( - val value: Short? - ) +class PumpConfigurationAndControlCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class MaxPressureAttribute(val value: Short?) - class MaxSpeedAttribute( - val value: UShort? - ) + class MaxSpeedAttribute(val value: UShort?) - class MaxFlowAttribute( - val value: UShort? - ) + class MaxFlowAttribute(val value: UShort?) - class MinConstPressureAttribute( - val value: Short? - ) + class MinConstPressureAttribute(val value: Short?) - class MaxConstPressureAttribute( - val value: Short? - ) + class MaxConstPressureAttribute(val value: Short?) - class MinCompPressureAttribute( - val value: Short? - ) + class MinCompPressureAttribute(val value: Short?) - class MaxCompPressureAttribute( - val value: Short? - ) + class MaxCompPressureAttribute(val value: Short?) - class MinConstSpeedAttribute( - val value: UShort? - ) + class MinConstSpeedAttribute(val value: UShort?) - class MaxConstSpeedAttribute( - val value: UShort? - ) + class MaxConstSpeedAttribute(val value: UShort?) - class MinConstFlowAttribute( - val value: UShort? - ) + class MinConstFlowAttribute(val value: UShort?) - class MaxConstFlowAttribute( - val value: UShort? - ) + class MaxConstFlowAttribute(val value: UShort?) - class MinConstTempAttribute( - val value: Short? - ) + class MinConstTempAttribute(val value: Short?) - class MaxConstTempAttribute( - val value: Short? - ) + class MaxConstTempAttribute(val value: Short?) - class CapacityAttribute( - val value: Short? - ) + class CapacityAttribute(val value: Short?) - class SpeedAttribute( - val value: UShort? - ) + class SpeedAttribute(val value: UShort?) - class LifetimeRunningHoursAttribute( - val value: UInt? - ) + class LifetimeRunningHoursAttribute(val value: UInt?) - class PowerAttribute( - val value: UInt? - ) + class PowerAttribute(val value: UInt?) - class LifetimeEnergyConsumedAttribute( - val value: UInt? - ) + class LifetimeEnergyConsumedAttribute(val value: UInt?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMaxPressureAttribute(): MaxPressureAttribute { // Implementation needs to be added here @@ -124,10 +83,7 @@ class PumpConfigurationAndControlCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun subscribeMaxSpeedAttribute( - minInterval: Int, - maxInterval: Int - ): MaxSpeedAttribute { + suspend fun subscribeMaxSpeedAttribute(minInterval: Int, maxInterval: Int): MaxSpeedAttribute { // Implementation needs to be added here } @@ -135,10 +91,7 @@ class PumpConfigurationAndControlCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun subscribeMaxFlowAttribute( - minInterval: Int, - maxInterval: Int - ): MaxFlowAttribute { + suspend fun subscribeMaxFlowAttribute(minInterval: Int, maxInterval: Int): MaxFlowAttribute { // Implementation needs to be added here } @@ -256,10 +209,7 @@ class PumpConfigurationAndControlCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun subscribePumpStatusAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePumpStatusAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -267,10 +217,7 @@ class PumpConfigurationAndControlCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun subscribeEffectiveOperationModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeEffectiveOperationModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -278,10 +225,7 @@ class PumpConfigurationAndControlCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun subscribeEffectiveControlModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeEffectiveControlModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -289,10 +233,7 @@ class PumpConfigurationAndControlCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun subscribeCapacityAttribute( - minInterval: Int, - maxInterval: Int - ): CapacityAttribute { + suspend fun subscribeCapacityAttribute(minInterval: Int, maxInterval: Int): CapacityAttribute { // Implementation needs to be added here } @@ -300,10 +241,7 @@ class PumpConfigurationAndControlCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun subscribeSpeedAttribute( - minInterval: Int, - maxInterval: Int - ): SpeedAttribute { + suspend fun subscribeSpeedAttribute(minInterval: Int, maxInterval: Int): SpeedAttribute { // Implementation needs to be added here } @@ -311,15 +249,12 @@ class PumpConfigurationAndControlCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun writeLifetimeRunningHoursAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeLifetimeRunningHoursAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeLifetimeRunningHoursAttribute( @@ -333,10 +268,7 @@ class PumpConfigurationAndControlCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun subscribePowerAttribute( - minInterval: Int, - maxInterval: Int - ): PowerAttribute { + suspend fun subscribePowerAttribute(minInterval: Int, maxInterval: Int): PowerAttribute { // Implementation needs to be added here } @@ -344,15 +276,12 @@ class PumpConfigurationAndControlCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun writeLifetimeEnergyConsumedAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeLifetimeEnergyConsumedAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeLifetimeEnergyConsumedAttribute( @@ -366,21 +295,15 @@ class PumpConfigurationAndControlCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun writeOperationModeAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeOperationModeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOperationModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeOperationModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -388,21 +311,15 @@ class PumpConfigurationAndControlCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun writeControlModeAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeControlModeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeControlModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeControlModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -432,10 +349,7 @@ class PumpConfigurationAndControlCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -454,10 +368,7 @@ class PumpConfigurationAndControlCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -465,10 +376,7 @@ class PumpConfigurationAndControlCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RadonConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RadonConcentrationMeasurementCluster.kt index aae26a06cd0c8b..5c54c5f5fee2fe 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RadonConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RadonConcentrationMeasurementCluster.kt @@ -20,42 +20,27 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class RadonConcentrationMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: Float? - ) +class RadonConcentrationMeasurementCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class MeasuredValueAttribute(val value: Float?) - class MinMeasuredValueAttribute( - val value: Float? - ) + class MinMeasuredValueAttribute(val value: Float?) - class MaxMeasuredValueAttribute( - val value: Float? - ) + class MaxMeasuredValueAttribute(val value: Float?) - class PeakMeasuredValueAttribute( - val value: Float? - ) + class PeakMeasuredValueAttribute(val value: Float?) - class AverageMeasuredValueAttribute( - val value: Float? - ) + class AverageMeasuredValueAttribute(val value: Float?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -105,10 +90,7 @@ class RadonConcentrationMeasurementCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -138,10 +120,7 @@ class RadonConcentrationMeasurementCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute( - minInterval: Int, - maxInterval: Int - ): Float { + suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } @@ -149,10 +128,7 @@ class RadonConcentrationMeasurementCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -160,10 +136,7 @@ class RadonConcentrationMeasurementCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -171,10 +144,7 @@ class RadonConcentrationMeasurementCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -204,10 +174,7 @@ class RadonConcentrationMeasurementCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -226,10 +193,7 @@ class RadonConcentrationMeasurementCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -237,10 +201,7 @@ class RadonConcentrationMeasurementCluster(private val controller: MatterControl // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAlarmCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAlarmCluster.kt index 5912b4d412ad70..9aebd7443d205e 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAlarmCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAlarmCluster.kt @@ -20,31 +20,23 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class RefrigeratorAlarmCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) +class RefrigeratorAlarmCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMaskAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeMaskAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeMaskAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -52,10 +44,7 @@ class RefrigeratorAlarmCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeStateAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeStateAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -63,10 +52,7 @@ class RefrigeratorAlarmCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeSupportedAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeSupportedAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -96,10 +82,7 @@ class RefrigeratorAlarmCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -118,10 +101,7 @@ class RefrigeratorAlarmCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -129,10 +109,7 @@ class RefrigeratorAlarmCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAndTemperatureControlledCabinetModeCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAndTemperatureControlledCabinetModeCluster.kt index 14ccfcb4a53e45..bfb589a815d089 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAndTemperatureControlledCabinetModeCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAndTemperatureControlledCabinetModeCluster.kt @@ -20,48 +20,39 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class RefrigeratorAndTemperatureControlledCabinetModeCluster(private val controller: MatterController, private val endpointId: UShort) { - class ChangeToModeResponse( - val status: UInt, - val statusText: String? - ) +class RefrigeratorAndTemperatureControlledCabinetModeCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class ChangeToModeResponse(val status: UInt, val statusText: String?) class SupportedModesAttribute( val value: List ) - class StartUpModeAttribute( - val value: UByte? - ) + class StartUpModeAttribute(val value: UByte?) - class OnModeAttribute( - val value: UByte? - ) + class OnModeAttribute(val value: UByte?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int? = null): ChangeToModeResponse { + suspend fun changeToMode( + newMode: UByte, + timedInvokeTimeoutMs: Int? = null + ): ChangeToModeResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readSupportedModesAttribute(): SupportedModesAttribute { @@ -79,10 +70,7 @@ class RefrigeratorAndTemperatureControlledCabinetModeCluster(private val control // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -90,15 +78,12 @@ class RefrigeratorAndTemperatureControlledCabinetModeCluster(private val control // Implementation needs to be added here } - suspend fun writeStartUpModeAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeStartUpModeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeStartUpModeAttribute( @@ -112,21 +97,15 @@ class RefrigeratorAndTemperatureControlledCabinetModeCluster(private val control // Implementation needs to be added here } - suspend fun writeOnModeAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeOnModeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOnModeAttribute( - minInterval: Int, - maxInterval: Int - ): OnModeAttribute { + suspend fun subscribeOnModeAttribute(minInterval: Int, maxInterval: Int): OnModeAttribute { // Implementation needs to be added here } @@ -156,10 +135,7 @@ class RefrigeratorAndTemperatureControlledCabinetModeCluster(private val control // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -178,10 +154,7 @@ class RefrigeratorAndTemperatureControlledCabinetModeCluster(private val control // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -189,10 +162,7 @@ class RefrigeratorAndTemperatureControlledCabinetModeCluster(private val control // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RelativeHumidityMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RelativeHumidityMeasurementCluster.kt index 25235175a9b3ff..d2240d51f6ae74 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RelativeHumidityMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RelativeHumidityMeasurementCluster.kt @@ -20,34 +20,23 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class RelativeHumidityMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: UShort? - ) +class RelativeHumidityMeasurementCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class MeasuredValueAttribute(val value: UShort?) - class MinMeasuredValueAttribute( - val value: UShort? - ) + class MinMeasuredValueAttribute(val value: UShort?) - class MaxMeasuredValueAttribute( - val value: UShort? - ) + class MaxMeasuredValueAttribute(val value: UShort?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -86,10 +75,7 @@ class RelativeHumidityMeasurementCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun subscribeToleranceAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -119,10 +105,7 @@ class RelativeHumidityMeasurementCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -141,10 +124,7 @@ class RelativeHumidityMeasurementCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -152,10 +132,7 @@ class RelativeHumidityMeasurementCluster(private val controller: MatterControlle // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcCleanModeCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcCleanModeCluster.kt index 04f82bfef9e2a2..2a5620f647505c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcCleanModeCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcCleanModeCluster.kt @@ -20,44 +20,35 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class RvcCleanModeCluster(private val controller: MatterController, private val endpointId: UShort) { - class ChangeToModeResponse( - val status: UInt, - val statusText: String? - ) +class RvcCleanModeCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class ChangeToModeResponse(val status: UInt, val statusText: String?) - class SupportedModesAttribute( - val value: List - ) + class SupportedModesAttribute(val value: List) - class OnModeAttribute( - val value: UByte? - ) + class OnModeAttribute(val value: UByte?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int? = null): ChangeToModeResponse { + suspend fun changeToMode( + newMode: UByte, + timedInvokeTimeoutMs: Int? = null + ): ChangeToModeResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readSupportedModesAttribute(): SupportedModesAttribute { @@ -75,10 +66,7 @@ class RvcCleanModeCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -86,21 +74,15 @@ class RvcCleanModeCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun writeOnModeAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeOnModeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOnModeAttribute( - minInterval: Int, - maxInterval: Int - ): OnModeAttribute { + suspend fun subscribeOnModeAttribute(minInterval: Int, maxInterval: Int): OnModeAttribute { // Implementation needs to be added here } @@ -130,10 +112,7 @@ class RvcCleanModeCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -152,10 +131,7 @@ class RvcCleanModeCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -163,10 +139,7 @@ class RvcCleanModeCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcOperationalStateCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcOperationalStateCluster.kt index 1b48a6e8d35760..abb27510e5590c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcOperationalStateCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcOperationalStateCluster.kt @@ -20,46 +20,33 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class RvcOperationalStateCluster(private val controller: MatterController, private val endpointId: UShort) { +class RvcOperationalStateCluster( + private val controller: MatterController, + private val endpointId: UShort +) { class OperationalCommandResponse( val commandResponseState: RvcOperationalStateClusterErrorStateStruct ) - class PhaseListAttribute( - val value: List? - ) + class PhaseListAttribute(val value: List?) - class CurrentPhaseAttribute( - val value: UByte? - ) + class CurrentPhaseAttribute(val value: UByte?) - class CountdownTimeAttribute( - val value: UInt? - ) + class CountdownTimeAttribute(val value: UInt?) class OperationalStateListAttribute( val value: List ) - class OperationalErrorAttribute( - val value: RvcOperationalStateClusterErrorStateStruct - ) + class OperationalErrorAttribute(val value: RvcOperationalStateClusterErrorStateStruct) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun pause(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { val commandId = 0L @@ -68,7 +55,7 @@ class RvcOperationalStateCluster(private val controller: MatterController, priva // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun stop(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { @@ -78,7 +65,7 @@ class RvcOperationalStateCluster(private val controller: MatterController, priva // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun start(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { @@ -88,7 +75,7 @@ class RvcOperationalStateCluster(private val controller: MatterController, priva // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun resume(timedInvokeTimeoutMs: Int? = null): OperationalCommandResponse { @@ -98,17 +85,14 @@ class RvcOperationalStateCluster(private val controller: MatterController, priva // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readPhaseListAttribute(): PhaseListAttribute { // Implementation needs to be added here } - suspend fun subscribePhaseListAttribute( - minInterval: Int, - maxInterval: Int - ): PhaseListAttribute { + suspend fun subscribePhaseListAttribute(minInterval: Int, maxInterval: Int): PhaseListAttribute { // Implementation needs to be added here } @@ -149,10 +133,7 @@ class RvcOperationalStateCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeOperationalStateAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeOperationalStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -193,10 +174,7 @@ class RvcOperationalStateCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -215,10 +193,7 @@ class RvcOperationalStateCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -226,10 +201,7 @@ class RvcOperationalStateCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcRunModeCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcRunModeCluster.kt index cc6fba26761217..6c4879b6144e03 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcRunModeCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcRunModeCluster.kt @@ -21,43 +21,31 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class RvcRunModeCluster(private val controller: MatterController, private val endpointId: UShort) { - class ChangeToModeResponse( - val status: UInt, - val statusText: String? - ) + class ChangeToModeResponse(val status: UInt, val statusText: String?) - class SupportedModesAttribute( - val value: List - ) + class SupportedModesAttribute(val value: List) - class OnModeAttribute( - val value: UByte? - ) + class OnModeAttribute(val value: UByte?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun changeToMode(newMode: UByte, timedInvokeTimeoutMs: Int? = null): ChangeToModeResponse { + suspend fun changeToMode( + newMode: UByte, + timedInvokeTimeoutMs: Int? = null + ): ChangeToModeResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readSupportedModesAttribute(): SupportedModesAttribute { @@ -75,10 +63,7 @@ class RvcRunModeCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeCurrentModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -86,21 +71,15 @@ class RvcRunModeCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeOnModeAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeOnModeAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOnModeAttribute( - minInterval: Int, - maxInterval: Int - ): OnModeAttribute { + suspend fun subscribeOnModeAttribute(minInterval: Int, maxInterval: Int): OnModeAttribute { // Implementation needs to be added here } @@ -130,10 +109,7 @@ class RvcRunModeCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -152,10 +128,7 @@ class RvcRunModeCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -163,10 +136,7 @@ class RvcRunModeCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SampleMeiCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SampleMeiCluster.kt index 8e08927e8394e0..a19737df6c3d4e 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SampleMeiCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SampleMeiCluster.kt @@ -21,25 +21,15 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class SampleMeiCluster(private val controller: MatterController, private val endpointId: UShort) { - class AddArgumentsResponse( - val returnValue: UByte - ) + class AddArgumentsResponse(val returnValue: UByte) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun ping(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -48,38 +38,36 @@ class SampleMeiCluster(private val controller: MatterController, private val end // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun addArguments(arg1: UByte, arg2: UByte, timedInvokeTimeoutMs: Int? = null): AddArgumentsResponse { + suspend fun addArguments( + arg1: UByte, + arg2: UByte, + timedInvokeTimeoutMs: Int? = null + ): AddArgumentsResponse { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readFlipFlopAttribute(): Boolean { // Implementation needs to be added here } - suspend fun writeFlipFlopAttribute( - value: Boolean, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeFlipFlopAttribute(value: Boolean, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeFlipFlopAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeFlipFlopAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -109,10 +97,7 @@ class SampleMeiCluster(private val controller: MatterController, private val end // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -131,10 +116,7 @@ class SampleMeiCluster(private val controller: MatterController, private val end // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -142,10 +124,7 @@ class SampleMeiCluster(private val controller: MatterController, private val end // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ScenesCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ScenesCluster.kt index 857171ebdd5cf6..4baf50cd57f18a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ScenesCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ScenesCluster.kt @@ -21,198 +21,212 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class ScenesCluster(private val controller: MatterController, private val endpointId: UShort) { - class AddSceneResponse( - val status: UShort, - val groupID: UShort, - val sceneID: UByte - ) + class AddSceneResponse(val status: UShort, val groupID: UShort, val sceneID: UByte) class ViewSceneResponse( - val status: UShort, - val groupID: UShort, - val sceneID: UByte, - val transitionTime: UShort?, - val sceneName: String?, + val status: UShort, + val groupID: UShort, + val sceneID: UByte, + val transitionTime: UShort?, + val sceneName: String?, val extensionFieldSets: List? ) - class RemoveSceneResponse( - val status: UShort, - val groupID: UShort, - val sceneID: UByte - ) + class RemoveSceneResponse(val status: UShort, val groupID: UShort, val sceneID: UByte) - class RemoveAllScenesResponse( - val status: UShort, - val groupID: UShort - ) + class RemoveAllScenesResponse(val status: UShort, val groupID: UShort) - class StoreSceneResponse( - val status: UShort, - val groupID: UShort, - val sceneID: UByte - ) + class StoreSceneResponse(val status: UShort, val groupID: UShort, val sceneID: UByte) class GetSceneMembershipResponse( - val status: UShort, - val capacity: UByte?, - val groupID: UShort, + val status: UShort, + val capacity: UByte?, + val groupID: UShort, val sceneList: List? ) - class EnhancedAddSceneResponse( - val status: UShort, - val groupID: UShort, - val sceneID: UByte - ) + class EnhancedAddSceneResponse(val status: UShort, val groupID: UShort, val sceneID: UByte) class EnhancedViewSceneResponse( - val status: UShort, - val groupID: UShort, - val sceneID: UByte, - val transitionTime: UShort?, - val sceneName: String?, + val status: UShort, + val groupID: UShort, + val sceneID: UByte, + val transitionTime: UShort?, + val sceneName: String?, val extensionFieldSets: List? ) class CopySceneResponse( - val status: UShort, - val groupIdentifierFrom: UShort, + val status: UShort, + val groupIdentifierFrom: UShort, val sceneIdentifierFrom: UByte ) - class LastConfiguredByAttribute( - val value: ULong? - ) + class LastConfiguredByAttribute(val value: ULong?) - class FabricSceneInfoAttribute( - val value: List - ) + class FabricSceneInfoAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun addScene(groupID: UShort, sceneID: UByte, transitionTime: UShort, sceneName: String, extensionFieldSets: List, timedInvokeTimeoutMs: Int? = null): AddSceneResponse { + suspend fun addScene( + groupID: UShort, + sceneID: UByte, + transitionTime: UShort, + sceneName: String, + extensionFieldSets: List, + timedInvokeTimeoutMs: Int? = null + ): AddSceneResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun viewScene(groupID: UShort, sceneID: UByte, timedInvokeTimeoutMs: Int? = null): ViewSceneResponse { + suspend fun viewScene( + groupID: UShort, + sceneID: UByte, + timedInvokeTimeoutMs: Int? = null + ): ViewSceneResponse { val commandId = 1L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun removeScene(groupID: UShort, sceneID: UByte, timedInvokeTimeoutMs: Int? = null): RemoveSceneResponse { + suspend fun removeScene( + groupID: UShort, + sceneID: UByte, + timedInvokeTimeoutMs: Int? = null + ): RemoveSceneResponse { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun removeAllScenes(groupID: UShort, timedInvokeTimeoutMs: Int? = null): RemoveAllScenesResponse { + suspend fun removeAllScenes( + groupID: UShort, + timedInvokeTimeoutMs: Int? = null + ): RemoveAllScenesResponse { val commandId = 3L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun storeScene(groupID: UShort, sceneID: UByte, timedInvokeTimeoutMs: Int? = null): StoreSceneResponse { + suspend fun storeScene( + groupID: UShort, + sceneID: UByte, + timedInvokeTimeoutMs: Int? = null + ): StoreSceneResponse { val commandId = 4L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun recallScene(groupID: UShort, sceneID: UByte, transitionTime: UShort?, timedInvokeTimeoutMs: Int? = null) { + suspend fun recallScene( + groupID: UShort, + sceneID: UByte, + transitionTime: UShort?, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 5L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun getSceneMembership(groupID: UShort, timedInvokeTimeoutMs: Int? = null): GetSceneMembershipResponse { + suspend fun getSceneMembership( + groupID: UShort, + timedInvokeTimeoutMs: Int? = null + ): GetSceneMembershipResponse { val commandId = 6L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun enhancedAddScene(groupID: UShort, sceneID: UByte, transitionTime: UShort, sceneName: String, extensionFieldSets: List, timedInvokeTimeoutMs: Int? = null): EnhancedAddSceneResponse { + suspend fun enhancedAddScene( + groupID: UShort, + sceneID: UByte, + transitionTime: UShort, + sceneName: String, + extensionFieldSets: List, + timedInvokeTimeoutMs: Int? = null + ): EnhancedAddSceneResponse { val commandId = 64L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun enhancedViewScene(groupID: UShort, sceneID: UByte, timedInvokeTimeoutMs: Int? = null): EnhancedViewSceneResponse { + suspend fun enhancedViewScene( + groupID: UShort, + sceneID: UByte, + timedInvokeTimeoutMs: Int? = null + ): EnhancedViewSceneResponse { val commandId = 65L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun copyScene(mode: UInt, groupIdentifierFrom: UShort, sceneIdentifierFrom: UByte, groupIdentifierTo: UShort, sceneIdentifierTo: UByte, timedInvokeTimeoutMs: Int? = null): CopySceneResponse { + suspend fun copyScene( + mode: UInt, + groupIdentifierFrom: UShort, + sceneIdentifierFrom: UByte, + groupIdentifierTo: UShort, + sceneIdentifierTo: UByte, + timedInvokeTimeoutMs: Int? = null + ): CopySceneResponse { val commandId = 66L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readSceneCountAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeSceneCountAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeSceneCountAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -220,10 +234,7 @@ class ScenesCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeCurrentSceneAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentSceneAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -231,10 +242,7 @@ class ScenesCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeCurrentGroupAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeCurrentGroupAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -242,10 +250,7 @@ class ScenesCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeSceneValidAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeSceneValidAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -253,10 +258,7 @@ class ScenesCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeNameSupportAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeNameSupportAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -275,10 +277,7 @@ class ScenesCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeSceneTableSizeAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeSceneTableSizeAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -292,7 +291,6 @@ class ScenesCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeFabricSceneInfoAttribute( minInterval: Int, maxInterval: Int @@ -326,10 +324,7 @@ class ScenesCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -348,10 +343,7 @@ class ScenesCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -359,10 +351,7 @@ class ScenesCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SmokeCoAlarmCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SmokeCoAlarmCluster.kt index 24adfc50558dc0..384b52fbfcfea7 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SmokeCoAlarmCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SmokeCoAlarmCluster.kt @@ -20,22 +20,17 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class SmokeCoAlarmCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) +class SmokeCoAlarmCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun selfTestRequest(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -44,17 +39,14 @@ class SmokeCoAlarmCluster(private val controller: MatterController, private val // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readExpressedStateAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeExpressedStateAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeExpressedStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -62,10 +54,7 @@ class SmokeCoAlarmCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeSmokeStateAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeSmokeStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -73,10 +62,7 @@ class SmokeCoAlarmCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeCOStateAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCOStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -84,10 +70,7 @@ class SmokeCoAlarmCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeBatteryAlertAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeBatteryAlertAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -95,10 +78,7 @@ class SmokeCoAlarmCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeDeviceMutedAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeDeviceMutedAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -106,10 +86,7 @@ class SmokeCoAlarmCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeTestInProgressAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeTestInProgressAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -117,10 +94,7 @@ class SmokeCoAlarmCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeHardwareFaultAlertAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeHardwareFaultAlertAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -128,10 +102,7 @@ class SmokeCoAlarmCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeEndOfServiceAlertAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeEndOfServiceAlertAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -139,10 +110,7 @@ class SmokeCoAlarmCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeInterconnectSmokeAlarmAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeInterconnectSmokeAlarmAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -150,10 +118,7 @@ class SmokeCoAlarmCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeInterconnectCOAlarmAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeInterconnectCOAlarmAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -161,10 +126,7 @@ class SmokeCoAlarmCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeContaminationStateAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeContaminationStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -172,21 +134,15 @@ class SmokeCoAlarmCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun writeSmokeSensitivityLevelAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeSmokeSensitivityLevelAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeSmokeSensitivityLevelAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeSmokeSensitivityLevelAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -194,10 +150,7 @@ class SmokeCoAlarmCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeExpiryDateAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeExpiryDateAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -227,10 +180,7 @@ class SmokeCoAlarmCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -249,10 +199,7 @@ class SmokeCoAlarmCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -260,10 +207,7 @@ class SmokeCoAlarmCluster(private val controller: MatterController, private val // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SoftwareDiagnosticsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SoftwareDiagnosticsCluster.kt index e16e7407bd29e1..0132daa4368246 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SoftwareDiagnosticsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SoftwareDiagnosticsCluster.kt @@ -20,26 +20,19 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class SoftwareDiagnosticsCluster(private val controller: MatterController, private val endpointId: UShort) { - class ThreadMetricsAttribute( - val value: List? - ) +class SoftwareDiagnosticsCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class ThreadMetricsAttribute(val value: List?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun resetWatermarks(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -48,7 +41,7 @@ class SoftwareDiagnosticsCluster(private val controller: MatterController, priva // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readThreadMetricsAttribute(): ThreadMetricsAttribute { @@ -66,10 +59,7 @@ class SoftwareDiagnosticsCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeCurrentHeapFreeAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeCurrentHeapFreeAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -77,10 +67,7 @@ class SoftwareDiagnosticsCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeCurrentHeapUsedAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeCurrentHeapUsedAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -121,10 +108,7 @@ class SoftwareDiagnosticsCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -143,10 +127,7 @@ class SoftwareDiagnosticsCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -154,10 +135,7 @@ class SoftwareDiagnosticsCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SwitchCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SwitchCluster.kt index 25fe41e0e1d7bf..a27cc29bd7b640 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SwitchCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SwitchCluster.kt @@ -21,30 +21,19 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class SwitchCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readNumberOfPositionsAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeNumberOfPositionsAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeNumberOfPositionsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -52,10 +41,7 @@ class SwitchCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeCurrentPositionAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentPositionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -63,10 +49,7 @@ class SwitchCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeMultiPressMaxAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMultiPressMaxAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -96,10 +79,7 @@ class SwitchCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -118,10 +98,7 @@ class SwitchCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -129,10 +106,7 @@ class SwitchCluster(private val controller: MatterController, private val endpoi // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TargetNavigatorCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TargetNavigatorCluster.kt index 7e314e6de87775..691bc7adc452b1 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TargetNavigatorCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TargetNavigatorCluster.kt @@ -20,40 +20,34 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class TargetNavigatorCluster(private val controller: MatterController, private val endpointId: UShort) { - class NavigateTargetResponse( - val status: UInt, - val data: String? - ) +class TargetNavigatorCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class NavigateTargetResponse(val status: UInt, val data: String?) - class TargetListAttribute( - val value: List - ) + class TargetListAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun navigateTarget(target: UByte, data: String?, timedInvokeTimeoutMs: Int? = null): NavigateTargetResponse { + suspend fun navigateTarget( + target: UByte, + data: String?, + timedInvokeTimeoutMs: Int? = null + ): NavigateTargetResponse { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readTargetListAttribute(): TargetListAttribute { @@ -71,10 +65,7 @@ class TargetNavigatorCluster(private val controller: MatterController, private v // Implementation needs to be added here } - suspend fun subscribeCurrentTargetAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeCurrentTargetAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -104,10 +95,7 @@ class TargetNavigatorCluster(private val controller: MatterController, private v // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -126,10 +114,7 @@ class TargetNavigatorCluster(private val controller: MatterController, private v // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -137,10 +122,7 @@ class TargetNavigatorCluster(private val controller: MatterController, private v // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureControlCluster.kt index 99c51348ed8eea..978f543f84231a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureControlCluster.kt @@ -20,45 +20,39 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class TemperatureControlCluster(private val controller: MatterController, private val endpointId: UShort) { - class SupportedTemperatureLevelsAttribute( - val value: List? - ) +class TemperatureControlCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class SupportedTemperatureLevelsAttribute(val value: List?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun setTemperature(targetTemperature: Short?, targetTemperatureLevel: UByte?, timedInvokeTimeoutMs: Int? = null) { + suspend fun setTemperature( + targetTemperature: Short?, + targetTemperatureLevel: UByte?, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readTemperatureSetpointAttribute(): Short { // Implementation needs to be added here } - suspend fun subscribeTemperatureSetpointAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeTemperatureSetpointAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -66,10 +60,7 @@ class TemperatureControlCluster(private val controller: MatterController, privat // Implementation needs to be added here } - suspend fun subscribeMinTemperatureAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeMinTemperatureAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -77,10 +68,7 @@ class TemperatureControlCluster(private val controller: MatterController, privat // Implementation needs to be added here } - suspend fun subscribeMaxTemperatureAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeMaxTemperatureAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -88,10 +76,7 @@ class TemperatureControlCluster(private val controller: MatterController, privat // Implementation needs to be added here } - suspend fun subscribeStepAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeStepAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -143,10 +128,7 @@ class TemperatureControlCluster(private val controller: MatterController, privat // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -165,10 +147,7 @@ class TemperatureControlCluster(private val controller: MatterController, privat // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -176,10 +155,7 @@ class TemperatureControlCluster(private val controller: MatterController, privat // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureMeasurementCluster.kt index a65fca25981be8..5c6a6ff41fd1eb 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureMeasurementCluster.kt @@ -20,34 +20,23 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class TemperatureMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: Short? - ) +class TemperatureMeasurementCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class MeasuredValueAttribute(val value: Short?) - class MinMeasuredValueAttribute( - val value: Short? - ) + class MinMeasuredValueAttribute(val value: Short?) - class MaxMeasuredValueAttribute( - val value: Short? - ) + class MaxMeasuredValueAttribute(val value: Short?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -86,10 +75,7 @@ class TemperatureMeasurementCluster(private val controller: MatterController, pr // Implementation needs to be added here } - suspend fun subscribeToleranceAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeToleranceAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -119,10 +105,7 @@ class TemperatureMeasurementCluster(private val controller: MatterController, pr // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -141,10 +124,7 @@ class TemperatureMeasurementCluster(private val controller: MatterController, pr // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -152,10 +132,7 @@ class TemperatureMeasurementCluster(private val controller: MatterController, pr // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatCluster.kt index cf80d3a9cc181b..a5865b38432226 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatCluster.kt @@ -22,116 +22,68 @@ import matter.devicecontroller.cluster.structs.* class ThermostatCluster(private val controller: MatterController, private val endpointId: UShort) { class GetWeeklyScheduleResponse( - val numberOfTransitionsForSequence: UByte, - val dayOfWeekforSequence: UInt, - val modeForSequence: UInt, + val numberOfTransitionsForSequence: UByte, + val dayOfWeekforSequence: UInt, + val modeForSequence: UInt, val transitions: List ) class GetRelayStatusLogResponse( - val timeOfDay: UShort, - val relayStatus: UInt, - val localTemperature: Short?, - val humidityInPercentage: UByte?, - val setPoint: Short, + val timeOfDay: UShort, + val relayStatus: UInt, + val localTemperature: Short?, + val humidityInPercentage: UByte?, + val setPoint: Short, val unreadEntries: UShort ) - class LocalTemperatureAttribute( - val value: Short? - ) + class LocalTemperatureAttribute(val value: Short?) - class OutdoorTemperatureAttribute( - val value: Short? - ) + class OutdoorTemperatureAttribute(val value: Short?) - class TemperatureSetpointHoldDurationAttribute( - val value: UShort? - ) + class TemperatureSetpointHoldDurationAttribute(val value: UShort?) - class SetpointChangeAmountAttribute( - val value: Short? - ) + class SetpointChangeAmountAttribute(val value: Short?) - class OccupiedSetbackAttribute( - val value: UByte? - ) + class OccupiedSetbackAttribute(val value: UByte?) - class OccupiedSetbackMinAttribute( - val value: UByte? - ) + class OccupiedSetbackMinAttribute(val value: UByte?) - class OccupiedSetbackMaxAttribute( - val value: UByte? - ) + class OccupiedSetbackMaxAttribute(val value: UByte?) - class UnoccupiedSetbackAttribute( - val value: UByte? - ) + class UnoccupiedSetbackAttribute(val value: UByte?) - class UnoccupiedSetbackMinAttribute( - val value: UByte? - ) + class UnoccupiedSetbackMinAttribute(val value: UByte?) - class UnoccupiedSetbackMaxAttribute( - val value: UByte? - ) + class UnoccupiedSetbackMaxAttribute(val value: UByte?) - class ACCoilTemperatureAttribute( - val value: Short? - ) + class ACCoilTemperatureAttribute(val value: Short?) - class PresetTypesAttribute( - val value: List? - ) + class PresetTypesAttribute(val value: List?) - class ScheduleTypesAttribute( - val value: List? - ) + class ScheduleTypesAttribute(val value: List?) - class NumberOfScheduleTransitionPerDayAttribute( - val value: UByte? - ) + class NumberOfScheduleTransitionPerDayAttribute(val value: UByte?) - class ActivePresetHandleAttribute( - val value: ByteArray? - ) + class ActivePresetHandleAttribute(val value: ByteArray?) - class ActiveScheduleHandleAttribute( - val value: ByteArray? - ) + class ActiveScheduleHandleAttribute(val value: ByteArray?) - class PresetsAttribute( - val value: List? - ) + class PresetsAttribute(val value: List?) - class SchedulesAttribute( - val value: List? - ) + class SchedulesAttribute(val value: List?) - class SetpointHoldExpiryTimestampAttribute( - val value: UInt? - ) + class SetpointHoldExpiryTimestampAttribute(val value: UInt?) - class QueuedPresetAttribute( - val value: ThermostatClusterQueuedPresetStruct? - ) + class QueuedPresetAttribute(val value: ThermostatClusterQueuedPresetStruct?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun setpointRaiseLower(mode: UInt, amount: Byte, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -140,27 +92,37 @@ class ThermostatCluster(private val controller: MatterController, private val en // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun setWeeklySchedule(numberOfTransitionsForSequence: UByte, dayOfWeekforSequence: UInt, modeForSequence: UInt, transitions: List, timedInvokeTimeoutMs: Int? = null) { + suspend fun setWeeklySchedule( + numberOfTransitionsForSequence: UByte, + dayOfWeekforSequence: UInt, + modeForSequence: UInt, + transitions: List, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 1L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun getWeeklySchedule(daysToReturn: UInt, modeToReturn: UInt, timedInvokeTimeoutMs: Int? = null): GetWeeklyScheduleResponse { + suspend fun getWeeklySchedule( + daysToReturn: UInt, + modeToReturn: UInt, + timedInvokeTimeoutMs: Int? = null + ): GetWeeklyScheduleResponse { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun clearWeeklySchedule(timedInvokeTimeoutMs: Int? = null) { @@ -170,7 +132,7 @@ class ThermostatCluster(private val controller: MatterController, private val en // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun getRelayStatusLog(timedInvokeTimeoutMs: Int? = null): GetRelayStatusLogResponse { @@ -180,37 +142,47 @@ class ThermostatCluster(private val controller: MatterController, private val en // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun setActiveScheduleRequest(scheduleHandle: ByteArray, timedInvokeTimeoutMs: Int? = null) { + suspend fun setActiveScheduleRequest( + scheduleHandle: ByteArray, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 5L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun setActivePresetRequest(presetHandle: ByteArray, delayMinutes: UShort?, timedInvokeTimeoutMs: Int? = null) { + suspend fun setActivePresetRequest( + presetHandle: ByteArray, + delayMinutes: UShort?, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 6L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun startPresetsSchedulesEditRequest(timeoutSeconds: UShort, timedInvokeTimeoutMs: Int? = null) { + suspend fun startPresetsSchedulesEditRequest( + timeoutSeconds: UShort, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 7L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun cancelPresetsSchedulesEditRequest(timedInvokeTimeoutMs: Int? = null) { @@ -220,7 +192,7 @@ class ThermostatCluster(private val controller: MatterController, private val en // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun commitPresetsSchedulesRequest(timedInvokeTimeoutMs: Int? = null) { @@ -230,7 +202,7 @@ class ThermostatCluster(private val controller: MatterController, private val en // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun cancelSetActivePresetRequest(timedInvokeTimeoutMs: Int? = null) { @@ -240,17 +212,20 @@ class ThermostatCluster(private val controller: MatterController, private val en // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun setTemperatureSetpointHoldPolicy(temperatureSetpointHoldPolicy: UInt, timedInvokeTimeoutMs: Int? = null) { + suspend fun setTemperatureSetpointHoldPolicy( + temperatureSetpointHoldPolicy: UInt, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 11L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readLocalTemperatureAttribute(): LocalTemperatureAttribute { @@ -279,10 +254,7 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeOccupancyAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeOccupancyAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -290,10 +262,7 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeAbsMinHeatSetpointLimitAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeAbsMinHeatSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -301,10 +270,7 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeAbsMaxHeatSetpointLimitAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeAbsMaxHeatSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -312,10 +278,7 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeAbsMinCoolSetpointLimitAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeAbsMinCoolSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -323,10 +286,7 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeAbsMaxCoolSetpointLimitAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeAbsMaxCoolSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -334,10 +294,7 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribePICoolingDemandAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribePICoolingDemandAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -345,10 +302,7 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribePIHeatingDemandAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribePIHeatingDemandAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -358,13 +312,13 @@ class ThermostatCluster(private val controller: MatterController, private val en suspend fun writeLocalTemperatureCalibrationAttribute( value: Byte, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeLocalTemperatureCalibrationAttribute( @@ -380,19 +334,16 @@ class ThermostatCluster(private val controller: MatterController, private val en suspend fun writeOccupiedCoolingSetpointAttribute( value: Short, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOccupiedCoolingSetpointAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeOccupiedCoolingSetpointAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -402,19 +353,16 @@ class ThermostatCluster(private val controller: MatterController, private val en suspend fun writeOccupiedHeatingSetpointAttribute( value: Short, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOccupiedHeatingSetpointAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeOccupiedHeatingSetpointAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -424,13 +372,13 @@ class ThermostatCluster(private val controller: MatterController, private val en suspend fun writeUnoccupiedCoolingSetpointAttribute( value: Short, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeUnoccupiedCoolingSetpointAttribute( @@ -446,13 +394,13 @@ class ThermostatCluster(private val controller: MatterController, private val en suspend fun writeUnoccupiedHeatingSetpointAttribute( value: Short, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeUnoccupiedHeatingSetpointAttribute( @@ -466,21 +414,15 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeMinHeatSetpointLimitAttribute( - value: Short, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeMinHeatSetpointLimitAttribute(value: Short, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeMinHeatSetpointLimitAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeMinHeatSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -488,21 +430,15 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeMaxHeatSetpointLimitAttribute( - value: Short, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeMaxHeatSetpointLimitAttribute(value: Short, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeMaxHeatSetpointLimitAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeMaxHeatSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -510,21 +446,15 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeMinCoolSetpointLimitAttribute( - value: Short, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeMinCoolSetpointLimitAttribute(value: Short, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeMinCoolSetpointLimitAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeMinCoolSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -532,21 +462,15 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeMaxCoolSetpointLimitAttribute( - value: Short, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeMaxCoolSetpointLimitAttribute(value: Short, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeMaxCoolSetpointLimitAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeMaxCoolSetpointLimitAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -554,21 +478,15 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeMinSetpointDeadBandAttribute( - value: Byte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeMinSetpointDeadBandAttribute(value: Byte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeMinSetpointDeadBandAttribute( - minInterval: Int, - maxInterval: Int - ): Byte { + suspend fun subscribeMinSetpointDeadBandAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } @@ -576,21 +494,15 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeRemoteSensingAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeRemoteSensingAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeRemoteSensingAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeRemoteSensingAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -600,13 +512,13 @@ class ThermostatCluster(private val controller: MatterController, private val en suspend fun writeControlSequenceOfOperationAttribute( value: UInt, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeControlSequenceOfOperationAttribute( @@ -620,21 +532,15 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeSystemModeAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeSystemModeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeSystemModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeSystemModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -642,10 +548,7 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeAlarmMaskAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeAlarmMaskAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -653,10 +556,7 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeThermostatRunningModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeThermostatRunningModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -664,10 +564,7 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeStartOfWeekAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeStartOfWeekAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -697,37 +594,32 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeTemperatureSetpointHoldAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeTemperatureSetpointHoldAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeTemperatureSetpointHoldAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeTemperatureSetpointHoldAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readTemperatureSetpointHoldDurationAttribute(): TemperatureSetpointHoldDurationAttribute { + suspend fun readTemperatureSetpointHoldDurationAttribute(): + TemperatureSetpointHoldDurationAttribute { // Implementation needs to be added here } suspend fun writeTemperatureSetpointHoldDurationAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeTemperatureSetpointHoldDurationAttribute( @@ -743,13 +635,13 @@ class ThermostatCluster(private val controller: MatterController, private val en suspend fun writeThermostatProgrammingOperationModeAttribute( value: UInt, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeThermostatProgrammingOperationModeAttribute( @@ -763,10 +655,7 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeThermostatRunningStateAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeThermostatRunningStateAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -774,10 +663,7 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeSetpointChangeSourceAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeSetpointChangeSourceAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -807,15 +693,12 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeOccupiedSetbackAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeOccupiedSetbackAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeOccupiedSetbackAttribute( @@ -851,15 +734,12 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeUnoccupiedSetbackAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeUnoccupiedSetbackAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeUnoccupiedSetbackAttribute( @@ -895,21 +775,15 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeEmergencyHeatDeltaAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeEmergencyHeatDeltaAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeEmergencyHeatDeltaAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeEmergencyHeatDeltaAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -917,21 +791,15 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeACTypeAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeACTypeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeACTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeACTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -939,21 +807,15 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeACCapacityAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeACCapacityAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeACCapacityAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeACCapacityAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -961,21 +823,15 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeACRefrigerantTypeAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeACRefrigerantTypeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeACRefrigerantTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeACRefrigerantTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -983,21 +839,15 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeACCompressorTypeAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeACCompressorTypeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeACCompressorTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeACCompressorTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -1005,21 +855,15 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeACErrorCodeAttribute( - value: ULong, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeACErrorCodeAttribute(value: ULong, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeACErrorCodeAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeACErrorCodeAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -1027,21 +871,15 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeACLouverPositionAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeACLouverPositionAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeACLouverPositionAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeACLouverPositionAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -1060,21 +898,15 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun writeACCapacityFormatAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeACCapacityFormatAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeACCapacityFormatAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeACCapacityFormatAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -1104,10 +936,7 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeNumberOfPresetsAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeNumberOfPresetsAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -1115,10 +944,7 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeNumberOfSchedulesAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeNumberOfSchedulesAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -1133,7 +959,8 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun readNumberOfScheduleTransitionPerDayAttribute(): NumberOfScheduleTransitionPerDayAttribute { + suspend fun readNumberOfScheduleTransitionPerDayAttribute(): + NumberOfScheduleTransitionPerDayAttribute { // Implementation needs to be added here } @@ -1172,19 +999,16 @@ class ThermostatCluster(private val controller: MatterController, private val en suspend fun writePresetsAttribute( value: List, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribePresetsAttribute( - minInterval: Int, - maxInterval: Int - ): PresetsAttribute { + suspend fun subscribePresetsAttribute(minInterval: Int, maxInterval: Int): PresetsAttribute { // Implementation needs to be added here } @@ -1194,19 +1018,16 @@ class ThermostatCluster(private val controller: MatterController, private val en suspend fun writeSchedulesAttribute( value: List, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeSchedulesAttribute( - minInterval: Int, - maxInterval: Int - ): SchedulesAttribute { + suspend fun subscribeSchedulesAttribute(minInterval: Int, maxInterval: Int): SchedulesAttribute { // Implementation needs to be added here } @@ -1280,10 +1101,7 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -1302,10 +1120,7 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -1313,10 +1128,7 @@ class ThermostatCluster(private val controller: MatterController, private val en // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatUserInterfaceConfigurationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatUserInterfaceConfigurationCluster.kt index 8727c4bcdeadc3..12ed570344c446 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatUserInterfaceConfigurationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatUserInterfaceConfigurationCluster.kt @@ -20,42 +20,31 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class ThermostatUserInterfaceConfigurationCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) +class ThermostatUserInterfaceConfigurationCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readTemperatureDisplayModeAttribute(): UByte { // Implementation needs to be added here } - suspend fun writeTemperatureDisplayModeAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeTemperatureDisplayModeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeTemperatureDisplayModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeTemperatureDisplayModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -63,21 +52,15 @@ class ThermostatUserInterfaceConfigurationCluster(private val controller: Matter // Implementation needs to be added here } - suspend fun writeKeypadLockoutAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeKeypadLockoutAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeKeypadLockoutAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeKeypadLockoutAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -87,13 +70,13 @@ class ThermostatUserInterfaceConfigurationCluster(private val controller: Matter suspend fun writeScheduleProgrammingVisibilityAttribute( value: UInt, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeScheduleProgrammingVisibilityAttribute( @@ -129,10 +112,7 @@ class ThermostatUserInterfaceConfigurationCluster(private val controller: Matter // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -151,10 +131,7 @@ class ThermostatUserInterfaceConfigurationCluster(private val controller: Matter // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -162,10 +139,7 @@ class ThermostatUserInterfaceConfigurationCluster(private val controller: Matter // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThreadNetworkDiagnosticsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThreadNetworkDiagnosticsCluster.kt index 186879ecbd1d9d..86e2cb8e290a64 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThreadNetworkDiagnosticsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThreadNetworkDiagnosticsCluster.kt @@ -20,102 +20,59 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, private val endpointId: UShort) { - class ChannelAttribute( - val value: UShort? - ) +class ThreadNetworkDiagnosticsCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class ChannelAttribute(val value: UShort?) - class RoutingRoleAttribute( - val value: UInt? - ) + class RoutingRoleAttribute(val value: UInt?) - class NetworkNameAttribute( - val value: String? - ) + class NetworkNameAttribute(val value: String?) - class PanIdAttribute( - val value: UShort? - ) + class PanIdAttribute(val value: UShort?) - class ExtendedPanIdAttribute( - val value: ULong? - ) + class ExtendedPanIdAttribute(val value: ULong?) - class MeshLocalPrefixAttribute( - val value: ByteArray? - ) + class MeshLocalPrefixAttribute(val value: ByteArray?) - class NeighborTableAttribute( - val value: List - ) + class NeighborTableAttribute(val value: List) - class RouteTableAttribute( - val value: List - ) + class RouteTableAttribute(val value: List) - class PartitionIdAttribute( - val value: UInt? - ) + class PartitionIdAttribute(val value: UInt?) - class WeightingAttribute( - val value: UShort? - ) + class WeightingAttribute(val value: UShort?) - class DataVersionAttribute( - val value: UShort? - ) + class DataVersionAttribute(val value: UShort?) - class StableDataVersionAttribute( - val value: UShort? - ) + class StableDataVersionAttribute(val value: UShort?) - class LeaderRouterIdAttribute( - val value: UByte? - ) + class LeaderRouterIdAttribute(val value: UByte?) - class ActiveTimestampAttribute( - val value: ULong? - ) + class ActiveTimestampAttribute(val value: ULong?) - class PendingTimestampAttribute( - val value: ULong? - ) + class PendingTimestampAttribute(val value: ULong?) - class DelayAttribute( - val value: UInt? - ) + class DelayAttribute(val value: UInt?) - class SecurityPolicyAttribute( - val value: ThreadNetworkDiagnosticsClusterSecurityPolicy? - ) + class SecurityPolicyAttribute(val value: ThreadNetworkDiagnosticsClusterSecurityPolicy?) - class ChannelPage0MaskAttribute( - val value: ByteArray? - ) + class ChannelPage0MaskAttribute(val value: ByteArray?) class OperationalDatasetComponentsAttribute( val value: ThreadNetworkDiagnosticsClusterOperationalDatasetComponents? ) - class ActiveNetworkFaultsListAttribute( - val value: List - ) + class ActiveNetworkFaultsListAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun resetCounts(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -124,17 +81,14 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readChannelAttribute(): ChannelAttribute { // Implementation needs to be added here } - suspend fun subscribeChannelAttribute( - minInterval: Int, - maxInterval: Int - ): ChannelAttribute { + suspend fun subscribeChannelAttribute(minInterval: Int, maxInterval: Int): ChannelAttribute { // Implementation needs to be added here } @@ -164,10 +118,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribePanIdAttribute( - minInterval: Int, - maxInterval: Int - ): PanIdAttribute { + suspend fun subscribePanIdAttribute(minInterval: Int, maxInterval: Int): PanIdAttribute { // Implementation needs to be added here } @@ -197,10 +148,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeOverrunCountAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeOverrunCountAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -241,10 +189,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeWeightingAttribute( - minInterval: Int, - maxInterval: Int - ): WeightingAttribute { + suspend fun subscribeWeightingAttribute(minInterval: Int, maxInterval: Int): WeightingAttribute { // Implementation needs to be added here } @@ -285,10 +230,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeDetachedRoleCountAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeDetachedRoleCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -296,10 +238,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeChildRoleCountAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeChildRoleCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -307,10 +246,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeRouterRoleCountAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRouterRoleCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -318,10 +254,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeLeaderRoleCountAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeLeaderRoleCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -329,10 +262,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeAttachAttemptCountAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeAttachAttemptCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -340,10 +270,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribePartitionIdChangeCountAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribePartitionIdChangeCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -362,10 +289,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeParentChangeCountAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeParentChangeCountAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -373,10 +297,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeTxTotalCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxTotalCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -384,10 +305,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeTxUnicastCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxUnicastCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -395,10 +313,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeTxBroadcastCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxBroadcastCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -406,10 +321,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeTxAckRequestedCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxAckRequestedCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -417,10 +329,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeTxAckedCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxAckedCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -428,10 +337,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeTxNoAckRequestedCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxNoAckRequestedCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -439,10 +345,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeTxDataCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxDataCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -450,10 +353,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeTxDataPollCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxDataPollCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -461,10 +361,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeTxBeaconCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxBeaconCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -472,10 +369,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeTxBeaconRequestCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxBeaconRequestCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -483,10 +377,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeTxOtherCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxOtherCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -494,10 +385,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeTxRetryCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxRetryCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -527,10 +415,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeTxErrCcaCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxErrCcaCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -538,10 +423,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeTxErrAbortCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxErrAbortCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -549,10 +431,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeTxErrBusyChannelCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTxErrBusyChannelCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -560,10 +439,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeRxTotalCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxTotalCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -571,10 +447,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeRxUnicastCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxUnicastCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -582,10 +455,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeRxBroadcastCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxBroadcastCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -593,10 +463,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeRxDataCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxDataCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -604,10 +471,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeRxDataPollCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxDataPollCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -615,10 +479,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeRxBeaconCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxBeaconCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -626,10 +487,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeRxBeaconRequestCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxBeaconRequestCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -637,10 +495,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeRxOtherCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxOtherCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -648,10 +503,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeRxAddressFilteredCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxAddressFilteredCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -659,10 +511,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeRxDestAddrFilteredCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxDestAddrFilteredCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -670,10 +519,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeRxDuplicatedCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxDuplicatedCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -681,10 +527,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeRxErrNoFrameCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxErrNoFrameCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -703,10 +546,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeRxErrInvalidSrcAddrCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxErrInvalidSrcAddrCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -714,10 +554,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeRxErrSecCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxErrSecCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -725,10 +562,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeRxErrFcsCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxErrFcsCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -736,10 +570,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeRxErrOtherCountAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeRxErrOtherCountAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -769,10 +600,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeDelayAttribute( - minInterval: Int, - maxInterval: Int - ): DelayAttribute { + suspend fun subscribeDelayAttribute(minInterval: Int, maxInterval: Int): DelayAttribute { // Implementation needs to be added here } @@ -846,10 +674,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -868,10 +693,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -879,10 +701,7 @@ class ThreadNetworkDiagnosticsCluster(private val controller: MatterController, // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeFormatLocalizationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeFormatLocalizationCluster.kt index b6fde093d0a01c..d3916cb0db2233 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeFormatLocalizationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeFormatLocalizationCluster.kt @@ -20,46 +20,33 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class TimeFormatLocalizationCluster(private val controller: MatterController, private val endpointId: UShort) { - class SupportedCalendarTypesAttribute( - val value: List? - ) +class TimeFormatLocalizationCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class SupportedCalendarTypesAttribute(val value: List?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readHourFormatAttribute(): UByte { // Implementation needs to be added here } - suspend fun writeHourFormatAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeHourFormatAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeHourFormatAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeHourFormatAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -67,21 +54,15 @@ class TimeFormatLocalizationCluster(private val controller: MatterController, pr // Implementation needs to be added here } - suspend fun writeActiveCalendarTypeAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeActiveCalendarTypeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeActiveCalendarTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeActiveCalendarTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -122,10 +103,7 @@ class TimeFormatLocalizationCluster(private val controller: MatterController, pr // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -144,10 +122,7 @@ class TimeFormatLocalizationCluster(private val controller: MatterController, pr // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -155,10 +130,7 @@ class TimeFormatLocalizationCluster(private val controller: MatterController, pr // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeSynchronizationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeSynchronizationCluster.kt index 6dd4a43b9058ca..d9b0d983141f95 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeSynchronizationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeSynchronizationCluster.kt @@ -20,89 +20,84 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class TimeSynchronizationCluster(private val controller: MatterController, private val endpointId: UShort) { - class SetTimeZoneResponse( - val DSTOffsetRequired: Boolean - ) +class TimeSynchronizationCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class SetTimeZoneResponse(val DSTOffsetRequired: Boolean) - class UTCTimeAttribute( - val value: ULong? - ) + class UTCTimeAttribute(val value: ULong?) - class TrustedTimeSourceAttribute( - val value: TimeSynchronizationClusterTrustedTimeSourceStruct? - ) + class TrustedTimeSourceAttribute(val value: TimeSynchronizationClusterTrustedTimeSourceStruct?) - class DefaultNTPAttribute( - val value: String? - ) + class DefaultNTPAttribute(val value: String?) - class TimeZoneAttribute( - val value: List? - ) + class TimeZoneAttribute(val value: List?) - class DSTOffsetAttribute( - val value: List? - ) + class DSTOffsetAttribute(val value: List?) - class LocalTimeAttribute( - val value: ULong? - ) + class LocalTimeAttribute(val value: ULong?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) - suspend fun setUTCTime(UTCTime: ULong, granularity: UInt, timeSource: UInt?, timedInvokeTimeoutMs: Int? = null) { + suspend fun setUTCTime( + UTCTime: ULong, + granularity: UInt, + timeSource: UInt?, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 0L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun setTrustedTimeSource(trustedTimeSource: TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct?, timedInvokeTimeoutMs: Int? = null) { + suspend fun setTrustedTimeSource( + trustedTimeSource: TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct?, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 1L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun setTimeZone(timeZone: List, timedInvokeTimeoutMs: Int? = null): SetTimeZoneResponse { + suspend fun setTimeZone( + timeZone: List, + timedInvokeTimeoutMs: Int? = null + ): SetTimeZoneResponse { val commandId = 2L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun setDSTOffset(DSTOffset: List, timedInvokeTimeoutMs: Int? = null) { + suspend fun setDSTOffset( + DSTOffset: List, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 4L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun setDefaultNTP(defaultNTP: String?, timedInvokeTimeoutMs: Int? = null) { @@ -112,17 +107,14 @@ class TimeSynchronizationCluster(private val controller: MatterController, priva // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readUTCTimeAttribute(): UTCTimeAttribute { // Implementation needs to be added here } - suspend fun subscribeUTCTimeAttribute( - minInterval: Int, - maxInterval: Int - ): UTCTimeAttribute { + suspend fun subscribeUTCTimeAttribute(minInterval: Int, maxInterval: Int): UTCTimeAttribute { // Implementation needs to be added here } @@ -130,10 +122,7 @@ class TimeSynchronizationCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeGranularityAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeGranularityAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -141,10 +130,7 @@ class TimeSynchronizationCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeTimeSourceAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeTimeSourceAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -174,10 +160,7 @@ class TimeSynchronizationCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeTimeZoneAttribute( - minInterval: Int, - maxInterval: Int - ): TimeZoneAttribute { + suspend fun subscribeTimeZoneAttribute(minInterval: Int, maxInterval: Int): TimeZoneAttribute { // Implementation needs to be added here } @@ -185,10 +168,7 @@ class TimeSynchronizationCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeDSTOffsetAttribute( - minInterval: Int, - maxInterval: Int - ): DSTOffsetAttribute { + suspend fun subscribeDSTOffsetAttribute(minInterval: Int, maxInterval: Int): DSTOffsetAttribute { // Implementation needs to be added here } @@ -196,10 +176,7 @@ class TimeSynchronizationCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeLocalTimeAttribute( - minInterval: Int, - maxInterval: Int - ): LocalTimeAttribute { + suspend fun subscribeLocalTimeAttribute(minInterval: Int, maxInterval: Int): LocalTimeAttribute { // Implementation needs to be added here } @@ -207,10 +184,7 @@ class TimeSynchronizationCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeTimeZoneDatabaseAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeTimeZoneDatabaseAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -218,10 +192,7 @@ class TimeSynchronizationCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeNTPServerAvailableAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeNTPServerAvailableAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -229,10 +200,7 @@ class TimeSynchronizationCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeTimeZoneListMaxSizeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeTimeZoneListMaxSizeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -240,10 +208,7 @@ class TimeSynchronizationCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeDSTOffsetListMaxSizeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeDSTOffsetListMaxSizeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -251,10 +216,7 @@ class TimeSynchronizationCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeSupportsDNSResolveAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeSupportsDNSResolveAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -284,10 +246,7 @@ class TimeSynchronizationCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -306,10 +265,7 @@ class TimeSynchronizationCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -317,10 +273,7 @@ class TimeSynchronizationCluster(private val controller: MatterController, priva // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimerCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimerCluster.kt index c9925761f4112f..2ec115fde7742e 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimerCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimerCluster.kt @@ -21,21 +21,13 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class TimerCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun setTimer(newTime: UInt, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -44,7 +36,7 @@ class TimerCluster(private val controller: MatterController, private val endpoin // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun resetTimer(timedInvokeTimeoutMs: Int? = null) { @@ -54,7 +46,7 @@ class TimerCluster(private val controller: MatterController, private val endpoin // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun addTime(additionalTime: UInt, timedInvokeTimeoutMs: Int? = null) { @@ -64,7 +56,7 @@ class TimerCluster(private val controller: MatterController, private val endpoin // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun reduceTime(timeReduction: UInt, timedInvokeTimeoutMs: Int? = null) { @@ -74,17 +66,14 @@ class TimerCluster(private val controller: MatterController, private val endpoin // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readSetTimeAttribute(): UInt { // Implementation needs to be added here } - suspend fun subscribeSetTimeAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeSetTimeAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -92,10 +81,7 @@ class TimerCluster(private val controller: MatterController, private val endpoin // Implementation needs to be added here } - suspend fun subscribeTimeRemainingAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeTimeRemainingAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -103,10 +89,7 @@ class TimerCluster(private val controller: MatterController, private val endpoin // Implementation needs to be added here } - suspend fun subscribeTimerStateAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeTimerStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -136,10 +119,7 @@ class TimerCluster(private val controller: MatterController, private val endpoin // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -158,10 +138,7 @@ class TimerCluster(private val controller: MatterController, private val endpoin // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -169,10 +146,7 @@ class TimerCluster(private val controller: MatterController, private val endpoin // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TotalVolatileOrganicCompoundsConcentrationMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TotalVolatileOrganicCompoundsConcentrationMeasurementCluster.kt index fcd0bcc15585a3..bd37b97759d83e 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TotalVolatileOrganicCompoundsConcentrationMeasurementCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TotalVolatileOrganicCompoundsConcentrationMeasurementCluster.kt @@ -20,42 +20,27 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(private val controller: MatterController, private val endpointId: UShort) { - class MeasuredValueAttribute( - val value: Float? - ) +class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class MeasuredValueAttribute(val value: Float?) - class MinMeasuredValueAttribute( - val value: Float? - ) + class MinMeasuredValueAttribute(val value: Float?) - class MaxMeasuredValueAttribute( - val value: Float? - ) + class MaxMeasuredValueAttribute(val value: Float?) - class PeakMeasuredValueAttribute( - val value: Float? - ) + class PeakMeasuredValueAttribute(val value: Float?) - class AverageMeasuredValueAttribute( - val value: Float? - ) + class AverageMeasuredValueAttribute(val value: Float?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMeasuredValueAttribute(): MeasuredValueAttribute { // Implementation needs to be added here @@ -105,10 +90,7 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(private val c // Implementation needs to be added here } - suspend fun subscribePeakMeasuredValueWindowAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribePeakMeasuredValueWindowAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -138,10 +120,7 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(private val c // Implementation needs to be added here } - suspend fun subscribeUncertaintyAttribute( - minInterval: Int, - maxInterval: Int - ): Float { + suspend fun subscribeUncertaintyAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } @@ -149,10 +128,7 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(private val c // Implementation needs to be added here } - suspend fun subscribeMeasurementUnitAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -160,10 +136,7 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(private val c // Implementation needs to be added here } - suspend fun subscribeMeasurementMediumAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeMeasurementMediumAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -171,10 +144,7 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(private val c // Implementation needs to be added here } - suspend fun subscribeLevelValueAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeLevelValueAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -204,10 +174,7 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(private val c // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -226,10 +193,7 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(private val c // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -237,10 +201,7 @@ class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(private val c // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitLocalizationCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitLocalizationCluster.kt index b5cca47577ef1d..573489cd5d60bd 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitLocalizationCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitLocalizationCluster.kt @@ -20,42 +20,31 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class UnitLocalizationCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) +class UnitLocalizationCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readTemperatureUnitAttribute(): UByte { // Implementation needs to be added here } - suspend fun writeTemperatureUnitAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeTemperatureUnitAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeTemperatureUnitAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeTemperatureUnitAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -85,10 +74,7 @@ class UnitLocalizationCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -107,10 +93,7 @@ class UnitLocalizationCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -118,10 +101,7 @@ class UnitLocalizationCluster(private val controller: MatterController, private // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitTestingCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitTestingCluster.kt index 7fe867df9c8339..30cfa97aab4cec 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitTestingCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitTestingCluster.kt @@ -21,265 +21,160 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class UnitTestingCluster(private val controller: MatterController, private val endpointId: UShort) { - class TestSpecificResponse( - val returnValue: UByte - ) + class TestSpecificResponse(val returnValue: UByte) - class TestAddArgumentsResponse( - val returnValue: UByte - ) + class TestAddArgumentsResponse(val returnValue: UByte) - class TestSimpleArgumentResponse( - val returnValue: Boolean - ) + class TestSimpleArgumentResponse(val returnValue: Boolean) class TestStructArrayArgumentResponse( - val arg1: List, - val arg2: List, - val arg3: List, - val arg4: List, - val arg5: UInt, + val arg1: List, + val arg2: List, + val arg3: List, + val arg4: List, + val arg5: UInt, val arg6: Boolean ) - class BooleanResponse( - val value: Boolean - ) + class BooleanResponse(val value: Boolean) - class TestListInt8UReverseResponse( - val arg1: List - ) + class TestListInt8UReverseResponse(val arg1: List) - class TestEnumsResponse( - val arg1: UShort, - val arg2: UInt - ) + class TestEnumsResponse(val arg1: UShort, val arg2: UInt) class TestNullableOptionalResponse( - val wasPresent: Boolean, - val wasNull: Boolean?, - val value: UByte?, + val wasPresent: Boolean, + val wasNull: Boolean?, + val value: UByte?, val originalValue: UByte? ) class TestComplexNullableOptionalResponse( - val nullableIntWasNull: Boolean, - val nullableIntValue: UShort?, - val optionalIntWasPresent: Boolean, - val optionalIntValue: UShort?, - val nullableOptionalIntWasPresent: Boolean, - val nullableOptionalIntWasNull: Boolean?, - val nullableOptionalIntValue: UShort?, - val nullableStringWasNull: Boolean, - val nullableStringValue: String?, - val optionalStringWasPresent: Boolean, - val optionalStringValue: String?, - val nullableOptionalStringWasPresent: Boolean, - val nullableOptionalStringWasNull: Boolean?, - val nullableOptionalStringValue: String?, - val nullableStructWasNull: Boolean, - val nullableStructValue: UnitTestingClusterSimpleStruct?, - val optionalStructWasPresent: Boolean, - val optionalStructValue: UnitTestingClusterSimpleStruct?, - val nullableOptionalStructWasPresent: Boolean, - val nullableOptionalStructWasNull: Boolean?, - val nullableOptionalStructValue: UnitTestingClusterSimpleStruct?, - val nullableListWasNull: Boolean, - val nullableListValue: List?, - val optionalListWasPresent: Boolean, - val optionalListValue: List?, - val nullableOptionalListWasPresent: Boolean, - val nullableOptionalListWasNull: Boolean?, + val nullableIntWasNull: Boolean, + val nullableIntValue: UShort?, + val optionalIntWasPresent: Boolean, + val optionalIntValue: UShort?, + val nullableOptionalIntWasPresent: Boolean, + val nullableOptionalIntWasNull: Boolean?, + val nullableOptionalIntValue: UShort?, + val nullableStringWasNull: Boolean, + val nullableStringValue: String?, + val optionalStringWasPresent: Boolean, + val optionalStringValue: String?, + val nullableOptionalStringWasPresent: Boolean, + val nullableOptionalStringWasNull: Boolean?, + val nullableOptionalStringValue: String?, + val nullableStructWasNull: Boolean, + val nullableStructValue: UnitTestingClusterSimpleStruct?, + val optionalStructWasPresent: Boolean, + val optionalStructValue: UnitTestingClusterSimpleStruct?, + val nullableOptionalStructWasPresent: Boolean, + val nullableOptionalStructWasNull: Boolean?, + val nullableOptionalStructValue: UnitTestingClusterSimpleStruct?, + val nullableListWasNull: Boolean, + val nullableListValue: List?, + val optionalListWasPresent: Boolean, + val optionalListValue: List?, + val nullableOptionalListWasPresent: Boolean, + val nullableOptionalListWasNull: Boolean?, val nullableOptionalListValue: List? ) - class SimpleStructResponse( - val arg1: UnitTestingClusterSimpleStruct - ) + class SimpleStructResponse(val arg1: UnitTestingClusterSimpleStruct) - class TestEmitTestEventResponse( - val value: ULong - ) + class TestEmitTestEventResponse(val value: ULong) - class TestEmitTestFabricScopedEventResponse( - val value: ULong - ) + class TestEmitTestFabricScopedEventResponse(val value: ULong) - class ListInt8uAttribute( - val value: List - ) + class ListInt8uAttribute(val value: List) - class ListOctetStringAttribute( - val value: List - ) + class ListOctetStringAttribute(val value: List) - class ListStructOctetStringAttribute( - val value: List - ) + class ListStructOctetStringAttribute(val value: List) class ListNullablesAndOptionalsStructAttribute( val value: List ) - class StructAttrAttribute( - val value: UnitTestingClusterSimpleStruct - ) + class StructAttrAttribute(val value: UnitTestingClusterSimpleStruct) - class ListLongOctetStringAttribute( - val value: List - ) + class ListLongOctetStringAttribute(val value: List) - class ListFabricScopedAttribute( - val value: List - ) + class ListFabricScopedAttribute(val value: List) - class NullableBooleanAttribute( - val value: Boolean? - ) + class NullableBooleanAttribute(val value: Boolean?) - class NullableBitmap8Attribute( - val value: UInt? - ) + class NullableBitmap8Attribute(val value: UInt?) - class NullableBitmap16Attribute( - val value: UInt? - ) + class NullableBitmap16Attribute(val value: UInt?) - class NullableBitmap32Attribute( - val value: ULong? - ) + class NullableBitmap32Attribute(val value: ULong?) - class NullableBitmap64Attribute( - val value: ULong? - ) + class NullableBitmap64Attribute(val value: ULong?) - class NullableInt8uAttribute( - val value: UByte? - ) + class NullableInt8uAttribute(val value: UByte?) - class NullableInt16uAttribute( - val value: UShort? - ) + class NullableInt16uAttribute(val value: UShort?) - class NullableInt24uAttribute( - val value: UInt? - ) + class NullableInt24uAttribute(val value: UInt?) - class NullableInt32uAttribute( - val value: UInt? - ) + class NullableInt32uAttribute(val value: UInt?) - class NullableInt40uAttribute( - val value: ULong? - ) + class NullableInt40uAttribute(val value: ULong?) - class NullableInt48uAttribute( - val value: ULong? - ) + class NullableInt48uAttribute(val value: ULong?) - class NullableInt56uAttribute( - val value: ULong? - ) + class NullableInt56uAttribute(val value: ULong?) - class NullableInt64uAttribute( - val value: ULong? - ) + class NullableInt64uAttribute(val value: ULong?) - class NullableInt8sAttribute( - val value: Byte? - ) + class NullableInt8sAttribute(val value: Byte?) - class NullableInt16sAttribute( - val value: Short? - ) + class NullableInt16sAttribute(val value: Short?) - class NullableInt24sAttribute( - val value: Int? - ) + class NullableInt24sAttribute(val value: Int?) - class NullableInt32sAttribute( - val value: Int? - ) + class NullableInt32sAttribute(val value: Int?) - class NullableInt40sAttribute( - val value: Long? - ) + class NullableInt40sAttribute(val value: Long?) - class NullableInt48sAttribute( - val value: Long? - ) + class NullableInt48sAttribute(val value: Long?) - class NullableInt56sAttribute( - val value: Long? - ) + class NullableInt56sAttribute(val value: Long?) - class NullableInt64sAttribute( - val value: Long? - ) + class NullableInt64sAttribute(val value: Long?) - class NullableEnum8Attribute( - val value: UInt? - ) + class NullableEnum8Attribute(val value: UInt?) - class NullableEnum16Attribute( - val value: UInt? - ) + class NullableEnum16Attribute(val value: UInt?) - class NullableFloatSingleAttribute( - val value: Float? - ) + class NullableFloatSingleAttribute(val value: Float?) - class NullableFloatDoubleAttribute( - val value: Double? - ) + class NullableFloatDoubleAttribute(val value: Double?) - class NullableOctetStringAttribute( - val value: ByteArray? - ) + class NullableOctetStringAttribute(val value: ByteArray?) - class NullableCharStringAttribute( - val value: String? - ) + class NullableCharStringAttribute(val value: String?) - class NullableEnumAttrAttribute( - val value: UInt? - ) + class NullableEnumAttrAttribute(val value: UInt?) - class NullableStructAttribute( - val value: UnitTestingClusterSimpleStruct? - ) + class NullableStructAttribute(val value: UnitTestingClusterSimpleStruct?) - class NullableRangeRestrictedInt8uAttribute( - val value: UByte? - ) + class NullableRangeRestrictedInt8uAttribute(val value: UByte?) - class NullableRangeRestrictedInt8sAttribute( - val value: Byte? - ) + class NullableRangeRestrictedInt8sAttribute(val value: Byte?) - class NullableRangeRestrictedInt16uAttribute( - val value: UShort? - ) + class NullableRangeRestrictedInt16uAttribute(val value: UShort?) - class NullableRangeRestrictedInt16sAttribute( - val value: Short? - ) + class NullableRangeRestrictedInt16sAttribute(val value: Short?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun test(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -288,7 +183,7 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun testNotHandled(timedInvokeTimeoutMs: Int? = null) { @@ -298,7 +193,7 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun testSpecific(timedInvokeTimeoutMs: Int? = null): TestSpecificResponse { @@ -308,7 +203,7 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun testUnknownCommand(timedInvokeTimeoutMs: Int? = null) { @@ -318,153 +213,213 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testAddArguments(arg1: UByte, arg2: UByte, timedInvokeTimeoutMs: Int? = null): TestAddArgumentsResponse { + suspend fun testAddArguments( + arg1: UByte, + arg2: UByte, + timedInvokeTimeoutMs: Int? = null + ): TestAddArgumentsResponse { val commandId = 4L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testSimpleArgumentRequest(arg1: Boolean, timedInvokeTimeoutMs: Int? = null): TestSimpleArgumentResponse { + suspend fun testSimpleArgumentRequest( + arg1: Boolean, + timedInvokeTimeoutMs: Int? = null + ): TestSimpleArgumentResponse { val commandId = 5L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } - } - - suspend fun testStructArrayArgumentRequest(arg1: List, arg2: List, arg3: List, arg4: List, arg5: UInt, arg6: Boolean, timedInvokeTimeoutMs: Int? = null): TestStructArrayArgumentResponse { + } + } + + suspend fun testStructArrayArgumentRequest( + arg1: List, + arg2: List, + arg3: List, + arg4: List, + arg5: UInt, + arg6: Boolean, + timedInvokeTimeoutMs: Int? = null + ): TestStructArrayArgumentResponse { val commandId = 6L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testStructArgumentRequest(arg1: UnitTestingClusterSimpleStruct, timedInvokeTimeoutMs: Int? = null): BooleanResponse { + suspend fun testStructArgumentRequest( + arg1: UnitTestingClusterSimpleStruct, + timedInvokeTimeoutMs: Int? = null + ): BooleanResponse { val commandId = 7L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testNestedStructArgumentRequest(arg1: UnitTestingClusterNestedStruct, timedInvokeTimeoutMs: Int? = null): BooleanResponse { + suspend fun testNestedStructArgumentRequest( + arg1: UnitTestingClusterNestedStruct, + timedInvokeTimeoutMs: Int? = null + ): BooleanResponse { val commandId = 8L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testListStructArgumentRequest(arg1: List, timedInvokeTimeoutMs: Int? = null): BooleanResponse { + suspend fun testListStructArgumentRequest( + arg1: List, + timedInvokeTimeoutMs: Int? = null + ): BooleanResponse { val commandId = 9L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testListInt8UArgumentRequest(arg1: List, timedInvokeTimeoutMs: Int? = null): BooleanResponse { + suspend fun testListInt8UArgumentRequest( + arg1: List, + timedInvokeTimeoutMs: Int? = null + ): BooleanResponse { val commandId = 10L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testNestedStructListArgumentRequest(arg1: UnitTestingClusterNestedStructList, timedInvokeTimeoutMs: Int? = null): BooleanResponse { + suspend fun testNestedStructListArgumentRequest( + arg1: UnitTestingClusterNestedStructList, + timedInvokeTimeoutMs: Int? = null + ): BooleanResponse { val commandId = 11L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testListNestedStructListArgumentRequest(arg1: List, timedInvokeTimeoutMs: Int? = null): BooleanResponse { + suspend fun testListNestedStructListArgumentRequest( + arg1: List, + timedInvokeTimeoutMs: Int? = null + ): BooleanResponse { val commandId = 12L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testListInt8UReverseRequest(arg1: List, timedInvokeTimeoutMs: Int? = null): TestListInt8UReverseResponse { + suspend fun testListInt8UReverseRequest( + arg1: List, + timedInvokeTimeoutMs: Int? = null + ): TestListInt8UReverseResponse { val commandId = 13L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testEnumsRequest(arg1: UShort, arg2: UInt, timedInvokeTimeoutMs: Int? = null): TestEnumsResponse { + suspend fun testEnumsRequest( + arg1: UShort, + arg2: UInt, + timedInvokeTimeoutMs: Int? = null + ): TestEnumsResponse { val commandId = 14L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testNullableOptionalRequest(arg1: UByte?, timedInvokeTimeoutMs: Int? = null): TestNullableOptionalResponse { + suspend fun testNullableOptionalRequest( + arg1: UByte?, + timedInvokeTimeoutMs: Int? = null + ): TestNullableOptionalResponse { val commandId = 15L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } - } - - suspend fun testComplexNullableOptionalRequest(nullableInt: UShort?, optionalInt: UShort?, nullableOptionalInt: UShort?, nullableString: String?, optionalString: String?, nullableOptionalString: String?, nullableStruct: UnitTestingClusterSimpleStruct?, optionalStruct: UnitTestingClusterSimpleStruct?, nullableOptionalStruct: UnitTestingClusterSimpleStruct?, nullableList: List?, optionalList: List?, nullableOptionalList: List?, timedInvokeTimeoutMs: Int? = null): TestComplexNullableOptionalResponse { + } + } + + suspend fun testComplexNullableOptionalRequest( + nullableInt: UShort?, + optionalInt: UShort?, + nullableOptionalInt: UShort?, + nullableString: String?, + optionalString: String?, + nullableOptionalString: String?, + nullableStruct: UnitTestingClusterSimpleStruct?, + optionalStruct: UnitTestingClusterSimpleStruct?, + nullableOptionalStruct: UnitTestingClusterSimpleStruct?, + nullableList: List?, + optionalList: List?, + nullableOptionalList: List?, + timedInvokeTimeoutMs: Int? = null + ): TestComplexNullableOptionalResponse { val commandId = 16L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun simpleStructEchoRequest(arg1: UnitTestingClusterSimpleStruct, timedInvokeTimeoutMs: Int? = null): SimpleStructResponse { + suspend fun simpleStructEchoRequest( + arg1: UnitTestingClusterSimpleStruct, + timedInvokeTimeoutMs: Int? = null + ): SimpleStructResponse { val commandId = 17L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun timedInvokeRequest(timedInvokeTimeoutMs: Int) { val commandId = 18L - // Implementation needs to be added here + // Implementation needs to be added here } suspend fun testSimpleOptionalArgumentRequest(arg1: Boolean?, timedInvokeTimeoutMs: Int? = null) { @@ -474,48 +429,50 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testEmitTestEventRequest(arg1: UByte, arg2: UInt, arg3: Boolean, timedInvokeTimeoutMs: Int? = null): TestEmitTestEventResponse { + suspend fun testEmitTestEventRequest( + arg1: UByte, + arg2: UInt, + arg3: Boolean, + timedInvokeTimeoutMs: Int? = null + ): TestEmitTestEventResponse { val commandId = 20L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun testEmitTestFabricScopedEventRequest(arg1: UByte, timedInvokeTimeoutMs: Int? = null): TestEmitTestFabricScopedEventResponse { + suspend fun testEmitTestFabricScopedEventRequest( + arg1: UByte, + timedInvokeTimeoutMs: Int? = null + ): TestEmitTestFabricScopedEventResponse { val commandId = 21L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readBooleanAttribute(): Boolean { // Implementation needs to be added here } - suspend fun writeBooleanAttribute( - value: Boolean, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeBooleanAttribute(value: Boolean, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeBooleanAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeBooleanAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -523,21 +480,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeBitmap8Attribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeBitmap8Attribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeBitmap8Attribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeBitmap8Attribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -545,21 +496,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeBitmap16Attribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeBitmap16Attribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeBitmap16Attribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeBitmap16Attribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -567,21 +512,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeBitmap32Attribute( - value: ULong, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeBitmap32Attribute(value: ULong, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeBitmap32Attribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeBitmap32Attribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -589,21 +528,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeBitmap64Attribute( - value: ULong, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeBitmap64Attribute(value: ULong, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeBitmap64Attribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeBitmap64Attribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -611,21 +544,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt8uAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeInt8uAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt8uAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeInt8uAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -633,21 +560,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt16uAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeInt16uAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt16uAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeInt16uAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -655,21 +576,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt24uAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeInt24uAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt24uAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeInt24uAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -677,21 +592,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt32uAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeInt32uAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt32uAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeInt32uAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -699,21 +608,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt40uAttribute( - value: ULong, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeInt40uAttribute(value: ULong, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt40uAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeInt40uAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -721,21 +624,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt48uAttribute( - value: ULong, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeInt48uAttribute(value: ULong, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt48uAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeInt48uAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -743,21 +640,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt56uAttribute( - value: ULong, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeInt56uAttribute(value: ULong, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt56uAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeInt56uAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -765,21 +656,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt64uAttribute( - value: ULong, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeInt64uAttribute(value: ULong, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt64uAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeInt64uAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -787,21 +672,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt8sAttribute( - value: Byte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeInt8sAttribute(value: Byte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt8sAttribute( - minInterval: Int, - maxInterval: Int - ): Byte { + suspend fun subscribeInt8sAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } @@ -809,21 +688,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt16sAttribute( - value: Short, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeInt16sAttribute(value: Short, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt16sAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeInt16sAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -831,21 +704,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt24sAttribute( - value: Int, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeInt24sAttribute(value: Int, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt24sAttribute( - minInterval: Int, - maxInterval: Int - ): Int { + suspend fun subscribeInt24sAttribute(minInterval: Int, maxInterval: Int): Int { // Implementation needs to be added here } @@ -853,21 +720,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt32sAttribute( - value: Int, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeInt32sAttribute(value: Int, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt32sAttribute( - minInterval: Int, - maxInterval: Int - ): Int { + suspend fun subscribeInt32sAttribute(minInterval: Int, maxInterval: Int): Int { // Implementation needs to be added here } @@ -875,21 +736,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt40sAttribute( - value: Long, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeInt40sAttribute(value: Long, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt40sAttribute( - minInterval: Int, - maxInterval: Int - ): Long { + suspend fun subscribeInt40sAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } @@ -897,21 +752,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt48sAttribute( - value: Long, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeInt48sAttribute(value: Long, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt48sAttribute( - minInterval: Int, - maxInterval: Int - ): Long { + suspend fun subscribeInt48sAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } @@ -919,21 +768,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt56sAttribute( - value: Long, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeInt56sAttribute(value: Long, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt56sAttribute( - minInterval: Int, - maxInterval: Int - ): Long { + suspend fun subscribeInt56sAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } @@ -941,21 +784,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeInt64sAttribute( - value: Long, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeInt64sAttribute(value: Long, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeInt64sAttribute( - minInterval: Int, - maxInterval: Int - ): Long { + suspend fun subscribeInt64sAttribute(minInterval: Int, maxInterval: Int): Long { // Implementation needs to be added here } @@ -963,21 +800,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeEnum8Attribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeEnum8Attribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeEnum8Attribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeEnum8Attribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -985,21 +816,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeEnum16Attribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeEnum16Attribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeEnum16Attribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeEnum16Attribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1007,21 +832,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeFloatSingleAttribute( - value: Float, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeFloatSingleAttribute(value: Float, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeFloatSingleAttribute( - minInterval: Int, - maxInterval: Int - ): Float { + suspend fun subscribeFloatSingleAttribute(minInterval: Int, maxInterval: Int): Float { // Implementation needs to be added here } @@ -1029,21 +848,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeFloatDoubleAttribute( - value: Double, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeFloatDoubleAttribute(value: Double, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeFloatDoubleAttribute( - minInterval: Int, - maxInterval: Int - ): Double { + suspend fun subscribeFloatDoubleAttribute(minInterval: Int, maxInterval: Int): Double { // Implementation needs to be added here } @@ -1051,21 +864,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeOctetStringAttribute( - value: ByteArray, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeOctetStringAttribute(value: ByteArray, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOctetStringAttribute( - minInterval: Int, - maxInterval: Int - ): OctetString { + suspend fun subscribeOctetStringAttribute(minInterval: Int, maxInterval: Int): OctetString { // Implementation needs to be added here } @@ -1073,21 +880,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeListInt8uAttribute( - value: List, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeListInt8uAttribute(value: List, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeListInt8uAttribute( - minInterval: Int, - maxInterval: Int - ): ListInt8uAttribute { + suspend fun subscribeListInt8uAttribute(minInterval: Int, maxInterval: Int): ListInt8uAttribute { // Implementation needs to be added here } @@ -1097,13 +898,13 @@ class UnitTestingCluster(private val controller: MatterController, private val e suspend fun writeListOctetStringAttribute( value: List, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeListOctetStringAttribute( @@ -1119,13 +920,13 @@ class UnitTestingCluster(private val controller: MatterController, private val e suspend fun writeListStructOctetStringAttribute( value: List, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeListStructOctetStringAttribute( @@ -1139,21 +940,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeLongOctetStringAttribute( - value: ByteArray, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeLongOctetStringAttribute(value: ByteArray, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeLongOctetStringAttribute( - minInterval: Int, - maxInterval: Int - ): OctetString { + suspend fun subscribeLongOctetStringAttribute(minInterval: Int, maxInterval: Int): OctetString { // Implementation needs to be added here } @@ -1161,21 +956,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeCharStringAttribute( - value: String, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeCharStringAttribute(value: String, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeCharStringAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeCharStringAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -1183,21 +972,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeLongCharStringAttribute( - value: String, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeLongCharStringAttribute(value: String, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeLongCharStringAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeLongCharStringAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -1205,21 +988,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeEpochUsAttribute( - value: ULong, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeEpochUsAttribute(value: ULong, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeEpochUsAttribute( - minInterval: Int, - maxInterval: Int - ): ULong { + suspend fun subscribeEpochUsAttribute(minInterval: Int, maxInterval: Int): ULong { // Implementation needs to be added here } @@ -1227,21 +1004,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeEpochSAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeEpochSAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeEpochSAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeEpochSAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -1249,37 +1020,32 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeVendorIdAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeVendorIdAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeVendorIdAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeVendorIdAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } - suspend fun readListNullablesAndOptionalsStructAttribute(): ListNullablesAndOptionalsStructAttribute { + suspend fun readListNullablesAndOptionalsStructAttribute(): + ListNullablesAndOptionalsStructAttribute { // Implementation needs to be added here } suspend fun writeListNullablesAndOptionalsStructAttribute( value: List, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeListNullablesAndOptionalsStructAttribute( @@ -1293,21 +1059,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeEnumAttrAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeEnumAttrAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeEnumAttrAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeEnumAttrAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -1317,13 +1077,13 @@ class UnitTestingCluster(private val controller: MatterController, private val e suspend fun writeStructAttrAttribute( value: UnitTestingClusterSimpleStruct, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeStructAttrAttribute( @@ -1337,21 +1097,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeRangeRestrictedInt8uAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeRangeRestrictedInt8uAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeRangeRestrictedInt8uAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeRangeRestrictedInt8uAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -1359,21 +1113,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeRangeRestrictedInt8sAttribute( - value: Byte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeRangeRestrictedInt8sAttribute(value: Byte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeRangeRestrictedInt8sAttribute( - minInterval: Int, - maxInterval: Int - ): Byte { + suspend fun subscribeRangeRestrictedInt8sAttribute(minInterval: Int, maxInterval: Int): Byte { // Implementation needs to be added here } @@ -1381,21 +1129,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeRangeRestrictedInt16uAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeRangeRestrictedInt16uAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeRangeRestrictedInt16uAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeRangeRestrictedInt16uAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -1403,21 +1145,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeRangeRestrictedInt16sAttribute( - value: Short, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeRangeRestrictedInt16sAttribute(value: Short, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeRangeRestrictedInt16sAttribute( - minInterval: Int, - maxInterval: Int - ): Short { + suspend fun subscribeRangeRestrictedInt16sAttribute(minInterval: Int, maxInterval: Int): Short { // Implementation needs to be added here } @@ -1427,13 +1163,13 @@ class UnitTestingCluster(private val controller: MatterController, private val e suspend fun writeListLongOctetStringAttribute( value: List, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeListLongOctetStringAttribute( @@ -1453,16 +1189,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeListFabricScopedAttribute( value: List, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeListFabricScopedAttribute( @@ -1476,16 +1211,11 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeTimedWriteBooleanAttribute( - value: Boolean,timedWriteTimeoutMs: Int - ) { - // Implementation needs to be added here + suspend fun writeTimedWriteBooleanAttribute(value: Boolean, timedWriteTimeoutMs: Int) { + // Implementation needs to be added here } - suspend fun subscribeTimedWriteBooleanAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeTimedWriteBooleanAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -1493,21 +1223,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeGeneralErrorBooleanAttribute( - value: Boolean, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeGeneralErrorBooleanAttribute(value: Boolean, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeGeneralErrorBooleanAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeGeneralErrorBooleanAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -1515,21 +1239,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeClusterErrorBooleanAttribute( - value: Boolean, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeClusterErrorBooleanAttribute(value: Boolean, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeClusterErrorBooleanAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeClusterErrorBooleanAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -1537,21 +1255,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeUnsupportedAttribute( - value: Boolean, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeUnsupportedAttribute(value: Boolean, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeUnsupportedAttribute( - minInterval: Int, - maxInterval: Int - ): Boolean { + suspend fun subscribeUnsupportedAttribute(minInterval: Int, maxInterval: Int): Boolean { // Implementation needs to be added here } @@ -1559,15 +1271,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableBooleanAttribute( - value: Boolean, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableBooleanAttribute(value: Boolean, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableBooleanAttribute( @@ -1581,15 +1290,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableBitmap8Attribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableBitmap8Attribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableBitmap8Attribute( @@ -1603,15 +1309,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableBitmap16Attribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableBitmap16Attribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableBitmap16Attribute( @@ -1625,15 +1328,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableBitmap32Attribute( - value: ULong, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableBitmap32Attribute(value: ULong, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableBitmap32Attribute( @@ -1647,15 +1347,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableBitmap64Attribute( - value: ULong, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableBitmap64Attribute(value: ULong, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableBitmap64Attribute( @@ -1669,15 +1366,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt8uAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableInt8uAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt8uAttribute( @@ -1691,15 +1385,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt16uAttribute( - value: UShort, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableInt16uAttribute(value: UShort, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt16uAttribute( @@ -1713,15 +1404,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt24uAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableInt24uAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt24uAttribute( @@ -1735,15 +1423,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt32uAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableInt32uAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt32uAttribute( @@ -1757,15 +1442,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt40uAttribute( - value: ULong, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableInt40uAttribute(value: ULong, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt40uAttribute( @@ -1779,15 +1461,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt48uAttribute( - value: ULong, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableInt48uAttribute(value: ULong, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt48uAttribute( @@ -1801,15 +1480,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt56uAttribute( - value: ULong, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableInt56uAttribute(value: ULong, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt56uAttribute( @@ -1823,15 +1499,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt64uAttribute( - value: ULong, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableInt64uAttribute(value: ULong, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt64uAttribute( @@ -1845,15 +1518,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt8sAttribute( - value: Byte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableInt8sAttribute(value: Byte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt8sAttribute( @@ -1867,15 +1537,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt16sAttribute( - value: Short, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableInt16sAttribute(value: Short, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt16sAttribute( @@ -1889,15 +1556,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt24sAttribute( - value: Int, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableInt24sAttribute(value: Int, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt24sAttribute( @@ -1911,15 +1575,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt32sAttribute( - value: Int, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableInt32sAttribute(value: Int, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt32sAttribute( @@ -1933,15 +1594,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt40sAttribute( - value: Long, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableInt40sAttribute(value: Long, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt40sAttribute( @@ -1955,15 +1613,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt48sAttribute( - value: Long, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableInt48sAttribute(value: Long, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt48sAttribute( @@ -1977,15 +1632,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt56sAttribute( - value: Long, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableInt56sAttribute(value: Long, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt56sAttribute( @@ -1999,15 +1651,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableInt64sAttribute( - value: Long, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableInt64sAttribute(value: Long, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableInt64sAttribute( @@ -2021,15 +1670,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableEnum8Attribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableEnum8Attribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableEnum8Attribute( @@ -2043,15 +1689,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableEnum16Attribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableEnum16Attribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableEnum16Attribute( @@ -2065,15 +1708,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableFloatSingleAttribute( - value: Float, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableFloatSingleAttribute(value: Float, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableFloatSingleAttribute( @@ -2087,15 +1727,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableFloatDoubleAttribute( - value: Double, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableFloatDoubleAttribute(value: Double, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableFloatDoubleAttribute( @@ -2111,13 +1748,13 @@ class UnitTestingCluster(private val controller: MatterController, private val e suspend fun writeNullableOctetStringAttribute( value: ByteArray, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableOctetStringAttribute( @@ -2131,15 +1768,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableCharStringAttribute( - value: String, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableCharStringAttribute(value: String, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableCharStringAttribute( @@ -2153,15 +1787,12 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeNullableEnumAttrAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeNullableEnumAttrAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableEnumAttrAttribute( @@ -2177,13 +1808,13 @@ class UnitTestingCluster(private val controller: MatterController, private val e suspend fun writeNullableStructAttribute( value: UnitTestingClusterSimpleStruct, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableStructAttribute( @@ -2199,13 +1830,13 @@ class UnitTestingCluster(private val controller: MatterController, private val e suspend fun writeNullableRangeRestrictedInt8uAttribute( value: UByte, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableRangeRestrictedInt8uAttribute( @@ -2221,13 +1852,13 @@ class UnitTestingCluster(private val controller: MatterController, private val e suspend fun writeNullableRangeRestrictedInt8sAttribute( value: Byte, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableRangeRestrictedInt8sAttribute( @@ -2243,13 +1874,13 @@ class UnitTestingCluster(private val controller: MatterController, private val e suspend fun writeNullableRangeRestrictedInt16uAttribute( value: UShort, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableRangeRestrictedInt16uAttribute( @@ -2265,13 +1896,13 @@ class UnitTestingCluster(private val controller: MatterController, private val e suspend fun writeNullableRangeRestrictedInt16sAttribute( value: Short, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeNullableRangeRestrictedInt16sAttribute( @@ -2285,21 +1916,15 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun writeWriteOnlyInt8uAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeWriteOnlyInt8uAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeWriteOnlyInt8uAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeWriteOnlyInt8uAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -2329,10 +1954,7 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -2351,10 +1973,7 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -2362,10 +1981,7 @@ class UnitTestingCluster(private val controller: MatterController, private val e // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UserLabelCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UserLabelCluster.kt index 5115ceb8025d79..4b986531f5b412 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UserLabelCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UserLabelCluster.kt @@ -21,25 +21,15 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class UserLabelCluster(private val controller: MatterController, private val endpointId: UShort) { - class LabelListAttribute( - val value: List - ) + class LabelListAttribute(val value: List) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readLabelListAttribute(): LabelListAttribute { // Implementation needs to be added here @@ -47,19 +37,16 @@ class UserLabelCluster(private val controller: MatterController, private val end suspend fun writeLabelListAttribute( value: List, - timedWriteTimeoutMs: Int? = null + timedWriteTimeoutMs: Int? = null ) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeLabelListAttribute( - minInterval: Int, - maxInterval: Int - ): LabelListAttribute { + suspend fun subscribeLabelListAttribute(minInterval: Int, maxInterval: Int): LabelListAttribute { // Implementation needs to be added here } @@ -89,10 +76,7 @@ class UserLabelCluster(private val controller: MatterController, private val end // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -111,10 +95,7 @@ class UserLabelCluster(private val controller: MatterController, private val end // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -122,10 +103,7 @@ class UserLabelCluster(private val controller: MatterController, private val end // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ValveConfigurationAndControlCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ValveConfigurationAndControlCluster.kt index 1df7ddfd6186b0..bdcc7781467968 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ValveConfigurationAndControlCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ValveConfigurationAndControlCluster.kt @@ -20,54 +20,33 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class ValveConfigurationAndControlCluster(private val controller: MatterController, private val endpointId: UShort) { - class OpenDurationAttribute( - val value: UInt? - ) +class ValveConfigurationAndControlCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class OpenDurationAttribute(val value: UInt?) - class AutoCloseTimeAttribute( - val value: ULong? - ) + class AutoCloseTimeAttribute(val value: ULong?) - class RemainingDurationAttribute( - val value: UInt? - ) + class RemainingDurationAttribute(val value: UInt?) - class CurrentStateAttribute( - val value: UInt? - ) + class CurrentStateAttribute(val value: UInt?) - class TargetStateAttribute( - val value: UInt? - ) + class TargetStateAttribute(val value: UInt?) - class CurrentLevelAttribute( - val value: UByte? - ) + class CurrentLevelAttribute(val value: UByte?) - class TargetLevelAttribute( - val value: UByte? - ) + class TargetLevelAttribute(val value: UByte?) - class OpenLevelAttribute( - val value: UByte? - ) + class OpenLevelAttribute(val value: UByte?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun open(openDuration: UInt?, timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -76,7 +55,7 @@ class ValveConfigurationAndControlCluster(private val controller: MatterControll // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun close(timedInvokeTimeoutMs: Int? = null) { @@ -86,7 +65,7 @@ class ValveConfigurationAndControlCluster(private val controller: MatterControll // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun setLevel(level: UByte, openDuration: UInt?, timedInvokeTimeoutMs: Int? = null) { @@ -96,22 +75,19 @@ class ValveConfigurationAndControlCluster(private val controller: MatterControll // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readOpenDurationAttribute(): OpenDurationAttribute { // Implementation needs to be added here } - suspend fun writeOpenDurationAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeOpenDurationAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } suspend fun subscribeOpenDurationAttribute( @@ -169,21 +145,15 @@ class ValveConfigurationAndControlCluster(private val controller: MatterControll // Implementation needs to be added here } - suspend fun writeStartUpStateAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeStartUpStateAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeStartUpStateAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeStartUpStateAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -213,21 +183,15 @@ class ValveConfigurationAndControlCluster(private val controller: MatterControll // Implementation needs to be added here } - suspend fun writeOpenLevelAttribute( - value: UByte, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeOpenLevelAttribute(value: UByte, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeOpenLevelAttribute( - minInterval: Int, - maxInterval: Int - ): OpenLevelAttribute { + suspend fun subscribeOpenLevelAttribute(minInterval: Int, maxInterval: Int): OpenLevelAttribute { // Implementation needs to be added here } @@ -235,10 +199,7 @@ class ValveConfigurationAndControlCluster(private val controller: MatterControll // Implementation needs to be added here } - suspend fun subscribeValveFaultAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeValveFaultAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -268,10 +229,7 @@ class ValveConfigurationAndControlCluster(private val controller: MatterControll // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -290,10 +248,7 @@ class ValveConfigurationAndControlCluster(private val controller: MatterControll // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -301,10 +256,7 @@ class ValveConfigurationAndControlCluster(private val controller: MatterControll // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WakeOnLanCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WakeOnLanCluster.kt index f5e77d2305793b..b879ef647988c4 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WakeOnLanCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WakeOnLanCluster.kt @@ -21,30 +21,19 @@ import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* class WakeOnLanCluster(private val controller: MatterController, private val endpointId: UShort) { - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun readMACAddressAttribute(): CharString { // Implementation needs to be added here } - suspend fun subscribeMACAddressAttribute( - minInterval: Int, - maxInterval: Int - ): CharString { + suspend fun subscribeMACAddressAttribute(minInterval: Int, maxInterval: Int): CharString { // Implementation needs to be added here } @@ -52,10 +41,7 @@ class WakeOnLanCluster(private val controller: MatterController, private val end // Implementation needs to be added here } - suspend fun subscribeLinkLocalAddressAttribute( - minInterval: Int, - maxInterval: Int - ): OctetString { + suspend fun subscribeLinkLocalAddressAttribute(minInterval: Int, maxInterval: Int): OctetString { // Implementation needs to be added here } @@ -85,10 +71,7 @@ class WakeOnLanCluster(private val controller: MatterController, private val end // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -107,10 +90,7 @@ class WakeOnLanCluster(private val controller: MatterController, private val end // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -118,10 +98,7 @@ class WakeOnLanCluster(private val controller: MatterController, private val end // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WiFiNetworkDiagnosticsCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WiFiNetworkDiagnosticsCluster.kt index c962e07a64a968..3bae4cf3db3210 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WiFiNetworkDiagnosticsCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WiFiNetworkDiagnosticsCluster.kt @@ -20,74 +20,43 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class WiFiNetworkDiagnosticsCluster(private val controller: MatterController, private val endpointId: UShort) { - class BssidAttribute( - val value: ByteArray? - ) +class WiFiNetworkDiagnosticsCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class BssidAttribute(val value: ByteArray?) - class SecurityTypeAttribute( - val value: UInt? - ) + class SecurityTypeAttribute(val value: UInt?) - class WiFiVersionAttribute( - val value: UInt? - ) + class WiFiVersionAttribute(val value: UInt?) - class ChannelNumberAttribute( - val value: UShort? - ) + class ChannelNumberAttribute(val value: UShort?) - class RssiAttribute( - val value: Byte? - ) + class RssiAttribute(val value: Byte?) - class BeaconLostCountAttribute( - val value: UInt? - ) + class BeaconLostCountAttribute(val value: UInt?) - class BeaconRxCountAttribute( - val value: UInt? - ) + class BeaconRxCountAttribute(val value: UInt?) - class PacketMulticastRxCountAttribute( - val value: UInt? - ) + class PacketMulticastRxCountAttribute(val value: UInt?) - class PacketMulticastTxCountAttribute( - val value: UInt? - ) + class PacketMulticastTxCountAttribute(val value: UInt?) - class PacketUnicastRxCountAttribute( - val value: UInt? - ) + class PacketUnicastRxCountAttribute(val value: UInt?) - class PacketUnicastTxCountAttribute( - val value: UInt? - ) + class PacketUnicastTxCountAttribute(val value: UInt?) - class CurrentMaxRateAttribute( - val value: ULong? - ) + class CurrentMaxRateAttribute(val value: ULong?) - class OverrunCountAttribute( - val value: ULong? - ) + class OverrunCountAttribute(val value: ULong?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun resetCounts(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -96,17 +65,14 @@ class WiFiNetworkDiagnosticsCluster(private val controller: MatterController, pr // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readBssidAttribute(): BssidAttribute { // Implementation needs to be added here } - suspend fun subscribeBssidAttribute( - minInterval: Int, - maxInterval: Int - ): BssidAttribute { + suspend fun subscribeBssidAttribute(minInterval: Int, maxInterval: Int): BssidAttribute { // Implementation needs to be added here } @@ -147,10 +113,7 @@ class WiFiNetworkDiagnosticsCluster(private val controller: MatterController, pr // Implementation needs to be added here } - suspend fun subscribeRssiAttribute( - minInterval: Int, - maxInterval: Int - ): RssiAttribute { + suspend fun subscribeRssiAttribute(minInterval: Int, maxInterval: Int): RssiAttribute { // Implementation needs to be added here } @@ -268,10 +231,7 @@ class WiFiNetworkDiagnosticsCluster(private val controller: MatterController, pr // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -290,10 +250,7 @@ class WiFiNetworkDiagnosticsCluster(private val controller: MatterController, pr // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -301,10 +258,7 @@ class WiFiNetworkDiagnosticsCluster(private val controller: MatterController, pr // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WindowCoveringCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WindowCoveringCluster.kt index 131f46588ef6c8..644a365b3c2440 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WindowCoveringCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WindowCoveringCluster.kt @@ -20,54 +20,33 @@ package matter.devicecontroller.cluster.clusters import matter.controller.MatterController import matter.devicecontroller.cluster.structs.* -class WindowCoveringCluster(private val controller: MatterController, private val endpointId: UShort) { - class CurrentPositionLiftAttribute( - val value: UShort? - ) +class WindowCoveringCluster( + private val controller: MatterController, + private val endpointId: UShort +) { + class CurrentPositionLiftAttribute(val value: UShort?) - class CurrentPositionTiltAttribute( - val value: UShort? - ) + class CurrentPositionTiltAttribute(val value: UShort?) - class CurrentPositionLiftPercentageAttribute( - val value: UByte? - ) + class CurrentPositionLiftPercentageAttribute(val value: UByte?) - class CurrentPositionTiltPercentageAttribute( - val value: UByte? - ) + class CurrentPositionTiltPercentageAttribute(val value: UByte?) - class TargetPositionLiftPercent100thsAttribute( - val value: UShort? - ) + class TargetPositionLiftPercent100thsAttribute(val value: UShort?) - class TargetPositionTiltPercent100thsAttribute( - val value: UShort? - ) + class TargetPositionTiltPercent100thsAttribute(val value: UShort?) - class CurrentPositionLiftPercent100thsAttribute( - val value: UShort? - ) + class CurrentPositionLiftPercent100thsAttribute(val value: UShort?) - class CurrentPositionTiltPercent100thsAttribute( - val value: UShort? - ) + class CurrentPositionTiltPercent100thsAttribute(val value: UShort?) - class GeneratedCommandListAttribute( - val value: List - ) + class GeneratedCommandListAttribute(val value: List) - class AcceptedCommandListAttribute( - val value: List - ) + class AcceptedCommandListAttribute(val value: List) - class EventListAttribute( - val value: List - ) + class EventListAttribute(val value: List) - class AttributeListAttribute( - val value: List - ) + class AttributeListAttribute(val value: List) suspend fun upOrOpen(timedInvokeTimeoutMs: Int? = null) { val commandId = 0L @@ -76,7 +55,7 @@ class WindowCoveringCluster(private val controller: MatterController, private va // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun downOrClose(timedInvokeTimeoutMs: Int? = null) { @@ -86,7 +65,7 @@ class WindowCoveringCluster(private val controller: MatterController, private va // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun stopMotion(timedInvokeTimeoutMs: Int? = null) { @@ -96,7 +75,7 @@ class WindowCoveringCluster(private val controller: MatterController, private va // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun goToLiftValue(liftValue: UShort, timedInvokeTimeoutMs: Int? = null) { @@ -106,17 +85,20 @@ class WindowCoveringCluster(private val controller: MatterController, private va // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun goToLiftPercentage(liftPercent100thsValue: UShort, timedInvokeTimeoutMs: Int? = null) { + suspend fun goToLiftPercentage( + liftPercent100thsValue: UShort, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 5L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun goToTiltValue(tiltValue: UShort, timedInvokeTimeoutMs: Int? = null) { @@ -126,27 +108,27 @@ class WindowCoveringCluster(private val controller: MatterController, private va // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } - suspend fun goToTiltPercentage(tiltPercent100thsValue: UShort, timedInvokeTimeoutMs: Int? = null) { + suspend fun goToTiltPercentage( + tiltPercent100thsValue: UShort, + timedInvokeTimeoutMs: Int? = null + ) { val commandId = 8L if (timedInvokeTimeoutMs != null) { // Do the action with timedInvokeTimeoutMs } else { // Do the action without timedInvokeTimeoutMs - } + } } suspend fun readTypeAttribute(): UByte { // Implementation needs to be added here } - suspend fun subscribeTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -198,10 +180,7 @@ class WindowCoveringCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeNumberOfActuationsLiftAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeNumberOfActuationsLiftAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -209,10 +188,7 @@ class WindowCoveringCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeNumberOfActuationsTiltAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeNumberOfActuationsTiltAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -220,10 +196,7 @@ class WindowCoveringCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeConfigStatusAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeConfigStatusAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -253,14 +226,12 @@ class WindowCoveringCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeOperationalStatusAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeOperationalStatusAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readTargetPositionLiftPercent100thsAttribute(): TargetPositionLiftPercent100thsAttribute { + suspend fun readTargetPositionLiftPercent100thsAttribute(): + TargetPositionLiftPercent100thsAttribute { // Implementation needs to be added here } @@ -271,7 +242,8 @@ class WindowCoveringCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun readTargetPositionTiltPercent100thsAttribute(): TargetPositionTiltPercent100thsAttribute { + suspend fun readTargetPositionTiltPercent100thsAttribute(): + TargetPositionTiltPercent100thsAttribute { // Implementation needs to be added here } @@ -286,14 +258,12 @@ class WindowCoveringCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeEndProductTypeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeEndProductTypeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } - suspend fun readCurrentPositionLiftPercent100thsAttribute(): CurrentPositionLiftPercent100thsAttribute { + suspend fun readCurrentPositionLiftPercent100thsAttribute(): + CurrentPositionLiftPercent100thsAttribute { // Implementation needs to be added here } @@ -304,7 +274,8 @@ class WindowCoveringCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun readCurrentPositionTiltPercent100thsAttribute(): CurrentPositionTiltPercent100thsAttribute { + suspend fun readCurrentPositionTiltPercent100thsAttribute(): + CurrentPositionTiltPercent100thsAttribute { // Implementation needs to be added here } @@ -319,10 +290,7 @@ class WindowCoveringCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeInstalledOpenLimitLiftAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeInstalledOpenLimitLiftAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -341,10 +309,7 @@ class WindowCoveringCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeInstalledOpenLimitTiltAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeInstalledOpenLimitTiltAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -363,21 +328,15 @@ class WindowCoveringCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun writeModeAttribute( - value: UInt, - timedWriteTimeoutMs: Int? = null - ) { + suspend fun writeModeAttribute(value: UInt, timedWriteTimeoutMs: Int? = null) { if (timedWriteTimeoutMs != null) { // Do the action with timedWriteTimeoutMs } else { // Do the action without timedWriteTimeoutMs - } + } } - suspend fun subscribeModeAttribute( - minInterval: Int, - maxInterval: Int - ): UByte { + suspend fun subscribeModeAttribute(minInterval: Int, maxInterval: Int): UByte { // Implementation needs to be added here } @@ -385,10 +344,7 @@ class WindowCoveringCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeSafetyStatusAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeSafetyStatusAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } @@ -418,10 +374,7 @@ class WindowCoveringCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeEventListAttribute( - minInterval: Int, - maxInterval: Int - ): EventListAttribute { + suspend fun subscribeEventListAttribute(minInterval: Int, maxInterval: Int): EventListAttribute { // Implementation needs to be added here } @@ -440,10 +393,7 @@ class WindowCoveringCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeFeatureMapAttribute( - minInterval: Int, - maxInterval: Int - ): UInt { + suspend fun subscribeFeatureMapAttribute(minInterval: Int, maxInterval: Int): UInt { // Implementation needs to be added here } @@ -451,10 +401,7 @@ class WindowCoveringCluster(private val controller: MatterController, private va // Implementation needs to be added here } - suspend fun subscribeClusterRevisionAttribute( - minInterval: Int, - maxInterval: Int - ): UShort { + suspend fun subscribeClusterRevisionAttribute(minInterval: Int, maxInterval: Int): UShort { // Implementation needs to be added here } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlEntryChangedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlEntryChangedEvent.kt index f07ba9cb227a1d..50ec0a54a8ec73 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlEntryChangedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlEntryChangedEvent.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -28,7 +26,8 @@ class AccessControlClusterAccessControlEntryChangedEvent( val adminNodeID: ULong?, val adminPasscodeID: UShort?, val changeType: UInt, - val latestValue: matter.devicecontroller.cluster.structs.AccessControlClusterAccessControlEntryStruct?, + val latestValue: + matter.devicecontroller.cluster.structs.AccessControlClusterAccessControlEntryStruct?, val fabricIndex: UByte ) { override fun toString(): String = buildString { @@ -72,32 +71,45 @@ class AccessControlClusterAccessControlEntryChangedEvent( private const val TAG_LATEST_VALUE = 4 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlEntryChangedEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): AccessControlClusterAccessControlEntryChangedEvent { tlvReader.enterStructure(tlvTag) - val adminNodeID = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - null - } - val adminPasscodeID = if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - null - } + val adminNodeID = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + null + } + val adminPasscodeID = + if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + null + } val changeType = tlvReader.getUInt(ContextSpecificTag(TAG_CHANGE_TYPE)) - val latestValue = if (!tlvReader.isNull()) { - matter.devicecontroller.cluster.structs.AccessControlClusterAccessControlEntryStruct.fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE)) - null - } + val latestValue = + if (!tlvReader.isNull()) { + matter.devicecontroller.cluster.structs.AccessControlClusterAccessControlEntryStruct + .fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE)) + null + } val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return AccessControlClusterAccessControlEntryChangedEvent(adminNodeID, adminPasscodeID, changeType, latestValue, fabricIndex) + return AccessControlClusterAccessControlEntryChangedEvent( + adminNodeID, + adminPasscodeID, + changeType, + latestValue, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlExtensionChangedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlExtensionChangedEvent.kt index 34534550e1fcb3..c6721f29f88959 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlExtensionChangedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlExtensionChangedEvent.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -28,7 +26,8 @@ class AccessControlClusterAccessControlExtensionChangedEvent( val adminNodeID: ULong?, val adminPasscodeID: UShort?, val changeType: UInt, - val latestValue: matter.devicecontroller.cluster.structs.AccessControlClusterAccessControlExtensionStruct?, + val latestValue: + matter.devicecontroller.cluster.structs.AccessControlClusterAccessControlExtensionStruct?, val fabricIndex: UByte ) { override fun toString(): String = buildString { @@ -72,32 +71,45 @@ class AccessControlClusterAccessControlExtensionChangedEvent( private const val TAG_LATEST_VALUE = 4 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlExtensionChangedEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): AccessControlClusterAccessControlExtensionChangedEvent { tlvReader.enterStructure(tlvTag) - val adminNodeID = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) - null - } - val adminPasscodeID = if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) - null - } + val adminNodeID = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_I_D)) + null + } + val adminPasscodeID = + if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_I_D)) + null + } val changeType = tlvReader.getUInt(ContextSpecificTag(TAG_CHANGE_TYPE)) - val latestValue = if (!tlvReader.isNull()) { - matter.devicecontroller.cluster.structs.AccessControlClusterAccessControlExtensionStruct.fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE)) - null - } + val latestValue = + if (!tlvReader.isNull()) { + matter.devicecontroller.cluster.structs.AccessControlClusterAccessControlExtensionStruct + .fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE)) + null + } val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return AccessControlClusterAccessControlExtensionChangedEvent(adminNodeID, adminPasscodeID, changeType, latestValue, fabricIndex) + return AccessControlClusterAccessControlExtensionChangedEvent( + adminNodeID, + adminPasscodeID, + changeType, + latestValue, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterActionFailedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterActionFailedEvent.kt index 969d6b0fb2aec0..7def1a047e9a3a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterActionFailedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterActionFailedEvent.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -56,13 +54,13 @@ class ActionsClusterActionFailedEvent( private const val TAG_NEW_STATE = 2 private const val TAG_ERROR = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActionsClusterActionFailedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ActionsClusterActionFailedEvent { tlvReader.enterStructure(tlvTag) val actionID = tlvReader.getUShort(ContextSpecificTag(TAG_ACTION_I_D)) val invokeID = tlvReader.getUInt(ContextSpecificTag(TAG_INVOKE_I_D)) val newState = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_STATE)) val error = tlvReader.getUInt(ContextSpecificTag(TAG_ERROR)) - + tlvReader.exitContainer() return ActionsClusterActionFailedEvent(actionID, invokeID, newState, error) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterStateChangedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterStateChangedEvent.kt index 712e80e0b1a939..81ed599b956c26 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterStateChangedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterStateChangedEvent.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -52,12 +50,12 @@ class ActionsClusterStateChangedEvent( private const val TAG_INVOKE_I_D = 1 private const val TAG_NEW_STATE = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActionsClusterStateChangedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ActionsClusterStateChangedEvent { tlvReader.enterStructure(tlvTag) val actionID = tlvReader.getUShort(ContextSpecificTag(TAG_ACTION_I_D)) val invokeID = tlvReader.getUInt(ContextSpecificTag(TAG_INVOKE_I_D)) val newState = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_STATE)) - + tlvReader.exitContainer() return ActionsClusterStateChangedEvent(actionID, invokeID, newState) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterLeaveEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterLeaveEvent.kt index aa1afa060dcd07..527ca9e747d32d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterLeaveEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterLeaveEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class BasicInformationClusterLeaveEvent( - val fabricIndex: UByte -) { +class BasicInformationClusterLeaveEvent(val fabricIndex: UByte) { override fun toString(): String = buildString { append("BasicInformationClusterLeaveEvent {\n") append("\tfabricIndex : $fabricIndex\n") @@ -44,10 +40,10 @@ class BasicInformationClusterLeaveEvent( companion object { private const val TAG_FABRIC_INDEX = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterLeaveEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterLeaveEvent { tlvReader.enterStructure(tlvTag) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return BasicInformationClusterLeaveEvent(fabricIndex) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterReachableChangedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterReachableChangedEvent.kt index b98b4c58fc6405..117e3e4472bedf 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterReachableChangedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterReachableChangedEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class BasicInformationClusterReachableChangedEvent( - val reachableNewValue: Boolean -) { +class BasicInformationClusterReachableChangedEvent(val reachableNewValue: Boolean) { override fun toString(): String = buildString { append("BasicInformationClusterReachableChangedEvent {\n") append("\treachableNewValue : $reachableNewValue\n") @@ -44,10 +40,10 @@ class BasicInformationClusterReachableChangedEvent( companion object { private const val TAG_REACHABLE_NEW_VALUE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterReachableChangedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterReachableChangedEvent { tlvReader.enterStructure(tlvTag) val reachableNewValue = tlvReader.getBoolean(ContextSpecificTag(TAG_REACHABLE_NEW_VALUE)) - + tlvReader.exitContainer() return BasicInformationClusterReachableChangedEvent(reachableNewValue) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterStartUpEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterStartUpEvent.kt index 21125ba68cbbc4..cbcb04d823ae49 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterStartUpEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterStartUpEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class BasicInformationClusterStartUpEvent( - val softwareVersion: UInt -) { +class BasicInformationClusterStartUpEvent(val softwareVersion: UInt) { override fun toString(): String = buildString { append("BasicInformationClusterStartUpEvent {\n") append("\tsoftwareVersion : $softwareVersion\n") @@ -44,10 +40,10 @@ class BasicInformationClusterStartUpEvent( companion object { private const val TAG_SOFTWARE_VERSION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BasicInformationClusterStartUpEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterStartUpEvent { tlvReader.enterStructure(tlvTag) val softwareVersion = tlvReader.getUInt(ContextSpecificTag(TAG_SOFTWARE_VERSION)) - + tlvReader.exitContainer() return BasicInformationClusterStartUpEvent(softwareVersion) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BooleanSensorConfigurationClusterAlarmsStateChangedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BooleanSensorConfigurationClusterAlarmsStateChangedEvent.kt index fc805137621677..bf64761f255688 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BooleanSensorConfigurationClusterAlarmsStateChangedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BooleanSensorConfigurationClusterAlarmsStateChangedEvent.kt @@ -18,7 +18,6 @@ package matter.devicecontroller.cluster.eventstructs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -51,18 +50,25 @@ class BooleanSensorConfigurationClusterAlarmsStateChangedEvent( private const val TAG_ALARMS_ACTIVE = 0 private const val TAG_ALARMS_SUPPRESSED = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BooleanSensorConfigurationClusterAlarmsStateChangedEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): BooleanSensorConfigurationClusterAlarmsStateChangedEvent { tlvReader.enterStructure(tlvTag) val alarmsActive = tlvReader.getUInt(ContextSpecificTag(TAG_ALARMS_ACTIVE)) - val alarmsSuppressed = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ALARMS_SUPPRESSED))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_ALARMS_SUPPRESSED))) - } else { - Optional.empty() - } - + val alarmsSuppressed = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ALARMS_SUPPRESSED))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_ALARMS_SUPPRESSED))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return BooleanSensorConfigurationClusterAlarmsStateChangedEvent(alarmsActive, alarmsSuppressed) + return BooleanSensorConfigurationClusterAlarmsStateChangedEvent( + alarmsActive, + alarmsSuppressed + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BooleanStateClusterStateChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BooleanStateClusterStateChangeEvent.kt index 94e78646b21ff5..b3ac5fad687aac 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BooleanStateClusterStateChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BooleanStateClusterStateChangeEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class BooleanStateClusterStateChangeEvent( - val stateValue: Boolean -) { +class BooleanStateClusterStateChangeEvent(val stateValue: Boolean) { override fun toString(): String = buildString { append("BooleanStateClusterStateChangeEvent {\n") append("\tstateValue : $stateValue\n") @@ -44,10 +40,10 @@ class BooleanStateClusterStateChangeEvent( companion object { private const val TAG_STATE_VALUE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BooleanStateClusterStateChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BooleanStateClusterStateChangeEvent { tlvReader.enterStructure(tlvTag) val stateValue = tlvReader.getBoolean(ContextSpecificTag(TAG_STATE_VALUE)) - + tlvReader.exitContainer() return BooleanStateClusterStateChangeEvent(stateValue) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterReachableChangedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterReachableChangedEvent.kt index 911b00e2a344c1..f153ed3f64cc07 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterReachableChangedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterReachableChangedEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class BridgedDeviceBasicInformationClusterReachableChangedEvent( - val reachableNewValue: Boolean -) { +class BridgedDeviceBasicInformationClusterReachableChangedEvent(val reachableNewValue: Boolean) { override fun toString(): String = buildString { append("BridgedDeviceBasicInformationClusterReachableChangedEvent {\n") append("\treachableNewValue : $reachableNewValue\n") @@ -44,10 +40,13 @@ class BridgedDeviceBasicInformationClusterReachableChangedEvent( companion object { private const val TAG_REACHABLE_NEW_VALUE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BridgedDeviceBasicInformationClusterReachableChangedEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): BridgedDeviceBasicInformationClusterReachableChangedEvent { tlvReader.enterStructure(tlvTag) val reachableNewValue = tlvReader.getBoolean(ContextSpecificTag(TAG_REACHABLE_NEW_VALUE)) - + tlvReader.exitContainer() return BridgedDeviceBasicInformationClusterReachableChangedEvent(reachableNewValue) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterStartUpEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterStartUpEvent.kt index 73a736e912bc99..2df7a457951adf 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterStartUpEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterStartUpEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class BridgedDeviceBasicInformationClusterStartUpEvent( - val softwareVersion: UInt -) { +class BridgedDeviceBasicInformationClusterStartUpEvent(val softwareVersion: UInt) { override fun toString(): String = buildString { append("BridgedDeviceBasicInformationClusterStartUpEvent {\n") append("\tsoftwareVersion : $softwareVersion\n") @@ -44,10 +40,13 @@ class BridgedDeviceBasicInformationClusterStartUpEvent( companion object { private const val TAG_SOFTWARE_VERSION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : BridgedDeviceBasicInformationClusterStartUpEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): BridgedDeviceBasicInformationClusterStartUpEvent { tlvReader.enterStructure(tlvTag) val softwareVersion = tlvReader.getUInt(ContextSpecificTag(TAG_SOFTWARE_VERSION)) - + tlvReader.exitContainer() return BridgedDeviceBasicInformationClusterStartUpEvent(softwareVersion) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent.kt index 63ac63cf385528..92b680ff01eb05 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent.kt @@ -18,7 +18,6 @@ package matter.devicecontroller.cluster.eventstructs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -30,11 +29,26 @@ class DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent( val status: UInt, val criticality: UInt, val control: UInt, - val temperatureControl: Optional?, - val averageLoadControl: Optional?, - val dutyCycleControl: Optional?, - val powerSavingsControl: Optional?, - val heatingSourceControl: Optional? + val temperatureControl: + Optional< + matter.devicecontroller.cluster.structs.DemandResponseLoadControlClusterTemperatureControlStruct + >?, + val averageLoadControl: + Optional< + matter.devicecontroller.cluster.structs.DemandResponseLoadControlClusterAverageLoadControlStruct + >?, + val dutyCycleControl: + Optional< + matter.devicecontroller.cluster.structs.DemandResponseLoadControlClusterDutyCycleControlStruct + >?, + val powerSavingsControl: + Optional< + matter.devicecontroller.cluster.structs.DemandResponseLoadControlClusterPowerSavingsControlStruct + >?, + val heatingSourceControl: + Optional< + matter.devicecontroller.cluster.structs.DemandResponseLoadControlClusterHeatingSourceControlStruct + >? ) { override fun toString(): String = buildString { append("DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent {\n") @@ -65,41 +79,41 @@ class DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent( put(ContextSpecificTag(TAG_CONTROL), control) if (temperatureControl != null) { if (temperatureControl.isPresent) { - val opttemperatureControl = temperatureControl.get() - opttemperatureControl.toTlv(ContextSpecificTag(TAG_TEMPERATURE_CONTROL), this) - } + val opttemperatureControl = temperatureControl.get() + opttemperatureControl.toTlv(ContextSpecificTag(TAG_TEMPERATURE_CONTROL), this) + } } else { putNull(ContextSpecificTag(TAG_TEMPERATURE_CONTROL)) } if (averageLoadControl != null) { if (averageLoadControl.isPresent) { - val optaverageLoadControl = averageLoadControl.get() - optaverageLoadControl.toTlv(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), this) - } + val optaverageLoadControl = averageLoadControl.get() + optaverageLoadControl.toTlv(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), this) + } } else { putNull(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL)) } if (dutyCycleControl != null) { if (dutyCycleControl.isPresent) { - val optdutyCycleControl = dutyCycleControl.get() - optdutyCycleControl.toTlv(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), this) - } + val optdutyCycleControl = dutyCycleControl.get() + optdutyCycleControl.toTlv(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), this) + } } else { putNull(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL)) } if (powerSavingsControl != null) { if (powerSavingsControl.isPresent) { - val optpowerSavingsControl = powerSavingsControl.get() - optpowerSavingsControl.toTlv(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), this) - } + val optpowerSavingsControl = powerSavingsControl.get() + optpowerSavingsControl.toTlv(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), this) + } } else { putNull(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL)) } if (heatingSourceControl != null) { if (heatingSourceControl.isPresent) { - val optheatingSourceControl = heatingSourceControl.get() - optheatingSourceControl.toTlv(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), this) - } + val optheatingSourceControl = heatingSourceControl.get() + optheatingSourceControl.toTlv(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), this) + } } else { putNull(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL)) } @@ -119,72 +133,112 @@ class DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent( private const val TAG_POWER_SAVINGS_CONTROL = 8 private const val TAG_HEATING_SOURCE_CONTROL = 9 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent { tlvReader.enterStructure(tlvTag) val eventID = tlvReader.getByteArray(ContextSpecificTag(TAG_EVENT_I_D)) - val transitionIndex = if (!tlvReader.isNull()) { - tlvReader.getUByte(ContextSpecificTag(TAG_TRANSITION_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TRANSITION_INDEX)) - null - } + val transitionIndex = + if (!tlvReader.isNull()) { + tlvReader.getUByte(ContextSpecificTag(TAG_TRANSITION_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TRANSITION_INDEX)) + null + } val status = tlvReader.getUInt(ContextSpecificTag(TAG_STATUS)) val criticality = tlvReader.getUInt(ContextSpecificTag(TAG_CRITICALITY)) val control = tlvReader.getUInt(ContextSpecificTag(TAG_CONTROL)) - val temperatureControl = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_TEMPERATURE_CONTROL))) { - Optional.of(matter.devicecontroller.cluster.structs.DemandResponseLoadControlClusterTemperatureControlStruct.fromTlv(ContextSpecificTag(TAG_TEMPERATURE_CONTROL), tlvReader)) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TEMPERATURE_CONTROL)) - null - } - val averageLoadControl = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL))) { - Optional.of(matter.devicecontroller.cluster.structs.DemandResponseLoadControlClusterAverageLoadControlStruct.fromTlv(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), tlvReader)) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL)) - null - } - val dutyCycleControl = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL))) { - Optional.of(matter.devicecontroller.cluster.structs.DemandResponseLoadControlClusterDutyCycleControlStruct.fromTlv(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), tlvReader)) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL)) - null - } - val powerSavingsControl = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL))) { - Optional.of(matter.devicecontroller.cluster.structs.DemandResponseLoadControlClusterPowerSavingsControlStruct.fromTlv(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), tlvReader)) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL)) - null - } - val heatingSourceControl = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL))) { - Optional.of(matter.devicecontroller.cluster.structs.DemandResponseLoadControlClusterHeatingSourceControlStruct.fromTlv(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), tlvReader)) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL)) - null - } - + val temperatureControl = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_TEMPERATURE_CONTROL))) { + Optional.of( + matter.devicecontroller.cluster.structs + .DemandResponseLoadControlClusterTemperatureControlStruct + .fromTlv(ContextSpecificTag(TAG_TEMPERATURE_CONTROL), tlvReader) + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TEMPERATURE_CONTROL)) + null + } + val averageLoadControl = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL))) { + Optional.of( + matter.devicecontroller.cluster.structs + .DemandResponseLoadControlClusterAverageLoadControlStruct + .fromTlv(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), tlvReader) + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL)) + null + } + val dutyCycleControl = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL))) { + Optional.of( + matter.devicecontroller.cluster.structs + .DemandResponseLoadControlClusterDutyCycleControlStruct + .fromTlv(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), tlvReader) + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL)) + null + } + val powerSavingsControl = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL))) { + Optional.of( + matter.devicecontroller.cluster.structs + .DemandResponseLoadControlClusterPowerSavingsControlStruct + .fromTlv(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), tlvReader) + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL)) + null + } + val heatingSourceControl = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL))) { + Optional.of( + matter.devicecontroller.cluster.structs + .DemandResponseLoadControlClusterHeatingSourceControlStruct + .fromTlv(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), tlvReader) + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL)) + null + } + tlvReader.exitContainer() - return DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent(eventID, transitionIndex, status, criticality, control, temperatureControl, averageLoadControl, dutyCycleControl, powerSavingsControl, heatingSourceControl) + return DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent( + eventID, + transitionIndex, + status, + criticality, + control, + temperatureControl, + averageLoadControl, + dutyCycleControl, + powerSavingsControl, + heatingSourceControl + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DishwasherAlarmClusterNotifyEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DishwasherAlarmClusterNotifyEvent.kt index 545b42ec38e234..3b0bd74a1fd5c7 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DishwasherAlarmClusterNotifyEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DishwasherAlarmClusterNotifyEvent.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -56,13 +54,13 @@ class DishwasherAlarmClusterNotifyEvent( private const val TAG_STATE = 2 private const val TAG_MASK = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DishwasherAlarmClusterNotifyEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DishwasherAlarmClusterNotifyEvent { tlvReader.enterStructure(tlvTag) val active = tlvReader.getULong(ContextSpecificTag(TAG_ACTIVE)) val inactive = tlvReader.getULong(ContextSpecificTag(TAG_INACTIVE)) val state = tlvReader.getULong(ContextSpecificTag(TAG_STATE)) val mask = tlvReader.getULong(ContextSpecificTag(TAG_MASK)) - + tlvReader.exitContainer() return DishwasherAlarmClusterNotifyEvent(active, inactive, state, mask) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorLockAlarmEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorLockAlarmEvent.kt index 5855cf696b26b3..5acde4acb5f40d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorLockAlarmEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorLockAlarmEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DoorLockClusterDoorLockAlarmEvent( - val alarmCode: UInt -) { +class DoorLockClusterDoorLockAlarmEvent(val alarmCode: UInt) { override fun toString(): String = buildString { append("DoorLockClusterDoorLockAlarmEvent {\n") append("\talarmCode : $alarmCode\n") @@ -44,10 +40,10 @@ class DoorLockClusterDoorLockAlarmEvent( companion object { private const val TAG_ALARM_CODE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterDoorLockAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterDoorLockAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmCode = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_CODE)) - + tlvReader.exitContainer() return DoorLockClusterDoorLockAlarmEvent(alarmCode) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorStateChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorStateChangeEvent.kt index 708d26eb89380e..cc693ce9d5d390 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorStateChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorStateChangeEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DoorLockClusterDoorStateChangeEvent( - val doorState: UInt -) { +class DoorLockClusterDoorStateChangeEvent(val doorState: UInt) { override fun toString(): String = buildString { append("DoorLockClusterDoorStateChangeEvent {\n") append("\tdoorState : $doorState\n") @@ -44,10 +40,10 @@ class DoorLockClusterDoorStateChangeEvent( companion object { private const val TAG_DOOR_STATE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterDoorStateChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterDoorStateChangeEvent { tlvReader.enterStructure(tlvTag) val doorState = tlvReader.getUInt(ContextSpecificTag(TAG_DOOR_STATE)) - + tlvReader.exitContainer() return DoorLockClusterDoorStateChangeEvent(doorState) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationErrorEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationErrorEvent.kt index 05d900bde99b86..84b682fc2d55bb 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationErrorEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationErrorEvent.kt @@ -31,7 +31,8 @@ class DoorLockClusterLockOperationErrorEvent( val userIndex: UShort?, val fabricIndex: UByte?, val sourceNode: ULong?, - val credentials: Optional>? + val credentials: + Optional>? ) { override fun toString(): String = buildString { append("DoorLockClusterLockOperationErrorEvent {\n") @@ -68,13 +69,13 @@ class DoorLockClusterLockOperationErrorEvent( } if (credentials != null) { if (credentials.isPresent) { - val optcredentials = credentials.get() - startArray(ContextSpecificTag(TAG_CREDENTIALS)) - for (item in optcredentials.iterator()) { - item.toTlv(AnonymousTag, this) - } - endArray() - } + val optcredentials = credentials.get() + startArray(ContextSpecificTag(TAG_CREDENTIALS)) + for (item in optcredentials.iterator()) { + item.toTlv(AnonymousTag, this) + } + endArray() + } } else { putNull(ContextSpecificTag(TAG_CREDENTIALS)) } @@ -91,49 +92,68 @@ class DoorLockClusterLockOperationErrorEvent( private const val TAG_SOURCE_NODE = 5 private const val TAG_CREDENTIALS = 6 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterLockOperationErrorEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterLockOperationErrorEvent { tlvReader.enterStructure(tlvTag) val lockOperationType = tlvReader.getUInt(ContextSpecificTag(TAG_LOCK_OPERATION_TYPE)) val operationSource = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATION_SOURCE)) val operationError = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATION_ERROR)) - val userIndex = if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_USER_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) - null - } - val fabricIndex = if (!tlvReader.isNull()) { - tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - null - } - val sourceNode = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) - null - } - val credentials = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_CREDENTIALS))) { - Optional.of(buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CREDENTIALS)) - while(!tlvReader.isEndOfContainer()) { - this.add(matter.devicecontroller.cluster.structs.DoorLockClusterCredentialStruct.fromTlv(AnonymousTag, tlvReader)) + val userIndex = + if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_USER_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) + null } - tlvReader.exitContainer() - }) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CREDENTIALS)) - null - } - + val fabricIndex = + if (!tlvReader.isNull()) { + tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + null + } + val sourceNode = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) + null + } + val credentials = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_CREDENTIALS))) { + Optional.of( + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CREDENTIALS)) + while (!tlvReader.isEndOfContainer()) { + this.add( + matter.devicecontroller.cluster.structs.DoorLockClusterCredentialStruct.fromTlv( + AnonymousTag, + tlvReader + ) + ) + } + tlvReader.exitContainer() + } + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_CREDENTIALS)) + null + } + tlvReader.exitContainer() - return DoorLockClusterLockOperationErrorEvent(lockOperationType, operationSource, operationError, userIndex, fabricIndex, sourceNode, credentials) + return DoorLockClusterLockOperationErrorEvent( + lockOperationType, + operationSource, + operationError, + userIndex, + fabricIndex, + sourceNode, + credentials + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationEvent.kt index ce7121371a5f69..4708017ff6fcae 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationEvent.kt @@ -30,7 +30,8 @@ class DoorLockClusterLockOperationEvent( val userIndex: UShort?, val fabricIndex: UByte?, val sourceNode: ULong?, - val credentials: Optional>? + val credentials: + Optional>? ) { override fun toString(): String = buildString { append("DoorLockClusterLockOperationEvent {\n") @@ -65,13 +66,13 @@ class DoorLockClusterLockOperationEvent( } if (credentials != null) { if (credentials.isPresent) { - val optcredentials = credentials.get() - startArray(ContextSpecificTag(TAG_CREDENTIALS)) - for (item in optcredentials.iterator()) { - item.toTlv(AnonymousTag, this) - } - endArray() - } + val optcredentials = credentials.get() + startArray(ContextSpecificTag(TAG_CREDENTIALS)) + for (item in optcredentials.iterator()) { + item.toTlv(AnonymousTag, this) + } + endArray() + } } else { putNull(ContextSpecificTag(TAG_CREDENTIALS)) } @@ -87,48 +88,66 @@ class DoorLockClusterLockOperationEvent( private const val TAG_SOURCE_NODE = 4 private const val TAG_CREDENTIALS = 5 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterLockOperationEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterLockOperationEvent { tlvReader.enterStructure(tlvTag) val lockOperationType = tlvReader.getUInt(ContextSpecificTag(TAG_LOCK_OPERATION_TYPE)) val operationSource = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATION_SOURCE)) - val userIndex = if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_USER_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) - null - } - val fabricIndex = if (!tlvReader.isNull()) { - tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - null - } - val sourceNode = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) - null - } - val credentials = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_CREDENTIALS))) { - Optional.of(buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CREDENTIALS)) - while(!tlvReader.isEndOfContainer()) { - this.add(matter.devicecontroller.cluster.structs.DoorLockClusterCredentialStruct.fromTlv(AnonymousTag, tlvReader)) + val userIndex = + if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_USER_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) + null } - tlvReader.exitContainer() - }) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CREDENTIALS)) - null - } - + val fabricIndex = + if (!tlvReader.isNull()) { + tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + null + } + val sourceNode = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) + null + } + val credentials = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_CREDENTIALS))) { + Optional.of( + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CREDENTIALS)) + while (!tlvReader.isEndOfContainer()) { + this.add( + matter.devicecontroller.cluster.structs.DoorLockClusterCredentialStruct.fromTlv( + AnonymousTag, + tlvReader + ) + ) + } + tlvReader.exitContainer() + } + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_CREDENTIALS)) + null + } + tlvReader.exitContainer() - return DoorLockClusterLockOperationEvent(lockOperationType, operationSource, userIndex, fabricIndex, sourceNode, credentials) + return DoorLockClusterLockOperationEvent( + lockOperationType, + operationSource, + userIndex, + fabricIndex, + sourceNode, + credentials + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockUserChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockUserChangeEvent.kt index 413c2c55bf3c09..81814e6393b670 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockUserChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockUserChangeEvent.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -84,39 +82,51 @@ class DoorLockClusterLockUserChangeEvent( private const val TAG_SOURCE_NODE = 5 private const val TAG_DATA_INDEX = 6 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : DoorLockClusterLockUserChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DoorLockClusterLockUserChangeEvent { tlvReader.enterStructure(tlvTag) val lockDataType = tlvReader.getUInt(ContextSpecificTag(TAG_LOCK_DATA_TYPE)) val dataOperationType = tlvReader.getUInt(ContextSpecificTag(TAG_DATA_OPERATION_TYPE)) val operationSource = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATION_SOURCE)) - val userIndex = if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_USER_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) - null - } - val fabricIndex = if (!tlvReader.isNull()) { - tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) - null - } - val sourceNode = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) - null - } - val dataIndex = if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_DATA_INDEX)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_DATA_INDEX)) - null - } - + val userIndex = + if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_USER_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_USER_INDEX)) + null + } + val fabricIndex = + if (!tlvReader.isNull()) { + tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_FABRIC_INDEX)) + null + } + val sourceNode = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_SOURCE_NODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SOURCE_NODE)) + null + } + val dataIndex = + if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_DATA_INDEX)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_DATA_INDEX)) + null + } + tlvReader.exitContainer() - return DoorLockClusterLockUserChangeEvent(lockDataType, dataOperationType, operationSource, userIndex, fabricIndex, sourceNode, dataIndex) + return DoorLockClusterLockUserChangeEvent( + lockDataType, + dataOperationType, + operationSource, + userIndex, + fabricIndex, + sourceNode, + dataIndex + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterBootReasonEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterBootReasonEvent.kt index 159ddbbfcee4b0..39205bf4badbef 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterBootReasonEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterBootReasonEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class GeneralDiagnosticsClusterBootReasonEvent( - val bootReason: UInt -) { +class GeneralDiagnosticsClusterBootReasonEvent(val bootReason: UInt) { override fun toString(): String = buildString { append("GeneralDiagnosticsClusterBootReasonEvent {\n") append("\tbootReason : $bootReason\n") @@ -44,10 +40,10 @@ class GeneralDiagnosticsClusterBootReasonEvent( companion object { private const val TAG_BOOT_REASON = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterBootReasonEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GeneralDiagnosticsClusterBootReasonEvent { tlvReader.enterStructure(tlvTag) val bootReason = tlvReader.getUInt(ContextSpecificTag(TAG_BOOT_REASON)) - + tlvReader.exitContainer() return GeneralDiagnosticsClusterBootReasonEvent(bootReason) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterHardwareFaultChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterHardwareFaultChangeEvent.kt index 3af29f36460752..b24c90d6904e36 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterHardwareFaultChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterHardwareFaultChangeEvent.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -56,23 +55,28 @@ class GeneralDiagnosticsClusterHardwareFaultChangeEvent( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterHardwareFaultChangeEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): GeneralDiagnosticsClusterHardwareFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() } - tlvReader.exitContainer() - } - + tlvReader.exitContainer() return GeneralDiagnosticsClusterHardwareFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterNetworkFaultChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterNetworkFaultChangeEvent.kt index e5a830fae00272..f4423fa23b3783 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterNetworkFaultChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterNetworkFaultChangeEvent.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -56,23 +55,28 @@ class GeneralDiagnosticsClusterNetworkFaultChangeEvent( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterNetworkFaultChangeEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): GeneralDiagnosticsClusterNetworkFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() } - tlvReader.exitContainer() - } - + tlvReader.exitContainer() return GeneralDiagnosticsClusterNetworkFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterRadioFaultChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterRadioFaultChangeEvent.kt index 14218495c3fff9..f42f34f9689d63 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterRadioFaultChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterRadioFaultChangeEvent.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -56,23 +55,25 @@ class GeneralDiagnosticsClusterRadioFaultChangeEvent( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : GeneralDiagnosticsClusterRadioFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GeneralDiagnosticsClusterRadioFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() } - tlvReader.exitContainer() - } - + tlvReader.exitContainer() return GeneralDiagnosticsClusterRadioFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationCompletionEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationCompletionEvent.kt index 7b5446cfefdb1b..f2f65bc0d0e509 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationCompletionEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationCompletionEvent.kt @@ -18,7 +18,6 @@ package matter.devicecontroller.cluster.eventstructs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -43,17 +42,17 @@ class OperationalStateClusterOperationCompletionEvent( put(ContextSpecificTag(TAG_COMPLETION_ERROR_CODE), completionErrorCode) if (totalOperationalTime != null) { if (totalOperationalTime.isPresent) { - val opttotalOperationalTime = totalOperationalTime.get() - put(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME), opttotalOperationalTime) - } + val opttotalOperationalTime = totalOperationalTime.get() + put(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME), opttotalOperationalTime) + } } else { putNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) } if (pausedTime != null) { if (pausedTime.isPresent) { - val optpausedTime = pausedTime.get() - put(ContextSpecificTag(TAG_PAUSED_TIME), optpausedTime) - } + val optpausedTime = pausedTime.get() + put(ContextSpecificTag(TAG_PAUSED_TIME), optpausedTime) + } } else { putNull(ContextSpecificTag(TAG_PAUSED_TIME)) } @@ -66,33 +65,42 @@ class OperationalStateClusterOperationCompletionEvent( private const val TAG_TOTAL_OPERATIONAL_TIME = 1 private const val TAG_PAUSED_TIME = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalStateClusterOperationCompletionEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): OperationalStateClusterOperationCompletionEvent { tlvReader.enterStructure(tlvTag) val completionErrorCode = tlvReader.getUInt(ContextSpecificTag(TAG_COMPLETION_ERROR_CODE)) - val totalOperationalTime = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) - null - } - val pausedTime = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_PAUSED_TIME))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_PAUSED_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PAUSED_TIME)) - null - } - + val totalOperationalTime = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) + null + } + val pausedTime = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_PAUSED_TIME))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_PAUSED_TIME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PAUSED_TIME)) + null + } + tlvReader.exitContainer() - return OperationalStateClusterOperationCompletionEvent(completionErrorCode, totalOperationalTime, pausedTime) + return OperationalStateClusterOperationCompletionEvent( + completionErrorCode, + totalOperationalTime, + pausedTime + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationalErrorEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationalErrorEvent.kt index aedebd441a1716..802e306c594c80 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationalErrorEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationalErrorEvent.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -44,10 +42,14 @@ class OperationalStateClusterOperationalErrorEvent( companion object { private const val TAG_ERROR_STATE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OperationalStateClusterOperationalErrorEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalStateClusterOperationalErrorEvent { tlvReader.enterStructure(tlvTag) - val errorState = matter.devicecontroller.cluster.structs.OperationalStateClusterErrorStateStruct.fromTlv(ContextSpecificTag(TAG_ERROR_STATE), tlvReader) - + val errorState = + matter.devicecontroller.cluster.structs.OperationalStateClusterErrorStateStruct.fromTlv( + ContextSpecificTag(TAG_ERROR_STATE), + tlvReader + ) + tlvReader.exitContainer() return OperationalStateClusterOperationalErrorEvent(errorState) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterDownloadErrorEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterDownloadErrorEvent.kt index 70ee0bd682975e..a36f9161a81b62 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterDownloadErrorEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterDownloadErrorEvent.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -64,26 +62,36 @@ class OtaSoftwareUpdateRequestorClusterDownloadErrorEvent( private const val TAG_PROGRESS_PERCENT = 2 private const val TAG_PLATFORM_CODE = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OtaSoftwareUpdateRequestorClusterDownloadErrorEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): OtaSoftwareUpdateRequestorClusterDownloadErrorEvent { tlvReader.enterStructure(tlvTag) val softwareVersion = tlvReader.getUInt(ContextSpecificTag(TAG_SOFTWARE_VERSION)) val bytesDownloaded = tlvReader.getULong(ContextSpecificTag(TAG_BYTES_DOWNLOADED)) - val progressPercent = if (!tlvReader.isNull()) { - tlvReader.getUByte(ContextSpecificTag(TAG_PROGRESS_PERCENT)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PROGRESS_PERCENT)) - null - } - val platformCode = if (!tlvReader.isNull()) { - tlvReader.getLong(ContextSpecificTag(TAG_PLATFORM_CODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PLATFORM_CODE)) - null - } - + val progressPercent = + if (!tlvReader.isNull()) { + tlvReader.getUByte(ContextSpecificTag(TAG_PROGRESS_PERCENT)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PROGRESS_PERCENT)) + null + } + val platformCode = + if (!tlvReader.isNull()) { + tlvReader.getLong(ContextSpecificTag(TAG_PLATFORM_CODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PLATFORM_CODE)) + null + } + tlvReader.exitContainer() - return OtaSoftwareUpdateRequestorClusterDownloadErrorEvent(softwareVersion, bytesDownloaded, progressPercent, platformCode) + return OtaSoftwareUpdateRequestorClusterDownloadErrorEvent( + softwareVersion, + bytesDownloaded, + progressPercent, + platformCode + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterStateTransitionEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterStateTransitionEvent.kt index c725e579cfd481..993efa8e9c93fc 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterStateTransitionEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterStateTransitionEvent.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -60,21 +58,30 @@ class OtaSoftwareUpdateRequestorClusterStateTransitionEvent( private const val TAG_REASON = 2 private const val TAG_TARGET_SOFTWARE_VERSION = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OtaSoftwareUpdateRequestorClusterStateTransitionEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): OtaSoftwareUpdateRequestorClusterStateTransitionEvent { tlvReader.enterStructure(tlvTag) val previousState = tlvReader.getUInt(ContextSpecificTag(TAG_PREVIOUS_STATE)) val newState = tlvReader.getUInt(ContextSpecificTag(TAG_NEW_STATE)) val reason = tlvReader.getUInt(ContextSpecificTag(TAG_REASON)) - val targetSoftwareVersion = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) - null - } - + val targetSoftwareVersion = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TARGET_SOFTWARE_VERSION)) + null + } + tlvReader.exitContainer() - return OtaSoftwareUpdateRequestorClusterStateTransitionEvent(previousState, newState, reason, targetSoftwareVersion) + return OtaSoftwareUpdateRequestorClusterStateTransitionEvent( + previousState, + newState, + reason, + targetSoftwareVersion + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterVersionAppliedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterVersionAppliedEvent.kt index c5de3a1eec2918..f8b32d0d560892 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterVersionAppliedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterVersionAppliedEvent.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -48,11 +46,14 @@ class OtaSoftwareUpdateRequestorClusterVersionAppliedEvent( private const val TAG_SOFTWARE_VERSION = 0 private const val TAG_PRODUCT_I_D = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : OtaSoftwareUpdateRequestorClusterVersionAppliedEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): OtaSoftwareUpdateRequestorClusterVersionAppliedEvent { tlvReader.enterStructure(tlvTag) val softwareVersion = tlvReader.getUInt(ContextSpecificTag(TAG_SOFTWARE_VERSION)) val productID = tlvReader.getUShort(ContextSpecificTag(TAG_PRODUCT_I_D)) - + tlvReader.exitContainer() return OtaSoftwareUpdateRequestorClusterVersionAppliedEvent(softwareVersion, productID) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatChargeFaultChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatChargeFaultChangeEvent.kt index 074eabdddca3c1..21cdcf674fa338 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatChargeFaultChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatChargeFaultChangeEvent.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -56,23 +55,25 @@ class PowerSourceClusterBatChargeFaultChangeEvent( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterBatChargeFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterBatChargeFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() } - tlvReader.exitContainer() - } - + tlvReader.exitContainer() return PowerSourceClusterBatChargeFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatFaultChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatFaultChangeEvent.kt index 41f4b5a8a66592..d1fd41e582dc94 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatFaultChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatFaultChangeEvent.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -24,10 +23,7 @@ import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class PowerSourceClusterBatFaultChangeEvent( - val current: List, - val previous: List -) { +class PowerSourceClusterBatFaultChangeEvent(val current: List, val previous: List) { override fun toString(): String = buildString { append("PowerSourceClusterBatFaultChangeEvent {\n") append("\tcurrent : $current\n") @@ -56,23 +52,25 @@ class PowerSourceClusterBatFaultChangeEvent( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterBatFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterBatFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() } - tlvReader.exitContainer() - } - + tlvReader.exitContainer() return PowerSourceClusterBatFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterWiredFaultChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterWiredFaultChangeEvent.kt index bbb491edf22ba3..8aaacc0cb49fc4 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterWiredFaultChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterWiredFaultChangeEvent.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -24,10 +23,7 @@ import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class PowerSourceClusterWiredFaultChangeEvent( - val current: List, - val previous: List -) { +class PowerSourceClusterWiredFaultChangeEvent(val current: List, val previous: List) { override fun toString(): String = buildString { append("PowerSourceClusterWiredFaultChangeEvent {\n") append("\tcurrent : $current\n") @@ -56,23 +52,25 @@ class PowerSourceClusterWiredFaultChangeEvent( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : PowerSourceClusterWiredFaultChangeEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterWiredFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() } - tlvReader.exitContainer() - } - + tlvReader.exitContainer() return PowerSourceClusterWiredFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RefrigeratorAlarmClusterNotifyEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RefrigeratorAlarmClusterNotifyEvent.kt index 689fbc4e492ec6..ee7c9b8ebfaae6 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RefrigeratorAlarmClusterNotifyEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RefrigeratorAlarmClusterNotifyEvent.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -56,13 +54,13 @@ class RefrigeratorAlarmClusterNotifyEvent( private const val TAG_STATE = 2 private const val TAG_MASK = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RefrigeratorAlarmClusterNotifyEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RefrigeratorAlarmClusterNotifyEvent { tlvReader.enterStructure(tlvTag) val active = tlvReader.getULong(ContextSpecificTag(TAG_ACTIVE)) val inactive = tlvReader.getULong(ContextSpecificTag(TAG_INACTIVE)) val state = tlvReader.getULong(ContextSpecificTag(TAG_STATE)) val mask = tlvReader.getULong(ContextSpecificTag(TAG_MASK)) - + tlvReader.exitContainer() return RefrigeratorAlarmClusterNotifyEvent(active, inactive, state, mask) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationCompletionEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationCompletionEvent.kt index 356f5debf6faba..3004686f8b67d8 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationCompletionEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationCompletionEvent.kt @@ -18,7 +18,6 @@ package matter.devicecontroller.cluster.eventstructs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -43,17 +42,17 @@ class RvcOperationalStateClusterOperationCompletionEvent( put(ContextSpecificTag(TAG_COMPLETION_ERROR_CODE), completionErrorCode) if (totalOperationalTime != null) { if (totalOperationalTime.isPresent) { - val opttotalOperationalTime = totalOperationalTime.get() - put(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME), opttotalOperationalTime) - } + val opttotalOperationalTime = totalOperationalTime.get() + put(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME), opttotalOperationalTime) + } } else { putNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) } if (pausedTime != null) { if (pausedTime.isPresent) { - val optpausedTime = pausedTime.get() - put(ContextSpecificTag(TAG_PAUSED_TIME), optpausedTime) - } + val optpausedTime = pausedTime.get() + put(ContextSpecificTag(TAG_PAUSED_TIME), optpausedTime) + } } else { putNull(ContextSpecificTag(TAG_PAUSED_TIME)) } @@ -66,33 +65,42 @@ class RvcOperationalStateClusterOperationCompletionEvent( private const val TAG_TOTAL_OPERATIONAL_TIME = 1 private const val TAG_PAUSED_TIME = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcOperationalStateClusterOperationCompletionEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): RvcOperationalStateClusterOperationCompletionEvent { tlvReader.enterStructure(tlvTag) val completionErrorCode = tlvReader.getUInt(ContextSpecificTag(TAG_COMPLETION_ERROR_CODE)) - val totalOperationalTime = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) - null - } - val pausedTime = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_PAUSED_TIME))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_PAUSED_TIME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PAUSED_TIME)) - null - } - + val totalOperationalTime = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TOTAL_OPERATIONAL_TIME)) + null + } + val pausedTime = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_PAUSED_TIME))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_PAUSED_TIME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PAUSED_TIME)) + null + } + tlvReader.exitContainer() - return RvcOperationalStateClusterOperationCompletionEvent(completionErrorCode, totalOperationalTime, pausedTime) + return RvcOperationalStateClusterOperationCompletionEvent( + completionErrorCode, + totalOperationalTime, + pausedTime + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationalErrorEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationalErrorEvent.kt index 89807ae9212007..ff973d17fe9684 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationalErrorEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationalErrorEvent.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -44,10 +42,17 @@ class RvcOperationalStateClusterOperationalErrorEvent( companion object { private const val TAG_ERROR_STATE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : RvcOperationalStateClusterOperationalErrorEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): RvcOperationalStateClusterOperationalErrorEvent { tlvReader.enterStructure(tlvTag) - val errorState = matter.devicecontroller.cluster.structs.RvcOperationalStateClusterErrorStateStruct.fromTlv(ContextSpecificTag(TAG_ERROR_STATE), tlvReader) - + val errorState = + matter.devicecontroller.cluster.structs.RvcOperationalStateClusterErrorStateStruct.fromTlv( + ContextSpecificTag(TAG_ERROR_STATE), + tlvReader + ) + tlvReader.exitContainer() return RvcOperationalStateClusterOperationalErrorEvent(errorState) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterCOAlarmEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterCOAlarmEvent.kt index 191f9c10109b07..e70b19a92636d3 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterCOAlarmEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterCOAlarmEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SmokeCoAlarmClusterCOAlarmEvent( - val alarmSeverityLevel: UInt -) { +class SmokeCoAlarmClusterCOAlarmEvent(val alarmSeverityLevel: UInt) { override fun toString(): String = buildString { append("SmokeCoAlarmClusterCOAlarmEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") @@ -44,10 +40,10 @@ class SmokeCoAlarmClusterCOAlarmEvent( companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterCOAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterCOAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterCOAlarmEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectCOAlarmEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectCOAlarmEvent.kt index 8afa26b31cb916..51aa58966bfd4c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectCOAlarmEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectCOAlarmEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SmokeCoAlarmClusterInterconnectCOAlarmEvent( - val alarmSeverityLevel: UInt -) { +class SmokeCoAlarmClusterInterconnectCOAlarmEvent(val alarmSeverityLevel: UInt) { override fun toString(): String = buildString { append("SmokeCoAlarmClusterInterconnectCOAlarmEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") @@ -44,10 +40,10 @@ class SmokeCoAlarmClusterInterconnectCOAlarmEvent( companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterInterconnectCOAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterInterconnectCOAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterInterconnectCOAlarmEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectSmokeAlarmEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectSmokeAlarmEvent.kt index d1bfe73e163157..4f2f7187caaa90 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectSmokeAlarmEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectSmokeAlarmEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SmokeCoAlarmClusterInterconnectSmokeAlarmEvent( - val alarmSeverityLevel: UInt -) { +class SmokeCoAlarmClusterInterconnectSmokeAlarmEvent(val alarmSeverityLevel: UInt) { override fun toString(): String = buildString { append("SmokeCoAlarmClusterInterconnectSmokeAlarmEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") @@ -44,10 +40,10 @@ class SmokeCoAlarmClusterInterconnectSmokeAlarmEvent( companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterInterconnectSmokeAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterInterconnectSmokeAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterInterconnectSmokeAlarmEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterLowBatteryEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterLowBatteryEvent.kt index d83189734d7651..0fd098880eddcf 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterLowBatteryEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterLowBatteryEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SmokeCoAlarmClusterLowBatteryEvent( - val alarmSeverityLevel: UInt -) { +class SmokeCoAlarmClusterLowBatteryEvent(val alarmSeverityLevel: UInt) { override fun toString(): String = buildString { append("SmokeCoAlarmClusterLowBatteryEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") @@ -44,10 +40,10 @@ class SmokeCoAlarmClusterLowBatteryEvent( companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterLowBatteryEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterLowBatteryEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterLowBatteryEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterSmokeAlarmEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterSmokeAlarmEvent.kt index 8e8d9ed3d3f544..f2b985b06eb48f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterSmokeAlarmEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterSmokeAlarmEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SmokeCoAlarmClusterSmokeAlarmEvent( - val alarmSeverityLevel: UInt -) { +class SmokeCoAlarmClusterSmokeAlarmEvent(val alarmSeverityLevel: UInt) { override fun toString(): String = buildString { append("SmokeCoAlarmClusterSmokeAlarmEvent {\n") append("\talarmSeverityLevel : $alarmSeverityLevel\n") @@ -44,10 +40,10 @@ class SmokeCoAlarmClusterSmokeAlarmEvent( companion object { private const val TAG_ALARM_SEVERITY_LEVEL = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SmokeCoAlarmClusterSmokeAlarmEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SmokeCoAlarmClusterSmokeAlarmEvent { tlvReader.enterStructure(tlvTag) val alarmSeverityLevel = tlvReader.getUInt(ContextSpecificTag(TAG_ALARM_SEVERITY_LEVEL)) - + tlvReader.exitContainer() return SmokeCoAlarmClusterSmokeAlarmEvent(alarmSeverityLevel) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SoftwareDiagnosticsClusterSoftwareFaultEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SoftwareDiagnosticsClusterSoftwareFaultEvent.kt index 7ccda10549572d..f7e1378e5ed2b7 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SoftwareDiagnosticsClusterSoftwareFaultEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SoftwareDiagnosticsClusterSoftwareFaultEvent.kt @@ -18,7 +18,6 @@ package matter.devicecontroller.cluster.eventstructs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -58,20 +57,22 @@ class SoftwareDiagnosticsClusterSoftwareFaultEvent( private const val TAG_NAME = 1 private const val TAG_FAULT_RECORDING = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SoftwareDiagnosticsClusterSoftwareFaultEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SoftwareDiagnosticsClusterSoftwareFaultEvent { tlvReader.enterStructure(tlvTag) val id = tlvReader.getULong(ContextSpecificTag(TAG_ID)) - val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - val faultRecording = if (tlvReader.isNextTag(ContextSpecificTag(TAG_FAULT_RECORDING))) { - Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_FAULT_RECORDING))) - } else { - Optional.empty() - } - + val name = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + val faultRecording = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_FAULT_RECORDING))) { + Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_FAULT_RECORDING))) + } else { + Optional.empty() + } + tlvReader.exitContainer() return SoftwareDiagnosticsClusterSoftwareFaultEvent(id, name, faultRecording) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterInitialPressEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterInitialPressEvent.kt index 3c337cad0ae788..630fd921464fad 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterInitialPressEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterInitialPressEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SwitchClusterInitialPressEvent( - val newPosition: UByte -) { +class SwitchClusterInitialPressEvent(val newPosition: UByte) { override fun toString(): String = buildString { append("SwitchClusterInitialPressEvent {\n") append("\tnewPosition : $newPosition\n") @@ -44,10 +40,10 @@ class SwitchClusterInitialPressEvent( companion object { private const val TAG_NEW_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterInitialPressEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterInitialPressEvent { tlvReader.enterStructure(tlvTag) val newPosition = tlvReader.getUByte(ContextSpecificTag(TAG_NEW_POSITION)) - + tlvReader.exitContainer() return SwitchClusterInitialPressEvent(newPosition) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongPressEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongPressEvent.kt index 6ded1a8d74eb96..b586d1687d64a9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongPressEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongPressEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SwitchClusterLongPressEvent( - val newPosition: UByte -) { +class SwitchClusterLongPressEvent(val newPosition: UByte) { override fun toString(): String = buildString { append("SwitchClusterLongPressEvent {\n") append("\tnewPosition : $newPosition\n") @@ -44,10 +40,10 @@ class SwitchClusterLongPressEvent( companion object { private const val TAG_NEW_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterLongPressEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterLongPressEvent { tlvReader.enterStructure(tlvTag) val newPosition = tlvReader.getUByte(ContextSpecificTag(TAG_NEW_POSITION)) - + tlvReader.exitContainer() return SwitchClusterLongPressEvent(newPosition) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongReleaseEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongReleaseEvent.kt index 68016f8084f65b..6b7ea992a3821e 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongReleaseEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongReleaseEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SwitchClusterLongReleaseEvent( - val previousPosition: UByte -) { +class SwitchClusterLongReleaseEvent(val previousPosition: UByte) { override fun toString(): String = buildString { append("SwitchClusterLongReleaseEvent {\n") append("\tpreviousPosition : $previousPosition\n") @@ -44,10 +40,10 @@ class SwitchClusterLongReleaseEvent( companion object { private const val TAG_PREVIOUS_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterLongReleaseEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterLongReleaseEvent { tlvReader.enterStructure(tlvTag) val previousPosition = tlvReader.getUByte(ContextSpecificTag(TAG_PREVIOUS_POSITION)) - + tlvReader.exitContainer() return SwitchClusterLongReleaseEvent(previousPosition) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressCompleteEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressCompleteEvent.kt index 46f01296bc0da9..79bbef0ee9dd7d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressCompleteEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressCompleteEvent.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -48,11 +46,12 @@ class SwitchClusterMultiPressCompleteEvent( private const val TAG_PREVIOUS_POSITION = 0 private const val TAG_TOTAL_NUMBER_OF_PRESSES_COUNTED = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterMultiPressCompleteEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterMultiPressCompleteEvent { tlvReader.enterStructure(tlvTag) val previousPosition = tlvReader.getUByte(ContextSpecificTag(TAG_PREVIOUS_POSITION)) - val totalNumberOfPressesCounted = tlvReader.getUByte(ContextSpecificTag(TAG_TOTAL_NUMBER_OF_PRESSES_COUNTED)) - + val totalNumberOfPressesCounted = + tlvReader.getUByte(ContextSpecificTag(TAG_TOTAL_NUMBER_OF_PRESSES_COUNTED)) + tlvReader.exitContainer() return SwitchClusterMultiPressCompleteEvent(previousPosition, totalNumberOfPressesCounted) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressOngoingEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressOngoingEvent.kt index ffe0818e1c89ab..bced01633d76ef 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressOngoingEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressOngoingEvent.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -48,11 +46,12 @@ class SwitchClusterMultiPressOngoingEvent( private const val TAG_NEW_POSITION = 0 private const val TAG_CURRENT_NUMBER_OF_PRESSES_COUNTED = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterMultiPressOngoingEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterMultiPressOngoingEvent { tlvReader.enterStructure(tlvTag) val newPosition = tlvReader.getUByte(ContextSpecificTag(TAG_NEW_POSITION)) - val currentNumberOfPressesCounted = tlvReader.getUByte(ContextSpecificTag(TAG_CURRENT_NUMBER_OF_PRESSES_COUNTED)) - + val currentNumberOfPressesCounted = + tlvReader.getUByte(ContextSpecificTag(TAG_CURRENT_NUMBER_OF_PRESSES_COUNTED)) + tlvReader.exitContainer() return SwitchClusterMultiPressOngoingEvent(newPosition, currentNumberOfPressesCounted) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterShortReleaseEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterShortReleaseEvent.kt index e681cfb5a28da1..6c9c2272f2ab38 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterShortReleaseEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterShortReleaseEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SwitchClusterShortReleaseEvent( - val previousPosition: UByte -) { +class SwitchClusterShortReleaseEvent(val previousPosition: UByte) { override fun toString(): String = buildString { append("SwitchClusterShortReleaseEvent {\n") append("\tpreviousPosition : $previousPosition\n") @@ -44,10 +40,10 @@ class SwitchClusterShortReleaseEvent( companion object { private const val TAG_PREVIOUS_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterShortReleaseEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterShortReleaseEvent { tlvReader.enterStructure(tlvTag) val previousPosition = tlvReader.getUByte(ContextSpecificTag(TAG_PREVIOUS_POSITION)) - + tlvReader.exitContainer() return SwitchClusterShortReleaseEvent(previousPosition) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterSwitchLatchedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterSwitchLatchedEvent.kt index 4779f02827774b..8c5ee4f9f83edf 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterSwitchLatchedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterSwitchLatchedEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class SwitchClusterSwitchLatchedEvent( - val newPosition: UByte -) { +class SwitchClusterSwitchLatchedEvent(val newPosition: UByte) { override fun toString(): String = buildString { append("SwitchClusterSwitchLatchedEvent {\n") append("\tnewPosition : $newPosition\n") @@ -44,10 +40,10 @@ class SwitchClusterSwitchLatchedEvent( companion object { private const val TAG_NEW_POSITION = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : SwitchClusterSwitchLatchedEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SwitchClusterSwitchLatchedEvent { tlvReader.enterStructure(tlvTag) val newPosition = tlvReader.getUByte(ContextSpecificTag(TAG_NEW_POSITION)) - + tlvReader.exitContainer() return SwitchClusterSwitchLatchedEvent(newPosition) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterConnectionStatusEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterConnectionStatusEvent.kt index e32e07e1fa41a2..b771bd2b0f402c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterConnectionStatusEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterConnectionStatusEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ThreadNetworkDiagnosticsClusterConnectionStatusEvent( - val connectionStatus: UInt -) { +class ThreadNetworkDiagnosticsClusterConnectionStatusEvent(val connectionStatus: UInt) { override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterConnectionStatusEvent {\n") append("\tconnectionStatus : $connectionStatus\n") @@ -44,10 +40,13 @@ class ThreadNetworkDiagnosticsClusterConnectionStatusEvent( companion object { private const val TAG_CONNECTION_STATUS = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterConnectionStatusEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ThreadNetworkDiagnosticsClusterConnectionStatusEvent { tlvReader.enterStructure(tlvTag) val connectionStatus = tlvReader.getUInt(ContextSpecificTag(TAG_CONNECTION_STATUS)) - + tlvReader.exitContainer() return ThreadNetworkDiagnosticsClusterConnectionStatusEvent(connectionStatus) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.kt index 1f5b402530dde9..827abfa1377c6a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -56,23 +55,28 @@ class ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent( private const val TAG_CURRENT = 0 private const val TAG_PREVIOUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() } - tlvReader.exitContainer() - } - + tlvReader.exitContainer() return ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterDSTStatusEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterDSTStatusEvent.kt index 6b94bb4c10ab3a..e20bc34335426f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterDSTStatusEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterDSTStatusEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class TimeSynchronizationClusterDSTStatusEvent( - val DSTOffsetActive: Boolean -) { +class TimeSynchronizationClusterDSTStatusEvent(val DSTOffsetActive: Boolean) { override fun toString(): String = buildString { append("TimeSynchronizationClusterDSTStatusEvent {\n") append("\tDSTOffsetActive : $DSTOffsetActive\n") @@ -44,10 +40,10 @@ class TimeSynchronizationClusterDSTStatusEvent( companion object { private const val TAG_D_S_T_OFFSET_ACTIVE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterDSTStatusEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TimeSynchronizationClusterDSTStatusEvent { tlvReader.enterStructure(tlvTag) val DSTOffsetActive = tlvReader.getBoolean(ContextSpecificTag(TAG_D_S_T_OFFSET_ACTIVE)) - + tlvReader.exitContainer() return TimeSynchronizationClusterDSTStatusEvent(DSTOffsetActive) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterTimeZoneStatusEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterTimeZoneStatusEvent.kt index a3ba6ebb7489cf..552027845f991d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterTimeZoneStatusEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterTimeZoneStatusEvent.kt @@ -18,16 +18,12 @@ package matter.devicecontroller.cluster.eventstructs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class TimeSynchronizationClusterTimeZoneStatusEvent( - val offset: Int, - val name: Optional -) { +class TimeSynchronizationClusterTimeZoneStatusEvent(val offset: Int, val name: Optional) { override fun toString(): String = buildString { append("TimeSynchronizationClusterTimeZoneStatusEvent {\n") append("\toffset : $offset\n") @@ -51,15 +47,16 @@ class TimeSynchronizationClusterTimeZoneStatusEvent( private const val TAG_OFFSET = 0 private const val TAG_NAME = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : TimeSynchronizationClusterTimeZoneStatusEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TimeSynchronizationClusterTimeZoneStatusEvent { tlvReader.enterStructure(tlvTag) val offset = tlvReader.getInt(ContextSpecificTag(TAG_OFFSET)) - val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - + val name = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + tlvReader.exitContainer() return TimeSynchronizationClusterTimeZoneStatusEvent(offset, name) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestEventEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestEventEvent.kt index fd9e37787d5f95..2993e43dedc6cd 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestEventEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestEventEvent.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -72,27 +71,38 @@ class UnitTestingClusterTestEventEvent( private const val TAG_ARG5 = 5 private const val TAG_ARG6 = 6 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterTestEventEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterTestEventEvent { tlvReader.enterStructure(tlvTag) val arg1 = tlvReader.getUByte(ContextSpecificTag(TAG_ARG1)) val arg2 = tlvReader.getUInt(ContextSpecificTag(TAG_ARG2)) val arg3 = tlvReader.getBoolean(ContextSpecificTag(TAG_ARG3)) - val arg4 = matter.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_ARG4), tlvReader) - val arg5 = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ARG5)) - while(!tlvReader.isEndOfContainer()) { - this.add(matter.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct.fromTlv(AnonymousTag, tlvReader)) + val arg4 = + matter.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct.fromTlv( + ContextSpecificTag(TAG_ARG4), + tlvReader + ) + val arg5 = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ARG5)) + while (!tlvReader.isEndOfContainer()) { + this.add( + matter.devicecontroller.cluster.structs.UnitTestingClusterSimpleStruct.fromTlv( + AnonymousTag, + tlvReader + ) + ) + } + tlvReader.exitContainer() } - tlvReader.exitContainer() - } - val arg6 = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ARG6)) - while(!tlvReader.isEndOfContainer()) { - this.add(tlvReader.getUInt(AnonymousTag)) + val arg6 = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ARG6)) + while (!tlvReader.isEndOfContainer()) { + this.add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() } - tlvReader.exitContainer() - } - + tlvReader.exitContainer() return UnitTestingClusterTestEventEvent(arg1, arg2, arg3, arg4, arg5, arg6) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestFabricScopedEventEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestFabricScopedEventEvent.kt index 027a51cfdc5a2a..bdf1b54a00b31f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestFabricScopedEventEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestFabricScopedEventEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class UnitTestingClusterTestFabricScopedEventEvent( - val fabricIndex: UByte -) { +class UnitTestingClusterTestFabricScopedEventEvent(val fabricIndex: UByte) { override fun toString(): String = buildString { append("UnitTestingClusterTestFabricScopedEventEvent {\n") append("\tfabricIndex : $fabricIndex\n") @@ -44,10 +40,10 @@ class UnitTestingClusterTestFabricScopedEventEvent( companion object { private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : UnitTestingClusterTestFabricScopedEventEvent { + fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterTestFabricScopedEventEvent { tlvReader.enterStructure(tlvTag) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return UnitTestingClusterTestFabricScopedEventEvent(fabricIndex) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveFaultEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveFaultEvent.kt index e7572c0d3d35b8..6aa0f2c8ea44bf 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveFaultEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveFaultEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ValveConfigurationAndControlClusterValveFaultEvent( - val valveFault: UInt -) { +class ValveConfigurationAndControlClusterValveFaultEvent(val valveFault: UInt) { override fun toString(): String = buildString { append("ValveConfigurationAndControlClusterValveFaultEvent {\n") append("\tvalveFault : $valveFault\n") @@ -44,10 +40,13 @@ class ValveConfigurationAndControlClusterValveFaultEvent( companion object { private const val TAG_VALVE_FAULT = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ValveConfigurationAndControlClusterValveFaultEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ValveConfigurationAndControlClusterValveFaultEvent { tlvReader.enterStructure(tlvTag) val valveFault = tlvReader.getUInt(ContextSpecificTag(TAG_VALVE_FAULT)) - + tlvReader.exitContainer() return ValveConfigurationAndControlClusterValveFaultEvent(valveFault) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveStateChangedEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveStateChangedEvent.kt index 510046abe30f39..37e58c25cea495 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveStateChangedEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveStateChangedEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ValveConfigurationAndControlClusterValveStateChangedEvent( - val valveState: UInt -) { +class ValveConfigurationAndControlClusterValveStateChangedEvent(val valveState: UInt) { override fun toString(): String = buildString { append("ValveConfigurationAndControlClusterValveStateChangedEvent {\n") append("\tvalveState : $valveState\n") @@ -44,10 +40,13 @@ class ValveConfigurationAndControlClusterValveStateChangedEvent( companion object { private const val TAG_VALVE_STATE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ValveConfigurationAndControlClusterValveStateChangedEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ValveConfigurationAndControlClusterValveStateChangedEvent { tlvReader.enterStructure(tlvTag) val valveState = tlvReader.getUInt(ContextSpecificTag(TAG_VALVE_STATE)) - + tlvReader.exitContainer() return ValveConfigurationAndControlClusterValveStateChangedEvent(valveState) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterAssociationFailureEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterAssociationFailureEvent.kt index 5ca080a89e8f07..04b408b87c41c2 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterAssociationFailureEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterAssociationFailureEvent.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -48,11 +46,15 @@ class WiFiNetworkDiagnosticsClusterAssociationFailureEvent( private const val TAG_ASSOCIATION_FAILURE_CAUSE = 0 private const val TAG_STATUS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : WiFiNetworkDiagnosticsClusterAssociationFailureEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): WiFiNetworkDiagnosticsClusterAssociationFailureEvent { tlvReader.enterStructure(tlvTag) - val associationFailureCause = tlvReader.getUInt(ContextSpecificTag(TAG_ASSOCIATION_FAILURE_CAUSE)) + val associationFailureCause = + tlvReader.getUInt(ContextSpecificTag(TAG_ASSOCIATION_FAILURE_CAUSE)) val status = tlvReader.getUShort(ContextSpecificTag(TAG_STATUS)) - + tlvReader.exitContainer() return WiFiNetworkDiagnosticsClusterAssociationFailureEvent(associationFailureCause, status) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterConnectionStatusEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterConnectionStatusEvent.kt index 0ecf4472e7cf76..653e02a013159d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterConnectionStatusEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterConnectionStatusEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class WiFiNetworkDiagnosticsClusterConnectionStatusEvent( - val connectionStatus: UInt -) { +class WiFiNetworkDiagnosticsClusterConnectionStatusEvent(val connectionStatus: UInt) { override fun toString(): String = buildString { append("WiFiNetworkDiagnosticsClusterConnectionStatusEvent {\n") append("\tconnectionStatus : $connectionStatus\n") @@ -44,10 +40,13 @@ class WiFiNetworkDiagnosticsClusterConnectionStatusEvent( companion object { private const val TAG_CONNECTION_STATUS = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : WiFiNetworkDiagnosticsClusterConnectionStatusEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): WiFiNetworkDiagnosticsClusterConnectionStatusEvent { tlvReader.enterStructure(tlvTag) val connectionStatus = tlvReader.getUInt(ContextSpecificTag(TAG_CONNECTION_STATUS)) - + tlvReader.exitContainer() return WiFiNetworkDiagnosticsClusterConnectionStatusEvent(connectionStatus) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterDisconnectionEvent.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterDisconnectionEvent.kt index a58dc192295c65..518f3ece0161d2 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterDisconnectionEvent.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterDisconnectionEvent.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.eventstructs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class WiFiNetworkDiagnosticsClusterDisconnectionEvent( - val reasonCode: UShort -) { +class WiFiNetworkDiagnosticsClusterDisconnectionEvent(val reasonCode: UShort) { override fun toString(): String = buildString { append("WiFiNetworkDiagnosticsClusterDisconnectionEvent {\n") append("\treasonCode : $reasonCode\n") @@ -44,10 +40,13 @@ class WiFiNetworkDiagnosticsClusterDisconnectionEvent( companion object { private const val TAG_REASON_CODE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : WiFiNetworkDiagnosticsClusterDisconnectionEvent { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): WiFiNetworkDiagnosticsClusterDisconnectionEvent { tlvReader.enterStructure(tlvTag) val reasonCode = tlvReader.getUShort(ContextSpecificTag(TAG_REASON_CODE)) - + tlvReader.exitContainer() return WiFiNetworkDiagnosticsClusterDisconnectionEvent(reasonCode) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlEntryStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlEntryStruct.kt index 2cdd1042e30c0b..7160b776b170fb 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlEntryStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlEntryStruct.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -48,19 +47,19 @@ class AccessControlClusterAccessControlEntryStruct( put(ContextSpecificTag(TAG_AUTH_MODE), authMode) if (subjects != null) { startArray(ContextSpecificTag(TAG_SUBJECTS)) - for (item in subjects.iterator()) { - put(AnonymousTag, item) - } - endArray() + for (item in subjects.iterator()) { + put(AnonymousTag, item) + } + endArray() } else { putNull(ContextSpecificTag(TAG_SUBJECTS)) } if (targets != null) { startArray(ContextSpecificTag(TAG_TARGETS)) - for (item in targets.iterator()) { - item.toTlv(AnonymousTag, this) - } - endArray() + for (item in targets.iterator()) { + item.toTlv(AnonymousTag, this) + } + endArray() } else { putNull(ContextSpecificTag(TAG_TARGETS)) } @@ -80,35 +79,43 @@ class AccessControlClusterAccessControlEntryStruct( tlvReader.enterStructure(tlvTag) val privilege = tlvReader.getUInt(ContextSpecificTag(TAG_PRIVILEGE)) val authMode = tlvReader.getUInt(ContextSpecificTag(TAG_AUTH_MODE)) - val subjects = if (!tlvReader.isNull()) { - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_SUBJECTS)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getULong(AnonymousTag)) - } - tlvReader.exitContainer() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SUBJECTS)) - null - } - val targets = if (!tlvReader.isNull()) { - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_TARGETS)) - while(!tlvReader.isEndOfContainer()) { - add(AccessControlClusterAccessControlTargetStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TARGETS)) - null - } + val subjects = + if (!tlvReader.isNull()) { + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_SUBJECTS)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getULong(AnonymousTag)) + } + tlvReader.exitContainer() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SUBJECTS)) + null + } + val targets = + if (!tlvReader.isNull()) { + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_TARGETS)) + while (!tlvReader.isEndOfContainer()) { + add(AccessControlClusterAccessControlTargetStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TARGETS)) + null + } val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return AccessControlClusterAccessControlEntryStruct(privilege, authMode, subjects, targets, fabricIndex) + return AccessControlClusterAccessControlEntryStruct( + privilege, + authMode, + subjects, + targets, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlExtensionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlExtensionStruct.kt index d4fad2d57222e9..92f871d9cc054d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlExtensionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlExtensionStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -48,11 +46,14 @@ class AccessControlClusterAccessControlExtensionStruct( private const val TAG_DATA = 1 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): AccessControlClusterAccessControlExtensionStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): AccessControlClusterAccessControlExtensionStruct { tlvReader.enterStructure(tlvTag) val data = tlvReader.getByteArray(ContextSpecificTag(TAG_DATA)) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return AccessControlClusterAccessControlExtensionStruct(data, fabricIndex) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlTargetStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlTargetStruct.kt index 0974472f32b191..24905a80d950d9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlTargetStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlTargetStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -66,25 +64,28 @@ class AccessControlClusterAccessControlTargetStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): AccessControlClusterAccessControlTargetStruct { tlvReader.enterStructure(tlvTag) - val cluster = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_CLUSTER)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CLUSTER)) - null - } - val endpoint = if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ENDPOINT)) - null - } - val deviceType = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_DEVICE_TYPE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_DEVICE_TYPE)) - null - } - + val cluster = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_CLUSTER)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_CLUSTER)) + null + } + val endpoint = + if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ENDPOINT)) + null + } + val deviceType = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_DEVICE_TYPE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_DEVICE_TYPE)) + null + } + tlvReader.exitContainer() return AccessControlClusterAccessControlTargetStruct(cluster, endpoint, deviceType) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterActionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterActionStruct.kt index 6eca7b6e2bdf98..43a6ed963d8b52 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterActionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterActionStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -72,10 +70,17 @@ class ActionsClusterActionStruct( val endpointListID = tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT_LIST_I_D)) val supportedCommands = tlvReader.getUInt(ContextSpecificTag(TAG_SUPPORTED_COMMANDS)) val state = tlvReader.getUInt(ContextSpecificTag(TAG_STATE)) - + tlvReader.exitContainer() - return ActionsClusterActionStruct(actionID, name, type, endpointListID, supportedCommands, state) + return ActionsClusterActionStruct( + actionID, + name, + type, + endpointListID, + supportedCommands, + state + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterEndpointListStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterEndpointListStruct.kt index 6a34aeb083574f..7b0f6a5616f52f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterEndpointListStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterEndpointListStruct.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -65,14 +64,15 @@ class ActionsClusterEndpointListStruct( val endpointListID = tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT_LIST_I_D)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) val type = tlvReader.getUInt(ContextSpecificTag(TAG_TYPE)) - val endpoints = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ENDPOINTS)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUShort(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val endpoints = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ENDPOINTS)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUShort(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ActionsClusterEndpointListStruct(endpointListID, name, type, endpoints) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActivatedCarbonFilterMonitoringClusterReplacementProductStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActivatedCarbonFilterMonitoringClusterReplacementProductStruct.kt index 00dead02afeff6..3f3b66764532b4 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActivatedCarbonFilterMonitoringClusterReplacementProductStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActivatedCarbonFilterMonitoringClusterReplacementProductStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -48,14 +46,21 @@ class ActivatedCarbonFilterMonitoringClusterReplacementProductStruct( private const val TAG_PRODUCT_IDENTIFIER_TYPE = 0 private const val TAG_PRODUCT_IDENTIFIER_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ActivatedCarbonFilterMonitoringClusterReplacementProductStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ActivatedCarbonFilterMonitoringClusterReplacementProductStruct { tlvReader.enterStructure(tlvTag) val productIdentifierType = tlvReader.getUInt(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_TYPE)) - val productIdentifierValue = tlvReader.getString(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_VALUE)) - + val productIdentifierValue = + tlvReader.getString(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_VALUE)) + tlvReader.exitContainer() - return ActivatedCarbonFilterMonitoringClusterReplacementProductStruct(productIdentifierType, productIdentifierValue) + return ActivatedCarbonFilterMonitoringClusterReplacementProductStruct( + productIdentifierType, + productIdentifierValue + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationBasicClusterApplicationStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationBasicClusterApplicationStruct.kt index d51e6f00a8a6bb..90dae8f1054f47 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationBasicClusterApplicationStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationBasicClusterApplicationStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -52,7 +50,7 @@ class ApplicationBasicClusterApplicationStruct( tlvReader.enterStructure(tlvTag) val catalogVendorID = tlvReader.getUShort(ContextSpecificTag(TAG_CATALOG_VENDOR_I_D)) val applicationID = tlvReader.getString(ContextSpecificTag(TAG_APPLICATION_I_D)) - + tlvReader.exitContainer() return ApplicationBasicClusterApplicationStruct(catalogVendorID, applicationID) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationEPStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationEPStruct.kt index 838250009fb347..62fc820b748084 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationEPStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationEPStruct.kt @@ -18,7 +18,6 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -53,13 +52,18 @@ class ApplicationLauncherClusterApplicationEPStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ApplicationLauncherClusterApplicationEPStruct { tlvReader.enterStructure(tlvTag) - val application = ApplicationLauncherClusterApplicationStruct.fromTlv(ContextSpecificTag(TAG_APPLICATION), tlvReader) - val endpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENDPOINT))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT))) - } else { - Optional.empty() - } - + val application = + ApplicationLauncherClusterApplicationStruct.fromTlv( + ContextSpecificTag(TAG_APPLICATION), + tlvReader + ) + val endpoint = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENDPOINT))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT))) + } else { + Optional.empty() + } + tlvReader.exitContainer() return ApplicationLauncherClusterApplicationEPStruct(application, endpoint) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationStruct.kt index 4ccc5fa4fba82b..39fa26c5279bbc 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -52,7 +50,7 @@ class ApplicationLauncherClusterApplicationStruct( tlvReader.enterStructure(tlvTag) val catalogVendorID = tlvReader.getUShort(ContextSpecificTag(TAG_CATALOG_VENDOR_I_D)) val applicationID = tlvReader.getString(ContextSpecificTag(TAG_APPLICATION_I_D)) - + tlvReader.exitContainer() return ApplicationLauncherClusterApplicationStruct(catalogVendorID, applicationID) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AudioOutputClusterOutputInfoStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AudioOutputClusterOutputInfoStruct.kt index f8b5d7e18182e1..07c6c02e0e16af 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AudioOutputClusterOutputInfoStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AudioOutputClusterOutputInfoStruct.kt @@ -16,19 +16,13 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class AudioOutputClusterOutputInfoStruct( - val index: UByte, - val outputType: UInt, - val name: String -) { +class AudioOutputClusterOutputInfoStruct(val index: UByte, val outputType: UInt, val name: String) { override fun toString(): String = buildString { append("AudioOutputClusterOutputInfoStruct {\n") append("\tindex : $index\n") @@ -57,7 +51,7 @@ class AudioOutputClusterOutputInfoStruct( val index = tlvReader.getUByte(ContextSpecificTag(TAG_INDEX)) val outputType = tlvReader.getUInt(ContextSpecificTag(TAG_OUTPUT_TYPE)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) - + tlvReader.exitContainer() return AudioOutputClusterOutputInfoStruct(index, outputType, name) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterCapabilityMinimaStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterCapabilityMinimaStruct.kt index 25a72a142ce4f5..57ffe931e64877 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterCapabilityMinimaStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterCapabilityMinimaStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -50,12 +48,17 @@ class BasicInformationClusterCapabilityMinimaStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterCapabilityMinimaStruct { tlvReader.enterStructure(tlvTag) - val caseSessionsPerFabric = tlvReader.getUShort(ContextSpecificTag(TAG_CASE_SESSIONS_PER_FABRIC)) - val subscriptionsPerFabric = tlvReader.getUShort(ContextSpecificTag(TAG_SUBSCRIPTIONS_PER_FABRIC)) - + val caseSessionsPerFabric = + tlvReader.getUShort(ContextSpecificTag(TAG_CASE_SESSIONS_PER_FABRIC)) + val subscriptionsPerFabric = + tlvReader.getUShort(ContextSpecificTag(TAG_SUBSCRIPTIONS_PER_FABRIC)) + tlvReader.exitContainer() - return BasicInformationClusterCapabilityMinimaStruct(caseSessionsPerFabric, subscriptionsPerFabric) + return BasicInformationClusterCapabilityMinimaStruct( + caseSessionsPerFabric, + subscriptionsPerFabric + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterProductAppearanceStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterProductAppearanceStruct.kt index 4ac29d5d799ccc..b1bd7ea2c5599b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterProductAppearanceStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterProductAppearanceStruct.kt @@ -16,18 +16,13 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class BasicInformationClusterProductAppearanceStruct( - val finish: UInt, - val primaryColor: UInt? -) { +class BasicInformationClusterProductAppearanceStruct(val finish: UInt, val primaryColor: UInt?) { override fun toString(): String = buildString { append("BasicInformationClusterProductAppearanceStruct {\n") append("\tfinish : $finish\n") @@ -55,13 +50,14 @@ class BasicInformationClusterProductAppearanceStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BasicInformationClusterProductAppearanceStruct { tlvReader.enterStructure(tlvTag) val finish = tlvReader.getUInt(ContextSpecificTag(TAG_FINISH)) - val primaryColor = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_PRIMARY_COLOR)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) - null - } - + val primaryColor = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_PRIMARY_COLOR)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) + null + } + tlvReader.exitContainer() return BasicInformationClusterProductAppearanceStruct(finish, primaryColor) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BindingClusterTargetStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BindingClusterTargetStruct.kt index f0699ddcf4c042..2f41f19897474b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BindingClusterTargetStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BindingClusterTargetStruct.kt @@ -18,7 +18,6 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -74,28 +73,32 @@ class BindingClusterTargetStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BindingClusterTargetStruct { tlvReader.enterStructure(tlvTag) - val node = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NODE))) { - Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_NODE))) - } else { - Optional.empty() - } - val group = if (tlvReader.isNextTag(ContextSpecificTag(TAG_GROUP))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_GROUP))) - } else { - Optional.empty() - } - val endpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENDPOINT))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT))) - } else { - Optional.empty() - } - val cluster = if (tlvReader.isNextTag(ContextSpecificTag(TAG_CLUSTER))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_CLUSTER))) - } else { - Optional.empty() - } + val node = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NODE))) { + Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_NODE))) + } else { + Optional.empty() + } + val group = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_GROUP))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_GROUP))) + } else { + Optional.empty() + } + val endpoint = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENDPOINT))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT))) + } else { + Optional.empty() + } + val cluster = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_CLUSTER))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_CLUSTER))) + } else { + Optional.empty() + } val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return BindingClusterTargetStruct(node, group, endpoint, cluster, fabricIndex) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BridgedDeviceBasicInformationClusterProductAppearanceStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BridgedDeviceBasicInformationClusterProductAppearanceStruct.kt index e7ec8161cf8444..c6b0dea505512d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BridgedDeviceBasicInformationClusterProductAppearanceStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BridgedDeviceBasicInformationClusterProductAppearanceStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -52,16 +50,20 @@ class BridgedDeviceBasicInformationClusterProductAppearanceStruct( private const val TAG_FINISH = 0 private const val TAG_PRIMARY_COLOR = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): BridgedDeviceBasicInformationClusterProductAppearanceStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): BridgedDeviceBasicInformationClusterProductAppearanceStruct { tlvReader.enterStructure(tlvTag) val finish = tlvReader.getUInt(ContextSpecificTag(TAG_FINISH)) - val primaryColor = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_PRIMARY_COLOR)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) - null - } - + val primaryColor = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_PRIMARY_COLOR)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PRIMARY_COLOR)) + null + } + tlvReader.exitContainer() return BridgedDeviceBasicInformationClusterProductAppearanceStruct(finish, primaryColor) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterChannelInfoStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterChannelInfoStruct.kt index 757210f9864888..78dbdfba00b026 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterChannelInfoStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterChannelInfoStruct.kt @@ -18,7 +18,6 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -73,25 +72,34 @@ class ChannelClusterChannelInfoStruct( tlvReader.enterStructure(tlvTag) val majorNumber = tlvReader.getUShort(ContextSpecificTag(TAG_MAJOR_NUMBER)) val minorNumber = tlvReader.getUShort(ContextSpecificTag(TAG_MINOR_NUMBER)) - val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - val callSign = if (tlvReader.isNextTag(ContextSpecificTag(TAG_CALL_SIGN))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_CALL_SIGN))) - } else { - Optional.empty() - } - val affiliateCallSign = if (tlvReader.isNextTag(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN))) - } else { - Optional.empty() - } - + val name = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + val callSign = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_CALL_SIGN))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_CALL_SIGN))) + } else { + Optional.empty() + } + val affiliateCallSign = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_AFFILIATE_CALL_SIGN))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return ChannelClusterChannelInfoStruct(majorNumber, minorNumber, name, callSign, affiliateCallSign) + return ChannelClusterChannelInfoStruct( + majorNumber, + minorNumber, + name, + callSign, + affiliateCallSign + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterLineupInfoStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterLineupInfoStruct.kt index 04316f70ea7a73..cb1ab50c1e95db 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterLineupInfoStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterLineupInfoStruct.kt @@ -18,7 +18,6 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -65,18 +64,20 @@ class ChannelClusterLineupInfoStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ChannelClusterLineupInfoStruct { tlvReader.enterStructure(tlvTag) val operatorName = tlvReader.getString(ContextSpecificTag(TAG_OPERATOR_NAME)) - val lineupName = if (tlvReader.isNextTag(ContextSpecificTag(TAG_LINEUP_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_LINEUP_NAME))) - } else { - Optional.empty() - } - val postalCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_POSTAL_CODE))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_POSTAL_CODE))) - } else { - Optional.empty() - } + val lineupName = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_LINEUP_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_LINEUP_NAME))) + } else { + Optional.empty() + } + val postalCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_POSTAL_CODE))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_POSTAL_CODE))) + } else { + Optional.empty() + } val lineupInfoType = tlvReader.getUInt(ContextSpecificTag(TAG_LINEUP_INFO_TYPE)) - + tlvReader.exitContainer() return ChannelClusterLineupInfoStruct(operatorName, lineupName, postalCode, lineupInfoType) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterAdditionalInfoStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterAdditionalInfoStruct.kt index ef428074afe5a2..e58a8923415e3b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterAdditionalInfoStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterAdditionalInfoStruct.kt @@ -16,18 +16,13 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ContentLauncherClusterAdditionalInfoStruct( - val name: String, - val value: String -) { +class ContentLauncherClusterAdditionalInfoStruct(val name: String, val value: String) { override fun toString(): String = buildString { append("ContentLauncherClusterAdditionalInfoStruct {\n") append("\tname : $name\n") @@ -52,7 +47,7 @@ class ContentLauncherClusterAdditionalInfoStruct( tlvReader.enterStructure(tlvTag) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) val value = tlvReader.getString(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return ContentLauncherClusterAdditionalInfoStruct(name, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterBrandingInformationStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterBrandingInformationStruct.kt index a1a72a0c4cce0a..7fc9456852969f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterBrandingInformationStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterBrandingInformationStruct.kt @@ -18,7 +18,6 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -79,38 +78,78 @@ class ContentLauncherClusterBrandingInformationStruct( private const val TAG_SPLASH = 4 private const val TAG_WATER_MARK = 5 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterBrandingInformationStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ContentLauncherClusterBrandingInformationStruct { tlvReader.enterStructure(tlvTag) val providerName = tlvReader.getString(ContextSpecificTag(TAG_PROVIDER_NAME)) - val background = if (tlvReader.isNextTag(ContextSpecificTag(TAG_BACKGROUND))) { - Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_BACKGROUND), tlvReader)) - } else { - Optional.empty() - } - val logo = if (tlvReader.isNextTag(ContextSpecificTag(TAG_LOGO))) { - Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_LOGO), tlvReader)) - } else { - Optional.empty() - } - val progressBar = if (tlvReader.isNextTag(ContextSpecificTag(TAG_PROGRESS_BAR))) { - Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_PROGRESS_BAR), tlvReader)) - } else { - Optional.empty() - } - val splash = if (tlvReader.isNextTag(ContextSpecificTag(TAG_SPLASH))) { - Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_SPLASH), tlvReader)) - } else { - Optional.empty() - } - val waterMark = if (tlvReader.isNextTag(ContextSpecificTag(TAG_WATER_MARK))) { - Optional.of(ContentLauncherClusterStyleInformationStruct.fromTlv(ContextSpecificTag(TAG_WATER_MARK), tlvReader)) - } else { - Optional.empty() - } - + val background = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_BACKGROUND))) { + Optional.of( + ContentLauncherClusterStyleInformationStruct.fromTlv( + ContextSpecificTag(TAG_BACKGROUND), + tlvReader + ) + ) + } else { + Optional.empty() + } + val logo = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_LOGO))) { + Optional.of( + ContentLauncherClusterStyleInformationStruct.fromTlv( + ContextSpecificTag(TAG_LOGO), + tlvReader + ) + ) + } else { + Optional.empty() + } + val progressBar = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_PROGRESS_BAR))) { + Optional.of( + ContentLauncherClusterStyleInformationStruct.fromTlv( + ContextSpecificTag(TAG_PROGRESS_BAR), + tlvReader + ) + ) + } else { + Optional.empty() + } + val splash = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_SPLASH))) { + Optional.of( + ContentLauncherClusterStyleInformationStruct.fromTlv( + ContextSpecificTag(TAG_SPLASH), + tlvReader + ) + ) + } else { + Optional.empty() + } + val waterMark = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_WATER_MARK))) { + Optional.of( + ContentLauncherClusterStyleInformationStruct.fromTlv( + ContextSpecificTag(TAG_WATER_MARK), + tlvReader + ) + ) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return ContentLauncherClusterBrandingInformationStruct(providerName, background, logo, progressBar, splash, waterMark) + return ContentLauncherClusterBrandingInformationStruct( + providerName, + background, + logo, + progressBar, + splash, + waterMark + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterContentSearchStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterContentSearchStruct.kt index 093bf1e4c1e2c2..edb9b9abc81976 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterContentSearchStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterContentSearchStruct.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -50,14 +49,15 @@ class ContentLauncherClusterContentSearchStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterContentSearchStruct { tlvReader.enterStructure(tlvTag) - val parameterList = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PARAMETER_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(ContentLauncherClusterParameterStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val parameterList = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PARAMETER_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(ContentLauncherClusterParameterStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ContentLauncherClusterContentSearchStruct(parameterList) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterDimensionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterDimensionStruct.kt index a8fe544e384c53..02b1322f5f9f17 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterDimensionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterDimensionStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -57,7 +55,7 @@ class ContentLauncherClusterDimensionStruct( val width = tlvReader.getDouble(ContextSpecificTag(TAG_WIDTH)) val height = tlvReader.getDouble(ContextSpecificTag(TAG_HEIGHT)) val metric = tlvReader.getUInt(ContextSpecificTag(TAG_METRIC)) - + tlvReader.exitContainer() return ContentLauncherClusterDimensionStruct(width, height, metric) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterParameterStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterParameterStruct.kt index e2e56446cf7657..ee1efa7365917b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterParameterStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterParameterStruct.kt @@ -45,10 +45,10 @@ class ContentLauncherClusterParameterStruct( if (externalIDList.isPresent) { val optexternalIDList = externalIDList.get() startArray(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST)) - for (item in optexternalIDList.iterator()) { - item.toTlv(AnonymousTag, this) - } - endArray() + for (item in optexternalIDList.iterator()) { + item.toTlv(AnonymousTag, this) + } + endArray() } endStructure() } @@ -63,18 +63,21 @@ class ContentLauncherClusterParameterStruct( tlvReader.enterStructure(tlvTag) val type = tlvReader.getUInt(ContextSpecificTag(TAG_TYPE)) val value = tlvReader.getString(ContextSpecificTag(TAG_VALUE)) - val externalIDList = if (tlvReader.isNextTag(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST))) { - Optional.of(buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(ContentLauncherClusterAdditionalInfoStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - }) - } else { - Optional.empty() - } - + val externalIDList = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST))) { + Optional.of( + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_EXTERNAL_I_D_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(ContentLauncherClusterAdditionalInfoStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + ) + } else { + Optional.empty() + } + tlvReader.exitContainer() return ContentLauncherClusterParameterStruct(type, value, externalIDList) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterStyleInformationStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterStyleInformationStruct.kt index 114c709306b643..217d11a7712d03 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterStyleInformationStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterStyleInformationStruct.kt @@ -18,7 +18,6 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -63,22 +62,27 @@ class ContentLauncherClusterStyleInformationStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ContentLauncherClusterStyleInformationStruct { tlvReader.enterStructure(tlvTag) - val imageURL = if (tlvReader.isNextTag(ContextSpecificTag(TAG_IMAGE_U_R_L))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_IMAGE_U_R_L))) - } else { - Optional.empty() - } - val color = if (tlvReader.isNextTag(ContextSpecificTag(TAG_COLOR))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_COLOR))) - } else { - Optional.empty() - } - val size = if (tlvReader.isNextTag(ContextSpecificTag(TAG_SIZE))) { - Optional.of(ContentLauncherClusterDimensionStruct.fromTlv(ContextSpecificTag(TAG_SIZE), tlvReader)) - } else { - Optional.empty() - } - + val imageURL = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_IMAGE_U_R_L))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_IMAGE_U_R_L))) + } else { + Optional.empty() + } + val color = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_COLOR))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_COLOR))) + } else { + Optional.empty() + } + val size = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_SIZE))) { + Optional.of( + ContentLauncherClusterDimensionStruct.fromTlv(ContextSpecificTag(TAG_SIZE), tlvReader) + ) + } else { + Optional.empty() + } + tlvReader.exitContainer() return ContentLauncherClusterStyleInformationStruct(imageURL, color, size) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterAverageLoadControlStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterAverageLoadControlStruct.kt index 25b7a3f584f923..1e4fd9f18cfe1d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterAverageLoadControlStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterAverageLoadControlStruct.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DemandResponseLoadControlClusterAverageLoadControlStruct( - val loadAdjustment: Byte -) { +class DemandResponseLoadControlClusterAverageLoadControlStruct(val loadAdjustment: Byte) { override fun toString(): String = buildString { append("DemandResponseLoadControlClusterAverageLoadControlStruct {\n") append("\tloadAdjustment : $loadAdjustment\n") @@ -44,10 +40,13 @@ class DemandResponseLoadControlClusterAverageLoadControlStruct( companion object { private const val TAG_LOAD_ADJUSTMENT = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DemandResponseLoadControlClusterAverageLoadControlStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): DemandResponseLoadControlClusterAverageLoadControlStruct { tlvReader.enterStructure(tlvTag) val loadAdjustment = tlvReader.getByte(ContextSpecificTag(TAG_LOAD_ADJUSTMENT)) - + tlvReader.exitContainer() return DemandResponseLoadControlClusterAverageLoadControlStruct(loadAdjustment) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterDutyCycleControlStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterDutyCycleControlStruct.kt index 2c6a235f7c69ba..1e23b648c727a9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterDutyCycleControlStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterDutyCycleControlStruct.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DemandResponseLoadControlClusterDutyCycleControlStruct( - val dutyCycle: UByte -) { +class DemandResponseLoadControlClusterDutyCycleControlStruct(val dutyCycle: UByte) { override fun toString(): String = buildString { append("DemandResponseLoadControlClusterDutyCycleControlStruct {\n") append("\tdutyCycle : $dutyCycle\n") @@ -44,10 +40,13 @@ class DemandResponseLoadControlClusterDutyCycleControlStruct( companion object { private const val TAG_DUTY_CYCLE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DemandResponseLoadControlClusterDutyCycleControlStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): DemandResponseLoadControlClusterDutyCycleControlStruct { tlvReader.enterStructure(tlvTag) val dutyCycle = tlvReader.getUByte(ContextSpecificTag(TAG_DUTY_CYCLE)) - + tlvReader.exitContainer() return DemandResponseLoadControlClusterDutyCycleControlStruct(dutyCycle) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterHeatingSourceControlStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterHeatingSourceControlStruct.kt index 12588a5e43e743..0be25f2696b61c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterHeatingSourceControlStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterHeatingSourceControlStruct.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DemandResponseLoadControlClusterHeatingSourceControlStruct( - val heatingSource: UInt -) { +class DemandResponseLoadControlClusterHeatingSourceControlStruct(val heatingSource: UInt) { override fun toString(): String = buildString { append("DemandResponseLoadControlClusterHeatingSourceControlStruct {\n") append("\theatingSource : $heatingSource\n") @@ -44,10 +40,13 @@ class DemandResponseLoadControlClusterHeatingSourceControlStruct( companion object { private const val TAG_HEATING_SOURCE = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DemandResponseLoadControlClusterHeatingSourceControlStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): DemandResponseLoadControlClusterHeatingSourceControlStruct { tlvReader.enterStructure(tlvTag) val heatingSource = tlvReader.getUInt(ContextSpecificTag(TAG_HEATING_SOURCE)) - + tlvReader.exitContainer() return DemandResponseLoadControlClusterHeatingSourceControlStruct(heatingSource) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventStruct.kt index 4dbd5f3b11d408..fff221a680f729 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventStruct.kt @@ -87,40 +87,61 @@ class DemandResponseLoadControlClusterLoadControlEventStruct( private const val TAG_START_TIME = 6 private const val TAG_TRANSITIONS = 7 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DemandResponseLoadControlClusterLoadControlEventStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): DemandResponseLoadControlClusterLoadControlEventStruct { tlvReader.enterStructure(tlvTag) val eventID = tlvReader.getByteArray(ContextSpecificTag(TAG_EVENT_I_D)) - val programID = if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_PROGRAM_I_D)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PROGRAM_I_D)) - null - } + val programID = + if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_PROGRAM_I_D)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PROGRAM_I_D)) + null + } val control = tlvReader.getUInt(ContextSpecificTag(TAG_CONTROL)) val deviceClass = tlvReader.getULong(ContextSpecificTag(TAG_DEVICE_CLASS)) - val enrollmentGroup = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENROLLMENT_GROUP))) { - Optional.of(tlvReader.getUByte(ContextSpecificTag(TAG_ENROLLMENT_GROUP))) - } else { - Optional.empty() - } + val enrollmentGroup = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ENROLLMENT_GROUP))) { + Optional.of(tlvReader.getUByte(ContextSpecificTag(TAG_ENROLLMENT_GROUP))) + } else { + Optional.empty() + } val criticality = tlvReader.getUInt(ContextSpecificTag(TAG_CRITICALITY)) - val startTime = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_START_TIME)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_START_TIME)) - null - } - val transitions = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_TRANSITIONS)) - while(!tlvReader.isEndOfContainer()) { - add(DemandResponseLoadControlClusterLoadControlEventTransitionStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val startTime = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_START_TIME)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_START_TIME)) + null + } + val transitions = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_TRANSITIONS)) + while (!tlvReader.isEndOfContainer()) { + add( + DemandResponseLoadControlClusterLoadControlEventTransitionStruct.fromTlv( + AnonymousTag, + tlvReader + ) + ) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() - return DemandResponseLoadControlClusterLoadControlEventStruct(eventID, programID, control, deviceClass, enrollmentGroup, criticality, startTime, transitions) + return DemandResponseLoadControlClusterLoadControlEventStruct( + eventID, + programID, + control, + deviceClass, + enrollmentGroup, + criticality, + startTime, + transitions + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventTransitionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventTransitionStruct.kt index dacc3915fd3cd0..46c70edba6e5c8 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventTransitionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventTransitionStruct.kt @@ -18,7 +18,6 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -83,39 +82,80 @@ class DemandResponseLoadControlClusterLoadControlEventTransitionStruct( private const val TAG_POWER_SAVINGS_CONTROL = 5 private const val TAG_HEATING_SOURCE_CONTROL = 6 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DemandResponseLoadControlClusterLoadControlEventTransitionStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): DemandResponseLoadControlClusterLoadControlEventTransitionStruct { tlvReader.enterStructure(tlvTag) val duration = tlvReader.getUShort(ContextSpecificTag(TAG_DURATION)) val control = tlvReader.getUInt(ContextSpecificTag(TAG_CONTROL)) - val temperatureControl = if (tlvReader.isNextTag(ContextSpecificTag(TAG_TEMPERATURE_CONTROL))) { - Optional.of(DemandResponseLoadControlClusterTemperatureControlStruct.fromTlv(ContextSpecificTag(TAG_TEMPERATURE_CONTROL), tlvReader)) - } else { - Optional.empty() - } - val averageLoadControl = if (tlvReader.isNextTag(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL))) { - Optional.of(DemandResponseLoadControlClusterAverageLoadControlStruct.fromTlv(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), tlvReader)) - } else { - Optional.empty() - } - val dutyCycleControl = if (tlvReader.isNextTag(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL))) { - Optional.of(DemandResponseLoadControlClusterDutyCycleControlStruct.fromTlv(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), tlvReader)) - } else { - Optional.empty() - } - val powerSavingsControl = if (tlvReader.isNextTag(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL))) { - Optional.of(DemandResponseLoadControlClusterPowerSavingsControlStruct.fromTlv(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), tlvReader)) - } else { - Optional.empty() - } - val heatingSourceControl = if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL))) { - Optional.of(DemandResponseLoadControlClusterHeatingSourceControlStruct.fromTlv(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), tlvReader)) - } else { - Optional.empty() - } - + val temperatureControl = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_TEMPERATURE_CONTROL))) { + Optional.of( + DemandResponseLoadControlClusterTemperatureControlStruct.fromTlv( + ContextSpecificTag(TAG_TEMPERATURE_CONTROL), + tlvReader + ) + ) + } else { + Optional.empty() + } + val averageLoadControl = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL))) { + Optional.of( + DemandResponseLoadControlClusterAverageLoadControlStruct.fromTlv( + ContextSpecificTag(TAG_AVERAGE_LOAD_CONTROL), + tlvReader + ) + ) + } else { + Optional.empty() + } + val dutyCycleControl = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL))) { + Optional.of( + DemandResponseLoadControlClusterDutyCycleControlStruct.fromTlv( + ContextSpecificTag(TAG_DUTY_CYCLE_CONTROL), + tlvReader + ) + ) + } else { + Optional.empty() + } + val powerSavingsControl = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL))) { + Optional.of( + DemandResponseLoadControlClusterPowerSavingsControlStruct.fromTlv( + ContextSpecificTag(TAG_POWER_SAVINGS_CONTROL), + tlvReader + ) + ) + } else { + Optional.empty() + } + val heatingSourceControl = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL))) { + Optional.of( + DemandResponseLoadControlClusterHeatingSourceControlStruct.fromTlv( + ContextSpecificTag(TAG_HEATING_SOURCE_CONTROL), + tlvReader + ) + ) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return DemandResponseLoadControlClusterLoadControlEventTransitionStruct(duration, control, temperatureControl, averageLoadControl, dutyCycleControl, powerSavingsControl, heatingSourceControl) + return DemandResponseLoadControlClusterLoadControlEventTransitionStruct( + duration, + control, + temperatureControl, + averageLoadControl, + dutyCycleControl, + powerSavingsControl, + heatingSourceControl + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlProgramStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlProgramStruct.kt index 13d1024fd276c0..fd21d4d07fb729 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlProgramStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlProgramStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -72,32 +70,44 @@ class DemandResponseLoadControlClusterLoadControlProgramStruct( private const val TAG_RANDOM_START_MINUTES = 3 private const val TAG_RANDOM_DURATION_MINUTES = 4 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DemandResponseLoadControlClusterLoadControlProgramStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): DemandResponseLoadControlClusterLoadControlProgramStruct { tlvReader.enterStructure(tlvTag) val programID = tlvReader.getByteArray(ContextSpecificTag(TAG_PROGRAM_I_D)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) - val enrollmentGroup = if (!tlvReader.isNull()) { - tlvReader.getUByte(ContextSpecificTag(TAG_ENROLLMENT_GROUP)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ENROLLMENT_GROUP)) - null - } - val randomStartMinutes = if (!tlvReader.isNull()) { - tlvReader.getUByte(ContextSpecificTag(TAG_RANDOM_START_MINUTES)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_RANDOM_START_MINUTES)) - null - } - val randomDurationMinutes = if (!tlvReader.isNull()) { - tlvReader.getUByte(ContextSpecificTag(TAG_RANDOM_DURATION_MINUTES)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_RANDOM_DURATION_MINUTES)) - null - } - + val enrollmentGroup = + if (!tlvReader.isNull()) { + tlvReader.getUByte(ContextSpecificTag(TAG_ENROLLMENT_GROUP)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ENROLLMENT_GROUP)) + null + } + val randomStartMinutes = + if (!tlvReader.isNull()) { + tlvReader.getUByte(ContextSpecificTag(TAG_RANDOM_START_MINUTES)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_RANDOM_START_MINUTES)) + null + } + val randomDurationMinutes = + if (!tlvReader.isNull()) { + tlvReader.getUByte(ContextSpecificTag(TAG_RANDOM_DURATION_MINUTES)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_RANDOM_DURATION_MINUTES)) + null + } + tlvReader.exitContainer() - return DemandResponseLoadControlClusterLoadControlProgramStruct(programID, name, enrollmentGroup, randomStartMinutes, randomDurationMinutes) + return DemandResponseLoadControlClusterLoadControlProgramStruct( + programID, + name, + enrollmentGroup, + randomStartMinutes, + randomDurationMinutes + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterPowerSavingsControlStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterPowerSavingsControlStruct.kt index bc09b7356da92e..363970d31ad65a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterPowerSavingsControlStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterPowerSavingsControlStruct.kt @@ -16,17 +16,13 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DemandResponseLoadControlClusterPowerSavingsControlStruct( - val powerSavings: UByte -) { +class DemandResponseLoadControlClusterPowerSavingsControlStruct(val powerSavings: UByte) { override fun toString(): String = buildString { append("DemandResponseLoadControlClusterPowerSavingsControlStruct {\n") append("\tpowerSavings : $powerSavings\n") @@ -44,10 +40,13 @@ class DemandResponseLoadControlClusterPowerSavingsControlStruct( companion object { private const val TAG_POWER_SAVINGS = 0 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DemandResponseLoadControlClusterPowerSavingsControlStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): DemandResponseLoadControlClusterPowerSavingsControlStruct { tlvReader.enterStructure(tlvTag) val powerSavings = tlvReader.getUByte(ContextSpecificTag(TAG_POWER_SAVINGS)) - + tlvReader.exitContainer() return DemandResponseLoadControlClusterPowerSavingsControlStruct(powerSavings) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterTemperatureControlStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterTemperatureControlStruct.kt index bb773fab696733..89d78db74606f3 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterTemperatureControlStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterTemperatureControlStruct.kt @@ -18,7 +18,6 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -44,33 +43,33 @@ class DemandResponseLoadControlClusterTemperatureControlStruct( startStructure(tlvTag) if (coolingTempOffset != null) { if (coolingTempOffset.isPresent) { - val optcoolingTempOffset = coolingTempOffset.get() - put(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET), optcoolingTempOffset) - } + val optcoolingTempOffset = coolingTempOffset.get() + put(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET), optcoolingTempOffset) + } } else { putNull(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET)) } if (heatingtTempOffset != null) { if (heatingtTempOffset.isPresent) { - val optheatingtTempOffset = heatingtTempOffset.get() - put(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET), optheatingtTempOffset) - } + val optheatingtTempOffset = heatingtTempOffset.get() + put(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET), optheatingtTempOffset) + } } else { putNull(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET)) } if (coolingTempSetpoint != null) { if (coolingTempSetpoint.isPresent) { - val optcoolingTempSetpoint = coolingTempSetpoint.get() - put(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT), optcoolingTempSetpoint) - } + val optcoolingTempSetpoint = coolingTempSetpoint.get() + put(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT), optcoolingTempSetpoint) + } } else { putNull(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT)) } if (heatingTempSetpoint != null) { if (heatingTempSetpoint.isPresent) { - val optheatingTempSetpoint = heatingTempSetpoint.get() - put(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT), optheatingTempSetpoint) - } + val optheatingTempSetpoint = heatingTempSetpoint.get() + put(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT), optheatingTempSetpoint) + } } else { putNull(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT)) } @@ -84,52 +83,64 @@ class DemandResponseLoadControlClusterTemperatureControlStruct( private const val TAG_COOLING_TEMP_SETPOINT = 2 private const val TAG_HEATING_TEMP_SETPOINT = 3 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DemandResponseLoadControlClusterTemperatureControlStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): DemandResponseLoadControlClusterTemperatureControlStruct { tlvReader.enterStructure(tlvTag) - val coolingTempOffset = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET)) - null - } - val heatingtTempOffset = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET)) - null - } - val coolingTempSetpoint = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT))) { - Optional.of(tlvReader.getShort(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT)) - null - } - val heatingTempSetpoint = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT))) { - Optional.of(tlvReader.getShort(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT)) - null - } - + val coolingTempOffset = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_COOLING_TEMP_OFFSET)) + null + } + val heatingtTempOffset = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_HEATINGT_TEMP_OFFSET)) + null + } + val coolingTempSetpoint = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT))) { + Optional.of(tlvReader.getShort(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_COOLING_TEMP_SETPOINT)) + null + } + val heatingTempSetpoint = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT))) { + Optional.of(tlvReader.getShort(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_HEATING_TEMP_SETPOINT)) + null + } + tlvReader.exitContainer() - return DemandResponseLoadControlClusterTemperatureControlStruct(coolingTempOffset, heatingtTempOffset, coolingTempSetpoint, heatingTempSetpoint) + return DemandResponseLoadControlClusterTemperatureControlStruct( + coolingTempOffset, + heatingtTempOffset, + coolingTempSetpoint, + heatingTempSetpoint + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterDeviceTypeStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterDeviceTypeStruct.kt index c240984464862d..b7b19082af7379 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterDeviceTypeStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterDeviceTypeStruct.kt @@ -16,18 +16,13 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DescriptorClusterDeviceTypeStruct( - val deviceType: UInt, - val revision: UShort -) { +class DescriptorClusterDeviceTypeStruct(val deviceType: UInt, val revision: UShort) { override fun toString(): String = buildString { append("DescriptorClusterDeviceTypeStruct {\n") append("\tdeviceType : $deviceType\n") @@ -52,7 +47,7 @@ class DescriptorClusterDeviceTypeStruct( tlvReader.enterStructure(tlvTag) val deviceType = tlvReader.getUInt(ContextSpecificTag(TAG_DEVICE_TYPE)) val revision = tlvReader.getUShort(ContextSpecificTag(TAG_REVISION)) - + tlvReader.exitContainer() return DescriptorClusterDeviceTypeStruct(deviceType, revision) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterSemanticTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterSemanticTagStruct.kt index d8ba618f34c23c..2dd5869528c27f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterSemanticTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterSemanticTagStruct.kt @@ -18,7 +18,6 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -51,9 +50,9 @@ class DescriptorClusterSemanticTagStruct( put(ContextSpecificTag(TAG_TAG), tag) if (label != null) { if (label.isPresent) { - val optlabel = label.get() - put(ContextSpecificTag(TAG_LABEL), optlabel) - } + val optlabel = label.get() + put(ContextSpecificTag(TAG_LABEL), optlabel) + } } else { putNull(ContextSpecificTag(TAG_LABEL)) } @@ -69,25 +68,27 @@ class DescriptorClusterSemanticTagStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DescriptorClusterSemanticTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_MFG_CODE)) - null - } + val mfgCode = + if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_MFG_CODE)) + null + } val namespaceID = tlvReader.getUInt(ContextSpecificTag(TAG_NAMESPACE_I_D)) val tag = tlvReader.getUInt(ContextSpecificTag(TAG_TAG)) - val label = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_LABEL))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_LABEL)) - null - } - + val label = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_LABEL))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_LABEL)) + null + } + tlvReader.exitContainer() return DescriptorClusterSemanticTagStruct(mfgCode, namespaceID, tag, label) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeOptionStruct.kt index 74f734677635f0..d35df126ab13bd 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeOptionStruct.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -60,14 +59,15 @@ class DishwasherModeClusterModeOptionStruct( tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUByte(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(DishwasherModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(DishwasherModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return DishwasherModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeTagStruct.kt index d5d79214a7d785..7e3d6bbe24ecdb 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeTagStruct.kt @@ -18,16 +18,12 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DishwasherModeClusterModeTagStruct( - val mfgCode: Optional, - val value: UInt -) { +class DishwasherModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { override fun toString(): String = buildString { append("DishwasherModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") @@ -53,13 +49,14 @@ class DishwasherModeClusterModeTagStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): DishwasherModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return DishwasherModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DoorLockClusterCredentialStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DoorLockClusterCredentialStruct.kt index 7eb1fdca42a73b..4ee0122fa76b0c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DoorLockClusterCredentialStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DoorLockClusterCredentialStruct.kt @@ -16,18 +16,13 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class DoorLockClusterCredentialStruct( - val credentialType: UInt, - val credentialIndex: UShort -) { +class DoorLockClusterCredentialStruct(val credentialType: UInt, val credentialIndex: UShort) { override fun toString(): String = buildString { append("DoorLockClusterCredentialStruct {\n") append("\tcredentialType : $credentialType\n") @@ -52,7 +47,7 @@ class DoorLockClusterCredentialStruct( tlvReader.enterStructure(tlvTag) val credentialType = tlvReader.getUInt(ContextSpecificTag(TAG_CREDENTIAL_TYPE)) val credentialIndex = tlvReader.getUShort(ContextSpecificTag(TAG_CREDENTIAL_INDEX)) - + tlvReader.exitContainer() return DoorLockClusterCredentialStruct(credentialType, credentialIndex) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/FixedLabelClusterLabelStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/FixedLabelClusterLabelStruct.kt index c864789e98eff0..07a231555999fa 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/FixedLabelClusterLabelStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/FixedLabelClusterLabelStruct.kt @@ -16,18 +16,13 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class FixedLabelClusterLabelStruct( - val label: String, - val value: String -) { +class FixedLabelClusterLabelStruct(val label: String, val value: String) { override fun toString(): String = buildString { append("FixedLabelClusterLabelStruct {\n") append("\tlabel : $label\n") @@ -52,7 +47,7 @@ class FixedLabelClusterLabelStruct( tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val value = tlvReader.getString(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return FixedLabelClusterLabelStruct(label, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralCommissioningClusterBasicCommissioningInfo.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralCommissioningClusterBasicCommissioningInfo.kt index df593f15055f73..e8638055916ae0 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralCommissioningClusterBasicCommissioningInfo.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralCommissioningClusterBasicCommissioningInfo.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -48,14 +46,22 @@ class GeneralCommissioningClusterBasicCommissioningInfo( private const val TAG_FAIL_SAFE_EXPIRY_LENGTH_SECONDS = 0 private const val TAG_MAX_CUMULATIVE_FAILSAFE_SECONDS = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GeneralCommissioningClusterBasicCommissioningInfo { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): GeneralCommissioningClusterBasicCommissioningInfo { tlvReader.enterStructure(tlvTag) - val failSafeExpiryLengthSeconds = tlvReader.getUShort(ContextSpecificTag(TAG_FAIL_SAFE_EXPIRY_LENGTH_SECONDS)) - val maxCumulativeFailsafeSeconds = tlvReader.getUShort(ContextSpecificTag(TAG_MAX_CUMULATIVE_FAILSAFE_SECONDS)) - + val failSafeExpiryLengthSeconds = + tlvReader.getUShort(ContextSpecificTag(TAG_FAIL_SAFE_EXPIRY_LENGTH_SECONDS)) + val maxCumulativeFailsafeSeconds = + tlvReader.getUShort(ContextSpecificTag(TAG_MAX_CUMULATIVE_FAILSAFE_SECONDS)) + tlvReader.exitContainer() - return GeneralCommissioningClusterBasicCommissioningInfo(failSafeExpiryLengthSeconds, maxCumulativeFailsafeSeconds) + return GeneralCommissioningClusterBasicCommissioningInfo( + failSafeExpiryLengthSeconds, + maxCumulativeFailsafeSeconds + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralDiagnosticsClusterNetworkInterface.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralDiagnosticsClusterNetworkInterface.kt index 57a1453b6954d5..900e71adea7c6d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralDiagnosticsClusterNetworkInterface.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralDiagnosticsClusterNetworkInterface.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -53,12 +52,18 @@ class GeneralDiagnosticsClusterNetworkInterface( put(ContextSpecificTag(TAG_NAME), name) put(ContextSpecificTag(TAG_IS_OPERATIONAL), isOperational) if (offPremiseServicesReachableIPv4 != null) { - put(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4), offPremiseServicesReachableIPv4) + put( + ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4), + offPremiseServicesReachableIPv4 + ) } else { putNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) } if (offPremiseServicesReachableIPv6 != null) { - put(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6), offPremiseServicesReachableIPv6) + put( + ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6), + offPremiseServicesReachableIPv6 + ) } else { putNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) } @@ -92,38 +97,51 @@ class GeneralDiagnosticsClusterNetworkInterface( tlvReader.enterStructure(tlvTag) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) val isOperational = tlvReader.getBoolean(ContextSpecificTag(TAG_IS_OPERATIONAL)) - val offPremiseServicesReachableIPv4 = if (!tlvReader.isNull()) { - tlvReader.getBoolean(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) - null - } - val offPremiseServicesReachableIPv6 = if (!tlvReader.isNull()) { - tlvReader.getBoolean(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) - null - } + val offPremiseServicesReachableIPv4 = + if (!tlvReader.isNull()) { + tlvReader.getBoolean(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV4)) + null + } + val offPremiseServicesReachableIPv6 = + if (!tlvReader.isNull()) { + tlvReader.getBoolean(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_OFF_PREMISE_SERVICES_REACHABLE_I_PV6)) + null + } val hardwareAddress = tlvReader.getByteArray(ContextSpecificTag(TAG_HARDWARE_ADDRESS)) - val IPv4Addresses = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_I_PV4_ADDRESSES)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getByteArray(AnonymousTag)) - } - tlvReader.exitContainer() - } - val IPv6Addresses = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_I_PV6_ADDRESSES)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getByteArray(AnonymousTag)) - } - tlvReader.exitContainer() - } + val IPv4Addresses = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_I_PV4_ADDRESSES)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getByteArray(AnonymousTag)) + } + tlvReader.exitContainer() + } + val IPv6Addresses = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_I_PV6_ADDRESSES)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getByteArray(AnonymousTag)) + } + tlvReader.exitContainer() + } val type = tlvReader.getUInt(ContextSpecificTag(TAG_TYPE)) - + tlvReader.exitContainer() - return GeneralDiagnosticsClusterNetworkInterface(name, isOperational, offPremiseServicesReachableIPv4, offPremiseServicesReachableIPv6, hardwareAddress, IPv4Addresses, IPv6Addresses, type) + return GeneralDiagnosticsClusterNetworkInterface( + name, + isOperational, + offPremiseServicesReachableIPv4, + offPremiseServicesReachableIPv6, + hardwareAddress, + IPv4Addresses, + IPv6Addresses, + type + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupInfoMapStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupInfoMapStruct.kt index 51efd104263ee6..cfa9eb7e88060c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupInfoMapStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupInfoMapStruct.kt @@ -66,20 +66,22 @@ class GroupKeyManagementClusterGroupInfoMapStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GroupKeyManagementClusterGroupInfoMapStruct { tlvReader.enterStructure(tlvTag) val groupId = tlvReader.getUShort(ContextSpecificTag(TAG_GROUP_ID)) - val endpoints = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ENDPOINTS)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUShort(AnonymousTag)) - } - tlvReader.exitContainer() - } - val groupName = if (tlvReader.isNextTag(ContextSpecificTag(TAG_GROUP_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_GROUP_NAME))) - } else { - Optional.empty() - } + val endpoints = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ENDPOINTS)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUShort(AnonymousTag)) + } + tlvReader.exitContainer() + } + val groupName = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_GROUP_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_GROUP_NAME))) + } else { + Optional.empty() + } val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return GroupKeyManagementClusterGroupInfoMapStruct(groupId, endpoints, groupName, fabricIndex) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeyMapStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeyMapStruct.kt index 18a8e963c9f2d3..96460161128bbe 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeyMapStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeyMapStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -57,7 +55,7 @@ class GroupKeyManagementClusterGroupKeyMapStruct( val groupId = tlvReader.getUShort(ContextSpecificTag(TAG_GROUP_ID)) val groupKeySetID = tlvReader.getUShort(ContextSpecificTag(TAG_GROUP_KEY_SET_I_D)) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return GroupKeyManagementClusterGroupKeyMapStruct(groupId, groupKeySetID, fabricIndex) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeySetStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeySetStruct.kt index 5b3501c55b8d9c..2c8d334a4cffd9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeySetStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeySetStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -99,47 +97,63 @@ class GroupKeyManagementClusterGroupKeySetStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): GroupKeyManagementClusterGroupKeySetStruct { tlvReader.enterStructure(tlvTag) val groupKeySetID = tlvReader.getUShort(ContextSpecificTag(TAG_GROUP_KEY_SET_I_D)) - val groupKeySecurityPolicy = tlvReader.getUInt(ContextSpecificTag(TAG_GROUP_KEY_SECURITY_POLICY)) - val epochKey0 = if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY0)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY0)) - null - } - val epochStartTime0 = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME0)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME0)) - null - } - val epochKey1 = if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY1)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY1)) - null - } - val epochStartTime1 = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME1)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME1)) - null - } - val epochKey2 = if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY2)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY2)) - null - } - val epochStartTime2 = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME2)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME2)) - null - } - + val groupKeySecurityPolicy = + tlvReader.getUInt(ContextSpecificTag(TAG_GROUP_KEY_SECURITY_POLICY)) + val epochKey0 = + if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY0)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY0)) + null + } + val epochStartTime0 = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME0)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME0)) + null + } + val epochKey1 = + if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY1)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY1)) + null + } + val epochStartTime1 = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME1)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME1)) + null + } + val epochKey2 = + if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_EPOCH_KEY2)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_KEY2)) + null + } + val epochStartTime2 = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_EPOCH_START_TIME2)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_EPOCH_START_TIME2)) + null + } + tlvReader.exitContainer() - return GroupKeyManagementClusterGroupKeySetStruct(groupKeySetID, groupKeySecurityPolicy, epochKey0, epochStartTime0, epochKey1, epochStartTime1, epochKey2, epochStartTime2) + return GroupKeyManagementClusterGroupKeySetStruct( + groupKeySetID, + groupKeySecurityPolicy, + epochKey0, + epochStartTime0, + epochKey1, + epochStartTime1, + epochKey2, + epochStartTime2 + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/HepaFilterMonitoringClusterReplacementProductStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/HepaFilterMonitoringClusterReplacementProductStruct.kt index d21a55b22427ca..32ce0e6298f485 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/HepaFilterMonitoringClusterReplacementProductStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/HepaFilterMonitoringClusterReplacementProductStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -48,14 +46,21 @@ class HepaFilterMonitoringClusterReplacementProductStruct( private const val TAG_PRODUCT_IDENTIFIER_TYPE = 0 private const val TAG_PRODUCT_IDENTIFIER_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): HepaFilterMonitoringClusterReplacementProductStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): HepaFilterMonitoringClusterReplacementProductStruct { tlvReader.enterStructure(tlvTag) val productIdentifierType = tlvReader.getUInt(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_TYPE)) - val productIdentifierValue = tlvReader.getString(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_VALUE)) - + val productIdentifierValue = + tlvReader.getString(ContextSpecificTag(TAG_PRODUCT_IDENTIFIER_VALUE)) + tlvReader.exitContainer() - return HepaFilterMonitoringClusterReplacementProductStruct(productIdentifierType, productIdentifierValue) + return HepaFilterMonitoringClusterReplacementProductStruct( + productIdentifierType, + productIdentifierValue + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/IcdManagementClusterMonitoringRegistrationStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/IcdManagementClusterMonitoringRegistrationStruct.kt index 2905a4fb9615f2..2a7a56c9a650dd 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/IcdManagementClusterMonitoringRegistrationStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/IcdManagementClusterMonitoringRegistrationStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -52,15 +50,22 @@ class IcdManagementClusterMonitoringRegistrationStruct( private const val TAG_MONITORED_SUBJECT = 2 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): IcdManagementClusterMonitoringRegistrationStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): IcdManagementClusterMonitoringRegistrationStruct { tlvReader.enterStructure(tlvTag) val checkInNodeID = tlvReader.getULong(ContextSpecificTag(TAG_CHECK_IN_NODE_I_D)) val monitoredSubject = tlvReader.getULong(ContextSpecificTag(TAG_MONITORED_SUBJECT)) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return IcdManagementClusterMonitoringRegistrationStruct(checkInNodeID, monitoredSubject, fabricIndex) + return IcdManagementClusterMonitoringRegistrationStruct( + checkInNodeID, + monitoredSubject, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeOptionStruct.kt index f20bc01f62c452..08988b2b2dfa27 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeOptionStruct.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -60,14 +59,15 @@ class LaundryWasherModeClusterModeOptionStruct( tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUByte(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(LaundryWasherModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(LaundryWasherModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return LaundryWasherModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeTagStruct.kt index dfbf0732fee06d..0284a239b9b610 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeTagStruct.kt @@ -18,16 +18,12 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class LaundryWasherModeClusterModeTagStruct( - val mfgCode: Optional, - val value: UInt -) { +class LaundryWasherModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { override fun toString(): String = buildString { append("LaundryWasherModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") @@ -53,13 +49,14 @@ class LaundryWasherModeClusterModeTagStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): LaundryWasherModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return LaundryWasherModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaInputClusterInputInfoStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaInputClusterInputInfoStruct.kt index 272ab25a86b29c..ef3a028b680b8a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaInputClusterInputInfoStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaInputClusterInputInfoStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -62,7 +60,7 @@ class MediaInputClusterInputInfoStruct( val inputType = tlvReader.getUInt(ContextSpecificTag(TAG_INPUT_TYPE)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) val description = tlvReader.getString(ContextSpecificTag(TAG_DESCRIPTION)) - + tlvReader.exitContainer() return MediaInputClusterInputInfoStruct(index, inputType, name, description) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaPlaybackClusterPlaybackPositionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaPlaybackClusterPlaybackPositionStruct.kt index b25929ec3fe3a9..3052f1984c2412 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaPlaybackClusterPlaybackPositionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaPlaybackClusterPlaybackPositionStruct.kt @@ -16,18 +16,13 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class MediaPlaybackClusterPlaybackPositionStruct( - val updatedAt: ULong, - val position: ULong? -) { +class MediaPlaybackClusterPlaybackPositionStruct(val updatedAt: ULong, val position: ULong?) { override fun toString(): String = buildString { append("MediaPlaybackClusterPlaybackPositionStruct {\n") append("\tupdatedAt : $updatedAt\n") @@ -55,13 +50,14 @@ class MediaPlaybackClusterPlaybackPositionStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): MediaPlaybackClusterPlaybackPositionStruct { tlvReader.enterStructure(tlvTag) val updatedAt = tlvReader.getULong(ContextSpecificTag(TAG_UPDATED_AT)) - val position = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_POSITION)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_POSITION)) - null - } - + val position = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_POSITION)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_POSITION)) + null + } + tlvReader.exitContainer() return MediaPlaybackClusterPlaybackPositionStruct(updatedAt, position) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeOptionStruct.kt index 0ac1f6bb84beb2..481ae34118a03b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeOptionStruct.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -60,14 +59,15 @@ class MicrowaveOvenModeClusterModeOptionStruct( tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUByte(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(MicrowaveOvenModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(MicrowaveOvenModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return MicrowaveOvenModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeTagStruct.kt index 61d1101d917ed6..d0d088a1d77b42 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeTagStruct.kt @@ -18,16 +18,12 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class MicrowaveOvenModeClusterModeTagStruct( - val mfgCode: Optional, - val value: UInt -) { +class MicrowaveOvenModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { override fun toString(): String = buildString { append("MicrowaveOvenModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") @@ -53,13 +49,14 @@ class MicrowaveOvenModeClusterModeTagStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): MicrowaveOvenModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return MicrowaveOvenModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterModeOptionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterModeOptionStruct.kt index c0d5b00da39aac..8cb331e77ade86 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterModeOptionStruct.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -60,14 +59,15 @@ class ModeSelectClusterModeOptionStruct( tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUByte(ContextSpecificTag(TAG_MODE)) - val semanticTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_SEMANTIC_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(ModeSelectClusterSemanticTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val semanticTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_SEMANTIC_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(ModeSelectClusterSemanticTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ModeSelectClusterModeOptionStruct(label, mode, semanticTags) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterSemanticTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterSemanticTagStruct.kt index 94004e17f17de6..5b6d1ae0fb71f0 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterSemanticTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterSemanticTagStruct.kt @@ -16,18 +16,13 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ModeSelectClusterSemanticTagStruct( - val mfgCode: UShort, - val value: UInt -) { +class ModeSelectClusterSemanticTagStruct(val mfgCode: UShort, val value: UInt) { override fun toString(): String = buildString { append("ModeSelectClusterSemanticTagStruct {\n") append("\tmfgCode : $mfgCode\n") @@ -52,7 +47,7 @@ class ModeSelectClusterSemanticTagStruct( tlvReader.enterStructure(tlvTag) val mfgCode = tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE)) val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return ModeSelectClusterSemanticTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterNetworkInfoStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterNetworkInfoStruct.kt index 970b531cc9e313..245061cc19fc46 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterNetworkInfoStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterNetworkInfoStruct.kt @@ -18,7 +18,6 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -46,17 +45,17 @@ class NetworkCommissioningClusterNetworkInfoStruct( put(ContextSpecificTag(TAG_CONNECTED), connected) if (networkIdentifier != null) { if (networkIdentifier.isPresent) { - val optnetworkIdentifier = networkIdentifier.get() - put(ContextSpecificTag(TAG_NETWORK_IDENTIFIER), optnetworkIdentifier) - } + val optnetworkIdentifier = networkIdentifier.get() + put(ContextSpecificTag(TAG_NETWORK_IDENTIFIER), optnetworkIdentifier) + } } else { putNull(ContextSpecificTag(TAG_NETWORK_IDENTIFIER)) } if (clientIdentifier != null) { if (clientIdentifier.isPresent) { - val optclientIdentifier = clientIdentifier.get() - put(ContextSpecificTag(TAG_CLIENT_IDENTIFIER), optclientIdentifier) - } + val optclientIdentifier = clientIdentifier.get() + put(ContextSpecificTag(TAG_CLIENT_IDENTIFIER), optclientIdentifier) + } } else { putNull(ContextSpecificTag(TAG_CLIENT_IDENTIFIER)) } @@ -74,30 +73,37 @@ class NetworkCommissioningClusterNetworkInfoStruct( tlvReader.enterStructure(tlvTag) val networkID = tlvReader.getByteArray(ContextSpecificTag(TAG_NETWORK_I_D)) val connected = tlvReader.getBoolean(ContextSpecificTag(TAG_CONNECTED)) - val networkIdentifier = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NETWORK_IDENTIFIER))) { - Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_NETWORK_IDENTIFIER))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NETWORK_IDENTIFIER)) - null - } - val clientIdentifier = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_CLIENT_IDENTIFIER))) { - Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_CLIENT_IDENTIFIER))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_CLIENT_IDENTIFIER)) - null - } - + val networkIdentifier = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NETWORK_IDENTIFIER))) { + Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_NETWORK_IDENTIFIER))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NETWORK_IDENTIFIER)) + null + } + val clientIdentifier = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_CLIENT_IDENTIFIER))) { + Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_CLIENT_IDENTIFIER))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_CLIENT_IDENTIFIER)) + null + } + tlvReader.exitContainer() - return NetworkCommissioningClusterNetworkInfoStruct(networkID, connected, networkIdentifier, clientIdentifier) + return NetworkCommissioningClusterNetworkInfoStruct( + networkID, + connected, + networkIdentifier, + clientIdentifier + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterThreadInterfaceScanResultStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterThreadInterfaceScanResultStruct.kt index cbef13e65cf043..5057fa34bc1cbe 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterThreadInterfaceScanResultStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterThreadInterfaceScanResultStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -72,7 +70,10 @@ class NetworkCommissioningClusterThreadInterfaceScanResultStruct( private const val TAG_RSSI = 6 private const val TAG_LQI = 7 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): NetworkCommissioningClusterThreadInterfaceScanResultStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): NetworkCommissioningClusterThreadInterfaceScanResultStruct { tlvReader.enterStructure(tlvTag) val panId = tlvReader.getUShort(ContextSpecificTag(TAG_PAN_ID)) val extendedPanId = tlvReader.getULong(ContextSpecificTag(TAG_EXTENDED_PAN_ID)) @@ -82,10 +83,19 @@ class NetworkCommissioningClusterThreadInterfaceScanResultStruct( val extendedAddress = tlvReader.getByteArray(ContextSpecificTag(TAG_EXTENDED_ADDRESS)) val rssi = tlvReader.getByte(ContextSpecificTag(TAG_RSSI)) val lqi = tlvReader.getUByte(ContextSpecificTag(TAG_LQI)) - + tlvReader.exitContainer() - return NetworkCommissioningClusterThreadInterfaceScanResultStruct(panId, extendedPanId, networkName, channel, version, extendedAddress, rssi, lqi) + return NetworkCommissioningClusterThreadInterfaceScanResultStruct( + panId, + extendedPanId, + networkName, + channel, + version, + extendedAddress, + rssi, + lqi + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterWiFiInterfaceScanResultStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterWiFiInterfaceScanResultStruct.kt index 8952c0c541035b..3d2c8ea65a32bd 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterWiFiInterfaceScanResultStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterWiFiInterfaceScanResultStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -64,7 +62,10 @@ class NetworkCommissioningClusterWiFiInterfaceScanResultStruct( private const val TAG_WI_FI_BAND = 4 private const val TAG_RSSI = 5 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): NetworkCommissioningClusterWiFiInterfaceScanResultStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): NetworkCommissioningClusterWiFiInterfaceScanResultStruct { tlvReader.enterStructure(tlvTag) val security = tlvReader.getUInt(ContextSpecificTag(TAG_SECURITY)) val ssid = tlvReader.getByteArray(ContextSpecificTag(TAG_SSID)) @@ -72,10 +73,17 @@ class NetworkCommissioningClusterWiFiInterfaceScanResultStruct( val channel = tlvReader.getUShort(ContextSpecificTag(TAG_CHANNEL)) val wiFiBand = tlvReader.getUInt(ContextSpecificTag(TAG_WI_FI_BAND)) val rssi = tlvReader.getByte(ContextSpecificTag(TAG_RSSI)) - + tlvReader.exitContainer() - return NetworkCommissioningClusterWiFiInterfaceScanResultStruct(security, ssid, bssid, channel, wiFiBand, rssi) + return NetworkCommissioningClusterWiFiInterfaceScanResultStruct( + security, + ssid, + bssid, + channel, + wiFiBand, + rssi + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterFabricDescriptorStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterFabricDescriptorStruct.kt index 3b2befc5b6c63c..66de75d6e3efc1 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterFabricDescriptorStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterFabricDescriptorStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -64,7 +62,10 @@ class OperationalCredentialsClusterFabricDescriptorStruct( private const val TAG_LABEL = 5 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalCredentialsClusterFabricDescriptorStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): OperationalCredentialsClusterFabricDescriptorStruct { tlvReader.enterStructure(tlvTag) val rootPublicKey = tlvReader.getByteArray(ContextSpecificTag(TAG_ROOT_PUBLIC_KEY)) val vendorID = tlvReader.getUShort(ContextSpecificTag(TAG_VENDOR_I_D)) @@ -72,10 +73,17 @@ class OperationalCredentialsClusterFabricDescriptorStruct( val nodeID = tlvReader.getULong(ContextSpecificTag(TAG_NODE_I_D)) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return OperationalCredentialsClusterFabricDescriptorStruct(rootPublicKey, vendorID, fabricID, nodeID, label, fabricIndex) + return OperationalCredentialsClusterFabricDescriptorStruct( + rootPublicKey, + vendorID, + fabricID, + nodeID, + label, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterNOCStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterNOCStruct.kt index bf0c8218b4edfa..ab86611164d93d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterNOCStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterNOCStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -59,14 +57,15 @@ class OperationalCredentialsClusterNOCStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalCredentialsClusterNOCStruct { tlvReader.enterStructure(tlvTag) val noc = tlvReader.getByteArray(ContextSpecificTag(TAG_NOC)) - val icac = if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_ICAC)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_ICAC)) - null - } + val icac = + if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_ICAC)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_ICAC)) + null + } val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() return OperationalCredentialsClusterNOCStruct(noc, icac, fabricIndex) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterErrorStateStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterErrorStateStruct.kt index e62f02273eade4..f49646d015d186 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterErrorStateStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterErrorStateStruct.kt @@ -18,7 +18,6 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -61,20 +60,26 @@ class OperationalStateClusterErrorStateStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalStateClusterErrorStateStruct { tlvReader.enterStructure(tlvTag) val errorStateID = tlvReader.getUInt(ContextSpecificTag(TAG_ERROR_STATE_I_D)) - val errorStateLabel = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) - } else { - Optional.empty() - } - val errorStateDetails = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) - } else { - Optional.empty() - } - + val errorStateLabel = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) + } else { + Optional.empty() + } + val errorStateDetails = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return OperationalStateClusterErrorStateStruct(errorStateID, errorStateLabel, errorStateDetails) + return OperationalStateClusterErrorStateStruct( + errorStateID, + errorStateLabel, + errorStateDetails + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterOperationalStateStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterOperationalStateStruct.kt index a455a8aa3c0827..238035d38a060e 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterOperationalStateStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterOperationalStateStruct.kt @@ -18,7 +18,6 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -54,15 +53,19 @@ class OperationalStateClusterOperationalStateStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OperationalStateClusterOperationalStateStruct { tlvReader.enterStructure(tlvTag) val operationalStateID = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATIONAL_STATE_I_D)) - val operationalStateLabel = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) - } else { - Optional.empty() - } - + val operationalStateLabel = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return OperationalStateClusterOperationalStateStruct(operationalStateID, operationalStateLabel) + return OperationalStateClusterOperationalStateStruct( + operationalStateID, + operationalStateLabel + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OtaSoftwareUpdateRequestorClusterProviderLocation.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OtaSoftwareUpdateRequestorClusterProviderLocation.kt index b070a79f2b6344..1fe882a3da1674 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OtaSoftwareUpdateRequestorClusterProviderLocation.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OtaSoftwareUpdateRequestorClusterProviderLocation.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -52,15 +50,22 @@ class OtaSoftwareUpdateRequestorClusterProviderLocation( private const val TAG_ENDPOINT = 2 private const val TAG_FABRIC_INDEX = 254 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OtaSoftwareUpdateRequestorClusterProviderLocation { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): OtaSoftwareUpdateRequestorClusterProviderLocation { tlvReader.enterStructure(tlvTag) val providerNodeID = tlvReader.getULong(ContextSpecificTag(TAG_PROVIDER_NODE_I_D)) val endpoint = tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT)) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return OtaSoftwareUpdateRequestorClusterProviderLocation(providerNodeID, endpoint, fabricIndex) + return OtaSoftwareUpdateRequestorClusterProviderLocation( + providerNodeID, + endpoint, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OvenModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OvenModeClusterModeOptionStruct.kt index a1e48e08ffa9d4..de09bc2413be77 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OvenModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OvenModeClusterModeOptionStruct.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -60,14 +59,15 @@ class OvenModeClusterModeOptionStruct( tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUByte(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(OvenModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(OvenModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return OvenModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OvenModeClusterModeTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OvenModeClusterModeTagStruct.kt index cbd5c34073ee91..f957f7073fa77a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OvenModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OvenModeClusterModeTagStruct.kt @@ -18,16 +18,12 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class OvenModeClusterModeTagStruct( - val mfgCode: Optional, - val value: UInt -) { +class OvenModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { override fun toString(): String = buildString { append("OvenModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") @@ -53,13 +49,14 @@ class OvenModeClusterModeTagStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): OvenModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return OvenModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatChargeFaultChangeType.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatChargeFaultChangeType.kt index fa7429f44d4559..b052cd4bd801ed 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatChargeFaultChangeType.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatChargeFaultChangeType.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -58,21 +57,23 @@ class PowerSourceClusterBatChargeFaultChangeType( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterBatChargeFaultChangeType { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterBatChargeFaultChangeType(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatFaultChangeType.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatFaultChangeType.kt index b0c331a29cde80..e6ed2093eea21a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatFaultChangeType.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatFaultChangeType.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -24,10 +23,7 @@ import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class PowerSourceClusterBatFaultChangeType( - val current: List, - val previous: List -) { +class PowerSourceClusterBatFaultChangeType(val current: List, val previous: List) { override fun toString(): String = buildString { append("PowerSourceClusterBatFaultChangeType {\n") append("\tcurrent : $current\n") @@ -58,21 +54,23 @@ class PowerSourceClusterBatFaultChangeType( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterBatFaultChangeType { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterBatFaultChangeType(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterWiredFaultChangeType.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterWiredFaultChangeType.kt index da2e57612ef369..e2849017a263c9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterWiredFaultChangeType.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterWiredFaultChangeType.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -24,10 +23,7 @@ import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class PowerSourceClusterWiredFaultChangeType( - val current: List, - val previous: List -) { +class PowerSourceClusterWiredFaultChangeType(val current: List, val previous: List) { override fun toString(): String = buildString { append("PowerSourceClusterWiredFaultChangeType {\n") append("\tcurrent : $current\n") @@ -58,21 +54,23 @@ class PowerSourceClusterWiredFaultChangeType( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): PowerSourceClusterWiredFaultChangeType { tlvReader.enterStructure(tlvTag) - val current = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val previous = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val current = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_CURRENT)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val previous = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_PREVIOUS)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return PowerSourceClusterWiredFaultChangeType(current, previous) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.kt index 8592bd44cd24cd..41c4276b72942a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -56,21 +55,34 @@ class RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct( private const val TAG_MODE = 1 private const val TAG_MODE_TAGS = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct { tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUByte(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add( + RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.fromTlv( + AnonymousTag, + tlvReader + ) + ) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() - return RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct(label, mode, modeTags) + return RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct( + label, + mode, + modeTags + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.kt index dd930d62e0c762..66ac75104984a2 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.kt @@ -18,7 +18,6 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -51,15 +50,19 @@ class RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct( private const val TAG_MFG_CODE = 0 private const val TAG_VALUE = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeOptionStruct.kt index 74c540f6a34d8e..b718ee935b7990 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeOptionStruct.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -60,14 +59,15 @@ class RvcCleanModeClusterModeOptionStruct( tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUByte(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(RvcCleanModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(RvcCleanModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return RvcCleanModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeTagStruct.kt index eb1e213594a3f8..b6670bdcd7b955 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeTagStruct.kt @@ -18,16 +18,12 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class RvcCleanModeClusterModeTagStruct( - val mfgCode: Optional, - val value: UInt -) { +class RvcCleanModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { override fun toString(): String = buildString { append("RvcCleanModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") @@ -53,13 +49,14 @@ class RvcCleanModeClusterModeTagStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcCleanModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return RvcCleanModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterErrorStateStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterErrorStateStruct.kt index 7bc7e36be3e24e..4907820103b662 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterErrorStateStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterErrorStateStruct.kt @@ -18,7 +18,6 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -61,20 +60,26 @@ class RvcOperationalStateClusterErrorStateStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcOperationalStateClusterErrorStateStruct { tlvReader.enterStructure(tlvTag) val errorStateID = tlvReader.getUInt(ContextSpecificTag(TAG_ERROR_STATE_I_D)) - val errorStateLabel = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) - } else { - Optional.empty() - } - val errorStateDetails = if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) - } else { - Optional.empty() - } - + val errorStateLabel = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_LABEL))) + } else { + Optional.empty() + } + val errorStateDetails = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_ERROR_STATE_DETAILS))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return RvcOperationalStateClusterErrorStateStruct(errorStateID, errorStateLabel, errorStateDetails) + return RvcOperationalStateClusterErrorStateStruct( + errorStateID, + errorStateLabel, + errorStateDetails + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterOperationalStateStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterOperationalStateStruct.kt index 103ac6dd54dd1a..1e5548ff7677a9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterOperationalStateStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterOperationalStateStruct.kt @@ -18,7 +18,6 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -51,18 +50,25 @@ class RvcOperationalStateClusterOperationalStateStruct( private const val TAG_OPERATIONAL_STATE_I_D = 0 private const val TAG_OPERATIONAL_STATE_LABEL = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcOperationalStateClusterOperationalStateStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): RvcOperationalStateClusterOperationalStateStruct { tlvReader.enterStructure(tlvTag) val operationalStateID = tlvReader.getUInt(ContextSpecificTag(TAG_OPERATIONAL_STATE_I_D)) - val operationalStateLabel = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) - } else { - Optional.empty() - } - + val operationalStateLabel = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPERATIONAL_STATE_LABEL))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return RvcOperationalStateClusterOperationalStateStruct(operationalStateID, operationalStateLabel) + return RvcOperationalStateClusterOperationalStateStruct( + operationalStateID, + operationalStateLabel + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeOptionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeOptionStruct.kt index 45cc94b4acfd79..937a0303a98b04 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeOptionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeOptionStruct.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -60,14 +59,15 @@ class RvcRunModeClusterModeOptionStruct( tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val mode = tlvReader.getUByte(ContextSpecificTag(TAG_MODE)) - val modeTags = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) - while(!tlvReader.isEndOfContainer()) { - add(RvcRunModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val modeTags = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_MODE_TAGS)) + while (!tlvReader.isEndOfContainer()) { + add(RvcRunModeClusterModeTagStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return RvcRunModeClusterModeOptionStruct(label, mode, modeTags) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeTagStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeTagStruct.kt index 1ea366f3991d4a..055336e7a1e250 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeTagStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeTagStruct.kt @@ -18,16 +18,12 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class RvcRunModeClusterModeTagStruct( - val mfgCode: Optional, - val value: UInt -) { +class RvcRunModeClusterModeTagStruct(val mfgCode: Optional, val value: UInt) { override fun toString(): String = buildString { append("RvcRunModeClusterModeTagStruct {\n") append("\tmfgCode : $mfgCode\n") @@ -53,13 +49,14 @@ class RvcRunModeClusterModeTagStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): RvcRunModeClusterModeTagStruct { tlvReader.enterStructure(tlvTag) - val mfgCode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) - } else { - Optional.empty() - } + val mfgCode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_MFG_CODE))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_MFG_CODE))) + } else { + Optional.empty() + } val value = tlvReader.getUInt(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return RvcRunModeClusterModeTagStruct(mfgCode, value) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterAttributeValuePair.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterAttributeValuePair.kt index cc333b5b429de5..df599d883e82ca 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterAttributeValuePair.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterAttributeValuePair.kt @@ -16,18 +16,13 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ScenesClusterAttributeValuePair( - val attributeID: UInt, - val attributeValue: UInt -) { +class ScenesClusterAttributeValuePair(val attributeID: UInt, val attributeValue: UInt) { override fun toString(): String = buildString { append("ScenesClusterAttributeValuePair {\n") append("\tattributeID : $attributeID\n") @@ -52,7 +47,7 @@ class ScenesClusterAttributeValuePair( tlvReader.enterStructure(tlvTag) val attributeID = tlvReader.getUInt(ContextSpecificTag(TAG_ATTRIBUTE_I_D)) val attributeValue = tlvReader.getUInt(ContextSpecificTag(TAG_ATTRIBUTE_VALUE)) - + tlvReader.exitContainer() return ScenesClusterAttributeValuePair(attributeID, attributeValue) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterExtensionFieldSet.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterExtensionFieldSet.kt index b3a2bc3a6460d0..88d60856d7460b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterExtensionFieldSet.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterExtensionFieldSet.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -55,14 +54,15 @@ class ScenesClusterExtensionFieldSet( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ScenesClusterExtensionFieldSet { tlvReader.enterStructure(tlvTag) val clusterID = tlvReader.getUInt(ContextSpecificTag(TAG_CLUSTER_I_D)) - val attributeValueList = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_ATTRIBUTE_VALUE_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(ScenesClusterAttributeValuePair.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val attributeValueList = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_ATTRIBUTE_VALUE_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(ScenesClusterAttributeValuePair.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return ScenesClusterExtensionFieldSet(clusterID, attributeValueList) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterSceneInfoStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterSceneInfoStruct.kt index e256e497a63bed..7d21ccd8c87802 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterSceneInfoStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterSceneInfoStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -72,10 +70,17 @@ class ScenesClusterSceneInfoStruct( val sceneValid = tlvReader.getBoolean(ContextSpecificTag(TAG_SCENE_VALID)) val remainingCapacity = tlvReader.getUByte(ContextSpecificTag(TAG_REMAINING_CAPACITY)) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return ScenesClusterSceneInfoStruct(sceneCount, currentScene, currentGroup, sceneValid, remainingCapacity, fabricIndex) + return ScenesClusterSceneInfoStruct( + sceneCount, + currentScene, + currentGroup, + sceneValid, + remainingCapacity, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt index e89735ef6006c0..c5f2429f4af83b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt @@ -18,7 +18,6 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -75,30 +74,40 @@ class SoftwareDiagnosticsClusterThreadMetricsStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): SoftwareDiagnosticsClusterThreadMetricsStruct { tlvReader.enterStructure(tlvTag) val id = tlvReader.getULong(ContextSpecificTag(TAG_ID)) - val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - val stackFreeCurrent = if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_FREE_CURRENT))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_STACK_FREE_CURRENT))) - } else { - Optional.empty() - } - val stackFreeMinimum = if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_FREE_MINIMUM))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_STACK_FREE_MINIMUM))) - } else { - Optional.empty() - } - val stackSize = if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_SIZE))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_STACK_SIZE))) - } else { - Optional.empty() - } - + val name = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + val stackFreeCurrent = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_FREE_CURRENT))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_STACK_FREE_CURRENT))) + } else { + Optional.empty() + } + val stackFreeMinimum = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_FREE_MINIMUM))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_STACK_FREE_MINIMUM))) + } else { + Optional.empty() + } + val stackSize = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_STACK_SIZE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_STACK_SIZE))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return SoftwareDiagnosticsClusterThreadMetricsStruct(id, name, stackFreeCurrent, stackFreeMinimum, stackSize) + return SoftwareDiagnosticsClusterThreadMetricsStruct( + id, + name, + stackFreeCurrent, + stackFreeMinimum, + stackSize + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt index 025e22644675fb..14c27a55df4da9 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt @@ -16,18 +16,13 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class TargetNavigatorClusterTargetInfoStruct( - val identifier: UByte, - val name: String -) { +class TargetNavigatorClusterTargetInfoStruct(val identifier: UByte, val name: String) { override fun toString(): String = buildString { append("TargetNavigatorClusterTargetInfoStruct {\n") append("\tidentifier : $identifier\n") @@ -52,7 +47,7 @@ class TargetNavigatorClusterTargetInfoStruct( tlvReader.enterStructure(tlvTag) val identifier = tlvReader.getUByte(ContextSpecificTag(TAG_IDENTIFIER)) val name = tlvReader.getString(ContextSpecificTag(TAG_NAME)) - + tlvReader.exitContainer() return TargetNavigatorClusterTargetInfoStruct(identifier, name) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterPresetStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterPresetStruct.kt index c6f95b4f395d86..13b6251fccdd57 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterPresetStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterPresetStruct.kt @@ -18,7 +18,6 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -54,9 +53,9 @@ class ThermostatClusterPresetStruct( put(ContextSpecificTag(TAG_PRESET_SCENARIO), presetScenario) if (name != null) { if (name.isPresent) { - val optname = name.get() - put(ContextSpecificTag(TAG_NAME), optname) - } + val optname = name.get() + put(ContextSpecificTag(TAG_NAME), optname) + } } else { putNull(ContextSpecificTag(TAG_NAME)) } @@ -87,43 +86,55 @@ class ThermostatClusterPresetStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThermostatClusterPresetStruct { tlvReader.enterStructure(tlvTag) - val presetHandle = if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_PRESET_HANDLE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PRESET_HANDLE)) - null - } + val presetHandle = + if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_PRESET_HANDLE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PRESET_HANDLE)) + null + } val presetScenario = tlvReader.getUInt(ContextSpecificTag(TAG_PRESET_SCENARIO)) - val name = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NAME)) - null - } - val coolingSetpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_SETPOINT))) { - Optional.of(tlvReader.getShort(ContextSpecificTag(TAG_COOLING_SETPOINT))) - } else { - Optional.empty() - } - val heatingSetpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SETPOINT))) { - Optional.of(tlvReader.getShort(ContextSpecificTag(TAG_HEATING_SETPOINT))) - } else { - Optional.empty() - } - val builtIn = if (!tlvReader.isNull()) { - tlvReader.getBoolean(ContextSpecificTag(TAG_BUILT_IN)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_BUILT_IN)) - null - } - + val name = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NAME)) + null + } + val coolingSetpoint = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_SETPOINT))) { + Optional.of(tlvReader.getShort(ContextSpecificTag(TAG_COOLING_SETPOINT))) + } else { + Optional.empty() + } + val heatingSetpoint = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SETPOINT))) { + Optional.of(tlvReader.getShort(ContextSpecificTag(TAG_HEATING_SETPOINT))) + } else { + Optional.empty() + } + val builtIn = + if (!tlvReader.isNull()) { + tlvReader.getBoolean(ContextSpecificTag(TAG_BUILT_IN)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_BUILT_IN)) + null + } + tlvReader.exitContainer() - return ThermostatClusterPresetStruct(presetHandle, presetScenario, name, coolingSetpoint, heatingSetpoint, builtIn) + return ThermostatClusterPresetStruct( + presetHandle, + presetScenario, + name, + coolingSetpoint, + heatingSetpoint, + builtIn + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterPresetTypeStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterPresetTypeStruct.kt index c0db862d8a7033..e1577f191eeb7f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterPresetTypeStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterPresetTypeStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -57,7 +55,7 @@ class ThermostatClusterPresetTypeStruct( val presetScenario = tlvReader.getUInt(ContextSpecificTag(TAG_PRESET_SCENARIO)) val numberOfPresets = tlvReader.getUByte(ContextSpecificTag(TAG_NUMBER_OF_PRESETS)) val presetTypeFeatures = tlvReader.getUInt(ContextSpecificTag(TAG_PRESET_TYPE_FEATURES)) - + tlvReader.exitContainer() return ThermostatClusterPresetTypeStruct(presetScenario, numberOfPresets, presetTypeFeatures) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterQueuedPresetStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterQueuedPresetStruct.kt index e581b888a88bd7..048579a1d320ff 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterQueuedPresetStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterQueuedPresetStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -58,19 +56,21 @@ class ThermostatClusterQueuedPresetStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThermostatClusterQueuedPresetStruct { tlvReader.enterStructure(tlvTag) - val presetHandle = if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_PRESET_HANDLE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_PRESET_HANDLE)) - null - } - val transitionTimestamp = if (!tlvReader.isNull()) { - tlvReader.getUInt(ContextSpecificTag(TAG_TRANSITION_TIMESTAMP)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_TRANSITION_TIMESTAMP)) - null - } - + val presetHandle = + if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_PRESET_HANDLE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_PRESET_HANDLE)) + null + } + val transitionTimestamp = + if (!tlvReader.isNull()) { + tlvReader.getUInt(ContextSpecificTag(TAG_TRANSITION_TIMESTAMP)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_TRANSITION_TIMESTAMP)) + null + } + tlvReader.exitContainer() return ThermostatClusterQueuedPresetStruct(presetHandle, transitionTimestamp) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleStruct.kt index e37d01d680a9b6..5c99d23e680293 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleStruct.kt @@ -67,9 +67,9 @@ class ThermostatClusterScheduleStruct( endArray() if (builtIn != null) { if (builtIn.isPresent) { - val optbuiltIn = builtIn.get() - put(ContextSpecificTag(TAG_BUILT_IN), optbuiltIn) - } + val optbuiltIn = builtIn.get() + put(ContextSpecificTag(TAG_BUILT_IN), optbuiltIn) + } } else { putNull(ContextSpecificTag(TAG_BUILT_IN)) } @@ -87,44 +87,56 @@ class ThermostatClusterScheduleStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThermostatClusterScheduleStruct { tlvReader.enterStructure(tlvTag) - val scheduleHandle = if (!tlvReader.isNull()) { - tlvReader.getByteArray(ContextSpecificTag(TAG_SCHEDULE_HANDLE)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_SCHEDULE_HANDLE)) - null - } + val scheduleHandle = + if (!tlvReader.isNull()) { + tlvReader.getByteArray(ContextSpecificTag(TAG_SCHEDULE_HANDLE)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_SCHEDULE_HANDLE)) + null + } val systemMode = tlvReader.getUInt(ContextSpecificTag(TAG_SYSTEM_MODE)) - val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - val presetHandle = if (tlvReader.isNextTag(ContextSpecificTag(TAG_PRESET_HANDLE))) { - Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_PRESET_HANDLE))) - } else { - Optional.empty() - } - val transitions = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_TRANSITIONS)) - while(!tlvReader.isEndOfContainer()) { - add(ThermostatClusterScheduleTransitionStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - val builtIn = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_BUILT_IN))) { - Optional.of(tlvReader.getBoolean(ContextSpecificTag(TAG_BUILT_IN))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_BUILT_IN)) - null - } - + val name = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + val presetHandle = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_PRESET_HANDLE))) { + Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_PRESET_HANDLE))) + } else { + Optional.empty() + } + val transitions = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_TRANSITIONS)) + while (!tlvReader.isEndOfContainer()) { + add(ThermostatClusterScheduleTransitionStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + val builtIn = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_BUILT_IN))) { + Optional.of(tlvReader.getBoolean(ContextSpecificTag(TAG_BUILT_IN))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_BUILT_IN)) + null + } + tlvReader.exitContainer() - return ThermostatClusterScheduleStruct(scheduleHandle, systemMode, name, presetHandle, transitions, builtIn) + return ThermostatClusterScheduleStruct( + scheduleHandle, + systemMode, + name, + presetHandle, + transitions, + builtIn + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleTransitionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleTransitionStruct.kt index 0fd72dc49b23de..a4866da57ce70b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleTransitionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleTransitionStruct.kt @@ -18,7 +18,6 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -80,30 +79,41 @@ class ThermostatClusterScheduleTransitionStruct( tlvReader.enterStructure(tlvTag) val dayOfWeek = tlvReader.getUInt(ContextSpecificTag(TAG_DAY_OF_WEEK)) val transitionTime = tlvReader.getUShort(ContextSpecificTag(TAG_TRANSITION_TIME)) - val presetHandle = if (tlvReader.isNextTag(ContextSpecificTag(TAG_PRESET_HANDLE))) { - Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_PRESET_HANDLE))) - } else { - Optional.empty() - } - val systemMode = if (tlvReader.isNextTag(ContextSpecificTag(TAG_SYSTEM_MODE))) { - Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_SYSTEM_MODE))) - } else { - Optional.empty() - } - val coolingSetpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_SETPOINT))) { - Optional.of(tlvReader.getShort(ContextSpecificTag(TAG_COOLING_SETPOINT))) - } else { - Optional.empty() - } - val heatingSetpoint = if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SETPOINT))) { - Optional.of(tlvReader.getShort(ContextSpecificTag(TAG_HEATING_SETPOINT))) - } else { - Optional.empty() - } - + val presetHandle = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_PRESET_HANDLE))) { + Optional.of(tlvReader.getByteArray(ContextSpecificTag(TAG_PRESET_HANDLE))) + } else { + Optional.empty() + } + val systemMode = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_SYSTEM_MODE))) { + Optional.of(tlvReader.getUInt(ContextSpecificTag(TAG_SYSTEM_MODE))) + } else { + Optional.empty() + } + val coolingSetpoint = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_COOLING_SETPOINT))) { + Optional.of(tlvReader.getShort(ContextSpecificTag(TAG_COOLING_SETPOINT))) + } else { + Optional.empty() + } + val heatingSetpoint = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_HEATING_SETPOINT))) { + Optional.of(tlvReader.getShort(ContextSpecificTag(TAG_HEATING_SETPOINT))) + } else { + Optional.empty() + } + tlvReader.exitContainer() - return ThermostatClusterScheduleTransitionStruct(dayOfWeek, transitionTime, presetHandle, systemMode, coolingSetpoint, heatingSetpoint) + return ThermostatClusterScheduleTransitionStruct( + dayOfWeek, + transitionTime, + presetHandle, + systemMode, + coolingSetpoint, + heatingSetpoint + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleTypeStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleTypeStruct.kt index 1358c627a7b8d9..405aa9a5bd4386 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleTypeStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleTypeStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -57,10 +55,14 @@ class ThermostatClusterScheduleTypeStruct( val systemMode = tlvReader.getUInt(ContextSpecificTag(TAG_SYSTEM_MODE)) val numberOfSchedules = tlvReader.getUByte(ContextSpecificTag(TAG_NUMBER_OF_SCHEDULES)) val scheduleTypeFeatures = tlvReader.getUInt(ContextSpecificTag(TAG_SCHEDULE_TYPE_FEATURES)) - + tlvReader.exitContainer() - return ThermostatClusterScheduleTypeStruct(systemMode, numberOfSchedules, scheduleTypeFeatures) + return ThermostatClusterScheduleTypeStruct( + systemMode, + numberOfSchedules, + scheduleTypeFeatures + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt index 4d03ed72eb9f16..7acf503909fa7a 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -52,15 +50,22 @@ class ThermostatClusterThermostatScheduleTransitionStruct( private const val TAG_HEAT_SETPOINT = 1 private const val TAG_COOL_SETPOINT = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThermostatClusterThermostatScheduleTransitionStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ThermostatClusterThermostatScheduleTransitionStruct { tlvReader.enterStructure(tlvTag) val transitionTime = tlvReader.getUShort(ContextSpecificTag(TAG_TRANSITION_TIME)) val heatSetpoint = tlvReader.getShort(ContextSpecificTag(TAG_HEAT_SETPOINT)) val coolSetpoint = tlvReader.getShort(ContextSpecificTag(TAG_COOL_SETPOINT)) - + tlvReader.exitContainer() - return ThermostatClusterThermostatScheduleTransitionStruct(transitionTime, heatSetpoint, coolSetpoint) + return ThermostatClusterThermostatScheduleTransitionStruct( + transitionTime, + heatSetpoint, + coolSetpoint + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt index 4afbcae243df05..001698e66b5dce 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -104,7 +102,10 @@ class ThreadNetworkDiagnosticsClusterNeighborTableStruct( private const val TAG_FULL_NETWORK_DATA = 12 private const val TAG_IS_CHILD = 13 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThreadNetworkDiagnosticsClusterNeighborTableStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ThreadNetworkDiagnosticsClusterNeighborTableStruct { tlvReader.enterStructure(tlvTag) val extAddress = tlvReader.getULong(ContextSpecificTag(TAG_EXT_ADDRESS)) val age = tlvReader.getUInt(ContextSpecificTag(TAG_AGE)) @@ -112,28 +113,45 @@ class ThreadNetworkDiagnosticsClusterNeighborTableStruct( val linkFrameCounter = tlvReader.getUInt(ContextSpecificTag(TAG_LINK_FRAME_COUNTER)) val mleFrameCounter = tlvReader.getUInt(ContextSpecificTag(TAG_MLE_FRAME_COUNTER)) val lqi = tlvReader.getUByte(ContextSpecificTag(TAG_LQI)) - val averageRssi = if (!tlvReader.isNull()) { - tlvReader.getByte(ContextSpecificTag(TAG_AVERAGE_RSSI)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_AVERAGE_RSSI)) - null - } - val lastRssi = if (!tlvReader.isNull()) { - tlvReader.getByte(ContextSpecificTag(TAG_LAST_RSSI)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_LAST_RSSI)) - null - } + val averageRssi = + if (!tlvReader.isNull()) { + tlvReader.getByte(ContextSpecificTag(TAG_AVERAGE_RSSI)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_AVERAGE_RSSI)) + null + } + val lastRssi = + if (!tlvReader.isNull()) { + tlvReader.getByte(ContextSpecificTag(TAG_LAST_RSSI)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_LAST_RSSI)) + null + } val frameErrorRate = tlvReader.getUByte(ContextSpecificTag(TAG_FRAME_ERROR_RATE)) val messageErrorRate = tlvReader.getUByte(ContextSpecificTag(TAG_MESSAGE_ERROR_RATE)) val rxOnWhenIdle = tlvReader.getBoolean(ContextSpecificTag(TAG_RX_ON_WHEN_IDLE)) val fullThreadDevice = tlvReader.getBoolean(ContextSpecificTag(TAG_FULL_THREAD_DEVICE)) val fullNetworkData = tlvReader.getBoolean(ContextSpecificTag(TAG_FULL_NETWORK_DATA)) val isChild = tlvReader.getBoolean(ContextSpecificTag(TAG_IS_CHILD)) - + tlvReader.exitContainer() - return ThreadNetworkDiagnosticsClusterNeighborTableStruct(extAddress, age, rloc16, linkFrameCounter, mleFrameCounter, lqi, averageRssi, lastRssi, frameErrorRate, messageErrorRate, rxOnWhenIdle, fullThreadDevice, fullNetworkData, isChild) + return ThreadNetworkDiagnosticsClusterNeighborTableStruct( + extAddress, + age, + rloc16, + linkFrameCounter, + mleFrameCounter, + lqi, + averageRssi, + lastRssi, + frameErrorRate, + messageErrorRate, + rxOnWhenIdle, + fullThreadDevice, + fullNetworkData, + isChild + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt index d43bb740c19060..7aa8d606fbcc21 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -88,24 +86,45 @@ class ThreadNetworkDiagnosticsClusterOperationalDatasetComponents( private const val TAG_SECURITY_POLICY_PRESENT = 10 private const val TAG_CHANNEL_MASK_PRESENT = 11 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThreadNetworkDiagnosticsClusterOperationalDatasetComponents { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ThreadNetworkDiagnosticsClusterOperationalDatasetComponents { tlvReader.enterStructure(tlvTag) - val activeTimestampPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_ACTIVE_TIMESTAMP_PRESENT)) - val pendingTimestampPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_PENDING_TIMESTAMP_PRESENT)) + val activeTimestampPresent = + tlvReader.getBoolean(ContextSpecificTag(TAG_ACTIVE_TIMESTAMP_PRESENT)) + val pendingTimestampPresent = + tlvReader.getBoolean(ContextSpecificTag(TAG_PENDING_TIMESTAMP_PRESENT)) val masterKeyPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_MASTER_KEY_PRESENT)) val networkNamePresent = tlvReader.getBoolean(ContextSpecificTag(TAG_NETWORK_NAME_PRESENT)) - val extendedPanIdPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_EXTENDED_PAN_ID_PRESENT)) - val meshLocalPrefixPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_MESH_LOCAL_PREFIX_PRESENT)) + val extendedPanIdPresent = + tlvReader.getBoolean(ContextSpecificTag(TAG_EXTENDED_PAN_ID_PRESENT)) + val meshLocalPrefixPresent = + tlvReader.getBoolean(ContextSpecificTag(TAG_MESH_LOCAL_PREFIX_PRESENT)) val delayPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_DELAY_PRESENT)) val panIdPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_PAN_ID_PRESENT)) val channelPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_CHANNEL_PRESENT)) val pskcPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_PSKC_PRESENT)) - val securityPolicyPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_SECURITY_POLICY_PRESENT)) + val securityPolicyPresent = + tlvReader.getBoolean(ContextSpecificTag(TAG_SECURITY_POLICY_PRESENT)) val channelMaskPresent = tlvReader.getBoolean(ContextSpecificTag(TAG_CHANNEL_MASK_PRESENT)) - + tlvReader.exitContainer() - return ThreadNetworkDiagnosticsClusterOperationalDatasetComponents(activeTimestampPresent, pendingTimestampPresent, masterKeyPresent, networkNamePresent, extendedPanIdPresent, meshLocalPrefixPresent, delayPresent, panIdPresent, channelPresent, pskcPresent, securityPolicyPresent, channelMaskPresent) + return ThreadNetworkDiagnosticsClusterOperationalDatasetComponents( + activeTimestampPresent, + pendingTimestampPresent, + masterKeyPresent, + networkNamePresent, + extendedPanIdPresent, + meshLocalPrefixPresent, + delayPresent, + panIdPresent, + channelPresent, + pskcPresent, + securityPolicyPresent, + channelMaskPresent + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt index 1ad60c80e2b440..58a9599025b985 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -80,7 +78,10 @@ class ThreadNetworkDiagnosticsClusterRouteTableStruct( private const val TAG_ALLOCATED = 8 private const val TAG_LINK_ESTABLISHED = 9 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ThreadNetworkDiagnosticsClusterRouteTableStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ThreadNetworkDiagnosticsClusterRouteTableStruct { tlvReader.enterStructure(tlvTag) val extAddress = tlvReader.getULong(ContextSpecificTag(TAG_EXT_ADDRESS)) val rloc16 = tlvReader.getUShort(ContextSpecificTag(TAG_RLOC16)) @@ -92,10 +93,21 @@ class ThreadNetworkDiagnosticsClusterRouteTableStruct( val age = tlvReader.getUByte(ContextSpecificTag(TAG_AGE)) val allocated = tlvReader.getBoolean(ContextSpecificTag(TAG_ALLOCATED)) val linkEstablished = tlvReader.getBoolean(ContextSpecificTag(TAG_LINK_ESTABLISHED)) - + tlvReader.exitContainer() - return ThreadNetworkDiagnosticsClusterRouteTableStruct(extAddress, rloc16, routerId, nextHop, pathCost, LQIIn, LQIOut, age, allocated, linkEstablished) + return ThreadNetworkDiagnosticsClusterRouteTableStruct( + extAddress, + rloc16, + routerId, + nextHop, + pathCost, + LQIIn, + LQIOut, + age, + allocated, + linkEstablished + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterSecurityPolicy.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterSecurityPolicy.kt index 008341fa85d4aa..313ac3dda11319 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterSecurityPolicy.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterSecurityPolicy.kt @@ -16,18 +16,13 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class ThreadNetworkDiagnosticsClusterSecurityPolicy( - val rotationTime: UShort, - val flags: UShort -) { +class ThreadNetworkDiagnosticsClusterSecurityPolicy(val rotationTime: UShort, val flags: UShort) { override fun toString(): String = buildString { append("ThreadNetworkDiagnosticsClusterSecurityPolicy {\n") append("\trotationTime : $rotationTime\n") @@ -52,7 +47,7 @@ class ThreadNetworkDiagnosticsClusterSecurityPolicy( tlvReader.enterStructure(tlvTag) val rotationTime = tlvReader.getUShort(ContextSpecificTag(TAG_ROTATION_TIME)) val flags = tlvReader.getUShort(ContextSpecificTag(TAG_FLAGS)) - + tlvReader.exitContainer() return ThreadNetworkDiagnosticsClusterSecurityPolicy(rotationTime, flags) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterDSTOffsetStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterDSTOffsetStruct.kt index 8792079c045c9a..a3b6fd3d55188f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterDSTOffsetStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterDSTOffsetStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -60,13 +58,14 @@ class TimeSynchronizationClusterDSTOffsetStruct( tlvReader.enterStructure(tlvTag) val offset = tlvReader.getInt(ContextSpecificTag(TAG_OFFSET)) val validStarting = tlvReader.getULong(ContextSpecificTag(TAG_VALID_STARTING)) - val validUntil = if (!tlvReader.isNull()) { - tlvReader.getULong(ContextSpecificTag(TAG_VALID_UNTIL)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_VALID_UNTIL)) - null - } - + val validUntil = + if (!tlvReader.isNull()) { + tlvReader.getULong(ContextSpecificTag(TAG_VALID_UNTIL)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_VALID_UNTIL)) + null + } + tlvReader.exitContainer() return TimeSynchronizationClusterDSTOffsetStruct(offset, validStarting, validUntil) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.kt index 282d123e08ad0c..152f42081f7ab8 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -48,11 +46,14 @@ class TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct( private const val TAG_NODE_I_D = 0 private const val TAG_ENDPOINT = 1 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct { tlvReader.enterStructure(tlvTag) val nodeID = tlvReader.getULong(ContextSpecificTag(TAG_NODE_I_D)) val endpoint = tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT)) - + tlvReader.exitContainer() return TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct(nodeID, endpoint) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTimeZoneStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTimeZoneStruct.kt index c23994e02e879e..4dd53317007f70 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTimeZoneStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTimeZoneStruct.kt @@ -18,7 +18,6 @@ package matter.devicecontroller.cluster.structs import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -59,12 +58,13 @@ class TimeSynchronizationClusterTimeZoneStruct( tlvReader.enterStructure(tlvTag) val offset = tlvReader.getInt(ContextSpecificTag(TAG_OFFSET)) val validAt = tlvReader.getULong(ContextSpecificTag(TAG_VALID_AT)) - val name = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) - } else { - Optional.empty() - } - + val name = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NAME))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NAME))) + } else { + Optional.empty() + } + tlvReader.exitContainer() return TimeSynchronizationClusterTimeZoneStruct(offset, validAt, name) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTrustedTimeSourceStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTrustedTimeSourceStruct.kt index fdcf29e9b8f08e..034d6d0d7e21e3 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTrustedTimeSourceStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTrustedTimeSourceStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -52,12 +50,15 @@ class TimeSynchronizationClusterTrustedTimeSourceStruct( private const val TAG_NODE_I_D = 1 private const val TAG_ENDPOINT = 2 - fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): TimeSynchronizationClusterTrustedTimeSourceStruct { + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): TimeSynchronizationClusterTrustedTimeSourceStruct { tlvReader.enterStructure(tlvTag) val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) val nodeID = tlvReader.getULong(ContextSpecificTag(TAG_NODE_I_D)) val endpoint = tlvReader.getUShort(ContextSpecificTag(TAG_ENDPOINT)) - + tlvReader.exitContainer() return TimeSynchronizationClusterTrustedTimeSourceStruct(fabricIndex, nodeID, endpoint) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterDoubleNestedStructList.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterDoubleNestedStructList.kt index c7616a5cd39ad2..546255c64a2d1b 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterDoubleNestedStructList.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterDoubleNestedStructList.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -24,9 +23,7 @@ import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class UnitTestingClusterDoubleNestedStructList( - val a: List -) { +class UnitTestingClusterDoubleNestedStructList(val a: List) { override fun toString(): String = buildString { append("UnitTestingClusterDoubleNestedStructList {\n") append("\ta : $a\n") @@ -50,14 +47,15 @@ class UnitTestingClusterDoubleNestedStructList( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterDoubleNestedStructList { tlvReader.enterStructure(tlvTag) - val a = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_A)) - while(!tlvReader.isEndOfContainer()) { - add(UnitTestingClusterNestedStructList.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - + val a = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_A)) + while (!tlvReader.isEndOfContainer()) { + add(UnitTestingClusterNestedStructList.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return UnitTestingClusterDoubleNestedStructList(a) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStruct.kt index 5615227baf3328..0891c3106fbadf 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -57,7 +55,7 @@ class UnitTestingClusterNestedStruct( val a = tlvReader.getUByte(ContextSpecificTag(TAG_A)) val b = tlvReader.getBoolean(ContextSpecificTag(TAG_B)) val c = UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_C), tlvReader) - + tlvReader.exitContainer() return UnitTestingClusterNestedStruct(a, b, c) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStructList.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStructList.kt index 430acf4d724e99..b22100fdf31dda 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStructList.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStructList.kt @@ -16,7 +16,6 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag @@ -89,35 +88,39 @@ class UnitTestingClusterNestedStructList( val a = tlvReader.getUByte(ContextSpecificTag(TAG_A)) val b = tlvReader.getBoolean(ContextSpecificTag(TAG_B)) val c = UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_C), tlvReader) - val d = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_D)) - while(!tlvReader.isEndOfContainer()) { - add(UnitTestingClusterSimpleStruct.fromTlv(AnonymousTag, tlvReader)) - } - tlvReader.exitContainer() - } - val e = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_E)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - val f = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_F)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getByteArray(AnonymousTag)) - } - tlvReader.exitContainer() - } - val g = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_G)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUByte(AnonymousTag)) - } - tlvReader.exitContainer() - } - + val d = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_D)) + while (!tlvReader.isEndOfContainer()) { + add(UnitTestingClusterSimpleStruct.fromTlv(AnonymousTag, tlvReader)) + } + tlvReader.exitContainer() + } + val e = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_E)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + val f = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_F)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getByteArray(AnonymousTag)) + } + tlvReader.exitContainer() + } + val g = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_G)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUByte(AnonymousTag)) + } + tlvReader.exitContainer() + } + tlvReader.exitContainer() return UnitTestingClusterNestedStructList(a, b, c, d, e, f, g) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNullablesAndOptionalsStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNullablesAndOptionalsStruct.kt index 4dac2d5c0a12ac..5098411f07e58d 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNullablesAndOptionalsStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNullablesAndOptionalsStruct.kt @@ -69,9 +69,9 @@ class UnitTestingClusterNullablesAndOptionalsStruct( } if (nullableOptionalInt != null) { if (nullableOptionalInt.isPresent) { - val optnullableOptionalInt = nullableOptionalInt.get() - put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT), optnullableOptionalInt) - } + val optnullableOptionalInt = nullableOptionalInt.get() + put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT), optnullableOptionalInt) + } } else { putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT)) } @@ -86,9 +86,9 @@ class UnitTestingClusterNullablesAndOptionalsStruct( } if (nullableOptionalString != null) { if (nullableOptionalString.isPresent) { - val optnullableOptionalString = nullableOptionalString.get() - put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING), optnullableOptionalString) - } + val optnullableOptionalString = nullableOptionalString.get() + put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING), optnullableOptionalString) + } } else { putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING)) } @@ -103,38 +103,38 @@ class UnitTestingClusterNullablesAndOptionalsStruct( } if (nullableOptionalStruct != null) { if (nullableOptionalStruct.isPresent) { - val optnullableOptionalStruct = nullableOptionalStruct.get() - optnullableOptionalStruct.toTlv(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT), this) - } + val optnullableOptionalStruct = nullableOptionalStruct.get() + optnullableOptionalStruct.toTlv(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT), this) + } } else { putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT)) } if (nullableList != null) { startArray(ContextSpecificTag(TAG_NULLABLE_LIST)) - for (item in nullableList.iterator()) { - put(AnonymousTag, item) - } - endArray() + for (item in nullableList.iterator()) { + put(AnonymousTag, item) + } + endArray() } else { putNull(ContextSpecificTag(TAG_NULLABLE_LIST)) } if (optionalList.isPresent) { val optoptionalList = optionalList.get() startArray(ContextSpecificTag(TAG_OPTIONAL_LIST)) - for (item in optoptionalList.iterator()) { - put(AnonymousTag, item) - } - endArray() + for (item in optoptionalList.iterator()) { + put(AnonymousTag, item) + } + endArray() } if (nullableOptionalList != null) { if (nullableOptionalList.isPresent) { - val optnullableOptionalList = nullableOptionalList.get() - startArray(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) - for (item in optnullableOptionalList.iterator()) { - put(AnonymousTag, item) - } - endArray() - } + val optnullableOptionalList = nullableOptionalList.get() + startArray(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) + for (item in optnullableOptionalList.iterator()) { + put(AnonymousTag, item) + } + endArray() + } } else { putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) } @@ -158,112 +158,151 @@ class UnitTestingClusterNullablesAndOptionalsStruct( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterNullablesAndOptionalsStruct { tlvReader.enterStructure(tlvTag) - val nullableInt = if (!tlvReader.isNull()) { - tlvReader.getUShort(ContextSpecificTag(TAG_NULLABLE_INT)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_INT)) - null - } - val optionalInt = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_INT))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_OPTIONAL_INT))) - } else { - Optional.empty() - } - val nullableOptionalInt = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT))) { - Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT)) - null - } - val nullableString = if (!tlvReader.isNull()) { - tlvReader.getString(ContextSpecificTag(TAG_NULLABLE_STRING)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_STRING)) - null - } - val optionalString = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_STRING))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPTIONAL_STRING))) - } else { - Optional.empty() - } - val nullableOptionalString = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING))) { - Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING)) - null - } - val nullableStruct = if (!tlvReader.isNull()) { - UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_NULLABLE_STRUCT), tlvReader) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_STRUCT)) - null - } - val optionalStruct = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_STRUCT))) { - Optional.of(UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_OPTIONAL_STRUCT), tlvReader)) - } else { - Optional.empty() - } - val nullableOptionalStruct = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT))) { - Optional.of(UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT), tlvReader)) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT)) - null - } - val nullableList = if (!tlvReader.isNull()) { - buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_NULLABLE_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_LIST)) - null - } - val optionalList = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_LIST))) { - Optional.of(buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_OPTIONAL_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - }) - } else { - Optional.empty() - } - val nullableOptionalList = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST))) { - Optional.of(buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - }) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) - null - } - + val nullableInt = + if (!tlvReader.isNull()) { + tlvReader.getUShort(ContextSpecificTag(TAG_NULLABLE_INT)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_INT)) + null + } + val optionalInt = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_INT))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_OPTIONAL_INT))) + } else { + Optional.empty() + } + val nullableOptionalInt = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT))) { + Optional.of(tlvReader.getUShort(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_INT)) + null + } + val nullableString = + if (!tlvReader.isNull()) { + tlvReader.getString(ContextSpecificTag(TAG_NULLABLE_STRING)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_STRING)) + null + } + val optionalString = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_STRING))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_OPTIONAL_STRING))) + } else { + Optional.empty() + } + val nullableOptionalString = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING))) { + Optional.of(tlvReader.getString(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING))) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRING)) + null + } + val nullableStruct = + if (!tlvReader.isNull()) { + UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_NULLABLE_STRUCT), tlvReader) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_STRUCT)) + null + } + val optionalStruct = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_STRUCT))) { + Optional.of( + UnitTestingClusterSimpleStruct.fromTlv( + ContextSpecificTag(TAG_OPTIONAL_STRUCT), + tlvReader + ) + ) + } else { + Optional.empty() + } + val nullableOptionalStruct = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT))) { + Optional.of( + UnitTestingClusterSimpleStruct.fromTlv( + ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT), + tlvReader + ) + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_STRUCT)) + null + } + val nullableList = + if (!tlvReader.isNull()) { + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_NULLABLE_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_LIST)) + null + } + val optionalList = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_LIST))) { + Optional.of( + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_OPTIONAL_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + ) + } else { + Optional.empty() + } + val nullableOptionalList = + if (!tlvReader.isNull()) { + if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST))) { + Optional.of( + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUInt(AnonymousTag)) + } + tlvReader.exitContainer() + } + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_LIST)) + null + } + tlvReader.exitContainer() - return UnitTestingClusterNullablesAndOptionalsStruct(nullableInt, optionalInt, nullableOptionalInt, nullableString, optionalString, nullableOptionalString, nullableStruct, optionalStruct, nullableOptionalStruct, nullableList, optionalList, nullableOptionalList) + return UnitTestingClusterNullablesAndOptionalsStruct( + nullableInt, + optionalInt, + nullableOptionalInt, + nullableString, + optionalString, + nullableOptionalString, + nullableStruct, + optionalStruct, + nullableOptionalStruct, + nullableList, + optionalList, + nullableOptionalList + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterSimpleStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterSimpleStruct.kt index b197962e305b8d..4c1dfe9e93b76e 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterSimpleStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterSimpleStruct.kt @@ -16,9 +16,7 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader @@ -82,7 +80,7 @@ class UnitTestingClusterSimpleStruct( val f = tlvReader.getUInt(ContextSpecificTag(TAG_F)) val g = tlvReader.getFloat(ContextSpecificTag(TAG_G)) val h = tlvReader.getDouble(ContextSpecificTag(TAG_H)) - + tlvReader.exitContainer() return UnitTestingClusterSimpleStruct(a, b, c, d, e, f, g, h) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestFabricScoped.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestFabricScoped.kt index 85000bae249bc9..0fae66d5d86dc0 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestFabricScoped.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestFabricScoped.kt @@ -53,7 +53,10 @@ class UnitTestingClusterTestFabricScoped( put(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U), fabricSensitiveInt8u) if (optionalFabricSensitiveInt8u.isPresent) { val optoptionalFabricSensitiveInt8u = optionalFabricSensitiveInt8u.get() - put(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U), optoptionalFabricSensitiveInt8u) + put( + ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U), + optoptionalFabricSensitiveInt8u + ) } if (nullableFabricSensitiveInt8u != null) { put(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U), nullableFabricSensitiveInt8u) @@ -62,9 +65,12 @@ class UnitTestingClusterTestFabricScoped( } if (nullableOptionalFabricSensitiveInt8u != null) { if (nullableOptionalFabricSensitiveInt8u.isPresent) { - val optnullableOptionalFabricSensitiveInt8u = nullableOptionalFabricSensitiveInt8u.get() - put(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U), optnullableOptionalFabricSensitiveInt8u) - } + val optnullableOptionalFabricSensitiveInt8u = nullableOptionalFabricSensitiveInt8u.get() + put( + ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U), + optnullableOptionalFabricSensitiveInt8u + ) + } } else { putNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) } @@ -93,41 +99,63 @@ class UnitTestingClusterTestFabricScoped( fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): UnitTestingClusterTestFabricScoped { tlvReader.enterStructure(tlvTag) val fabricSensitiveInt8u = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U)) - val optionalFabricSensitiveInt8u = if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U))) { - Optional.of(tlvReader.getUByte(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U))) - } else { - Optional.empty() - } - val nullableFabricSensitiveInt8u = if (!tlvReader.isNull()) { - tlvReader.getUByte(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) - null - } - val nullableOptionalFabricSensitiveInt8u = if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U))) { - Optional.of(tlvReader.getUByte(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U))) - } else { - Optional.empty() - } - } else { - tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) - null - } - val fabricSensitiveCharString = tlvReader.getString(ContextSpecificTag(TAG_FABRIC_SENSITIVE_CHAR_STRING)) - val fabricSensitiveStruct = UnitTestingClusterSimpleStruct.fromTlv(ContextSpecificTag(TAG_FABRIC_SENSITIVE_STRUCT), tlvReader) - val fabricSensitiveInt8uList = buildList { - tlvReader.enterArray(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U_LIST)) - while(!tlvReader.isEndOfContainer()) { - add(tlvReader.getUByte(AnonymousTag)) - } - tlvReader.exitContainer() - } + val optionalFabricSensitiveInt8u = + if (tlvReader.isNextTag(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U))) { + Optional.of(tlvReader.getUByte(ContextSpecificTag(TAG_OPTIONAL_FABRIC_SENSITIVE_INT8U))) + } else { + Optional.empty() + } + val nullableFabricSensitiveInt8u = + if (!tlvReader.isNull()) { + tlvReader.getUByte(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_FABRIC_SENSITIVE_INT8U)) + null + } + val nullableOptionalFabricSensitiveInt8u = + if (!tlvReader.isNull()) { + if ( + tlvReader.isNextTag(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) + ) { + Optional.of( + tlvReader.getUByte(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) + ) + } else { + Optional.empty() + } + } else { + tlvReader.getNull(ContextSpecificTag(TAG_NULLABLE_OPTIONAL_FABRIC_SENSITIVE_INT8U)) + null + } + val fabricSensitiveCharString = + tlvReader.getString(ContextSpecificTag(TAG_FABRIC_SENSITIVE_CHAR_STRING)) + val fabricSensitiveStruct = + UnitTestingClusterSimpleStruct.fromTlv( + ContextSpecificTag(TAG_FABRIC_SENSITIVE_STRUCT), + tlvReader + ) + val fabricSensitiveInt8uList = + buildList { + tlvReader.enterArray(ContextSpecificTag(TAG_FABRIC_SENSITIVE_INT8U_LIST)) + while (!tlvReader.isEndOfContainer()) { + add(tlvReader.getUByte(AnonymousTag)) + } + tlvReader.exitContainer() + } val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX)) - + tlvReader.exitContainer() - return UnitTestingClusterTestFabricScoped(fabricSensitiveInt8u, optionalFabricSensitiveInt8u, nullableFabricSensitiveInt8u, nullableOptionalFabricSensitiveInt8u, fabricSensitiveCharString, fabricSensitiveStruct, fabricSensitiveInt8uList, fabricIndex) + return UnitTestingClusterTestFabricScoped( + fabricSensitiveInt8u, + optionalFabricSensitiveInt8u, + nullableFabricSensitiveInt8u, + nullableOptionalFabricSensitiveInt8u, + fabricSensitiveCharString, + fabricSensitiveStruct, + fabricSensitiveInt8uList, + fabricIndex + ) } } } diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestListStructOctet.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestListStructOctet.kt index 138940c531aeef..9e49970a89db9c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestListStructOctet.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestListStructOctet.kt @@ -16,18 +16,13 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class UnitTestingClusterTestListStructOctet( - val member1: ULong, - val member2: ByteArray -) { +class UnitTestingClusterTestListStructOctet(val member1: ULong, val member2: ByteArray) { override fun toString(): String = buildString { append("UnitTestingClusterTestListStructOctet {\n") append("\tmember1 : $member1\n") @@ -52,7 +47,7 @@ class UnitTestingClusterTestListStructOctet( tlvReader.enterStructure(tlvTag) val member1 = tlvReader.getULong(ContextSpecificTag(TAG_MEMBER1)) val member2 = tlvReader.getByteArray(ContextSpecificTag(TAG_MEMBER2)) - + tlvReader.exitContainer() return UnitTestingClusterTestListStructOctet(member1, member2) diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UserLabelClusterLabelStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UserLabelClusterLabelStruct.kt index e931655e85c169..ffc34fe8515c2c 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UserLabelClusterLabelStruct.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UserLabelClusterLabelStruct.kt @@ -16,18 +16,13 @@ */ package matter.devicecontroller.cluster.structs -import java.util.Optional import matter.devicecontroller.cluster.* -import matter.tlv.AnonymousTag import matter.tlv.ContextSpecificTag import matter.tlv.Tag import matter.tlv.TlvReader import matter.tlv.TlvWriter -class UserLabelClusterLabelStruct( - val label: String, - val value: String -) { +class UserLabelClusterLabelStruct(val label: String, val value: String) { override fun toString(): String = buildString { append("UserLabelClusterLabelStruct {\n") append("\tlabel : $label\n") @@ -52,7 +47,7 @@ class UserLabelClusterLabelStruct( tlvReader.enterStructure(tlvTag) val label = tlvReader.getString(ContextSpecificTag(TAG_LABEL)) val value = tlvReader.getString(ContextSpecificTag(TAG_VALUE)) - + tlvReader.exitContainer() return UserLabelClusterLabelStruct(label, value) From de94361bafec372b0b55ddd49cb44bf45270e1ba Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Tue, 28 Nov 2023 18:38:12 +0000 Subject: [PATCH 20/41] Restyled by clang-format --- .../esp32/main/DeviceWithDisplay.cpp | 90 +++++++++++++------ .../thermostat/asr/src/TemperatureManager.cpp | 40 ++++++--- .../silabs/src/TemperatureManager.cpp | 40 ++++++--- .../telink/src/TemperatureManager.cpp | 40 ++++++--- 4 files changed, 155 insertions(+), 55 deletions(-) diff --git a/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp b/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp index 3c01985ab5ec0d..23bbc3d91dec3c 100644 --- a/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp +++ b/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp @@ -233,21 +233,42 @@ class EditAttributeListModel : public TouchesMatterStackModel else if (name == "SystemMode") { // System modes - Off, Auto, Cool and Heat are currently supported. - chip::app::Clusters::Thermostat::ThermostatSystemModeEnum modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kUnknownEnumValue; + chip::app::Clusters::Thermostat::ThermostatSystemModeEnum modeEnum = + chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kUnknownEnumValue; uint8_t mode = n; switch (n) { - case 0: modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kOff; break; - case 1: modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kAuto; break; - case 3: modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kCool; break; - case 4: modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kHeat; break; - case 5: modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kEmergencyHeat; break; - case 6: modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kPrecooling; break; - case 7: modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kFanOnly; break; - case 8: modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kDry; break; - case 9: modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kSleep; break; - default: modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kUnknownEnumValue; break; + case 0: + modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kOff; + break; + case 1: + modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kAuto; + break; + case 3: + modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kCool; + break; + case 4: + modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kHeat; + break; + case 5: + modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kEmergencyHeat; + break; + case 6: + modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kPrecooling; + break; + case 7: + modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kFanOnly; + break; + case 8: + modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kDry; + break; + case 9: + modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kSleep; + break; + default: + modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kUnknownEnumValue; + break; } // Update the system mode here for hardcoded endpoint 1 @@ -258,7 +279,8 @@ class EditAttributeListModel : public TouchesMatterStackModel // If system mode is auto set running mode to off otherwise set it to what the system mode is set to if (modeEnum == chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kAuto) { - app::Clusters::Thermostat::Attributes::ThermostatRunningMode::Set(1, chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kOff); + app::Clusters::Thermostat::Attributes::ThermostatRunningMode::Set( + 1, chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kOff); } else { @@ -268,10 +290,18 @@ class EditAttributeListModel : public TouchesMatterStackModel chip::app::Clusters::Thermostat::ThermostatRunningModeEnum runningModeEnum; switch (mode) { - case 0: runningModeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kOff; break; - case 3: runningModeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kCool; break; - case 4: runningModeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kHeat; break; - default: runningModeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kUnknownEnumValue; break; + case 0: + runningModeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kOff; + break; + case 3: + runningModeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kCool; + break; + case 4: + runningModeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kHeat; + break; + default: + runningModeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kUnknownEnumValue; + break; } app::Clusters::Thermostat::Attributes::ThermostatRunningMode::Set(1, runningModeEnum); } @@ -289,26 +319,37 @@ class EditAttributeListModel : public TouchesMatterStackModel else if (name == "RunningMode") { // Get the system mode - chip::app::Clusters::Thermostat::ThermostatSystemModeEnum systemMode = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kOff; + chip::app::Clusters::Thermostat::ThermostatSystemModeEnum systemMode = + chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kOff; app::Clusters::Thermostat::Attributes::SystemMode::Get(1, &systemMode); if (systemMode != chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kAuto) { - ESP_LOGI(TAG, "Running mode can be changed only for system mode auto. Current system mode %d", static_cast(systemMode)); + ESP_LOGI(TAG, "Running mode can be changed only for system mode auto. Current system mode %d", + static_cast(systemMode)); } else { uint8_t mode = n; - chip::app::Clusters::Thermostat::ThermostatRunningModeEnum modeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kUnknownEnumValue; + chip::app::Clusters::Thermostat::ThermostatRunningModeEnum modeEnum = + chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kUnknownEnumValue; // update the running mode here for hardcoded endpoint 1 if (isValidThermostatRunningMode(mode)) { ESP_LOGI(TAG, "Running Mode changed to : %d", mode); switch (n) { - case 0: modeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kOff; break; - case 3: modeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kCool; break; - case 4: modeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kHeat; break; - default: modeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kUnknownEnumValue; break; + case 0: + modeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kOff; + break; + case 3: + modeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kCool; + break; + case 4: + modeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kHeat; + break; + default: + modeEnum = chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kUnknownEnumValue; + break; } app::Clusters::Thermostat::Attributes::ThermostatRunningMode::Set(1, modeEnum); } @@ -638,8 +679,7 @@ void SetupPretendDevices() app::Clusters::TemperatureMeasurement::Attributes::MeasuredValue::Set(1, static_cast(21 * 100)); app::Clusters::Thermostat::Attributes::LocalTemperature::Set(1, static_cast(21 * 100)); AddAttribute("SystemMode", "4"); - app::Clusters::Thermostat::Attributes::SystemMode::Set( - 1, chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kHeat); + app::Clusters::Thermostat::Attributes::SystemMode::Set(1, chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kHeat); AddAttribute("CoolSetpoint", "19"); app::Clusters::Thermostat::Attributes::OccupiedCoolingSetpoint::Set(1, static_cast(19 * 100)); AddAttribute("HeatSetpoint", "25"); diff --git a/examples/thermostat/asr/src/TemperatureManager.cpp b/examples/thermostat/asr/src/TemperatureManager.cpp index 54108f2d39dad0..03a8192013e88e 100644 --- a/examples/thermostat/asr/src/TemperatureManager.cpp +++ b/examples/thermostat/asr/src/TemperatureManager.cpp @@ -48,16 +48,36 @@ CHIP_ERROR TemperatureManager::Init() mCoolingCelsiusSetPoint = ConvertToPrintableTemp(heatingSetpoint); switch (systemMode) { - case ThermostatSystemModeEnum::kOff: mThermMode = 0; break; - case ThermostatSystemModeEnum::kAuto: mThermMode = 1; break; - case ThermostatSystemModeEnum::kCool: mThermMode = 3; break; - case ThermostatSystemModeEnum::kHeat: mThermMode = 4; break; - case ThermostatSystemModeEnum::kEmergencyHeat: mThermMode = 5; break; - case ThermostatSystemModeEnum::kPrecooling: mThermMode = 6; break; - case ThermostatSystemModeEnum::kFanOnly: mThermMode = 7; break; - case ThermostatSystemModeEnum::kDry: mThermMode = 8; break; - case ThermostatSystemModeEnum::kSleep: mThermMode = 9; break; - default: mThermMode = 2; break; // unknown value; + case ThermostatSystemModeEnum::kOff: + mThermMode = 0; + break; + case ThermostatSystemModeEnum::kAuto: + mThermMode = 1; + break; + case ThermostatSystemModeEnum::kCool: + mThermMode = 3; + break; + case ThermostatSystemModeEnum::kHeat: + mThermMode = 4; + break; + case ThermostatSystemModeEnum::kEmergencyHeat: + mThermMode = 5; + break; + case ThermostatSystemModeEnum::kPrecooling: + mThermMode = 6; + break; + case ThermostatSystemModeEnum::kFanOnly: + mThermMode = 7; + break; + case ThermostatSystemModeEnum::kDry: + mThermMode = 8; + break; + case ThermostatSystemModeEnum::kSleep: + mThermMode = 9; + break; + default: + mThermMode = 2; + break; // unknown value; } GetAppTask().UpdateThermoStatUI(); diff --git a/examples/thermostat/silabs/src/TemperatureManager.cpp b/examples/thermostat/silabs/src/TemperatureManager.cpp index eb2b685ee55b21..eca486507c3065 100644 --- a/examples/thermostat/silabs/src/TemperatureManager.cpp +++ b/examples/thermostat/silabs/src/TemperatureManager.cpp @@ -62,16 +62,36 @@ CHIP_ERROR TemperatureManager::Init() mCoolingCelsiusSetPoint = ConvertToPrintableTemp(heatingSetpoint); switch (systemMode) { - case ThermostatSystemModeEnum::kOff: mThermMode = 0; break; - case ThermostatSystemModeEnum::kAuto: mThermMode = 1; break; - case ThermostatSystemModeEnum::kCool: mThermMode = 3; break; - case ThermostatSystemModeEnum::kHeat: mThermMode = 4; break; - case ThermostatSystemModeEnum::kEmergencyHeat: mThermMode = 5; break; - case ThermostatSystemModeEnum::kPrecooling: mThermMode = 6; break; - case ThermostatSystemModeEnum::kFanOnly: mThermMode = 7; break; - case ThermostatSystemModeEnum::kDry: mThermMode = 8; break; - case ThermostatSystemModeEnum::kSleep: mThermMode = 9; break; - default: mThermMode = 2; break; // unknown value; + case ThermostatSystemModeEnum::kOff: + mThermMode = 0; + break; + case ThermostatSystemModeEnum::kAuto: + mThermMode = 1; + break; + case ThermostatSystemModeEnum::kCool: + mThermMode = 3; + break; + case ThermostatSystemModeEnum::kHeat: + mThermMode = 4; + break; + case ThermostatSystemModeEnum::kEmergencyHeat: + mThermMode = 5; + break; + case ThermostatSystemModeEnum::kPrecooling: + mThermMode = 6; + break; + case ThermostatSystemModeEnum::kFanOnly: + mThermMode = 7; + break; + case ThermostatSystemModeEnum::kDry: + mThermMode = 8; + break; + case ThermostatSystemModeEnum::kSleep: + mThermMode = 9; + break; + default: + mThermMode = 2; + break; // unknown value; } AppTask::GetAppTask().UpdateThermoStatUI(); diff --git a/examples/thermostat/telink/src/TemperatureManager.cpp b/examples/thermostat/telink/src/TemperatureManager.cpp index 0fa8b35ca5cd2d..9d4cd07b134cfc 100644 --- a/examples/thermostat/telink/src/TemperatureManager.cpp +++ b/examples/thermostat/telink/src/TemperatureManager.cpp @@ -51,16 +51,36 @@ CHIP_ERROR TemperatureManager::Init() mCoolingCelsiusSetPoint = ConvertToPrintableTemp(heatingSetpoint); switch (systemMode) { - case ThermostatSystemModeEnum::kOff: mThermMode = 0; break; - case ThermostatSystemModeEnum::kAuto: mThermMode = 1; break; - case ThermostatSystemModeEnum::kCool: mThermMode = 3; break; - case ThermostatSystemModeEnum::kHeat: mThermMode = 4; break; - case ThermostatSystemModeEnum::kEmergencyHeat: mThermMode = 5; break; - case ThermostatSystemModeEnum::kPrecooling: mThermMode = 6; break; - case ThermostatSystemModeEnum::kFanOnly: mThermMode = 7; break; - case ThermostatSystemModeEnum::kDry: mThermMode = 8; break; - case ThermostatSystemModeEnum::kSleep: mThermMode = 9; break; - default: mThermMode = 2; break; // unknown value; + case ThermostatSystemModeEnum::kOff: + mThermMode = 0; + break; + case ThermostatSystemModeEnum::kAuto: + mThermMode = 1; + break; + case ThermostatSystemModeEnum::kCool: + mThermMode = 3; + break; + case ThermostatSystemModeEnum::kHeat: + mThermMode = 4; + break; + case ThermostatSystemModeEnum::kEmergencyHeat: + mThermMode = 5; + break; + case ThermostatSystemModeEnum::kPrecooling: + mThermMode = 6; + break; + case ThermostatSystemModeEnum::kFanOnly: + mThermMode = 7; + break; + case ThermostatSystemModeEnum::kDry: + mThermMode = 8; + break; + case ThermostatSystemModeEnum::kSleep: + mThermMode = 9; + break; + default: + mThermMode = 2; + break; // unknown value; } GetAppTask().UpdateThermoStatUI(); From 67613e6fa9b911afaf18f570960d38f252537783 Mon Sep 17 00:00:00 2001 From: David Rempel Date: Tue, 28 Nov 2023 13:46:39 -0800 Subject: [PATCH 21/41] new xml, new regen. --- .../all-clusters-app.matter | 92 ++++---- .../esp32/main/DeviceWithDisplay.cpp | 46 ++-- .../all-clusters-minimal-app.matter | 92 ++++---- .../esp32/main/DeviceWithDisplay.cpp | 2 +- ...umiditysensor_thermostat_56de3d5f45.matter | 92 ++++---- ...tnode_heatingcoolingunit_ncdGai1E5a.matter | 108 +++++----- ...tnode_roomairconditioner_9cf3607804.matter | 92 ++++---- .../rootnode_thermostat_bm3fb8dhYi.matter | 92 ++++---- .../placeholder/linux/apps/app1/config.matter | 200 +++++++++--------- .../placeholder/linux/apps/app2/config.matter | 200 +++++++++--------- .../thermostat/asr/src/TemperatureManager.cpp | 20 +- .../nxp/zap/thermostat_matter_thread.matter | 92 ++++---- .../nxp/zap/thermostat_matter_wifi.matter | 92 ++++---- .../silabs/src/TemperatureManager.cpp | 20 +- .../telink/src/TemperatureManager.cpp | 20 +- .../thermostat-common/thermostat.matter | 92 ++++---- .../thermostat-server/thermostat-server.cpp | 26 +-- .../data-model/chip/thermostat-cluster.xml | 54 +++-- .../data_model/controller-clusters.matter | 108 +++++----- .../chip/devicecontroller/ChipClusters.java | 10 +- .../chip/devicecontroller/ChipStructs.java | 10 +- .../devicecontroller/ClusterInfoMapping.java | 6 +- .../chip/devicecontroller/cluster/files.gni | 2 +- ...atClusterWeeklyScheduleTransitionStruct.kt | 71 +++++++ .../cluster/clusters/ThermostatCluster.kt | 4 +- .../matter/devicecontroller/cluster/files.gni | 2 +- ...atClusterWeeklyScheduleTransitionStruct.kt | 71 +++++++ .../zap-generated/CHIPInvokeCallbacks.cpp | 22 +- .../python/chip/clusters/CHIPClusters.py | 2 +- .../python/chip/clusters/Objects.py | 124 +++++------ .../CHIP/zap-generated/MTRBaseClusters.h | 76 +++---- .../zap-generated/MTRCommandPayloadsObjc.mm | 8 +- .../CHIP/zap-generated/MTRStructsObjc.h | 2 +- .../CHIP/zap-generated/MTRStructsObjc.mm | 4 +- .../zap-generated/attributes/Accessors.cpp | 16 +- .../zap-generated/attributes/Accessors.h | 9 +- .../zap-generated/cluster-enums-check.h | 64 +++--- .../app-common/zap-generated/cluster-enums.h | 108 +++++----- .../zap-generated/cluster-objects.cpp | 4 +- .../zap-generated/cluster-objects.h | 72 +++---- .../zap-generated/cluster/Commands.h | 6 +- .../cluster/ComplexArgumentParser.cpp | 17 +- .../cluster/ComplexArgumentParser.h | 4 +- .../cluster/logging/DataModelLogger.cpp | 6 +- .../cluster/logging/DataModelLogger.h | 5 +- .../zap-generated/cluster/Commands.h | 6 +- 46 files changed, 1203 insertions(+), 1068 deletions(-) create mode 100644 src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterWeeklyScheduleTransitionStruct.kt create mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterWeeklyScheduleTransitionStruct.kt diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter index 8fdaf2da11742b..a023cb3c50607e 100644 --- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter +++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter @@ -3717,6 +3717,15 @@ server cluster Thermostat = 513 { kHeatPumpInverter = 4; } + enum ControlSequenceOfOperationEnum : enum8 { + kCoolingOnly = 0; + kCoolingWithReheat = 1; + kHeatingOnly = 2; + kHeatingWithReheat = 3; + kCoolingAndHeating = 4; + kCoolingAndHeatingWithReheat = 5; + } + enum PresetScenarioEnum : enum8 { kUnspecified = 0; kOccupied = 1; @@ -3749,27 +3758,7 @@ server cluster Thermostat = 513 { kSaturday = 6; } - enum TemperatureSetpointHoldEnum : enum8 { - kSetpointHoldOff = 0; - kSetpointHoldOn = 1; - } - - enum ThermostatControlSequenceEnum : enum8 { - kCoolingOnly = 0; - kCoolingWithReheat = 1; - kHeatingOnly = 2; - kHeatingWithReheat = 3; - kCoolingAndHeating = 4; - kCoolingAndHeatingWithReheat = 5; - } - - enum ThermostatRunningModeEnum : enum8 { - kOff = 0; - kCool = 3; - kHeat = 4; - } - - enum ThermostatSystemModeEnum : enum8 { + enum SystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -3781,6 +3770,17 @@ server cluster Thermostat = 513 { kSleep = 9; } + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatRunningModeEnum : enum8 { + kOff = 0; + kCool = 3; + kHeat = 4; + } + bitmap ACErrorCodeBitmap : bitmap32 { kCompressorFail = 0x1; kRoomSensorFail = 0x2; @@ -3795,17 +3795,6 @@ server cluster Thermostat = 513 { kSelfCalibration = 0x4; } - bitmap DayOfWeekBitmap : bitmap8 { - kSunday = 0x1; - kMonday = 0x2; - kTuesday = 0x4; - kWednesday = 0x8; - kThursday = 0x10; - kFriday = 0x20; - kSaturday = 0x40; - kAway = 0x80; - } - bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; @@ -3821,13 +3810,8 @@ server cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { - kHeatingType = 0x10; - kHeatingFuel = 0x20; - } - - bitmap ModeForSequenceBitmap : bitmap8 { - kHeatSetpointPresent = 0x1; - kCoolSetpointPresent = 0x2; + kHeatingIsHeatPump = 0x10; + kHeatingUsesFuel = 0x20; } bitmap PresetTypeFeaturesBitmap : bitmap16 { @@ -3857,6 +3841,22 @@ server cluster Thermostat = 513 { kOccupancy = 0x4; } + bitmap ScheduleDayOfWeekBitmap : bitmap8 { + kSunday = 0x1; + kMonday = 0x2; + kTuesday = 0x4; + kWednesday = 0x8; + kThursday = 0x10; + kFriday = 0x20; + kSaturday = 0x40; + kAway = 0x80; + } + + bitmap ScheduleModeBitmap : bitmap8 { + kHeatSetpointPresent = 0x1; + kCoolSetpointPresent = 0x2; + } + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { kSupportsPresets = 0x1; kSupportsSetpoints = 0x2; @@ -3870,17 +3870,17 @@ server cluster Thermostat = 513 { } struct ScheduleTransitionStruct { - DayOfWeekBitmap dayOfWeek = 0; + ScheduleDayOfWeekBitmap dayOfWeek = 0; int16u transitionTime = 1; optional octet_string<16> presetHandle = 2; - optional ThermostatSystemModeEnum systemMode = 3; + optional SystemModeEnum systemMode = 3; optional temperature coolingSetpoint = 4; optional temperature heatingSetpoint = 5; } struct ScheduleStruct { nullable octet_string<16> scheduleHandle = 0; - ThermostatSystemModeEnum systemMode = 1; + SystemModeEnum systemMode = 1; optional char_string<64> name = 2; optional octet_string<16> presetHandle = 3; ScheduleTransitionStruct transitions[] = 4; @@ -3908,12 +3908,12 @@ server cluster Thermostat = 513 { } struct ScheduleTypeStruct { - ThermostatSystemModeEnum systemMode = 0; + SystemModeEnum systemMode = 0; int8u numberOfSchedules = 1; ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; } - struct ThermostatScheduleTransitionStruct { + struct WeeklyScheduleTransitionStruct { int16u transitionTime = 0; temperature heatSetpoint = 1; temperature coolSetpoint = 2; @@ -3931,8 +3931,8 @@ server cluster Thermostat = 513 { attribute access(write: manage) temperature minCoolSetpointLimit = 23; attribute access(write: manage) temperature maxCoolSetpointLimit = 24; attribute access(write: manage) int8s minSetpointDeadBand = 25; - attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; - attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; + attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; + attribute access(write: manage) SystemModeEnum systemMode = 28; readonly attribute PresetTypeStruct presetTypes[] = 72; readonly attribute ScheduleTypeStruct scheduleTypes[] = 73; readonly attribute int8u numberOfPresets = 74; diff --git a/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp b/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp index 23bbc3d91dec3c..6942d81bf975e4 100644 --- a/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp +++ b/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp @@ -141,14 +141,14 @@ class EditAttributeListModel : public TouchesMatterStackModel // false otherwise. bool isValidThermostatSystemMode(uint8_t systemMode) { - chip::app::Clusters::Thermostat::ThermostatSystemModeEnum mode = - static_cast(systemMode); + chip::app::Clusters::Thermostat::SystemModeEnum mode = + static_cast(systemMode); switch (mode) { - case chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kOff: - case chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kAuto: - case chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kCool: - case chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kHeat: + case chip::app::Clusters::Thermostat::SystemModeEnum::kOff: + case chip::app::Clusters::Thermostat::SystemModeEnum::kAuto: + case chip::app::Clusters::Thermostat::SystemModeEnum::kCool: + case chip::app::Clusters::Thermostat::SystemModeEnum::kHeat: return true; default: return false; @@ -233,41 +233,41 @@ class EditAttributeListModel : public TouchesMatterStackModel else if (name == "SystemMode") { // System modes - Off, Auto, Cool and Heat are currently supported. - chip::app::Clusters::Thermostat::ThermostatSystemModeEnum modeEnum = - chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kUnknownEnumValue; + chip::app::Clusters::Thermostat::SystemModeEnum modeEnum = + chip::app::Clusters::Thermostat::SystemModeEnum::kUnknownEnumValue; uint8_t mode = n; switch (n) { case 0: - modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kOff; + modeEnum = chip::app::Clusters::Thermostat::SystemModeEnum::kOff; break; case 1: - modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kAuto; + modeEnum = chip::app::Clusters::Thermostat::SystemModeEnum::kAuto; break; case 3: - modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kCool; + modeEnum = chip::app::Clusters::Thermostat::SystemModeEnum::kCool; break; case 4: - modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kHeat; + modeEnum = chip::app::Clusters::Thermostat::SystemModeEnum::kHeat; break; case 5: - modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kEmergencyHeat; + modeEnum = chip::app::Clusters::Thermostat::SystemModeEnum::kEmergencyHeat; break; case 6: - modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kPrecooling; + modeEnum = chip::app::Clusters::Thermostat::SystemModeEnum::kPrecooling; break; case 7: - modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kFanOnly; + modeEnum = chip::app::Clusters::Thermostat::SystemModeEnum::kFanOnly; break; case 8: - modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kDry; + modeEnum = chip::app::Clusters::Thermostat::SystemModeEnum::kDry; break; case 9: - modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kSleep; + modeEnum = chip::app::Clusters::Thermostat::SystemModeEnum::kSleep; break; default: - modeEnum = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kUnknownEnumValue; + modeEnum = chip::app::Clusters::Thermostat::SystemModeEnum::kUnknownEnumValue; break; } @@ -277,7 +277,7 @@ class EditAttributeListModel : public TouchesMatterStackModel ESP_LOGI(TAG, "System Mode changed to : %d", mode); app::Clusters::Thermostat::Attributes::SystemMode::Set(1, modeEnum); // If system mode is auto set running mode to off otherwise set it to what the system mode is set to - if (modeEnum == chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kAuto) + if (modeEnum == chip::app::Clusters::Thermostat::SystemModeEnum::kAuto) { app::Clusters::Thermostat::Attributes::ThermostatRunningMode::Set( 1, chip::app::Clusters::Thermostat::ThermostatRunningModeEnum::kOff); @@ -319,10 +319,10 @@ class EditAttributeListModel : public TouchesMatterStackModel else if (name == "RunningMode") { // Get the system mode - chip::app::Clusters::Thermostat::ThermostatSystemModeEnum systemMode = - chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kOff; + chip::app::Clusters::Thermostat::SystemModeEnum systemMode = + chip::app::Clusters::Thermostat::SystemModeEnum::kOff; app::Clusters::Thermostat::Attributes::SystemMode::Get(1, &systemMode); - if (systemMode != chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kAuto) + if (systemMode != chip::app::Clusters::Thermostat::SystemModeEnum::kAuto) { ESP_LOGI(TAG, "Running mode can be changed only for system mode auto. Current system mode %d", static_cast(systemMode)); @@ -679,7 +679,7 @@ void SetupPretendDevices() app::Clusters::TemperatureMeasurement::Attributes::MeasuredValue::Set(1, static_cast(21 * 100)); app::Clusters::Thermostat::Attributes::LocalTemperature::Set(1, static_cast(21 * 100)); AddAttribute("SystemMode", "4"); - app::Clusters::Thermostat::Attributes::SystemMode::Set(1, chip::app::Clusters::Thermostat::ThermostatSystemModeEnum::kHeat); + app::Clusters::Thermostat::Attributes::SystemMode::Set(1, chip::app::Clusters::Thermostat::SystemModeEnum::kHeat); AddAttribute("CoolSetpoint", "19"); app::Clusters::Thermostat::Attributes::OccupiedCoolingSetpoint::Set(1, static_cast(19 * 100)); AddAttribute("HeatSetpoint", "25"); diff --git a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter index 25bfdb30974205..4b0a7d5daeeb77 100644 --- a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter +++ b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter @@ -2882,6 +2882,15 @@ server cluster Thermostat = 513 { kHeatPumpInverter = 4; } + enum ControlSequenceOfOperationEnum : enum8 { + kCoolingOnly = 0; + kCoolingWithReheat = 1; + kHeatingOnly = 2; + kHeatingWithReheat = 3; + kCoolingAndHeating = 4; + kCoolingAndHeatingWithReheat = 5; + } + enum PresetScenarioEnum : enum8 { kUnspecified = 0; kOccupied = 1; @@ -2914,27 +2923,7 @@ server cluster Thermostat = 513 { kSaturday = 6; } - enum TemperatureSetpointHoldEnum : enum8 { - kSetpointHoldOff = 0; - kSetpointHoldOn = 1; - } - - enum ThermostatControlSequenceEnum : enum8 { - kCoolingOnly = 0; - kCoolingWithReheat = 1; - kHeatingOnly = 2; - kHeatingWithReheat = 3; - kCoolingAndHeating = 4; - kCoolingAndHeatingWithReheat = 5; - } - - enum ThermostatRunningModeEnum : enum8 { - kOff = 0; - kCool = 3; - kHeat = 4; - } - - enum ThermostatSystemModeEnum : enum8 { + enum SystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -2946,6 +2935,17 @@ server cluster Thermostat = 513 { kSleep = 9; } + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatRunningModeEnum : enum8 { + kOff = 0; + kCool = 3; + kHeat = 4; + } + bitmap ACErrorCodeBitmap : bitmap32 { kCompressorFail = 0x1; kRoomSensorFail = 0x2; @@ -2960,17 +2960,6 @@ server cluster Thermostat = 513 { kSelfCalibration = 0x4; } - bitmap DayOfWeekBitmap : bitmap8 { - kSunday = 0x1; - kMonday = 0x2; - kTuesday = 0x4; - kWednesday = 0x8; - kThursday = 0x10; - kFriday = 0x20; - kSaturday = 0x40; - kAway = 0x80; - } - bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; @@ -2986,13 +2975,8 @@ server cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { - kHeatingType = 0x10; - kHeatingFuel = 0x20; - } - - bitmap ModeForSequenceBitmap : bitmap8 { - kHeatSetpointPresent = 0x1; - kCoolSetpointPresent = 0x2; + kHeatingIsHeatPump = 0x10; + kHeatingUsesFuel = 0x20; } bitmap PresetTypeFeaturesBitmap : bitmap16 { @@ -3022,6 +3006,22 @@ server cluster Thermostat = 513 { kOccupancy = 0x4; } + bitmap ScheduleDayOfWeekBitmap : bitmap8 { + kSunday = 0x1; + kMonday = 0x2; + kTuesday = 0x4; + kWednesday = 0x8; + kThursday = 0x10; + kFriday = 0x20; + kSaturday = 0x40; + kAway = 0x80; + } + + bitmap ScheduleModeBitmap : bitmap8 { + kHeatSetpointPresent = 0x1; + kCoolSetpointPresent = 0x2; + } + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { kSupportsPresets = 0x1; kSupportsSetpoints = 0x2; @@ -3035,17 +3035,17 @@ server cluster Thermostat = 513 { } struct ScheduleTransitionStruct { - DayOfWeekBitmap dayOfWeek = 0; + ScheduleDayOfWeekBitmap dayOfWeek = 0; int16u transitionTime = 1; optional octet_string<16> presetHandle = 2; - optional ThermostatSystemModeEnum systemMode = 3; + optional SystemModeEnum systemMode = 3; optional temperature coolingSetpoint = 4; optional temperature heatingSetpoint = 5; } struct ScheduleStruct { nullable octet_string<16> scheduleHandle = 0; - ThermostatSystemModeEnum systemMode = 1; + SystemModeEnum systemMode = 1; optional char_string<64> name = 2; optional octet_string<16> presetHandle = 3; ScheduleTransitionStruct transitions[] = 4; @@ -3073,12 +3073,12 @@ server cluster Thermostat = 513 { } struct ScheduleTypeStruct { - ThermostatSystemModeEnum systemMode = 0; + SystemModeEnum systemMode = 0; int8u numberOfSchedules = 1; ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; } - struct ThermostatScheduleTransitionStruct { + struct WeeklyScheduleTransitionStruct { int16u transitionTime = 0; temperature heatSetpoint = 1; temperature coolSetpoint = 2; @@ -3086,8 +3086,8 @@ server cluster Thermostat = 513 { readonly attribute nullable temperature localTemperature = 0; attribute temperature occupiedHeatingSetpoint = 18; - attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; - attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; + attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; + attribute access(write: manage) SystemModeEnum systemMode = 28; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; readonly attribute event_id eventList[] = 65530; diff --git a/examples/all-clusters-minimal-app/esp32/main/DeviceWithDisplay.cpp b/examples/all-clusters-minimal-app/esp32/main/DeviceWithDisplay.cpp index 141c1b3ec6765c..d925d00f259875 100644 --- a/examples/all-clusters-minimal-app/esp32/main/DeviceWithDisplay.cpp +++ b/examples/all-clusters-minimal-app/esp32/main/DeviceWithDisplay.cpp @@ -544,7 +544,7 @@ void SetupPretendDevices() app::Clusters::TemperatureMeasurement::Attributes::MeasuredValue::Set(1, static_cast(21 * 100)); app::Clusters::Thermostat::Attributes::LocalTemperature::Set(1, static_cast(21 * 100)); AddAttribute("SystemMode", "4"); - app::Clusters::Thermostat::Attributes::SystemMode::Set(1, app::Clusters::Thermostat::ThermostatSystemModeEnum::kHeat); + app::Clusters::Thermostat::Attributes::SystemMode::Set(1, app::Clusters::Thermostat::SystemModeEnum::kHeat); AddAttribute("OccupiedCoolingSetpoint", "19"); app::Clusters::Thermostat::Attributes::OccupiedCoolingSetpoint::Set(1, static_cast(19 * 100)); AddAttribute("OccupiedHeatingSetpoint", "25"); diff --git a/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter b/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter index f46078f3252219..272dbf4b42fe45 100644 --- a/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter +++ b/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter @@ -1096,6 +1096,15 @@ server cluster Thermostat = 513 { kHeatPumpInverter = 4; } + enum ControlSequenceOfOperationEnum : enum8 { + kCoolingOnly = 0; + kCoolingWithReheat = 1; + kHeatingOnly = 2; + kHeatingWithReheat = 3; + kCoolingAndHeating = 4; + kCoolingAndHeatingWithReheat = 5; + } + enum PresetScenarioEnum : enum8 { kUnspecified = 0; kOccupied = 1; @@ -1128,27 +1137,7 @@ server cluster Thermostat = 513 { kSaturday = 6; } - enum TemperatureSetpointHoldEnum : enum8 { - kSetpointHoldOff = 0; - kSetpointHoldOn = 1; - } - - enum ThermostatControlSequenceEnum : enum8 { - kCoolingOnly = 0; - kCoolingWithReheat = 1; - kHeatingOnly = 2; - kHeatingWithReheat = 3; - kCoolingAndHeating = 4; - kCoolingAndHeatingWithReheat = 5; - } - - enum ThermostatRunningModeEnum : enum8 { - kOff = 0; - kCool = 3; - kHeat = 4; - } - - enum ThermostatSystemModeEnum : enum8 { + enum SystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -1160,6 +1149,17 @@ server cluster Thermostat = 513 { kSleep = 9; } + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatRunningModeEnum : enum8 { + kOff = 0; + kCool = 3; + kHeat = 4; + } + bitmap ACErrorCodeBitmap : bitmap32 { kCompressorFail = 0x1; kRoomSensorFail = 0x2; @@ -1174,17 +1174,6 @@ server cluster Thermostat = 513 { kSelfCalibration = 0x4; } - bitmap DayOfWeekBitmap : bitmap8 { - kSunday = 0x1; - kMonday = 0x2; - kTuesday = 0x4; - kWednesday = 0x8; - kThursday = 0x10; - kFriday = 0x20; - kSaturday = 0x40; - kAway = 0x80; - } - bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; @@ -1200,13 +1189,8 @@ server cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { - kHeatingType = 0x10; - kHeatingFuel = 0x20; - } - - bitmap ModeForSequenceBitmap : bitmap8 { - kHeatSetpointPresent = 0x1; - kCoolSetpointPresent = 0x2; + kHeatingIsHeatPump = 0x10; + kHeatingUsesFuel = 0x20; } bitmap PresetTypeFeaturesBitmap : bitmap16 { @@ -1236,6 +1220,22 @@ server cluster Thermostat = 513 { kOccupancy = 0x4; } + bitmap ScheduleDayOfWeekBitmap : bitmap8 { + kSunday = 0x1; + kMonday = 0x2; + kTuesday = 0x4; + kWednesday = 0x8; + kThursday = 0x10; + kFriday = 0x20; + kSaturday = 0x40; + kAway = 0x80; + } + + bitmap ScheduleModeBitmap : bitmap8 { + kHeatSetpointPresent = 0x1; + kCoolSetpointPresent = 0x2; + } + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { kSupportsPresets = 0x1; kSupportsSetpoints = 0x2; @@ -1249,17 +1249,17 @@ server cluster Thermostat = 513 { } struct ScheduleTransitionStruct { - DayOfWeekBitmap dayOfWeek = 0; + ScheduleDayOfWeekBitmap dayOfWeek = 0; int16u transitionTime = 1; optional octet_string<16> presetHandle = 2; - optional ThermostatSystemModeEnum systemMode = 3; + optional SystemModeEnum systemMode = 3; optional temperature coolingSetpoint = 4; optional temperature heatingSetpoint = 5; } struct ScheduleStruct { nullable octet_string<16> scheduleHandle = 0; - ThermostatSystemModeEnum systemMode = 1; + SystemModeEnum systemMode = 1; optional char_string<64> name = 2; optional octet_string<16> presetHandle = 3; ScheduleTransitionStruct transitions[] = 4; @@ -1287,12 +1287,12 @@ server cluster Thermostat = 513 { } struct ScheduleTypeStruct { - ThermostatSystemModeEnum systemMode = 0; + SystemModeEnum systemMode = 0; int8u numberOfSchedules = 1; ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; } - struct ThermostatScheduleTransitionStruct { + struct WeeklyScheduleTransitionStruct { int16u transitionTime = 0; temperature heatSetpoint = 1; temperature coolSetpoint = 2; @@ -1302,8 +1302,8 @@ server cluster Thermostat = 513 { attribute temperature occupiedHeatingSetpoint = 18; attribute access(write: manage) temperature minHeatSetpointLimit = 21; attribute access(write: manage) temperature maxHeatSetpointLimit = 22; - attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; - attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; + attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; + attribute access(write: manage) SystemModeEnum systemMode = 28; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; readonly attribute event_id eventList[] = 65530; diff --git a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter index e537fc5dd112fe..8166bc09cfe073 100644 --- a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter +++ b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter @@ -1405,6 +1405,15 @@ client cluster Thermostat = 513 { kHeatPumpInverter = 4; } + enum ControlSequenceOfOperationEnum : enum8 { + kCoolingOnly = 0; + kCoolingWithReheat = 1; + kHeatingOnly = 2; + kHeatingWithReheat = 3; + kCoolingAndHeating = 4; + kCoolingAndHeatingWithReheat = 5; + } + enum PresetScenarioEnum : enum8 { kUnspecified = 0; kOccupied = 1; @@ -1437,27 +1446,7 @@ client cluster Thermostat = 513 { kSaturday = 6; } - enum TemperatureSetpointHoldEnum : enum8 { - kSetpointHoldOff = 0; - kSetpointHoldOn = 1; - } - - enum ThermostatControlSequenceEnum : enum8 { - kCoolingOnly = 0; - kCoolingWithReheat = 1; - kHeatingOnly = 2; - kHeatingWithReheat = 3; - kCoolingAndHeating = 4; - kCoolingAndHeatingWithReheat = 5; - } - - enum ThermostatRunningModeEnum : enum8 { - kOff = 0; - kCool = 3; - kHeat = 4; - } - - enum ThermostatSystemModeEnum : enum8 { + enum SystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -1469,6 +1458,17 @@ client cluster Thermostat = 513 { kSleep = 9; } + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatRunningModeEnum : enum8 { + kOff = 0; + kCool = 3; + kHeat = 4; + } + bitmap ACErrorCodeBitmap : bitmap32 { kCompressorFail = 0x1; kRoomSensorFail = 0x2; @@ -1483,17 +1483,6 @@ client cluster Thermostat = 513 { kSelfCalibration = 0x4; } - bitmap DayOfWeekBitmap : bitmap8 { - kSunday = 0x1; - kMonday = 0x2; - kTuesday = 0x4; - kWednesday = 0x8; - kThursday = 0x10; - kFriday = 0x20; - kSaturday = 0x40; - kAway = 0x80; - } - bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; @@ -1509,13 +1498,8 @@ client cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { - kHeatingType = 0x10; - kHeatingFuel = 0x20; - } - - bitmap ModeForSequenceBitmap : bitmap8 { - kHeatSetpointPresent = 0x1; - kCoolSetpointPresent = 0x2; + kHeatingIsHeatPump = 0x10; + kHeatingUsesFuel = 0x20; } bitmap PresetTypeFeaturesBitmap : bitmap16 { @@ -1545,6 +1529,22 @@ client cluster Thermostat = 513 { kOccupancy = 0x4; } + bitmap ScheduleDayOfWeekBitmap : bitmap8 { + kSunday = 0x1; + kMonday = 0x2; + kTuesday = 0x4; + kWednesday = 0x8; + kThursday = 0x10; + kFriday = 0x20; + kSaturday = 0x40; + kAway = 0x80; + } + + bitmap ScheduleModeBitmap : bitmap8 { + kHeatSetpointPresent = 0x1; + kCoolSetpointPresent = 0x2; + } + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { kSupportsPresets = 0x1; kSupportsSetpoints = 0x2; @@ -1558,17 +1558,17 @@ client cluster Thermostat = 513 { } struct ScheduleTransitionStruct { - DayOfWeekBitmap dayOfWeek = 0; + ScheduleDayOfWeekBitmap dayOfWeek = 0; int16u transitionTime = 1; optional octet_string<16> presetHandle = 2; - optional ThermostatSystemModeEnum systemMode = 3; + optional SystemModeEnum systemMode = 3; optional temperature coolingSetpoint = 4; optional temperature heatingSetpoint = 5; } struct ScheduleStruct { nullable octet_string<16> scheduleHandle = 0; - ThermostatSystemModeEnum systemMode = 1; + SystemModeEnum systemMode = 1; optional char_string<64> name = 2; optional octet_string<16> presetHandle = 3; ScheduleTransitionStruct transitions[] = 4; @@ -1596,12 +1596,12 @@ client cluster Thermostat = 513 { } struct ScheduleTypeStruct { - ThermostatSystemModeEnum systemMode = 0; + SystemModeEnum systemMode = 0; int8u numberOfSchedules = 1; ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; } - struct ThermostatScheduleTransitionStruct { + struct WeeklyScheduleTransitionStruct { int16u transitionTime = 0; temperature heatSetpoint = 1; temperature coolSetpoint = 2; @@ -1627,8 +1627,8 @@ client cluster Thermostat = 513 { attribute access(write: manage) optional temperature maxCoolSetpointLimit = 24; attribute access(write: manage) optional int8s minSetpointDeadBand = 25; attribute access(write: manage) optional RemoteSensingBitmap remoteSensing = 26; - attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; - attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; + attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; + attribute access(write: manage) SystemModeEnum systemMode = 28; readonly attribute optional AlarmCodeBitmap alarmMask = 29; readonly attribute optional ThermostatRunningModeEnum thermostatRunningMode = 30; readonly attribute optional StartOfWeekEnum startOfWeek = 32; @@ -1684,16 +1684,16 @@ client cluster Thermostat = 513 { response struct GetWeeklyScheduleResponse = 0 { int8u numberOfTransitionsForSequence = 0; - DayOfWeekBitmap dayOfWeekforSequence = 1; - ModeForSequenceBitmap modeForSequence = 2; - ThermostatScheduleTransitionStruct transitions[] = 3; + ScheduleDayOfWeekBitmap dayOfWeekforSequence = 1; + ScheduleModeBitmap modeForSequence = 2; + WeeklyScheduleTransitionStruct transitions[] = 3; } request struct SetWeeklyScheduleRequest { int8u numberOfTransitionsForSequence = 0; - DayOfWeekBitmap dayOfWeekforSequence = 1; - ModeForSequenceBitmap modeForSequence = 2; - ThermostatScheduleTransitionStruct transitions[] = 3; + ScheduleDayOfWeekBitmap dayOfWeekforSequence = 1; + ScheduleModeBitmap modeForSequence = 2; + WeeklyScheduleTransitionStruct transitions[] = 3; } response struct GetRelayStatusLogResponse = 1 { @@ -1706,8 +1706,8 @@ client cluster Thermostat = 513 { } request struct GetWeeklyScheduleRequest { - DayOfWeekBitmap daysToReturn = 0; - ModeForSequenceBitmap modeToReturn = 1; + ScheduleDayOfWeekBitmap daysToReturn = 0; + ScheduleModeBitmap modeToReturn = 1; } request struct SetActiveScheduleRequestRequest { diff --git a/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter b/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter index 66dafa9d16a967..849b65edb275fd 100644 --- a/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter +++ b/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter @@ -1022,6 +1022,15 @@ server cluster Thermostat = 513 { kHeatPumpInverter = 4; } + enum ControlSequenceOfOperationEnum : enum8 { + kCoolingOnly = 0; + kCoolingWithReheat = 1; + kHeatingOnly = 2; + kHeatingWithReheat = 3; + kCoolingAndHeating = 4; + kCoolingAndHeatingWithReheat = 5; + } + enum PresetScenarioEnum : enum8 { kUnspecified = 0; kOccupied = 1; @@ -1054,27 +1063,7 @@ server cluster Thermostat = 513 { kSaturday = 6; } - enum TemperatureSetpointHoldEnum : enum8 { - kSetpointHoldOff = 0; - kSetpointHoldOn = 1; - } - - enum ThermostatControlSequenceEnum : enum8 { - kCoolingOnly = 0; - kCoolingWithReheat = 1; - kHeatingOnly = 2; - kHeatingWithReheat = 3; - kCoolingAndHeating = 4; - kCoolingAndHeatingWithReheat = 5; - } - - enum ThermostatRunningModeEnum : enum8 { - kOff = 0; - kCool = 3; - kHeat = 4; - } - - enum ThermostatSystemModeEnum : enum8 { + enum SystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -1086,6 +1075,17 @@ server cluster Thermostat = 513 { kSleep = 9; } + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatRunningModeEnum : enum8 { + kOff = 0; + kCool = 3; + kHeat = 4; + } + bitmap ACErrorCodeBitmap : bitmap32 { kCompressorFail = 0x1; kRoomSensorFail = 0x2; @@ -1100,17 +1100,6 @@ server cluster Thermostat = 513 { kSelfCalibration = 0x4; } - bitmap DayOfWeekBitmap : bitmap8 { - kSunday = 0x1; - kMonday = 0x2; - kTuesday = 0x4; - kWednesday = 0x8; - kThursday = 0x10; - kFriday = 0x20; - kSaturday = 0x40; - kAway = 0x80; - } - bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; @@ -1126,13 +1115,8 @@ server cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { - kHeatingType = 0x10; - kHeatingFuel = 0x20; - } - - bitmap ModeForSequenceBitmap : bitmap8 { - kHeatSetpointPresent = 0x1; - kCoolSetpointPresent = 0x2; + kHeatingIsHeatPump = 0x10; + kHeatingUsesFuel = 0x20; } bitmap PresetTypeFeaturesBitmap : bitmap16 { @@ -1162,6 +1146,22 @@ server cluster Thermostat = 513 { kOccupancy = 0x4; } + bitmap ScheduleDayOfWeekBitmap : bitmap8 { + kSunday = 0x1; + kMonday = 0x2; + kTuesday = 0x4; + kWednesday = 0x8; + kThursday = 0x10; + kFriday = 0x20; + kSaturday = 0x40; + kAway = 0x80; + } + + bitmap ScheduleModeBitmap : bitmap8 { + kHeatSetpointPresent = 0x1; + kCoolSetpointPresent = 0x2; + } + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { kSupportsPresets = 0x1; kSupportsSetpoints = 0x2; @@ -1175,17 +1175,17 @@ server cluster Thermostat = 513 { } struct ScheduleTransitionStruct { - DayOfWeekBitmap dayOfWeek = 0; + ScheduleDayOfWeekBitmap dayOfWeek = 0; int16u transitionTime = 1; optional octet_string<16> presetHandle = 2; - optional ThermostatSystemModeEnum systemMode = 3; + optional SystemModeEnum systemMode = 3; optional temperature coolingSetpoint = 4; optional temperature heatingSetpoint = 5; } struct ScheduleStruct { nullable octet_string<16> scheduleHandle = 0; - ThermostatSystemModeEnum systemMode = 1; + SystemModeEnum systemMode = 1; optional char_string<64> name = 2; optional octet_string<16> presetHandle = 3; ScheduleTransitionStruct transitions[] = 4; @@ -1213,12 +1213,12 @@ server cluster Thermostat = 513 { } struct ScheduleTypeStruct { - ThermostatSystemModeEnum systemMode = 0; + SystemModeEnum systemMode = 0; int8u numberOfSchedules = 1; ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; } - struct ThermostatScheduleTransitionStruct { + struct WeeklyScheduleTransitionStruct { int16u transitionTime = 0; temperature heatSetpoint = 1; temperature coolSetpoint = 2; @@ -1230,8 +1230,8 @@ server cluster Thermostat = 513 { attribute temperature occupiedCoolingSetpoint = 17; attribute access(write: manage) temperature minCoolSetpointLimit = 23; attribute access(write: manage) temperature maxCoolSetpointLimit = 24; - attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; - attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; + attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; + attribute access(write: manage) SystemModeEnum systemMode = 28; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; readonly attribute event_id eventList[] = 65530; diff --git a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter index 78b349b733bcb8..08ff135a9cc12f 100644 --- a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter +++ b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter @@ -1256,6 +1256,15 @@ server cluster Thermostat = 513 { kHeatPumpInverter = 4; } + enum ControlSequenceOfOperationEnum : enum8 { + kCoolingOnly = 0; + kCoolingWithReheat = 1; + kHeatingOnly = 2; + kHeatingWithReheat = 3; + kCoolingAndHeating = 4; + kCoolingAndHeatingWithReheat = 5; + } + enum PresetScenarioEnum : enum8 { kUnspecified = 0; kOccupied = 1; @@ -1288,27 +1297,7 @@ server cluster Thermostat = 513 { kSaturday = 6; } - enum TemperatureSetpointHoldEnum : enum8 { - kSetpointHoldOff = 0; - kSetpointHoldOn = 1; - } - - enum ThermostatControlSequenceEnum : enum8 { - kCoolingOnly = 0; - kCoolingWithReheat = 1; - kHeatingOnly = 2; - kHeatingWithReheat = 3; - kCoolingAndHeating = 4; - kCoolingAndHeatingWithReheat = 5; - } - - enum ThermostatRunningModeEnum : enum8 { - kOff = 0; - kCool = 3; - kHeat = 4; - } - - enum ThermostatSystemModeEnum : enum8 { + enum SystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -1320,6 +1309,17 @@ server cluster Thermostat = 513 { kSleep = 9; } + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatRunningModeEnum : enum8 { + kOff = 0; + kCool = 3; + kHeat = 4; + } + bitmap ACErrorCodeBitmap : bitmap32 { kCompressorFail = 0x1; kRoomSensorFail = 0x2; @@ -1334,17 +1334,6 @@ server cluster Thermostat = 513 { kSelfCalibration = 0x4; } - bitmap DayOfWeekBitmap : bitmap8 { - kSunday = 0x1; - kMonday = 0x2; - kTuesday = 0x4; - kWednesday = 0x8; - kThursday = 0x10; - kFriday = 0x20; - kSaturday = 0x40; - kAway = 0x80; - } - bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; @@ -1360,13 +1349,8 @@ server cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { - kHeatingType = 0x10; - kHeatingFuel = 0x20; - } - - bitmap ModeForSequenceBitmap : bitmap8 { - kHeatSetpointPresent = 0x1; - kCoolSetpointPresent = 0x2; + kHeatingIsHeatPump = 0x10; + kHeatingUsesFuel = 0x20; } bitmap PresetTypeFeaturesBitmap : bitmap16 { @@ -1396,6 +1380,22 @@ server cluster Thermostat = 513 { kOccupancy = 0x4; } + bitmap ScheduleDayOfWeekBitmap : bitmap8 { + kSunday = 0x1; + kMonday = 0x2; + kTuesday = 0x4; + kWednesday = 0x8; + kThursday = 0x10; + kFriday = 0x20; + kSaturday = 0x40; + kAway = 0x80; + } + + bitmap ScheduleModeBitmap : bitmap8 { + kHeatSetpointPresent = 0x1; + kCoolSetpointPresent = 0x2; + } + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { kSupportsPresets = 0x1; kSupportsSetpoints = 0x2; @@ -1409,17 +1409,17 @@ server cluster Thermostat = 513 { } struct ScheduleTransitionStruct { - DayOfWeekBitmap dayOfWeek = 0; + ScheduleDayOfWeekBitmap dayOfWeek = 0; int16u transitionTime = 1; optional octet_string<16> presetHandle = 2; - optional ThermostatSystemModeEnum systemMode = 3; + optional SystemModeEnum systemMode = 3; optional temperature coolingSetpoint = 4; optional temperature heatingSetpoint = 5; } struct ScheduleStruct { nullable octet_string<16> scheduleHandle = 0; - ThermostatSystemModeEnum systemMode = 1; + SystemModeEnum systemMode = 1; optional char_string<64> name = 2; optional octet_string<16> presetHandle = 3; ScheduleTransitionStruct transitions[] = 4; @@ -1447,12 +1447,12 @@ server cluster Thermostat = 513 { } struct ScheduleTypeStruct { - ThermostatSystemModeEnum systemMode = 0; + SystemModeEnum systemMode = 0; int8u numberOfSchedules = 1; ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; } - struct ThermostatScheduleTransitionStruct { + struct WeeklyScheduleTransitionStruct { int16u transitionTime = 0; temperature heatSetpoint = 1; temperature coolSetpoint = 2; @@ -1478,8 +1478,8 @@ server cluster Thermostat = 513 { attribute access(write: manage) temperature maxCoolSetpointLimit = 24; attribute access(write: manage) int8s minSetpointDeadBand = 25; attribute access(write: manage) RemoteSensingBitmap remoteSensing = 26; - attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; - attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; + attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; + attribute access(write: manage) SystemModeEnum systemMode = 28; readonly attribute ThermostatRunningModeEnum thermostatRunningMode = 30; readonly attribute StartOfWeekEnum startOfWeek = 32; readonly attribute int8u numberOfWeeklyTransitions = 33; diff --git a/examples/placeholder/linux/apps/app1/config.matter b/examples/placeholder/linux/apps/app1/config.matter index a4610249a2db1c..fbc81ce3d3a402 100644 --- a/examples/placeholder/linux/apps/app1/config.matter +++ b/examples/placeholder/linux/apps/app1/config.matter @@ -4377,6 +4377,15 @@ client cluster Thermostat = 513 { kHeatPumpInverter = 4; } + enum ControlSequenceOfOperationEnum : enum8 { + kCoolingOnly = 0; + kCoolingWithReheat = 1; + kHeatingOnly = 2; + kHeatingWithReheat = 3; + kCoolingAndHeating = 4; + kCoolingAndHeatingWithReheat = 5; + } + enum PresetScenarioEnum : enum8 { kUnspecified = 0; kOccupied = 1; @@ -4409,27 +4418,7 @@ client cluster Thermostat = 513 { kSaturday = 6; } - enum TemperatureSetpointHoldEnum : enum8 { - kSetpointHoldOff = 0; - kSetpointHoldOn = 1; - } - - enum ThermostatControlSequenceEnum : enum8 { - kCoolingOnly = 0; - kCoolingWithReheat = 1; - kHeatingOnly = 2; - kHeatingWithReheat = 3; - kCoolingAndHeating = 4; - kCoolingAndHeatingWithReheat = 5; - } - - enum ThermostatRunningModeEnum : enum8 { - kOff = 0; - kCool = 3; - kHeat = 4; - } - - enum ThermostatSystemModeEnum : enum8 { + enum SystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -4441,6 +4430,17 @@ client cluster Thermostat = 513 { kSleep = 9; } + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatRunningModeEnum : enum8 { + kOff = 0; + kCool = 3; + kHeat = 4; + } + bitmap ACErrorCodeBitmap : bitmap32 { kCompressorFail = 0x1; kRoomSensorFail = 0x2; @@ -4455,17 +4455,6 @@ client cluster Thermostat = 513 { kSelfCalibration = 0x4; } - bitmap DayOfWeekBitmap : bitmap8 { - kSunday = 0x1; - kMonday = 0x2; - kTuesday = 0x4; - kWednesday = 0x8; - kThursday = 0x10; - kFriday = 0x20; - kSaturday = 0x40; - kAway = 0x80; - } - bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; @@ -4481,13 +4470,8 @@ client cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { - kHeatingType = 0x10; - kHeatingFuel = 0x20; - } - - bitmap ModeForSequenceBitmap : bitmap8 { - kHeatSetpointPresent = 0x1; - kCoolSetpointPresent = 0x2; + kHeatingIsHeatPump = 0x10; + kHeatingUsesFuel = 0x20; } bitmap PresetTypeFeaturesBitmap : bitmap16 { @@ -4517,6 +4501,22 @@ client cluster Thermostat = 513 { kOccupancy = 0x4; } + bitmap ScheduleDayOfWeekBitmap : bitmap8 { + kSunday = 0x1; + kMonday = 0x2; + kTuesday = 0x4; + kWednesday = 0x8; + kThursday = 0x10; + kFriday = 0x20; + kSaturday = 0x40; + kAway = 0x80; + } + + bitmap ScheduleModeBitmap : bitmap8 { + kHeatSetpointPresent = 0x1; + kCoolSetpointPresent = 0x2; + } + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { kSupportsPresets = 0x1; kSupportsSetpoints = 0x2; @@ -4530,17 +4530,17 @@ client cluster Thermostat = 513 { } struct ScheduleTransitionStruct { - DayOfWeekBitmap dayOfWeek = 0; + ScheduleDayOfWeekBitmap dayOfWeek = 0; int16u transitionTime = 1; optional octet_string<16> presetHandle = 2; - optional ThermostatSystemModeEnum systemMode = 3; + optional SystemModeEnum systemMode = 3; optional temperature coolingSetpoint = 4; optional temperature heatingSetpoint = 5; } struct ScheduleStruct { nullable octet_string<16> scheduleHandle = 0; - ThermostatSystemModeEnum systemMode = 1; + SystemModeEnum systemMode = 1; optional char_string<64> name = 2; optional octet_string<16> presetHandle = 3; ScheduleTransitionStruct transitions[] = 4; @@ -4568,12 +4568,12 @@ client cluster Thermostat = 513 { } struct ScheduleTypeStruct { - ThermostatSystemModeEnum systemMode = 0; + SystemModeEnum systemMode = 0; int8u numberOfSchedules = 1; ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; } - struct ThermostatScheduleTransitionStruct { + struct WeeklyScheduleTransitionStruct { int16u transitionTime = 0; temperature heatSetpoint = 1; temperature coolSetpoint = 2; @@ -4599,8 +4599,8 @@ client cluster Thermostat = 513 { attribute access(write: manage) optional temperature maxCoolSetpointLimit = 24; attribute access(write: manage) optional int8s minSetpointDeadBand = 25; attribute access(write: manage) optional RemoteSensingBitmap remoteSensing = 26; - attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; - attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; + attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; + attribute access(write: manage) SystemModeEnum systemMode = 28; readonly attribute optional AlarmCodeBitmap alarmMask = 29; readonly attribute optional ThermostatRunningModeEnum thermostatRunningMode = 30; readonly attribute optional StartOfWeekEnum startOfWeek = 32; @@ -4656,16 +4656,16 @@ client cluster Thermostat = 513 { response struct GetWeeklyScheduleResponse = 0 { int8u numberOfTransitionsForSequence = 0; - DayOfWeekBitmap dayOfWeekforSequence = 1; - ModeForSequenceBitmap modeForSequence = 2; - ThermostatScheduleTransitionStruct transitions[] = 3; + ScheduleDayOfWeekBitmap dayOfWeekforSequence = 1; + ScheduleModeBitmap modeForSequence = 2; + WeeklyScheduleTransitionStruct transitions[] = 3; } request struct SetWeeklyScheduleRequest { int8u numberOfTransitionsForSequence = 0; - DayOfWeekBitmap dayOfWeekforSequence = 1; - ModeForSequenceBitmap modeForSequence = 2; - ThermostatScheduleTransitionStruct transitions[] = 3; + ScheduleDayOfWeekBitmap dayOfWeekforSequence = 1; + ScheduleModeBitmap modeForSequence = 2; + WeeklyScheduleTransitionStruct transitions[] = 3; } response struct GetRelayStatusLogResponse = 1 { @@ -4678,8 +4678,8 @@ client cluster Thermostat = 513 { } request struct GetWeeklyScheduleRequest { - DayOfWeekBitmap daysToReturn = 0; - ModeForSequenceBitmap modeToReturn = 1; + ScheduleDayOfWeekBitmap daysToReturn = 0; + ScheduleModeBitmap modeToReturn = 1; } request struct SetActiveScheduleRequestRequest { @@ -4763,6 +4763,15 @@ server cluster Thermostat = 513 { kHeatPumpInverter = 4; } + enum ControlSequenceOfOperationEnum : enum8 { + kCoolingOnly = 0; + kCoolingWithReheat = 1; + kHeatingOnly = 2; + kHeatingWithReheat = 3; + kCoolingAndHeating = 4; + kCoolingAndHeatingWithReheat = 5; + } + enum PresetScenarioEnum : enum8 { kUnspecified = 0; kOccupied = 1; @@ -4795,27 +4804,7 @@ server cluster Thermostat = 513 { kSaturday = 6; } - enum TemperatureSetpointHoldEnum : enum8 { - kSetpointHoldOff = 0; - kSetpointHoldOn = 1; - } - - enum ThermostatControlSequenceEnum : enum8 { - kCoolingOnly = 0; - kCoolingWithReheat = 1; - kHeatingOnly = 2; - kHeatingWithReheat = 3; - kCoolingAndHeating = 4; - kCoolingAndHeatingWithReheat = 5; - } - - enum ThermostatRunningModeEnum : enum8 { - kOff = 0; - kCool = 3; - kHeat = 4; - } - - enum ThermostatSystemModeEnum : enum8 { + enum SystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -4827,6 +4816,17 @@ server cluster Thermostat = 513 { kSleep = 9; } + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatRunningModeEnum : enum8 { + kOff = 0; + kCool = 3; + kHeat = 4; + } + bitmap ACErrorCodeBitmap : bitmap32 { kCompressorFail = 0x1; kRoomSensorFail = 0x2; @@ -4841,17 +4841,6 @@ server cluster Thermostat = 513 { kSelfCalibration = 0x4; } - bitmap DayOfWeekBitmap : bitmap8 { - kSunday = 0x1; - kMonday = 0x2; - kTuesday = 0x4; - kWednesday = 0x8; - kThursday = 0x10; - kFriday = 0x20; - kSaturday = 0x40; - kAway = 0x80; - } - bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; @@ -4867,13 +4856,8 @@ server cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { - kHeatingType = 0x10; - kHeatingFuel = 0x20; - } - - bitmap ModeForSequenceBitmap : bitmap8 { - kHeatSetpointPresent = 0x1; - kCoolSetpointPresent = 0x2; + kHeatingIsHeatPump = 0x10; + kHeatingUsesFuel = 0x20; } bitmap PresetTypeFeaturesBitmap : bitmap16 { @@ -4903,6 +4887,22 @@ server cluster Thermostat = 513 { kOccupancy = 0x4; } + bitmap ScheduleDayOfWeekBitmap : bitmap8 { + kSunday = 0x1; + kMonday = 0x2; + kTuesday = 0x4; + kWednesday = 0x8; + kThursday = 0x10; + kFriday = 0x20; + kSaturday = 0x40; + kAway = 0x80; + } + + bitmap ScheduleModeBitmap : bitmap8 { + kHeatSetpointPresent = 0x1; + kCoolSetpointPresent = 0x2; + } + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { kSupportsPresets = 0x1; kSupportsSetpoints = 0x2; @@ -4916,17 +4916,17 @@ server cluster Thermostat = 513 { } struct ScheduleTransitionStruct { - DayOfWeekBitmap dayOfWeek = 0; + ScheduleDayOfWeekBitmap dayOfWeek = 0; int16u transitionTime = 1; optional octet_string<16> presetHandle = 2; - optional ThermostatSystemModeEnum systemMode = 3; + optional SystemModeEnum systemMode = 3; optional temperature coolingSetpoint = 4; optional temperature heatingSetpoint = 5; } struct ScheduleStruct { nullable octet_string<16> scheduleHandle = 0; - ThermostatSystemModeEnum systemMode = 1; + SystemModeEnum systemMode = 1; optional char_string<64> name = 2; optional octet_string<16> presetHandle = 3; ScheduleTransitionStruct transitions[] = 4; @@ -4954,12 +4954,12 @@ server cluster Thermostat = 513 { } struct ScheduleTypeStruct { - ThermostatSystemModeEnum systemMode = 0; + SystemModeEnum systemMode = 0; int8u numberOfSchedules = 1; ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; } - struct ThermostatScheduleTransitionStruct { + struct WeeklyScheduleTransitionStruct { int16u transitionTime = 0; temperature heatSetpoint = 1; temperature coolSetpoint = 2; @@ -4985,8 +4985,8 @@ server cluster Thermostat = 513 { attribute access(write: manage) temperature maxCoolSetpointLimit = 24; attribute access(write: manage) int8s minSetpointDeadBand = 25; attribute access(write: manage) RemoteSensingBitmap remoteSensing = 26; - attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; - attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; + attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; + attribute access(write: manage) SystemModeEnum systemMode = 28; readonly attribute ThermostatRunningModeEnum thermostatRunningMode = 30; readonly attribute StartOfWeekEnum startOfWeek = 32; readonly attribute int8u numberOfWeeklyTransitions = 33; diff --git a/examples/placeholder/linux/apps/app2/config.matter b/examples/placeholder/linux/apps/app2/config.matter index 24bdeebee4f062..98333087fcb276 100644 --- a/examples/placeholder/linux/apps/app2/config.matter +++ b/examples/placeholder/linux/apps/app2/config.matter @@ -4332,6 +4332,15 @@ client cluster Thermostat = 513 { kHeatPumpInverter = 4; } + enum ControlSequenceOfOperationEnum : enum8 { + kCoolingOnly = 0; + kCoolingWithReheat = 1; + kHeatingOnly = 2; + kHeatingWithReheat = 3; + kCoolingAndHeating = 4; + kCoolingAndHeatingWithReheat = 5; + } + enum PresetScenarioEnum : enum8 { kUnspecified = 0; kOccupied = 1; @@ -4364,27 +4373,7 @@ client cluster Thermostat = 513 { kSaturday = 6; } - enum TemperatureSetpointHoldEnum : enum8 { - kSetpointHoldOff = 0; - kSetpointHoldOn = 1; - } - - enum ThermostatControlSequenceEnum : enum8 { - kCoolingOnly = 0; - kCoolingWithReheat = 1; - kHeatingOnly = 2; - kHeatingWithReheat = 3; - kCoolingAndHeating = 4; - kCoolingAndHeatingWithReheat = 5; - } - - enum ThermostatRunningModeEnum : enum8 { - kOff = 0; - kCool = 3; - kHeat = 4; - } - - enum ThermostatSystemModeEnum : enum8 { + enum SystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -4396,6 +4385,17 @@ client cluster Thermostat = 513 { kSleep = 9; } + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatRunningModeEnum : enum8 { + kOff = 0; + kCool = 3; + kHeat = 4; + } + bitmap ACErrorCodeBitmap : bitmap32 { kCompressorFail = 0x1; kRoomSensorFail = 0x2; @@ -4410,17 +4410,6 @@ client cluster Thermostat = 513 { kSelfCalibration = 0x4; } - bitmap DayOfWeekBitmap : bitmap8 { - kSunday = 0x1; - kMonday = 0x2; - kTuesday = 0x4; - kWednesday = 0x8; - kThursday = 0x10; - kFriday = 0x20; - kSaturday = 0x40; - kAway = 0x80; - } - bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; @@ -4436,13 +4425,8 @@ client cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { - kHeatingType = 0x10; - kHeatingFuel = 0x20; - } - - bitmap ModeForSequenceBitmap : bitmap8 { - kHeatSetpointPresent = 0x1; - kCoolSetpointPresent = 0x2; + kHeatingIsHeatPump = 0x10; + kHeatingUsesFuel = 0x20; } bitmap PresetTypeFeaturesBitmap : bitmap16 { @@ -4472,6 +4456,22 @@ client cluster Thermostat = 513 { kOccupancy = 0x4; } + bitmap ScheduleDayOfWeekBitmap : bitmap8 { + kSunday = 0x1; + kMonday = 0x2; + kTuesday = 0x4; + kWednesday = 0x8; + kThursday = 0x10; + kFriday = 0x20; + kSaturday = 0x40; + kAway = 0x80; + } + + bitmap ScheduleModeBitmap : bitmap8 { + kHeatSetpointPresent = 0x1; + kCoolSetpointPresent = 0x2; + } + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { kSupportsPresets = 0x1; kSupportsSetpoints = 0x2; @@ -4485,17 +4485,17 @@ client cluster Thermostat = 513 { } struct ScheduleTransitionStruct { - DayOfWeekBitmap dayOfWeek = 0; + ScheduleDayOfWeekBitmap dayOfWeek = 0; int16u transitionTime = 1; optional octet_string<16> presetHandle = 2; - optional ThermostatSystemModeEnum systemMode = 3; + optional SystemModeEnum systemMode = 3; optional temperature coolingSetpoint = 4; optional temperature heatingSetpoint = 5; } struct ScheduleStruct { nullable octet_string<16> scheduleHandle = 0; - ThermostatSystemModeEnum systemMode = 1; + SystemModeEnum systemMode = 1; optional char_string<64> name = 2; optional octet_string<16> presetHandle = 3; ScheduleTransitionStruct transitions[] = 4; @@ -4523,12 +4523,12 @@ client cluster Thermostat = 513 { } struct ScheduleTypeStruct { - ThermostatSystemModeEnum systemMode = 0; + SystemModeEnum systemMode = 0; int8u numberOfSchedules = 1; ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; } - struct ThermostatScheduleTransitionStruct { + struct WeeklyScheduleTransitionStruct { int16u transitionTime = 0; temperature heatSetpoint = 1; temperature coolSetpoint = 2; @@ -4554,8 +4554,8 @@ client cluster Thermostat = 513 { attribute access(write: manage) optional temperature maxCoolSetpointLimit = 24; attribute access(write: manage) optional int8s minSetpointDeadBand = 25; attribute access(write: manage) optional RemoteSensingBitmap remoteSensing = 26; - attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; - attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; + attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; + attribute access(write: manage) SystemModeEnum systemMode = 28; readonly attribute optional AlarmCodeBitmap alarmMask = 29; readonly attribute optional ThermostatRunningModeEnum thermostatRunningMode = 30; readonly attribute optional StartOfWeekEnum startOfWeek = 32; @@ -4611,16 +4611,16 @@ client cluster Thermostat = 513 { response struct GetWeeklyScheduleResponse = 0 { int8u numberOfTransitionsForSequence = 0; - DayOfWeekBitmap dayOfWeekforSequence = 1; - ModeForSequenceBitmap modeForSequence = 2; - ThermostatScheduleTransitionStruct transitions[] = 3; + ScheduleDayOfWeekBitmap dayOfWeekforSequence = 1; + ScheduleModeBitmap modeForSequence = 2; + WeeklyScheduleTransitionStruct transitions[] = 3; } request struct SetWeeklyScheduleRequest { int8u numberOfTransitionsForSequence = 0; - DayOfWeekBitmap dayOfWeekforSequence = 1; - ModeForSequenceBitmap modeForSequence = 2; - ThermostatScheduleTransitionStruct transitions[] = 3; + ScheduleDayOfWeekBitmap dayOfWeekforSequence = 1; + ScheduleModeBitmap modeForSequence = 2; + WeeklyScheduleTransitionStruct transitions[] = 3; } response struct GetRelayStatusLogResponse = 1 { @@ -4633,8 +4633,8 @@ client cluster Thermostat = 513 { } request struct GetWeeklyScheduleRequest { - DayOfWeekBitmap daysToReturn = 0; - ModeForSequenceBitmap modeToReturn = 1; + ScheduleDayOfWeekBitmap daysToReturn = 0; + ScheduleModeBitmap modeToReturn = 1; } request struct SetActiveScheduleRequestRequest { @@ -4718,6 +4718,15 @@ server cluster Thermostat = 513 { kHeatPumpInverter = 4; } + enum ControlSequenceOfOperationEnum : enum8 { + kCoolingOnly = 0; + kCoolingWithReheat = 1; + kHeatingOnly = 2; + kHeatingWithReheat = 3; + kCoolingAndHeating = 4; + kCoolingAndHeatingWithReheat = 5; + } + enum PresetScenarioEnum : enum8 { kUnspecified = 0; kOccupied = 1; @@ -4750,27 +4759,7 @@ server cluster Thermostat = 513 { kSaturday = 6; } - enum TemperatureSetpointHoldEnum : enum8 { - kSetpointHoldOff = 0; - kSetpointHoldOn = 1; - } - - enum ThermostatControlSequenceEnum : enum8 { - kCoolingOnly = 0; - kCoolingWithReheat = 1; - kHeatingOnly = 2; - kHeatingWithReheat = 3; - kCoolingAndHeating = 4; - kCoolingAndHeatingWithReheat = 5; - } - - enum ThermostatRunningModeEnum : enum8 { - kOff = 0; - kCool = 3; - kHeat = 4; - } - - enum ThermostatSystemModeEnum : enum8 { + enum SystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -4782,6 +4771,17 @@ server cluster Thermostat = 513 { kSleep = 9; } + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatRunningModeEnum : enum8 { + kOff = 0; + kCool = 3; + kHeat = 4; + } + bitmap ACErrorCodeBitmap : bitmap32 { kCompressorFail = 0x1; kRoomSensorFail = 0x2; @@ -4796,17 +4796,6 @@ server cluster Thermostat = 513 { kSelfCalibration = 0x4; } - bitmap DayOfWeekBitmap : bitmap8 { - kSunday = 0x1; - kMonday = 0x2; - kTuesday = 0x4; - kWednesday = 0x8; - kThursday = 0x10; - kFriday = 0x20; - kSaturday = 0x40; - kAway = 0x80; - } - bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; @@ -4822,13 +4811,8 @@ server cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { - kHeatingType = 0x10; - kHeatingFuel = 0x20; - } - - bitmap ModeForSequenceBitmap : bitmap8 { - kHeatSetpointPresent = 0x1; - kCoolSetpointPresent = 0x2; + kHeatingIsHeatPump = 0x10; + kHeatingUsesFuel = 0x20; } bitmap PresetTypeFeaturesBitmap : bitmap16 { @@ -4858,6 +4842,22 @@ server cluster Thermostat = 513 { kOccupancy = 0x4; } + bitmap ScheduleDayOfWeekBitmap : bitmap8 { + kSunday = 0x1; + kMonday = 0x2; + kTuesday = 0x4; + kWednesday = 0x8; + kThursday = 0x10; + kFriday = 0x20; + kSaturday = 0x40; + kAway = 0x80; + } + + bitmap ScheduleModeBitmap : bitmap8 { + kHeatSetpointPresent = 0x1; + kCoolSetpointPresent = 0x2; + } + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { kSupportsPresets = 0x1; kSupportsSetpoints = 0x2; @@ -4871,17 +4871,17 @@ server cluster Thermostat = 513 { } struct ScheduleTransitionStruct { - DayOfWeekBitmap dayOfWeek = 0; + ScheduleDayOfWeekBitmap dayOfWeek = 0; int16u transitionTime = 1; optional octet_string<16> presetHandle = 2; - optional ThermostatSystemModeEnum systemMode = 3; + optional SystemModeEnum systemMode = 3; optional temperature coolingSetpoint = 4; optional temperature heatingSetpoint = 5; } struct ScheduleStruct { nullable octet_string<16> scheduleHandle = 0; - ThermostatSystemModeEnum systemMode = 1; + SystemModeEnum systemMode = 1; optional char_string<64> name = 2; optional octet_string<16> presetHandle = 3; ScheduleTransitionStruct transitions[] = 4; @@ -4909,12 +4909,12 @@ server cluster Thermostat = 513 { } struct ScheduleTypeStruct { - ThermostatSystemModeEnum systemMode = 0; + SystemModeEnum systemMode = 0; int8u numberOfSchedules = 1; ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; } - struct ThermostatScheduleTransitionStruct { + struct WeeklyScheduleTransitionStruct { int16u transitionTime = 0; temperature heatSetpoint = 1; temperature coolSetpoint = 2; @@ -4940,8 +4940,8 @@ server cluster Thermostat = 513 { attribute access(write: manage) temperature maxCoolSetpointLimit = 24; attribute access(write: manage) int8s minSetpointDeadBand = 25; attribute access(write: manage) RemoteSensingBitmap remoteSensing = 26; - attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; - attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; + attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; + attribute access(write: manage) SystemModeEnum systemMode = 28; readonly attribute ThermostatRunningModeEnum thermostatRunningMode = 30; readonly attribute StartOfWeekEnum startOfWeek = 32; readonly attribute int8u numberOfWeeklyTransitions = 33; diff --git a/examples/thermostat/asr/src/TemperatureManager.cpp b/examples/thermostat/asr/src/TemperatureManager.cpp index 03a8192013e88e..074b0c69267781 100644 --- a/examples/thermostat/asr/src/TemperatureManager.cpp +++ b/examples/thermostat/asr/src/TemperatureManager.cpp @@ -34,7 +34,7 @@ CHIP_ERROR TemperatureManager::Init() { app::DataModel::Nullable temp; int16_t heatingSetpoint, coolingSetpoint; - ThermostatSystemModeEnum systemMode; + SystemModeEnum systemMode; PlatformMgr().LockChipStack(); ThermAttr::LocalTemperature::Get(kThermostatEndpoint, temp); @@ -48,31 +48,31 @@ CHIP_ERROR TemperatureManager::Init() mCoolingCelsiusSetPoint = ConvertToPrintableTemp(heatingSetpoint); switch (systemMode) { - case ThermostatSystemModeEnum::kOff: + case SystemModeEnum::kOff: mThermMode = 0; break; - case ThermostatSystemModeEnum::kAuto: + case SystemModeEnum::kAuto: mThermMode = 1; break; - case ThermostatSystemModeEnum::kCool: + case SystemModeEnum::kCool: mThermMode = 3; break; - case ThermostatSystemModeEnum::kHeat: + case SystemModeEnum::kHeat: mThermMode = 4; break; - case ThermostatSystemModeEnum::kEmergencyHeat: + case SystemModeEnum::kEmergencyHeat: mThermMode = 5; break; - case ThermostatSystemModeEnum::kPrecooling: + case SystemModeEnum::kPrecooling: mThermMode = 6; break; - case ThermostatSystemModeEnum::kFanOnly: + case SystemModeEnum::kFanOnly: mThermMode = 7; break; - case ThermostatSystemModeEnum::kDry: + case SystemModeEnum::kDry: mThermMode = 8; break; - case ThermostatSystemModeEnum::kSleep: + case SystemModeEnum::kSleep: mThermMode = 9; break; default: diff --git a/examples/thermostat/nxp/zap/thermostat_matter_thread.matter b/examples/thermostat/nxp/zap/thermostat_matter_thread.matter index e7a51780b84d4f..84b9c54de44029 100644 --- a/examples/thermostat/nxp/zap/thermostat_matter_thread.matter +++ b/examples/thermostat/nxp/zap/thermostat_matter_thread.matter @@ -1806,6 +1806,15 @@ server cluster Thermostat = 513 { kHeatPumpInverter = 4; } + enum ControlSequenceOfOperationEnum : enum8 { + kCoolingOnly = 0; + kCoolingWithReheat = 1; + kHeatingOnly = 2; + kHeatingWithReheat = 3; + kCoolingAndHeating = 4; + kCoolingAndHeatingWithReheat = 5; + } + enum PresetScenarioEnum : enum8 { kUnspecified = 0; kOccupied = 1; @@ -1838,27 +1847,7 @@ server cluster Thermostat = 513 { kSaturday = 6; } - enum TemperatureSetpointHoldEnum : enum8 { - kSetpointHoldOff = 0; - kSetpointHoldOn = 1; - } - - enum ThermostatControlSequenceEnum : enum8 { - kCoolingOnly = 0; - kCoolingWithReheat = 1; - kHeatingOnly = 2; - kHeatingWithReheat = 3; - kCoolingAndHeating = 4; - kCoolingAndHeatingWithReheat = 5; - } - - enum ThermostatRunningModeEnum : enum8 { - kOff = 0; - kCool = 3; - kHeat = 4; - } - - enum ThermostatSystemModeEnum : enum8 { + enum SystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -1870,6 +1859,17 @@ server cluster Thermostat = 513 { kSleep = 9; } + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatRunningModeEnum : enum8 { + kOff = 0; + kCool = 3; + kHeat = 4; + } + bitmap ACErrorCodeBitmap : bitmap32 { kCompressorFail = 0x1; kRoomSensorFail = 0x2; @@ -1884,17 +1884,6 @@ server cluster Thermostat = 513 { kSelfCalibration = 0x4; } - bitmap DayOfWeekBitmap : bitmap8 { - kSunday = 0x1; - kMonday = 0x2; - kTuesday = 0x4; - kWednesday = 0x8; - kThursday = 0x10; - kFriday = 0x20; - kSaturday = 0x40; - kAway = 0x80; - } - bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; @@ -1910,13 +1899,8 @@ server cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { - kHeatingType = 0x10; - kHeatingFuel = 0x20; - } - - bitmap ModeForSequenceBitmap : bitmap8 { - kHeatSetpointPresent = 0x1; - kCoolSetpointPresent = 0x2; + kHeatingIsHeatPump = 0x10; + kHeatingUsesFuel = 0x20; } bitmap PresetTypeFeaturesBitmap : bitmap16 { @@ -1946,6 +1930,22 @@ server cluster Thermostat = 513 { kOccupancy = 0x4; } + bitmap ScheduleDayOfWeekBitmap : bitmap8 { + kSunday = 0x1; + kMonday = 0x2; + kTuesday = 0x4; + kWednesday = 0x8; + kThursday = 0x10; + kFriday = 0x20; + kSaturday = 0x40; + kAway = 0x80; + } + + bitmap ScheduleModeBitmap : bitmap8 { + kHeatSetpointPresent = 0x1; + kCoolSetpointPresent = 0x2; + } + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { kSupportsPresets = 0x1; kSupportsSetpoints = 0x2; @@ -1959,17 +1959,17 @@ server cluster Thermostat = 513 { } struct ScheduleTransitionStruct { - DayOfWeekBitmap dayOfWeek = 0; + ScheduleDayOfWeekBitmap dayOfWeek = 0; int16u transitionTime = 1; optional octet_string<16> presetHandle = 2; - optional ThermostatSystemModeEnum systemMode = 3; + optional SystemModeEnum systemMode = 3; optional temperature coolingSetpoint = 4; optional temperature heatingSetpoint = 5; } struct ScheduleStruct { nullable octet_string<16> scheduleHandle = 0; - ThermostatSystemModeEnum systemMode = 1; + SystemModeEnum systemMode = 1; optional char_string<64> name = 2; optional octet_string<16> presetHandle = 3; ScheduleTransitionStruct transitions[] = 4; @@ -1997,12 +1997,12 @@ server cluster Thermostat = 513 { } struct ScheduleTypeStruct { - ThermostatSystemModeEnum systemMode = 0; + SystemModeEnum systemMode = 0; int8u numberOfSchedules = 1; ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; } - struct ThermostatScheduleTransitionStruct { + struct WeeklyScheduleTransitionStruct { int16u transitionTime = 0; temperature heatSetpoint = 1; temperature coolSetpoint = 2; @@ -2020,8 +2020,8 @@ server cluster Thermostat = 513 { attribute access(write: manage) temperature minCoolSetpointLimit = 23; attribute access(write: manage) temperature maxCoolSetpointLimit = 24; attribute access(write: manage) int8s minSetpointDeadBand = 25; - attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; - attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; + attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; + attribute access(write: manage) SystemModeEnum systemMode = 28; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; readonly attribute event_id eventList[] = 65530; diff --git a/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter b/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter index 6bbdd849c00ebf..8a6fc584b87404 100644 --- a/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter +++ b/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter @@ -1715,6 +1715,15 @@ server cluster Thermostat = 513 { kHeatPumpInverter = 4; } + enum ControlSequenceOfOperationEnum : enum8 { + kCoolingOnly = 0; + kCoolingWithReheat = 1; + kHeatingOnly = 2; + kHeatingWithReheat = 3; + kCoolingAndHeating = 4; + kCoolingAndHeatingWithReheat = 5; + } + enum PresetScenarioEnum : enum8 { kUnspecified = 0; kOccupied = 1; @@ -1747,27 +1756,7 @@ server cluster Thermostat = 513 { kSaturday = 6; } - enum TemperatureSetpointHoldEnum : enum8 { - kSetpointHoldOff = 0; - kSetpointHoldOn = 1; - } - - enum ThermostatControlSequenceEnum : enum8 { - kCoolingOnly = 0; - kCoolingWithReheat = 1; - kHeatingOnly = 2; - kHeatingWithReheat = 3; - kCoolingAndHeating = 4; - kCoolingAndHeatingWithReheat = 5; - } - - enum ThermostatRunningModeEnum : enum8 { - kOff = 0; - kCool = 3; - kHeat = 4; - } - - enum ThermostatSystemModeEnum : enum8 { + enum SystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -1779,6 +1768,17 @@ server cluster Thermostat = 513 { kSleep = 9; } + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatRunningModeEnum : enum8 { + kOff = 0; + kCool = 3; + kHeat = 4; + } + bitmap ACErrorCodeBitmap : bitmap32 { kCompressorFail = 0x1; kRoomSensorFail = 0x2; @@ -1793,17 +1793,6 @@ server cluster Thermostat = 513 { kSelfCalibration = 0x4; } - bitmap DayOfWeekBitmap : bitmap8 { - kSunday = 0x1; - kMonday = 0x2; - kTuesday = 0x4; - kWednesday = 0x8; - kThursday = 0x10; - kFriday = 0x20; - kSaturday = 0x40; - kAway = 0x80; - } - bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; @@ -1819,13 +1808,8 @@ server cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { - kHeatingType = 0x10; - kHeatingFuel = 0x20; - } - - bitmap ModeForSequenceBitmap : bitmap8 { - kHeatSetpointPresent = 0x1; - kCoolSetpointPresent = 0x2; + kHeatingIsHeatPump = 0x10; + kHeatingUsesFuel = 0x20; } bitmap PresetTypeFeaturesBitmap : bitmap16 { @@ -1855,6 +1839,22 @@ server cluster Thermostat = 513 { kOccupancy = 0x4; } + bitmap ScheduleDayOfWeekBitmap : bitmap8 { + kSunday = 0x1; + kMonday = 0x2; + kTuesday = 0x4; + kWednesday = 0x8; + kThursday = 0x10; + kFriday = 0x20; + kSaturday = 0x40; + kAway = 0x80; + } + + bitmap ScheduleModeBitmap : bitmap8 { + kHeatSetpointPresent = 0x1; + kCoolSetpointPresent = 0x2; + } + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { kSupportsPresets = 0x1; kSupportsSetpoints = 0x2; @@ -1868,17 +1868,17 @@ server cluster Thermostat = 513 { } struct ScheduleTransitionStruct { - DayOfWeekBitmap dayOfWeek = 0; + ScheduleDayOfWeekBitmap dayOfWeek = 0; int16u transitionTime = 1; optional octet_string<16> presetHandle = 2; - optional ThermostatSystemModeEnum systemMode = 3; + optional SystemModeEnum systemMode = 3; optional temperature coolingSetpoint = 4; optional temperature heatingSetpoint = 5; } struct ScheduleStruct { nullable octet_string<16> scheduleHandle = 0; - ThermostatSystemModeEnum systemMode = 1; + SystemModeEnum systemMode = 1; optional char_string<64> name = 2; optional octet_string<16> presetHandle = 3; ScheduleTransitionStruct transitions[] = 4; @@ -1906,12 +1906,12 @@ server cluster Thermostat = 513 { } struct ScheduleTypeStruct { - ThermostatSystemModeEnum systemMode = 0; + SystemModeEnum systemMode = 0; int8u numberOfSchedules = 1; ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; } - struct ThermostatScheduleTransitionStruct { + struct WeeklyScheduleTransitionStruct { int16u transitionTime = 0; temperature heatSetpoint = 1; temperature coolSetpoint = 2; @@ -1929,8 +1929,8 @@ server cluster Thermostat = 513 { attribute access(write: manage) temperature minCoolSetpointLimit = 23; attribute access(write: manage) temperature maxCoolSetpointLimit = 24; attribute access(write: manage) int8s minSetpointDeadBand = 25; - attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; - attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; + attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; + attribute access(write: manage) SystemModeEnum systemMode = 28; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; readonly attribute event_id eventList[] = 65530; diff --git a/examples/thermostat/silabs/src/TemperatureManager.cpp b/examples/thermostat/silabs/src/TemperatureManager.cpp index eca486507c3065..e2318eb4906bf9 100644 --- a/examples/thermostat/silabs/src/TemperatureManager.cpp +++ b/examples/thermostat/silabs/src/TemperatureManager.cpp @@ -48,7 +48,7 @@ CHIP_ERROR TemperatureManager::Init() { app::DataModel::Nullable temp; int16_t heatingSetpoint, coolingSetpoint; - ThermostatSystemModeEnum systemMode; + SystemModeEnum systemMode; PlatformMgr().LockChipStack(); ThermAttr::LocalTemperature::Get(kThermostatEndpoint, temp); @@ -62,31 +62,31 @@ CHIP_ERROR TemperatureManager::Init() mCoolingCelsiusSetPoint = ConvertToPrintableTemp(heatingSetpoint); switch (systemMode) { - case ThermostatSystemModeEnum::kOff: + case SystemModeEnum::kOff: mThermMode = 0; break; - case ThermostatSystemModeEnum::kAuto: + case SystemModeEnum::kAuto: mThermMode = 1; break; - case ThermostatSystemModeEnum::kCool: + case SystemModeEnum::kCool: mThermMode = 3; break; - case ThermostatSystemModeEnum::kHeat: + case SystemModeEnum::kHeat: mThermMode = 4; break; - case ThermostatSystemModeEnum::kEmergencyHeat: + case SystemModeEnum::kEmergencyHeat: mThermMode = 5; break; - case ThermostatSystemModeEnum::kPrecooling: + case SystemModeEnum::kPrecooling: mThermMode = 6; break; - case ThermostatSystemModeEnum::kFanOnly: + case SystemModeEnum::kFanOnly: mThermMode = 7; break; - case ThermostatSystemModeEnum::kDry: + case SystemModeEnum::kDry: mThermMode = 8; break; - case ThermostatSystemModeEnum::kSleep: + case SystemModeEnum::kSleep: mThermMode = 9; break; default: diff --git a/examples/thermostat/telink/src/TemperatureManager.cpp b/examples/thermostat/telink/src/TemperatureManager.cpp index 9d4cd07b134cfc..c51c0c7cae4862 100644 --- a/examples/thermostat/telink/src/TemperatureManager.cpp +++ b/examples/thermostat/telink/src/TemperatureManager.cpp @@ -37,7 +37,7 @@ CHIP_ERROR TemperatureManager::Init() { app::DataModel::Nullable temp; int16_t heatingSetpoint, coolingSetpoint; - ThermostatSystemModeEnum systemMode; + SystemModeEnum systemMode; PlatformMgr().LockChipStack(); ThermAttr::LocalTemperature::Get(kThermostatEndpoint, temp); @@ -51,31 +51,31 @@ CHIP_ERROR TemperatureManager::Init() mCoolingCelsiusSetPoint = ConvertToPrintableTemp(heatingSetpoint); switch (systemMode) { - case ThermostatSystemModeEnum::kOff: + case SystemModeEnum::kOff: mThermMode = 0; break; - case ThermostatSystemModeEnum::kAuto: + case SystemModeEnum::kAuto: mThermMode = 1; break; - case ThermostatSystemModeEnum::kCool: + case SystemModeEnum::kCool: mThermMode = 3; break; - case ThermostatSystemModeEnum::kHeat: + case SystemModeEnum::kHeat: mThermMode = 4; break; - case ThermostatSystemModeEnum::kEmergencyHeat: + case SystemModeEnum::kEmergencyHeat: mThermMode = 5; break; - case ThermostatSystemModeEnum::kPrecooling: + case SystemModeEnum::kPrecooling: mThermMode = 6; break; - case ThermostatSystemModeEnum::kFanOnly: + case SystemModeEnum::kFanOnly: mThermMode = 7; break; - case ThermostatSystemModeEnum::kDry: + case SystemModeEnum::kDry: mThermMode = 8; break; - case ThermostatSystemModeEnum::kSleep: + case SystemModeEnum::kSleep: mThermMode = 9; break; default: diff --git a/examples/thermostat/thermostat-common/thermostat.matter b/examples/thermostat/thermostat-common/thermostat.matter index 45c8d7b6b0cf36..1d0339d3167803 100644 --- a/examples/thermostat/thermostat-common/thermostat.matter +++ b/examples/thermostat/thermostat-common/thermostat.matter @@ -1634,6 +1634,15 @@ server cluster Thermostat = 513 { kHeatPumpInverter = 4; } + enum ControlSequenceOfOperationEnum : enum8 { + kCoolingOnly = 0; + kCoolingWithReheat = 1; + kHeatingOnly = 2; + kHeatingWithReheat = 3; + kCoolingAndHeating = 4; + kCoolingAndHeatingWithReheat = 5; + } + enum PresetScenarioEnum : enum8 { kUnspecified = 0; kOccupied = 1; @@ -1666,27 +1675,7 @@ server cluster Thermostat = 513 { kSaturday = 6; } - enum TemperatureSetpointHoldEnum : enum8 { - kSetpointHoldOff = 0; - kSetpointHoldOn = 1; - } - - enum ThermostatControlSequenceEnum : enum8 { - kCoolingOnly = 0; - kCoolingWithReheat = 1; - kHeatingOnly = 2; - kHeatingWithReheat = 3; - kCoolingAndHeating = 4; - kCoolingAndHeatingWithReheat = 5; - } - - enum ThermostatRunningModeEnum : enum8 { - kOff = 0; - kCool = 3; - kHeat = 4; - } - - enum ThermostatSystemModeEnum : enum8 { + enum SystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -1698,6 +1687,17 @@ server cluster Thermostat = 513 { kSleep = 9; } + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatRunningModeEnum : enum8 { + kOff = 0; + kCool = 3; + kHeat = 4; + } + bitmap ACErrorCodeBitmap : bitmap32 { kCompressorFail = 0x1; kRoomSensorFail = 0x2; @@ -1712,17 +1712,6 @@ server cluster Thermostat = 513 { kSelfCalibration = 0x4; } - bitmap DayOfWeekBitmap : bitmap8 { - kSunday = 0x1; - kMonday = 0x2; - kTuesday = 0x4; - kWednesday = 0x8; - kThursday = 0x10; - kFriday = 0x20; - kSaturday = 0x40; - kAway = 0x80; - } - bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; @@ -1738,13 +1727,8 @@ server cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { - kHeatingType = 0x10; - kHeatingFuel = 0x20; - } - - bitmap ModeForSequenceBitmap : bitmap8 { - kHeatSetpointPresent = 0x1; - kCoolSetpointPresent = 0x2; + kHeatingIsHeatPump = 0x10; + kHeatingUsesFuel = 0x20; } bitmap PresetTypeFeaturesBitmap : bitmap16 { @@ -1774,6 +1758,22 @@ server cluster Thermostat = 513 { kOccupancy = 0x4; } + bitmap ScheduleDayOfWeekBitmap : bitmap8 { + kSunday = 0x1; + kMonday = 0x2; + kTuesday = 0x4; + kWednesday = 0x8; + kThursday = 0x10; + kFriday = 0x20; + kSaturday = 0x40; + kAway = 0x80; + } + + bitmap ScheduleModeBitmap : bitmap8 { + kHeatSetpointPresent = 0x1; + kCoolSetpointPresent = 0x2; + } + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { kSupportsPresets = 0x1; kSupportsSetpoints = 0x2; @@ -1787,17 +1787,17 @@ server cluster Thermostat = 513 { } struct ScheduleTransitionStruct { - DayOfWeekBitmap dayOfWeek = 0; + ScheduleDayOfWeekBitmap dayOfWeek = 0; int16u transitionTime = 1; optional octet_string<16> presetHandle = 2; - optional ThermostatSystemModeEnum systemMode = 3; + optional SystemModeEnum systemMode = 3; optional temperature coolingSetpoint = 4; optional temperature heatingSetpoint = 5; } struct ScheduleStruct { nullable octet_string<16> scheduleHandle = 0; - ThermostatSystemModeEnum systemMode = 1; + SystemModeEnum systemMode = 1; optional char_string<64> name = 2; optional octet_string<16> presetHandle = 3; ScheduleTransitionStruct transitions[] = 4; @@ -1825,12 +1825,12 @@ server cluster Thermostat = 513 { } struct ScheduleTypeStruct { - ThermostatSystemModeEnum systemMode = 0; + SystemModeEnum systemMode = 0; int8u numberOfSchedules = 1; ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; } - struct ThermostatScheduleTransitionStruct { + struct WeeklyScheduleTransitionStruct { int16u transitionTime = 0; temperature heatSetpoint = 1; temperature coolSetpoint = 2; @@ -1848,8 +1848,8 @@ server cluster Thermostat = 513 { attribute access(write: manage) temperature minCoolSetpointLimit = 23; attribute access(write: manage) temperature maxCoolSetpointLimit = 24; attribute access(write: manage) int8s minSetpointDeadBand = 25; - attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; - attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; + attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; + attribute access(write: manage) SystemModeEnum systemMode = 28; readonly attribute command_id generatedCommandList[] = 65528; readonly attribute command_id acceptedCommandList[] = 65529; readonly attribute event_id eventList[] = 65530; diff --git a/src/app/clusters/thermostat-server/thermostat-server.cpp b/src/app/clusters/thermostat-server/thermostat-server.cpp index f5334098b61682..cf647ba4151a11 100644 --- a/src/app/clusters/thermostat-server/thermostat-server.cpp +++ b/src/app/clusters/thermostat-server/thermostat-server.cpp @@ -395,39 +395,39 @@ MatterThermostatClusterServerPreAttributeChangedCallback(const app::ConcreteAttr case ControlSequenceOfOperation::Id: { uint8_t requestedCSO; requestedCSO = *value; - if (requestedCSO > to_underlying(ThermostatControlSequenceEnum::kCoolingAndHeatingWithReheat)) + if (requestedCSO > to_underlying(ControlSequenceOfOperationEnum::kCoolingAndHeatingWithReheat)) return imcode::InvalidValue; return imcode::Success; } case SystemMode::Id: { - ThermostatControlSequenceEnum ControlSequenceOfOperation; + ControlSequenceOfOperationEnum ControlSequenceOfOperation; EmberAfStatus status = ControlSequenceOfOperation::Get(endpoint, &ControlSequenceOfOperation); if (status != EMBER_ZCL_STATUS_SUCCESS) { return imcode::InvalidValue; } - auto RequestedSystemMode = static_cast(*value); - if (ControlSequenceOfOperation > ThermostatControlSequenceEnum::kCoolingAndHeatingWithReheat || - RequestedSystemMode > ThermostatSystemModeEnum::kFanOnly) + auto RequestedSystemMode = static_cast(*value); + if (ControlSequenceOfOperation > ControlSequenceOfOperationEnum::kCoolingAndHeatingWithReheat || + RequestedSystemMode > SystemModeEnum::kFanOnly) { return imcode::InvalidValue; } switch (ControlSequenceOfOperation) { - case ThermostatControlSequenceEnum::kCoolingOnly: - case ThermostatControlSequenceEnum::kCoolingWithReheat: - if (RequestedSystemMode == ThermostatSystemModeEnum::kHeat || - RequestedSystemMode == ThermostatSystemModeEnum::kEmergencyHeat) + case ControlSequenceOfOperationEnum::kCoolingOnly: + case ControlSequenceOfOperationEnum::kCoolingWithReheat: + if (RequestedSystemMode == SystemModeEnum::kHeat || + RequestedSystemMode == SystemModeEnum::kEmergencyHeat) return imcode::InvalidValue; else return imcode::Success; - case ThermostatControlSequenceEnum::kHeatingOnly: - case ThermostatControlSequenceEnum::kHeatingWithReheat: - if (RequestedSystemMode == ThermostatSystemModeEnum::kCool || - RequestedSystemMode == ThermostatSystemModeEnum::kPrecooling) + case ControlSequenceOfOperationEnum::kHeatingOnly: + case ControlSequenceOfOperationEnum::kHeatingWithReheat: + if (RequestedSystemMode == SystemModeEnum::kCool || + RequestedSystemMode == SystemModeEnum::kPrecooling) return imcode::InvalidValue; else return imcode::Success; diff --git a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml index 7d64b3aefa9efd..cffafc3e14c9dd 100644 --- a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml @@ -30,7 +30,7 @@ limitations under the License. - + @@ -41,12 +41,12 @@ limitations under the License. - + - + @@ -74,7 +74,7 @@ limitations under the License. - + @@ -94,7 +94,7 @@ limitations under the License. - + @@ -109,8 +109,8 @@ limitations under the License. true true - LocalTemperature - OutdoorTemperature + LocalTemperature + OutdoorTemperature Occupancy AbsMinHeatSetpointLimit AbsMaxHeatSetpointLimit @@ -150,11 +150,11 @@ limitations under the License. RemoteSensing - + ControlSequenceOfOperation - + SystemMode @@ -218,7 +218,7 @@ limitations under the License. ACLouverPosition - ACCoilTemperature + ACCoilTemperature ACCapacityFormat @@ -253,27 +253,25 @@ limitations under the License. Upon receipt, the weekly schedule for updating setpoints SHALL be stored in the thermostat and SHOULD begin at the time of receipt. A status code SHALL be sent in response. - - - + + + Upon receipt, the unit SHOULD send in return the Get Weekly Schedule Response command. The Days to Return and Mode to Return fields are defined as bitmask for the flexibility to support multiple days and multiple modes within one command. If thermostat cannot handle incoming command with multiple days and/or multiple modes within one command, it SHALL send default response of INVALID_COMMAND in return. - - + + This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. - - The Current Weekly Schedule Command is sent from the server in response to the Get Weekly Schedule Command. - + This command has the same payload format as the Set Weekly Schedule. Please refer to the payload detail in - - - + + + Upon receipt, this SHALL set the thermostat @@ -288,7 +286,7 @@ limitations under the License. This command is sent from the thermostat cluster server in response to the Get Relay Status Log. After the Relay Status Entry is sent over the air to the requesting client, the specific entry will be cleared from the thermostat internal log. - + @@ -320,8 +318,8 @@ limitations under the License. - - + + @@ -428,7 +426,7 @@ limitations under the License. - + @@ -455,7 +453,7 @@ limitations under the License. - + @@ -463,10 +461,10 @@ limitations under the License. - + - + diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter index 3e416b67ef4fa5..7bbb37c48bcd3b 100644 --- a/src/controller/data_model/controller-clusters.matter +++ b/src/controller/data_model/controller-clusters.matter @@ -5214,6 +5214,15 @@ client cluster Thermostat = 513 { kHeatPumpInverter = 4; } + enum ControlSequenceOfOperationEnum : enum8 { + kCoolingOnly = 0; + kCoolingWithReheat = 1; + kHeatingOnly = 2; + kHeatingWithReheat = 3; + kCoolingAndHeating = 4; + kCoolingAndHeatingWithReheat = 5; + } + enum PresetScenarioEnum : enum8 { kUnspecified = 0; kOccupied = 1; @@ -5246,27 +5255,7 @@ client cluster Thermostat = 513 { kSaturday = 6; } - enum TemperatureSetpointHoldEnum : enum8 { - kSetpointHoldOff = 0; - kSetpointHoldOn = 1; - } - - enum ThermostatControlSequenceEnum : enum8 { - kCoolingOnly = 0; - kCoolingWithReheat = 1; - kHeatingOnly = 2; - kHeatingWithReheat = 3; - kCoolingAndHeating = 4; - kCoolingAndHeatingWithReheat = 5; - } - - enum ThermostatRunningModeEnum : enum8 { - kOff = 0; - kCool = 3; - kHeat = 4; - } - - enum ThermostatSystemModeEnum : enum8 { + enum SystemModeEnum : enum8 { kOff = 0; kAuto = 1; kCool = 3; @@ -5278,6 +5267,17 @@ client cluster Thermostat = 513 { kSleep = 9; } + enum TemperatureSetpointHoldEnum : enum8 { + kSetpointHoldOff = 0; + kSetpointHoldOn = 1; + } + + enum ThermostatRunningModeEnum : enum8 { + kOff = 0; + kCool = 3; + kHeat = 4; + } + bitmap ACErrorCodeBitmap : bitmap32 { kCompressorFail = 0x1; kRoomSensorFail = 0x2; @@ -5292,17 +5292,6 @@ client cluster Thermostat = 513 { kSelfCalibration = 0x4; } - bitmap DayOfWeekBitmap : bitmap8 { - kSunday = 0x1; - kMonday = 0x2; - kTuesday = 0x4; - kWednesday = 0x8; - kThursday = 0x10; - kFriday = 0x20; - kSaturday = 0x40; - kAway = 0x80; - } - bitmap Feature : bitmap32 { kHeating = 0x1; kCooling = 0x2; @@ -5318,13 +5307,8 @@ client cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { - kHeatingType = 0x10; - kHeatingFuel = 0x20; - } - - bitmap ModeForSequenceBitmap : bitmap8 { - kHeatSetpointPresent = 0x1; - kCoolSetpointPresent = 0x2; + kHeatingIsHeatPump = 0x10; + kHeatingUsesFuel = 0x20; } bitmap PresetTypeFeaturesBitmap : bitmap16 { @@ -5354,6 +5338,22 @@ client cluster Thermostat = 513 { kOccupancy = 0x4; } + bitmap ScheduleDayOfWeekBitmap : bitmap8 { + kSunday = 0x1; + kMonday = 0x2; + kTuesday = 0x4; + kWednesday = 0x8; + kThursday = 0x10; + kFriday = 0x20; + kSaturday = 0x40; + kAway = 0x80; + } + + bitmap ScheduleModeBitmap : bitmap8 { + kHeatSetpointPresent = 0x1; + kCoolSetpointPresent = 0x2; + } + bitmap ScheduleTypeFeaturesBitmap : bitmap16 { kSupportsPresets = 0x1; kSupportsSetpoints = 0x2; @@ -5367,17 +5367,17 @@ client cluster Thermostat = 513 { } struct ScheduleTransitionStruct { - DayOfWeekBitmap dayOfWeek = 0; + ScheduleDayOfWeekBitmap dayOfWeek = 0; int16u transitionTime = 1; optional octet_string<16> presetHandle = 2; - optional ThermostatSystemModeEnum systemMode = 3; + optional SystemModeEnum systemMode = 3; optional temperature coolingSetpoint = 4; optional temperature heatingSetpoint = 5; } struct ScheduleStruct { nullable octet_string<16> scheduleHandle = 0; - ThermostatSystemModeEnum systemMode = 1; + SystemModeEnum systemMode = 1; optional char_string<64> name = 2; optional octet_string<16> presetHandle = 3; ScheduleTransitionStruct transitions[] = 4; @@ -5405,12 +5405,12 @@ client cluster Thermostat = 513 { } struct ScheduleTypeStruct { - ThermostatSystemModeEnum systemMode = 0; + SystemModeEnum systemMode = 0; int8u numberOfSchedules = 1; ScheduleTypeFeaturesBitmap scheduleTypeFeatures = 2; } - struct ThermostatScheduleTransitionStruct { + struct WeeklyScheduleTransitionStruct { int16u transitionTime = 0; temperature heatSetpoint = 1; temperature coolSetpoint = 2; @@ -5436,8 +5436,8 @@ client cluster Thermostat = 513 { attribute access(write: manage) optional temperature maxCoolSetpointLimit = 24; attribute access(write: manage) optional int8s minSetpointDeadBand = 25; attribute access(write: manage) optional RemoteSensingBitmap remoteSensing = 26; - attribute access(write: manage) ThermostatControlSequenceEnum controlSequenceOfOperation = 27; - attribute access(write: manage) ThermostatSystemModeEnum systemMode = 28; + attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; + attribute access(write: manage) SystemModeEnum systemMode = 28; readonly attribute optional AlarmCodeBitmap alarmMask = 29; readonly attribute optional ThermostatRunningModeEnum thermostatRunningMode = 30; readonly attribute optional StartOfWeekEnum startOfWeek = 32; @@ -5493,16 +5493,16 @@ client cluster Thermostat = 513 { response struct GetWeeklyScheduleResponse = 0 { int8u numberOfTransitionsForSequence = 0; - DayOfWeekBitmap dayOfWeekforSequence = 1; - ModeForSequenceBitmap modeForSequence = 2; - ThermostatScheduleTransitionStruct transitions[] = 3; + ScheduleDayOfWeekBitmap dayOfWeekforSequence = 1; + ScheduleModeBitmap modeForSequence = 2; + WeeklyScheduleTransitionStruct transitions[] = 3; } request struct SetWeeklyScheduleRequest { int8u numberOfTransitionsForSequence = 0; - DayOfWeekBitmap dayOfWeekforSequence = 1; - ModeForSequenceBitmap modeForSequence = 2; - ThermostatScheduleTransitionStruct transitions[] = 3; + ScheduleDayOfWeekBitmap dayOfWeekforSequence = 1; + ScheduleModeBitmap modeForSequence = 2; + WeeklyScheduleTransitionStruct transitions[] = 3; } response struct GetRelayStatusLogResponse = 1 { @@ -5515,8 +5515,8 @@ client cluster Thermostat = 513 { } request struct GetWeeklyScheduleRequest { - DayOfWeekBitmap daysToReturn = 0; - ModeForSequenceBitmap modeToReturn = 1; + ScheduleDayOfWeekBitmap daysToReturn = 0; + ScheduleModeBitmap modeToReturn = 1; } request struct SetActiveScheduleRequestRequest { diff --git a/src/controller/java/generated/java/chip/devicecontroller/ChipClusters.java b/src/controller/java/generated/java/chip/devicecontroller/ChipClusters.java index f0ea725da88145..6db20856670af4 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/ChipClusters.java +++ b/src/controller/java/generated/java/chip/devicecontroller/ChipClusters.java @@ -32885,11 +32885,11 @@ public void onResponse(StructType invokeStructValue) { }}, commandId, value, timedInvokeTimeoutMs); } - public void setWeeklySchedule(DefaultClusterCallback callback, Integer numberOfTransitionsForSequence, Integer dayOfWeekforSequence, Integer modeForSequence, ArrayList transitions) { + public void setWeeklySchedule(DefaultClusterCallback callback, Integer numberOfTransitionsForSequence, Integer dayOfWeekforSequence, Integer modeForSequence, ArrayList transitions) { setWeeklySchedule(callback, numberOfTransitionsForSequence, dayOfWeekforSequence, modeForSequence, transitions, 0); } - public void setWeeklySchedule(DefaultClusterCallback callback, Integer numberOfTransitionsForSequence, Integer dayOfWeekforSequence, Integer modeForSequence, ArrayList transitions, int timedInvokeTimeoutMs) { + public void setWeeklySchedule(DefaultClusterCallback callback, Integer numberOfTransitionsForSequence, Integer dayOfWeekforSequence, Integer modeForSequence, ArrayList transitions, int timedInvokeTimeoutMs) { final long commandId = 1L; ArrayList elements = new ArrayList<>(); @@ -32944,7 +32944,7 @@ public void onResponse(StructType invokeStructValue) { final long modeForSequenceFieldID = 2L; Integer modeForSequence = null; final long transitionsFieldID = 3L; - ArrayList transitions = null; + ArrayList transitions = null; for (StructElement element: invokeStructValue.value()) { if (element.contextTagNum() == numberOfTransitionsForSequenceFieldID) { if (element.value(BaseTLVType.class).type() == TLVType.UInt) { @@ -32964,7 +32964,7 @@ public void onResponse(StructType invokeStructValue) { } else if (element.contextTagNum() == transitionsFieldID) { if (element.value(BaseTLVType.class).type() == TLVType.Array) { ArrayType castingValue = element.value(ArrayType.class); - transitions = castingValue.map((elementcastingValue) -> ChipStructs.ThermostatClusterThermostatScheduleTransitionStruct.decodeTlv(elementcastingValue)); + transitions = castingValue.map((elementcastingValue) -> ChipStructs.ThermostatClusterWeeklyScheduleTransitionStruct.decodeTlv(elementcastingValue)); } } } @@ -33182,7 +33182,7 @@ public void onResponse(StructType invokeStructValue) { } public interface GetWeeklyScheduleResponseCallback extends BaseClusterCallback { - void onSuccess(Integer numberOfTransitionsForSequence, Integer dayOfWeekforSequence, Integer modeForSequence, ArrayList transitions); + void onSuccess(Integer numberOfTransitionsForSequence, Integer dayOfWeekforSequence, Integer modeForSequence, ArrayList transitions); } public interface GetRelayStatusLogResponseCallback extends BaseClusterCallback { diff --git a/src/controller/java/generated/java/chip/devicecontroller/ChipStructs.java b/src/controller/java/generated/java/chip/devicecontroller/ChipStructs.java index 828c5e201b92c6..1d75f6e1b3e09d 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/ChipStructs.java +++ b/src/controller/java/generated/java/chip/devicecontroller/ChipStructs.java @@ -6596,7 +6596,7 @@ public String toString() { return output.toString(); } } -public static class ThermostatClusterThermostatScheduleTransitionStruct { +public static class ThermostatClusterWeeklyScheduleTransitionStruct { public Integer transitionTime; public Integer heatSetpoint; public Integer coolSetpoint; @@ -6604,7 +6604,7 @@ public static class ThermostatClusterThermostatScheduleTransitionStruct { private static final long HEAT_SETPOINT_ID = 1L; private static final long COOL_SETPOINT_ID = 2L; - public ThermostatClusterThermostatScheduleTransitionStruct( + public ThermostatClusterWeeklyScheduleTransitionStruct( Integer transitionTime, Integer heatSetpoint, Integer coolSetpoint @@ -6623,7 +6623,7 @@ public StructType encodeTlv() { return new StructType(values); } - public static ThermostatClusterThermostatScheduleTransitionStruct decodeTlv(BaseTLVType tlvValue) { + public static ThermostatClusterWeeklyScheduleTransitionStruct decodeTlv(BaseTLVType tlvValue) { if (tlvValue == null || tlvValue.type() != TLVType.Struct) { return null; } @@ -6648,7 +6648,7 @@ public static ThermostatClusterThermostatScheduleTransitionStruct decodeTlv(Base } } } - return new ThermostatClusterThermostatScheduleTransitionStruct( + return new ThermostatClusterWeeklyScheduleTransitionStruct( transitionTime, heatSetpoint, coolSetpoint @@ -6658,7 +6658,7 @@ public static ThermostatClusterThermostatScheduleTransitionStruct decodeTlv(Base @Override public String toString() { StringBuilder output = new StringBuilder(); - output.append("ThermostatClusterThermostatScheduleTransitionStruct {\n"); + output.append("ThermostatClusterWeeklyScheduleTransitionStruct {\n"); output.append("\ttransitionTime: "); output.append(transitionTime); output.append("\n"); diff --git a/src/controller/java/generated/java/chip/devicecontroller/ClusterInfoMapping.java b/src/controller/java/generated/java/chip/devicecontroller/ClusterInfoMapping.java index ff081ad810270e..802bb3480cfd82 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/ClusterInfoMapping.java +++ b/src/controller/java/generated/java/chip/devicecontroller/ClusterInfoMapping.java @@ -11070,7 +11070,7 @@ public void setCallbackDelegate(ClusterCommandCallback callback) { } @Override - public void onSuccess(Integer numberOfTransitionsForSequence, Integer dayOfWeekforSequence, Integer modeForSequence, ArrayList transitions) { + public void onSuccess(Integer numberOfTransitionsForSequence, Integer dayOfWeekforSequence, Integer modeForSequence, ArrayList transitions) { Map responseValues = new LinkedHashMap<>(); CommandResponseInfo numberOfTransitionsForSequenceResponseValue = new CommandResponseInfo("numberOfTransitionsForSequence", "Integer"); @@ -11079,7 +11079,7 @@ public void onSuccess(Integer numberOfTransitionsForSequence, Integer dayOfWeekf responseValues.put(dayOfWeekforSequenceResponseValue, dayOfWeekforSequence); CommandResponseInfo modeForSequenceResponseValue = new CommandResponseInfo("modeForSequence", "Integer"); responseValues.put(modeForSequenceResponseValue, modeForSequence); - // transitions: ThermostatScheduleTransitionStruct + // transitions: WeeklyScheduleTransitionStruct // Conversion from this type to Java is not properly implemented yet callback.onSuccess(responseValues); @@ -22310,7 +22310,7 @@ public Map> getCommandMap() { commandArguments.get("dayOfWeekforSequence") , (Integer) commandArguments.get("modeForSequence") - , (ArrayList) + , (ArrayList) commandArguments.get("transitions") ); }, diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/files.gni b/src/controller/java/generated/java/chip/devicecontroller/cluster/files.gni index 7b02bb18aff00a..c45a3ac24ad874 100644 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/files.gni +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/files.gni @@ -85,7 +85,7 @@ structs_sources = [ "${chip_root}/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleStruct.kt", "${chip_root}/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleTransitionStruct.kt", "${chip_root}/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterScheduleTypeStruct.kt", - "${chip_root}/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt", + "${chip_root}/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterWeeklyScheduleTransitionStruct.kt", "${chip_root}/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt", "${chip_root}/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt", "${chip_root}/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt", diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterWeeklyScheduleTransitionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterWeeklyScheduleTransitionStruct.kt new file mode 100644 index 00000000000000..9efc9291b92a0b --- /dev/null +++ b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterWeeklyScheduleTransitionStruct.kt @@ -0,0 +1,71 @@ +/* + * + * Copyright (c) 2023 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package chip.devicecontroller.cluster.structs + +import chip.devicecontroller.cluster.* +import matter.tlv.ContextSpecificTag +import matter.tlv.Tag +import matter.tlv.TlvReader +import matter.tlv.TlvWriter + +class ThermostatClusterWeeklyScheduleTransitionStruct( + val transitionTime: UInt, + val heatSetpoint: Int, + val coolSetpoint: Int +) { + override fun toString(): String = buildString { + append("ThermostatClusterWeeklyScheduleTransitionStruct {\n") + append("\ttransitionTime : $transitionTime\n") + append("\theatSetpoint : $heatSetpoint\n") + append("\tcoolSetpoint : $coolSetpoint\n") + append("}\n") + } + + fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { + tlvWriter.apply { + startStructure(tlvTag) + put(ContextSpecificTag(TAG_TRANSITION_TIME), transitionTime) + put(ContextSpecificTag(TAG_HEAT_SETPOINT), heatSetpoint) + put(ContextSpecificTag(TAG_COOL_SETPOINT), coolSetpoint) + endStructure() + } + } + + companion object { + private const val TAG_TRANSITION_TIME = 0 + private const val TAG_HEAT_SETPOINT = 1 + private const val TAG_COOL_SETPOINT = 2 + + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ThermostatClusterWeeklyScheduleTransitionStruct { + tlvReader.enterStructure(tlvTag) + val transitionTime = tlvReader.getUInt(ContextSpecificTag(TAG_TRANSITION_TIME)) + val heatSetpoint = tlvReader.getInt(ContextSpecificTag(TAG_HEAT_SETPOINT)) + val coolSetpoint = tlvReader.getInt(ContextSpecificTag(TAG_COOL_SETPOINT)) + + tlvReader.exitContainer() + + return ThermostatClusterWeeklyScheduleTransitionStruct( + transitionTime, + heatSetpoint, + coolSetpoint + ) + } + } +} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatCluster.kt index a5865b38432226..27d3392520984f 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatCluster.kt +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatCluster.kt @@ -25,7 +25,7 @@ class ThermostatCluster(private val controller: MatterController, private val en val numberOfTransitionsForSequence: UByte, val dayOfWeekforSequence: UInt, val modeForSequence: UInt, - val transitions: List + val transitions: List ) class GetRelayStatusLogResponse( @@ -99,7 +99,7 @@ class ThermostatCluster(private val controller: MatterController, private val en numberOfTransitionsForSequence: UByte, dayOfWeekforSequence: UInt, modeForSequence: UInt, - transitions: List, + transitions: List, timedInvokeTimeoutMs: Int? = null ) { val commandId = 1L diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/files.gni b/src/controller/java/generated/java/matter/devicecontroller/cluster/files.gni index dfbf6d20949b0e..7fda62d8c5e2f4 100644 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/files.gni +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/files.gni @@ -85,7 +85,7 @@ matter_structs_sources = [ "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleStruct.kt", "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleTransitionStruct.kt", "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleTypeStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt", + "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterWeeklyScheduleTransitionStruct.kt", "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt", "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt", "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt", diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterWeeklyScheduleTransitionStruct.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterWeeklyScheduleTransitionStruct.kt new file mode 100644 index 00000000000000..20be46cb17e56d --- /dev/null +++ b/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterWeeklyScheduleTransitionStruct.kt @@ -0,0 +1,71 @@ +/* + * + * Copyright (c) 2023 Project CHIP Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package matter.devicecontroller.cluster.structs + +import matter.devicecontroller.cluster.* +import matter.tlv.ContextSpecificTag +import matter.tlv.Tag +import matter.tlv.TlvReader +import matter.tlv.TlvWriter + +class ThermostatClusterWeeklyScheduleTransitionStruct( + val transitionTime: UShort, + val heatSetpoint: Short, + val coolSetpoint: Short +) { + override fun toString(): String = buildString { + append("ThermostatClusterWeeklyScheduleTransitionStruct {\n") + append("\ttransitionTime : $transitionTime\n") + append("\theatSetpoint : $heatSetpoint\n") + append("\tcoolSetpoint : $coolSetpoint\n") + append("}\n") + } + + fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { + tlvWriter.apply { + startStructure(tlvTag) + put(ContextSpecificTag(TAG_TRANSITION_TIME), transitionTime) + put(ContextSpecificTag(TAG_HEAT_SETPOINT), heatSetpoint) + put(ContextSpecificTag(TAG_COOL_SETPOINT), coolSetpoint) + endStructure() + } + } + + companion object { + private const val TAG_TRANSITION_TIME = 0 + private const val TAG_HEAT_SETPOINT = 1 + private const val TAG_COOL_SETPOINT = 2 + + fun fromTlv( + tlvTag: Tag, + tlvReader: TlvReader + ): ThermostatClusterWeeklyScheduleTransitionStruct { + tlvReader.enterStructure(tlvTag) + val transitionTime = tlvReader.getUShort(ContextSpecificTag(TAG_TRANSITION_TIME)) + val heatSetpoint = tlvReader.getShort(ContextSpecificTag(TAG_HEAT_SETPOINT)) + val coolSetpoint = tlvReader.getShort(ContextSpecificTag(TAG_COOL_SETPOINT)) + + tlvReader.exitContainer() + + return ThermostatClusterWeeklyScheduleTransitionStruct( + transitionTime, + heatSetpoint, + coolSetpoint + ) + } + } +} diff --git a/src/controller/java/zap-generated/CHIPInvokeCallbacks.cpp b/src/controller/java/zap-generated/CHIPInvokeCallbacks.cpp index b967054727fd82..e433a437a34d6a 100644 --- a/src/controller/java/zap-generated/CHIPInvokeCallbacks.cpp +++ b/src/controller/java/zap-generated/CHIPInvokeCallbacks.cpp @@ -4688,27 +4688,25 @@ void CHIPThermostatClusterGetWeeklyScheduleResponseCallback::CallbackFn( newElement_0_coolSetpointCtorSignature.c_str(), jninewElement_0_coolSetpoint, newElement_0_coolSetpoint); - jclass thermostatScheduleTransitionStructStructClass_1; + jclass weeklyScheduleTransitionStructStructClass_1; err = chip::JniReferences::GetInstance().GetClassRef( - env, "chip/devicecontroller/ChipStructs$ThermostatClusterThermostatScheduleTransitionStruct", - thermostatScheduleTransitionStructStructClass_1); + env, "chip/devicecontroller/ChipStructs$ThermostatClusterWeeklyScheduleTransitionStruct", + weeklyScheduleTransitionStructStructClass_1); if (err != CHIP_NO_ERROR) { - ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterThermostatScheduleTransitionStruct"); + ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterWeeklyScheduleTransitionStruct"); return; } - jmethodID thermostatScheduleTransitionStructStructCtor_1 = - env->GetMethodID(thermostatScheduleTransitionStructStructClass_1, "", - "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V"); - if (thermostatScheduleTransitionStructStructCtor_1 == nullptr) + jmethodID weeklyScheduleTransitionStructStructCtor_1 = env->GetMethodID( + weeklyScheduleTransitionStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V"); + if (weeklyScheduleTransitionStructStructCtor_1 == nullptr) { - ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterThermostatScheduleTransitionStruct constructor"); + ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterWeeklyScheduleTransitionStruct constructor"); return; } - newElement_0 = - env->NewObject(thermostatScheduleTransitionStructStructClass_1, thermostatScheduleTransitionStructStructCtor_1, - newElement_0_transitionTime, newElement_0_heatSetpoint, newElement_0_coolSetpoint); + newElement_0 = env->NewObject(weeklyScheduleTransitionStructStructClass_1, weeklyScheduleTransitionStructStructCtor_1, + newElement_0_transitionTime, newElement_0_heatSetpoint, newElement_0_coolSetpoint); chip::JniReferences::GetInstance().AddToList(Transitions, newElement_0); } diff --git a/src/controller/python/chip/clusters/CHIPClusters.py b/src/controller/python/chip/clusters/CHIPClusters.py index fcc4d27cde3ce1..a7571cdf505303 100644 --- a/src/controller/python/chip/clusters/CHIPClusters.py +++ b/src/controller/python/chip/clusters/CHIPClusters.py @@ -7355,7 +7355,7 @@ class ChipClusters: "numberOfTransitionsForSequence": "int", "dayOfWeekforSequence": "int", "modeForSequence": "int", - "transitions": "ThermostatScheduleTransitionStruct", + "transitions": "WeeklyScheduleTransitionStruct", }, }, 0x00000002: { diff --git a/src/controller/python/chip/clusters/Objects.py b/src/controller/python/chip/clusters/Objects.py index bd89ce70747f3c..13e83ac88cb82a 100644 --- a/src/controller/python/chip/clusters/Objects.py +++ b/src/controller/python/chip/clusters/Objects.py @@ -26174,8 +26174,8 @@ def descriptor(cls) -> ClusterObjectDescriptor: ClusterObjectFieldDescriptor(Label="maxCoolSetpointLimit", Tag=0x00000018, Type=typing.Optional[int]), ClusterObjectFieldDescriptor(Label="minSetpointDeadBand", Tag=0x00000019, Type=typing.Optional[int]), ClusterObjectFieldDescriptor(Label="remoteSensing", Tag=0x0000001A, Type=typing.Optional[uint]), - ClusterObjectFieldDescriptor(Label="controlSequenceOfOperation", Tag=0x0000001B, Type=Thermostat.Enums.ThermostatControlSequenceEnum), - ClusterObjectFieldDescriptor(Label="systemMode", Tag=0x0000001C, Type=Thermostat.Enums.ThermostatSystemModeEnum), + ClusterObjectFieldDescriptor(Label="controlSequenceOfOperation", Tag=0x0000001B, Type=Thermostat.Enums.ControlSequenceOfOperationEnum), + ClusterObjectFieldDescriptor(Label="systemMode", Tag=0x0000001C, Type=Thermostat.Enums.SystemModeEnum), ClusterObjectFieldDescriptor(Label="alarmMask", Tag=0x0000001D, Type=typing.Optional[uint]), ClusterObjectFieldDescriptor(Label="thermostatRunningMode", Tag=0x0000001E, Type=typing.Optional[Thermostat.Enums.ThermostatRunningModeEnum]), ClusterObjectFieldDescriptor(Label="startOfWeek", Tag=0x00000020, Type=typing.Optional[Thermostat.Enums.StartOfWeekEnum]), @@ -26245,8 +26245,8 @@ def descriptor(cls) -> ClusterObjectDescriptor: maxCoolSetpointLimit: 'typing.Optional[int]' = None minSetpointDeadBand: 'typing.Optional[int]' = None remoteSensing: 'typing.Optional[uint]' = None - controlSequenceOfOperation: 'Thermostat.Enums.ThermostatControlSequenceEnum' = None - systemMode: 'Thermostat.Enums.ThermostatSystemModeEnum' = None + controlSequenceOfOperation: 'Thermostat.Enums.ControlSequenceOfOperationEnum' = None + systemMode: 'Thermostat.Enums.SystemModeEnum' = None alarmMask: 'typing.Optional[uint]' = None thermostatRunningMode: 'typing.Optional[Thermostat.Enums.ThermostatRunningModeEnum]' = None startOfWeek: 'typing.Optional[Thermostat.Enums.StartOfWeekEnum]' = None @@ -26350,6 +26350,19 @@ class ACTypeEnum(MatterIntEnum): # enum value. This specific should never be transmitted. kUnknownEnumValue = 5, + class ControlSequenceOfOperationEnum(MatterIntEnum): + kCoolingOnly = 0x00 + kCoolingWithReheat = 0x01 + kHeatingOnly = 0x02 + kHeatingWithReheat = 0x03 + kCoolingAndHeating = 0x04 + kCoolingAndHeatingWithReheat = 0x05 + # All received enum values that are not listed above will be mapped + # to kUnknownEnumValue. This is a helper enum value that should only + # be used by code to process how it handles receiving and unknown + # enum value. This specific should never be transmitted. + kUnknownEnumValue = 6, + class PresetScenarioEnum(MatterIntEnum): kUnspecified = 0x00 kOccupied = 0x01 @@ -26398,27 +26411,30 @@ class StartOfWeekEnum(MatterIntEnum): # enum value. This specific should never be transmitted. kUnknownEnumValue = 7, - class TemperatureSetpointHoldEnum(MatterIntEnum): - kSetpointHoldOff = 0x00 - kSetpointHoldOn = 0x01 + class SystemModeEnum(MatterIntEnum): + kOff = 0x00 + kAuto = 0x01 + kCool = 0x03 + kHeat = 0x04 + kEmergencyHeat = 0x05 + kPrecooling = 0x06 + kFanOnly = 0x07 + kDry = 0x08 + kSleep = 0x09 # All received enum values that are not listed above will be mapped # to kUnknownEnumValue. This is a helper enum value that should only # be used by code to process how it handles receiving and unknown # enum value. This specific should never be transmitted. kUnknownEnumValue = 2, - class ThermostatControlSequenceEnum(MatterIntEnum): - kCoolingOnly = 0x00 - kCoolingWithReheat = 0x01 - kHeatingOnly = 0x02 - kHeatingWithReheat = 0x03 - kCoolingAndHeating = 0x04 - kCoolingAndHeatingWithReheat = 0x05 + class TemperatureSetpointHoldEnum(MatterIntEnum): + kSetpointHoldOff = 0x00 + kSetpointHoldOn = 0x01 # All received enum values that are not listed above will be mapped # to kUnknownEnumValue. This is a helper enum value that should only # be used by code to process how it handles receiving and unknown # enum value. This specific should never be transmitted. - kUnknownEnumValue = 6, + kUnknownEnumValue = 2, class ThermostatRunningModeEnum(MatterIntEnum): kOff = 0x00 @@ -26430,22 +26446,6 @@ class ThermostatRunningModeEnum(MatterIntEnum): # enum value. This specific should never be transmitted. kUnknownEnumValue = 1, - class ThermostatSystemModeEnum(MatterIntEnum): - kOff = 0x00 - kAuto = 0x01 - kCool = 0x03 - kHeat = 0x04 - kEmergencyHeat = 0x05 - kPrecooling = 0x06 - kFanOnly = 0x07 - kDry = 0x08 - kSleep = 0x09 - # All received enum values that are not listed above will be mapped - # to kUnknownEnumValue. This is a helper enum value that should only - # be used by code to process how it handles receiving and unknown - # enum value. This specific should never be transmitted. - kUnknownEnumValue = 2, - class Bitmaps: class ACErrorCodeBitmap(IntFlag): kCompressorFail = 0x1 @@ -26459,16 +26459,6 @@ class AlarmCodeBitmap(IntFlag): kHardware = 0x2 kSelfCalibration = 0x4 - class DayOfWeekBitmap(IntFlag): - kSunday = 0x1 - kMonday = 0x2 - kTuesday = 0x4 - kWednesday = 0x8 - kThursday = 0x10 - kFriday = 0x20 - kSaturday = 0x40 - kAway = 0x80 - class Feature(IntFlag): kHeating = 0x1 kCooling = 0x2 @@ -26483,12 +26473,8 @@ class Feature(IntFlag): kQueuedPresetsSupported = 0x400 class HVACSystemTypeBitmap(IntFlag): - kHeatingType = 0x10 - kHeatingFuel = 0x20 - - class ModeForSequenceBitmap(IntFlag): - kHeatSetpointPresent = 0x1 - kCoolSetpointPresent = 0x2 + kHeatingIsHeatPump = 0x10 + kHeatingUsesFuel = 0x20 class PresetTypeFeaturesBitmap(IntFlag): kAutomatic = 0x1 @@ -26513,6 +26499,20 @@ class RemoteSensingBitmap(IntFlag): kOutdoorTemperature = 0x2 kOccupancy = 0x4 + class ScheduleDayOfWeekBitmap(IntFlag): + kSunday = 0x1 + kMonday = 0x2 + kTuesday = 0x4 + kWednesday = 0x8 + kThursday = 0x10 + kFriday = 0x20 + kSaturday = 0x40 + kAway = 0x80 + + class ScheduleModeBitmap(IntFlag): + kHeatSetpointPresent = 0x1 + kCoolSetpointPresent = 0x2 + class ScheduleTypeFeaturesBitmap(IntFlag): kSupportsPresets = 0x1 kSupportsSetpoints = 0x2 @@ -26533,7 +26533,7 @@ def descriptor(cls) -> ClusterObjectDescriptor: ClusterObjectFieldDescriptor(Label="dayOfWeek", Tag=0, Type=uint), ClusterObjectFieldDescriptor(Label="transitionTime", Tag=1, Type=uint), ClusterObjectFieldDescriptor(Label="presetHandle", Tag=2, Type=typing.Optional[bytes]), - ClusterObjectFieldDescriptor(Label="systemMode", Tag=3, Type=typing.Optional[Thermostat.Enums.ThermostatSystemModeEnum]), + ClusterObjectFieldDescriptor(Label="systemMode", Tag=3, Type=typing.Optional[Thermostat.Enums.SystemModeEnum]), ClusterObjectFieldDescriptor(Label="coolingSetpoint", Tag=4, Type=typing.Optional[int]), ClusterObjectFieldDescriptor(Label="heatingSetpoint", Tag=5, Type=typing.Optional[int]), ]) @@ -26541,7 +26541,7 @@ def descriptor(cls) -> ClusterObjectDescriptor: dayOfWeek: 'uint' = 0 transitionTime: 'uint' = 0 presetHandle: 'typing.Optional[bytes]' = None - systemMode: 'typing.Optional[Thermostat.Enums.ThermostatSystemModeEnum]' = None + systemMode: 'typing.Optional[Thermostat.Enums.SystemModeEnum]' = None coolingSetpoint: 'typing.Optional[int]' = None heatingSetpoint: 'typing.Optional[int]' = None @@ -26552,7 +26552,7 @@ def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ ClusterObjectFieldDescriptor(Label="scheduleHandle", Tag=0, Type=typing.Union[Nullable, bytes]), - ClusterObjectFieldDescriptor(Label="systemMode", Tag=1, Type=Thermostat.Enums.ThermostatSystemModeEnum), + ClusterObjectFieldDescriptor(Label="systemMode", Tag=1, Type=Thermostat.Enums.SystemModeEnum), ClusterObjectFieldDescriptor(Label="name", Tag=2, Type=typing.Optional[str]), ClusterObjectFieldDescriptor(Label="presetHandle", Tag=3, Type=typing.Optional[bytes]), ClusterObjectFieldDescriptor(Label="transitions", Tag=4, Type=typing.List[Thermostat.Structs.ScheduleTransitionStruct]), @@ -26560,7 +26560,7 @@ def descriptor(cls) -> ClusterObjectDescriptor: ]) scheduleHandle: 'typing.Union[Nullable, bytes]' = NullValue - systemMode: 'Thermostat.Enums.ThermostatSystemModeEnum' = 0 + systemMode: 'Thermostat.Enums.SystemModeEnum' = 0 name: 'typing.Optional[str]' = None presetHandle: 'typing.Optional[bytes]' = None transitions: 'typing.List[Thermostat.Structs.ScheduleTransitionStruct]' = field(default_factory=lambda: []) @@ -26621,17 +26621,17 @@ class ScheduleTypeStruct(ClusterObject): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor(Label="systemMode", Tag=0, Type=Thermostat.Enums.ThermostatSystemModeEnum), + ClusterObjectFieldDescriptor(Label="systemMode", Tag=0, Type=Thermostat.Enums.SystemModeEnum), ClusterObjectFieldDescriptor(Label="numberOfSchedules", Tag=1, Type=uint), ClusterObjectFieldDescriptor(Label="scheduleTypeFeatures", Tag=2, Type=uint), ]) - systemMode: 'Thermostat.Enums.ThermostatSystemModeEnum' = 0 + systemMode: 'Thermostat.Enums.SystemModeEnum' = 0 numberOfSchedules: 'uint' = 0 scheduleTypeFeatures: 'uint' = 0 @dataclass - class ThermostatScheduleTransitionStruct(ClusterObject): + class WeeklyScheduleTransitionStruct(ClusterObject): @ChipUtility.classproperty def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( @@ -26678,13 +26678,13 @@ def descriptor(cls) -> ClusterObjectDescriptor: ClusterObjectFieldDescriptor(Label="numberOfTransitionsForSequence", Tag=0, Type=uint), ClusterObjectFieldDescriptor(Label="dayOfWeekforSequence", Tag=1, Type=uint), ClusterObjectFieldDescriptor(Label="modeForSequence", Tag=2, Type=uint), - ClusterObjectFieldDescriptor(Label="transitions", Tag=3, Type=typing.List[Thermostat.Structs.ThermostatScheduleTransitionStruct]), + ClusterObjectFieldDescriptor(Label="transitions", Tag=3, Type=typing.List[Thermostat.Structs.WeeklyScheduleTransitionStruct]), ]) numberOfTransitionsForSequence: 'uint' = 0 dayOfWeekforSequence: 'uint' = 0 modeForSequence: 'uint' = 0 - transitions: 'typing.List[Thermostat.Structs.ThermostatScheduleTransitionStruct]' = field(default_factory=lambda: []) + transitions: 'typing.List[Thermostat.Structs.WeeklyScheduleTransitionStruct]' = field(default_factory=lambda: []) @dataclass class SetWeeklySchedule(ClusterCommand): @@ -26700,13 +26700,13 @@ def descriptor(cls) -> ClusterObjectDescriptor: ClusterObjectFieldDescriptor(Label="numberOfTransitionsForSequence", Tag=0, Type=uint), ClusterObjectFieldDescriptor(Label="dayOfWeekforSequence", Tag=1, Type=uint), ClusterObjectFieldDescriptor(Label="modeForSequence", Tag=2, Type=uint), - ClusterObjectFieldDescriptor(Label="transitions", Tag=3, Type=typing.List[Thermostat.Structs.ThermostatScheduleTransitionStruct]), + ClusterObjectFieldDescriptor(Label="transitions", Tag=3, Type=typing.List[Thermostat.Structs.WeeklyScheduleTransitionStruct]), ]) numberOfTransitionsForSequence: 'uint' = 0 dayOfWeekforSequence: 'uint' = 0 modeForSequence: 'uint' = 0 - transitions: 'typing.List[Thermostat.Structs.ThermostatScheduleTransitionStruct]' = field(default_factory=lambda: []) + transitions: 'typing.List[Thermostat.Structs.WeeklyScheduleTransitionStruct]' = field(default_factory=lambda: []) @dataclass class GetRelayStatusLogResponse(ClusterCommand): @@ -27216,9 +27216,9 @@ def attribute_id(cls) -> int: @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=Thermostat.Enums.ThermostatControlSequenceEnum) + return ClusterObjectFieldDescriptor(Type=Thermostat.Enums.ControlSequenceOfOperationEnum) - value: 'Thermostat.Enums.ThermostatControlSequenceEnum' = 0 + value: 'Thermostat.Enums.ControlSequenceOfOperationEnum' = 0 @dataclass class SystemMode(ClusterAttributeDescriptor): @@ -27232,9 +27232,9 @@ def attribute_id(cls) -> int: @ChipUtility.classproperty def attribute_type(cls) -> ClusterObjectFieldDescriptor: - return ClusterObjectFieldDescriptor(Type=Thermostat.Enums.ThermostatSystemModeEnum) + return ClusterObjectFieldDescriptor(Type=Thermostat.Enums.SystemModeEnum) - value: 'Thermostat.Enums.ThermostatSystemModeEnum' = 0 + value: 'Thermostat.Enums.SystemModeEnum' = 0 @dataclass class AlarmMask(ClusterAttributeDescriptor): diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h index 0c9ef25f196b7e..4abba34bcc73e4 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h @@ -16773,6 +16773,15 @@ typedef NS_ENUM(uint8_t, MTRThermostatACType) { MTRThermostatACTypeHeatPumpInverter MTR_PROVISIONALLY_AVAILABLE = 0x04, } MTR_PROVISIONALLY_AVAILABLE; +typedef NS_ENUM(uint8_t, MTRThermostatControlSequenceOfOperation) { + MTRThermostatControlSequenceOfOperationCoolingOnly MTR_PROVISIONALLY_AVAILABLE = 0x00, + MTRThermostatControlSequenceOfOperationCoolingWithReheat MTR_PROVISIONALLY_AVAILABLE = 0x01, + MTRThermostatControlSequenceOfOperationHeatingOnly MTR_PROVISIONALLY_AVAILABLE = 0x02, + MTRThermostatControlSequenceOfOperationHeatingWithReheat MTR_PROVISIONALLY_AVAILABLE = 0x03, + MTRThermostatControlSequenceOfOperationCoolingAndHeating MTR_PROVISIONALLY_AVAILABLE = 0x04, + MTRThermostatControlSequenceOfOperationCoolingAndHeatingWithReheat MTR_PROVISIONALLY_AVAILABLE = 0x05, +} MTR_PROVISIONALLY_AVAILABLE; + typedef NS_ENUM(uint8_t, MTRThermostatPresetScenario) { MTRThermostatPresetScenarioUnspecified MTR_PROVISIONALLY_AVAILABLE = 0x00, MTRThermostatPresetScenarioOccupied MTR_PROVISIONALLY_AVAILABLE = 0x01, @@ -16805,26 +16814,6 @@ typedef NS_ENUM(uint8_t, MTRThermostatStartOfWeek) { MTRThermostatStartOfWeekSaturday MTR_PROVISIONALLY_AVAILABLE = 0x06, } MTR_PROVISIONALLY_AVAILABLE; -typedef NS_ENUM(uint8_t, MTRThermostatTemperatureSetpointHold) { - MTRThermostatTemperatureSetpointHoldSetpointHoldOff MTR_PROVISIONALLY_AVAILABLE = 0x00, - MTRThermostatTemperatureSetpointHoldSetpointHoldOn MTR_PROVISIONALLY_AVAILABLE = 0x01, -} MTR_PROVISIONALLY_AVAILABLE; - -typedef NS_ENUM(uint8_t, MTRThermostatControlSequence) { - MTRThermostatControlSequenceCoolingOnly MTR_PROVISIONALLY_AVAILABLE = 0x00, - MTRThermostatControlSequenceCoolingWithReheat MTR_PROVISIONALLY_AVAILABLE = 0x01, - MTRThermostatControlSequenceHeatingOnly MTR_PROVISIONALLY_AVAILABLE = 0x02, - MTRThermostatControlSequenceHeatingWithReheat MTR_PROVISIONALLY_AVAILABLE = 0x03, - MTRThermostatControlSequenceCoolingAndHeating MTR_PROVISIONALLY_AVAILABLE = 0x04, - MTRThermostatControlSequenceCoolingAndHeatingWithReheat MTR_PROVISIONALLY_AVAILABLE = 0x05, -} MTR_PROVISIONALLY_AVAILABLE; - -typedef NS_ENUM(uint8_t, MTRThermostatRunningMode) { - MTRThermostatRunningModeOff MTR_PROVISIONALLY_AVAILABLE = 0x00, - MTRThermostatRunningModeCool MTR_PROVISIONALLY_AVAILABLE = 0x03, - MTRThermostatRunningModeHeat MTR_PROVISIONALLY_AVAILABLE = 0x04, -} MTR_PROVISIONALLY_AVAILABLE; - typedef NS_ENUM(uint8_t, MTRThermostatSystemMode) { MTRThermostatSystemModeOff MTR_PROVISIONALLY_AVAILABLE = 0x00, MTRThermostatSystemModeAuto MTR_PROVISIONALLY_AVAILABLE = 0x01, @@ -16837,6 +16826,17 @@ typedef NS_ENUM(uint8_t, MTRThermostatSystemMode) { MTRThermostatSystemModeSleep MTR_PROVISIONALLY_AVAILABLE = 0x09, } MTR_PROVISIONALLY_AVAILABLE; +typedef NS_ENUM(uint8_t, MTRThermostatTemperatureSetpointHold) { + MTRThermostatTemperatureSetpointHoldSetpointHoldOff MTR_PROVISIONALLY_AVAILABLE = 0x00, + MTRThermostatTemperatureSetpointHoldSetpointHoldOn MTR_PROVISIONALLY_AVAILABLE = 0x01, +} MTR_PROVISIONALLY_AVAILABLE; + +typedef NS_ENUM(uint8_t, MTRThermostatRunningMode) { + MTRThermostatRunningModeOff MTR_PROVISIONALLY_AVAILABLE = 0x00, + MTRThermostatRunningModeCool MTR_PROVISIONALLY_AVAILABLE = 0x03, + MTRThermostatRunningModeHeat MTR_PROVISIONALLY_AVAILABLE = 0x04, +} MTR_PROVISIONALLY_AVAILABLE; + typedef NS_OPTIONS(uint32_t, MTRThermostatACErrorCodeBitmap) { MTRThermostatACErrorCodeBitmapCompressorFail MTR_PROVISIONALLY_AVAILABLE = 0x1, MTRThermostatACErrorCodeBitmapRoomSensorFail MTR_PROVISIONALLY_AVAILABLE = 0x2, @@ -16851,17 +16851,6 @@ typedef NS_OPTIONS(uint8_t, MTRThermostatAlarmCodeBitmap) { MTRThermostatAlarmCodeBitmapSelfCalibration MTR_PROVISIONALLY_AVAILABLE = 0x4, } MTR_PROVISIONALLY_AVAILABLE; -typedef NS_OPTIONS(uint8_t, MTRThermostatDayOfWeekBitmap) { - MTRThermostatDayOfWeekBitmapSunday MTR_PROVISIONALLY_AVAILABLE = 0x1, - MTRThermostatDayOfWeekBitmapMonday MTR_PROVISIONALLY_AVAILABLE = 0x2, - MTRThermostatDayOfWeekBitmapTuesday MTR_PROVISIONALLY_AVAILABLE = 0x4, - MTRThermostatDayOfWeekBitmapWednesday MTR_PROVISIONALLY_AVAILABLE = 0x8, - MTRThermostatDayOfWeekBitmapThursday MTR_PROVISIONALLY_AVAILABLE = 0x10, - MTRThermostatDayOfWeekBitmapFriday MTR_PROVISIONALLY_AVAILABLE = 0x20, - MTRThermostatDayOfWeekBitmapSaturday MTR_PROVISIONALLY_AVAILABLE = 0x40, - MTRThermostatDayOfWeekBitmapAway MTR_PROVISIONALLY_AVAILABLE = 0x80, -} MTR_PROVISIONALLY_AVAILABLE; - typedef NS_OPTIONS(uint32_t, MTRThermostatFeature) { MTRThermostatFeatureHeating MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x1, MTRThermostatFeatureCooling MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x2, @@ -16878,13 +16867,8 @@ typedef NS_OPTIONS(uint32_t, MTRThermostatFeature) { } MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); typedef NS_OPTIONS(uint8_t, MTRThermostatHVACSystemTypeBitmap) { - MTRThermostatHVACSystemTypeBitmapHeatingType MTR_PROVISIONALLY_AVAILABLE = 0x10, - MTRThermostatHVACSystemTypeBitmapHeatingFuel MTR_PROVISIONALLY_AVAILABLE = 0x20, -} MTR_PROVISIONALLY_AVAILABLE; - -typedef NS_OPTIONS(uint8_t, MTRThermostatModeForSequenceBitmap) { - MTRThermostatModeForSequenceBitmapHeatSetpointPresent MTR_PROVISIONALLY_AVAILABLE = 0x1, - MTRThermostatModeForSequenceBitmapCoolSetpointPresent MTR_PROVISIONALLY_AVAILABLE = 0x2, + MTRThermostatHVACSystemTypeBitmapHeatingIsHeatPump MTR_PROVISIONALLY_AVAILABLE = 0x10, + MTRThermostatHVACSystemTypeBitmapHeatingUsesFuel MTR_PROVISIONALLY_AVAILABLE = 0x20, } MTR_PROVISIONALLY_AVAILABLE; typedef NS_OPTIONS(uint16_t, MTRThermostatPresetTypeFeaturesBitmap) { @@ -16914,6 +16898,22 @@ typedef NS_OPTIONS(uint8_t, MTRThermostatRemoteSensingBitmap) { MTRThermostatRemoteSensingBitmapOccupancy MTR_PROVISIONALLY_AVAILABLE = 0x4, } MTR_PROVISIONALLY_AVAILABLE; +typedef NS_OPTIONS(uint8_t, MTRThermostatScheduleDayOfWeekBitmap) { + MTRThermostatScheduleDayOfWeekBitmapSunday MTR_PROVISIONALLY_AVAILABLE = 0x1, + MTRThermostatScheduleDayOfWeekBitmapMonday MTR_PROVISIONALLY_AVAILABLE = 0x2, + MTRThermostatScheduleDayOfWeekBitmapTuesday MTR_PROVISIONALLY_AVAILABLE = 0x4, + MTRThermostatScheduleDayOfWeekBitmapWednesday MTR_PROVISIONALLY_AVAILABLE = 0x8, + MTRThermostatScheduleDayOfWeekBitmapThursday MTR_PROVISIONALLY_AVAILABLE = 0x10, + MTRThermostatScheduleDayOfWeekBitmapFriday MTR_PROVISIONALLY_AVAILABLE = 0x20, + MTRThermostatScheduleDayOfWeekBitmapSaturday MTR_PROVISIONALLY_AVAILABLE = 0x40, + MTRThermostatScheduleDayOfWeekBitmapAway MTR_PROVISIONALLY_AVAILABLE = 0x80, +} MTR_PROVISIONALLY_AVAILABLE; + +typedef NS_OPTIONS(uint8_t, MTRThermostatScheduleModeBitmap) { + MTRThermostatScheduleModeBitmapHeatSetpointPresent MTR_PROVISIONALLY_AVAILABLE = 0x1, + MTRThermostatScheduleModeBitmapCoolSetpointPresent MTR_PROVISIONALLY_AVAILABLE = 0x2, +} MTR_PROVISIONALLY_AVAILABLE; + typedef NS_OPTIONS(uint16_t, MTRThermostatScheduleTypeFeaturesBitmap) { MTRThermostatScheduleTypeFeaturesBitmapSupportsPresets MTR_PROVISIONALLY_AVAILABLE = 0x1, MTRThermostatScheduleTypeFeaturesBitmapSupportsSetpoints MTR_PROVISIONALLY_AVAILABLE = 0x2, diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.mm b/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.mm index c8ea8e9bae30bc..7e669ef23bf17d 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.mm @@ -19233,8 +19233,8 @@ - (CHIP_ERROR)_setFieldsFromDecodableStruct:(const chip::app::Clusters::Thermost auto iter_0 = decodableStruct.transitions.begin(); while (iter_0.Next()) { auto & entry_0 = iter_0.GetValue(); - MTRThermostatClusterThermostatScheduleTransitionStruct * newElement_0; - newElement_0 = [MTRThermostatClusterThermostatScheduleTransitionStruct new]; + MTRThermostatClusterWeeklyScheduleTransitionStruct * newElement_0; + newElement_0 = [MTRThermostatClusterWeeklyScheduleTransitionStruct new]; newElement_0.transitionTime = [NSNumber numberWithUnsignedShort:entry_0.transitionTime]; newElement_0.heatSetpoint = [NSNumber numberWithShort:entry_0.heatSetpoint]; newElement_0.coolSetpoint = [NSNumber numberWithShort:entry_0.coolSetpoint]; @@ -19318,11 +19318,11 @@ - (CHIP_ERROR)_encodeToTLVReader:(chip::System::PacketBufferTLVReader &)reader } listFreer.add(listHolder_0); for (size_t i_0 = 0; i_0 < self.transitions.count; ++i_0) { - if (![self.transitions[i_0] isKindOfClass:[MTRThermostatClusterThermostatScheduleTransitionStruct class]]) { + if (![self.transitions[i_0] isKindOfClass:[MTRThermostatClusterWeeklyScheduleTransitionStruct class]]) { // Wrong kind of value. return CHIP_ERROR_INVALID_ARGUMENT; } - auto element_0 = (MTRThermostatClusterThermostatScheduleTransitionStruct *) self.transitions[i_0]; + auto element_0 = (MTRThermostatClusterWeeklyScheduleTransitionStruct *) self.transitions[i_0]; listHolder_0->mList[i_0].transitionTime = element_0.transitionTime.unsignedShortValue; listHolder_0->mList[i_0].heatSetpoint = element_0.heatSetpoint.shortValue; listHolder_0->mList[i_0].coolSetpoint = element_0.coolSetpoint.shortValue; diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.h b/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.h index df6fa58635a07f..c83124274e1ac2 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.h @@ -1294,7 +1294,7 @@ MTR_PROVISIONALLY_AVAILABLE @end MTR_PROVISIONALLY_AVAILABLE -@interface MTRThermostatClusterThermostatScheduleTransitionStruct : NSObject +@interface MTRThermostatClusterWeeklyScheduleTransitionStruct : NSObject @property (nonatomic, copy) NSNumber * _Nonnull transitionTime MTR_PROVISIONALLY_AVAILABLE; @property (nonatomic, copy) NSNumber * _Nonnull heatSetpoint MTR_PROVISIONALLY_AVAILABLE; @property (nonatomic, copy) NSNumber * _Nonnull coolSetpoint MTR_PROVISIONALLY_AVAILABLE; diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.mm b/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.mm index 9bd19b3868032e..1f02835d337db6 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.mm +++ b/src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.mm @@ -5351,7 +5351,7 @@ - (NSString *)description @end -@implementation MTRThermostatClusterThermostatScheduleTransitionStruct +@implementation MTRThermostatClusterWeeklyScheduleTransitionStruct - (instancetype)init { if (self = [super init]) { @@ -5367,7 +5367,7 @@ - (instancetype)init - (id)copyWithZone:(NSZone * _Nullable)zone { - auto other = [[MTRThermostatClusterThermostatScheduleTransitionStruct alloc] init]; + auto other = [[MTRThermostatClusterWeeklyScheduleTransitionStruct alloc] init]; other.transitionTime = self.transitionTime; other.heatSetpoint = self.heatSetpoint; diff --git a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp index 8935756df04621..2fac96eda24b90 100644 --- a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp +++ b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp @@ -14667,9 +14667,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, readable, sizeof(temp)); @@ -14681,9 +14681,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::Th *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ThermostatControlSequenceEnum value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ControlSequenceOfOperationEnum value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; @@ -14698,9 +14698,9 @@ EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::Th namespace SystemMode { -EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ThermostatSystemModeEnum * value) +EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::SystemModeEnum * value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; Traits::StorageType temp; uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp); EmberAfStatus status = emberAfReadAttribute(endpoint, Clusters::Thermostat::Id, Id, readable, sizeof(temp)); @@ -14712,9 +14712,9 @@ EmberAfStatus Get(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::Th *value = Traits::StorageToWorking(temp); return status; } -EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::ThermostatSystemModeEnum value) +EmberAfStatus Set(chip::EndpointId endpoint, chip::app::Clusters::Thermostat::SystemModeEnum value) { - using Traits = NumericAttributeTraits; + using Traits = NumericAttributeTraits; if (!Traits::CanRepresentValue(/* isNullable = */ false, value)) { return EMBER_ZCL_STATUS_CONSTRAINT_ERROR; diff --git a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h index 228e5386df44d2..3f95008df21c4d 100644 --- a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h +++ b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h @@ -2689,14 +2689,13 @@ EmberAfStatus Set(chip::EndpointId endpoint, chip::BitMask(5); } } +static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::ControlSequenceOfOperationEnum val) +{ + using EnumType = Thermostat::ControlSequenceOfOperationEnum; + switch (val) + { + case EnumType::kCoolingOnly: + case EnumType::kCoolingWithReheat: + case EnumType::kHeatingOnly: + case EnumType::kHeatingWithReheat: + case EnumType::kCoolingAndHeating: + case EnumType::kCoolingAndHeatingWithReheat: + return val; + default: + return static_cast(6); + } +} static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::PresetScenarioEnum val) { using EnumType = Thermostat::PresetScenarioEnum; @@ -2125,32 +2141,35 @@ static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::StartOfWeek return static_cast(7); } } -static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::TemperatureSetpointHoldEnum val) +static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::SystemModeEnum val) { - using EnumType = Thermostat::TemperatureSetpointHoldEnum; + using EnumType = Thermostat::SystemModeEnum; switch (val) { - case EnumType::kSetpointHoldOff: - case EnumType::kSetpointHoldOn: + case EnumType::kOff: + case EnumType::kAuto: + case EnumType::kCool: + case EnumType::kHeat: + case EnumType::kEmergencyHeat: + case EnumType::kPrecooling: + case EnumType::kFanOnly: + case EnumType::kDry: + case EnumType::kSleep: return val; default: return static_cast(2); } } -static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::ThermostatControlSequenceEnum val) +static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::TemperatureSetpointHoldEnum val) { - using EnumType = Thermostat::ThermostatControlSequenceEnum; + using EnumType = Thermostat::TemperatureSetpointHoldEnum; switch (val) { - case EnumType::kCoolingOnly: - case EnumType::kCoolingWithReheat: - case EnumType::kHeatingOnly: - case EnumType::kHeatingWithReheat: - case EnumType::kCoolingAndHeating: - case EnumType::kCoolingAndHeatingWithReheat: + case EnumType::kSetpointHoldOff: + case EnumType::kSetpointHoldOn: return val; default: - return static_cast(6); + return static_cast(2); } } static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::ThermostatRunningModeEnum val) @@ -2166,25 +2185,6 @@ static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::ThermostatR return static_cast(1); } } -static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::ThermostatSystemModeEnum val) -{ - using EnumType = Thermostat::ThermostatSystemModeEnum; - switch (val) - { - case EnumType::kOff: - case EnumType::kAuto: - case EnumType::kCool: - case EnumType::kHeat: - case EnumType::kEmergencyHeat: - case EnumType::kPrecooling: - case EnumType::kFanOnly: - case EnumType::kDry: - case EnumType::kSleep: - return val; - default: - return static_cast(2); - } -} static auto __attribute__((unused)) EnsureKnownEnumValue(FanControl::AirflowDirectionEnum val) { diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h b/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h index 7df1dcbf6b4fa0..cc376ae3de7e4b 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h @@ -3049,6 +3049,22 @@ enum class ACTypeEnum : uint8_t kUnknownEnumValue = 5, }; +// Enum for ControlSequenceOfOperationEnum +enum class ControlSequenceOfOperationEnum : uint8_t +{ + kCoolingOnly = 0x00, + kCoolingWithReheat = 0x01, + kHeatingOnly = 0x02, + kHeatingWithReheat = 0x03, + kCoolingAndHeating = 0x04, + kCoolingAndHeatingWithReheat = 0x05, + // All received enum values that are not listed above will be mapped + // to kUnknownEnumValue. This is a helper enum value that should only + // be used by code to process how it handles receiving and unknown + // enum value. This specific should never be transmitted. + kUnknownEnumValue = 6, +}; + // Enum for PresetScenarioEnum enum class PresetScenarioEnum : uint8_t { @@ -3109,11 +3125,18 @@ enum class StartOfWeekEnum : uint8_t kUnknownEnumValue = 7, }; -// Enum for TemperatureSetpointHoldEnum -enum class TemperatureSetpointHoldEnum : uint8_t +// Enum for SystemModeEnum +enum class SystemModeEnum : uint8_t { - kSetpointHoldOff = 0x00, - kSetpointHoldOn = 0x01, + kOff = 0x00, + kAuto = 0x01, + kCool = 0x03, + kHeat = 0x04, + kEmergencyHeat = 0x05, + kPrecooling = 0x06, + kFanOnly = 0x07, + kDry = 0x08, + kSleep = 0x09, // All received enum values that are not listed above will be mapped // to kUnknownEnumValue. This is a helper enum value that should only // be used by code to process how it handles receiving and unknown @@ -3121,20 +3144,16 @@ enum class TemperatureSetpointHoldEnum : uint8_t kUnknownEnumValue = 2, }; -// Enum for ThermostatControlSequenceEnum -enum class ThermostatControlSequenceEnum : uint8_t +// Enum for TemperatureSetpointHoldEnum +enum class TemperatureSetpointHoldEnum : uint8_t { - kCoolingOnly = 0x00, - kCoolingWithReheat = 0x01, - kHeatingOnly = 0x02, - kHeatingWithReheat = 0x03, - kCoolingAndHeating = 0x04, - kCoolingAndHeatingWithReheat = 0x05, + kSetpointHoldOff = 0x00, + kSetpointHoldOn = 0x01, // All received enum values that are not listed above will be mapped // to kUnknownEnumValue. This is a helper enum value that should only // be used by code to process how it handles receiving and unknown // enum value. This specific should never be transmitted. - kUnknownEnumValue = 6, + kUnknownEnumValue = 2, }; // Enum for ThermostatRunningModeEnum @@ -3150,25 +3169,6 @@ enum class ThermostatRunningModeEnum : uint8_t kUnknownEnumValue = 1, }; -// Enum for ThermostatSystemModeEnum -enum class ThermostatSystemModeEnum : uint8_t -{ - kOff = 0x00, - kAuto = 0x01, - kCool = 0x03, - kHeat = 0x04, - kEmergencyHeat = 0x05, - kPrecooling = 0x06, - kFanOnly = 0x07, - kDry = 0x08, - kSleep = 0x09, - // All received enum values that are not listed above will be mapped - // to kUnknownEnumValue. This is a helper enum value that should only - // be used by code to process how it handles receiving and unknown - // enum value. This specific should never be transmitted. - kUnknownEnumValue = 2, -}; - // Bitmap for ACErrorCodeBitmap enum class ACErrorCodeBitmap : uint32_t { @@ -3187,19 +3187,6 @@ enum class AlarmCodeBitmap : uint8_t kSelfCalibration = 0x4, }; -// Bitmap for DayOfWeekBitmap -enum class DayOfWeekBitmap : uint8_t -{ - kSunday = 0x1, - kMonday = 0x2, - kTuesday = 0x4, - kWednesday = 0x8, - kThursday = 0x10, - kFriday = 0x20, - kSaturday = 0x40, - kAway = 0x80, -}; - // Bitmap for Feature enum class Feature : uint32_t { @@ -3219,15 +3206,8 @@ enum class Feature : uint32_t // Bitmap for HVACSystemTypeBitmap enum class HVACSystemTypeBitmap : uint8_t { - kHeatingType = 0x10, - kHeatingFuel = 0x20, -}; - -// Bitmap for ModeForSequenceBitmap -enum class ModeForSequenceBitmap : uint8_t -{ - kHeatSetpointPresent = 0x1, - kCoolSetpointPresent = 0x2, + kHeatingIsHeatPump = 0x10, + kHeatingUsesFuel = 0x20, }; // Bitmap for PresetTypeFeaturesBitmap @@ -3265,6 +3245,26 @@ enum class RemoteSensingBitmap : uint8_t kOccupancy = 0x4, }; +// Bitmap for ScheduleDayOfWeekBitmap +enum class ScheduleDayOfWeekBitmap : uint8_t +{ + kSunday = 0x1, + kMonday = 0x2, + kTuesday = 0x4, + kWednesday = 0x8, + kThursday = 0x10, + kFriday = 0x20, + kSaturday = 0x40, + kAway = 0x80, +}; + +// Bitmap for ScheduleModeBitmap +enum class ScheduleModeBitmap : uint8_t +{ + kHeatSetpointPresent = 0x1, + kCoolSetpointPresent = 0x2, +}; + // Bitmap for ScheduleTypeFeaturesBitmap enum class ScheduleTypeFeaturesBitmap : uint16_t { diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp index 5c98c44012e6ff..770b41576a38e4 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.cpp @@ -17115,7 +17115,7 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } // namespace ScheduleTypeStruct -namespace ThermostatScheduleTransitionStruct { +namespace WeeklyScheduleTransitionStruct { CHIP_ERROR Type::Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const { DataModel::WrappedStructEncoder encoder{ aWriter, aTag }; @@ -17159,7 +17159,7 @@ CHIP_ERROR DecodableType::Decode(TLV::TLVReader & reader) } } -} // namespace ThermostatScheduleTransitionStruct +} // namespace WeeklyScheduleTransitionStruct } // namespace Structs namespace Commands { diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h index f758ee8cb10351..bf21005a91b853 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h @@ -23980,10 +23980,10 @@ enum class Fields : uint8_t struct Type { public: - chip::BitMask dayOfWeek = static_cast>(0); - uint16_t transitionTime = static_cast(0); + chip::BitMask dayOfWeek = static_cast>(0); + uint16_t transitionTime = static_cast(0); Optional presetHandle; - Optional systemMode; + Optional systemMode; Optional coolingSetpoint; Optional heatingSetpoint; @@ -24012,7 +24012,7 @@ struct Type { public: DataModel::Nullable scheduleHandle; - ThermostatSystemModeEnum systemMode = static_cast(0); + SystemModeEnum systemMode = static_cast(0); Optional name; Optional presetHandle; DataModel::List transitions; @@ -24027,7 +24027,7 @@ struct DecodableType { public: DataModel::Nullable scheduleHandle; - ThermostatSystemModeEnum systemMode = static_cast(0); + SystemModeEnum systemMode = static_cast(0); Optional name; Optional presetHandle; DataModel::DecodableList transitions; @@ -24129,7 +24129,7 @@ enum class Fields : uint8_t struct Type { public: - ThermostatSystemModeEnum systemMode = static_cast(0); + SystemModeEnum systemMode = static_cast(0); uint8_t numberOfSchedules = static_cast(0); chip::BitMask scheduleTypeFeatures = static_cast>(0); @@ -24143,7 +24143,7 @@ struct Type using DecodableType = Type; } // namespace ScheduleTypeStruct -namespace ThermostatScheduleTransitionStruct { +namespace WeeklyScheduleTransitionStruct { enum class Fields : uint8_t { kTransitionTime = 0, @@ -24167,7 +24167,7 @@ struct Type using DecodableType = Type; -} // namespace ThermostatScheduleTransitionStruct +} // namespace WeeklyScheduleTransitionStruct } // namespace Structs namespace Commands { @@ -24297,10 +24297,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetWeeklyScheduleResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - uint8_t numberOfTransitionsForSequence = static_cast(0); - chip::BitMask dayOfWeekforSequence = static_cast>(0); - chip::BitMask modeForSequence = static_cast>(0); - DataModel::List transitions; + uint8_t numberOfTransitionsForSequence = static_cast(0); + chip::BitMask dayOfWeekforSequence = static_cast>(0); + chip::BitMask modeForSequence = static_cast>(0); + DataModel::List transitions; CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; @@ -24315,10 +24315,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetWeeklyScheduleResponse::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - uint8_t numberOfTransitionsForSequence = static_cast(0); - chip::BitMask dayOfWeekforSequence = static_cast>(0); - chip::BitMask modeForSequence = static_cast>(0); - DataModel::DecodableList transitions; + uint8_t numberOfTransitionsForSequence = static_cast(0); + chip::BitMask dayOfWeekforSequence = static_cast>(0); + chip::BitMask modeForSequence = static_cast>(0); + DataModel::DecodableList transitions; CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetWeeklyScheduleResponse @@ -24338,10 +24338,10 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SetWeeklySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - uint8_t numberOfTransitionsForSequence = static_cast(0); - chip::BitMask dayOfWeekforSequence = static_cast>(0); - chip::BitMask modeForSequence = static_cast>(0); - DataModel::List transitions; + uint8_t numberOfTransitionsForSequence = static_cast(0); + chip::BitMask dayOfWeekforSequence = static_cast>(0); + chip::BitMask modeForSequence = static_cast>(0); + DataModel::List transitions; CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; @@ -24356,10 +24356,10 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SetWeeklySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - uint8_t numberOfTransitionsForSequence = static_cast(0); - chip::BitMask dayOfWeekforSequence = static_cast>(0); - chip::BitMask modeForSequence = static_cast>(0); - DataModel::DecodableList transitions; + uint8_t numberOfTransitionsForSequence = static_cast(0); + chip::BitMask dayOfWeekforSequence = static_cast>(0); + chip::BitMask modeForSequence = static_cast>(0); + DataModel::DecodableList transitions; CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace SetWeeklySchedule @@ -24424,8 +24424,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::GetWeeklySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - chip::BitMask daysToReturn = static_cast>(0); - chip::BitMask modeToReturn = static_cast>(0); + chip::BitMask daysToReturn = static_cast>(0); + chip::BitMask modeToReturn = static_cast>(0); CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; @@ -24440,8 +24440,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::GetWeeklySchedule::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - chip::BitMask daysToReturn = static_cast>(0); - chip::BitMask modeToReturn = static_cast>(0); + chip::BitMask daysToReturn = static_cast>(0); + chip::BitMask modeToReturn = static_cast>(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace GetWeeklySchedule @@ -24965,9 +24965,9 @@ struct TypeInfo namespace ControlSequenceOfOperation { struct TypeInfo { - using Type = chip::app::Clusters::Thermostat::ThermostatControlSequenceEnum; - using DecodableType = chip::app::Clusters::Thermostat::ThermostatControlSequenceEnum; - using DecodableArgType = chip::app::Clusters::Thermostat::ThermostatControlSequenceEnum; + using Type = chip::app::Clusters::Thermostat::ControlSequenceOfOperationEnum; + using DecodableType = chip::app::Clusters::Thermostat::ControlSequenceOfOperationEnum; + using DecodableArgType = chip::app::Clusters::Thermostat::ControlSequenceOfOperationEnum; static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } static constexpr AttributeId GetAttributeId() { return Attributes::ControlSequenceOfOperation::Id; } @@ -24977,9 +24977,9 @@ struct TypeInfo namespace SystemMode { struct TypeInfo { - using Type = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum; - using DecodableType = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum; - using DecodableArgType = chip::app::Clusters::Thermostat::ThermostatSystemModeEnum; + using Type = chip::app::Clusters::Thermostat::SystemModeEnum; + using DecodableType = chip::app::Clusters::Thermostat::SystemModeEnum; + using DecodableArgType = chip::app::Clusters::Thermostat::SystemModeEnum; static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } static constexpr AttributeId GetAttributeId() { return Attributes::SystemMode::Id; } @@ -25557,9 +25557,9 @@ struct TypeInfo Attributes::RemoteSensing::TypeInfo::DecodableType remoteSensing = static_cast>(0); Attributes::ControlSequenceOfOperation::TypeInfo::DecodableType controlSequenceOfOperation = - static_cast(0); + static_cast(0); Attributes::SystemMode::TypeInfo::DecodableType systemMode = - static_cast(0); + static_cast(0); Attributes::AlarmMask::TypeInfo::DecodableType alarmMask = static_cast>(0); Attributes::ThermostatRunningMode::TypeInfo::DecodableType thermostatRunningMode = diff --git a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h index 2b895d88c24be0..a168b3b679eb32 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h @@ -8088,7 +8088,7 @@ class ThermostatSetWeeklySchedule : public ClusterCommand private: chip::app::Clusters::Thermostat::Commands::SetWeeklySchedule::Type mRequest; TypedComplexArgument< - chip::app::DataModel::List> + chip::app::DataModel::List> mComplex_Transitions; }; @@ -19028,10 +19028,10 @@ void registerClusterThermostat(Commands & commands, CredentialIssuerCommands * c WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "remote-sensing", 0, UINT8_MAX, Attributes::RemoteSensing::Id, WriteCommandType::kWrite, credsIssuerConfig), // - make_unique>( + make_unique>( Id, "control-sequence-of-operation", 0, UINT8_MAX, Attributes::ControlSequenceOfOperation::Id, WriteCommandType::kWrite, credsIssuerConfig), // - make_unique>( + make_unique>( Id, "system-mode", 0, UINT8_MAX, Attributes::SystemMode::Id, WriteCommandType::kWrite, credsIssuerConfig), // make_unique>>( Id, "alarm-mask", 0, UINT8_MAX, Attributes::AlarmMask::Id, WriteCommandType::kForceWrite, credsIssuerConfig), // diff --git a/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.cpp b/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.cpp index d5381f1ada6a9b..ebc945fa69176e 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.cpp +++ b/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.cpp @@ -2923,21 +2923,20 @@ void ComplexArgumentParser::Finalize(chip::app::Clusters::Thermostat::Structs::S ComplexArgumentParser::Finalize(request.scheduleTypeFeatures); } -CHIP_ERROR -ComplexArgumentParser::Setup(const char * label, - chip::app::Clusters::Thermostat::Structs::ThermostatScheduleTransitionStruct::Type & request, - Json::Value & value) +CHIP_ERROR ComplexArgumentParser::Setup(const char * label, + chip::app::Clusters::Thermostat::Structs::WeeklyScheduleTransitionStruct::Type & request, + Json::Value & value) { VerifyOrReturnError(value.isObject(), CHIP_ERROR_INVALID_ARGUMENT); // Copy to track which members we already processed. Json::Value valueCopy(value); - ReturnErrorOnFailure(ComplexArgumentParser::EnsureMemberExist("ThermostatScheduleTransitionStruct.transitionTime", - "transitionTime", value.isMember("transitionTime"))); - ReturnErrorOnFailure(ComplexArgumentParser::EnsureMemberExist("ThermostatScheduleTransitionStruct.heatSetpoint", "heatSetpoint", + ReturnErrorOnFailure(ComplexArgumentParser::EnsureMemberExist("WeeklyScheduleTransitionStruct.transitionTime", "transitionTime", + value.isMember("transitionTime"))); + ReturnErrorOnFailure(ComplexArgumentParser::EnsureMemberExist("WeeklyScheduleTransitionStruct.heatSetpoint", "heatSetpoint", value.isMember("heatSetpoint"))); - ReturnErrorOnFailure(ComplexArgumentParser::EnsureMemberExist("ThermostatScheduleTransitionStruct.coolSetpoint", "coolSetpoint", + ReturnErrorOnFailure(ComplexArgumentParser::EnsureMemberExist("WeeklyScheduleTransitionStruct.coolSetpoint", "coolSetpoint", value.isMember("coolSetpoint"))); char labelWithMember[kMaxLabelLength]; @@ -2956,7 +2955,7 @@ ComplexArgumentParser::Setup(const char * label, return ComplexArgumentParser::EnsureNoMembersRemaining(label, valueCopy); } -void ComplexArgumentParser::Finalize(chip::app::Clusters::Thermostat::Structs::ThermostatScheduleTransitionStruct::Type & request) +void ComplexArgumentParser::Finalize(chip::app::Clusters::Thermostat::Structs::WeeklyScheduleTransitionStruct::Type & request) { ComplexArgumentParser::Finalize(request.transitionTime); ComplexArgumentParser::Finalize(request.heatSetpoint); diff --git a/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.h b/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.h index b0013c5f0fb7b6..6a0726e9555490 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.h +++ b/zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.h @@ -360,10 +360,10 @@ static CHIP_ERROR Setup(const char * label, chip::app::Clusters::Thermostat::Str static void Finalize(chip::app::Clusters::Thermostat::Structs::ScheduleTypeStruct::Type & request); static CHIP_ERROR Setup(const char * label, - chip::app::Clusters::Thermostat::Structs::ThermostatScheduleTransitionStruct::Type & request, + chip::app::Clusters::Thermostat::Structs::WeeklyScheduleTransitionStruct::Type & request, Json::Value & value); -static void Finalize(chip::app::Clusters::Thermostat::Structs::ThermostatScheduleTransitionStruct::Type & request); +static void Finalize(chip::app::Clusters::Thermostat::Structs::WeeklyScheduleTransitionStruct::Type & request); static CHIP_ERROR Setup(const char * label, chip::app::Clusters::Channel::Structs::ChannelInfoStruct::Type & request, Json::Value & value); diff --git a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp index 296d3dc204c281..7656ea43188ee1 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp +++ b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp @@ -2579,7 +2579,7 @@ CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, CHIP_ERROR DataModelLogger::LogValue(const char * label, size_t indent, - const chip::app::Clusters::Thermostat::Structs::ThermostatScheduleTransitionStruct::DecodableType & value) + const chip::app::Clusters::Thermostat::Structs::WeeklyScheduleTransitionStruct::DecodableType & value) { DataModelLogger::LogString(label, indent, "{"); { @@ -11059,12 +11059,12 @@ CHIP_ERROR DataModelLogger::LogAttribute(const chip::app::ConcreteDataAttributeP return DataModelLogger::LogValue("RemoteSensing", 1, value); } case Thermostat::Attributes::ControlSequenceOfOperation::Id: { - chip::app::Clusters::Thermostat::ThermostatControlSequenceEnum value; + chip::app::Clusters::Thermostat::ControlSequenceOfOperationEnum value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("ControlSequenceOfOperation", 1, value); } case Thermostat::Attributes::SystemMode::Id: { - chip::app::Clusters::Thermostat::ThermostatSystemModeEnum value; + chip::app::Clusters::Thermostat::SystemModeEnum value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("SystemMode", 1, value); } diff --git a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.h b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.h index 49ee6be40c5859..76a626d91d6ab0 100644 --- a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.h +++ b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.h @@ -226,9 +226,8 @@ static CHIP_ERROR LogValue(const char * label, size_t indent, static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::Thermostat::Structs::ScheduleTypeStruct::DecodableType & value); -static CHIP_ERROR -LogValue(const char * label, size_t indent, - const chip::app::Clusters::Thermostat::Structs::ThermostatScheduleTransitionStruct::DecodableType & value); +static CHIP_ERROR LogValue(const char * label, size_t indent, + const chip::app::Clusters::Thermostat::Structs::WeeklyScheduleTransitionStruct::DecodableType & value); static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::Channel::Structs::ChannelInfoStruct::DecodableType & value); diff --git a/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h b/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h index ed656335b9f5d9..08679a543f41b8 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h @@ -89027,8 +89027,8 @@ class ThermostatSetWeeklySchedule : public ClusterCommand { { // Scope for our temporary variables auto * array_0 = [NSMutableArray new]; for (auto & entry_0 : mRequest.transitions) { - MTRThermostatClusterThermostatScheduleTransitionStruct * newElement_0; - newElement_0 = [MTRThermostatClusterThermostatScheduleTransitionStruct new]; + MTRThermostatClusterWeeklyScheduleTransitionStruct * newElement_0; + newElement_0 = [MTRThermostatClusterWeeklyScheduleTransitionStruct new]; newElement_0.transitionTime = [NSNumber numberWithUnsignedShort:entry_0.transitionTime]; newElement_0.heatSetpoint = [NSNumber numberWithShort:entry_0.heatSetpoint]; newElement_0.coolSetpoint = [NSNumber numberWithShort:entry_0.coolSetpoint]; @@ -89057,7 +89057,7 @@ class ThermostatSetWeeklySchedule : public ClusterCommand { private: chip::app::Clusters::Thermostat::Commands::SetWeeklySchedule::Type mRequest; - TypedComplexArgument> mComplex_Transitions; + TypedComplexArgument> mComplex_Transitions; }; /* From fe50b760d51dcbe9a2d2f1aa698acf2137ab7fa4 Mon Sep 17 00:00:00 2001 From: David Rempel Date: Tue, 28 Nov 2023 16:41:46 -0800 Subject: [PATCH 22/41] apparently we need a reg after this merge :) --- .../air-purifier-app.matter | 228 ++++----- .../air-quality-sensor-app.matter | 214 ++++---- .../all-clusters-app.matter | 484 +++++++++--------- .../all-clusters-minimal-app.matter | 78 +-- .../bridge-common/bridge-app.matter | 190 +++---- ...p_rootnode_dimmablelight_bCwGYSDpoe.matter | 220 ++++---- ...umiditysensor_thermostat_56de3d5f45.matter | 210 ++++---- ...ootnode_airqualitysensor_e63187f6c9.matter | 290 +++++------ ...ootnode_basicvideoplayer_0ff86e943b.matter | 46 +- ...de_colortemperaturelight_hbUnzYVeyn.matter | 46 +- .../rootnode_contactsensor_lFAGG1bfRO.matter | 78 +-- .../rootnode_dimmablelight_bCwGYSDpoe.matter | 84 +-- .../rootnode_dishwasher_cc105034fe.matter | 136 ++--- .../rootnode_doorlock_aNKYAreMXE.matter | 78 +-- ...tnode_extendedcolorlight_8lcaaYJVAa.matter | 90 ++-- .../devices/rootnode_fan_7N2TobIlOX.matter | 46 +- .../rootnode_flowsensor_1zVxHedlaV.matter | 72 +-- .../rootnode_genericswitch_9866e35d0b.matter | 38 +- ...tnode_heatingcoolingunit_ncdGai1E5a.matter | 90 ++-- .../rootnode_humiditysensor_Xyj4gda6Hb.matter | 72 +-- .../rootnode_laundrywasher_fb10d238c8.matter | 136 ++--- .../rootnode_lightsensor_lZQycTFcJK.matter | 72 +-- ...rootnode_occupancysensor_iHyVgifZuo.matter | 72 +-- .../rootnode_onofflight_bbs1b7IaOV.matter | 84 +-- .../rootnode_onofflight_samplemei.matter | 84 +-- ...ootnode_onofflightswitch_FsPlMr090Q.matter | 78 +-- ...rootnode_onoffpluginunit_Wtf8ss5EBY.matter | 78 +-- .../rootnode_pressuresensor_s0qC9wLH4k.matter | 72 +-- .../devices/rootnode_pump_5f904818cc.matter | 34 +- .../devices/rootnode_pump_a811bb33a0.matter | 34 +- ...eraturecontrolledcabinet_ffdb696680.matter | 146 +++--- ...ode_roboticvacuumcleaner_1807ff0c49.matter | 84 +-- ...tnode_roomairconditioner_9cf3607804.matter | 58 +-- .../rootnode_smokecoalarm_686fe0dcb8.matter | 58 +-- .../rootnode_speaker_RpzeXdimqA.matter | 78 +-- ...otnode_temperaturesensor_Qy1zkNW7c3.matter | 72 +-- .../rootnode_thermostat_bm3fb8dhYi.matter | 84 +-- .../rootnode_windowcovering_RLCxaGi9Yx.matter | 78 +-- .../contact-sensor-app.matter | 190 +++---- .../dishwasher-common/dishwasher-app.matter | 136 ++--- .../light-switch-app.matter | 204 ++++---- .../data_model/lighting-app-ethernet.matter | 68 +-- .../data_model/lighting-app-thread.matter | 154 +++--- .../data_model/lighting-app-wifi.matter | 74 +-- .../lighting-common/lighting-app.matter | 190 +++---- .../nxp/zap/lighting-on-off.matter | 144 +++--- examples/lighting-app/qpg/zap/light.matter | 146 +++--- .../data_model/lighting-thread-app.matter | 154 +++--- .../data_model/lighting-wifi-app.matter | 74 +-- .../lit-icd-common/lit-icd-server-app.matter | 80 +-- examples/lock-app/lock-common/lock-app.matter | 198 +++---- examples/lock-app/nxp/zap/lock-app.matter | 142 ++--- examples/lock-app/qpg/zap/lock.matter | 154 +++--- .../log-source-common/log-source-app.matter | 10 +- .../ota-provider-app.matter | 38 +- .../ota-requestor-app.matter | 44 +- .../placeholder/linux/apps/app1/config.matter | 196 +++---- .../placeholder/linux/apps/app2/config.matter | 196 +++---- examples/pump-app/pump-common/pump-app.matter | 50 +- .../silabs/data_model/pump-thread-app.matter | 50 +- .../silabs/data_model/pump-wifi-app.matter | 50 +- .../pump-controller-app.matter | 50 +- .../refrigerator-app.matter | 146 +++--- examples/rvc-app/rvc-common/rvc-app.matter | 62 +-- .../smoke-co-alarm-app.matter | 162 +++--- .../temperature-measurement.matter | 86 ++-- .../nxp/zap/thermostat_matter_thread.matter | 146 +++--- .../nxp/zap/thermostat_matter_wifi.matter | 66 +-- .../thermostat-common/thermostat.matter | 190 +++---- examples/tv-app/tv-common/tv-app.matter | 194 +++---- .../tv-casting-common/tv-casting-app.matter | 88 ++-- .../virtual-device-app.matter | 188 +++---- examples/window-app/common/window-app.matter | 192 +++---- 73 files changed, 4252 insertions(+), 4252 deletions(-) diff --git a/examples/air-purifier-app/air-purifier-common/air-purifier-app.matter b/examples/air-purifier-app/air-purifier-common/air-purifier-app.matter index 305e12ce3f335e..2eef432d77f939 100644 --- a/examples/air-purifier-app/air-purifier-common/air-purifier-app.matter +++ b/examples/air-purifier-app/air-purifier-common/air-purifier-app.matter @@ -1902,7 +1902,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1915,25 +1915,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1964,9 +1964,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -2011,9 +2011,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -2028,9 +2028,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -2067,8 +2067,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2085,10 +2085,10 @@ endpoint 1 { server cluster Identify { ram attribute identifyTime default = 0x0; ram attribute identifyType default = 0x0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; callback attribute eventList; - callback attribute attributeList; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 4; @@ -2097,47 +2097,47 @@ endpoint 1 { } server cluster Descriptor { - callback attribute deviceTypeList; - callback attribute serverList; - callback attribute clientList; - callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; + callback attribute deviceTypeList default = 0; + callback attribute serverList default = 0; + callback attribute clientList default = 0; + callback attribute partsList default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; callback attribute eventList; - callback attribute attributeList; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster HepaFilterMonitoring { - callback attribute condition; - callback attribute degradationDirection; - callback attribute changeIndication; - callback attribute inPlaceIndicator; + callback attribute condition default = 100; + callback attribute degradationDirection default = 1; + callback attribute changeIndication default = 0; + callback attribute inPlaceIndicator default = 1; callback attribute lastChangedTime; callback attribute replacementProductList; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 1; handle command ResetCondition; } server cluster ActivatedCarbonFilterMonitoring { - callback attribute condition; - callback attribute degradationDirection; - callback attribute changeIndication; - callback attribute inPlaceIndicator; + callback attribute condition default = 100; + callback attribute degradationDirection default = 1; + callback attribute changeIndication default = 0; + callback attribute inPlaceIndicator default = 1; callback attribute lastChangedTime; callback attribute replacementProductList; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 1; handle command ResetCondition; @@ -2193,16 +2193,16 @@ endpoint 2 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AirQuality { - callback attribute airQuality; + callback attribute airQuality default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 1; } @@ -2211,18 +2211,18 @@ endpoint 2 { callback attribute minMeasuredValue; callback attribute maxMeasuredValue; callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; + callback attribute peakMeasuredValueWindow default = 1; callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute averageMeasuredValueWindow default = 1; + callback attribute uncertainty default = 0; + callback attribute measurementUnit default = 0; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2231,18 +2231,18 @@ endpoint 2 { callback attribute minMeasuredValue; callback attribute maxMeasuredValue; callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; + callback attribute peakMeasuredValueWindow default = 1; callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute averageMeasuredValueWindow default = 1; + callback attribute uncertainty default = 0; + callback attribute measurementUnit default = 0; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2251,18 +2251,18 @@ endpoint 2 { callback attribute minMeasuredValue; callback attribute maxMeasuredValue; callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; + callback attribute peakMeasuredValueWindow default = 1; callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute averageMeasuredValueWindow default = 1; + callback attribute uncertainty default = 0; + callback attribute measurementUnit default = 0; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2271,18 +2271,18 @@ endpoint 2 { callback attribute minMeasuredValue; callback attribute maxMeasuredValue; callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; + callback attribute peakMeasuredValueWindow default = 1; callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute averageMeasuredValueWindow default = 1; + callback attribute uncertainty default = 0; + callback attribute measurementUnit default = 0; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2291,18 +2291,18 @@ endpoint 2 { callback attribute minMeasuredValue; callback attribute maxMeasuredValue; callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; + callback attribute peakMeasuredValueWindow default = 1; callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute averageMeasuredValueWindow default = 1; + callback attribute uncertainty default = 0; + callback attribute measurementUnit default = 0; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2311,18 +2311,18 @@ endpoint 2 { callback attribute minMeasuredValue; callback attribute maxMeasuredValue; callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; + callback attribute peakMeasuredValueWindow default = 1; callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute averageMeasuredValueWindow default = 1; + callback attribute uncertainty default = 0; + callback attribute measurementUnit default = 0; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2331,18 +2331,18 @@ endpoint 2 { callback attribute minMeasuredValue; callback attribute maxMeasuredValue; callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; + callback attribute peakMeasuredValueWindow default = 1; callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute averageMeasuredValueWindow default = 1; + callback attribute uncertainty default = 0; + callback attribute measurementUnit default = 0; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2351,18 +2351,18 @@ endpoint 2 { callback attribute minMeasuredValue; callback attribute maxMeasuredValue; callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; + callback attribute peakMeasuredValueWindow default = 1; callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute averageMeasuredValueWindow default = 1; + callback attribute uncertainty default = 0; + callback attribute measurementUnit default = 0; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2371,18 +2371,18 @@ endpoint 2 { callback attribute minMeasuredValue; callback attribute maxMeasuredValue; callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; + callback attribute peakMeasuredValueWindow default = 1; callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute averageMeasuredValueWindow default = 1; + callback attribute uncertainty default = 0; + callback attribute measurementUnit default = 0; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2391,18 +2391,18 @@ endpoint 2 { callback attribute minMeasuredValue; callback attribute maxMeasuredValue; callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; + callback attribute peakMeasuredValueWindow default = 1; callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute averageMeasuredValueWindow default = 1; + callback attribute uncertainty default = 0; + callback attribute measurementUnit default = 0; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } } @@ -2434,7 +2434,7 @@ endpoint 3 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster TemperatureMeasurement { @@ -2478,7 +2478,7 @@ endpoint 4 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster RelativeHumidityMeasurement { diff --git a/examples/air-quality-sensor-app/air-quality-sensor-common/air-quality-sensor-app.matter b/examples/air-quality-sensor-app/air-quality-sensor-common/air-quality-sensor-app.matter index 5b6e3e88f39aca..deec044a356255 100644 --- a/examples/air-quality-sensor-app/air-quality-sensor-common/air-quality-sensor-app.matter +++ b/examples/air-quality-sensor-app/air-quality-sensor-common/air-quality-sensor-app.matter @@ -1993,7 +1993,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -2001,30 +2001,30 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -2042,7 +2042,7 @@ endpoint 0 { emits event StateTransition; emits event VersionApplied; emits event DownloadError; - callback attribute defaultOTAProviders; + callback attribute defaultOTAProviders default = 0; ram attribute updatePossible default = 1; ram attribute updateState default = 0; ram attribute updateStateProgress default = 0; @@ -2055,9 +2055,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 6; ram attribute clusterRevision default = 1; @@ -2095,9 +2095,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -2113,10 +2113,10 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 1; handle command ResetWatermarks; @@ -2125,11 +2125,11 @@ endpoint 0 { server cluster ThreadNetworkDiagnostics { callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; - callback attribute overrunCount; + callback attribute overrunCount default = 0x0000000000000000; callback attribute neighborTable; callback attribute routeTable; callback attribute partitionId; @@ -2137,53 +2137,53 @@ endpoint 0 { callback attribute dataVersion; callback attribute stableDataVersion; callback attribute leaderRouterId; - callback attribute detachedRoleCount; - callback attribute childRoleCount; - callback attribute routerRoleCount; - callback attribute leaderRoleCount; - callback attribute attachAttemptCount; - callback attribute partitionIdChangeCount; - callback attribute betterPartitionAttachAttemptCount; - callback attribute parentChangeCount; - callback attribute txTotalCount; - callback attribute txUnicastCount; - callback attribute txBroadcastCount; - callback attribute txAckRequestedCount; - callback attribute txAckedCount; - callback attribute txNoAckRequestedCount; - callback attribute txDataCount; - callback attribute txDataPollCount; - callback attribute txBeaconCount; - callback attribute txBeaconRequestCount; - callback attribute txOtherCount; - callback attribute txRetryCount; - callback attribute txDirectMaxRetryExpiryCount; - callback attribute txIndirectMaxRetryExpiryCount; - callback attribute txErrCcaCount; - callback attribute txErrAbortCount; - callback attribute txErrBusyChannelCount; - callback attribute rxTotalCount; - callback attribute rxUnicastCount; - callback attribute rxBroadcastCount; - callback attribute rxDataCount; - callback attribute rxDataPollCount; - callback attribute rxBeaconCount; - callback attribute rxBeaconRequestCount; - callback attribute rxOtherCount; - callback attribute rxAddressFilteredCount; - callback attribute rxDestAddrFilteredCount; - callback attribute rxDuplicatedCount; - callback attribute rxErrNoFrameCount; - callback attribute rxErrUnknownNeighborCount; - callback attribute rxErrInvalidSrcAddrCount; - callback attribute rxErrSecCount; - callback attribute rxErrFcsCount; - callback attribute rxErrOtherCount; - callback attribute activeTimestamp; - callback attribute pendingTimestamp; - callback attribute delay; + callback attribute detachedRoleCount default = 0x0000; + callback attribute childRoleCount default = 0x0000; + callback attribute routerRoleCount default = 0x0000; + callback attribute leaderRoleCount default = 0x0000; + callback attribute attachAttemptCount default = 0x0000; + callback attribute partitionIdChangeCount default = 0x0000; + callback attribute betterPartitionAttachAttemptCount default = 0x0000; + callback attribute parentChangeCount default = 0x0000; + callback attribute txTotalCount default = 0x0000; + callback attribute txUnicastCount default = 0x0000; + callback attribute txBroadcastCount default = 0x0000; + callback attribute txAckRequestedCount default = 0x0000; + callback attribute txAckedCount default = 0x0000; + callback attribute txNoAckRequestedCount default = 0x0000; + callback attribute txDataCount default = 0x0000; + callback attribute txDataPollCount default = 0x0000; + callback attribute txBeaconCount default = 0x0000; + callback attribute txBeaconRequestCount default = 0x0000; + callback attribute txOtherCount default = 0x0000; + callback attribute txRetryCount default = 0x0000; + callback attribute txDirectMaxRetryExpiryCount default = 0x0000; + callback attribute txIndirectMaxRetryExpiryCount default = 0x0000; + callback attribute txErrCcaCount default = 0x0000; + callback attribute txErrAbortCount default = 0x0000; + callback attribute txErrBusyChannelCount default = 0x0000; + callback attribute rxTotalCount default = 0x0000; + callback attribute rxUnicastCount default = 0x0000; + callback attribute rxBroadcastCount default = 0x0000; + callback attribute rxDataCount default = 0x0000; + callback attribute rxDataPollCount default = 0x0000; + callback attribute rxBeaconCount default = 0x0000; + callback attribute rxBeaconRequestCount default = 0x0000; + callback attribute rxOtherCount default = 0x0000; + callback attribute rxAddressFilteredCount default = 0x0000; + callback attribute rxDestAddrFilteredCount default = 0x0000; + callback attribute rxDuplicatedCount default = 0x0000; + callback attribute rxErrNoFrameCount default = 0x0000; + callback attribute rxErrUnknownNeighborCount default = 0x0000; + callback attribute rxErrInvalidSrcAddrCount default = 0x0000; + callback attribute rxErrSecCount default = 0x0000; + callback attribute rxErrFcsCount default = 0x0000; + callback attribute rxErrOtherCount default = 0x0000; + callback attribute activeTimestamp default = 0x0000000000000000; + callback attribute pendingTimestamp default = 0x0000000000000000; + callback attribute delay default = 0x0000; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; ram attribute featureMap default = 0x000F; @@ -2199,16 +2199,16 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; - callback attribute beaconLostCount; - callback attribute beaconRxCount; - callback attribute packetMulticastRxCount; - callback attribute packetMulticastTxCount; - callback attribute packetUnicastRxCount; - callback attribute packetUnicastTxCount; - callback attribute currentMaxRate; - callback attribute overrunCount; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; + callback attribute beaconLostCount default = 0x00000000; + callback attribute beaconRxCount default = 0x00000000; + callback attribute packetMulticastRxCount default = 0x00000000; + callback attribute packetMulticastTxCount default = 0x00000000; + callback attribute packetUnicastRxCount default = 0x00000000; + callback attribute packetUnicastTxCount default = 0x00000000; + callback attribute currentMaxRate default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -2217,14 +2217,14 @@ endpoint 0 { server cluster EthernetNetworkDiagnostics { callback attribute PHYRate; - callback attribute fullDuplex; - callback attribute packetRxCount; - callback attribute packetTxCount; - callback attribute txErrCount; - callback attribute collisionCount; - callback attribute overrunCount; - callback attribute carrierDetect; - callback attribute timeSinceReset; + callback attribute fullDuplex default = 0x00; + callback attribute packetRxCount default = 0x0000000000000000; + callback attribute packetTxCount default = 0x0000000000000000; + callback attribute txErrCount default = 0x0000000000000000; + callback attribute collisionCount default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; + callback attribute carrierDetect default = 0x00; + callback attribute timeSinceReset default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -2232,9 +2232,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -2272,8 +2272,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2310,16 +2310,16 @@ endpoint 1 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 2; } server cluster AirQuality { - callback attribute airQuality; + callback attribute airQuality default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 1; } @@ -2355,7 +2355,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2367,7 +2367,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2379,7 +2379,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2391,7 +2391,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2403,7 +2403,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2415,7 +2415,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2427,7 +2427,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2439,7 +2439,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2451,7 +2451,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2463,7 +2463,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } } diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter index 09032d60b68114..51ee4a24304530 100644 --- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter +++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter @@ -6245,7 +6245,7 @@ endpoint 0 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 2; } server cluster Binding { @@ -6259,33 +6259,33 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -6308,7 +6308,7 @@ endpoint 0 { emits event StateTransition; emits event VersionApplied; emits event DownloadError; - callback attribute defaultOTAProviders; + callback attribute defaultOTAProviders default = 0; ram attribute updatePossible default = 1; ram attribute updateState default = 0; ram attribute updateStateProgress default = 0; @@ -6376,9 +6376,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; @@ -6434,9 +6434,9 @@ endpoint 0 { emits event NetworkFaultChange; emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -6457,10 +6457,10 @@ endpoint 0 { server cluster SoftwareDiagnostics { emits event SoftwareFault; callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 1; handle command ResetWatermarks; @@ -6469,11 +6469,11 @@ endpoint 0 { server cluster ThreadNetworkDiagnostics { callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; - callback attribute overrunCount; + callback attribute overrunCount default = 0x0000000000000000; callback attribute neighborTable; callback attribute routeTable; callback attribute partitionId; @@ -6481,53 +6481,53 @@ endpoint 0 { callback attribute dataVersion; callback attribute stableDataVersion; callback attribute leaderRouterId; - callback attribute detachedRoleCount; - callback attribute childRoleCount; - callback attribute routerRoleCount; - callback attribute leaderRoleCount; - callback attribute attachAttemptCount; - callback attribute partitionIdChangeCount; - callback attribute betterPartitionAttachAttemptCount; - callback attribute parentChangeCount; - callback attribute txTotalCount; - callback attribute txUnicastCount; - callback attribute txBroadcastCount; - callback attribute txAckRequestedCount; - callback attribute txAckedCount; - callback attribute txNoAckRequestedCount; - callback attribute txDataCount; - callback attribute txDataPollCount; - callback attribute txBeaconCount; - callback attribute txBeaconRequestCount; - callback attribute txOtherCount; - callback attribute txRetryCount; - callback attribute txDirectMaxRetryExpiryCount; - callback attribute txIndirectMaxRetryExpiryCount; - callback attribute txErrCcaCount; - callback attribute txErrAbortCount; - callback attribute txErrBusyChannelCount; - callback attribute rxTotalCount; - callback attribute rxUnicastCount; - callback attribute rxBroadcastCount; - callback attribute rxDataCount; - callback attribute rxDataPollCount; - callback attribute rxBeaconCount; - callback attribute rxBeaconRequestCount; - callback attribute rxOtherCount; - callback attribute rxAddressFilteredCount; - callback attribute rxDestAddrFilteredCount; - callback attribute rxDuplicatedCount; - callback attribute rxErrNoFrameCount; - callback attribute rxErrUnknownNeighborCount; - callback attribute rxErrInvalidSrcAddrCount; - callback attribute rxErrSecCount; - callback attribute rxErrFcsCount; - callback attribute rxErrOtherCount; - callback attribute activeTimestamp; - callback attribute pendingTimestamp; - callback attribute delay; + callback attribute detachedRoleCount default = 0x0000; + callback attribute childRoleCount default = 0x0000; + callback attribute routerRoleCount default = 0x0000; + callback attribute leaderRoleCount default = 0x0000; + callback attribute attachAttemptCount default = 0x0000; + callback attribute partitionIdChangeCount default = 0x0000; + callback attribute betterPartitionAttachAttemptCount default = 0x0000; + callback attribute parentChangeCount default = 0x0000; + callback attribute txTotalCount default = 0x0000; + callback attribute txUnicastCount default = 0x0000; + callback attribute txBroadcastCount default = 0x0000; + callback attribute txAckRequestedCount default = 0x0000; + callback attribute txAckedCount default = 0x0000; + callback attribute txNoAckRequestedCount default = 0x0000; + callback attribute txDataCount default = 0x0000; + callback attribute txDataPollCount default = 0x0000; + callback attribute txBeaconCount default = 0x0000; + callback attribute txBeaconRequestCount default = 0x0000; + callback attribute txOtherCount default = 0x0000; + callback attribute txRetryCount default = 0x0000; + callback attribute txDirectMaxRetryExpiryCount default = 0x0000; + callback attribute txIndirectMaxRetryExpiryCount default = 0x0000; + callback attribute txErrCcaCount default = 0x0000; + callback attribute txErrAbortCount default = 0x0000; + callback attribute txErrBusyChannelCount default = 0x0000; + callback attribute rxTotalCount default = 0x0000; + callback attribute rxUnicastCount default = 0x0000; + callback attribute rxBroadcastCount default = 0x0000; + callback attribute rxDataCount default = 0x0000; + callback attribute rxDataPollCount default = 0x0000; + callback attribute rxBeaconCount default = 0x0000; + callback attribute rxBeaconRequestCount default = 0x0000; + callback attribute rxOtherCount default = 0x0000; + callback attribute rxAddressFilteredCount default = 0x0000; + callback attribute rxDestAddrFilteredCount default = 0x0000; + callback attribute rxDuplicatedCount default = 0x0000; + callback attribute rxErrNoFrameCount default = 0x0000; + callback attribute rxErrUnknownNeighborCount default = 0x0000; + callback attribute rxErrInvalidSrcAddrCount default = 0x0000; + callback attribute rxErrSecCount default = 0x0000; + callback attribute rxErrFcsCount default = 0x0000; + callback attribute rxErrOtherCount default = 0x0000; + callback attribute activeTimestamp default = 0x0000000000000000; + callback attribute pendingTimestamp default = 0x0000000000000000; + callback attribute delay default = 0x0000; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; ram attribute featureMap default = 0x000F; @@ -6543,16 +6543,16 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; - callback attribute beaconLostCount; - callback attribute beaconRxCount; - callback attribute packetMulticastRxCount; - callback attribute packetMulticastTxCount; - callback attribute packetUnicastRxCount; - callback attribute packetUnicastTxCount; - callback attribute currentMaxRate; - callback attribute overrunCount; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; + callback attribute beaconLostCount default = 0x00000000; + callback attribute beaconRxCount default = 0x00000000; + callback attribute packetMulticastRxCount default = 0x00000000; + callback attribute packetMulticastTxCount default = 0x00000000; + callback attribute packetUnicastRxCount default = 0x00000000; + callback attribute packetUnicastTxCount default = 0x00000000; + callback attribute currentMaxRate default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -6561,14 +6561,14 @@ endpoint 0 { server cluster EthernetNetworkDiagnostics { callback attribute PHYRate; - callback attribute fullDuplex; - callback attribute packetRxCount; - callback attribute packetTxCount; - callback attribute txErrCount; - callback attribute collisionCount; - callback attribute overrunCount; - callback attribute carrierDetect; - callback attribute timeSinceReset; + callback attribute fullDuplex default = 0x00; + callback attribute packetRxCount default = 0x0000000000000000; + callback attribute packetTxCount default = 0x0000000000000000; + callback attribute txErrCount default = 0x0000000000000000; + callback attribute collisionCount default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; + callback attribute carrierDetect default = 0x00; + callback attribute timeSinceReset default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -6582,15 +6582,15 @@ endpoint 0 { emits event TimeFailure; emits event MissingTrustedTimeSource; callback attribute UTCTime; - callback attribute granularity; + callback attribute granularity default = 0x00; ram attribute timeSource default = 0x00; callback attribute trustedTimeSource; callback attribute defaultNTP; - callback attribute timeZone; + callback attribute timeZone default = 1; callback attribute DSTOffset; - callback attribute localTime; + callback attribute localTime default = 1; ram attribute timeZoneDatabase default = 0; - callback attribute timeZoneListMaxSize; + callback attribute timeZoneListMaxSize default = 3; callback attribute DSTOffsetListMaxSize; ram attribute supportsDNSResolve default = true; callback attribute generatedCommandList; @@ -6608,9 +6608,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; @@ -6660,8 +6660,8 @@ endpoint 0 { callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -6851,7 +6851,7 @@ endpoint 1 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 2; } server cluster Binding { @@ -6914,7 +6914,7 @@ endpoint 1 { server cluster ModeSelect { ram attribute description default = "Coffee"; ram attribute standardNamespace default = 0; - callback attribute supportedModes; + callback attribute supportedModes default = 0; persist attribute currentMode default = 0; persist attribute startUpMode default = 0; persist attribute onMode default = 255; @@ -6936,7 +6936,7 @@ endpoint 1 { callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 2; handle command ChangeToMode; @@ -6951,7 +6951,7 @@ endpoint 1 { callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 2; handle command ChangeToMode; @@ -6978,7 +6978,7 @@ endpoint 1 { callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 2; handle command ChangeToMode; @@ -6992,7 +6992,7 @@ endpoint 1 { callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 2; handle command ChangeToMode; @@ -7031,7 +7031,7 @@ endpoint 1 { callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 2; handle command ChangeToMode; @@ -7039,11 +7039,11 @@ endpoint 1 { } server cluster AirQuality { - callback attribute airQuality; + callback attribute airQuality default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 1; } @@ -7101,7 +7101,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 1; } @@ -7131,14 +7131,14 @@ endpoint 1 { emits event OperationalError; emits event OperationCompletion; callback attribute phaseList; - callback attribute currentPhase; - callback attribute countdownTime; - callback attribute operationalStateList; - callback attribute operationalState; - callback attribute operationalError; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute currentPhase default = 0; + callback attribute countdownTime default = 0; + callback attribute operationalStateList default = 0; + callback attribute operationalState default = 0; + callback attribute operationalError default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -7150,14 +7150,14 @@ endpoint 1 { server cluster HepaFilterMonitoring { callback attribute condition; callback attribute degradationDirection; - callback attribute changeIndication; + callback attribute changeIndication default = 0; callback attribute inPlaceIndicator; callback attribute lastChangedTime; callback attribute replacementProductList; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 7; ram attribute clusterRevision default = 1; handle command ResetCondition; @@ -7166,14 +7166,14 @@ endpoint 1 { server cluster ActivatedCarbonFilterMonitoring { callback attribute condition; callback attribute degradationDirection; - callback attribute changeIndication; + callback attribute changeIndication default = 0; callback attribute inPlaceIndicator; callback attribute lastChangedTime; callback attribute replacementProductList; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 7; ram attribute clusterRevision default = 1; handle command ResetCondition; @@ -7484,192 +7484,192 @@ endpoint 1 { } server cluster CarbonMonoxideConcentrationMeasurement { - callback attribute measuredValue; - callback attribute minMeasuredValue; - callback attribute maxMeasuredValue; - callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; - callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute measuredValue default = 401; + callback attribute minMeasuredValue default = 50; + callback attribute maxMeasuredValue default = 1500; + callback attribute peakMeasuredValue default = 511; + callback attribute peakMeasuredValueWindow default = 3600; + callback attribute averageMeasuredValue default = 213; + callback attribute averageMeasuredValueWindow default = 3600; + callback attribute uncertainty default = 10; + callback attribute measurementUnit default = 1; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 3; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } server cluster CarbonDioxideConcentrationMeasurement { - callback attribute measuredValue; - callback attribute minMeasuredValue; - callback attribute maxMeasuredValue; - callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; - callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute measuredValue default = 458; + callback attribute minMeasuredValue default = 300; + callback attribute maxMeasuredValue default = 2000; + callback attribute peakMeasuredValue default = 523; + callback attribute peakMeasuredValueWindow default = 3600; + callback attribute averageMeasuredValue default = 421; + callback attribute averageMeasuredValueWindow default = 3600; + callback attribute uncertainty default = 5; + callback attribute measurementUnit default = 0; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } server cluster NitrogenDioxideConcentrationMeasurement { - callback attribute measuredValue; - callback attribute minMeasuredValue; - callback attribute maxMeasuredValue; - callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; - callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute measuredValue default = 3; + callback attribute minMeasuredValue default = 1; + callback attribute maxMeasuredValue default = 150; + callback attribute peakMeasuredValue default = 3; + callback attribute peakMeasuredValueWindow default = 120; + callback attribute averageMeasuredValue default = 3; + callback attribute averageMeasuredValueWindow default = 120; + callback attribute uncertainty default = 1; + callback attribute measurementUnit default = 1; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } server cluster OzoneConcentrationMeasurement { - callback attribute measuredValue; - callback attribute minMeasuredValue; - callback attribute maxMeasuredValue; - callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; - callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute measuredValue default = 10; + callback attribute minMeasuredValue default = 3; + callback attribute maxMeasuredValue default = 300; + callback attribute peakMeasuredValue default = 50; + callback attribute peakMeasuredValueWindow default = 3600; + callback attribute averageMeasuredValue default = 20; + callback attribute averageMeasuredValueWindow default = 3600; + callback attribute uncertainty default = 0; + callback attribute measurementUnit default = 0; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } server cluster Pm25ConcentrationMeasurement { - callback attribute measuredValue; - callback attribute minMeasuredValue; - callback attribute maxMeasuredValue; - callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; - callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute measuredValue default = 42; + callback attribute minMeasuredValue default = 1; + callback attribute maxMeasuredValue default = 400; + callback attribute peakMeasuredValue default = 90; + callback attribute peakMeasuredValueWindow default = 3600; + callback attribute averageMeasuredValue default = 35; + callback attribute averageMeasuredValueWindow default = 3600; + callback attribute uncertainty default = 4; + callback attribute measurementUnit default = 4; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 2; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } server cluster FormaldehydeConcentrationMeasurement { - callback attribute measuredValue; - callback attribute minMeasuredValue; - callback attribute maxMeasuredValue; - callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; - callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute measuredValue default = 10; + callback attribute minMeasuredValue default = 0; + callback attribute maxMeasuredValue default = 200; + callback attribute peakMeasuredValue default = 10; + callback attribute peakMeasuredValueWindow default = 7200; + callback attribute averageMeasuredValue default = 2; + callback attribute averageMeasuredValueWindow default = 7200; + callback attribute uncertainty default = 0; + callback attribute measurementUnit default = 3; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 2; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } server cluster Pm1ConcentrationMeasurement { - callback attribute measuredValue; - callback attribute minMeasuredValue; - callback attribute maxMeasuredValue; - callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; - callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute measuredValue default = 39; + callback attribute minMeasuredValue default = 1; + callback attribute maxMeasuredValue default = 400; + callback attribute peakMeasuredValue default = 70; + callback attribute peakMeasuredValueWindow default = 3600; + callback attribute averageMeasuredValue default = 41; + callback attribute averageMeasuredValueWindow default = 3600; + callback attribute uncertainty default = 4; + callback attribute measurementUnit default = 4; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } server cluster Pm10ConcentrationMeasurement { - callback attribute measuredValue; - callback attribute minMeasuredValue; - callback attribute maxMeasuredValue; - callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; - callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute measuredValue default = 7; + callback attribute minMeasuredValue default = 2; + callback attribute maxMeasuredValue default = 400; + callback attribute peakMeasuredValue default = 49; + callback attribute peakMeasuredValueWindow default = 3600; + callback attribute averageMeasuredValue default = 43; + callback attribute averageMeasuredValueWindow default = 3600; + callback attribute uncertainty default = 2; + callback attribute measurementUnit default = 4; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } server cluster TotalVolatileOrganicCompoundsConcentrationMeasurement { - callback attribute measuredValue; - callback attribute minMeasuredValue; - callback attribute maxMeasuredValue; - callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; - callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute measuredValue default = 5; + callback attribute minMeasuredValue default = 1; + callback attribute maxMeasuredValue default = 100; + callback attribute peakMeasuredValue default = 8; + callback attribute peakMeasuredValueWindow default = 3600; + callback attribute averageMeasuredValue default = 2; + callback attribute averageMeasuredValueWindow default = 3600; + callback attribute uncertainty default = 1; + callback attribute measurementUnit default = 1; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } server cluster RadonConcentrationMeasurement { - callback attribute measuredValue; - callback attribute minMeasuredValue; - callback attribute maxMeasuredValue; - callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; - callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute measuredValue default = 10; + callback attribute minMeasuredValue default = 5; + callback attribute maxMeasuredValue default = 100; + callback attribute peakMeasuredValue default = 36; + callback attribute peakMeasuredValueWindow default = 3600; + callback attribute averageMeasuredValue default = 20; + callback attribute averageMeasuredValueWindow default = 3600; + callback attribute uncertainty default = 0; + callback attribute measurementUnit default = 0; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 3; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -7922,7 +7922,7 @@ endpoint 2 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 2; } server cluster PowerSource { @@ -7963,7 +7963,7 @@ endpoint 65534 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 2; } server cluster NetworkCommissioning { diff --git a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter index 48d7e9122eab32..c198d429839518 100644 --- a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter +++ b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter @@ -5653,7 +5653,7 @@ endpoint 0 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Binding { @@ -5666,29 +5666,29 @@ endpoint 0 { emits event AccessControlEntryChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; callback attribute capabilityMinima; callback attribute specificationVersion; @@ -5705,7 +5705,7 @@ endpoint 0 { emits event StateTransition; emits event VersionApplied; emits event DownloadError; - callback attribute defaultOTAProviders; + callback attribute defaultOTAProviders default = 0; ram attribute updatePossible default = 1; ram attribute updateState default = 0; ram attribute updateStateProgress default = 0; @@ -5761,9 +5761,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; @@ -5815,8 +5815,8 @@ endpoint 0 { server cluster GeneralDiagnostics { callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; callback attribute testEventTriggersEnabled; callback attribute generatedCommandList; callback attribute acceptedCommandList; @@ -5831,16 +5831,16 @@ endpoint 0 { } server cluster SoftwareDiagnostics { - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 1; } server cluster ThreadNetworkDiagnostics { callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; callback attribute neighborTable; callback attribute routeTable; @@ -5850,7 +5850,7 @@ endpoint 0 { callback attribute stableDataVersion; callback attribute leaderRouterId; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; ram attribute featureMap default = 0; @@ -5861,22 +5861,22 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; } server cluster EthernetNetworkDiagnostics { callback attribute PHYRate; - callback attribute fullDuplex; - callback attribute packetRxCount; - callback attribute packetTxCount; - callback attribute txErrCount; - callback attribute collisionCount; - callback attribute overrunCount; - callback attribute carrierDetect; - callback attribute timeSinceReset; + callback attribute fullDuplex default = 0x00; + callback attribute packetRxCount default = 0x0000000000000000; + callback attribute packetTxCount default = 0x0000000000000000; + callback attribute txErrCount default = 0x0000000000000000; + callback attribute collisionCount default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; + callback attribute carrierDetect default = 0x00; + callback attribute timeSinceReset default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -5884,9 +5884,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; @@ -5935,8 +5935,8 @@ endpoint 0 { callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -6083,7 +6083,7 @@ endpoint 1 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Binding { @@ -6140,7 +6140,7 @@ endpoint 1 { server cluster ModeSelect { ram attribute description default = "Coffee"; ram attribute standardNamespace default = 0; - callback attribute supportedModes; + callback attribute supportedModes default = 0; persist attribute currentMode default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; @@ -6623,7 +6623,7 @@ endpoint 2 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster PowerSource { @@ -6661,7 +6661,7 @@ endpoint 65534 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster NetworkCommissioning { diff --git a/examples/bridge-app/bridge-common/bridge-app.matter b/examples/bridge-app/bridge-common/bridge-app.matter index 6d2ec93be95ad0..b02ba6bc60e556 100644 --- a/examples/bridge-app/bridge-common/bridge-app.matter +++ b/examples/bridge-app/bridge-common/bridge-app.matter @@ -1901,39 +1901,39 @@ endpoint 0 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { emits event AccessControlEntryChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1983,9 +1983,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; @@ -2036,9 +2036,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -2058,21 +2058,21 @@ endpoint 0 { server cluster SoftwareDiagnostics { emits event SoftwareFault; callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 1; } server cluster ThreadNetworkDiagnostics { callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; - callback attribute overrunCount; + callback attribute overrunCount default = 0x0000000000000000; callback attribute neighborTable; callback attribute routeTable; callback attribute partitionId; @@ -2080,53 +2080,53 @@ endpoint 0 { callback attribute dataVersion; callback attribute stableDataVersion; callback attribute leaderRouterId; - callback attribute detachedRoleCount; - callback attribute childRoleCount; - callback attribute routerRoleCount; - callback attribute leaderRoleCount; - callback attribute attachAttemptCount; - callback attribute partitionIdChangeCount; - callback attribute betterPartitionAttachAttemptCount; - callback attribute parentChangeCount; - callback attribute txTotalCount; - callback attribute txUnicastCount; - callback attribute txBroadcastCount; - callback attribute txAckRequestedCount; - callback attribute txAckedCount; - callback attribute txNoAckRequestedCount; - callback attribute txDataCount; - callback attribute txDataPollCount; - callback attribute txBeaconCount; - callback attribute txBeaconRequestCount; - callback attribute txOtherCount; - callback attribute txRetryCount; - callback attribute txDirectMaxRetryExpiryCount; - callback attribute txIndirectMaxRetryExpiryCount; - callback attribute txErrCcaCount; - callback attribute txErrAbortCount; - callback attribute txErrBusyChannelCount; - callback attribute rxTotalCount; - callback attribute rxUnicastCount; - callback attribute rxBroadcastCount; - callback attribute rxDataCount; - callback attribute rxDataPollCount; - callback attribute rxBeaconCount; - callback attribute rxBeaconRequestCount; - callback attribute rxOtherCount; - callback attribute rxAddressFilteredCount; - callback attribute rxDestAddrFilteredCount; - callback attribute rxDuplicatedCount; - callback attribute rxErrNoFrameCount; - callback attribute rxErrUnknownNeighborCount; - callback attribute rxErrInvalidSrcAddrCount; - callback attribute rxErrSecCount; - callback attribute rxErrFcsCount; - callback attribute rxErrOtherCount; - callback attribute activeTimestamp; - callback attribute pendingTimestamp; - callback attribute delay; + callback attribute detachedRoleCount default = 0x0000; + callback attribute childRoleCount default = 0x0000; + callback attribute routerRoleCount default = 0x0000; + callback attribute leaderRoleCount default = 0x0000; + callback attribute attachAttemptCount default = 0x0000; + callback attribute partitionIdChangeCount default = 0x0000; + callback attribute betterPartitionAttachAttemptCount default = 0x0000; + callback attribute parentChangeCount default = 0x0000; + callback attribute txTotalCount default = 0x0000; + callback attribute txUnicastCount default = 0x0000; + callback attribute txBroadcastCount default = 0x0000; + callback attribute txAckRequestedCount default = 0x0000; + callback attribute txAckedCount default = 0x0000; + callback attribute txNoAckRequestedCount default = 0x0000; + callback attribute txDataCount default = 0x0000; + callback attribute txDataPollCount default = 0x0000; + callback attribute txBeaconCount default = 0x0000; + callback attribute txBeaconRequestCount default = 0x0000; + callback attribute txOtherCount default = 0x0000; + callback attribute txRetryCount default = 0x0000; + callback attribute txDirectMaxRetryExpiryCount default = 0x0000; + callback attribute txIndirectMaxRetryExpiryCount default = 0x0000; + callback attribute txErrCcaCount default = 0x0000; + callback attribute txErrAbortCount default = 0x0000; + callback attribute txErrBusyChannelCount default = 0x0000; + callback attribute rxTotalCount default = 0x0000; + callback attribute rxUnicastCount default = 0x0000; + callback attribute rxBroadcastCount default = 0x0000; + callback attribute rxDataCount default = 0x0000; + callback attribute rxDataPollCount default = 0x0000; + callback attribute rxBeaconCount default = 0x0000; + callback attribute rxBeaconRequestCount default = 0x0000; + callback attribute rxOtherCount default = 0x0000; + callback attribute rxAddressFilteredCount default = 0x0000; + callback attribute rxDestAddrFilteredCount default = 0x0000; + callback attribute rxDuplicatedCount default = 0x0000; + callback attribute rxErrNoFrameCount default = 0x0000; + callback attribute rxErrUnknownNeighborCount default = 0x0000; + callback attribute rxErrInvalidSrcAddrCount default = 0x0000; + callback attribute rxErrSecCount default = 0x0000; + callback attribute rxErrFcsCount default = 0x0000; + callback attribute rxErrOtherCount default = 0x0000; + callback attribute activeTimestamp default = 0x0000000000000000; + callback attribute pendingTimestamp default = 0x0000000000000000; + callback attribute delay default = 0x0000; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; ram attribute featureMap default = 15; @@ -2140,30 +2140,30 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; - callback attribute beaconLostCount; - callback attribute beaconRxCount; - callback attribute packetMulticastRxCount; - callback attribute packetMulticastTxCount; - callback attribute packetUnicastRxCount; - callback attribute packetUnicastTxCount; - callback attribute currentMaxRate; - callback attribute overrunCount; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; + callback attribute beaconLostCount default = 0x00000000; + callback attribute beaconRxCount default = 0x00000000; + callback attribute packetMulticastRxCount default = 0x00000000; + callback attribute packetMulticastTxCount default = 0x00000000; + callback attribute packetUnicastRxCount default = 0x00000000; + callback attribute packetUnicastTxCount default = 0x00000000; + callback attribute currentMaxRate default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; } server cluster EthernetNetworkDiagnostics { callback attribute PHYRate; - callback attribute fullDuplex; - callback attribute packetRxCount; - callback attribute packetTxCount; - callback attribute txErrCount; - callback attribute collisionCount; - callback attribute overrunCount; - callback attribute carrierDetect; - callback attribute timeSinceReset; + callback attribute fullDuplex default = 0x00; + callback attribute packetRxCount default = 0x0000000000000000; + callback attribute packetTxCount default = 0x0000000000000000; + callback attribute txErrCount default = 0x0000000000000000; + callback attribute collisionCount default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; + callback attribute carrierDetect default = 0x00; + callback attribute timeSinceReset default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -2171,9 +2171,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; @@ -2220,8 +2220,8 @@ endpoint 0 { callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2264,7 +2264,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Actions { @@ -2329,7 +2329,7 @@ endpoint 2 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Switch { diff --git a/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter b/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter index 2d78ad3dccd074..e653848b1689b3 100644 --- a/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter +++ b/examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter @@ -1642,7 +1642,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1655,25 +1655,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1719,9 +1719,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1743,9 +1743,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1761,10 +1761,10 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 0x0001; handle command ResetWatermarks; @@ -1773,11 +1773,11 @@ endpoint 0 { server cluster ThreadNetworkDiagnostics { callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; - callback attribute overrunCount; + callback attribute overrunCount default = 0x0000000000000000; callback attribute neighborTable; callback attribute routeTable; callback attribute partitionId; @@ -1785,53 +1785,53 @@ endpoint 0 { callback attribute dataVersion; callback attribute stableDataVersion; callback attribute leaderRouterId; - callback attribute detachedRoleCount; - callback attribute childRoleCount; - callback attribute routerRoleCount; - callback attribute leaderRoleCount; - callback attribute attachAttemptCount; - callback attribute partitionIdChangeCount; - callback attribute betterPartitionAttachAttemptCount; - callback attribute parentChangeCount; - callback attribute txTotalCount; - callback attribute txUnicastCount; - callback attribute txBroadcastCount; - callback attribute txAckRequestedCount; - callback attribute txAckedCount; - callback attribute txNoAckRequestedCount; - callback attribute txDataCount; - callback attribute txDataPollCount; - callback attribute txBeaconCount; - callback attribute txBeaconRequestCount; - callback attribute txOtherCount; - callback attribute txRetryCount; - callback attribute txDirectMaxRetryExpiryCount; - callback attribute txIndirectMaxRetryExpiryCount; - callback attribute txErrCcaCount; - callback attribute txErrAbortCount; - callback attribute txErrBusyChannelCount; - callback attribute rxTotalCount; - callback attribute rxUnicastCount; - callback attribute rxBroadcastCount; - callback attribute rxDataCount; - callback attribute rxDataPollCount; - callback attribute rxBeaconCount; - callback attribute rxBeaconRequestCount; - callback attribute rxOtherCount; - callback attribute rxAddressFilteredCount; - callback attribute rxDestAddrFilteredCount; - callback attribute rxDuplicatedCount; - callback attribute rxErrNoFrameCount; - callback attribute rxErrUnknownNeighborCount; - callback attribute rxErrInvalidSrcAddrCount; - callback attribute rxErrSecCount; - callback attribute rxErrFcsCount; - callback attribute rxErrOtherCount; - callback attribute activeTimestamp; - callback attribute pendingTimestamp; - callback attribute delay; + callback attribute detachedRoleCount default = 0x0000; + callback attribute childRoleCount default = 0x0000; + callback attribute routerRoleCount default = 0x0000; + callback attribute leaderRoleCount default = 0x0000; + callback attribute attachAttemptCount default = 0x0000; + callback attribute partitionIdChangeCount default = 0x0000; + callback attribute betterPartitionAttachAttemptCount default = 0x0000; + callback attribute parentChangeCount default = 0x0000; + callback attribute txTotalCount default = 0x0000; + callback attribute txUnicastCount default = 0x0000; + callback attribute txBroadcastCount default = 0x0000; + callback attribute txAckRequestedCount default = 0x0000; + callback attribute txAckedCount default = 0x0000; + callback attribute txNoAckRequestedCount default = 0x0000; + callback attribute txDataCount default = 0x0000; + callback attribute txDataPollCount default = 0x0000; + callback attribute txBeaconCount default = 0x0000; + callback attribute txBeaconRequestCount default = 0x0000; + callback attribute txOtherCount default = 0x0000; + callback attribute txRetryCount default = 0x0000; + callback attribute txDirectMaxRetryExpiryCount default = 0x0000; + callback attribute txIndirectMaxRetryExpiryCount default = 0x0000; + callback attribute txErrCcaCount default = 0x0000; + callback attribute txErrAbortCount default = 0x0000; + callback attribute txErrBusyChannelCount default = 0x0000; + callback attribute rxTotalCount default = 0x0000; + callback attribute rxUnicastCount default = 0x0000; + callback attribute rxBroadcastCount default = 0x0000; + callback attribute rxDataCount default = 0x0000; + callback attribute rxDataPollCount default = 0x0000; + callback attribute rxBeaconCount default = 0x0000; + callback attribute rxBeaconRequestCount default = 0x0000; + callback attribute rxOtherCount default = 0x0000; + callback attribute rxAddressFilteredCount default = 0x0000; + callback attribute rxDestAddrFilteredCount default = 0x0000; + callback attribute rxDuplicatedCount default = 0x0000; + callback attribute rxErrNoFrameCount default = 0x0000; + callback attribute rxErrUnknownNeighborCount default = 0x0000; + callback attribute rxErrInvalidSrcAddrCount default = 0x0000; + callback attribute rxErrSecCount default = 0x0000; + callback attribute rxErrFcsCount default = 0x0000; + callback attribute rxErrOtherCount default = 0x0000; + callback attribute activeTimestamp default = 0x0000000000000000; + callback attribute pendingTimestamp default = 0x0000000000000000; + callback attribute delay default = 0x0000; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; ram attribute featureMap default = 0x000F; @@ -1847,16 +1847,16 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; - callback attribute beaconLostCount; - callback attribute beaconRxCount; - callback attribute packetMulticastRxCount; - callback attribute packetMulticastTxCount; - callback attribute packetUnicastRxCount; - callback attribute packetUnicastTxCount; - callback attribute currentMaxRate; - callback attribute overrunCount; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; + callback attribute beaconLostCount default = 0x00000000; + callback attribute beaconRxCount default = 0x00000000; + callback attribute packetMulticastRxCount default = 0x00000000; + callback attribute packetMulticastTxCount default = 0x00000000; + callback attribute packetUnicastRxCount default = 0x00000000; + callback attribute packetUnicastTxCount default = 0x00000000; + callback attribute currentMaxRate default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 0x0001; @@ -1865,14 +1865,14 @@ endpoint 0 { server cluster EthernetNetworkDiagnostics { callback attribute PHYRate; - callback attribute fullDuplex; - callback attribute packetRxCount; - callback attribute packetTxCount; - callback attribute txErrCount; - callback attribute collisionCount; - callback attribute overrunCount; - callback attribute carrierDetect; - callback attribute timeSinceReset; + callback attribute fullDuplex default = 0x00; + callback attribute packetRxCount default = 0x0000000000000000; + callback attribute packetTxCount default = 0x0000000000000000; + callback attribute txErrCount default = 0x0000000000000000; + callback attribute collisionCount default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; + callback attribute carrierDetect default = 0x00; + callback attribute timeSinceReset default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 0x0001; @@ -1880,9 +1880,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1920,8 +1920,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1946,9 +1946,9 @@ endpoint 1 { server cluster Identify { ram attribute identifyTime default = 0x0; ram attribute identifyType default = 0x0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; @@ -1957,9 +1957,9 @@ endpoint 1 { server cluster Groups { ram attribute nameSupport default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 3; @@ -1981,9 +1981,9 @@ endpoint 1 { ram attribute onTime default = 0; ram attribute offWaitTime default = 0; ram attribute startUpOnOff default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0x1; ram attribute clusterRevision default = 5; @@ -2000,9 +2000,9 @@ endpoint 1 { ram attribute options default = 0x03; ram attribute onLevel default = 0xFE; ram attribute startUpCurrentLevel default = 0x00; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0x03; ram attribute clusterRevision default = 5; @@ -2017,15 +2017,15 @@ endpoint 1 { } server cluster Descriptor { - callback attribute deviceTypeList; - callback attribute serverList; - callback attribute clientList; - callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute deviceTypeList default = 0; + callback attribute serverList default = 0; + callback attribute clientList default = 0; + callback attribute partsList default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } } diff --git a/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter b/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter index c7d7b5872d2ff4..70cce90a69e6b4 100644 --- a/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter +++ b/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter @@ -2210,7 +2210,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -2223,25 +2223,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -2258,9 +2258,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -2305,9 +2305,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -2322,9 +2322,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -2362,8 +2362,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2380,10 +2380,10 @@ endpoint 1 { server cluster Identify { ram attribute identifyTime default = 0x0; ram attribute identifyType default = 0x0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; callback attribute eventList; - callback attribute attributeList; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; @@ -2413,41 +2413,41 @@ endpoint 1 { } server cluster Descriptor { - callback attribute deviceTypeList; - callback attribute serverList; - callback attribute clientList; - callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; + callback attribute deviceTypeList default = 0; + callback attribute serverList default = 0; + callback attribute clientList default = 0; + callback attribute partsList default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; callback attribute eventList; - callback attribute attributeList; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster HepaFilterMonitoring { - callback attribute condition; - callback attribute degradationDirection; - callback attribute changeIndication; - callback attribute inPlaceIndicator; + callback attribute condition default = 100; + callback attribute degradationDirection default = 1; + callback attribute changeIndication default = 0; + callback attribute inPlaceIndicator default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 1; } server cluster ActivatedCarbonFilterMonitoring { - callback attribute condition; - callback attribute degradationDirection; - callback attribute changeIndication; - callback attribute inPlaceIndicator; + callback attribute condition default = 100; + callback attribute degradationDirection default = 1; + callback attribute changeIndication default = 0; + callback attribute inPlaceIndicator default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 1; } @@ -2499,16 +2499,16 @@ endpoint 2 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AirQuality { - callback attribute airQuality; + callback attribute airQuality default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 1; } @@ -2517,17 +2517,17 @@ endpoint 2 { callback attribute minMeasuredValue; callback attribute maxMeasuredValue; callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; + callback attribute peakMeasuredValueWindow default = 1; callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute averageMeasuredValueWindow default = 1; + callback attribute measurementUnit default = 0; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2536,17 +2536,17 @@ endpoint 2 { callback attribute minMeasuredValue; callback attribute maxMeasuredValue; callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; + callback attribute peakMeasuredValueWindow default = 1; callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute averageMeasuredValueWindow default = 1; + callback attribute measurementUnit default = 0; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 1; } @@ -2555,17 +2555,17 @@ endpoint 2 { callback attribute minMeasuredValue; callback attribute maxMeasuredValue; callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; + callback attribute peakMeasuredValueWindow default = 1; callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute averageMeasuredValueWindow default = 1; + callback attribute measurementUnit default = 0; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2574,17 +2574,17 @@ endpoint 2 { callback attribute minMeasuredValue; callback attribute maxMeasuredValue; callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; + callback attribute peakMeasuredValueWindow default = 1; callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute averageMeasuredValueWindow default = 1; + callback attribute measurementUnit default = 0; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2593,17 +2593,17 @@ endpoint 2 { callback attribute minMeasuredValue; callback attribute maxMeasuredValue; callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; + callback attribute peakMeasuredValueWindow default = 1; callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute averageMeasuredValueWindow default = 1; + callback attribute measurementUnit default = 0; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2612,17 +2612,17 @@ endpoint 2 { callback attribute minMeasuredValue; callback attribute maxMeasuredValue; callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; + callback attribute peakMeasuredValueWindow default = 1; callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute averageMeasuredValueWindow default = 1; + callback attribute measurementUnit default = 0; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2631,17 +2631,17 @@ endpoint 2 { callback attribute minMeasuredValue; callback attribute maxMeasuredValue; callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; + callback attribute peakMeasuredValueWindow default = 1; callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute averageMeasuredValueWindow default = 1; + callback attribute measurementUnit default = 0; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2650,17 +2650,17 @@ endpoint 2 { callback attribute minMeasuredValue; callback attribute maxMeasuredValue; callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; + callback attribute peakMeasuredValueWindow default = 1; callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute averageMeasuredValueWindow default = 1; + callback attribute measurementUnit default = 0; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2669,17 +2669,17 @@ endpoint 2 { callback attribute minMeasuredValue; callback attribute maxMeasuredValue; callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; + callback attribute peakMeasuredValueWindow default = 1; callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute averageMeasuredValueWindow default = 1; + callback attribute measurementUnit default = 0; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } @@ -2688,17 +2688,17 @@ endpoint 2 { callback attribute minMeasuredValue; callback attribute maxMeasuredValue; callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; + callback attribute peakMeasuredValueWindow default = 1; callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute averageMeasuredValueWindow default = 1; + callback attribute measurementUnit default = 0; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 3; } } @@ -2730,7 +2730,7 @@ endpoint 3 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster TemperatureMeasurement { @@ -2773,7 +2773,7 @@ endpoint 4 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster RelativeHumidityMeasurement { @@ -2816,7 +2816,7 @@ endpoint 5 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Thermostat { diff --git a/examples/chef/devices/rootnode_airqualitysensor_e63187f6c9.matter b/examples/chef/devices/rootnode_airqualitysensor_e63187f6c9.matter index 89d807ddc3cd55..d2cdddc159c216 100644 --- a/examples/chef/devices/rootnode_airqualitysensor_e63187f6c9.matter +++ b/examples/chef/devices/rootnode_airqualitysensor_e63187f6c9.matter @@ -1833,7 +1833,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1846,25 +1846,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1910,9 +1910,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1957,9 +1957,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1975,19 +1975,19 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 0x0001; handle command ResetWatermarks; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -2025,8 +2025,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2069,16 +2069,16 @@ endpoint 1 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 2; } server cluster AirQuality { - callback attribute airQuality; + callback attribute airQuality default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 15; ram attribute clusterRevision default = 1; } @@ -2109,202 +2109,202 @@ endpoint 1 { } server cluster CarbonMonoxideConcentrationMeasurement { - callback attribute measuredValue; - callback attribute minMeasuredValue; - callback attribute maxMeasuredValue; - callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; - callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute measuredValue default = 401; + callback attribute minMeasuredValue default = 50; + callback attribute maxMeasuredValue default = 1500; + callback attribute peakMeasuredValue default = 511; + callback attribute peakMeasuredValueWindow default = 3600; + callback attribute averageMeasuredValue default = 213; + callback attribute averageMeasuredValueWindow default = 3600; + callback attribute uncertainty default = 10; + callback attribute measurementUnit default = 1; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 3; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 63; ram attribute clusterRevision default = 3; } server cluster CarbonDioxideConcentrationMeasurement { - callback attribute measuredValue; - callback attribute minMeasuredValue; - callback attribute maxMeasuredValue; - callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; - callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute measuredValue default = 458; + callback attribute minMeasuredValue default = 300; + callback attribute maxMeasuredValue default = 2000; + callback attribute peakMeasuredValue default = 523; + callback attribute peakMeasuredValueWindow default = 3600; + callback attribute averageMeasuredValue default = 421; + callback attribute averageMeasuredValueWindow default = 3600; + callback attribute uncertainty default = 5; + callback attribute measurementUnit default = 0; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 63; ram attribute clusterRevision default = 3; } server cluster NitrogenDioxideConcentrationMeasurement { - callback attribute measuredValue; - callback attribute minMeasuredValue; - callback attribute maxMeasuredValue; - callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; - callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute measuredValue default = 3; + callback attribute minMeasuredValue default = 1; + callback attribute maxMeasuredValue default = 150; + callback attribute peakMeasuredValue default = 3; + callback attribute peakMeasuredValueWindow default = 120; + callback attribute averageMeasuredValue default = 3; + callback attribute averageMeasuredValueWindow default = 120; + callback attribute uncertainty default = 1; + callback attribute measurementUnit default = 1; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 63; ram attribute clusterRevision default = 3; } server cluster OzoneConcentrationMeasurement { - callback attribute measuredValue; - callback attribute minMeasuredValue; - callback attribute maxMeasuredValue; - callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; - callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute measuredValue default = 10; + callback attribute minMeasuredValue default = 3; + callback attribute maxMeasuredValue default = 300; + callback attribute peakMeasuredValue default = 50; + callback attribute peakMeasuredValueWindow default = 3600; + callback attribute averageMeasuredValue default = 20; + callback attribute averageMeasuredValueWindow default = 3600; + callback attribute uncertainty default = 0; + callback attribute measurementUnit default = 0; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 63; ram attribute clusterRevision default = 3; } server cluster Pm25ConcentrationMeasurement { - callback attribute measuredValue; - callback attribute minMeasuredValue; - callback attribute maxMeasuredValue; - callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; - callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute measuredValue default = 42; + callback attribute minMeasuredValue default = 1; + callback attribute maxMeasuredValue default = 400; + callback attribute peakMeasuredValue default = 90; + callback attribute peakMeasuredValueWindow default = 3600; + callback attribute averageMeasuredValue default = 35; + callback attribute averageMeasuredValueWindow default = 3600; + callback attribute uncertainty default = 4; + callback attribute measurementUnit default = 4; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 2; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 63; ram attribute clusterRevision default = 3; } server cluster FormaldehydeConcentrationMeasurement { - callback attribute measuredValue; - callback attribute minMeasuredValue; - callback attribute maxMeasuredValue; - callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; - callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute measuredValue default = 10; + callback attribute minMeasuredValue default = 0; + callback attribute maxMeasuredValue default = 200; + callback attribute peakMeasuredValue default = 10; + callback attribute peakMeasuredValueWindow default = 7200; + callback attribute averageMeasuredValue default = 2; + callback attribute averageMeasuredValueWindow default = 7200; + callback attribute uncertainty default = 0; + callback attribute measurementUnit default = 3; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 2; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 63; ram attribute clusterRevision default = 3; } server cluster Pm1ConcentrationMeasurement { - callback attribute measuredValue; - callback attribute minMeasuredValue; - callback attribute maxMeasuredValue; - callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; - callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute measuredValue default = 39; + callback attribute minMeasuredValue default = 1; + callback attribute maxMeasuredValue default = 400; + callback attribute peakMeasuredValue default = 70; + callback attribute peakMeasuredValueWindow default = 3600; + callback attribute averageMeasuredValue default = 41; + callback attribute averageMeasuredValueWindow default = 3600; + callback attribute uncertainty default = 4; + callback attribute measurementUnit default = 4; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 63; ram attribute clusterRevision default = 3; } server cluster Pm10ConcentrationMeasurement { - callback attribute measuredValue; - callback attribute minMeasuredValue; - callback attribute maxMeasuredValue; - callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; - callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute measuredValue default = 7; + callback attribute minMeasuredValue default = 2; + callback attribute maxMeasuredValue default = 400; + callback attribute peakMeasuredValue default = 49; + callback attribute peakMeasuredValueWindow default = 3600; + callback attribute averageMeasuredValue default = 43; + callback attribute averageMeasuredValueWindow default = 3600; + callback attribute uncertainty default = 2; + callback attribute measurementUnit default = 4; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 63; ram attribute clusterRevision default = 3; } server cluster TotalVolatileOrganicCompoundsConcentrationMeasurement { - callback attribute measuredValue; - callback attribute minMeasuredValue; - callback attribute maxMeasuredValue; - callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; - callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute measuredValue default = 5; + callback attribute minMeasuredValue default = 1; + callback attribute maxMeasuredValue default = 100; + callback attribute peakMeasuredValue default = 8; + callback attribute peakMeasuredValueWindow default = 3600; + callback attribute averageMeasuredValue default = 2; + callback attribute averageMeasuredValueWindow default = 3600; + callback attribute uncertainty default = 1; + callback attribute measurementUnit default = 1; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 63; ram attribute clusterRevision default = 3; } server cluster RadonConcentrationMeasurement { - callback attribute measuredValue; - callback attribute minMeasuredValue; - callback attribute maxMeasuredValue; - callback attribute peakMeasuredValue; - callback attribute peakMeasuredValueWindow; - callback attribute averageMeasuredValue; - callback attribute averageMeasuredValueWindow; - callback attribute uncertainty; - callback attribute measurementUnit; - callback attribute measurementMedium; - callback attribute levelValue; + callback attribute measuredValue default = 5; + callback attribute minMeasuredValue default = 1; + callback attribute maxMeasuredValue default = 100; + callback attribute peakMeasuredValue default = 8; + callback attribute peakMeasuredValueWindow default = 3600; + callback attribute averageMeasuredValue default = 2; + callback attribute averageMeasuredValueWindow default = 3600; + callback attribute uncertainty default = 1; + callback attribute measurementUnit default = 1; + callback attribute measurementMedium default = 0; + callback attribute levelValue default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 63; ram attribute clusterRevision default = 3; } } diff --git a/examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter b/examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter index 133f2c707b5889..a4d8a54503eb72 100644 --- a/examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter +++ b/examples/chef/devices/rootnode_basicvideoplayer_0ff86e943b.matter @@ -1674,7 +1674,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1687,25 +1687,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1751,9 +1751,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1798,9 +1798,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1816,19 +1816,19 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 0x0001; handle command ResetWatermarks; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1866,8 +1866,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1911,7 +1911,7 @@ endpoint 1 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster WakeOnLan { diff --git a/examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.matter b/examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.matter index 04e8702dcc7970..03efd931e3b1e9 100644 --- a/examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.matter +++ b/examples/chef/devices/rootnode_colortemperaturelight_hbUnzYVeyn.matter @@ -1717,7 +1717,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1730,25 +1730,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1779,9 +1779,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 6; ram attribute clusterRevision default = 0x0001; @@ -1826,9 +1826,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1844,19 +1844,19 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 0x0001; handle command ResetWatermarks; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1894,8 +1894,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1993,7 +1993,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster ColorControl { diff --git a/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter b/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter index ea7762a72d9078..fef9187b21a9d6 100644 --- a/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter +++ b/examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.matter @@ -1316,7 +1316,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1329,25 +1329,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1393,9 +1393,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1440,9 +1440,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1458,19 +1458,19 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 0x0001; handle command ResetWatermarks; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1508,8 +1508,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1533,9 +1533,9 @@ endpoint 1 { server cluster Identify { ram attribute identifyTime default = 0x0; ram attribute identifyType default = 0x0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; @@ -1544,9 +1544,9 @@ endpoint 1 { server cluster Groups { ram attribute nameSupport default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 3; @@ -1563,22 +1563,22 @@ endpoint 1 { } server cluster Descriptor { - callback attribute deviceTypeList; - callback attribute serverList; - callback attribute clientList; - callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute deviceTypeList default = 0; + callback attribute serverList default = 0; + callback attribute clientList default = 0; + callback attribute partsList default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BooleanState { ram attribute stateValue default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; } diff --git a/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter b/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter index 7729d21e1835f2..283a0a236d7eb4 100644 --- a/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter +++ b/examples/chef/devices/rootnode_dimmablelight_bCwGYSDpoe.matter @@ -1537,7 +1537,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1552,25 +1552,25 @@ endpoint 0 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1616,9 +1616,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1663,9 +1663,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1681,19 +1681,19 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 0x0001; handle command ResetWatermarks; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1731,8 +1731,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1757,9 +1757,9 @@ endpoint 1 { server cluster Identify { ram attribute identifyTime default = 0x0; ram attribute identifyType default = 0x0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; @@ -1768,9 +1768,9 @@ endpoint 1 { server cluster Groups { ram attribute nameSupport default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 3; @@ -1792,9 +1792,9 @@ endpoint 1 { ram attribute onTime default = 0; ram attribute offWaitTime default = 0; ram attribute startUpOnOff default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0x1; ram attribute clusterRevision default = 5; @@ -1811,9 +1811,9 @@ endpoint 1 { ram attribute options default = 0x03; ram attribute onLevel default = 0xFE; ram attribute startUpCurrentLevel default = 0x00; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0x03; ram attribute clusterRevision default = 5; @@ -1828,15 +1828,15 @@ endpoint 1 { } server cluster Descriptor { - callback attribute deviceTypeList; - callback attribute serverList; - callback attribute clientList; - callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute deviceTypeList default = 0; + callback attribute serverList default = 0; + callback attribute clientList default = 0; + callback attribute partsList default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } } diff --git a/examples/chef/devices/rootnode_dishwasher_cc105034fe.matter b/examples/chef/devices/rootnode_dishwasher_cc105034fe.matter index de4f3ae4511c28..80a118a7fdb7df 100644 --- a/examples/chef/devices/rootnode_dishwasher_cc105034fe.matter +++ b/examples/chef/devices/rootnode_dishwasher_cc105034fe.matter @@ -1121,11 +1121,11 @@ endpoint 0 { callback attribute serverList; callback attribute clientList; callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1133,32 +1133,32 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 3; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1169,37 +1169,37 @@ endpoint 0 { callback attribute capabilityMinima; callback attribute specificationVersion; callback attribute maxPathsPerInvoke; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 3; } server cluster LocalizationConfiguration { persist attribute activeLocale default = "en-US"; - callback attribute supportedLocales; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute supportedLocales default = 7; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; } server cluster TimeFormatLocalization { persist attribute hourFormat default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; } server cluster UnitLocalization { persist attribute temperatureUnit default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 1; ram attribute clusterRevision default = 1; } @@ -1207,12 +1207,12 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -1233,9 +1233,9 @@ endpoint 0 { ram attribute lastNetworkingStatus; ram attribute lastNetworkID; ram attribute lastConnectErrorValue; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 2; ram attribute clusterRevision default = 1; @@ -1256,17 +1256,17 @@ endpoint 0 { emits event NetworkFaultChange; emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; callback attribute activeNetworkFaults; callback attribute testEventTriggersEnabled default = false; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0002; @@ -1282,16 +1282,16 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; - callback attribute beaconLostCount; - callback attribute beaconRxCount; - callback attribute packetMulticastRxCount; - callback attribute packetMulticastTxCount; - callback attribute packetUnicastRxCount; - callback attribute packetUnicastTxCount; - callback attribute currentMaxRate; - callback attribute overrunCount; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; + callback attribute beaconLostCount default = 0x00000000; + callback attribute beaconRxCount default = 0x00000000; + callback attribute packetMulticastRxCount default = 0x00000000; + callback attribute packetMulticastTxCount default = 0x00000000; + callback attribute packetUnicastRxCount default = 0x00000000; + callback attribute packetUnicastTxCount default = 0x00000000; + callback attribute currentMaxRate default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -1299,12 +1299,12 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -1320,9 +1320,9 @@ endpoint 0 { callback attribute commissionedFabrics; callback attribute trustedRootCertificates; callback attribute currentFabricIndex; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -1345,8 +1345,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1382,7 +1382,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster OperationalState { @@ -1391,9 +1391,9 @@ endpoint 1 { callback attribute phaseList; callback attribute currentPhase; callback attribute countdownTime; - callback attribute operationalStateList; - callback attribute operationalState; - callback attribute operationalError; + callback attribute operationalStateList default = 0; + callback attribute operationalState default = 0; + callback attribute operationalError default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; diff --git a/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter b/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter index 3ee6c4e2252611..7509cad970a8da 100644 --- a/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter +++ b/examples/chef/devices/rootnode_doorlock_aNKYAreMXE.matter @@ -1921,7 +1921,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1934,25 +1934,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1998,9 +1998,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 6; ram attribute clusterRevision default = 0x0001; @@ -2045,9 +2045,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -2063,19 +2063,19 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 0x0001; handle command ResetWatermarks; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -2113,8 +2113,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2138,9 +2138,9 @@ endpoint 1 { server cluster Identify { ram attribute identifyTime default = 0x0; ram attribute identifyType default = 0x0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; @@ -2149,9 +2149,9 @@ endpoint 1 { server cluster Groups { ram attribute nameSupport default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 3; @@ -2168,15 +2168,15 @@ endpoint 1 { } server cluster Descriptor { - callback attribute deviceTypeList; - callback attribute serverList; - callback attribute clientList; - callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute deviceTypeList default = 0; + callback attribute serverList default = 0; + callback attribute clientList default = 0; + callback attribute partsList default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster DoorLock { @@ -2198,9 +2198,9 @@ endpoint 1 { ram attribute userCodeTemporaryDisableTime default = 10; ram attribute sendPINOverTheAir default = 0; ram attribute requirePINforRemoteOperation default = 1; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0x0181; ram attribute clusterRevision default = 6; diff --git a/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter b/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter index 363b3c281c41b1..83ffd87792f0b5 100644 --- a/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter +++ b/examples/chef/devices/rootnode_extendedcolorlight_8lcaaYJVAa.matter @@ -1816,7 +1816,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1829,25 +1829,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1893,9 +1893,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 6; ram attribute clusterRevision default = 0x0001; @@ -1940,9 +1940,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1958,19 +1958,19 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 0x0001; handle command ResetWatermarks; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -2008,8 +2008,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2033,9 +2033,9 @@ endpoint 1 { server cluster Identify { ram attribute identifyTime default = 0x0; ram attribute identifyType default = 0x0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; @@ -2044,9 +2044,9 @@ endpoint 1 { server cluster Groups { ram attribute nameSupport default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 3; @@ -2068,9 +2068,9 @@ endpoint 1 { ram attribute onTime default = 0; ram attribute offWaitTime default = 0; ram attribute startUpOnOff default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0x1; ram attribute clusterRevision default = 5; @@ -2087,9 +2087,9 @@ endpoint 1 { ram attribute options default = 0x03; ram attribute onLevel default = 0xFE; ram attribute startUpCurrentLevel default = 0x00; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0x03; ram attribute clusterRevision default = 5; @@ -2104,15 +2104,15 @@ endpoint 1 { } server cluster Descriptor { - callback attribute deviceTypeList; - callback attribute serverList; - callback attribute clientList; - callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute deviceTypeList default = 0; + callback attribute serverList default = 0; + callback attribute clientList default = 0; + callback attribute partsList default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster ColorControl { @@ -2137,9 +2137,9 @@ endpoint 1 { ram attribute colorTempPhysicalMaxMireds default = 0xFEFF; ram attribute coupleColorTempToLevelMinMireds default = 0x0000; ram attribute startUpColorTemperatureMireds default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0x1f; ram attribute clusterRevision default = 6; diff --git a/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter b/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter index 53f08939f0884d..797beb4cd54ab9 100644 --- a/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter +++ b/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter @@ -1360,7 +1360,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1373,25 +1373,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1438,9 +1438,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1485,9 +1485,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1503,19 +1503,19 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 0x0001; handle command ResetWatermarks; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1553,8 +1553,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1616,7 +1616,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster FanControl { diff --git a/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter b/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter index 88ec2c996d8c05..46c512f43947cc 100644 --- a/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter +++ b/examples/chef/devices/rootnode_flowsensor_1zVxHedlaV.matter @@ -1315,7 +1315,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1328,25 +1328,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1392,9 +1392,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1439,9 +1439,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1457,19 +1457,19 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 0x0001; handle command ResetWatermarks; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1507,8 +1507,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1533,9 +1533,9 @@ endpoint 1 { server cluster Identify { ram attribute identifyTime default = 0x0; ram attribute identifyType default = 0x0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; @@ -1543,15 +1543,15 @@ endpoint 1 { } server cluster Descriptor { - callback attribute deviceTypeList; - callback attribute serverList; - callback attribute clientList; - callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute deviceTypeList default = 0; + callback attribute serverList default = 0; + callback attribute clientList default = 0; + callback attribute partsList default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster FlowMeasurement { @@ -1559,9 +1559,9 @@ endpoint 1 { ram attribute minMeasuredValue default = 0x1; ram attribute maxMeasuredValue default = 0xFFF; ram attribute tolerance default = 8; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; } diff --git a/examples/chef/devices/rootnode_genericswitch_9866e35d0b.matter b/examples/chef/devices/rootnode_genericswitch_9866e35d0b.matter index df0ca20bc46c18..52dc3c1af9436c 100644 --- a/examples/chef/devices/rootnode_genericswitch_9866e35d0b.matter +++ b/examples/chef/devices/rootnode_genericswitch_9866e35d0b.matter @@ -986,7 +986,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -999,25 +999,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1034,9 +1034,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1081,9 +1081,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1098,9 +1098,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1138,8 +1138,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1177,7 +1177,7 @@ endpoint 1 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 2; } server cluster Switch { diff --git a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter index f5eda17ac719f0..1c39085bd3a8fd 100644 --- a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter +++ b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter @@ -1964,7 +1964,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1977,25 +1977,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -2041,9 +2041,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -2088,9 +2088,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -2106,19 +2106,19 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 0x0001; handle command ResetWatermarks; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -2156,8 +2156,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2182,9 +2182,9 @@ endpoint 1 { server cluster Identify { ram attribute identifyTime default = 0x0; ram attribute identifyType default = 0x0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; @@ -2193,9 +2193,9 @@ endpoint 1 { server cluster Groups { ram attribute nameSupport default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 3; @@ -2213,9 +2213,9 @@ endpoint 1 { server cluster OnOff { ram attribute onOff default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 5; @@ -2230,9 +2230,9 @@ endpoint 1 { ram attribute maxLevel default = 0xFE; ram attribute options default = 1; ram attribute onLevel default = 0xFE; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 1; ram attribute clusterRevision default = 5; @@ -2247,15 +2247,15 @@ endpoint 1 { } server cluster Descriptor { - callback attribute deviceTypeList; - callback attribute serverList; - callback attribute clientList; - callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute deviceTypeList default = 0; + callback attribute serverList default = 0; + callback attribute clientList default = 0; + callback attribute partsList default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster FanControl { @@ -2266,9 +2266,9 @@ endpoint 1 { ram attribute speedMax default = 10; ram attribute speedSetting default = 0x00; ram attribute speedCurrent default = 0x00; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; } diff --git a/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter b/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter index 957c82ce56998c..1d0fcead12104b 100644 --- a/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter +++ b/examples/chef/devices/rootnode_humiditysensor_Xyj4gda6Hb.matter @@ -1315,7 +1315,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1328,25 +1328,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1392,9 +1392,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1439,9 +1439,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1457,19 +1457,19 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 0x0001; handle command ResetWatermarks; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1507,8 +1507,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1533,9 +1533,9 @@ endpoint 1 { server cluster Identify { ram attribute identifyTime default = 0x0; ram attribute identifyType default = 0x0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; @@ -1543,15 +1543,15 @@ endpoint 1 { } server cluster Descriptor { - callback attribute deviceTypeList; - callback attribute serverList; - callback attribute clientList; - callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute deviceTypeList default = 0; + callback attribute serverList default = 0; + callback attribute clientList default = 0; + callback attribute partsList default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster RelativeHumidityMeasurement { @@ -1559,9 +1559,9 @@ endpoint 1 { ram attribute minMeasuredValue default = 0x1; ram attribute maxMeasuredValue default = 0x2710; ram attribute tolerance default = 8; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; } diff --git a/examples/chef/devices/rootnode_laundrywasher_fb10d238c8.matter b/examples/chef/devices/rootnode_laundrywasher_fb10d238c8.matter index 284bd571b7ee81..0457bf0d8ba7fc 100644 --- a/examples/chef/devices/rootnode_laundrywasher_fb10d238c8.matter +++ b/examples/chef/devices/rootnode_laundrywasher_fb10d238c8.matter @@ -1121,11 +1121,11 @@ endpoint 0 { callback attribute serverList; callback attribute clientList; callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1133,32 +1133,32 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 3; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1169,37 +1169,37 @@ endpoint 0 { callback attribute capabilityMinima; callback attribute specificationVersion; callback attribute maxPathsPerInvoke; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 3; } server cluster LocalizationConfiguration { persist attribute activeLocale default = "en-US"; - callback attribute supportedLocales; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute supportedLocales default = 7; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; } server cluster TimeFormatLocalization { persist attribute hourFormat default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; } server cluster UnitLocalization { persist attribute temperatureUnit default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 1; ram attribute clusterRevision default = 1; } @@ -1207,12 +1207,12 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -1233,9 +1233,9 @@ endpoint 0 { ram attribute lastNetworkingStatus; ram attribute lastNetworkID; ram attribute lastConnectErrorValue; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 2; ram attribute clusterRevision default = 1; @@ -1256,17 +1256,17 @@ endpoint 0 { emits event NetworkFaultChange; emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; callback attribute activeNetworkFaults; callback attribute testEventTriggersEnabled default = false; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0002; @@ -1282,16 +1282,16 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; - callback attribute beaconLostCount; - callback attribute beaconRxCount; - callback attribute packetMulticastRxCount; - callback attribute packetMulticastTxCount; - callback attribute packetUnicastRxCount; - callback attribute packetUnicastTxCount; - callback attribute currentMaxRate; - callback attribute overrunCount; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; + callback attribute beaconLostCount default = 0x00000000; + callback attribute beaconRxCount default = 0x00000000; + callback attribute packetMulticastRxCount default = 0x00000000; + callback attribute packetMulticastTxCount default = 0x00000000; + callback attribute packetUnicastRxCount default = 0x00000000; + callback attribute packetUnicastTxCount default = 0x00000000; + callback attribute currentMaxRate default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -1299,12 +1299,12 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -1320,9 +1320,9 @@ endpoint 0 { callback attribute commissionedFabrics; callback attribute trustedRootCertificates; callback attribute currentFabricIndex; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -1345,8 +1345,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1369,7 +1369,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster OperationalState { @@ -1377,9 +1377,9 @@ endpoint 1 { emits event OperationCompletion; callback attribute phaseList; callback attribute currentPhase; - callback attribute operationalStateList; - callback attribute operationalState; - callback attribute operationalError; + callback attribute operationalStateList default = 0; + callback attribute operationalState default = 0; + callback attribute operationalError default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; diff --git a/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter b/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter index 597d57f8fe40cb..fc0609ef1469b1 100644 --- a/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter +++ b/examples/chef/devices/rootnode_lightsensor_lZQycTFcJK.matter @@ -1321,7 +1321,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1334,25 +1334,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1398,9 +1398,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 6; ram attribute clusterRevision default = 0x0001; @@ -1445,9 +1445,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1463,19 +1463,19 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 0x0001; handle command ResetWatermarks; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1513,8 +1513,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1539,9 +1539,9 @@ endpoint 1 { server cluster Identify { ram attribute identifyTime default = 0x0; ram attribute identifyType default = 0x0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; @@ -1549,15 +1549,15 @@ endpoint 1 { } server cluster Descriptor { - callback attribute deviceTypeList; - callback attribute serverList; - callback attribute clientList; - callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute deviceTypeList default = 0; + callback attribute serverList default = 0; + callback attribute clientList default = 0; + callback attribute partsList default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster IlluminanceMeasurement { @@ -1565,9 +1565,9 @@ endpoint 1 { ram attribute minMeasuredValue default = 1; ram attribute maxMeasuredValue default = 0xfffe; ram attribute lightSensorType default = 1; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; } diff --git a/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter b/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter index 6886beaf5c2689..75b1df739861ad 100644 --- a/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter +++ b/examples/chef/devices/rootnode_occupancysensor_iHyVgifZuo.matter @@ -1340,7 +1340,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1353,25 +1353,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1417,9 +1417,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1464,9 +1464,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1482,19 +1482,19 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 0x0001; handle command ResetWatermarks; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1532,8 +1532,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1558,9 +1558,9 @@ endpoint 1 { server cluster Identify { ram attribute identifyTime default = 0x0; ram attribute identifyType default = 0x0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; @@ -1568,24 +1568,24 @@ endpoint 1 { } server cluster Descriptor { - callback attribute deviceTypeList; - callback attribute serverList; - callback attribute clientList; - callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute deviceTypeList default = 0; + callback attribute serverList default = 0; + callback attribute clientList default = 0; + callback attribute partsList default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster OccupancySensing { ram attribute occupancy default = 0; ram attribute occupancySensorType default = 0; ram attribute occupancySensorTypeBitmap default = 0x1; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; } diff --git a/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter b/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter index f2b2146970c0ec..c4e896bb232762 100644 --- a/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter +++ b/examples/chef/devices/rootnode_onofflight_bbs1b7IaOV.matter @@ -1496,7 +1496,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1509,25 +1509,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1573,9 +1573,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 6; ram attribute clusterRevision default = 0x0001; @@ -1620,9 +1620,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1638,19 +1638,19 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 0x0001; handle command ResetWatermarks; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1688,8 +1688,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1713,9 +1713,9 @@ endpoint 1 { server cluster Identify { ram attribute identifyTime default = 0x0; ram attribute identifyType default = 0x0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; @@ -1724,9 +1724,9 @@ endpoint 1 { server cluster Groups { ram attribute nameSupport default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 3; @@ -1748,9 +1748,9 @@ endpoint 1 { ram attribute onTime default = 0; ram attribute offWaitTime default = 0; ram attribute startUpOnOff default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 1; ram attribute clusterRevision default = 5; @@ -1767,9 +1767,9 @@ endpoint 1 { ram attribute options default = 0x01; ram attribute onLevel default = 0xFE; ram attribute startUpCurrentLevel default = 0x01; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 3; ram attribute clusterRevision default = 5; @@ -1784,15 +1784,15 @@ endpoint 1 { } server cluster Descriptor { - callback attribute deviceTypeList; - callback attribute serverList; - callback attribute clientList; - callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute deviceTypeList default = 0; + callback attribute serverList default = 0; + callback attribute clientList default = 0; + callback attribute partsList default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } } diff --git a/examples/chef/devices/rootnode_onofflight_samplemei.matter b/examples/chef/devices/rootnode_onofflight_samplemei.matter index edcb450041aa11..dae295bb41b743 100644 --- a/examples/chef/devices/rootnode_onofflight_samplemei.matter +++ b/examples/chef/devices/rootnode_onofflight_samplemei.matter @@ -1523,7 +1523,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1536,25 +1536,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1600,9 +1600,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 6; ram attribute clusterRevision default = 0x0001; @@ -1647,9 +1647,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1665,19 +1665,19 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 0x0001; handle command ResetWatermarks; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1715,8 +1715,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1740,9 +1740,9 @@ endpoint 1 { server cluster Identify { ram attribute identifyTime default = 0x0; ram attribute identifyType default = 0x0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; @@ -1751,9 +1751,9 @@ endpoint 1 { server cluster Groups { ram attribute nameSupport default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 3; @@ -1775,9 +1775,9 @@ endpoint 1 { ram attribute onTime default = 0; ram attribute offWaitTime default = 0; ram attribute startUpOnOff default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 1; ram attribute clusterRevision default = 5; @@ -1794,9 +1794,9 @@ endpoint 1 { ram attribute options default = 0x01; ram attribute onLevel default = 0xFE; ram attribute startUpCurrentLevel default = 0x01; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 3; ram attribute clusterRevision default = 5; @@ -1811,15 +1811,15 @@ endpoint 1 { } server cluster Descriptor { - callback attribute deviceTypeList; - callback attribute serverList; - callback attribute clientList; - callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute deviceTypeList default = 0; + callback attribute serverList default = 0; + callback attribute clientList default = 0; + callback attribute partsList default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster SampleMei { diff --git a/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter b/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter index d83eda8632d485..bf47c1b75f3b87 100644 --- a/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter +++ b/examples/chef/devices/rootnode_onofflightswitch_FsPlMr090Q.matter @@ -1443,7 +1443,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1456,25 +1456,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1520,9 +1520,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1567,9 +1567,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1585,19 +1585,19 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 0x0001; handle command ResetWatermarks; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1635,8 +1635,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1661,9 +1661,9 @@ endpoint 1 { server cluster Identify { ram attribute identifyTime default = 0x0; ram attribute identifyType default = 0x0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; @@ -1672,9 +1672,9 @@ endpoint 1 { server cluster Groups { ram attribute nameSupport default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 3; @@ -1692,9 +1692,9 @@ endpoint 1 { server cluster OnOff { ram attribute onOff default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 5; @@ -1704,15 +1704,15 @@ endpoint 1 { } server cluster Descriptor { - callback attribute deviceTypeList; - callback attribute serverList; - callback attribute clientList; - callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute deviceTypeList default = 0; + callback attribute serverList default = 0; + callback attribute clientList default = 0; + callback attribute partsList default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } } diff --git a/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter b/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter index 9e8a02aa2028a0..e30800cb21e0a7 100644 --- a/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter +++ b/examples/chef/devices/rootnode_onoffpluginunit_Wtf8ss5EBY.matter @@ -1371,7 +1371,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1384,25 +1384,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1448,9 +1448,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1495,9 +1495,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1513,19 +1513,19 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 0x0001; handle command ResetWatermarks; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1563,8 +1563,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1588,9 +1588,9 @@ endpoint 1 { server cluster Identify { ram attribute identifyTime default = 0x0; ram attribute identifyType default = 0x0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; @@ -1599,9 +1599,9 @@ endpoint 1 { server cluster Groups { ram attribute nameSupport default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 3; @@ -1623,9 +1623,9 @@ endpoint 1 { ram attribute onTime default = 0; ram attribute offWaitTime default = 0; ram attribute startUpOnOff default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 5; @@ -1635,15 +1635,15 @@ endpoint 1 { } server cluster Descriptor { - callback attribute deviceTypeList; - callback attribute serverList; - callback attribute clientList; - callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute deviceTypeList default = 0; + callback attribute serverList default = 0; + callback attribute clientList default = 0; + callback attribute partsList default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } } diff --git a/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter b/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter index 01c9744ac3fd3c..94f94b10f083b7 100644 --- a/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter +++ b/examples/chef/devices/rootnode_pressuresensor_s0qC9wLH4k.matter @@ -1342,7 +1342,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1355,25 +1355,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1419,9 +1419,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1466,9 +1466,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1484,19 +1484,19 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 0x0001; handle command ResetWatermarks; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1534,8 +1534,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1566,9 +1566,9 @@ endpoint 1 { server cluster Identify { ram attribute identifyTime default = 0x0; ram attribute identifyType default = 0x0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; @@ -1576,24 +1576,24 @@ endpoint 1 { } server cluster Descriptor { - callback attribute deviceTypeList; - callback attribute serverList; - callback attribute clientList; - callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute deviceTypeList default = 0; + callback attribute serverList default = 0; + callback attribute clientList default = 0; + callback attribute partsList default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster PressureMeasurement { ram attribute measuredValue default = 0xA; ram attribute minMeasuredValue default = 1; ram attribute maxMeasuredValue default = 0xfffe; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; } diff --git a/examples/chef/devices/rootnode_pump_5f904818cc.matter b/examples/chef/devices/rootnode_pump_5f904818cc.matter index 210a87ccb22298..0972e7fcb7f8a5 100644 --- a/examples/chef/devices/rootnode_pump_5f904818cc.matter +++ b/examples/chef/devices/rootnode_pump_5f904818cc.matter @@ -1225,7 +1225,7 @@ endpoint 0 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 2; } server cluster AccessControl { @@ -1238,20 +1238,20 @@ endpoint 0 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 17; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; callback attribute capabilityMinima; callback attribute specificationVersion; @@ -1293,9 +1293,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; @@ -1338,8 +1338,8 @@ endpoint 0 { server cluster GeneralDiagnostics { callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; callback attribute testEventTriggersEnabled default = false; callback attribute generatedCommandList; callback attribute acceptedCommandList; @@ -1353,9 +1353,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; @@ -1402,8 +1402,8 @@ endpoint 0 { callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1452,7 +1452,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 2; } server cluster PumpConfigurationAndControl { diff --git a/examples/chef/devices/rootnode_pump_a811bb33a0.matter b/examples/chef/devices/rootnode_pump_a811bb33a0.matter index 319f858806555b..aa8d883bc39509 100644 --- a/examples/chef/devices/rootnode_pump_a811bb33a0.matter +++ b/examples/chef/devices/rootnode_pump_a811bb33a0.matter @@ -1168,7 +1168,7 @@ endpoint 0 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 2; } server cluster AccessControl { @@ -1181,20 +1181,20 @@ endpoint 0 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 17; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; callback attribute capabilityMinima; callback attribute specificationVersion; @@ -1236,9 +1236,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; @@ -1281,8 +1281,8 @@ endpoint 0 { server cluster GeneralDiagnostics { callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; callback attribute testEventTriggersEnabled default = false; callback attribute generatedCommandList; callback attribute acceptedCommandList; @@ -1296,9 +1296,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; @@ -1345,8 +1345,8 @@ endpoint 0 { callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1395,7 +1395,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 2; } server cluster PumpConfigurationAndControl { diff --git a/examples/chef/devices/rootnode_refrigerator_temperaturecontrolledcabinet_temperaturecontrolledcabinet_ffdb696680.matter b/examples/chef/devices/rootnode_refrigerator_temperaturecontrolledcabinet_temperaturecontrolledcabinet_ffdb696680.matter index beefeb5829ddf4..951c41b42cef58 100644 --- a/examples/chef/devices/rootnode_refrigerator_temperaturecontrolledcabinet_temperaturecontrolledcabinet_ffdb696680.matter +++ b/examples/chef/devices/rootnode_refrigerator_temperaturecontrolledcabinet_temperaturecontrolledcabinet_ffdb696680.matter @@ -1087,11 +1087,11 @@ endpoint 0 { callback attribute serverList; callback attribute clientList; callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1099,32 +1099,32 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 3; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1135,37 +1135,37 @@ endpoint 0 { callback attribute capabilityMinima; callback attribute specificationVersion; callback attribute maxPathsPerInvoke; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 3; } server cluster LocalizationConfiguration { persist attribute activeLocale default = "en-US"; - callback attribute supportedLocales; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute supportedLocales default = 7; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; } server cluster TimeFormatLocalization { persist attribute hourFormat default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; } server cluster UnitLocalization { persist attribute temperatureUnit default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 1; ram attribute clusterRevision default = 1; } @@ -1173,12 +1173,12 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -1199,9 +1199,9 @@ endpoint 0 { ram attribute lastNetworkingStatus; ram attribute lastNetworkID; ram attribute lastConnectErrorValue; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 2; ram attribute clusterRevision default = 1; @@ -1222,17 +1222,17 @@ endpoint 0 { emits event NetworkFaultChange; emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; callback attribute activeNetworkFaults; callback attribute testEventTriggersEnabled default = false; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0002; @@ -1248,16 +1248,16 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; - callback attribute beaconLostCount; - callback attribute beaconRxCount; - callback attribute packetMulticastRxCount; - callback attribute packetMulticastTxCount; - callback attribute packetUnicastRxCount; - callback attribute packetUnicastTxCount; - callback attribute currentMaxRate; - callback attribute overrunCount; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; + callback attribute beaconLostCount default = 0x00000000; + callback attribute beaconRxCount default = 0x00000000; + callback attribute packetMulticastRxCount default = 0x00000000; + callback attribute packetMulticastTxCount default = 0x00000000; + callback attribute packetUnicastRxCount default = 0x00000000; + callback attribute packetUnicastTxCount default = 0x00000000; + callback attribute currentMaxRate default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -1265,12 +1265,12 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -1286,9 +1286,9 @@ endpoint 0 { callback attribute commissionedFabrics; callback attribute trustedRootCertificates; callback attribute currentFabricIndex; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -1311,8 +1311,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1335,7 +1335,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } } endpoint 2 { @@ -1351,15 +1351,15 @@ endpoint 2 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster TemperatureControl { ram attribute selectedTemperatureLevel; callback attribute supportedTemperatureLevels; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 2; ram attribute clusterRevision default = 1; @@ -1379,15 +1379,15 @@ endpoint 3 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster TemperatureControl { ram attribute selectedTemperatureLevel; callback attribute supportedTemperatureLevels; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 2; ram attribute clusterRevision default = 1; diff --git a/examples/chef/devices/rootnode_roboticvacuumcleaner_1807ff0c49.matter b/examples/chef/devices/rootnode_roboticvacuumcleaner_1807ff0c49.matter index ea81b8089e311b..50fdc7577d85f0 100644 --- a/examples/chef/devices/rootnode_roboticvacuumcleaner_1807ff0c49.matter +++ b/examples/chef/devices/rootnode_roboticvacuumcleaner_1807ff0c49.matter @@ -1189,7 +1189,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1202,25 +1202,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1237,9 +1237,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1284,9 +1284,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1301,9 +1301,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1341,8 +1341,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1359,10 +1359,10 @@ endpoint 1 { server cluster Identify { ram attribute identifyTime default = 0x0; ram attribute identifyType default = 0x0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; callback attribute eventList; - callback attribute attributeList; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; @@ -1392,27 +1392,27 @@ endpoint 1 { } server cluster Descriptor { - callback attribute deviceTypeList; - callback attribute serverList; - callback attribute clientList; - callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; + callback attribute deviceTypeList default = 0; + callback attribute serverList default = 0; + callback attribute clientList default = 0; + callback attribute partsList default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; callback attribute eventList; - callback attribute attributeList; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster RvcRunMode { - callback attribute supportedModes; - callback attribute currentMode; - callback attribute onMode; + callback attribute supportedModes default = 0; + callback attribute currentMode default = 0; + callback attribute onMode default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 2; handle command ChangeToMode; @@ -1420,14 +1420,14 @@ endpoint 1 { } server cluster RvcCleanMode { - callback attribute supportedModes; - callback attribute currentMode; - callback attribute onMode; + callback attribute supportedModes default = 0; + callback attribute currentMode default = 0; + callback attribute onMode default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 2; handle command ChangeToMode; @@ -1438,11 +1438,11 @@ endpoint 1 { emits event OperationalError; emits event OperationCompletion; callback attribute phaseList; - callback attribute currentPhase; - callback attribute countdownTime; - callback attribute operationalStateList; - callback attribute operationalState; - callback attribute operationalError; + callback attribute currentPhase default = 0; + callback attribute countdownTime default = 0; + callback attribute operationalStateList default = 0; + callback attribute operationalState default = 0; + callback attribute operationalError default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; diff --git a/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter b/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter index 156ed64d724dd9..b6db19b722be88 100644 --- a/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter +++ b/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter @@ -1582,7 +1582,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1595,25 +1595,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1630,9 +1630,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1677,9 +1677,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1694,9 +1694,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1734,8 +1734,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1752,10 +1752,10 @@ endpoint 1 { server cluster Identify { ram attribute identifyTime default = 0x0; ram attribute identifyType default = 0x0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; callback attribute eventList; - callback attribute attributeList; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; @@ -1798,16 +1798,16 @@ endpoint 1 { } server cluster Descriptor { - callback attribute deviceTypeList; - callback attribute serverList; - callback attribute clientList; - callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; + callback attribute deviceTypeList default = 0; + callback attribute serverList default = 0; + callback attribute clientList default = 0; + callback attribute partsList default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; callback attribute eventList; - callback attribute attributeList; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Thermostat { diff --git a/examples/chef/devices/rootnode_smokecoalarm_686fe0dcb8.matter b/examples/chef/devices/rootnode_smokecoalarm_686fe0dcb8.matter index 612735364136de..02e2c2b9d3b8e9 100644 --- a/examples/chef/devices/rootnode_smokecoalarm_686fe0dcb8.matter +++ b/examples/chef/devices/rootnode_smokecoalarm_686fe0dcb8.matter @@ -1379,7 +1379,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1392,25 +1392,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1427,9 +1427,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1474,9 +1474,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1491,9 +1491,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1531,8 +1531,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1550,10 +1550,10 @@ endpoint 1 { server cluster Identify { ram attribute identifyTime default = 0x0; ram attribute identifyType default = 0x0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; callback attribute eventList; - callback attribute attributeList; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; @@ -1582,16 +1582,16 @@ endpoint 1 { } server cluster Descriptor { - callback attribute deviceTypeList; - callback attribute serverList; - callback attribute clientList; - callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; + callback attribute deviceTypeList default = 0; + callback attribute serverList default = 0; + callback attribute clientList default = 0; + callback attribute partsList default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; callback attribute eventList; - callback attribute attributeList; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster PowerSource { diff --git a/examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter b/examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter index 0f5ee3ec4ff373..700004cd8458cc 100644 --- a/examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter +++ b/examples/chef/devices/rootnode_speaker_RpzeXdimqA.matter @@ -1419,7 +1419,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1432,25 +1432,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1496,9 +1496,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1543,9 +1543,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1561,19 +1561,19 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 0x0001; handle command ResetWatermarks; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1611,8 +1611,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1636,9 +1636,9 @@ endpoint 1 { server cluster Identify { ram attribute identifyTime default = 0x0; ram attribute identifyType default = 0x0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; @@ -1647,9 +1647,9 @@ endpoint 1 { server cluster OnOff { ram attribute onOff default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0x0; ram attribute clusterRevision default = 5; @@ -1664,9 +1664,9 @@ endpoint 1 { ram attribute maxLevel default = 0xFE; ram attribute options default = 0x00; ram attribute onLevel default = 0xFE; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0x1; ram attribute clusterRevision default = 5; @@ -1681,15 +1681,15 @@ endpoint 1 { } server cluster Descriptor { - callback attribute deviceTypeList; - callback attribute serverList; - callback attribute clientList; - callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute deviceTypeList default = 0; + callback attribute serverList default = 0; + callback attribute clientList default = 0; + callback attribute partsList default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } } diff --git a/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter b/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter index 8644cd6e2aa03c..ed5e756b6b05e8 100644 --- a/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter +++ b/examples/chef/devices/rootnode_temperaturesensor_Qy1zkNW7c3.matter @@ -1315,7 +1315,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1328,25 +1328,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1392,9 +1392,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1439,9 +1439,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1457,19 +1457,19 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 0x0001; handle command ResetWatermarks; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1507,8 +1507,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1533,9 +1533,9 @@ endpoint 1 { server cluster Identify { ram attribute identifyTime default = 0x0; ram attribute identifyType default = 0x0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; @@ -1543,24 +1543,24 @@ endpoint 1 { } server cluster Descriptor { - callback attribute deviceTypeList; - callback attribute serverList; - callback attribute clientList; - callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute deviceTypeList default = 0; + callback attribute serverList default = 0; + callback attribute clientList default = 0; + callback attribute partsList default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster TemperatureMeasurement { ram attribute measuredValue default = 2350; ram attribute minMeasuredValue default = -27315; ram attribute maxMeasuredValue default = 32767; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; } diff --git a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter index 7ab073cbbb82af..30a03653580f37 100644 --- a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter +++ b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter @@ -1874,7 +1874,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1887,25 +1887,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1951,9 +1951,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1998,9 +1998,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -2016,19 +2016,19 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 0x0001; handle command ResetWatermarks; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -2066,8 +2066,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2095,9 +2095,9 @@ endpoint 1 { server cluster Identify { ram attribute identifyTime default = 0x0; ram attribute identifyType default = 0x0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; @@ -2106,9 +2106,9 @@ endpoint 1 { server cluster Groups { ram attribute nameSupport default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 3; @@ -2125,15 +2125,15 @@ endpoint 1 { } server cluster Descriptor { - callback attribute deviceTypeList; - callback attribute serverList; - callback attribute clientList; - callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute deviceTypeList default = 0; + callback attribute serverList default = 0; + callback attribute clientList default = 0; + callback attribute partsList default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Thermostat { @@ -2163,9 +2163,9 @@ endpoint 1 { ram attribute startOfWeek default = 0; ram attribute numberOfWeeklyTransitions default = 0; ram attribute numberOfDailyTransitions default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0x3f; ram attribute clusterRevision default = 6; @@ -2175,9 +2175,9 @@ endpoint 1 { server cluster ThermostatUserInterfaceConfiguration { ram attribute temperatureDisplayMode default = 0x00; ram attribute keypadLockout default = 0x00; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; } diff --git a/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter b/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter index 64f392d852f6de..7074292cc75deb 100644 --- a/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter +++ b/examples/chef/devices/rootnode_windowcovering_RLCxaGi9Yx.matter @@ -1452,7 +1452,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1465,25 +1465,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1529,9 +1529,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1576,9 +1576,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1594,19 +1594,19 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 0x0001; handle command ResetWatermarks; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1644,8 +1644,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1669,9 +1669,9 @@ endpoint 1 { server cluster Identify { ram attribute identifyTime default = 0x0; ram attribute identifyType default = 0x0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 2; @@ -1680,9 +1680,9 @@ endpoint 1 { server cluster Groups { ram attribute nameSupport default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 3; @@ -1699,15 +1699,15 @@ endpoint 1 { } server cluster Descriptor { - callback attribute deviceTypeList; - callback attribute serverList; - callback attribute clientList; - callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute deviceTypeList default = 0; + callback attribute serverList default = 0; + callback attribute clientList default = 0; + callback attribute partsList default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster WindowCovering { @@ -1733,9 +1733,9 @@ endpoint 1 { ram attribute installedClosedLimitTilt default = 1800; ram attribute mode default = 0x00; ram attribute safetyStatus default = 0x0000; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0x1f; ram attribute clusterRevision default = 5; diff --git a/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter b/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter index 88f2e69451d66e..834efe7ec8a781 100644 --- a/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter +++ b/examples/contact-sensor-app/contact-sensor-common/contact-sensor-app.matter @@ -1656,7 +1656,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1664,30 +1664,30 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1705,7 +1705,7 @@ endpoint 0 { emits event StateTransition; emits event VersionApplied; emits event DownloadError; - callback attribute defaultOTAProviders; + callback attribute defaultOTAProviders default = 0; ram attribute updatePossible default = 1; ram attribute updateState default = 0; ram attribute updateStateProgress default = 0; @@ -1733,9 +1733,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 6; ram attribute clusterRevision default = 1; @@ -1780,9 +1780,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1798,10 +1798,10 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 1; handle command ResetWatermarks; @@ -1810,11 +1810,11 @@ endpoint 0 { server cluster ThreadNetworkDiagnostics { callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; - callback attribute overrunCount; + callback attribute overrunCount default = 0x0000000000000000; callback attribute neighborTable; callback attribute routeTable; callback attribute partitionId; @@ -1822,53 +1822,53 @@ endpoint 0 { callback attribute dataVersion; callback attribute stableDataVersion; callback attribute leaderRouterId; - callback attribute detachedRoleCount; - callback attribute childRoleCount; - callback attribute routerRoleCount; - callback attribute leaderRoleCount; - callback attribute attachAttemptCount; - callback attribute partitionIdChangeCount; - callback attribute betterPartitionAttachAttemptCount; - callback attribute parentChangeCount; - callback attribute txTotalCount; - callback attribute txUnicastCount; - callback attribute txBroadcastCount; - callback attribute txAckRequestedCount; - callback attribute txAckedCount; - callback attribute txNoAckRequestedCount; - callback attribute txDataCount; - callback attribute txDataPollCount; - callback attribute txBeaconCount; - callback attribute txBeaconRequestCount; - callback attribute txOtherCount; - callback attribute txRetryCount; - callback attribute txDirectMaxRetryExpiryCount; - callback attribute txIndirectMaxRetryExpiryCount; - callback attribute txErrCcaCount; - callback attribute txErrAbortCount; - callback attribute txErrBusyChannelCount; - callback attribute rxTotalCount; - callback attribute rxUnicastCount; - callback attribute rxBroadcastCount; - callback attribute rxDataCount; - callback attribute rxDataPollCount; - callback attribute rxBeaconCount; - callback attribute rxBeaconRequestCount; - callback attribute rxOtherCount; - callback attribute rxAddressFilteredCount; - callback attribute rxDestAddrFilteredCount; - callback attribute rxDuplicatedCount; - callback attribute rxErrNoFrameCount; - callback attribute rxErrUnknownNeighborCount; - callback attribute rxErrInvalidSrcAddrCount; - callback attribute rxErrSecCount; - callback attribute rxErrFcsCount; - callback attribute rxErrOtherCount; - callback attribute activeTimestamp; - callback attribute pendingTimestamp; - callback attribute delay; + callback attribute detachedRoleCount default = 0x0000; + callback attribute childRoleCount default = 0x0000; + callback attribute routerRoleCount default = 0x0000; + callback attribute leaderRoleCount default = 0x0000; + callback attribute attachAttemptCount default = 0x0000; + callback attribute partitionIdChangeCount default = 0x0000; + callback attribute betterPartitionAttachAttemptCount default = 0x0000; + callback attribute parentChangeCount default = 0x0000; + callback attribute txTotalCount default = 0x0000; + callback attribute txUnicastCount default = 0x0000; + callback attribute txBroadcastCount default = 0x0000; + callback attribute txAckRequestedCount default = 0x0000; + callback attribute txAckedCount default = 0x0000; + callback attribute txNoAckRequestedCount default = 0x0000; + callback attribute txDataCount default = 0x0000; + callback attribute txDataPollCount default = 0x0000; + callback attribute txBeaconCount default = 0x0000; + callback attribute txBeaconRequestCount default = 0x0000; + callback attribute txOtherCount default = 0x0000; + callback attribute txRetryCount default = 0x0000; + callback attribute txDirectMaxRetryExpiryCount default = 0x0000; + callback attribute txIndirectMaxRetryExpiryCount default = 0x0000; + callback attribute txErrCcaCount default = 0x0000; + callback attribute txErrAbortCount default = 0x0000; + callback attribute txErrBusyChannelCount default = 0x0000; + callback attribute rxTotalCount default = 0x0000; + callback attribute rxUnicastCount default = 0x0000; + callback attribute rxBroadcastCount default = 0x0000; + callback attribute rxDataCount default = 0x0000; + callback attribute rxDataPollCount default = 0x0000; + callback attribute rxBeaconCount default = 0x0000; + callback attribute rxBeaconRequestCount default = 0x0000; + callback attribute rxOtherCount default = 0x0000; + callback attribute rxAddressFilteredCount default = 0x0000; + callback attribute rxDestAddrFilteredCount default = 0x0000; + callback attribute rxDuplicatedCount default = 0x0000; + callback attribute rxErrNoFrameCount default = 0x0000; + callback attribute rxErrUnknownNeighborCount default = 0x0000; + callback attribute rxErrInvalidSrcAddrCount default = 0x0000; + callback attribute rxErrSecCount default = 0x0000; + callback attribute rxErrFcsCount default = 0x0000; + callback attribute rxErrOtherCount default = 0x0000; + callback attribute activeTimestamp default = 0x0000000000000000; + callback attribute pendingTimestamp default = 0x0000000000000000; + callback attribute delay default = 0x0000; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; ram attribute featureMap default = 0x000F; @@ -1884,16 +1884,16 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; - callback attribute beaconLostCount; - callback attribute beaconRxCount; - callback attribute packetMulticastRxCount; - callback attribute packetMulticastTxCount; - callback attribute packetUnicastRxCount; - callback attribute packetUnicastTxCount; - callback attribute currentMaxRate; - callback attribute overrunCount; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; + callback attribute beaconLostCount default = 0x00000000; + callback attribute beaconRxCount default = 0x00000000; + callback attribute packetMulticastRxCount default = 0x00000000; + callback attribute packetMulticastTxCount default = 0x00000000; + callback attribute packetUnicastRxCount default = 0x00000000; + callback attribute packetUnicastTxCount default = 0x00000000; + callback attribute currentMaxRate default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -1902,14 +1902,14 @@ endpoint 0 { server cluster EthernetNetworkDiagnostics { callback attribute PHYRate; - callback attribute fullDuplex; - callback attribute packetRxCount; - callback attribute packetTxCount; - callback attribute txErrCount; - callback attribute collisionCount; - callback attribute overrunCount; - callback attribute carrierDetect; - callback attribute timeSinceReset; + callback attribute fullDuplex default = 0x00; + callback attribute packetRxCount default = 0x0000000000000000; + callback attribute packetTxCount default = 0x0000000000000000; + callback attribute txErrCount default = 0x0000000000000000; + callback attribute collisionCount default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; + callback attribute carrierDetect default = 0x00; + callback attribute timeSinceReset default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -1917,9 +1917,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -1957,8 +1957,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2006,7 +2006,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BooleanState { diff --git a/examples/dishwasher-app/dishwasher-common/dishwasher-app.matter b/examples/dishwasher-app/dishwasher-common/dishwasher-app.matter index b38dd1bfe0aafc..d7bbc626813f98 100644 --- a/examples/dishwasher-app/dishwasher-common/dishwasher-app.matter +++ b/examples/dishwasher-app/dishwasher-common/dishwasher-app.matter @@ -1236,11 +1236,11 @@ endpoint 0 { callback attribute serverList; callback attribute clientList; callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1248,32 +1248,32 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 3; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1284,37 +1284,37 @@ endpoint 0 { callback attribute capabilityMinima; callback attribute specificationVersion; callback attribute maxPathsPerInvoke; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 3; } server cluster LocalizationConfiguration { persist attribute activeLocale default = "en-US"; - callback attribute supportedLocales; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute supportedLocales default = 7; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; } server cluster TimeFormatLocalization { persist attribute hourFormat default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; } server cluster UnitLocalization { persist attribute temperatureUnit default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 1; ram attribute clusterRevision default = 1; } @@ -1322,12 +1322,12 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -1348,9 +1348,9 @@ endpoint 0 { ram attribute lastNetworkingStatus; ram attribute lastNetworkID; ram attribute lastConnectErrorValue; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 2; ram attribute clusterRevision default = 1; @@ -1371,17 +1371,17 @@ endpoint 0 { emits event NetworkFaultChange; emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; callback attribute activeNetworkFaults; callback attribute testEventTriggersEnabled default = false; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0002; @@ -1397,16 +1397,16 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; - callback attribute beaconLostCount; - callback attribute beaconRxCount; - callback attribute packetMulticastRxCount; - callback attribute packetMulticastTxCount; - callback attribute packetUnicastRxCount; - callback attribute packetUnicastTxCount; - callback attribute currentMaxRate; - callback attribute overrunCount; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; + callback attribute beaconLostCount default = 0x00000000; + callback attribute beaconRxCount default = 0x00000000; + callback attribute packetMulticastRxCount default = 0x00000000; + callback attribute packetMulticastTxCount default = 0x00000000; + callback attribute packetUnicastRxCount default = 0x00000000; + callback attribute packetUnicastTxCount default = 0x00000000; + callback attribute currentMaxRate default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -1414,12 +1414,12 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -1434,9 +1434,9 @@ endpoint 0 { callback attribute commissionedFabrics; callback attribute trustedRootCertificates; callback attribute currentFabricIndex; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -1459,8 +1459,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1513,7 +1513,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Binding { @@ -1531,9 +1531,9 @@ endpoint 1 { callback attribute phaseList; callback attribute currentPhase; callback attribute countdownTime; - callback attribute operationalStateList; - callback attribute operationalState; - callback attribute operationalError; + callback attribute operationalStateList default = 0; + callback attribute operationalState default = 0; + callback attribute operationalError default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; diff --git a/examples/light-switch-app/light-switch-common/light-switch-app.matter b/examples/light-switch-app/light-switch-common/light-switch-app.matter index 6c204fd29a4db8..e620c4167046ac 100644 --- a/examples/light-switch-app/light-switch-common/light-switch-app.matter +++ b/examples/light-switch-app/light-switch-common/light-switch-app.matter @@ -2519,7 +2519,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Binding { @@ -2533,30 +2533,30 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -2574,7 +2574,7 @@ endpoint 0 { emits event StateTransition; emits event VersionApplied; emits event DownloadError; - callback attribute defaultOTAProviders; + callback attribute defaultOTAProviders default = 0; ram attribute updatePossible default = 1; ram attribute updateState default = 0; ram attribute updateStateProgress default = 0; @@ -2602,9 +2602,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -2649,9 +2649,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -2667,10 +2667,10 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 1; handle command ResetWatermarks; @@ -2679,11 +2679,11 @@ endpoint 0 { server cluster ThreadNetworkDiagnostics { callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; - callback attribute overrunCount; + callback attribute overrunCount default = 0x0000000000000000; callback attribute neighborTable; callback attribute routeTable; callback attribute partitionId; @@ -2691,53 +2691,53 @@ endpoint 0 { callback attribute dataVersion; callback attribute stableDataVersion; callback attribute leaderRouterId; - callback attribute detachedRoleCount; - callback attribute childRoleCount; - callback attribute routerRoleCount; - callback attribute leaderRoleCount; - callback attribute attachAttemptCount; - callback attribute partitionIdChangeCount; - callback attribute betterPartitionAttachAttemptCount; - callback attribute parentChangeCount; - callback attribute txTotalCount; - callback attribute txUnicastCount; - callback attribute txBroadcastCount; - callback attribute txAckRequestedCount; - callback attribute txAckedCount; - callback attribute txNoAckRequestedCount; - callback attribute txDataCount; - callback attribute txDataPollCount; - callback attribute txBeaconCount; - callback attribute txBeaconRequestCount; - callback attribute txOtherCount; - callback attribute txRetryCount; - callback attribute txDirectMaxRetryExpiryCount; - callback attribute txIndirectMaxRetryExpiryCount; - callback attribute txErrCcaCount; - callback attribute txErrAbortCount; - callback attribute txErrBusyChannelCount; - callback attribute rxTotalCount; - callback attribute rxUnicastCount; - callback attribute rxBroadcastCount; - callback attribute rxDataCount; - callback attribute rxDataPollCount; - callback attribute rxBeaconCount; - callback attribute rxBeaconRequestCount; - callback attribute rxOtherCount; - callback attribute rxAddressFilteredCount; - callback attribute rxDestAddrFilteredCount; - callback attribute rxDuplicatedCount; - callback attribute rxErrNoFrameCount; - callback attribute rxErrUnknownNeighborCount; - callback attribute rxErrInvalidSrcAddrCount; - callback attribute rxErrSecCount; - callback attribute rxErrFcsCount; - callback attribute rxErrOtherCount; - callback attribute activeTimestamp; - callback attribute pendingTimestamp; - callback attribute delay; + callback attribute detachedRoleCount default = 0x0000; + callback attribute childRoleCount default = 0x0000; + callback attribute routerRoleCount default = 0x0000; + callback attribute leaderRoleCount default = 0x0000; + callback attribute attachAttemptCount default = 0x0000; + callback attribute partitionIdChangeCount default = 0x0000; + callback attribute betterPartitionAttachAttemptCount default = 0x0000; + callback attribute parentChangeCount default = 0x0000; + callback attribute txTotalCount default = 0x0000; + callback attribute txUnicastCount default = 0x0000; + callback attribute txBroadcastCount default = 0x0000; + callback attribute txAckRequestedCount default = 0x0000; + callback attribute txAckedCount default = 0x0000; + callback attribute txNoAckRequestedCount default = 0x0000; + callback attribute txDataCount default = 0x0000; + callback attribute txDataPollCount default = 0x0000; + callback attribute txBeaconCount default = 0x0000; + callback attribute txBeaconRequestCount default = 0x0000; + callback attribute txOtherCount default = 0x0000; + callback attribute txRetryCount default = 0x0000; + callback attribute txDirectMaxRetryExpiryCount default = 0x0000; + callback attribute txIndirectMaxRetryExpiryCount default = 0x0000; + callback attribute txErrCcaCount default = 0x0000; + callback attribute txErrAbortCount default = 0x0000; + callback attribute txErrBusyChannelCount default = 0x0000; + callback attribute rxTotalCount default = 0x0000; + callback attribute rxUnicastCount default = 0x0000; + callback attribute rxBroadcastCount default = 0x0000; + callback attribute rxDataCount default = 0x0000; + callback attribute rxDataPollCount default = 0x0000; + callback attribute rxBeaconCount default = 0x0000; + callback attribute rxBeaconRequestCount default = 0x0000; + callback attribute rxOtherCount default = 0x0000; + callback attribute rxAddressFilteredCount default = 0x0000; + callback attribute rxDestAddrFilteredCount default = 0x0000; + callback attribute rxDuplicatedCount default = 0x0000; + callback attribute rxErrNoFrameCount default = 0x0000; + callback attribute rxErrUnknownNeighborCount default = 0x0000; + callback attribute rxErrInvalidSrcAddrCount default = 0x0000; + callback attribute rxErrSecCount default = 0x0000; + callback attribute rxErrFcsCount default = 0x0000; + callback attribute rxErrOtherCount default = 0x0000; + callback attribute activeTimestamp default = 0x0000000000000000; + callback attribute pendingTimestamp default = 0x0000000000000000; + callback attribute delay default = 0x0000; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; ram attribute featureMap default = 0x000F; @@ -2753,16 +2753,16 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; - callback attribute beaconLostCount; - callback attribute beaconRxCount; - callback attribute packetMulticastRxCount; - callback attribute packetMulticastTxCount; - callback attribute packetUnicastRxCount; - callback attribute packetUnicastTxCount; - callback attribute currentMaxRate; - callback attribute overrunCount; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; + callback attribute beaconLostCount default = 0x00000000; + callback attribute beaconRxCount default = 0x00000000; + callback attribute packetMulticastRxCount default = 0x00000000; + callback attribute packetMulticastTxCount default = 0x00000000; + callback attribute packetUnicastRxCount default = 0x00000000; + callback attribute packetUnicastTxCount default = 0x00000000; + callback attribute currentMaxRate default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -2771,14 +2771,14 @@ endpoint 0 { server cluster EthernetNetworkDiagnostics { callback attribute PHYRate; - callback attribute fullDuplex; - callback attribute packetRxCount; - callback attribute packetTxCount; - callback attribute txErrCount; - callback attribute collisionCount; - callback attribute overrunCount; - callback attribute carrierDetect; - callback attribute timeSinceReset; + callback attribute fullDuplex default = 0x00; + callback attribute packetRxCount default = 0x0000000000000000; + callback attribute packetTxCount default = 0x0000000000000000; + callback attribute txErrCount default = 0x0000000000000000; + callback attribute collisionCount default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; + callback attribute carrierDetect default = 0x00; + callback attribute timeSinceReset default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -2792,15 +2792,15 @@ endpoint 0 { emits event TimeFailure; emits event MissingTrustedTimeSource; callback attribute UTCTime; - callback attribute granularity; + callback attribute granularity default = 0x00; ram attribute timeSource default = 0x00; callback attribute trustedTimeSource; callback attribute defaultNTP; - callback attribute timeZone; + callback attribute timeZone default = 1; callback attribute DSTOffset; callback attribute localTime; ram attribute timeZoneDatabase default = 0; - callback attribute timeZoneListMaxSize; + callback attribute timeZoneListMaxSize default = 3; callback attribute DSTOffsetListMaxSize; ram attribute supportsDNSResolve default = false; callback attribute generatedCommandList; @@ -2818,9 +2818,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -2858,8 +2858,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2882,9 +2882,9 @@ endpoint 0 { } server cluster IcdManagement { - callback attribute idleModeDuration; - callback attribute activeModeDuration; - callback attribute activeModeThreshold; + callback attribute idleModeDuration default = 500; + callback attribute activeModeDuration default = 300; + callback attribute activeModeThreshold default = 300; ram attribute featureMap default = 0x0000; ram attribute clusterRevision default = 2; } @@ -2932,7 +2932,7 @@ endpoint 1 { callback attribute partsList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Binding { @@ -2967,7 +2967,7 @@ endpoint 2 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Switch { diff --git a/examples/lighting-app/bouffalolab/data_model/lighting-app-ethernet.matter b/examples/lighting-app/bouffalolab/data_model/lighting-app-ethernet.matter index b0926fb67024af..dacc334477e386 100644 --- a/examples/lighting-app/bouffalolab/data_model/lighting-app-ethernet.matter +++ b/examples/lighting-app/bouffalolab/data_model/lighting-app-ethernet.matter @@ -1854,30 +1854,30 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1895,7 +1895,7 @@ endpoint 0 { emits event StateTransition; emits event VersionApplied; emits event DownloadError; - callback attribute defaultOTAProviders; + callback attribute defaultOTAProviders default = 0; ram attribute updatePossible default = 1; ram attribute updateState default = 0; ram attribute updateStateProgress default = 0; @@ -1923,9 +1923,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -1973,9 +1973,9 @@ endpoint 0 { emits event NetworkFaultChange; emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1990,10 +1990,10 @@ endpoint 0 { } server cluster SoftwareDiagnostics { - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 1; handle command ResetWatermarks; @@ -2001,14 +2001,14 @@ endpoint 0 { server cluster EthernetNetworkDiagnostics { callback attribute PHYRate; - callback attribute fullDuplex; - callback attribute packetRxCount; - callback attribute packetTxCount; - callback attribute txErrCount; - callback attribute collisionCount; - callback attribute overrunCount; - callback attribute carrierDetect; - callback attribute timeSinceReset; + callback attribute fullDuplex default = 0x00; + callback attribute packetRxCount default = 0x0000000000000000; + callback attribute packetTxCount default = 0x0000000000000000; + callback attribute txErrCount default = 0x0000000000000000; + callback attribute collisionCount default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; + callback attribute carrierDetect default = 0x00; + callback attribute timeSinceReset default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -2016,9 +2016,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -2056,8 +2056,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2161,7 +2161,7 @@ endpoint 1 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster ColorControl { diff --git a/examples/lighting-app/bouffalolab/data_model/lighting-app-thread.matter b/examples/lighting-app/bouffalolab/data_model/lighting-app-thread.matter index a57bd7306e4663..615b7f857fa390 100644 --- a/examples/lighting-app/bouffalolab/data_model/lighting-app-thread.matter +++ b/examples/lighting-app/bouffalolab/data_model/lighting-app-thread.matter @@ -1979,7 +1979,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1987,30 +1987,30 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -2028,7 +2028,7 @@ endpoint 0 { emits event StateTransition; emits event VersionApplied; emits event DownloadError; - callback attribute defaultOTAProviders; + callback attribute defaultOTAProviders default = 0; ram attribute updatePossible default = 1; ram attribute updateState default = 0; ram attribute updateStateProgress default = 0; @@ -2056,9 +2056,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -2106,9 +2106,9 @@ endpoint 0 { emits event NetworkFaultChange; emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -2124,10 +2124,10 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 1; handle command ResetWatermarks; @@ -2136,11 +2136,11 @@ endpoint 0 { server cluster ThreadNetworkDiagnostics { callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; - callback attribute overrunCount; + callback attribute overrunCount default = 0x0000000000000000; callback attribute neighborTable; callback attribute routeTable; callback attribute partitionId; @@ -2148,53 +2148,53 @@ endpoint 0 { callback attribute dataVersion; callback attribute stableDataVersion; callback attribute leaderRouterId; - callback attribute detachedRoleCount; - callback attribute childRoleCount; - callback attribute routerRoleCount; - callback attribute leaderRoleCount; - callback attribute attachAttemptCount; - callback attribute partitionIdChangeCount; - callback attribute betterPartitionAttachAttemptCount; - callback attribute parentChangeCount; - callback attribute txTotalCount; - callback attribute txUnicastCount; - callback attribute txBroadcastCount; - callback attribute txAckRequestedCount; - callback attribute txAckedCount; - callback attribute txNoAckRequestedCount; - callback attribute txDataCount; - callback attribute txDataPollCount; - callback attribute txBeaconCount; - callback attribute txBeaconRequestCount; - callback attribute txOtherCount; - callback attribute txRetryCount; - callback attribute txDirectMaxRetryExpiryCount; - callback attribute txIndirectMaxRetryExpiryCount; - callback attribute txErrCcaCount; - callback attribute txErrAbortCount; - callback attribute txErrBusyChannelCount; - callback attribute rxTotalCount; - callback attribute rxUnicastCount; - callback attribute rxBroadcastCount; - callback attribute rxDataCount; - callback attribute rxDataPollCount; - callback attribute rxBeaconCount; - callback attribute rxBeaconRequestCount; - callback attribute rxOtherCount; - callback attribute rxAddressFilteredCount; - callback attribute rxDestAddrFilteredCount; - callback attribute rxDuplicatedCount; - callback attribute rxErrNoFrameCount; - callback attribute rxErrUnknownNeighborCount; - callback attribute rxErrInvalidSrcAddrCount; - callback attribute rxErrSecCount; - callback attribute rxErrFcsCount; - callback attribute rxErrOtherCount; - callback attribute activeTimestamp; - callback attribute pendingTimestamp; - callback attribute delay; + callback attribute detachedRoleCount default = 0x0000; + callback attribute childRoleCount default = 0x0000; + callback attribute routerRoleCount default = 0x0000; + callback attribute leaderRoleCount default = 0x0000; + callback attribute attachAttemptCount default = 0x0000; + callback attribute partitionIdChangeCount default = 0x0000; + callback attribute betterPartitionAttachAttemptCount default = 0x0000; + callback attribute parentChangeCount default = 0x0000; + callback attribute txTotalCount default = 0x0000; + callback attribute txUnicastCount default = 0x0000; + callback attribute txBroadcastCount default = 0x0000; + callback attribute txAckRequestedCount default = 0x0000; + callback attribute txAckedCount default = 0x0000; + callback attribute txNoAckRequestedCount default = 0x0000; + callback attribute txDataCount default = 0x0000; + callback attribute txDataPollCount default = 0x0000; + callback attribute txBeaconCount default = 0x0000; + callback attribute txBeaconRequestCount default = 0x0000; + callback attribute txOtherCount default = 0x0000; + callback attribute txRetryCount default = 0x0000; + callback attribute txDirectMaxRetryExpiryCount default = 0x0000; + callback attribute txIndirectMaxRetryExpiryCount default = 0x0000; + callback attribute txErrCcaCount default = 0x0000; + callback attribute txErrAbortCount default = 0x0000; + callback attribute txErrBusyChannelCount default = 0x0000; + callback attribute rxTotalCount default = 0x0000; + callback attribute rxUnicastCount default = 0x0000; + callback attribute rxBroadcastCount default = 0x0000; + callback attribute rxDataCount default = 0x0000; + callback attribute rxDataPollCount default = 0x0000; + callback attribute rxBeaconCount default = 0x0000; + callback attribute rxBeaconRequestCount default = 0x0000; + callback attribute rxOtherCount default = 0x0000; + callback attribute rxAddressFilteredCount default = 0x0000; + callback attribute rxDestAddrFilteredCount default = 0x0000; + callback attribute rxDuplicatedCount default = 0x0000; + callback attribute rxErrNoFrameCount default = 0x0000; + callback attribute rxErrUnknownNeighborCount default = 0x0000; + callback attribute rxErrInvalidSrcAddrCount default = 0x0000; + callback attribute rxErrSecCount default = 0x0000; + callback attribute rxErrFcsCount default = 0x0000; + callback attribute rxErrOtherCount default = 0x0000; + callback attribute activeTimestamp default = 0x0000000000000000; + callback attribute pendingTimestamp default = 0x0000000000000000; + callback attribute delay default = 0x0000; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; ram attribute featureMap default = 0x000F; @@ -2202,9 +2202,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -2242,8 +2242,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2347,7 +2347,7 @@ endpoint 1 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster ColorControl { diff --git a/examples/lighting-app/bouffalolab/data_model/lighting-app-wifi.matter b/examples/lighting-app/bouffalolab/data_model/lighting-app-wifi.matter index d40a42e99b8752..a4c13b17b4b040 100644 --- a/examples/lighting-app/bouffalolab/data_model/lighting-app-wifi.matter +++ b/examples/lighting-app/bouffalolab/data_model/lighting-app-wifi.matter @@ -1890,7 +1890,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1898,30 +1898,30 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1939,7 +1939,7 @@ endpoint 0 { emits event StateTransition; emits event VersionApplied; emits event DownloadError; - callback attribute defaultOTAProviders; + callback attribute defaultOTAProviders default = 0; ram attribute updatePossible default = 1; ram attribute updateState default = 0; ram attribute updateStateProgress default = 0; @@ -1967,9 +1967,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -2017,9 +2017,9 @@ endpoint 0 { emits event NetworkFaultChange; emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -2034,10 +2034,10 @@ endpoint 0 { } server cluster SoftwareDiagnostics { - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 1; handle command ResetWatermarks; @@ -2050,24 +2050,24 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; - callback attribute beaconLostCount; - callback attribute beaconRxCount; - callback attribute packetMulticastRxCount; - callback attribute packetMulticastTxCount; - callback attribute packetUnicastRxCount; - callback attribute packetUnicastTxCount; - callback attribute currentMaxRate; - callback attribute overrunCount; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; + callback attribute beaconLostCount default = 0x00000000; + callback attribute beaconRxCount default = 0x00000000; + callback attribute packetMulticastRxCount default = 0x00000000; + callback attribute packetMulticastTxCount default = 0x00000000; + callback attribute packetUnicastRxCount default = 0x00000000; + callback attribute packetUnicastTxCount default = 0x00000000; + callback attribute currentMaxRate default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -2105,8 +2105,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2210,7 +2210,7 @@ endpoint 1 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster ColorControl { diff --git a/examples/lighting-app/lighting-common/lighting-app.matter b/examples/lighting-app/lighting-common/lighting-app.matter index b60127c5728b4e..68ae1ef872e3df 100644 --- a/examples/lighting-app/lighting-common/lighting-app.matter +++ b/examples/lighting-app/lighting-common/lighting-app.matter @@ -2387,7 +2387,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -2395,30 +2395,30 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -2436,7 +2436,7 @@ endpoint 0 { emits event StateTransition; emits event VersionApplied; emits event DownloadError; - callback attribute defaultOTAProviders; + callback attribute defaultOTAProviders default = 0; ram attribute updatePossible default = 1; ram attribute updateState default = 0; ram attribute updateStateProgress default = 0; @@ -2464,9 +2464,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -2514,9 +2514,9 @@ endpoint 0 { emits event NetworkFaultChange; emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -2532,10 +2532,10 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 1; handle command ResetWatermarks; @@ -2544,11 +2544,11 @@ endpoint 0 { server cluster ThreadNetworkDiagnostics { callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; - callback attribute overrunCount; + callback attribute overrunCount default = 0x0000000000000000; callback attribute neighborTable; callback attribute routeTable; callback attribute partitionId; @@ -2556,53 +2556,53 @@ endpoint 0 { callback attribute dataVersion; callback attribute stableDataVersion; callback attribute leaderRouterId; - callback attribute detachedRoleCount; - callback attribute childRoleCount; - callback attribute routerRoleCount; - callback attribute leaderRoleCount; - callback attribute attachAttemptCount; - callback attribute partitionIdChangeCount; - callback attribute betterPartitionAttachAttemptCount; - callback attribute parentChangeCount; - callback attribute txTotalCount; - callback attribute txUnicastCount; - callback attribute txBroadcastCount; - callback attribute txAckRequestedCount; - callback attribute txAckedCount; - callback attribute txNoAckRequestedCount; - callback attribute txDataCount; - callback attribute txDataPollCount; - callback attribute txBeaconCount; - callback attribute txBeaconRequestCount; - callback attribute txOtherCount; - callback attribute txRetryCount; - callback attribute txDirectMaxRetryExpiryCount; - callback attribute txIndirectMaxRetryExpiryCount; - callback attribute txErrCcaCount; - callback attribute txErrAbortCount; - callback attribute txErrBusyChannelCount; - callback attribute rxTotalCount; - callback attribute rxUnicastCount; - callback attribute rxBroadcastCount; - callback attribute rxDataCount; - callback attribute rxDataPollCount; - callback attribute rxBeaconCount; - callback attribute rxBeaconRequestCount; - callback attribute rxOtherCount; - callback attribute rxAddressFilteredCount; - callback attribute rxDestAddrFilteredCount; - callback attribute rxDuplicatedCount; - callback attribute rxErrNoFrameCount; - callback attribute rxErrUnknownNeighborCount; - callback attribute rxErrInvalidSrcAddrCount; - callback attribute rxErrSecCount; - callback attribute rxErrFcsCount; - callback attribute rxErrOtherCount; - callback attribute activeTimestamp; - callback attribute pendingTimestamp; - callback attribute delay; + callback attribute detachedRoleCount default = 0x0000; + callback attribute childRoleCount default = 0x0000; + callback attribute routerRoleCount default = 0x0000; + callback attribute leaderRoleCount default = 0x0000; + callback attribute attachAttemptCount default = 0x0000; + callback attribute partitionIdChangeCount default = 0x0000; + callback attribute betterPartitionAttachAttemptCount default = 0x0000; + callback attribute parentChangeCount default = 0x0000; + callback attribute txTotalCount default = 0x0000; + callback attribute txUnicastCount default = 0x0000; + callback attribute txBroadcastCount default = 0x0000; + callback attribute txAckRequestedCount default = 0x0000; + callback attribute txAckedCount default = 0x0000; + callback attribute txNoAckRequestedCount default = 0x0000; + callback attribute txDataCount default = 0x0000; + callback attribute txDataPollCount default = 0x0000; + callback attribute txBeaconCount default = 0x0000; + callback attribute txBeaconRequestCount default = 0x0000; + callback attribute txOtherCount default = 0x0000; + callback attribute txRetryCount default = 0x0000; + callback attribute txDirectMaxRetryExpiryCount default = 0x0000; + callback attribute txIndirectMaxRetryExpiryCount default = 0x0000; + callback attribute txErrCcaCount default = 0x0000; + callback attribute txErrAbortCount default = 0x0000; + callback attribute txErrBusyChannelCount default = 0x0000; + callback attribute rxTotalCount default = 0x0000; + callback attribute rxUnicastCount default = 0x0000; + callback attribute rxBroadcastCount default = 0x0000; + callback attribute rxDataCount default = 0x0000; + callback attribute rxDataPollCount default = 0x0000; + callback attribute rxBeaconCount default = 0x0000; + callback attribute rxBeaconRequestCount default = 0x0000; + callback attribute rxOtherCount default = 0x0000; + callback attribute rxAddressFilteredCount default = 0x0000; + callback attribute rxDestAddrFilteredCount default = 0x0000; + callback attribute rxDuplicatedCount default = 0x0000; + callback attribute rxErrNoFrameCount default = 0x0000; + callback attribute rxErrUnknownNeighborCount default = 0x0000; + callback attribute rxErrInvalidSrcAddrCount default = 0x0000; + callback attribute rxErrSecCount default = 0x0000; + callback attribute rxErrFcsCount default = 0x0000; + callback attribute rxErrOtherCount default = 0x0000; + callback attribute activeTimestamp default = 0x0000000000000000; + callback attribute pendingTimestamp default = 0x0000000000000000; + callback attribute delay default = 0x0000; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; ram attribute featureMap default = 0x000F; @@ -2618,16 +2618,16 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; - callback attribute beaconLostCount; - callback attribute beaconRxCount; - callback attribute packetMulticastRxCount; - callback attribute packetMulticastTxCount; - callback attribute packetUnicastRxCount; - callback attribute packetUnicastTxCount; - callback attribute currentMaxRate; - callback attribute overrunCount; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; + callback attribute beaconLostCount default = 0x00000000; + callback attribute beaconRxCount default = 0x00000000; + callback attribute packetMulticastRxCount default = 0x00000000; + callback attribute packetMulticastTxCount default = 0x00000000; + callback attribute packetUnicastRxCount default = 0x00000000; + callback attribute packetUnicastTxCount default = 0x00000000; + callback attribute currentMaxRate default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -2636,14 +2636,14 @@ endpoint 0 { server cluster EthernetNetworkDiagnostics { callback attribute PHYRate; - callback attribute fullDuplex; - callback attribute packetRxCount; - callback attribute packetTxCount; - callback attribute txErrCount; - callback attribute collisionCount; - callback attribute overrunCount; - callback attribute carrierDetect; - callback attribute timeSinceReset; + callback attribute fullDuplex default = 0x00; + callback attribute packetRxCount default = 0x0000000000000000; + callback attribute packetTxCount default = 0x0000000000000000; + callback attribute txErrCount default = 0x0000000000000000; + callback attribute collisionCount default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; + callback attribute carrierDetect default = 0x00; + callback attribute timeSinceReset default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -2659,9 +2659,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -2699,8 +2699,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2833,7 +2833,7 @@ endpoint 1 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster ColorControl { diff --git a/examples/lighting-app/nxp/zap/lighting-on-off.matter b/examples/lighting-app/nxp/zap/lighting-on-off.matter index 0003dd40b4fa46..de7d31131c589c 100644 --- a/examples/lighting-app/nxp/zap/lighting-on-off.matter +++ b/examples/lighting-app/nxp/zap/lighting-on-off.matter @@ -1516,35 +1516,35 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { emits event AccessControlEntryChanged; emits event AccessControlExtensionChanged; callback attribute acl; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; callback attribute capabilityMinima; callback attribute specificationVersion; @@ -1557,7 +1557,7 @@ endpoint 0 { emits event StateTransition; emits event VersionApplied; emits event DownloadError; - callback attribute defaultOTAProviders; + callback attribute defaultOTAProviders default = 0; ram attribute updatePossible default = 1; ram attribute updateState default = 0; ram attribute updateStateProgress default = 0; @@ -1570,9 +1570,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -1609,8 +1609,8 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; callback attribute testEventTriggersEnabled default = false; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0002; @@ -1622,10 +1622,10 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 1; handle command ResetWatermarks; @@ -1634,11 +1634,11 @@ endpoint 0 { server cluster ThreadNetworkDiagnostics { callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; - callback attribute overrunCount; + callback attribute overrunCount default = 0x0000000000000000; callback attribute neighborTable; callback attribute routeTable; callback attribute partitionId; @@ -1646,50 +1646,50 @@ endpoint 0 { callback attribute dataVersion; callback attribute stableDataVersion; callback attribute leaderRouterId; - callback attribute detachedRoleCount; - callback attribute childRoleCount; - callback attribute routerRoleCount; - callback attribute leaderRoleCount; - callback attribute attachAttemptCount; - callback attribute partitionIdChangeCount; - callback attribute betterPartitionAttachAttemptCount; - callback attribute parentChangeCount; - callback attribute txTotalCount; - callback attribute txUnicastCount; - callback attribute txBroadcastCount; - callback attribute txAckRequestedCount; - callback attribute txAckedCount; - callback attribute txNoAckRequestedCount; - callback attribute txDataCount; - callback attribute txDataPollCount; - callback attribute txBeaconCount; - callback attribute txBeaconRequestCount; - callback attribute txOtherCount; - callback attribute txRetryCount; - callback attribute txDirectMaxRetryExpiryCount; - callback attribute txIndirectMaxRetryExpiryCount; - callback attribute txErrCcaCount; - callback attribute txErrAbortCount; - callback attribute txErrBusyChannelCount; - callback attribute rxTotalCount; - callback attribute rxUnicastCount; - callback attribute rxBroadcastCount; - callback attribute rxDataCount; - callback attribute rxDataPollCount; - callback attribute rxBeaconCount; - callback attribute rxBeaconRequestCount; - callback attribute rxOtherCount; - callback attribute rxAddressFilteredCount; - callback attribute rxDestAddrFilteredCount; - callback attribute rxDuplicatedCount; - callback attribute rxErrNoFrameCount; - callback attribute rxErrUnknownNeighborCount; - callback attribute rxErrInvalidSrcAddrCount; - callback attribute rxErrSecCount; - callback attribute rxErrFcsCount; - callback attribute rxErrOtherCount; + callback attribute detachedRoleCount default = 0x0000; + callback attribute childRoleCount default = 0x0000; + callback attribute routerRoleCount default = 0x0000; + callback attribute leaderRoleCount default = 0x0000; + callback attribute attachAttemptCount default = 0x0000; + callback attribute partitionIdChangeCount default = 0x0000; + callback attribute betterPartitionAttachAttemptCount default = 0x0000; + callback attribute parentChangeCount default = 0x0000; + callback attribute txTotalCount default = 0x0000; + callback attribute txUnicastCount default = 0x0000; + callback attribute txBroadcastCount default = 0x0000; + callback attribute txAckRequestedCount default = 0x0000; + callback attribute txAckedCount default = 0x0000; + callback attribute txNoAckRequestedCount default = 0x0000; + callback attribute txDataCount default = 0x0000; + callback attribute txDataPollCount default = 0x0000; + callback attribute txBeaconCount default = 0x0000; + callback attribute txBeaconRequestCount default = 0x0000; + callback attribute txOtherCount default = 0x0000; + callback attribute txRetryCount default = 0x0000; + callback attribute txDirectMaxRetryExpiryCount default = 0x0000; + callback attribute txIndirectMaxRetryExpiryCount default = 0x0000; + callback attribute txErrCcaCount default = 0x0000; + callback attribute txErrAbortCount default = 0x0000; + callback attribute txErrBusyChannelCount default = 0x0000; + callback attribute rxTotalCount default = 0x0000; + callback attribute rxUnicastCount default = 0x0000; + callback attribute rxBroadcastCount default = 0x0000; + callback attribute rxDataCount default = 0x0000; + callback attribute rxDataPollCount default = 0x0000; + callback attribute rxBeaconCount default = 0x0000; + callback attribute rxBeaconRequestCount default = 0x0000; + callback attribute rxOtherCount default = 0x0000; + callback attribute rxAddressFilteredCount default = 0x0000; + callback attribute rxDestAddrFilteredCount default = 0x0000; + callback attribute rxDuplicatedCount default = 0x0000; + callback attribute rxErrNoFrameCount default = 0x0000; + callback attribute rxErrUnknownNeighborCount default = 0x0000; + callback attribute rxErrInvalidSrcAddrCount default = 0x0000; + callback attribute rxErrSecCount default = 0x0000; + callback attribute rxErrFcsCount default = 0x0000; + callback attribute rxErrOtherCount default = 0x0000; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; ram attribute featureMap default = 0x000F; @@ -1699,9 +1699,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -1738,8 +1738,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1839,7 +1839,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } } diff --git a/examples/lighting-app/qpg/zap/light.matter b/examples/lighting-app/qpg/zap/light.matter index b1b05de8c97f12..d2b1ce998f00af 100644 --- a/examples/lighting-app/qpg/zap/light.matter +++ b/examples/lighting-app/qpg/zap/light.matter @@ -1923,7 +1923,7 @@ endpoint 0 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1931,32 +1931,32 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1977,7 +1977,7 @@ endpoint 0 { emits event StateTransition; emits event VersionApplied; emits event DownloadError; - callback attribute defaultOTAProviders; + callback attribute defaultOTAProviders default = 0; ram attribute updatePossible default = 1; ram attribute updateState default = 0; ram attribute updateStateProgress default = 0; @@ -1993,9 +1993,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; @@ -2052,8 +2052,8 @@ endpoint 0 { emits event NetworkFaultChange; emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -2072,13 +2072,13 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 1; handle command ResetWatermarks; @@ -2087,11 +2087,11 @@ endpoint 0 { server cluster ThreadNetworkDiagnostics { callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; - callback attribute overrunCount; + callback attribute overrunCount default = 0x0000000000000000; callback attribute neighborTable; callback attribute routeTable; callback attribute partitionId; @@ -2099,50 +2099,50 @@ endpoint 0 { callback attribute dataVersion; callback attribute stableDataVersion; callback attribute leaderRouterId; - callback attribute detachedRoleCount; - callback attribute childRoleCount; - callback attribute routerRoleCount; - callback attribute leaderRoleCount; - callback attribute attachAttemptCount; - callback attribute partitionIdChangeCount; - callback attribute betterPartitionAttachAttemptCount; - callback attribute parentChangeCount; - callback attribute txTotalCount; - callback attribute txUnicastCount; - callback attribute txBroadcastCount; - callback attribute txAckRequestedCount; - callback attribute txAckedCount; - callback attribute txNoAckRequestedCount; - callback attribute txDataCount; - callback attribute txDataPollCount; - callback attribute txBeaconCount; - callback attribute txBeaconRequestCount; - callback attribute txOtherCount; - callback attribute txRetryCount; - callback attribute txDirectMaxRetryExpiryCount; - callback attribute txIndirectMaxRetryExpiryCount; - callback attribute txErrCcaCount; - callback attribute txErrAbortCount; - callback attribute txErrBusyChannelCount; - callback attribute rxTotalCount; - callback attribute rxUnicastCount; - callback attribute rxBroadcastCount; - callback attribute rxDataCount; - callback attribute rxDataPollCount; - callback attribute rxBeaconCount; - callback attribute rxBeaconRequestCount; - callback attribute rxOtherCount; - callback attribute rxAddressFilteredCount; - callback attribute rxDestAddrFilteredCount; - callback attribute rxDuplicatedCount; - callback attribute rxErrNoFrameCount; - callback attribute rxErrUnknownNeighborCount; - callback attribute rxErrInvalidSrcAddrCount; - callback attribute rxErrSecCount; - callback attribute rxErrFcsCount; - callback attribute rxErrOtherCount; + callback attribute detachedRoleCount default = 0x0000; + callback attribute childRoleCount default = 0x0000; + callback attribute routerRoleCount default = 0x0000; + callback attribute leaderRoleCount default = 0x0000; + callback attribute attachAttemptCount default = 0x0000; + callback attribute partitionIdChangeCount default = 0x0000; + callback attribute betterPartitionAttachAttemptCount default = 0x0000; + callback attribute parentChangeCount default = 0x0000; + callback attribute txTotalCount default = 0x0000; + callback attribute txUnicastCount default = 0x0000; + callback attribute txBroadcastCount default = 0x0000; + callback attribute txAckRequestedCount default = 0x0000; + callback attribute txAckedCount default = 0x0000; + callback attribute txNoAckRequestedCount default = 0x0000; + callback attribute txDataCount default = 0x0000; + callback attribute txDataPollCount default = 0x0000; + callback attribute txBeaconCount default = 0x0000; + callback attribute txBeaconRequestCount default = 0x0000; + callback attribute txOtherCount default = 0x0000; + callback attribute txRetryCount default = 0x0000; + callback attribute txDirectMaxRetryExpiryCount default = 0x0000; + callback attribute txIndirectMaxRetryExpiryCount default = 0x0000; + callback attribute txErrCcaCount default = 0x0000; + callback attribute txErrAbortCount default = 0x0000; + callback attribute txErrBusyChannelCount default = 0x0000; + callback attribute rxTotalCount default = 0x0000; + callback attribute rxUnicastCount default = 0x0000; + callback attribute rxBroadcastCount default = 0x0000; + callback attribute rxDataCount default = 0x0000; + callback attribute rxDataPollCount default = 0x0000; + callback attribute rxBeaconCount default = 0x0000; + callback attribute rxBeaconRequestCount default = 0x0000; + callback attribute rxOtherCount default = 0x0000; + callback attribute rxAddressFilteredCount default = 0x0000; + callback attribute rxDestAddrFilteredCount default = 0x0000; + callback attribute rxDuplicatedCount default = 0x0000; + callback attribute rxErrNoFrameCount default = 0x0000; + callback attribute rxErrUnknownNeighborCount default = 0x0000; + callback attribute rxErrInvalidSrcAddrCount default = 0x0000; + callback attribute rxErrSecCount default = 0x0000; + callback attribute rxErrFcsCount default = 0x0000; + callback attribute rxErrOtherCount default = 0x0000; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; callback attribute generatedCommandList; @@ -2155,9 +2155,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; @@ -2204,8 +2204,8 @@ endpoint 0 { callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2323,7 +2323,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster ColorControl { diff --git a/examples/lighting-app/silabs/data_model/lighting-thread-app.matter b/examples/lighting-app/silabs/data_model/lighting-thread-app.matter index 1dba6f81f7ad56..a3d41f21a869bc 100644 --- a/examples/lighting-app/silabs/data_model/lighting-thread-app.matter +++ b/examples/lighting-app/silabs/data_model/lighting-thread-app.matter @@ -2431,7 +2431,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -2439,27 +2439,27 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -2474,7 +2474,7 @@ endpoint 0 { } server cluster OtaSoftwareUpdateRequestor { - callback attribute defaultOTAProviders; + callback attribute defaultOTAProviders default = 0; ram attribute updatePossible default = 1; ram attribute updateState default = 0; ram attribute updateStateProgress default = 0; @@ -2502,9 +2502,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -2551,9 +2551,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -2570,10 +2570,10 @@ endpoint 0 { server cluster SoftwareDiagnostics { emits event SoftwareFault; callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 1; handle command ResetWatermarks; @@ -2582,11 +2582,11 @@ endpoint 0 { server cluster ThreadNetworkDiagnostics { callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; - callback attribute overrunCount; + callback attribute overrunCount default = 0x0000000000000000; callback attribute neighborTable; callback attribute routeTable; callback attribute partitionId; @@ -2594,53 +2594,53 @@ endpoint 0 { callback attribute dataVersion; callback attribute stableDataVersion; callback attribute leaderRouterId; - callback attribute detachedRoleCount; - callback attribute childRoleCount; - callback attribute routerRoleCount; - callback attribute leaderRoleCount; - callback attribute attachAttemptCount; - callback attribute partitionIdChangeCount; - callback attribute betterPartitionAttachAttemptCount; - callback attribute parentChangeCount; - callback attribute txTotalCount; - callback attribute txUnicastCount; - callback attribute txBroadcastCount; - callback attribute txAckRequestedCount; - callback attribute txAckedCount; - callback attribute txNoAckRequestedCount; - callback attribute txDataCount; - callback attribute txDataPollCount; - callback attribute txBeaconCount; - callback attribute txBeaconRequestCount; - callback attribute txOtherCount; - callback attribute txRetryCount; - callback attribute txDirectMaxRetryExpiryCount; - callback attribute txIndirectMaxRetryExpiryCount; - callback attribute txErrCcaCount; - callback attribute txErrAbortCount; - callback attribute txErrBusyChannelCount; - callback attribute rxTotalCount; - callback attribute rxUnicastCount; - callback attribute rxBroadcastCount; - callback attribute rxDataCount; - callback attribute rxDataPollCount; - callback attribute rxBeaconCount; - callback attribute rxBeaconRequestCount; - callback attribute rxOtherCount; - callback attribute rxAddressFilteredCount; - callback attribute rxDestAddrFilteredCount; - callback attribute rxDuplicatedCount; - callback attribute rxErrNoFrameCount; - callback attribute rxErrUnknownNeighborCount; - callback attribute rxErrInvalidSrcAddrCount; - callback attribute rxErrSecCount; - callback attribute rxErrFcsCount; - callback attribute rxErrOtherCount; - callback attribute activeTimestamp; - callback attribute pendingTimestamp; - callback attribute delay; + callback attribute detachedRoleCount default = 0x0000; + callback attribute childRoleCount default = 0x0000; + callback attribute routerRoleCount default = 0x0000; + callback attribute leaderRoleCount default = 0x0000; + callback attribute attachAttemptCount default = 0x0000; + callback attribute partitionIdChangeCount default = 0x0000; + callback attribute betterPartitionAttachAttemptCount default = 0x0000; + callback attribute parentChangeCount default = 0x0000; + callback attribute txTotalCount default = 0x0000; + callback attribute txUnicastCount default = 0x0000; + callback attribute txBroadcastCount default = 0x0000; + callback attribute txAckRequestedCount default = 0x0000; + callback attribute txAckedCount default = 0x0000; + callback attribute txNoAckRequestedCount default = 0x0000; + callback attribute txDataCount default = 0x0000; + callback attribute txDataPollCount default = 0x0000; + callback attribute txBeaconCount default = 0x0000; + callback attribute txBeaconRequestCount default = 0x0000; + callback attribute txOtherCount default = 0x0000; + callback attribute txRetryCount default = 0x0000; + callback attribute txDirectMaxRetryExpiryCount default = 0x0000; + callback attribute txIndirectMaxRetryExpiryCount default = 0x0000; + callback attribute txErrCcaCount default = 0x0000; + callback attribute txErrAbortCount default = 0x0000; + callback attribute txErrBusyChannelCount default = 0x0000; + callback attribute rxTotalCount default = 0x0000; + callback attribute rxUnicastCount default = 0x0000; + callback attribute rxBroadcastCount default = 0x0000; + callback attribute rxDataCount default = 0x0000; + callback attribute rxDataPollCount default = 0x0000; + callback attribute rxBeaconCount default = 0x0000; + callback attribute rxBeaconRequestCount default = 0x0000; + callback attribute rxOtherCount default = 0x0000; + callback attribute rxAddressFilteredCount default = 0x0000; + callback attribute rxDestAddrFilteredCount default = 0x0000; + callback attribute rxDuplicatedCount default = 0x0000; + callback attribute rxErrNoFrameCount default = 0x0000; + callback attribute rxErrUnknownNeighborCount default = 0x0000; + callback attribute rxErrInvalidSrcAddrCount default = 0x0000; + callback attribute rxErrSecCount default = 0x0000; + callback attribute rxErrFcsCount default = 0x0000; + callback attribute rxErrOtherCount default = 0x0000; + callback attribute activeTimestamp default = 0x0000000000000000; + callback attribute pendingTimestamp default = 0x0000000000000000; + callback attribute delay default = 0x0000; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; ram attribute featureMap default = 0x000F; @@ -2650,9 +2650,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -2690,8 +2690,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2849,7 +2849,7 @@ endpoint 1 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster PowerSource { diff --git a/examples/lighting-app/silabs/data_model/lighting-wifi-app.matter b/examples/lighting-app/silabs/data_model/lighting-wifi-app.matter index f2dfca3f1353b1..b120ea8c139bcb 100644 --- a/examples/lighting-app/silabs/data_model/lighting-wifi-app.matter +++ b/examples/lighting-app/silabs/data_model/lighting-wifi-app.matter @@ -2342,7 +2342,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -2350,27 +2350,27 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -2385,7 +2385,7 @@ endpoint 0 { } server cluster OtaSoftwareUpdateRequestor { - callback attribute defaultOTAProviders; + callback attribute defaultOTAProviders default = 0; ram attribute updatePossible default = 1; ram attribute updateState default = 0; ram attribute updateStateProgress default = 0; @@ -2413,9 +2413,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -2460,9 +2460,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -2479,10 +2479,10 @@ endpoint 0 { server cluster SoftwareDiagnostics { emits event SoftwareFault; callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 1; handle command ResetWatermarks; @@ -2492,16 +2492,16 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; - callback attribute beaconLostCount; - callback attribute beaconRxCount; - callback attribute packetMulticastRxCount; - callback attribute packetMulticastTxCount; - callback attribute packetUnicastRxCount; - callback attribute packetUnicastTxCount; - callback attribute currentMaxRate; - callback attribute overrunCount; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; + callback attribute beaconLostCount default = 0x00000000; + callback attribute beaconRxCount default = 0x00000000; + callback attribute packetMulticastRxCount default = 0x00000000; + callback attribute packetMulticastTxCount default = 0x00000000; + callback attribute packetUnicastRxCount default = 0x00000000; + callback attribute packetUnicastTxCount default = 0x00000000; + callback attribute currentMaxRate default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -2509,9 +2509,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -2549,8 +2549,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2705,7 +2705,7 @@ endpoint 1 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster PowerSource { diff --git a/examples/lit-icd-app/lit-icd-common/lit-icd-server-app.matter b/examples/lit-icd-app/lit-icd-common/lit-icd-server-app.matter index 60b6d81a531006..8498133d2850d4 100644 --- a/examples/lit-icd-app/lit-icd-common/lit-icd-server-app.matter +++ b/examples/lit-icd-app/lit-icd-common/lit-icd-server-app.matter @@ -1480,36 +1480,36 @@ endpoint 0 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { emits event AccessControlEntryChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; callback attribute capabilityMinima; callback attribute specificationVersion; @@ -1526,7 +1526,7 @@ endpoint 0 { emits event StateTransition; emits event VersionApplied; emits event DownloadError; - callback attribute defaultOTAProviders; + callback attribute defaultOTAProviders default = 0; ram attribute updatePossible default = 1; ram attribute updateState default = 0; ram attribute updateStateProgress default = 0; @@ -1548,9 +1548,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; @@ -1595,7 +1595,7 @@ endpoint 0 { server cluster GeneralDiagnostics { callback attribute networkInterfaces; - callback attribute rebootCount; + callback attribute rebootCount default = 0x0000; callback attribute testEventTriggersEnabled; callback attribute generatedCommandList; callback attribute acceptedCommandList; @@ -1612,9 +1612,9 @@ endpoint 0 { server cluster ThreadNetworkDiagnostics { callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; callback attribute neighborTable; callback attribute routeTable; @@ -1624,7 +1624,7 @@ endpoint 0 { callback attribute stableDataVersion; callback attribute leaderRouterId; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; ram attribute featureMap default = 0; @@ -1635,22 +1635,22 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; } server cluster EthernetNetworkDiagnostics { callback attribute PHYRate; - callback attribute fullDuplex; - callback attribute packetRxCount; - callback attribute packetTxCount; - callback attribute txErrCount; - callback attribute collisionCount; - callback attribute overrunCount; - callback attribute carrierDetect; - callback attribute timeSinceReset; + callback attribute fullDuplex default = 0x00; + callback attribute packetRxCount default = 0x0000000000000000; + callback attribute packetTxCount default = 0x0000000000000000; + callback attribute txErrCount default = 0x0000000000000000; + callback attribute collisionCount default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; + callback attribute carrierDetect default = 0x00; + callback attribute timeSinceReset default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -1658,9 +1658,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; @@ -1709,8 +1709,8 @@ endpoint 0 { callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1733,14 +1733,14 @@ endpoint 0 { } server cluster IcdManagement { - callback attribute idleModeDuration; - callback attribute activeModeDuration; - callback attribute activeModeThreshold; + callback attribute idleModeDuration default = 1; + callback attribute activeModeDuration default = 300; + callback attribute activeModeThreshold default = 300; callback attribute registeredClients; - callback attribute ICDCounter; - callback attribute clientsSupportedPerFabric; - callback attribute userActiveModeTriggerHint; - callback attribute userActiveModeTriggerInstruction; + callback attribute ICDCounter default = 0; + callback attribute clientsSupportedPerFabric default = 2; + callback attribute userActiveModeTriggerHint default = 5; + callback attribute userActiveModeTriggerInstruction default = "This is a test"; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; diff --git a/examples/lock-app/lock-common/lock-app.matter b/examples/lock-app/lock-common/lock-app.matter index ec76655cded197..d1da22ba12145a 100644 --- a/examples/lock-app/lock-common/lock-app.matter +++ b/examples/lock-app/lock-common/lock-app.matter @@ -2453,7 +2453,7 @@ endpoint 0 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -2461,33 +2461,33 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -2509,7 +2509,7 @@ endpoint 0 { emits event StateTransition; emits event VersionApplied; emits event DownloadError; - callback attribute defaultOTAProviders; + callback attribute defaultOTAProviders default = 0; ram attribute updatePossible default = 1; ram attribute updateState default = 0; ram attribute updateStateProgress default = 0; @@ -2558,9 +2558,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; @@ -2616,9 +2616,9 @@ endpoint 0 { emits event NetworkFaultChange; emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -2638,10 +2638,10 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 1; handle command ResetWatermarks; @@ -2650,11 +2650,11 @@ endpoint 0 { server cluster ThreadNetworkDiagnostics { callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; - callback attribute overrunCount; + callback attribute overrunCount default = 0x0000000000000000; callback attribute neighborTable; callback attribute routeTable; callback attribute partitionId; @@ -2662,53 +2662,53 @@ endpoint 0 { callback attribute dataVersion; callback attribute stableDataVersion; callback attribute leaderRouterId; - callback attribute detachedRoleCount; - callback attribute childRoleCount; - callback attribute routerRoleCount; - callback attribute leaderRoleCount; - callback attribute attachAttemptCount; - callback attribute partitionIdChangeCount; - callback attribute betterPartitionAttachAttemptCount; - callback attribute parentChangeCount; - callback attribute txTotalCount; - callback attribute txUnicastCount; - callback attribute txBroadcastCount; - callback attribute txAckRequestedCount; - callback attribute txAckedCount; - callback attribute txNoAckRequestedCount; - callback attribute txDataCount; - callback attribute txDataPollCount; - callback attribute txBeaconCount; - callback attribute txBeaconRequestCount; - callback attribute txOtherCount; - callback attribute txRetryCount; - callback attribute txDirectMaxRetryExpiryCount; - callback attribute txIndirectMaxRetryExpiryCount; - callback attribute txErrCcaCount; - callback attribute txErrAbortCount; - callback attribute txErrBusyChannelCount; - callback attribute rxTotalCount; - callback attribute rxUnicastCount; - callback attribute rxBroadcastCount; - callback attribute rxDataCount; - callback attribute rxDataPollCount; - callback attribute rxBeaconCount; - callback attribute rxBeaconRequestCount; - callback attribute rxOtherCount; - callback attribute rxAddressFilteredCount; - callback attribute rxDestAddrFilteredCount; - callback attribute rxDuplicatedCount; - callback attribute rxErrNoFrameCount; - callback attribute rxErrUnknownNeighborCount; - callback attribute rxErrInvalidSrcAddrCount; - callback attribute rxErrSecCount; - callback attribute rxErrFcsCount; - callback attribute rxErrOtherCount; - callback attribute activeTimestamp; - callback attribute pendingTimestamp; - callback attribute delay; + callback attribute detachedRoleCount default = 0x0000; + callback attribute childRoleCount default = 0x0000; + callback attribute routerRoleCount default = 0x0000; + callback attribute leaderRoleCount default = 0x0000; + callback attribute attachAttemptCount default = 0x0000; + callback attribute partitionIdChangeCount default = 0x0000; + callback attribute betterPartitionAttachAttemptCount default = 0x0000; + callback attribute parentChangeCount default = 0x0000; + callback attribute txTotalCount default = 0x0000; + callback attribute txUnicastCount default = 0x0000; + callback attribute txBroadcastCount default = 0x0000; + callback attribute txAckRequestedCount default = 0x0000; + callback attribute txAckedCount default = 0x0000; + callback attribute txNoAckRequestedCount default = 0x0000; + callback attribute txDataCount default = 0x0000; + callback attribute txDataPollCount default = 0x0000; + callback attribute txBeaconCount default = 0x0000; + callback attribute txBeaconRequestCount default = 0x0000; + callback attribute txOtherCount default = 0x0000; + callback attribute txRetryCount default = 0x0000; + callback attribute txDirectMaxRetryExpiryCount default = 0x0000; + callback attribute txIndirectMaxRetryExpiryCount default = 0x0000; + callback attribute txErrCcaCount default = 0x0000; + callback attribute txErrAbortCount default = 0x0000; + callback attribute txErrBusyChannelCount default = 0x0000; + callback attribute rxTotalCount default = 0x0000; + callback attribute rxUnicastCount default = 0x0000; + callback attribute rxBroadcastCount default = 0x0000; + callback attribute rxDataCount default = 0x0000; + callback attribute rxDataPollCount default = 0x0000; + callback attribute rxBeaconCount default = 0x0000; + callback attribute rxBeaconRequestCount default = 0x0000; + callback attribute rxOtherCount default = 0x0000; + callback attribute rxAddressFilteredCount default = 0x0000; + callback attribute rxDestAddrFilteredCount default = 0x0000; + callback attribute rxDuplicatedCount default = 0x0000; + callback attribute rxErrNoFrameCount default = 0x0000; + callback attribute rxErrUnknownNeighborCount default = 0x0000; + callback attribute rxErrInvalidSrcAddrCount default = 0x0000; + callback attribute rxErrSecCount default = 0x0000; + callback attribute rxErrFcsCount default = 0x0000; + callback attribute rxErrOtherCount default = 0x0000; + callback attribute activeTimestamp default = 0x0000000000000000; + callback attribute pendingTimestamp default = 0x0000000000000000; + callback attribute delay default = 0x0000; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; ram attribute featureMap default = 0x000F; @@ -2724,16 +2724,16 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; - callback attribute beaconLostCount; - callback attribute beaconRxCount; - callback attribute packetMulticastRxCount; - callback attribute packetMulticastTxCount; - callback attribute packetUnicastRxCount; - callback attribute packetUnicastTxCount; - callback attribute currentMaxRate; - callback attribute overrunCount; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; + callback attribute beaconLostCount default = 0x00000000; + callback attribute beaconRxCount default = 0x00000000; + callback attribute packetMulticastRxCount default = 0x00000000; + callback attribute packetMulticastTxCount default = 0x00000000; + callback attribute packetUnicastRxCount default = 0x00000000; + callback attribute packetUnicastTxCount default = 0x00000000; + callback attribute currentMaxRate default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -2742,14 +2742,14 @@ endpoint 0 { server cluster EthernetNetworkDiagnostics { callback attribute PHYRate; - callback attribute fullDuplex; - callback attribute packetRxCount; - callback attribute packetTxCount; - callback attribute txErrCount; - callback attribute collisionCount; - callback attribute overrunCount; - callback attribute carrierDetect; - callback attribute timeSinceReset; + callback attribute fullDuplex default = 0x00; + callback attribute packetRxCount default = 0x0000000000000000; + callback attribute packetTxCount default = 0x0000000000000000; + callback attribute txErrCount default = 0x0000000000000000; + callback attribute collisionCount default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; + callback attribute carrierDetect default = 0x00; + callback attribute timeSinceReset default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -2757,9 +2757,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; @@ -2803,13 +2803,13 @@ endpoint 0 { callback attribute groupKeyMap; callback attribute groupTable; callback attribute maxGroupsPerFabric; - callback attribute maxGroupKeysPerFabric; + callback attribute maxGroupKeysPerFabric default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2832,9 +2832,9 @@ endpoint 0 { } server cluster IcdManagement { - callback attribute idleModeDuration; - callback attribute activeModeDuration; - callback attribute activeModeThreshold; + callback attribute idleModeDuration default = 500; + callback attribute activeModeDuration default = 300; + callback attribute activeModeThreshold default = 300; ram attribute featureMap default = 0x0000; ram attribute clusterRevision default = 2; } @@ -2868,7 +2868,7 @@ endpoint 1 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster PowerSource { diff --git a/examples/lock-app/nxp/zap/lock-app.matter b/examples/lock-app/nxp/zap/lock-app.matter index 4caa02dcc3183e..74b13839366fa4 100644 --- a/examples/lock-app/nxp/zap/lock-app.matter +++ b/examples/lock-app/nxp/zap/lock-app.matter @@ -1709,35 +1709,35 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { emits event AccessControlEntryChanged; emits event AccessControlExtensionChanged; callback attribute acl; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 3; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; callback attribute capabilityMinima; callback attribute specificationVersion; @@ -1749,9 +1749,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -1788,8 +1788,8 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; callback attribute testEventTriggersEnabled default = false; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0002; @@ -1801,10 +1801,10 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 1; handle command ResetWatermarks; @@ -1813,11 +1813,11 @@ endpoint 0 { server cluster ThreadNetworkDiagnostics { callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; - callback attribute overrunCount; + callback attribute overrunCount default = 0x0000000000000000; callback attribute neighborTable; callback attribute routeTable; callback attribute partitionId; @@ -1825,50 +1825,50 @@ endpoint 0 { callback attribute dataVersion; callback attribute stableDataVersion; callback attribute leaderRouterId; - callback attribute detachedRoleCount; - callback attribute childRoleCount; - callback attribute routerRoleCount; - callback attribute leaderRoleCount; - callback attribute attachAttemptCount; - callback attribute partitionIdChangeCount; - callback attribute betterPartitionAttachAttemptCount; - callback attribute parentChangeCount; - callback attribute txTotalCount; - callback attribute txUnicastCount; - callback attribute txBroadcastCount; - callback attribute txAckRequestedCount; - callback attribute txAckedCount; - callback attribute txNoAckRequestedCount; - callback attribute txDataCount; - callback attribute txDataPollCount; - callback attribute txBeaconCount; - callback attribute txBeaconRequestCount; - callback attribute txOtherCount; - callback attribute txRetryCount; - callback attribute txDirectMaxRetryExpiryCount; - callback attribute txIndirectMaxRetryExpiryCount; - callback attribute txErrCcaCount; - callback attribute txErrAbortCount; - callback attribute txErrBusyChannelCount; - callback attribute rxTotalCount; - callback attribute rxUnicastCount; - callback attribute rxBroadcastCount; - callback attribute rxDataCount; - callback attribute rxDataPollCount; - callback attribute rxBeaconCount; - callback attribute rxBeaconRequestCount; - callback attribute rxOtherCount; - callback attribute rxAddressFilteredCount; - callback attribute rxDestAddrFilteredCount; - callback attribute rxDuplicatedCount; - callback attribute rxErrNoFrameCount; - callback attribute rxErrUnknownNeighborCount; - callback attribute rxErrInvalidSrcAddrCount; - callback attribute rxErrSecCount; - callback attribute rxErrFcsCount; - callback attribute rxErrOtherCount; + callback attribute detachedRoleCount default = 0x0000; + callback attribute childRoleCount default = 0x0000; + callback attribute routerRoleCount default = 0x0000; + callback attribute leaderRoleCount default = 0x0000; + callback attribute attachAttemptCount default = 0x0000; + callback attribute partitionIdChangeCount default = 0x0000; + callback attribute betterPartitionAttachAttemptCount default = 0x0000; + callback attribute parentChangeCount default = 0x0000; + callback attribute txTotalCount default = 0x0000; + callback attribute txUnicastCount default = 0x0000; + callback attribute txBroadcastCount default = 0x0000; + callback attribute txAckRequestedCount default = 0x0000; + callback attribute txAckedCount default = 0x0000; + callback attribute txNoAckRequestedCount default = 0x0000; + callback attribute txDataCount default = 0x0000; + callback attribute txDataPollCount default = 0x0000; + callback attribute txBeaconCount default = 0x0000; + callback attribute txBeaconRequestCount default = 0x0000; + callback attribute txOtherCount default = 0x0000; + callback attribute txRetryCount default = 0x0000; + callback attribute txDirectMaxRetryExpiryCount default = 0x0000; + callback attribute txIndirectMaxRetryExpiryCount default = 0x0000; + callback attribute txErrCcaCount default = 0x0000; + callback attribute txErrAbortCount default = 0x0000; + callback attribute txErrBusyChannelCount default = 0x0000; + callback attribute rxTotalCount default = 0x0000; + callback attribute rxUnicastCount default = 0x0000; + callback attribute rxBroadcastCount default = 0x0000; + callback attribute rxDataCount default = 0x0000; + callback attribute rxDataPollCount default = 0x0000; + callback attribute rxBeaconCount default = 0x0000; + callback attribute rxBeaconRequestCount default = 0x0000; + callback attribute rxOtherCount default = 0x0000; + callback attribute rxAddressFilteredCount default = 0x0000; + callback attribute rxDestAddrFilteredCount default = 0x0000; + callback attribute rxDuplicatedCount default = 0x0000; + callback attribute rxErrNoFrameCount default = 0x0000; + callback attribute rxErrUnknownNeighborCount default = 0x0000; + callback attribute rxErrInvalidSrcAddrCount default = 0x0000; + callback attribute rxErrSecCount default = 0x0000; + callback attribute rxErrFcsCount default = 0x0000; + callback attribute rxErrOtherCount default = 0x0000; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; ram attribute featureMap default = 0x000F; @@ -1878,9 +1878,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -1917,8 +1917,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1954,7 +1954,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster DoorLock { diff --git a/examples/lock-app/qpg/zap/lock.matter b/examples/lock-app/qpg/zap/lock.matter index 79b2c29cbc1259..62be47ca88653a 100644 --- a/examples/lock-app/qpg/zap/lock.matter +++ b/examples/lock-app/qpg/zap/lock.matter @@ -2107,7 +2107,7 @@ endpoint 0 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -2115,32 +2115,32 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -2161,7 +2161,7 @@ endpoint 0 { emits event StateTransition; emits event VersionApplied; emits event DownloadError; - callback attribute defaultOTAProviders; + callback attribute defaultOTAProviders default = 0; ram attribute updatePossible default = 1; ram attribute updateState default = 0; ram attribute updateStateProgress default = 0; @@ -2177,9 +2177,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; @@ -2236,8 +2236,8 @@ endpoint 0 { emits event NetworkFaultChange; emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -2256,13 +2256,13 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 1; handle command ResetWatermarks; @@ -2271,11 +2271,11 @@ endpoint 0 { server cluster ThreadNetworkDiagnostics { callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; - callback attribute overrunCount; + callback attribute overrunCount default = 0x0000000000000000; callback attribute neighborTable; callback attribute routeTable; callback attribute partitionId; @@ -2283,50 +2283,50 @@ endpoint 0 { callback attribute dataVersion; callback attribute stableDataVersion; callback attribute leaderRouterId; - callback attribute detachedRoleCount; - callback attribute childRoleCount; - callback attribute routerRoleCount; - callback attribute leaderRoleCount; - callback attribute attachAttemptCount; - callback attribute partitionIdChangeCount; - callback attribute betterPartitionAttachAttemptCount; - callback attribute parentChangeCount; - callback attribute txTotalCount; - callback attribute txUnicastCount; - callback attribute txBroadcastCount; - callback attribute txAckRequestedCount; - callback attribute txAckedCount; - callback attribute txNoAckRequestedCount; - callback attribute txDataCount; - callback attribute txDataPollCount; - callback attribute txBeaconCount; - callback attribute txBeaconRequestCount; - callback attribute txOtherCount; - callback attribute txRetryCount; - callback attribute txDirectMaxRetryExpiryCount; - callback attribute txIndirectMaxRetryExpiryCount; - callback attribute txErrCcaCount; - callback attribute txErrAbortCount; - callback attribute txErrBusyChannelCount; - callback attribute rxTotalCount; - callback attribute rxUnicastCount; - callback attribute rxBroadcastCount; - callback attribute rxDataCount; - callback attribute rxDataPollCount; - callback attribute rxBeaconCount; - callback attribute rxBeaconRequestCount; - callback attribute rxOtherCount; - callback attribute rxAddressFilteredCount; - callback attribute rxDestAddrFilteredCount; - callback attribute rxDuplicatedCount; - callback attribute rxErrNoFrameCount; - callback attribute rxErrUnknownNeighborCount; - callback attribute rxErrInvalidSrcAddrCount; - callback attribute rxErrSecCount; - callback attribute rxErrFcsCount; - callback attribute rxErrOtherCount; + callback attribute detachedRoleCount default = 0x0000; + callback attribute childRoleCount default = 0x0000; + callback attribute routerRoleCount default = 0x0000; + callback attribute leaderRoleCount default = 0x0000; + callback attribute attachAttemptCount default = 0x0000; + callback attribute partitionIdChangeCount default = 0x0000; + callback attribute betterPartitionAttachAttemptCount default = 0x0000; + callback attribute parentChangeCount default = 0x0000; + callback attribute txTotalCount default = 0x0000; + callback attribute txUnicastCount default = 0x0000; + callback attribute txBroadcastCount default = 0x0000; + callback attribute txAckRequestedCount default = 0x0000; + callback attribute txAckedCount default = 0x0000; + callback attribute txNoAckRequestedCount default = 0x0000; + callback attribute txDataCount default = 0x0000; + callback attribute txDataPollCount default = 0x0000; + callback attribute txBeaconCount default = 0x0000; + callback attribute txBeaconRequestCount default = 0x0000; + callback attribute txOtherCount default = 0x0000; + callback attribute txRetryCount default = 0x0000; + callback attribute txDirectMaxRetryExpiryCount default = 0x0000; + callback attribute txIndirectMaxRetryExpiryCount default = 0x0000; + callback attribute txErrCcaCount default = 0x0000; + callback attribute txErrAbortCount default = 0x0000; + callback attribute txErrBusyChannelCount default = 0x0000; + callback attribute rxTotalCount default = 0x0000; + callback attribute rxUnicastCount default = 0x0000; + callback attribute rxBroadcastCount default = 0x0000; + callback attribute rxDataCount default = 0x0000; + callback attribute rxDataPollCount default = 0x0000; + callback attribute rxBeaconCount default = 0x0000; + callback attribute rxBeaconRequestCount default = 0x0000; + callback attribute rxOtherCount default = 0x0000; + callback attribute rxAddressFilteredCount default = 0x0000; + callback attribute rxDestAddrFilteredCount default = 0x0000; + callback attribute rxDuplicatedCount default = 0x0000; + callback attribute rxErrNoFrameCount default = 0x0000; + callback attribute rxErrUnknownNeighborCount default = 0x0000; + callback attribute rxErrInvalidSrcAddrCount default = 0x0000; + callback attribute rxErrSecCount default = 0x0000; + callback attribute rxErrFcsCount default = 0x0000; + callback attribute rxErrOtherCount default = 0x0000; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; callback attribute generatedCommandList; @@ -2339,9 +2339,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; @@ -2384,12 +2384,12 @@ endpoint 0 { callback attribute groupKeyMap; callback attribute groupTable; callback attribute maxGroupsPerFabric; - callback attribute maxGroupKeysPerFabric; + callback attribute maxGroupKeysPerFabric default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2418,9 +2418,9 @@ endpoint 0 { } server cluster IcdManagement { - callback attribute idleModeDuration; - callback attribute activeModeDuration; - callback attribute activeModeThreshold; + callback attribute idleModeDuration default = 1; + callback attribute activeModeDuration default = 300; + callback attribute activeModeThreshold default = 300; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; @@ -2475,7 +2475,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster DoorLock { diff --git a/examples/log-source-app/log-source-common/log-source-app.matter b/examples/log-source-app/log-source-common/log-source-app.matter index cefb45b48434d3..40eecf4217ea49 100644 --- a/examples/log-source-app/log-source-common/log-source-app.matter +++ b/examples/log-source-app/log-source-common/log-source-app.matter @@ -507,18 +507,18 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute supportsConcurrentConnection; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; diff --git a/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter b/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter index ce2ebcf6c7cbcc..c5c54bb9261bd6 100644 --- a/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter +++ b/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter @@ -1085,7 +1085,7 @@ endpoint 0 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1093,30 +1093,30 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1143,7 +1143,7 @@ endpoint 0 { server cluster LocalizationConfiguration { persist attribute activeLocale default = "en-US"; - callback attribute supportedLocales; + callback attribute supportedLocales default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; } @@ -1159,9 +1159,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -1199,9 +1199,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1256,8 +1256,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; diff --git a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter index fa9e65e16d2ad9..14e95bc8ea4a2c 100644 --- a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter +++ b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter @@ -1284,7 +1284,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1292,30 +1292,30 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1333,7 +1333,7 @@ endpoint 0 { emits event StateTransition; emits event VersionApplied; emits event DownloadError; - callback attribute defaultOTAProviders; + callback attribute defaultOTAProviders default = 0; ram attribute updatePossible default = 1; ram attribute updateState default = 0; ram attribute updateStateProgress default = 0; @@ -1345,7 +1345,7 @@ endpoint 0 { server cluster LocalizationConfiguration { persist attribute activeLocale default = "en-US"; - callback attribute supportedLocales; + callback attribute supportedLocales default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; } @@ -1361,9 +1361,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -1401,9 +1401,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1458,8 +1458,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1538,7 +1538,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } } endpoint 65534 { @@ -1555,7 +1555,7 @@ endpoint 65534 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster NetworkCommissioning { diff --git a/examples/placeholder/linux/apps/app1/config.matter b/examples/placeholder/linux/apps/app1/config.matter index b98bf1d295ecd8..0a118a7f39bb7d 100644 --- a/examples/placeholder/linux/apps/app1/config.matter +++ b/examples/placeholder/linux/apps/app1/config.matter @@ -7711,7 +7711,7 @@ endpoint 0 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -7726,7 +7726,7 @@ endpoint 0 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Actions { @@ -7741,18 +7741,18 @@ endpoint 0 { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -7846,7 +7846,7 @@ endpoint 0 { callback attribute basicCommissioningInfo; callback attribute regulatoryConfig; callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute supportsConcurrentConnection default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; @@ -7892,9 +7892,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -7914,10 +7914,10 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 1; handle command ResetWatermarks; @@ -7930,59 +7930,59 @@ endpoint 0 { callback attribute panId; callback attribute extendedPanId; callback attribute meshLocalPrefix; - callback attribute overrunCount; - callback attribute neighborTable; - callback attribute routeTable; - callback attribute partitionId; - callback attribute weighting; - callback attribute dataVersion; - callback attribute stableDataVersion; - callback attribute leaderRouterId; - callback attribute detachedRoleCount; - callback attribute childRoleCount; - callback attribute routerRoleCount; - callback attribute leaderRoleCount; - callback attribute attachAttemptCount; - callback attribute partitionIdChangeCount; - callback attribute betterPartitionAttachAttemptCount; - callback attribute parentChangeCount; - callback attribute txTotalCount; - callback attribute txUnicastCount; - callback attribute txBroadcastCount; - callback attribute txAckRequestedCount; - callback attribute txAckedCount; - callback attribute txNoAckRequestedCount; - callback attribute txDataCount; - callback attribute txDataPollCount; - callback attribute txBeaconCount; - callback attribute txBeaconRequestCount; - callback attribute txOtherCount; - callback attribute txRetryCount; - callback attribute txDirectMaxRetryExpiryCount; - callback attribute txIndirectMaxRetryExpiryCount; - callback attribute txErrCcaCount; - callback attribute txErrAbortCount; - callback attribute txErrBusyChannelCount; - callback attribute rxTotalCount; - callback attribute rxUnicastCount; - callback attribute rxBroadcastCount; - callback attribute rxDataCount; - callback attribute rxDataPollCount; - callback attribute rxBeaconCount; - callback attribute rxBeaconRequestCount; - callback attribute rxOtherCount; - callback attribute rxAddressFilteredCount; - callback attribute rxDestAddrFilteredCount; - callback attribute rxDuplicatedCount; - callback attribute rxErrNoFrameCount; - callback attribute rxErrUnknownNeighborCount; - callback attribute rxErrInvalidSrcAddrCount; - callback attribute rxErrSecCount; - callback attribute rxErrFcsCount; - callback attribute rxErrOtherCount; - callback attribute activeTimestamp; - callback attribute pendingTimestamp; - callback attribute delay; + callback attribute overrunCount default = 0; + callback attribute neighborTable default = 0; + callback attribute routeTable default = 0; + callback attribute partitionId default = 0; + callback attribute weighting default = 0; + callback attribute dataVersion default = 0; + callback attribute stableDataVersion default = 0; + callback attribute leaderRouterId default = 0; + callback attribute detachedRoleCount default = 0; + callback attribute childRoleCount default = 0; + callback attribute routerRoleCount default = 0; + callback attribute leaderRoleCount default = 0; + callback attribute attachAttemptCount default = 0; + callback attribute partitionIdChangeCount default = 0; + callback attribute betterPartitionAttachAttemptCount default = 0; + callback attribute parentChangeCount default = 0; + callback attribute txTotalCount default = 0; + callback attribute txUnicastCount default = 0; + callback attribute txBroadcastCount default = 0; + callback attribute txAckRequestedCount default = 0; + callback attribute txAckedCount default = 0; + callback attribute txNoAckRequestedCount default = 0; + callback attribute txDataCount default = 0; + callback attribute txDataPollCount default = 0; + callback attribute txBeaconCount default = 0; + callback attribute txBeaconRequestCount default = 0; + callback attribute txOtherCount default = 0; + callback attribute txRetryCount default = 0; + callback attribute txDirectMaxRetryExpiryCount default = 0; + callback attribute txIndirectMaxRetryExpiryCount default = 0; + callback attribute txErrCcaCount default = 0; + callback attribute txErrAbortCount default = 0; + callback attribute txErrBusyChannelCount default = 0; + callback attribute rxTotalCount default = 0; + callback attribute rxUnicastCount default = 0; + callback attribute rxBroadcastCount default = 0; + callback attribute rxDataCount default = 0; + callback attribute rxDataPollCount default = 0; + callback attribute rxBeaconCount default = 0; + callback attribute rxBeaconRequestCount default = 0; + callback attribute rxOtherCount default = 0; + callback attribute rxAddressFilteredCount default = 0; + callback attribute rxDestAddrFilteredCount default = 0; + callback attribute rxDuplicatedCount default = 0; + callback attribute rxErrNoFrameCount default = 0; + callback attribute rxErrUnknownNeighborCount default = 0; + callback attribute rxErrInvalidSrcAddrCount default = 0; + callback attribute rxErrSecCount default = 0; + callback attribute rxErrFcsCount default = 0; + callback attribute rxErrOtherCount default = 0; + callback attribute activeTimestamp default = 0; + callback attribute pendingTimestamp default = 0; + callback attribute delay default = 0; callback attribute securityPolicy; callback attribute channelPage0Mask; callback attribute operationalDatasetComponents; @@ -7999,16 +7999,16 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; - callback attribute beaconLostCount; - callback attribute beaconRxCount; - callback attribute packetMulticastRxCount; - callback attribute packetMulticastTxCount; - callback attribute packetUnicastRxCount; - callback attribute packetUnicastTxCount; - callback attribute currentMaxRate; - callback attribute overrunCount; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; + callback attribute beaconLostCount default = 0x00000000; + callback attribute beaconRxCount default = 0x00000000; + callback attribute packetMulticastRxCount default = 0x00000000; + callback attribute packetMulticastTxCount default = 0x00000000; + callback attribute packetUnicastRxCount default = 0x00000000; + callback attribute packetUnicastTxCount default = 0x00000000; + callback attribute currentMaxRate default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -8017,14 +8017,14 @@ endpoint 0 { server cluster EthernetNetworkDiagnostics { callback attribute PHYRate; - callback attribute fullDuplex; - callback attribute packetRxCount; - callback attribute packetTxCount; - callback attribute txErrCount; - callback attribute collisionCount; - callback attribute overrunCount; - callback attribute carrierDetect; - callback attribute timeSinceReset; + callback attribute fullDuplex default = 0x00; + callback attribute packetRxCount default = 0x0000000000000000; + callback attribute packetTxCount default = 0x0000000000000000; + callback attribute txErrCount default = 0x0000000000000000; + callback attribute collisionCount default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; + callback attribute carrierDetect default = 0x00; + callback attribute timeSinceReset default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -8067,9 +8067,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; @@ -8119,8 +8119,8 @@ endpoint 0 { callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -8139,7 +8139,7 @@ endpoint 0 { server cluster ModeSelect { ram attribute description; callback attribute standardNamespace; - callback attribute supportedModes; + callback attribute supportedModes default = 255; ram attribute currentMode; ram attribute startUpMode; callback attribute generatedCommandList; @@ -8630,22 +8630,22 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; diff --git a/examples/placeholder/linux/apps/app2/config.matter b/examples/placeholder/linux/apps/app2/config.matter index 20334ea11b1d01..081ac008f82086 100644 --- a/examples/placeholder/linux/apps/app2/config.matter +++ b/examples/placeholder/linux/apps/app2/config.matter @@ -7668,7 +7668,7 @@ endpoint 0 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -7683,7 +7683,7 @@ endpoint 0 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Actions { @@ -7698,18 +7698,18 @@ endpoint 0 { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -7804,7 +7804,7 @@ endpoint 0 { callback attribute basicCommissioningInfo; callback attribute regulatoryConfig; callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute supportsConcurrentConnection default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; @@ -7850,9 +7850,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -7872,10 +7872,10 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 1; handle command ResetWatermarks; @@ -7888,59 +7888,59 @@ endpoint 0 { callback attribute panId; callback attribute extendedPanId; callback attribute meshLocalPrefix; - callback attribute overrunCount; - callback attribute neighborTable; - callback attribute routeTable; - callback attribute partitionId; - callback attribute weighting; - callback attribute dataVersion; - callback attribute stableDataVersion; - callback attribute leaderRouterId; - callback attribute detachedRoleCount; - callback attribute childRoleCount; - callback attribute routerRoleCount; - callback attribute leaderRoleCount; - callback attribute attachAttemptCount; - callback attribute partitionIdChangeCount; - callback attribute betterPartitionAttachAttemptCount; - callback attribute parentChangeCount; - callback attribute txTotalCount; - callback attribute txUnicastCount; - callback attribute txBroadcastCount; - callback attribute txAckRequestedCount; - callback attribute txAckedCount; - callback attribute txNoAckRequestedCount; - callback attribute txDataCount; - callback attribute txDataPollCount; - callback attribute txBeaconCount; - callback attribute txBeaconRequestCount; - callback attribute txOtherCount; - callback attribute txRetryCount; - callback attribute txDirectMaxRetryExpiryCount; - callback attribute txIndirectMaxRetryExpiryCount; - callback attribute txErrCcaCount; - callback attribute txErrAbortCount; - callback attribute txErrBusyChannelCount; - callback attribute rxTotalCount; - callback attribute rxUnicastCount; - callback attribute rxBroadcastCount; - callback attribute rxDataCount; - callback attribute rxDataPollCount; - callback attribute rxBeaconCount; - callback attribute rxBeaconRequestCount; - callback attribute rxOtherCount; - callback attribute rxAddressFilteredCount; - callback attribute rxDestAddrFilteredCount; - callback attribute rxDuplicatedCount; - callback attribute rxErrNoFrameCount; - callback attribute rxErrUnknownNeighborCount; - callback attribute rxErrInvalidSrcAddrCount; - callback attribute rxErrSecCount; - callback attribute rxErrFcsCount; - callback attribute rxErrOtherCount; - callback attribute activeTimestamp; - callback attribute pendingTimestamp; - callback attribute delay; + callback attribute overrunCount default = 0; + callback attribute neighborTable default = 0; + callback attribute routeTable default = 0; + callback attribute partitionId default = 0; + callback attribute weighting default = 0; + callback attribute dataVersion default = 0; + callback attribute stableDataVersion default = 0; + callback attribute leaderRouterId default = 0; + callback attribute detachedRoleCount default = 0; + callback attribute childRoleCount default = 0; + callback attribute routerRoleCount default = 0; + callback attribute leaderRoleCount default = 0; + callback attribute attachAttemptCount default = 0; + callback attribute partitionIdChangeCount default = 0; + callback attribute betterPartitionAttachAttemptCount default = 0; + callback attribute parentChangeCount default = 0; + callback attribute txTotalCount default = 0; + callback attribute txUnicastCount default = 0; + callback attribute txBroadcastCount default = 0; + callback attribute txAckRequestedCount default = 0; + callback attribute txAckedCount default = 0; + callback attribute txNoAckRequestedCount default = 0; + callback attribute txDataCount default = 0; + callback attribute txDataPollCount default = 0; + callback attribute txBeaconCount default = 0; + callback attribute txBeaconRequestCount default = 0; + callback attribute txOtherCount default = 0; + callback attribute txRetryCount default = 0; + callback attribute txDirectMaxRetryExpiryCount default = 0; + callback attribute txIndirectMaxRetryExpiryCount default = 0; + callback attribute txErrCcaCount default = 0; + callback attribute txErrAbortCount default = 0; + callback attribute txErrBusyChannelCount default = 0; + callback attribute rxTotalCount default = 0; + callback attribute rxUnicastCount default = 0; + callback attribute rxBroadcastCount default = 0; + callback attribute rxDataCount default = 0; + callback attribute rxDataPollCount default = 0; + callback attribute rxBeaconCount default = 0; + callback attribute rxBeaconRequestCount default = 0; + callback attribute rxOtherCount default = 0; + callback attribute rxAddressFilteredCount default = 0; + callback attribute rxDestAddrFilteredCount default = 0; + callback attribute rxDuplicatedCount default = 0; + callback attribute rxErrNoFrameCount default = 0; + callback attribute rxErrUnknownNeighborCount default = 0; + callback attribute rxErrInvalidSrcAddrCount default = 0; + callback attribute rxErrSecCount default = 0; + callback attribute rxErrFcsCount default = 0; + callback attribute rxErrOtherCount default = 0; + callback attribute activeTimestamp default = 0; + callback attribute pendingTimestamp default = 0; + callback attribute delay default = 0; callback attribute securityPolicy; callback attribute channelPage0Mask; callback attribute operationalDatasetComponents; @@ -7957,16 +7957,16 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; - callback attribute beaconLostCount; - callback attribute beaconRxCount; - callback attribute packetMulticastRxCount; - callback attribute packetMulticastTxCount; - callback attribute packetUnicastRxCount; - callback attribute packetUnicastTxCount; - callback attribute currentMaxRate; - callback attribute overrunCount; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; + callback attribute beaconLostCount default = 0x00000000; + callback attribute beaconRxCount default = 0x00000000; + callback attribute packetMulticastRxCount default = 0x00000000; + callback attribute packetMulticastTxCount default = 0x00000000; + callback attribute packetUnicastRxCount default = 0x00000000; + callback attribute packetUnicastTxCount default = 0x00000000; + callback attribute currentMaxRate default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -7975,14 +7975,14 @@ endpoint 0 { server cluster EthernetNetworkDiagnostics { callback attribute PHYRate; - callback attribute fullDuplex; - callback attribute packetRxCount; - callback attribute packetTxCount; - callback attribute txErrCount; - callback attribute collisionCount; - callback attribute overrunCount; - callback attribute carrierDetect; - callback attribute timeSinceReset; + callback attribute fullDuplex default = 0x00; + callback attribute packetRxCount default = 0x0000000000000000; + callback attribute packetTxCount default = 0x0000000000000000; + callback attribute txErrCount default = 0x0000000000000000; + callback attribute collisionCount default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; + callback attribute carrierDetect default = 0x00; + callback attribute timeSinceReset default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -8025,9 +8025,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; @@ -8077,8 +8077,8 @@ endpoint 0 { callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -8103,7 +8103,7 @@ endpoint 0 { server cluster ModeSelect { ram attribute description; callback attribute standardNamespace; - callback attribute supportedModes; + callback attribute supportedModes default = 255; ram attribute currentMode; ram attribute startUpMode; callback attribute generatedCommandList; @@ -8590,22 +8590,22 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; diff --git a/examples/pump-app/pump-common/pump-app.matter b/examples/pump-app/pump-common/pump-app.matter index d65bfcd7e1a00d..18a62c5424248b 100644 --- a/examples/pump-app/pump-common/pump-app.matter +++ b/examples/pump-app/pump-common/pump-app.matter @@ -1648,7 +1648,7 @@ endpoint 0 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1656,32 +1656,32 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1716,9 +1716,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; @@ -1761,8 +1761,8 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; callback attribute testEventTriggersEnabled default = false; callback attribute generatedCommandList; callback attribute acceptedCommandList; @@ -1778,9 +1778,9 @@ endpoint 0 { server cluster ThreadNetworkDiagnostics { callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; callback attribute neighborTable; callback attribute routeTable; @@ -1790,7 +1790,7 @@ endpoint 0 { callback attribute stableDataVersion; callback attribute leaderRouterId; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; callback attribute generatedCommandList; @@ -1803,9 +1803,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; @@ -1852,8 +1852,8 @@ endpoint 0 { callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1924,7 +1924,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Binding { diff --git a/examples/pump-app/silabs/data_model/pump-thread-app.matter b/examples/pump-app/silabs/data_model/pump-thread-app.matter index fd28d5c1f1f9d0..dd27c11ea5495c 100644 --- a/examples/pump-app/silabs/data_model/pump-thread-app.matter +++ b/examples/pump-app/silabs/data_model/pump-thread-app.matter @@ -1648,7 +1648,7 @@ endpoint 0 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1656,32 +1656,32 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1716,9 +1716,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; @@ -1761,8 +1761,8 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; callback attribute testEventTriggersEnabled default = false; callback attribute generatedCommandList; callback attribute acceptedCommandList; @@ -1778,9 +1778,9 @@ endpoint 0 { server cluster ThreadNetworkDiagnostics { callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; callback attribute neighborTable; callback attribute routeTable; @@ -1790,7 +1790,7 @@ endpoint 0 { callback attribute stableDataVersion; callback attribute leaderRouterId; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; callback attribute generatedCommandList; @@ -1803,9 +1803,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; @@ -1852,8 +1852,8 @@ endpoint 0 { callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1924,7 +1924,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Binding { diff --git a/examples/pump-app/silabs/data_model/pump-wifi-app.matter b/examples/pump-app/silabs/data_model/pump-wifi-app.matter index fd28d5c1f1f9d0..dd27c11ea5495c 100644 --- a/examples/pump-app/silabs/data_model/pump-wifi-app.matter +++ b/examples/pump-app/silabs/data_model/pump-wifi-app.matter @@ -1648,7 +1648,7 @@ endpoint 0 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1656,32 +1656,32 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1716,9 +1716,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; @@ -1761,8 +1761,8 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; callback attribute testEventTriggersEnabled default = false; callback attribute generatedCommandList; callback attribute acceptedCommandList; @@ -1778,9 +1778,9 @@ endpoint 0 { server cluster ThreadNetworkDiagnostics { callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; callback attribute neighborTable; callback attribute routeTable; @@ -1790,7 +1790,7 @@ endpoint 0 { callback attribute stableDataVersion; callback attribute leaderRouterId; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; callback attribute generatedCommandList; @@ -1803,9 +1803,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; @@ -1852,8 +1852,8 @@ endpoint 0 { callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1924,7 +1924,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Binding { diff --git a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter index 779d472458cefd..bf9d4c42b165dd 100644 --- a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter +++ b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter @@ -1482,7 +1482,7 @@ endpoint 0 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1490,32 +1490,32 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1550,9 +1550,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; @@ -1595,8 +1595,8 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; callback attribute testEventTriggersEnabled default = false; callback attribute generatedCommandList; callback attribute acceptedCommandList; @@ -1612,9 +1612,9 @@ endpoint 0 { server cluster ThreadNetworkDiagnostics { callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; callback attribute neighborTable; callback attribute routeTable; @@ -1624,7 +1624,7 @@ endpoint 0 { callback attribute stableDataVersion; callback attribute leaderRouterId; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; callback attribute generatedCommandList; @@ -1637,9 +1637,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; @@ -1686,8 +1686,8 @@ endpoint 0 { callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1727,7 +1727,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Binding { diff --git a/examples/refrigerator-app/refrigerator-common/refrigerator-app.matter b/examples/refrigerator-app/refrigerator-common/refrigerator-app.matter index 9f983ac99a1d8c..ab9d421d9436c6 100644 --- a/examples/refrigerator-app/refrigerator-common/refrigerator-app.matter +++ b/examples/refrigerator-app/refrigerator-common/refrigerator-app.matter @@ -1027,11 +1027,11 @@ endpoint 0 { callback attribute serverList; callback attribute clientList; callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 2; } server cluster AccessControl { @@ -1039,32 +1039,32 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 3; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1075,37 +1075,37 @@ endpoint 0 { callback attribute capabilityMinima; callback attribute specificationVersion; callback attribute maxPathsPerInvoke; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 3; } server cluster LocalizationConfiguration { persist attribute activeLocale default = "en-US"; - callback attribute supportedLocales; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute supportedLocales default = 7; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; } server cluster TimeFormatLocalization { persist attribute hourFormat default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; } server cluster UnitLocalization { persist attribute temperatureUnit default = 0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 1; ram attribute clusterRevision default = 1; } @@ -1113,12 +1113,12 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -1139,9 +1139,9 @@ endpoint 0 { ram attribute lastNetworkingStatus; ram attribute lastNetworkID; ram attribute lastConnectErrorValue; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 2; ram attribute clusterRevision default = 1; @@ -1162,17 +1162,17 @@ endpoint 0 { emits event NetworkFaultChange; emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; callback attribute activeNetworkFaults; callback attribute testEventTriggersEnabled default = false; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0002; @@ -1188,16 +1188,16 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; - callback attribute beaconLostCount; - callback attribute beaconRxCount; - callback attribute packetMulticastRxCount; - callback attribute packetMulticastTxCount; - callback attribute packetUnicastRxCount; - callback attribute packetUnicastTxCount; - callback attribute currentMaxRate; - callback attribute overrunCount; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; + callback attribute beaconLostCount default = 0x00000000; + callback attribute beaconRxCount default = 0x00000000; + callback attribute packetMulticastRxCount default = 0x00000000; + callback attribute packetMulticastTxCount default = 0x00000000; + callback attribute packetUnicastRxCount default = 0x00000000; + callback attribute packetUnicastTxCount default = 0x00000000; + callback attribute currentMaxRate default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -1205,12 +1205,12 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -1225,9 +1225,9 @@ endpoint 0 { callback attribute commissionedFabrics; callback attribute trustedRootCertificates; callback attribute currentFabricIndex; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -1250,8 +1250,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1274,7 +1274,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 2; } } endpoint 2 { @@ -1291,15 +1291,15 @@ endpoint 2 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 2; } server cluster TemperatureControl { ram attribute selectedTemperatureLevel; callback attribute supportedTemperatureLevels; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 2; ram attribute clusterRevision default = 1; @@ -1320,15 +1320,15 @@ endpoint 3 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 2; } server cluster TemperatureControl { ram attribute selectedTemperatureLevel; callback attribute supportedTemperatureLevels; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; - callback attribute attributeList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; + callback attribute attributeList default = 0; ram attribute featureMap default = 2; ram attribute clusterRevision default = 1; diff --git a/examples/rvc-app/rvc-common/rvc-app.matter b/examples/rvc-app/rvc-common/rvc-app.matter index 9e4c390c035120..8fdf942148f696 100644 --- a/examples/rvc-app/rvc-common/rvc-app.matter +++ b/examples/rvc-app/rvc-common/rvc-app.matter @@ -1112,7 +1112,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1125,25 +1125,25 @@ endpoint 0 { callback attribute accessControlEntriesPerFabric; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1160,9 +1160,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1207,9 +1207,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1224,9 +1224,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 0x0001; @@ -1263,8 +1263,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1281,10 +1281,10 @@ endpoint 1 { server cluster Identify { ram attribute identifyTime default = 0x0; ram attribute identifyType default = 0x0; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; callback attribute eventList; - callback attribute attributeList; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 4; @@ -1293,16 +1293,16 @@ endpoint 1 { } server cluster Descriptor { - callback attribute deviceTypeList; - callback attribute serverList; - callback attribute clientList; - callback attribute partsList; - callback attribute generatedCommandList; - callback attribute acceptedCommandList; + callback attribute deviceTypeList default = 0; + callback attribute serverList default = 0; + callback attribute clientList default = 0; + callback attribute partsList default = 0; + callback attribute generatedCommandList default = 0; + callback attribute acceptedCommandList default = 0; callback attribute eventList; - callback attribute attributeList; + callback attribute attributeList default = 0; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster RvcRunMode { @@ -1312,7 +1312,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 2; handle command ChangeToMode; @@ -1326,7 +1326,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; + callback attribute featureMap default = 0; ram attribute clusterRevision default = 2; handle command ChangeToMode; diff --git a/examples/smoke-co-alarm-app/smoke-co-alarm-common/smoke-co-alarm-app.matter b/examples/smoke-co-alarm-app/smoke-co-alarm-common/smoke-co-alarm-app.matter index 47a3f7f98b2a6f..68bee783b16e79 100644 --- a/examples/smoke-co-alarm-app/smoke-co-alarm-common/smoke-co-alarm-app.matter +++ b/examples/smoke-co-alarm-app/smoke-co-alarm-common/smoke-co-alarm-app.matter @@ -1912,33 +1912,33 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1953,7 +1953,7 @@ endpoint 0 { } server cluster OtaSoftwareUpdateRequestor { - callback attribute defaultOTAProviders; + callback attribute defaultOTAProviders default = 0; ram attribute updatePossible default = 1; ram attribute updateState default = 0; ram attribute updateStateProgress default = 0; @@ -1981,9 +1981,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -2027,9 +2027,9 @@ endpoint 0 { server cluster GeneralDiagnostics { callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -2045,10 +2045,10 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 1; handle command ResetWatermarks; @@ -2057,11 +2057,11 @@ endpoint 0 { server cluster ThreadNetworkDiagnostics { callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; - callback attribute overrunCount; + callback attribute overrunCount default = 0x0000000000000000; callback attribute neighborTable; callback attribute routeTable; callback attribute partitionId; @@ -2069,53 +2069,53 @@ endpoint 0 { callback attribute dataVersion; callback attribute stableDataVersion; callback attribute leaderRouterId; - callback attribute detachedRoleCount; - callback attribute childRoleCount; - callback attribute routerRoleCount; - callback attribute leaderRoleCount; - callback attribute attachAttemptCount; - callback attribute partitionIdChangeCount; - callback attribute betterPartitionAttachAttemptCount; - callback attribute parentChangeCount; - callback attribute txTotalCount; - callback attribute txUnicastCount; - callback attribute txBroadcastCount; - callback attribute txAckRequestedCount; - callback attribute txAckedCount; - callback attribute txNoAckRequestedCount; - callback attribute txDataCount; - callback attribute txDataPollCount; - callback attribute txBeaconCount; - callback attribute txBeaconRequestCount; - callback attribute txOtherCount; - callback attribute txRetryCount; - callback attribute txDirectMaxRetryExpiryCount; - callback attribute txIndirectMaxRetryExpiryCount; - callback attribute txErrCcaCount; - callback attribute txErrAbortCount; - callback attribute txErrBusyChannelCount; - callback attribute rxTotalCount; - callback attribute rxUnicastCount; - callback attribute rxBroadcastCount; - callback attribute rxDataCount; - callback attribute rxDataPollCount; - callback attribute rxBeaconCount; - callback attribute rxBeaconRequestCount; - callback attribute rxOtherCount; - callback attribute rxAddressFilteredCount; - callback attribute rxDestAddrFilteredCount; - callback attribute rxDuplicatedCount; - callback attribute rxErrNoFrameCount; - callback attribute rxErrUnknownNeighborCount; - callback attribute rxErrInvalidSrcAddrCount; - callback attribute rxErrSecCount; - callback attribute rxErrFcsCount; - callback attribute rxErrOtherCount; - callback attribute activeTimestamp; - callback attribute pendingTimestamp; - callback attribute delay; + callback attribute detachedRoleCount default = 0x0000; + callback attribute childRoleCount default = 0x0000; + callback attribute routerRoleCount default = 0x0000; + callback attribute leaderRoleCount default = 0x0000; + callback attribute attachAttemptCount default = 0x0000; + callback attribute partitionIdChangeCount default = 0x0000; + callback attribute betterPartitionAttachAttemptCount default = 0x0000; + callback attribute parentChangeCount default = 0x0000; + callback attribute txTotalCount default = 0x0000; + callback attribute txUnicastCount default = 0x0000; + callback attribute txBroadcastCount default = 0x0000; + callback attribute txAckRequestedCount default = 0x0000; + callback attribute txAckedCount default = 0x0000; + callback attribute txNoAckRequestedCount default = 0x0000; + callback attribute txDataCount default = 0x0000; + callback attribute txDataPollCount default = 0x0000; + callback attribute txBeaconCount default = 0x0000; + callback attribute txBeaconRequestCount default = 0x0000; + callback attribute txOtherCount default = 0x0000; + callback attribute txRetryCount default = 0x0000; + callback attribute txDirectMaxRetryExpiryCount default = 0x0000; + callback attribute txIndirectMaxRetryExpiryCount default = 0x0000; + callback attribute txErrCcaCount default = 0x0000; + callback attribute txErrAbortCount default = 0x0000; + callback attribute txErrBusyChannelCount default = 0x0000; + callback attribute rxTotalCount default = 0x0000; + callback attribute rxUnicastCount default = 0x0000; + callback attribute rxBroadcastCount default = 0x0000; + callback attribute rxDataCount default = 0x0000; + callback attribute rxDataPollCount default = 0x0000; + callback attribute rxBeaconCount default = 0x0000; + callback attribute rxBeaconRequestCount default = 0x0000; + callback attribute rxOtherCount default = 0x0000; + callback attribute rxAddressFilteredCount default = 0x0000; + callback attribute rxDestAddrFilteredCount default = 0x0000; + callback attribute rxDuplicatedCount default = 0x0000; + callback attribute rxErrNoFrameCount default = 0x0000; + callback attribute rxErrUnknownNeighborCount default = 0x0000; + callback attribute rxErrInvalidSrcAddrCount default = 0x0000; + callback attribute rxErrSecCount default = 0x0000; + callback attribute rxErrFcsCount default = 0x0000; + callback attribute rxErrOtherCount default = 0x0000; + callback attribute activeTimestamp default = 0x0000000000000000; + callback attribute pendingTimestamp default = 0x0000000000000000; + callback attribute delay default = 0x0000; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; ram attribute featureMap default = 0x000F; @@ -2125,9 +2125,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -2165,8 +2165,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2189,12 +2189,12 @@ endpoint 0 { } server cluster IcdManagement { - callback attribute idleModeDuration; - callback attribute activeModeDuration; - callback attribute activeModeThreshold; + callback attribute idleModeDuration default = 500; + callback attribute activeModeDuration default = 300; + callback attribute activeModeThreshold default = 300; callback attribute registeredClients; callback attribute ICDCounter; - callback attribute clientsSupportedPerFabric; + callback attribute clientsSupportedPerFabric default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute attributeList; @@ -2253,7 +2253,7 @@ endpoint 1 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster PowerSource { diff --git a/examples/temperature-measurement-app/temperature-measurement-common/temperature-measurement.matter b/examples/temperature-measurement-app/temperature-measurement-common/temperature-measurement.matter index 0a70fa23aa53a5..a56b590caf4d4a 100644 --- a/examples/temperature-measurement-app/temperature-measurement-common/temperature-measurement.matter +++ b/examples/temperature-measurement-app/temperature-measurement-common/temperature-measurement.matter @@ -1330,7 +1330,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1338,30 +1338,30 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -1379,7 +1379,7 @@ endpoint 0 { emits event StateTransition; emits event VersionApplied; emits event DownloadError; - callback attribute defaultOTAProviders; + callback attribute defaultOTAProviders default = 0; ram attribute updatePossible default = 1; ram attribute updateState default = 0; ram attribute updateStateProgress default = 0; @@ -1413,9 +1413,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 2; ram attribute clusterRevision default = 1; @@ -1459,9 +1459,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -1476,8 +1476,8 @@ endpoint 0 { } server cluster SoftwareDiagnostics { - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 1; } @@ -1488,30 +1488,30 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; - callback attribute beaconLostCount; - callback attribute beaconRxCount; - callback attribute packetMulticastRxCount; - callback attribute packetMulticastTxCount; - callback attribute packetUnicastRxCount; - callback attribute packetUnicastTxCount; - callback attribute currentMaxRate; - callback attribute overrunCount; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; + callback attribute beaconLostCount default = 0x00000000; + callback attribute beaconRxCount default = 0x00000000; + callback attribute packetMulticastRxCount default = 0x00000000; + callback attribute packetMulticastTxCount default = 0x00000000; + callback attribute packetUnicastRxCount default = 0x00000000; + callback attribute packetUnicastTxCount default = 0x00000000; + callback attribute currentMaxRate default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; } server cluster EthernetNetworkDiagnostics { callback attribute PHYRate; - callback attribute fullDuplex; - callback attribute packetRxCount; - callback attribute packetTxCount; - callback attribute txErrCount; - callback attribute collisionCount; - callback attribute overrunCount; - callback attribute carrierDetect; - callback attribute timeSinceReset; + callback attribute fullDuplex default = 0x00; + callback attribute packetRxCount default = 0x0000000000000000; + callback attribute packetTxCount default = 0x0000000000000000; + callback attribute txErrCount default = 0x0000000000000000; + callback attribute collisionCount default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; + callback attribute carrierDetect default = 0x00; + callback attribute timeSinceReset default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -1519,9 +1519,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -1559,8 +1559,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -1592,7 +1592,7 @@ endpoint 1 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster TemperatureMeasurement { diff --git a/examples/thermostat/nxp/zap/thermostat_matter_thread.matter b/examples/thermostat/nxp/zap/thermostat_matter_thread.matter index 1d8979dad25e72..4e47084e32fbee 100644 --- a/examples/thermostat/nxp/zap/thermostat_matter_thread.matter +++ b/examples/thermostat/nxp/zap/thermostat_matter_thread.matter @@ -2322,7 +2322,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -2330,30 +2330,30 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 3; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -2369,7 +2369,7 @@ endpoint 0 { } server cluster OtaSoftwareUpdateRequestor { - callback attribute defaultOTAProviders; + callback attribute defaultOTAProviders default = 0; ram attribute updatePossible default = 1; ram attribute updateState default = 0; ram attribute updateStateProgress default = 0; @@ -2403,9 +2403,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -2443,9 +2443,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -2462,11 +2462,11 @@ endpoint 0 { server cluster ThreadNetworkDiagnostics { callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; - callback attribute overrunCount; + callback attribute overrunCount default = 0x0000000000000000; callback attribute neighborTable; callback attribute routeTable; callback attribute partitionId; @@ -2474,53 +2474,53 @@ endpoint 0 { callback attribute dataVersion; callback attribute stableDataVersion; callback attribute leaderRouterId; - callback attribute detachedRoleCount; - callback attribute childRoleCount; - callback attribute routerRoleCount; - callback attribute leaderRoleCount; - callback attribute attachAttemptCount; - callback attribute partitionIdChangeCount; - callback attribute betterPartitionAttachAttemptCount; - callback attribute parentChangeCount; - callback attribute txTotalCount; - callback attribute txUnicastCount; - callback attribute txBroadcastCount; - callback attribute txAckRequestedCount; - callback attribute txAckedCount; - callback attribute txNoAckRequestedCount; - callback attribute txDataCount; - callback attribute txDataPollCount; - callback attribute txBeaconCount; - callback attribute txBeaconRequestCount; - callback attribute txOtherCount; - callback attribute txRetryCount; - callback attribute txDirectMaxRetryExpiryCount; - callback attribute txIndirectMaxRetryExpiryCount; - callback attribute txErrCcaCount; - callback attribute txErrAbortCount; - callback attribute txErrBusyChannelCount; - callback attribute rxTotalCount; - callback attribute rxUnicastCount; - callback attribute rxBroadcastCount; - callback attribute rxDataCount; - callback attribute rxDataPollCount; - callback attribute rxBeaconCount; - callback attribute rxBeaconRequestCount; - callback attribute rxOtherCount; - callback attribute rxAddressFilteredCount; - callback attribute rxDestAddrFilteredCount; - callback attribute rxDuplicatedCount; - callback attribute rxErrNoFrameCount; - callback attribute rxErrUnknownNeighborCount; - callback attribute rxErrInvalidSrcAddrCount; - callback attribute rxErrSecCount; - callback attribute rxErrFcsCount; - callback attribute rxErrOtherCount; - callback attribute activeTimestamp; - callback attribute pendingTimestamp; - callback attribute delay; + callback attribute detachedRoleCount default = 0x0000; + callback attribute childRoleCount default = 0x0000; + callback attribute routerRoleCount default = 0x0000; + callback attribute leaderRoleCount default = 0x0000; + callback attribute attachAttemptCount default = 0x0000; + callback attribute partitionIdChangeCount default = 0x0000; + callback attribute betterPartitionAttachAttemptCount default = 0x0000; + callback attribute parentChangeCount default = 0x0000; + callback attribute txTotalCount default = 0x0000; + callback attribute txUnicastCount default = 0x0000; + callback attribute txBroadcastCount default = 0x0000; + callback attribute txAckRequestedCount default = 0x0000; + callback attribute txAckedCount default = 0x0000; + callback attribute txNoAckRequestedCount default = 0x0000; + callback attribute txDataCount default = 0x0000; + callback attribute txDataPollCount default = 0x0000; + callback attribute txBeaconCount default = 0x0000; + callback attribute txBeaconRequestCount default = 0x0000; + callback attribute txOtherCount default = 0x0000; + callback attribute txRetryCount default = 0x0000; + callback attribute txDirectMaxRetryExpiryCount default = 0x0000; + callback attribute txIndirectMaxRetryExpiryCount default = 0x0000; + callback attribute txErrCcaCount default = 0x0000; + callback attribute txErrAbortCount default = 0x0000; + callback attribute txErrBusyChannelCount default = 0x0000; + callback attribute rxTotalCount default = 0x0000; + callback attribute rxUnicastCount default = 0x0000; + callback attribute rxBroadcastCount default = 0x0000; + callback attribute rxDataCount default = 0x0000; + callback attribute rxDataPollCount default = 0x0000; + callback attribute rxBeaconCount default = 0x0000; + callback attribute rxBeaconRequestCount default = 0x0000; + callback attribute rxOtherCount default = 0x0000; + callback attribute rxAddressFilteredCount default = 0x0000; + callback attribute rxDestAddrFilteredCount default = 0x0000; + callback attribute rxDuplicatedCount default = 0x0000; + callback attribute rxErrNoFrameCount default = 0x0000; + callback attribute rxErrUnknownNeighborCount default = 0x0000; + callback attribute rxErrInvalidSrcAddrCount default = 0x0000; + callback attribute rxErrSecCount default = 0x0000; + callback attribute rxErrFcsCount default = 0x0000; + callback attribute rxErrOtherCount default = 0x0000; + callback attribute activeTimestamp default = 0x0000000000000000; + callback attribute pendingTimestamp default = 0x0000000000000000; + callback attribute delay default = 0x0000; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; callback attribute generatedCommandList; @@ -2533,9 +2533,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -2573,8 +2573,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2643,7 +2643,7 @@ endpoint 1 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Binding { diff --git a/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter b/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter index ce5294936929d4..47c7082d3866b6 100644 --- a/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter +++ b/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter @@ -2233,7 +2233,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -2241,30 +2241,30 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 3; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -2280,7 +2280,7 @@ endpoint 0 { } server cluster OtaSoftwareUpdateRequestor { - callback attribute defaultOTAProviders; + callback attribute defaultOTAProviders default = 0; ram attribute updatePossible default = 1; ram attribute updateState default = 0; ram attribute updateStateProgress default = 0; @@ -2314,9 +2314,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -2354,9 +2354,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -2374,24 +2374,24 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; - callback attribute beaconLostCount; - callback attribute beaconRxCount; - callback attribute packetMulticastRxCount; - callback attribute packetMulticastTxCount; - callback attribute packetUnicastRxCount; - callback attribute packetUnicastTxCount; - callback attribute currentMaxRate; - callback attribute overrunCount; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; + callback attribute beaconLostCount default = 0x00000000; + callback attribute beaconRxCount default = 0x00000000; + callback attribute packetMulticastRxCount default = 0x00000000; + callback attribute packetMulticastTxCount default = 0x00000000; + callback attribute packetUnicastRxCount default = 0x00000000; + callback attribute packetUnicastTxCount default = 0x00000000; + callback attribute currentMaxRate default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -2429,8 +2429,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2499,7 +2499,7 @@ endpoint 1 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Binding { diff --git a/examples/thermostat/thermostat-common/thermostat.matter b/examples/thermostat/thermostat-common/thermostat.matter index 1ad0ebf4ff9944..d0fd041f0f3fd6 100644 --- a/examples/thermostat/thermostat-common/thermostat.matter +++ b/examples/thermostat/thermostat-common/thermostat.matter @@ -2106,7 +2106,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Binding { @@ -2120,30 +2120,30 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -2161,7 +2161,7 @@ endpoint 0 { emits event StateTransition; emits event VersionApplied; emits event DownloadError; - callback attribute defaultOTAProviders; + callback attribute defaultOTAProviders default = 0; ram attribute updatePossible default = 1; ram attribute updateState default = 0; ram attribute updateStateProgress default = 0; @@ -2195,9 +2195,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -2242,9 +2242,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -2260,21 +2260,21 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 1; } server cluster ThreadNetworkDiagnostics { callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; - callback attribute overrunCount; + callback attribute overrunCount default = 0x0000000000000000; callback attribute neighborTable; callback attribute routeTable; callback attribute partitionId; @@ -2282,53 +2282,53 @@ endpoint 0 { callback attribute dataVersion; callback attribute stableDataVersion; callback attribute leaderRouterId; - callback attribute detachedRoleCount; - callback attribute childRoleCount; - callback attribute routerRoleCount; - callback attribute leaderRoleCount; - callback attribute attachAttemptCount; - callback attribute partitionIdChangeCount; - callback attribute betterPartitionAttachAttemptCount; - callback attribute parentChangeCount; - callback attribute txTotalCount; - callback attribute txUnicastCount; - callback attribute txBroadcastCount; - callback attribute txAckRequestedCount; - callback attribute txAckedCount; - callback attribute txNoAckRequestedCount; - callback attribute txDataCount; - callback attribute txDataPollCount; - callback attribute txBeaconCount; - callback attribute txBeaconRequestCount; - callback attribute txOtherCount; - callback attribute txRetryCount; - callback attribute txDirectMaxRetryExpiryCount; - callback attribute txIndirectMaxRetryExpiryCount; - callback attribute txErrCcaCount; - callback attribute txErrAbortCount; - callback attribute txErrBusyChannelCount; - callback attribute rxTotalCount; - callback attribute rxUnicastCount; - callback attribute rxBroadcastCount; - callback attribute rxDataCount; - callback attribute rxDataPollCount; - callback attribute rxBeaconCount; - callback attribute rxBeaconRequestCount; - callback attribute rxOtherCount; - callback attribute rxAddressFilteredCount; - callback attribute rxDestAddrFilteredCount; - callback attribute rxDuplicatedCount; - callback attribute rxErrNoFrameCount; - callback attribute rxErrUnknownNeighborCount; - callback attribute rxErrInvalidSrcAddrCount; - callback attribute rxErrSecCount; - callback attribute rxErrFcsCount; - callback attribute rxErrOtherCount; - callback attribute activeTimestamp; - callback attribute pendingTimestamp; - callback attribute delay; + callback attribute detachedRoleCount default = 0x0000; + callback attribute childRoleCount default = 0x0000; + callback attribute routerRoleCount default = 0x0000; + callback attribute leaderRoleCount default = 0x0000; + callback attribute attachAttemptCount default = 0x0000; + callback attribute partitionIdChangeCount default = 0x0000; + callback attribute betterPartitionAttachAttemptCount default = 0x0000; + callback attribute parentChangeCount default = 0x0000; + callback attribute txTotalCount default = 0x0000; + callback attribute txUnicastCount default = 0x0000; + callback attribute txBroadcastCount default = 0x0000; + callback attribute txAckRequestedCount default = 0x0000; + callback attribute txAckedCount default = 0x0000; + callback attribute txNoAckRequestedCount default = 0x0000; + callback attribute txDataCount default = 0x0000; + callback attribute txDataPollCount default = 0x0000; + callback attribute txBeaconCount default = 0x0000; + callback attribute txBeaconRequestCount default = 0x0000; + callback attribute txOtherCount default = 0x0000; + callback attribute txRetryCount default = 0x0000; + callback attribute txDirectMaxRetryExpiryCount default = 0x0000; + callback attribute txIndirectMaxRetryExpiryCount default = 0x0000; + callback attribute txErrCcaCount default = 0x0000; + callback attribute txErrAbortCount default = 0x0000; + callback attribute txErrBusyChannelCount default = 0x0000; + callback attribute rxTotalCount default = 0x0000; + callback attribute rxUnicastCount default = 0x0000; + callback attribute rxBroadcastCount default = 0x0000; + callback attribute rxDataCount default = 0x0000; + callback attribute rxDataPollCount default = 0x0000; + callback attribute rxBeaconCount default = 0x0000; + callback attribute rxBeaconRequestCount default = 0x0000; + callback attribute rxOtherCount default = 0x0000; + callback attribute rxAddressFilteredCount default = 0x0000; + callback attribute rxDestAddrFilteredCount default = 0x0000; + callback attribute rxDuplicatedCount default = 0x0000; + callback attribute rxErrNoFrameCount default = 0x0000; + callback attribute rxErrUnknownNeighborCount default = 0x0000; + callback attribute rxErrInvalidSrcAddrCount default = 0x0000; + callback attribute rxErrSecCount default = 0x0000; + callback attribute rxErrFcsCount default = 0x0000; + callback attribute rxErrOtherCount default = 0x0000; + callback attribute activeTimestamp default = 0x0000000000000000; + callback attribute pendingTimestamp default = 0x0000000000000000; + callback attribute delay default = 0x0000; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; ram attribute featureMap default = 0x000F; @@ -2344,16 +2344,16 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; - callback attribute beaconLostCount; - callback attribute beaconRxCount; - callback attribute packetMulticastRxCount; - callback attribute packetMulticastTxCount; - callback attribute packetUnicastRxCount; - callback attribute packetUnicastTxCount; - callback attribute currentMaxRate; - callback attribute overrunCount; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; + callback attribute beaconLostCount default = 0x00000000; + callback attribute beaconRxCount default = 0x00000000; + callback attribute packetMulticastRxCount default = 0x00000000; + callback attribute packetMulticastTxCount default = 0x00000000; + callback attribute packetUnicastRxCount default = 0x00000000; + callback attribute packetUnicastTxCount default = 0x00000000; + callback attribute currentMaxRate default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -2362,22 +2362,22 @@ endpoint 0 { server cluster EthernetNetworkDiagnostics { callback attribute PHYRate; - callback attribute fullDuplex; - callback attribute packetRxCount; - callback attribute packetTxCount; - callback attribute txErrCount; - callback attribute collisionCount; - callback attribute overrunCount; - callback attribute carrierDetect; - callback attribute timeSinceReset; + callback attribute fullDuplex default = 0x00; + callback attribute packetRxCount default = 0x0000000000000000; + callback attribute packetTxCount default = 0x0000000000000000; + callback attribute txErrCount default = 0x0000000000000000; + callback attribute collisionCount default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; + callback attribute carrierDetect default = 0x00; + callback attribute timeSinceReset default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -2415,8 +2415,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2476,7 +2476,7 @@ endpoint 1 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Thermostat { diff --git a/examples/tv-app/tv-common/tv-app.matter b/examples/tv-app/tv-common/tv-app.matter index c86cf83826d4c0..b342abd7e8136b 100644 --- a/examples/tv-app/tv-common/tv-app.matter +++ b/examples/tv-app/tv-common/tv-app.matter @@ -2719,7 +2719,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Binding { @@ -2733,30 +2733,30 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -2805,9 +2805,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -2852,9 +2852,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -2871,10 +2871,10 @@ endpoint 0 { server cluster SoftwareDiagnostics { emits event SoftwareFault; callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 1; } @@ -2883,11 +2883,11 @@ endpoint 0 { emits event NetworkFaultChange; callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; - callback attribute overrunCount; + callback attribute overrunCount default = 0x0000000000000000; callback attribute neighborTable; callback attribute routeTable; callback attribute partitionId; @@ -2895,53 +2895,53 @@ endpoint 0 { callback attribute dataVersion; callback attribute stableDataVersion; callback attribute leaderRouterId; - callback attribute detachedRoleCount; - callback attribute childRoleCount; - callback attribute routerRoleCount; - callback attribute leaderRoleCount; - callback attribute attachAttemptCount; - callback attribute partitionIdChangeCount; - callback attribute betterPartitionAttachAttemptCount; - callback attribute parentChangeCount; - callback attribute txTotalCount; - callback attribute txUnicastCount; - callback attribute txBroadcastCount; - callback attribute txAckRequestedCount; - callback attribute txAckedCount; - callback attribute txNoAckRequestedCount; - callback attribute txDataCount; - callback attribute txDataPollCount; - callback attribute txBeaconCount; - callback attribute txBeaconRequestCount; - callback attribute txOtherCount; - callback attribute txRetryCount; - callback attribute txDirectMaxRetryExpiryCount; - callback attribute txIndirectMaxRetryExpiryCount; - callback attribute txErrCcaCount; - callback attribute txErrAbortCount; - callback attribute txErrBusyChannelCount; - callback attribute rxTotalCount; - callback attribute rxUnicastCount; - callback attribute rxBroadcastCount; - callback attribute rxDataCount; - callback attribute rxDataPollCount; - callback attribute rxBeaconCount; - callback attribute rxBeaconRequestCount; - callback attribute rxOtherCount; - callback attribute rxAddressFilteredCount; - callback attribute rxDestAddrFilteredCount; - callback attribute rxDuplicatedCount; - callback attribute rxErrNoFrameCount; - callback attribute rxErrUnknownNeighborCount; - callback attribute rxErrInvalidSrcAddrCount; - callback attribute rxErrSecCount; - callback attribute rxErrFcsCount; - callback attribute rxErrOtherCount; - callback attribute activeTimestamp; - callback attribute pendingTimestamp; - callback attribute delay; + callback attribute detachedRoleCount default = 0x0000; + callback attribute childRoleCount default = 0x0000; + callback attribute routerRoleCount default = 0x0000; + callback attribute leaderRoleCount default = 0x0000; + callback attribute attachAttemptCount default = 0x0000; + callback attribute partitionIdChangeCount default = 0x0000; + callback attribute betterPartitionAttachAttemptCount default = 0x0000; + callback attribute parentChangeCount default = 0x0000; + callback attribute txTotalCount default = 0x0000; + callback attribute txUnicastCount default = 0x0000; + callback attribute txBroadcastCount default = 0x0000; + callback attribute txAckRequestedCount default = 0x0000; + callback attribute txAckedCount default = 0x0000; + callback attribute txNoAckRequestedCount default = 0x0000; + callback attribute txDataCount default = 0x0000; + callback attribute txDataPollCount default = 0x0000; + callback attribute txBeaconCount default = 0x0000; + callback attribute txBeaconRequestCount default = 0x0000; + callback attribute txOtherCount default = 0x0000; + callback attribute txRetryCount default = 0x0000; + callback attribute txDirectMaxRetryExpiryCount default = 0x0000; + callback attribute txIndirectMaxRetryExpiryCount default = 0x0000; + callback attribute txErrCcaCount default = 0x0000; + callback attribute txErrAbortCount default = 0x0000; + callback attribute txErrBusyChannelCount default = 0x0000; + callback attribute rxTotalCount default = 0x0000; + callback attribute rxUnicastCount default = 0x0000; + callback attribute rxBroadcastCount default = 0x0000; + callback attribute rxDataCount default = 0x0000; + callback attribute rxDataPollCount default = 0x0000; + callback attribute rxBeaconCount default = 0x0000; + callback attribute rxBeaconRequestCount default = 0x0000; + callback attribute rxOtherCount default = 0x0000; + callback attribute rxAddressFilteredCount default = 0x0000; + callback attribute rxDestAddrFilteredCount default = 0x0000; + callback attribute rxDuplicatedCount default = 0x0000; + callback attribute rxErrNoFrameCount default = 0x0000; + callback attribute rxErrUnknownNeighborCount default = 0x0000; + callback attribute rxErrInvalidSrcAddrCount default = 0x0000; + callback attribute rxErrSecCount default = 0x0000; + callback attribute rxErrFcsCount default = 0x0000; + callback attribute rxErrOtherCount default = 0x0000; + callback attribute activeTimestamp default = 0x0000000000000000; + callback attribute pendingTimestamp default = 0x0000000000000000; + callback attribute delay default = 0x0000; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; ram attribute featureMap default = 0x000F; @@ -2955,30 +2955,30 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; - callback attribute beaconLostCount; - callback attribute beaconRxCount; - callback attribute packetMulticastRxCount; - callback attribute packetMulticastTxCount; - callback attribute packetUnicastRxCount; - callback attribute packetUnicastTxCount; - callback attribute currentMaxRate; - callback attribute overrunCount; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; + callback attribute beaconLostCount default = 0x00000000; + callback attribute beaconRxCount default = 0x00000000; + callback attribute packetMulticastRxCount default = 0x00000000; + callback attribute packetMulticastTxCount default = 0x00000000; + callback attribute packetUnicastRxCount default = 0x00000000; + callback attribute packetUnicastTxCount default = 0x00000000; + callback attribute currentMaxRate default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; } server cluster EthernetNetworkDiagnostics { callback attribute PHYRate; - callback attribute fullDuplex; - callback attribute packetRxCount; - callback attribute packetTxCount; - callback attribute txErrCount; - callback attribute collisionCount; - callback attribute overrunCount; - callback attribute carrierDetect; - callback attribute timeSinceReset; + callback attribute fullDuplex default = 0x00; + callback attribute packetRxCount default = 0x0000000000000000; + callback attribute packetTxCount default = 0x0000000000000000; + callback attribute txErrCount default = 0x0000000000000000; + callback attribute collisionCount default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; + callback attribute carrierDetect default = 0x00; + callback attribute timeSinceReset default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -2986,9 +2986,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -3026,8 +3026,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -3077,7 +3077,7 @@ endpoint 1 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster WakeOnLan { @@ -3189,7 +3189,7 @@ endpoint 1 { server cluster ApplicationLauncher { callback attribute catalogList; - callback attribute currentApp; + callback attribute currentApp default = 0x00; ram attribute featureMap default = 0x0001; ram attribute clusterRevision default = 1; @@ -3247,7 +3247,7 @@ endpoint 2 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } } endpoint 3 { @@ -3260,7 +3260,7 @@ endpoint 3 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Channel { diff --git a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter index e892d579cac82e..a2aa876b2a0b41 100644 --- a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter +++ b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter @@ -2177,7 +2177,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Binding { @@ -2191,30 +2191,30 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -2252,9 +2252,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -2292,9 +2292,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -2310,10 +2310,10 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 1; } @@ -2324,30 +2324,30 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; - callback attribute beaconLostCount; - callback attribute beaconRxCount; - callback attribute packetMulticastRxCount; - callback attribute packetMulticastTxCount; - callback attribute packetUnicastRxCount; - callback attribute packetUnicastTxCount; - callback attribute currentMaxRate; - callback attribute overrunCount; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; + callback attribute beaconLostCount default = 0x00000000; + callback attribute beaconRxCount default = 0x00000000; + callback attribute packetMulticastRxCount default = 0x00000000; + callback attribute packetMulticastTxCount default = 0x00000000; + callback attribute packetUnicastRxCount default = 0x00000000; + callback attribute packetUnicastTxCount default = 0x00000000; + callback attribute currentMaxRate default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; } server cluster EthernetNetworkDiagnostics { callback attribute PHYRate; - callback attribute fullDuplex; - callback attribute packetRxCount; - callback attribute packetTxCount; - callback attribute txErrCount; - callback attribute collisionCount; - callback attribute overrunCount; - callback attribute carrierDetect; - callback attribute timeSinceReset; + callback attribute fullDuplex default = 0x00; + callback attribute packetRxCount default = 0x0000000000000000; + callback attribute packetTxCount default = 0x0000000000000000; + callback attribute txErrCount default = 0x0000000000000000; + callback attribute collisionCount default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; + callback attribute carrierDetect default = 0x00; + callback attribute timeSinceReset default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -2355,9 +2355,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -2395,8 +2395,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2466,7 +2466,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Binding { diff --git a/examples/virtual-device-app/virtual-device-common/virtual-device-app.matter b/examples/virtual-device-app/virtual-device-common/virtual-device-app.matter index d2ef47811bfbf7..d4c637de10ffb0 100644 --- a/examples/virtual-device-app/virtual-device-common/virtual-device-app.matter +++ b/examples/virtual-device-app/virtual-device-common/virtual-device-app.matter @@ -3015,7 +3015,7 @@ endpoint 0 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster Binding { @@ -3029,30 +3029,30 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -3102,9 +3102,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -3149,9 +3149,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -3168,10 +3168,10 @@ endpoint 0 { server cluster SoftwareDiagnostics { emits event SoftwareFault; callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 1; } @@ -3180,11 +3180,11 @@ endpoint 0 { emits event NetworkFaultChange; callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; - callback attribute overrunCount; + callback attribute overrunCount default = 0x0000000000000000; callback attribute neighborTable; callback attribute routeTable; callback attribute partitionId; @@ -3192,53 +3192,53 @@ endpoint 0 { callback attribute dataVersion; callback attribute stableDataVersion; callback attribute leaderRouterId; - callback attribute detachedRoleCount; - callback attribute childRoleCount; - callback attribute routerRoleCount; - callback attribute leaderRoleCount; - callback attribute attachAttemptCount; - callback attribute partitionIdChangeCount; - callback attribute betterPartitionAttachAttemptCount; - callback attribute parentChangeCount; - callback attribute txTotalCount; - callback attribute txUnicastCount; - callback attribute txBroadcastCount; - callback attribute txAckRequestedCount; - callback attribute txAckedCount; - callback attribute txNoAckRequestedCount; - callback attribute txDataCount; - callback attribute txDataPollCount; - callback attribute txBeaconCount; - callback attribute txBeaconRequestCount; - callback attribute txOtherCount; - callback attribute txRetryCount; - callback attribute txDirectMaxRetryExpiryCount; - callback attribute txIndirectMaxRetryExpiryCount; - callback attribute txErrCcaCount; - callback attribute txErrAbortCount; - callback attribute txErrBusyChannelCount; - callback attribute rxTotalCount; - callback attribute rxUnicastCount; - callback attribute rxBroadcastCount; - callback attribute rxDataCount; - callback attribute rxDataPollCount; - callback attribute rxBeaconCount; - callback attribute rxBeaconRequestCount; - callback attribute rxOtherCount; - callback attribute rxAddressFilteredCount; - callback attribute rxDestAddrFilteredCount; - callback attribute rxDuplicatedCount; - callback attribute rxErrNoFrameCount; - callback attribute rxErrUnknownNeighborCount; - callback attribute rxErrInvalidSrcAddrCount; - callback attribute rxErrSecCount; - callback attribute rxErrFcsCount; - callback attribute rxErrOtherCount; - callback attribute activeTimestamp; - callback attribute pendingTimestamp; - callback attribute delay; + callback attribute detachedRoleCount default = 0x0000; + callback attribute childRoleCount default = 0x0000; + callback attribute routerRoleCount default = 0x0000; + callback attribute leaderRoleCount default = 0x0000; + callback attribute attachAttemptCount default = 0x0000; + callback attribute partitionIdChangeCount default = 0x0000; + callback attribute betterPartitionAttachAttemptCount default = 0x0000; + callback attribute parentChangeCount default = 0x0000; + callback attribute txTotalCount default = 0x0000; + callback attribute txUnicastCount default = 0x0000; + callback attribute txBroadcastCount default = 0x0000; + callback attribute txAckRequestedCount default = 0x0000; + callback attribute txAckedCount default = 0x0000; + callback attribute txNoAckRequestedCount default = 0x0000; + callback attribute txDataCount default = 0x0000; + callback attribute txDataPollCount default = 0x0000; + callback attribute txBeaconCount default = 0x0000; + callback attribute txBeaconRequestCount default = 0x0000; + callback attribute txOtherCount default = 0x0000; + callback attribute txRetryCount default = 0x0000; + callback attribute txDirectMaxRetryExpiryCount default = 0x0000; + callback attribute txIndirectMaxRetryExpiryCount default = 0x0000; + callback attribute txErrCcaCount default = 0x0000; + callback attribute txErrAbortCount default = 0x0000; + callback attribute txErrBusyChannelCount default = 0x0000; + callback attribute rxTotalCount default = 0x0000; + callback attribute rxUnicastCount default = 0x0000; + callback attribute rxBroadcastCount default = 0x0000; + callback attribute rxDataCount default = 0x0000; + callback attribute rxDataPollCount default = 0x0000; + callback attribute rxBeaconCount default = 0x0000; + callback attribute rxBeaconRequestCount default = 0x0000; + callback attribute rxOtherCount default = 0x0000; + callback attribute rxAddressFilteredCount default = 0x0000; + callback attribute rxDestAddrFilteredCount default = 0x0000; + callback attribute rxDuplicatedCount default = 0x0000; + callback attribute rxErrNoFrameCount default = 0x0000; + callback attribute rxErrUnknownNeighborCount default = 0x0000; + callback attribute rxErrInvalidSrcAddrCount default = 0x0000; + callback attribute rxErrSecCount default = 0x0000; + callback attribute rxErrFcsCount default = 0x0000; + callback attribute rxErrOtherCount default = 0x0000; + callback attribute activeTimestamp default = 0x0000000000000000; + callback attribute pendingTimestamp default = 0x0000000000000000; + callback attribute delay default = 0x0000; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; ram attribute featureMap default = 0x000F; @@ -3252,30 +3252,30 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; - callback attribute beaconLostCount; - callback attribute beaconRxCount; - callback attribute packetMulticastRxCount; - callback attribute packetMulticastTxCount; - callback attribute packetUnicastRxCount; - callback attribute packetUnicastTxCount; - callback attribute currentMaxRate; - callback attribute overrunCount; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; + callback attribute beaconLostCount default = 0x00000000; + callback attribute beaconRxCount default = 0x00000000; + callback attribute packetMulticastRxCount default = 0x00000000; + callback attribute packetMulticastTxCount default = 0x00000000; + callback attribute packetUnicastRxCount default = 0x00000000; + callback attribute packetUnicastTxCount default = 0x00000000; + callback attribute currentMaxRate default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; } server cluster EthernetNetworkDiagnostics { callback attribute PHYRate; - callback attribute fullDuplex; - callback attribute packetRxCount; - callback attribute packetTxCount; - callback attribute txErrCount; - callback attribute collisionCount; - callback attribute overrunCount; - callback attribute carrierDetect; - callback attribute timeSinceReset; + callback attribute fullDuplex default = 0x00; + callback attribute packetRxCount default = 0x0000000000000000; + callback attribute packetTxCount default = 0x0000000000000000; + callback attribute txErrCount default = 0x0000000000000000; + callback attribute collisionCount default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; + callback attribute carrierDetect default = 0x00; + callback attribute timeSinceReset default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -3283,9 +3283,9 @@ endpoint 0 { } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; ram attribute featureMap default = 0; ram attribute clusterRevision default = 1; @@ -3323,8 +3323,8 @@ endpoint 0 { callback attribute groupTable; callback attribute maxGroupsPerFabric; callback attribute maxGroupKeysPerFabric; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -3432,7 +3432,7 @@ endpoint 1 { callback attribute clientList; callback attribute partsList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster PowerSource { diff --git a/examples/window-app/common/window-app.matter b/examples/window-app/common/window-app.matter index ef9fd7e18ef574..a53bf7f4d5acad 100644 --- a/examples/window-app/common/window-app.matter +++ b/examples/window-app/common/window-app.matter @@ -1977,7 +1977,7 @@ endpoint 0 { callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster AccessControl { @@ -1985,33 +1985,33 @@ endpoint 0 { emits event AccessControlExtensionChanged; callback attribute acl; callback attribute extension; - callback attribute subjectsPerAccessControlEntry; - callback attribute targetsPerAccessControlEntry; - callback attribute accessControlEntriesPerFabric; + callback attribute subjectsPerAccessControlEntry default = 4; + callback attribute targetsPerAccessControlEntry default = 3; + callback attribute accessControlEntriesPerFabric default = 4; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster BasicInformation { emits event StartUp; emits event ShutDown; emits event Leave; - callback attribute dataModelRevision; + callback attribute dataModelRevision default = 10; callback attribute vendorName; callback attribute vendorID; callback attribute productName; callback attribute productID; persist attribute nodeLabel; - callback attribute location; - callback attribute hardwareVersion; + callback attribute location default = "XX"; + callback attribute hardwareVersion default = 0; callback attribute hardwareVersionString; - callback attribute softwareVersion; + callback attribute softwareVersion default = 0; callback attribute softwareVersionString; - callback attribute manufacturingDate; + callback attribute manufacturingDate default = "20210614123456ZZ"; callback attribute partNumber; callback attribute productURL; callback attribute productLabel; @@ -2033,7 +2033,7 @@ endpoint 0 { emits event StateTransition; emits event VersionApplied; emits event DownloadError; - callback attribute defaultOTAProviders; + callback attribute defaultOTAProviders default = 0; ram attribute updatePossible default = 1; ram attribute updateState default = 0; ram attribute updateStateProgress default = 0; @@ -2097,9 +2097,9 @@ endpoint 0 { server cluster GeneralCommissioning { ram attribute breadcrumb default = 0x0000000000000000; callback attribute basicCommissioningInfo; - callback attribute regulatoryConfig; - callback attribute locationCapability; - callback attribute supportsConcurrentConnection; + callback attribute regulatoryConfig default = 0; + callback attribute locationCapability default = 0; + callback attribute supportsConcurrentConnection default = 1; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; @@ -2145,9 +2145,9 @@ endpoint 0 { server cluster GeneralDiagnostics { emits event BootReason; callback attribute networkInterfaces; - callback attribute rebootCount; - callback attribute upTime; - callback attribute totalOperationalHours; + callback attribute rebootCount default = 0x0000; + callback attribute upTime default = 0x0000000000000000; + callback attribute totalOperationalHours default = 0x00000000; callback attribute bootReason; callback attribute activeHardwareFaults; callback attribute activeRadioFaults; @@ -2167,10 +2167,10 @@ endpoint 0 { server cluster SoftwareDiagnostics { callback attribute threadMetrics; - callback attribute currentHeapFree; - callback attribute currentHeapUsed; - callback attribute currentHeapHighWatermark; - callback attribute featureMap; + callback attribute currentHeapFree default = 0x0000000000000000; + callback attribute currentHeapUsed default = 0x0000000000000000; + callback attribute currentHeapHighWatermark default = 0x0000000000000000; + callback attribute featureMap default = 1; ram attribute clusterRevision default = 1; handle command ResetWatermarks; @@ -2179,11 +2179,11 @@ endpoint 0 { server cluster ThreadNetworkDiagnostics { callback attribute channel; callback attribute routingRole; - callback attribute networkName; - callback attribute panId; - callback attribute extendedPanId; + callback attribute networkName default = "0"; + callback attribute panId default = 0x0000; + callback attribute extendedPanId default = 0x0000000000000000; callback attribute meshLocalPrefix; - callback attribute overrunCount; + callback attribute overrunCount default = 0x0000000000000000; callback attribute neighborTable; callback attribute routeTable; callback attribute partitionId; @@ -2191,53 +2191,53 @@ endpoint 0 { callback attribute dataVersion; callback attribute stableDataVersion; callback attribute leaderRouterId; - callback attribute detachedRoleCount; - callback attribute childRoleCount; - callback attribute routerRoleCount; - callback attribute leaderRoleCount; - callback attribute attachAttemptCount; - callback attribute partitionIdChangeCount; - callback attribute betterPartitionAttachAttemptCount; - callback attribute parentChangeCount; - callback attribute txTotalCount; - callback attribute txUnicastCount; - callback attribute txBroadcastCount; - callback attribute txAckRequestedCount; - callback attribute txAckedCount; - callback attribute txNoAckRequestedCount; - callback attribute txDataCount; - callback attribute txDataPollCount; - callback attribute txBeaconCount; - callback attribute txBeaconRequestCount; - callback attribute txOtherCount; - callback attribute txRetryCount; - callback attribute txDirectMaxRetryExpiryCount; - callback attribute txIndirectMaxRetryExpiryCount; - callback attribute txErrCcaCount; - callback attribute txErrAbortCount; - callback attribute txErrBusyChannelCount; - callback attribute rxTotalCount; - callback attribute rxUnicastCount; - callback attribute rxBroadcastCount; - callback attribute rxDataCount; - callback attribute rxDataPollCount; - callback attribute rxBeaconCount; - callback attribute rxBeaconRequestCount; - callback attribute rxOtherCount; - callback attribute rxAddressFilteredCount; - callback attribute rxDestAddrFilteredCount; - callback attribute rxDuplicatedCount; - callback attribute rxErrNoFrameCount; - callback attribute rxErrUnknownNeighborCount; - callback attribute rxErrInvalidSrcAddrCount; - callback attribute rxErrSecCount; - callback attribute rxErrFcsCount; - callback attribute rxErrOtherCount; - callback attribute activeTimestamp; - callback attribute pendingTimestamp; - callback attribute delay; + callback attribute detachedRoleCount default = 0x0000; + callback attribute childRoleCount default = 0x0000; + callback attribute routerRoleCount default = 0x0000; + callback attribute leaderRoleCount default = 0x0000; + callback attribute attachAttemptCount default = 0x0000; + callback attribute partitionIdChangeCount default = 0x0000; + callback attribute betterPartitionAttachAttemptCount default = 0x0000; + callback attribute parentChangeCount default = 0x0000; + callback attribute txTotalCount default = 0x0000; + callback attribute txUnicastCount default = 0x0000; + callback attribute txBroadcastCount default = 0x0000; + callback attribute txAckRequestedCount default = 0x0000; + callback attribute txAckedCount default = 0x0000; + callback attribute txNoAckRequestedCount default = 0x0000; + callback attribute txDataCount default = 0x0000; + callback attribute txDataPollCount default = 0x0000; + callback attribute txBeaconCount default = 0x0000; + callback attribute txBeaconRequestCount default = 0x0000; + callback attribute txOtherCount default = 0x0000; + callback attribute txRetryCount default = 0x0000; + callback attribute txDirectMaxRetryExpiryCount default = 0x0000; + callback attribute txIndirectMaxRetryExpiryCount default = 0x0000; + callback attribute txErrCcaCount default = 0x0000; + callback attribute txErrAbortCount default = 0x0000; + callback attribute txErrBusyChannelCount default = 0x0000; + callback attribute rxTotalCount default = 0x0000; + callback attribute rxUnicastCount default = 0x0000; + callback attribute rxBroadcastCount default = 0x0000; + callback attribute rxDataCount default = 0x0000; + callback attribute rxDataPollCount default = 0x0000; + callback attribute rxBeaconCount default = 0x0000; + callback attribute rxBeaconRequestCount default = 0x0000; + callback attribute rxOtherCount default = 0x0000; + callback attribute rxAddressFilteredCount default = 0x0000; + callback attribute rxDestAddrFilteredCount default = 0x0000; + callback attribute rxDuplicatedCount default = 0x0000; + callback attribute rxErrNoFrameCount default = 0x0000; + callback attribute rxErrUnknownNeighborCount default = 0x0000; + callback attribute rxErrInvalidSrcAddrCount default = 0x0000; + callback attribute rxErrSecCount default = 0x0000; + callback attribute rxErrFcsCount default = 0x0000; + callback attribute rxErrOtherCount default = 0x0000; + callback attribute activeTimestamp default = 0x0000000000000000; + callback attribute pendingTimestamp default = 0x0000000000000000; + callback attribute delay default = 0x0000; callback attribute securityPolicy; - callback attribute channelPage0Mask; + callback attribute channelPage0Mask default = "0x0000"; callback attribute operationalDatasetComponents; callback attribute activeNetworkFaultsList; ram attribute featureMap default = 0x000F; @@ -2253,16 +2253,16 @@ endpoint 0 { callback attribute bssid; callback attribute securityType; callback attribute wiFiVersion; - callback attribute channelNumber; - callback attribute rssi; - callback attribute beaconLostCount; - callback attribute beaconRxCount; - callback attribute packetMulticastRxCount; - callback attribute packetMulticastTxCount; - callback attribute packetUnicastRxCount; - callback attribute packetUnicastTxCount; - callback attribute currentMaxRate; - callback attribute overrunCount; + callback attribute channelNumber default = 0x0000; + callback attribute rssi default = 0x00; + callback attribute beaconLostCount default = 0x00000000; + callback attribute beaconRxCount default = 0x00000000; + callback attribute packetMulticastRxCount default = 0x00000000; + callback attribute packetMulticastTxCount default = 0x00000000; + callback attribute packetUnicastRxCount default = 0x00000000; + callback attribute packetUnicastTxCount default = 0x00000000; + callback attribute currentMaxRate default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; @@ -2271,22 +2271,22 @@ endpoint 0 { server cluster EthernetNetworkDiagnostics { callback attribute PHYRate; - callback attribute fullDuplex; - callback attribute packetRxCount; - callback attribute packetTxCount; - callback attribute txErrCount; - callback attribute collisionCount; - callback attribute overrunCount; - callback attribute carrierDetect; - callback attribute timeSinceReset; + callback attribute fullDuplex default = 0x00; + callback attribute packetRxCount default = 0x0000000000000000; + callback attribute packetTxCount default = 0x0000000000000000; + callback attribute txErrCount default = 0x0000000000000000; + callback attribute collisionCount default = 0x0000000000000000; + callback attribute overrunCount default = 0x0000000000000000; + callback attribute carrierDetect default = 0x00; + callback attribute timeSinceReset default = 0x0000000000000000; ram attribute featureMap default = 3; ram attribute clusterRevision default = 1; } server cluster AdministratorCommissioning { - callback attribute windowStatus; - callback attribute adminFabricIndex; - callback attribute adminVendorId; + callback attribute windowStatus default = 0; + callback attribute adminFabricIndex default = 1; + callback attribute adminVendorId default = 0; callback attribute generatedCommandList; callback attribute acceptedCommandList; callback attribute eventList; @@ -2336,8 +2336,8 @@ endpoint 0 { callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - callback attribute featureMap; - callback attribute clusterRevision; + callback attribute featureMap default = 0; + callback attribute clusterRevision default = 1; handle command KeySetWrite; handle command KeySetRead; @@ -2405,7 +2405,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster WindowCovering { @@ -2491,7 +2491,7 @@ endpoint 2 { callback attribute acceptedCommandList; callback attribute attributeList; ram attribute featureMap default = 0; - callback attribute clusterRevision; + callback attribute clusterRevision default = 1; } server cluster WindowCovering { From 2a2cd03a11af18b237f69663973237817b119b9e Mon Sep 17 00:00:00 2001 From: David Rempel Date: Tue, 28 Nov 2023 20:29:55 -0800 Subject: [PATCH 23/41] Lets see if this is good enough to get through the chip-repl tests --- .../thermostat-server/thermostat-server.cpp | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/src/app/clusters/thermostat-server/thermostat-server.cpp b/src/app/clusters/thermostat-server/thermostat-server.cpp index cf647ba4151a11..563a9acf34e67c 100644 --- a/src/app/clusters/thermostat-server/thermostat-server.cpp +++ b/src/app/clusters/thermostat-server/thermostat-server.cpp @@ -108,6 +108,34 @@ CHIP_ERROR ThermostatAttrAccess::Read(const ConcreteReadAttributePath & aPath, A return aEncoder.Encode(valueRemoteSensing); } break; + case PresetTypes::Id: + { + return aEncoder.EncodeList([](const auto & encoder) -> CHIP_ERROR { + return CHIP_NO_ERROR; + }); + } + break; + case Presets::Id: + { + return aEncoder.EncodeList([](const auto & encoder) -> CHIP_ERROR { + return CHIP_NO_ERROR; + }); + } + break; + case ScheduleTypes::Id: + { + return aEncoder.EncodeList([](const auto & encoder) -> CHIP_ERROR { + return CHIP_NO_ERROR; + }); + } + break; + case Schedules::Id: + { + return aEncoder.EncodeList([](const auto & encoder) -> CHIP_ERROR { + return CHIP_NO_ERROR; + }); + } + break; default: // return CHIP_NO_ERROR and just read from the attribute store in default break; } @@ -140,6 +168,15 @@ CHIP_ERROR ThermostatAttrAccess::Write(const ConcreteDataAttributePath & aPath, return statusIB.ToChipError(); } break; + case Presets::Id: { + return CHIP_ERROR_NOT_IMPLEMENTED; + } + break; + + case Schedules::Id: { + return CHIP_ERROR_NOT_IMPLEMENTED; + } + break; default: // return CHIP_NO_ERROR and just write to the attribute store in default break; } From 1252807b329bded20f860958db41143d72740b8d Mon Sep 17 00:00:00 2001 From: David Rempel Date: Tue, 28 Nov 2023 21:14:53 -0800 Subject: [PATCH 24/41] Added the queued preset encoding --- src/app/clusters/thermostat-server/thermostat-server.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/app/clusters/thermostat-server/thermostat-server.cpp b/src/app/clusters/thermostat-server/thermostat-server.cpp index 563a9acf34e67c..7d1f8cab5edaaa 100644 --- a/src/app/clusters/thermostat-server/thermostat-server.cpp +++ b/src/app/clusters/thermostat-server/thermostat-server.cpp @@ -136,6 +136,11 @@ CHIP_ERROR ThermostatAttrAccess::Read(const ConcreteReadAttributePath & aPath, A }); } break; + case QueuedPreset::Id: + { + chip::app::DataModel::Nullable value; + return aEncoder.Encode(value); + } default: // return CHIP_NO_ERROR and just read from the attribute store in default break; } @@ -177,6 +182,10 @@ CHIP_ERROR ThermostatAttrAccess::Write(const ConcreteDataAttributePath & aPath, return CHIP_ERROR_NOT_IMPLEMENTED; } break; + case QueuedPreset::Id: { + return CHIP_ERROR_NOT_IMPLEMENTED; + } + break; default: // return CHIP_NO_ERROR and just write to the attribute store in default break; } From f59c14005af241a4a7046d8ab366dbea09d5b41c Mon Sep 17 00:00:00 2001 From: David Rempel Date: Tue, 28 Nov 2023 22:17:09 -0800 Subject: [PATCH 25/41] Set a sane minimum value for LocalTemperatureCalibration --- .../zap-templates/zcl/data-model/chip/thermostat-cluster.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml index cffafc3e14c9dd..64befd33dfdd45 100644 --- a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml @@ -118,7 +118,7 @@ limitations under the License. AbsMaxCoolSetpointLimit PICoolingDemand PIHeatingDemand - + LocalTemperatureCalibration From 29f761e22ee5095ad5d7794b5ef47cd607f00099 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Wed, 29 Nov 2023 05:15:39 +0000 Subject: [PATCH 26/41] Restyled by clang-format --- .../esp32/main/DeviceWithDisplay.cpp | 3 +- .../thermostat-server/thermostat-server.cpp | 59 +++++++------------ 2 files changed, 23 insertions(+), 39 deletions(-) diff --git a/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp b/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp index 6942d81bf975e4..44521890c17a39 100644 --- a/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp +++ b/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp @@ -319,8 +319,7 @@ class EditAttributeListModel : public TouchesMatterStackModel else if (name == "RunningMode") { // Get the system mode - chip::app::Clusters::Thermostat::SystemModeEnum systemMode = - chip::app::Clusters::Thermostat::SystemModeEnum::kOff; + chip::app::Clusters::Thermostat::SystemModeEnum systemMode = chip::app::Clusters::Thermostat::SystemModeEnum::kOff; app::Clusters::Thermostat::Attributes::SystemMode::Get(1, &systemMode); if (systemMode != chip::app::Clusters::Thermostat::SystemModeEnum::kAuto) { diff --git a/src/app/clusters/thermostat-server/thermostat-server.cpp b/src/app/clusters/thermostat-server/thermostat-server.cpp index 7d1f8cab5edaaa..b3ad3b93eeaafd 100644 --- a/src/app/clusters/thermostat-server/thermostat-server.cpp +++ b/src/app/clusters/thermostat-server/thermostat-server.cpp @@ -108,39 +108,26 @@ CHIP_ERROR ThermostatAttrAccess::Read(const ConcreteReadAttributePath & aPath, A return aEncoder.Encode(valueRemoteSensing); } break; - case PresetTypes::Id: - { - return aEncoder.EncodeList([](const auto & encoder) -> CHIP_ERROR { - return CHIP_NO_ERROR; - }); - } - break; - case Presets::Id: - { - return aEncoder.EncodeList([](const auto & encoder) -> CHIP_ERROR { - return CHIP_NO_ERROR; - }); - } - break; - case ScheduleTypes::Id: - { - return aEncoder.EncodeList([](const auto & encoder) -> CHIP_ERROR { - return CHIP_NO_ERROR; - }); - } - break; - case Schedules::Id: - { - return aEncoder.EncodeList([](const auto & encoder) -> CHIP_ERROR { - return CHIP_NO_ERROR; - }); - } - break; - case QueuedPreset::Id: - { - chip::app::DataModel::Nullable value; - return aEncoder.Encode(value); - } + case PresetTypes::Id: { + return aEncoder.EncodeList([](const auto & encoder) -> CHIP_ERROR { return CHIP_NO_ERROR; }); + } + break; + case Presets::Id: { + return aEncoder.EncodeList([](const auto & encoder) -> CHIP_ERROR { return CHIP_NO_ERROR; }); + } + break; + case ScheduleTypes::Id: { + return aEncoder.EncodeList([](const auto & encoder) -> CHIP_ERROR { return CHIP_NO_ERROR; }); + } + break; + case Schedules::Id: { + return aEncoder.EncodeList([](const auto & encoder) -> CHIP_ERROR { return CHIP_NO_ERROR; }); + } + break; + case QueuedPreset::Id: { + chip::app::DataModel::Nullable value; + return aEncoder.Encode(value); + } default: // return CHIP_NO_ERROR and just read from the attribute store in default break; } @@ -464,16 +451,14 @@ MatterThermostatClusterServerPreAttributeChangedCallback(const app::ConcreteAttr { case ControlSequenceOfOperationEnum::kCoolingOnly: case ControlSequenceOfOperationEnum::kCoolingWithReheat: - if (RequestedSystemMode == SystemModeEnum::kHeat || - RequestedSystemMode == SystemModeEnum::kEmergencyHeat) + if (RequestedSystemMode == SystemModeEnum::kHeat || RequestedSystemMode == SystemModeEnum::kEmergencyHeat) return imcode::InvalidValue; else return imcode::Success; case ControlSequenceOfOperationEnum::kHeatingOnly: case ControlSequenceOfOperationEnum::kHeatingWithReheat: - if (RequestedSystemMode == SystemModeEnum::kCool || - RequestedSystemMode == SystemModeEnum::kPrecooling) + if (RequestedSystemMode == SystemModeEnum::kCool || RequestedSystemMode == SystemModeEnum::kPrecooling) return imcode::InvalidValue; else return imcode::Success; From 1c5bc94b0f2edde3ad399137e038c1d45ab20a2f Mon Sep 17 00:00:00 2001 From: David Rempel Date: Wed, 29 Nov 2023 11:18:43 -0800 Subject: [PATCH 27/41] turned off the new commands for now since the test suite can't handle them yet and is getting upset that there are commands it isn't expecting there (why that's a necessary check, I'm really not sure...) --- .../all-clusters-app.matter | 2 +- .../all-clusters-common/all-clusters-app.zap | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter index 09032d60b68114..4acc311d6d05b3 100644 --- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter +++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter @@ -7289,7 +7289,7 @@ endpoint 1 { callback attribute acceptedCommandList; callback attribute eventList; callback attribute attributeList; - ram attribute featureMap default = 0x03A3; + ram attribute featureMap default = 0x0023; ram attribute clusterRevision default = 6; handle command SetpointRaiseLower; diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap b/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap index 669140f4882949..7aba0b37ade83f 100644 --- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap +++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.zap @@ -12580,7 +12580,7 @@ "mfgCode": null, "source": "server", "isIncoming": 0, - "isEnabled": 1 + "isEnabled": 0 }, { "name": "GetRelayStatusLog", @@ -12588,7 +12588,7 @@ "mfgCode": null, "source": "client", "isIncoming": 1, - "isEnabled": 1 + "isEnabled": 0 }, { "name": "SetActiveScheduleRequest", @@ -12596,7 +12596,7 @@ "mfgCode": null, "source": "client", "isIncoming": 1, - "isEnabled": 1 + "isEnabled": 0 }, { "name": "SetActivePresetRequest", @@ -12604,7 +12604,7 @@ "mfgCode": null, "source": "client", "isIncoming": 1, - "isEnabled": 1 + "isEnabled": 0 }, { "name": "StartPresetsSchedulesEditRequest", @@ -12612,7 +12612,7 @@ "mfgCode": null, "source": "client", "isIncoming": 1, - "isEnabled": 1 + "isEnabled": 0 }, { "name": "CancelPresetsSchedulesEditRequest", @@ -12620,7 +12620,7 @@ "mfgCode": null, "source": "client", "isIncoming": 1, - "isEnabled": 1 + "isEnabled": 0 }, { "name": "CommitPresetsSchedulesRequest", @@ -12628,7 +12628,7 @@ "mfgCode": null, "source": "client", "isIncoming": 1, - "isEnabled": 1 + "isEnabled": 0 }, { "name": "CancelSetActivePresetRequest", @@ -12636,7 +12636,7 @@ "mfgCode": null, "source": "client", "isIncoming": 1, - "isEnabled": 1 + "isEnabled": 0 }, { "name": "SetTemperatureSetpointHoldPolicy", @@ -12644,7 +12644,7 @@ "mfgCode": null, "source": "client", "isIncoming": 1, - "isEnabled": 1 + "isEnabled": 0 } ], "attributes": [ @@ -13154,7 +13154,7 @@ "storageOption": "RAM", "singleton": 0, "bounded": 0, - "defaultValue": "0x03A3", + "defaultValue": "0x0023", "reportable": 1, "minInterval": 0, "maxInterval": 65344, From 8b93263d0ab179fbfd018478e8282cab2dbabb1b Mon Sep 17 00:00:00 2001 From: David Rempel Date: Wed, 29 Nov 2023 15:57:30 -0800 Subject: [PATCH 28/41] passing all the TSTAT unit tests now locally, lets see if the remote tests like it. --- .../all-clusters-app.matter | 16 +- .../all-clusters-minimal-app.matter | 16 +- ...umiditysensor_thermostat_56de3d5f45.matter | 16 +- ...tnode_heatingcoolingunit_ncdGai1E5a.matter | 16 +- ...tnode_roomairconditioner_9cf3607804.matter | 16 +- .../rootnode_thermostat_bm3fb8dhYi.matter | 16 +- .../placeholder/linux/apps/app1/config.matter | 32 ++-- .../placeholder/linux/apps/app2/config.matter | 32 ++-- .../nxp/zap/thermostat_matter_thread.matter | 16 +- .../nxp/zap/thermostat_matter_wifi.matter | 16 +- .../thermostat-common/thermostat.matter | 16 +- .../app-templates/endpoint_config.h | 92 +++++------ .../thermostat-server/thermostat-server.cpp | 6 +- .../certification/Test_TC_TSTAT_2_1.yaml | 12 +- .../data-model/chip/thermostat-cluster.xml | 156 +++++++++--------- .../data_model/controller-clusters.matter | 16 +- .../python/chip/clusters/Objects.py | 22 +-- .../CHIP/zap-generated/MTRBaseClusters.h | 14 +- .../zap-generated/cluster-enums-check.h | 20 +-- .../app-common/zap-generated/cluster-enums.h | 22 +-- .../zap-generated/cluster-objects.h | 8 +- 21 files changed, 298 insertions(+), 278 deletions(-) diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter index 4acc311d6d05b3..af8bc74fe84c5b 100644 --- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter +++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter @@ -4012,18 +4012,18 @@ cluster Thermostat = 513 { kUserDefined = 6; } - enum SetpointAdjustModeEnum : enum8 { - kHeat = 0; - kCool = 1; - kBoth = 2; - } - enum SetpointChangeSourceEnum : enum8 { kManual = 0; kSchedule = 1; kExternal = 2; } + enum SetpointRaiseLowerModeEnum : enum8 { + kHeat = 0; + kCool = 1; + kBoth = 2; + } + enum StartOfWeekEnum : enum8 { kSunday = 0; kMonday = 1; @@ -4086,6 +4086,8 @@ cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { + kCoolingStage = 0x3; + kHeatingStage = 0xC; kHeatingIsHeatPump = 0x10; kHeatingUsesFuel = 0x20; } @@ -4266,7 +4268,7 @@ cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustModeEnum mode = 0; + SetpointRaiseLowerModeEnum mode = 0; int8s amount = 1; } diff --git a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter index 48d7e9122eab32..9bdac360b639c3 100644 --- a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter +++ b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter @@ -3543,18 +3543,18 @@ cluster Thermostat = 513 { kUserDefined = 6; } - enum SetpointAdjustModeEnum : enum8 { - kHeat = 0; - kCool = 1; - kBoth = 2; - } - enum SetpointChangeSourceEnum : enum8 { kManual = 0; kSchedule = 1; kExternal = 2; } + enum SetpointRaiseLowerModeEnum : enum8 { + kHeat = 0; + kCool = 1; + kBoth = 2; + } + enum StartOfWeekEnum : enum8 { kSunday = 0; kMonday = 1; @@ -3617,6 +3617,8 @@ cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { + kCoolingStage = 0x3; + kHeatingStage = 0xC; kHeatingIsHeatPump = 0x10; kHeatingUsesFuel = 0x20; } @@ -3797,7 +3799,7 @@ cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustModeEnum mode = 0; + SetpointRaiseLowerModeEnum mode = 0; int8s amount = 1; } diff --git a/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter b/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter index c7d7b5872d2ff4..1d26b7b1014c5b 100644 --- a/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter +++ b/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter @@ -1187,18 +1187,18 @@ cluster Thermostat = 513 { kUserDefined = 6; } - enum SetpointAdjustModeEnum : enum8 { - kHeat = 0; - kCool = 1; - kBoth = 2; - } - enum SetpointChangeSourceEnum : enum8 { kManual = 0; kSchedule = 1; kExternal = 2; } + enum SetpointRaiseLowerModeEnum : enum8 { + kHeat = 0; + kCool = 1; + kBoth = 2; + } + enum StartOfWeekEnum : enum8 { kSunday = 0; kMonday = 1; @@ -1261,6 +1261,8 @@ cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { + kCoolingStage = 0x3; + kHeatingStage = 0xC; kHeatingIsHeatPump = 0x10; kHeatingUsesFuel = 0x20; } @@ -1441,7 +1443,7 @@ cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustModeEnum mode = 0; + SetpointRaiseLowerModeEnum mode = 0; int8s amount = 1; } diff --git a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter index f5eda17ac719f0..c3364843e25176 100644 --- a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter +++ b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter @@ -1542,18 +1542,18 @@ cluster Thermostat = 513 { kUserDefined = 6; } - enum SetpointAdjustModeEnum : enum8 { - kHeat = 0; - kCool = 1; - kBoth = 2; - } - enum SetpointChangeSourceEnum : enum8 { kManual = 0; kSchedule = 1; kExternal = 2; } + enum SetpointRaiseLowerModeEnum : enum8 { + kHeat = 0; + kCool = 1; + kBoth = 2; + } + enum StartOfWeekEnum : enum8 { kSunday = 0; kMonday = 1; @@ -1616,6 +1616,8 @@ cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { + kCoolingStage = 0x3; + kHeatingStage = 0xC; kHeatingIsHeatPump = 0x10; kHeatingUsesFuel = 0x20; } @@ -1796,7 +1798,7 @@ cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustModeEnum mode = 0; + SetpointRaiseLowerModeEnum mode = 0; int8s amount = 1; } diff --git a/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter b/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter index 156ed64d724dd9..2f9b5c26b7dc64 100644 --- a/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter +++ b/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter @@ -1127,18 +1127,18 @@ cluster Thermostat = 513 { kUserDefined = 6; } - enum SetpointAdjustModeEnum : enum8 { - kHeat = 0; - kCool = 1; - kBoth = 2; - } - enum SetpointChangeSourceEnum : enum8 { kManual = 0; kSchedule = 1; kExternal = 2; } + enum SetpointRaiseLowerModeEnum : enum8 { + kHeat = 0; + kCool = 1; + kBoth = 2; + } + enum StartOfWeekEnum : enum8 { kSunday = 0; kMonday = 1; @@ -1201,6 +1201,8 @@ cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { + kCoolingStage = 0x3; + kHeatingStage = 0xC; kHeatingIsHeatPump = 0x10; kHeatingUsesFuel = 0x20; } @@ -1381,7 +1383,7 @@ cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustModeEnum mode = 0; + SetpointRaiseLowerModeEnum mode = 0; int8s amount = 1; } diff --git a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter index 7ab073cbbb82af..7f8a6def91067b 100644 --- a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter +++ b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter @@ -1345,18 +1345,18 @@ cluster Thermostat = 513 { kUserDefined = 6; } - enum SetpointAdjustModeEnum : enum8 { - kHeat = 0; - kCool = 1; - kBoth = 2; - } - enum SetpointChangeSourceEnum : enum8 { kManual = 0; kSchedule = 1; kExternal = 2; } + enum SetpointRaiseLowerModeEnum : enum8 { + kHeat = 0; + kCool = 1; + kBoth = 2; + } + enum StartOfWeekEnum : enum8 { kSunday = 0; kMonday = 1; @@ -1419,6 +1419,8 @@ cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { + kCoolingStage = 0x3; + kHeatingStage = 0xC; kHeatingIsHeatPump = 0x10; kHeatingUsesFuel = 0x20; } @@ -1599,7 +1601,7 @@ cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustModeEnum mode = 0; + SetpointRaiseLowerModeEnum mode = 0; int8s amount = 1; } diff --git a/examples/placeholder/linux/apps/app1/config.matter b/examples/placeholder/linux/apps/app1/config.matter index b98bf1d295ecd8..18c06291105a38 100644 --- a/examples/placeholder/linux/apps/app1/config.matter +++ b/examples/placeholder/linux/apps/app1/config.matter @@ -4759,18 +4759,18 @@ cluster Thermostat = 513 { kUserDefined = 6; } - enum SetpointAdjustModeEnum : enum8 { - kHeat = 0; - kCool = 1; - kBoth = 2; - } - enum SetpointChangeSourceEnum : enum8 { kManual = 0; kSchedule = 1; kExternal = 2; } + enum SetpointRaiseLowerModeEnum : enum8 { + kHeat = 0; + kCool = 1; + kBoth = 2; + } + enum StartOfWeekEnum : enum8 { kSunday = 0; kMonday = 1; @@ -4833,6 +4833,8 @@ cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { + kCoolingStage = 0x3; + kHeatingStage = 0xC; kHeatingIsHeatPump = 0x10; kHeatingUsesFuel = 0x20; } @@ -5013,7 +5015,7 @@ cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustModeEnum mode = 0; + SetpointRaiseLowerModeEnum mode = 0; int8s amount = 1; } @@ -5145,18 +5147,18 @@ cluster Thermostat = 513 { kUserDefined = 6; } - enum SetpointAdjustModeEnum : enum8 { - kHeat = 0; - kCool = 1; - kBoth = 2; - } - enum SetpointChangeSourceEnum : enum8 { kManual = 0; kSchedule = 1; kExternal = 2; } + enum SetpointRaiseLowerModeEnum : enum8 { + kHeat = 0; + kCool = 1; + kBoth = 2; + } + enum StartOfWeekEnum : enum8 { kSunday = 0; kMonday = 1; @@ -5219,6 +5221,8 @@ cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { + kCoolingStage = 0x3; + kHeatingStage = 0xC; kHeatingIsHeatPump = 0x10; kHeatingUsesFuel = 0x20; } @@ -5399,7 +5403,7 @@ cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustModeEnum mode = 0; + SetpointRaiseLowerModeEnum mode = 0; int8s amount = 1; } diff --git a/examples/placeholder/linux/apps/app2/config.matter b/examples/placeholder/linux/apps/app2/config.matter index 20334ea11b1d01..9a1675e5c82d8d 100644 --- a/examples/placeholder/linux/apps/app2/config.matter +++ b/examples/placeholder/linux/apps/app2/config.matter @@ -4716,18 +4716,18 @@ cluster Thermostat = 513 { kUserDefined = 6; } - enum SetpointAdjustModeEnum : enum8 { - kHeat = 0; - kCool = 1; - kBoth = 2; - } - enum SetpointChangeSourceEnum : enum8 { kManual = 0; kSchedule = 1; kExternal = 2; } + enum SetpointRaiseLowerModeEnum : enum8 { + kHeat = 0; + kCool = 1; + kBoth = 2; + } + enum StartOfWeekEnum : enum8 { kSunday = 0; kMonday = 1; @@ -4790,6 +4790,8 @@ cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { + kCoolingStage = 0x3; + kHeatingStage = 0xC; kHeatingIsHeatPump = 0x10; kHeatingUsesFuel = 0x20; } @@ -4970,7 +4972,7 @@ cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustModeEnum mode = 0; + SetpointRaiseLowerModeEnum mode = 0; int8s amount = 1; } @@ -5102,18 +5104,18 @@ cluster Thermostat = 513 { kUserDefined = 6; } - enum SetpointAdjustModeEnum : enum8 { - kHeat = 0; - kCool = 1; - kBoth = 2; - } - enum SetpointChangeSourceEnum : enum8 { kManual = 0; kSchedule = 1; kExternal = 2; } + enum SetpointRaiseLowerModeEnum : enum8 { + kHeat = 0; + kCool = 1; + kBoth = 2; + } + enum StartOfWeekEnum : enum8 { kSunday = 0; kMonday = 1; @@ -5176,6 +5178,8 @@ cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { + kCoolingStage = 0x3; + kHeatingStage = 0xC; kHeatingIsHeatPump = 0x10; kHeatingUsesFuel = 0x20; } @@ -5356,7 +5360,7 @@ cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustModeEnum mode = 0; + SetpointRaiseLowerModeEnum mode = 0; int8s amount = 1; } diff --git a/examples/thermostat/nxp/zap/thermostat_matter_thread.matter b/examples/thermostat/nxp/zap/thermostat_matter_thread.matter index 1d8979dad25e72..0b16badea71791 100644 --- a/examples/thermostat/nxp/zap/thermostat_matter_thread.matter +++ b/examples/thermostat/nxp/zap/thermostat_matter_thread.matter @@ -1973,18 +1973,18 @@ cluster Thermostat = 513 { kUserDefined = 6; } - enum SetpointAdjustModeEnum : enum8 { - kHeat = 0; - kCool = 1; - kBoth = 2; - } - enum SetpointChangeSourceEnum : enum8 { kManual = 0; kSchedule = 1; kExternal = 2; } + enum SetpointRaiseLowerModeEnum : enum8 { + kHeat = 0; + kCool = 1; + kBoth = 2; + } + enum StartOfWeekEnum : enum8 { kSunday = 0; kMonday = 1; @@ -2047,6 +2047,8 @@ cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { + kCoolingStage = 0x3; + kHeatingStage = 0xC; kHeatingIsHeatPump = 0x10; kHeatingUsesFuel = 0x20; } @@ -2227,7 +2229,7 @@ cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustModeEnum mode = 0; + SetpointRaiseLowerModeEnum mode = 0; int8s amount = 1; } diff --git a/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter b/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter index ce5294936929d4..8d889d0f07a5f2 100644 --- a/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter +++ b/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter @@ -1884,18 +1884,18 @@ cluster Thermostat = 513 { kUserDefined = 6; } - enum SetpointAdjustModeEnum : enum8 { - kHeat = 0; - kCool = 1; - kBoth = 2; - } - enum SetpointChangeSourceEnum : enum8 { kManual = 0; kSchedule = 1; kExternal = 2; } + enum SetpointRaiseLowerModeEnum : enum8 { + kHeat = 0; + kCool = 1; + kBoth = 2; + } + enum StartOfWeekEnum : enum8 { kSunday = 0; kMonday = 1; @@ -1958,6 +1958,8 @@ cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { + kCoolingStage = 0x3; + kHeatingStage = 0xC; kHeatingIsHeatPump = 0x10; kHeatingUsesFuel = 0x20; } @@ -2138,7 +2140,7 @@ cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustModeEnum mode = 0; + SetpointRaiseLowerModeEnum mode = 0; int8s amount = 1; } diff --git a/examples/thermostat/thermostat-common/thermostat.matter b/examples/thermostat/thermostat-common/thermostat.matter index 1ad0ebf4ff9944..fa89993459a607 100644 --- a/examples/thermostat/thermostat-common/thermostat.matter +++ b/examples/thermostat/thermostat-common/thermostat.matter @@ -1724,18 +1724,18 @@ cluster Thermostat = 513 { kUserDefined = 6; } - enum SetpointAdjustModeEnum : enum8 { - kHeat = 0; - kCool = 1; - kBoth = 2; - } - enum SetpointChangeSourceEnum : enum8 { kManual = 0; kSchedule = 1; kExternal = 2; } + enum SetpointRaiseLowerModeEnum : enum8 { + kHeat = 0; + kCool = 1; + kBoth = 2; + } + enum StartOfWeekEnum : enum8 { kSunday = 0; kMonday = 1; @@ -1798,6 +1798,8 @@ cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { + kCoolingStage = 0x3; + kHeatingStage = 0xC; kHeatingIsHeatPump = 0x10; kHeatingUsesFuel = 0x20; } @@ -1978,7 +1980,7 @@ cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustModeEnum mode = 0; + SetpointRaiseLowerModeEnum mode = 0; int8s amount = 1; } diff --git a/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h b/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h index 0d23d277bcad97..1a0eb436e726ac 100644 --- a/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h +++ b/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h @@ -269,7 +269,7 @@ #define GENERATED_DEFAULTS_COUNT (32) // This is an array of EmberAfAttributeMinMaxValue structures. -#define GENERATED_MIN_MAX_DEFAULT_COUNT 46 +#define GENERATED_MIN_MAX_DEFAULT_COUNT 40 #define GENERATED_MIN_MAX_DEFAULTS \ { \ \ @@ -305,15 +305,9 @@ { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x7 }, /* ControlMode */ \ \ /* Endpoint: 1, Cluster: Thermostat (server) */ \ - { (uint16_t) 0xA28, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* OccupiedCoolingSetpoint */ \ - { (uint16_t) 0x7D0, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* OccupiedHeatingSetpoint */ \ - { (uint16_t) 0x2BC, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* MinHeatSetpointLimit */ \ - { (uint16_t) 0xBB8, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* MaxHeatSetpointLimit */ \ - { (uint16_t) 0x640, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* MinCoolSetpointLimit */ \ - { (uint16_t) 0xC80, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* MaxCoolSetpointLimit */ \ - { (uint16_t) 0x19, (uint16_t) 0x0, (uint16_t) 0xFA }, /* MinSetpointDeadBand */ \ - { (uint16_t) 0x4, (uint16_t) 0x0, (uint16_t) 0x5 }, /* ControlSequenceOfOperation */ \ - { (uint16_t) 0x1, (uint16_t) 0x0, (uint16_t) 0x7 }, /* SystemMode */ \ + { (uint16_t) 0x19, (uint16_t) 0x0, (uint16_t) 0x19 }, /* MinSetpointDeadBand */ \ + { (uint16_t) 0x4, (uint16_t) 0x0, (uint16_t) 0x5 }, /* ControlSequenceOfOperation */ \ + { (uint16_t) 0x1, (uint16_t) 0x0, (uint16_t) 0x9 }, /* SystemMode */ \ \ /* Endpoint: 1, Cluster: Fan Control (server) */ \ { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x6 }, /* FanMode */ \ @@ -1013,36 +1007,36 @@ { ZAP_SIMPLE_DEFAULT(0x0BB8), 0x00000004, 2, ZAP_TYPE(TEMPERATURE), 0 }, /* AbsMaxHeatSetpointLimit */ \ { ZAP_SIMPLE_DEFAULT(0x0640), 0x00000005, 2, ZAP_TYPE(TEMPERATURE), 0 }, /* AbsMinCoolSetpointLimit */ \ { ZAP_SIMPLE_DEFAULT(0x0C80), 0x00000006, 2, ZAP_TYPE(TEMPERATURE), 0 }, /* AbsMaxCoolSetpointLimit */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(13), 0x00000011, 2, ZAP_TYPE(TEMPERATURE), \ - ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* OccupiedCoolingSetpoint */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(14), 0x00000012, 2, ZAP_TYPE(TEMPERATURE), \ - ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* OccupiedHeatingSetpoint */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(15), 0x00000015, 2, ZAP_TYPE(TEMPERATURE), \ - ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* MinHeatSetpointLimit */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(16), 0x00000016, 2, ZAP_TYPE(TEMPERATURE), \ - ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* MaxHeatSetpointLimit */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(17), 0x00000017, 2, ZAP_TYPE(TEMPERATURE), \ - ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* MinCoolSetpointLimit */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(18), 0x00000018, 2, ZAP_TYPE(TEMPERATURE), \ - ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* MaxCoolSetpointLimit */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(19), 0x00000019, 1, ZAP_TYPE(INT8S), \ + { ZAP_SIMPLE_DEFAULT(0x0A28), 0x00000011, 2, ZAP_TYPE(TEMPERATURE), \ + ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* OccupiedCoolingSetpoint */ \ + { ZAP_SIMPLE_DEFAULT(0x07D0), 0x00000012, 2, ZAP_TYPE(TEMPERATURE), \ + ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* OccupiedHeatingSetpoint */ \ + { ZAP_SIMPLE_DEFAULT(0x02BC), 0x00000015, 2, ZAP_TYPE(TEMPERATURE), \ + ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* MinHeatSetpointLimit */ \ + { ZAP_SIMPLE_DEFAULT(0x0BB8), 0x00000016, 2, ZAP_TYPE(TEMPERATURE), \ + ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* MaxHeatSetpointLimit */ \ + { ZAP_SIMPLE_DEFAULT(0x0640), 0x00000017, 2, ZAP_TYPE(TEMPERATURE), \ + ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* MinCoolSetpointLimit */ \ + { ZAP_SIMPLE_DEFAULT(0x0C80), 0x00000018, 2, ZAP_TYPE(TEMPERATURE), \ + ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* MaxCoolSetpointLimit */ \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(13), 0x00000019, 1, ZAP_TYPE(INT8S), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* MinSetpointDeadBand */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(20), 0x0000001B, 1, ZAP_TYPE(ENUM8), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(14), 0x0000001B, 1, ZAP_TYPE(ENUM8), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* ControlSequenceOfOperation */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(21), 0x0000001C, 1, ZAP_TYPE(ENUM8), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(15), 0x0000001C, 1, ZAP_TYPE(ENUM8), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* SystemMode */ \ { ZAP_SIMPLE_DEFAULT(0x0023), 0x0000FFFC, 4, ZAP_TYPE(BITMAP32), 0 }, /* FeatureMap */ \ { ZAP_SIMPLE_DEFAULT(6), 0x0000FFFD, 2, ZAP_TYPE(INT16U), 0 }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Fan Control (server) */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(22), 0x00000000, 1, ZAP_TYPE(ENUM8), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(16), 0x00000000, 1, ZAP_TYPE(ENUM8), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* FanMode */ \ { ZAP_SIMPLE_DEFAULT(0x02), 0x00000001, 1, ZAP_TYPE(ENUM8), 0 }, /* FanModeSequence */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(23), 0x00000002, 1, ZAP_TYPE(PERCENT), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(17), 0x00000002, 1, ZAP_TYPE(PERCENT), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* PercentSetting */ \ { ZAP_SIMPLE_DEFAULT(0x00), 0x00000003, 1, ZAP_TYPE(PERCENT), 0 }, /* PercentCurrent */ \ { ZAP_SIMPLE_DEFAULT(100), 0x00000004, 1, ZAP_TYPE(INT8U), 0 }, /* SpeedMax */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(24), 0x00000005, 1, ZAP_TYPE(INT8U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(18), 0x00000005, 1, ZAP_TYPE(INT8U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* SpeedSetting */ \ { ZAP_SIMPLE_DEFAULT(0x00), 0x00000006, 1, ZAP_TYPE(INT8U), 0 }, /* SpeedCurrent */ \ { ZAP_SIMPLE_DEFAULT(0x00), 0x00000007, 1, ZAP_TYPE(BITMAP8), 0 }, /* RockSupport */ \ @@ -1053,11 +1047,11 @@ { ZAP_SIMPLE_DEFAULT(2), 0x0000FFFD, 2, ZAP_TYPE(INT16U), 0 }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Thermostat User Interface Configuration (server) */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(25), 0x00000000, 1, ZAP_TYPE(ENUM8), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(19), 0x00000000, 1, ZAP_TYPE(ENUM8), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* TemperatureDisplayMode */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(26), 0x00000001, 1, ZAP_TYPE(ENUM8), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(20), 0x00000001, 1, ZAP_TYPE(ENUM8), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* KeypadLockout */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(27), 0x00000002, 1, ZAP_TYPE(ENUM8), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(21), 0x00000002, 1, ZAP_TYPE(ENUM8), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* ScheduleProgrammingVisibility */ \ { ZAP_SIMPLE_DEFAULT(0), 0x0000FFFC, 4, ZAP_TYPE(BITMAP32), 0 }, /* FeatureMap */ \ { ZAP_SIMPLE_DEFAULT(2), 0x0000FFFD, 2, ZAP_TYPE(INT16U), 0 }, /* ClusterRevision */ \ @@ -1092,25 +1086,25 @@ { ZAP_EMPTY_DEFAULT(), 0x00000028, 2, ZAP_TYPE(INT16U), 0 }, /* Primary6X */ \ { ZAP_EMPTY_DEFAULT(), 0x00000029, 2, ZAP_TYPE(INT16U), 0 }, /* Primary6Y */ \ { ZAP_EMPTY_DEFAULT(), 0x0000002A, 1, ZAP_TYPE(INT8U), ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* Primary6Intensity */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(28), 0x00000030, 2, ZAP_TYPE(INT16U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(22), 0x00000030, 2, ZAP_TYPE(INT16U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* WhitePointX */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(29), 0x00000031, 2, ZAP_TYPE(INT16U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(23), 0x00000031, 2, ZAP_TYPE(INT16U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* WhitePointY */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(30), 0x00000032, 2, ZAP_TYPE(INT16U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(24), 0x00000032, 2, ZAP_TYPE(INT16U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* ColorPointRX */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(31), 0x00000033, 2, ZAP_TYPE(INT16U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(25), 0x00000033, 2, ZAP_TYPE(INT16U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* ColorPointRY */ \ { ZAP_EMPTY_DEFAULT(), 0x00000034, 1, ZAP_TYPE(INT8U), \ ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* ColorPointRIntensity */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(32), 0x00000036, 2, ZAP_TYPE(INT16U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(26), 0x00000036, 2, ZAP_TYPE(INT16U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* ColorPointGX */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(33), 0x00000037, 2, ZAP_TYPE(INT16U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(27), 0x00000037, 2, ZAP_TYPE(INT16U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* ColorPointGY */ \ { ZAP_EMPTY_DEFAULT(), 0x00000038, 1, ZAP_TYPE(INT8U), \ ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* ColorPointGIntensity */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(34), 0x0000003A, 2, ZAP_TYPE(INT16U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(28), 0x0000003A, 2, ZAP_TYPE(INT16U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* ColorPointBX */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(35), 0x0000003B, 2, ZAP_TYPE(INT16U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(29), 0x0000003B, 2, ZAP_TYPE(INT16U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* ColorPointBY */ \ { ZAP_EMPTY_DEFAULT(), 0x0000003C, 1, ZAP_TYPE(INT8U), \ ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* ColorPointBIntensity */ \ @@ -1125,7 +1119,7 @@ { ZAP_SIMPLE_DEFAULT(0x0000), 0x0000400B, 2, ZAP_TYPE(INT16U), 0 }, /* ColorTempPhysicalMinMireds */ \ { ZAP_SIMPLE_DEFAULT(0xFEFF), 0x0000400C, 2, ZAP_TYPE(INT16U), 0 }, /* ColorTempPhysicalMaxMireds */ \ { ZAP_EMPTY_DEFAULT(), 0x0000400D, 2, ZAP_TYPE(INT16U), 0 }, /* CoupleColorTempToLevelMinMireds */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(36), 0x00004010, 2, ZAP_TYPE(INT16U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(30), 0x00004010, 2, ZAP_TYPE(INT16U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) | \ ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* StartUpColorTemperatureMireds */ \ { ZAP_SIMPLE_DEFAULT(0x1F), 0x0000FFFC, 4, ZAP_TYPE(BITMAP32), 0 }, /* FeatureMap */ \ @@ -1314,13 +1308,13 @@ { ZAP_EMPTY_DEFAULT(), 0x00000024, 1, ZAP_TYPE(ENUM8), ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* enum_attr */ \ { ZAP_EMPTY_DEFAULT(), 0x00000025, 0, ZAP_TYPE(STRUCT), \ ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* struct_attr */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(37), 0x00000026, 1, ZAP_TYPE(INT8U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(31), 0x00000026, 1, ZAP_TYPE(INT8U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* range_restricted_int8u */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(38), 0x00000027, 1, ZAP_TYPE(INT8S), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(32), 0x00000027, 1, ZAP_TYPE(INT8S), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* range_restricted_int8s */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(39), 0x00000028, 2, ZAP_TYPE(INT16U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(33), 0x00000028, 2, ZAP_TYPE(INT16U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* range_restricted_int16u */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(40), 0x00000029, 2, ZAP_TYPE(INT16S), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(34), 0x00000029, 2, ZAP_TYPE(INT16S), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* range_restricted_int16s */ \ { ZAP_EMPTY_DEFAULT(), 0x0000002A, 0, ZAP_TYPE(ARRAY), \ ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* list_long_octet_string */ \ @@ -1391,16 +1385,16 @@ { ZAP_EMPTY_DEFAULT(), 0x00004025, 0, ZAP_TYPE(STRUCT), \ ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(WRITABLE) | \ ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* nullable_struct */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(41), 0x00004026, 1, ZAP_TYPE(INT8U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(35), 0x00004026, 1, ZAP_TYPE(INT8U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) | \ ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* nullable_range_restricted_int8u */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(42), 0x00004027, 1, ZAP_TYPE(INT8S), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(36), 0x00004027, 1, ZAP_TYPE(INT8S), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) | \ ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* nullable_range_restricted_int8s */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(43), 0x00004028, 2, ZAP_TYPE(INT16U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(37), 0x00004028, 2, ZAP_TYPE(INT16U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) | \ ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* nullable_range_restricted_int16u */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(44), 0x00004029, 2, ZAP_TYPE(INT16S), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(38), 0x00004029, 2, ZAP_TYPE(INT16S), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) | \ ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* nullable_range_restricted_int16s */ \ { ZAP_EMPTY_DEFAULT(), 0x0000402A, 1, ZAP_TYPE(INT8U), \ @@ -1435,7 +1429,7 @@ { ZAP_SIMPLE_DEFAULT(1), 0x00004000, 1, ZAP_TYPE(BOOLEAN), 0 }, /* GlobalSceneControl */ \ { ZAP_SIMPLE_DEFAULT(0), 0x00004001, 2, ZAP_TYPE(INT16U), ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* OnTime */ \ { ZAP_SIMPLE_DEFAULT(0), 0x00004002, 2, ZAP_TYPE(INT16U), ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* OffWaitTime */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(45), 0x00004003, 1, ZAP_TYPE(ENUM8), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(39), 0x00004003, 1, ZAP_TYPE(ENUM8), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* StartUpOnOff */ \ { ZAP_SIMPLE_DEFAULT(0x0000), 0x0000FFFC, 4, ZAP_TYPE(BITMAP32), 0 }, /* FeatureMap */ \ { ZAP_SIMPLE_DEFAULT(5), 0x0000FFFD, 2, ZAP_TYPE(INT16U), 0 }, /* ClusterRevision */ \ diff --git a/src/app/clusters/thermostat-server/thermostat-server.cpp b/src/app/clusters/thermostat-server/thermostat-server.cpp index b3ad3b93eeaafd..5824d98b29317d 100644 --- a/src/app/clusters/thermostat-server/thermostat-server.cpp +++ b/src/app/clusters/thermostat-server/thermostat-server.cpp @@ -742,7 +742,7 @@ bool emberAfThermostatClusterSetpointRaiseLowerCallback(app::CommandHandler * co switch (mode) { - case SetpointAdjustModeEnum::kBoth: + case SetpointRaiseLowerModeEnum::kBoth: if (HeatSupported && CoolSupported) { int16_t DesiredCoolingSetpoint, CoolLimit, DesiredHeatingSetpoint, HeatLimit; @@ -822,7 +822,7 @@ bool emberAfThermostatClusterSetpointRaiseLowerCallback(app::CommandHandler * co status = EMBER_ZCL_STATUS_SUCCESS; break; - case SetpointAdjustModeEnum::kCool: + case SetpointRaiseLowerModeEnum::kCool: if (CoolSupported) { if (OccupiedCoolingSetpoint::Get(aEndpointId, &CoolingSetpoint) == EMBER_ZCL_STATUS_SUCCESS) @@ -875,7 +875,7 @@ bool emberAfThermostatClusterSetpointRaiseLowerCallback(app::CommandHandler * co status = EMBER_ZCL_STATUS_INVALID_COMMAND; break; - case SetpointAdjustModeEnum::kHeat: + case SetpointRaiseLowerModeEnum::kHeat: if (HeatSupported) { if (OccupiedHeatingSetpoint::Get(aEndpointId, &HeatingSetpoint) == EMBER_ZCL_STATUS_SUCCESS) diff --git a/src/app/tests/suites/certification/Test_TC_TSTAT_2_1.yaml b/src/app/tests/suites/certification/Test_TC_TSTAT_2_1.yaml index 36b535a024f6c0..f7c249970505a6 100644 --- a/src/app/tests/suites/certification/Test_TC_TSTAT_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_TSTAT_2_1.yaml @@ -231,16 +231,6 @@ tests: minValue: 0 maxValue: 100 - - label: "Step 11: Read HVACSystemTypeConfiguration attribute from the DUT" - PICS: TSTAT.S.A0009 - command: "readAttribute" - attribute: "HVACSystemTypeConfiguration" - response: - constraints: - type: bitmap8 - minValue: 0 - maxValue: 63 - - label: "Step 12: Read LocalTemperatureCalibration attribute from the DUT" PICS: TSTAT.S.A0010 command: "readAttribute" @@ -717,7 +707,7 @@ tests: - label: "Step 51: Read ACCapacityFormat attribute from the DUT" PICS: TSTAT.S.A0047 command: "readAttribute" - attribute: "ACCapacityformat" + attribute: "ACCapacityFormat" response: value: 0 constraints: diff --git a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml index 64befd33dfdd45..5808f95fb1d4dd 100644 --- a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml @@ -54,7 +54,7 @@ limitations under the License. - + @@ -88,7 +88,7 @@ limitations under the License. - + @@ -109,117 +109,117 @@ limitations under the License. true true - LocalTemperature - OutdoorTemperature - Occupancy - AbsMinHeatSetpointLimit - AbsMaxHeatSetpointLimit - AbsMinCoolSetpointLimit - AbsMaxCoolSetpointLimit + LocalTemperature + OutdoorTemperature + Occupancy + AbsMinHeatSetpointLimit + AbsMaxHeatSetpointLimit + AbsMinCoolSetpointLimit + AbsMaxCoolSetpointLimit PICoolingDemand PIHeatingDemand - + LocalTemperatureCalibration - OccupiedCoolingSetpoint - OccupiedHeatingSetpoint - UnoccupiedCoolingSetpoint - UnoccupiedHeatingSetpoint - + OccupiedCoolingSetpoint + OccupiedHeatingSetpoint + UnoccupiedCoolingSetpoint + UnoccupiedHeatingSetpoint + MinHeatSetpointLimit - + MaxHeatSetpointLimit - + MinCoolSetpointLimit - + MaxCoolSetpointLimit - + MinSetpointDeadBand - + RemoteSensing - + ControlSequenceOfOperation - + SystemMode - ThermostatRunningMode - StartOfWeek - NumberOfWeeklyTransitions - NumberOfDailyTransitions - + ThermostatRunningMode + StartOfWeek + NumberOfWeeklyTransitions + NumberOfDailyTransitions + TemperatureSetpointHold - + TemperatureSetpointHoldDuration - + ThermostatProgrammingOperationMode - ThermostatRunningState - SetpointChangeSource + ThermostatRunningState + SetpointChangeSource SetpointChangeAmount SetpointChangeSourceTimestamp - + OccupiedSetback - OccupiedSetbackMin - OccupiedSetbackMax - + OccupiedSetbackMin + OccupiedSetbackMax + UnoccupiedSetback - UnoccupiedSetbackMin - UnoccupiedSetbackMax - + UnoccupiedSetbackMin + UnoccupiedSetbackMax + EmergencyHeatDelta - + ACType - + ACCapacity - + ACRefrigerantType - + ACCompressorType - + ACErrorCode - + ACLouverPosition - ACCoilTemperature - + ACCoilTemperature + ACCapacityFormat @@ -227,12 +227,12 @@ limitations under the License. Presets - TemperatureSetpointHoldPolicy - SetpointHoldExpiryTimestamp - NumberOfScheduleTransitionPerDay + TemperatureSetpointHoldPolicy + SetpointHoldExpiryTimestamp + NumberOfScheduleTransitionPerDay ActiveScheduleHandle NumberOfSchedules - AlarmMask + AlarmMask ScheduleTypes PresetsSchedulesEditable NumberOfPresets @@ -246,21 +246,21 @@ limitations under the License. ActivePresetHandle Upon receipt, the attributes for the indicated setpoint(s) SHALL have the amount specified in the Amount field added to them. If the resulting value is outside the limits imposed by - + Upon receipt, the weekly schedule for updating setpoints SHALL be stored in the thermostat and SHOULD begin at the time of receipt. A status code SHALL be sent in response. - - - + + + Upon receipt, the unit SHOULD send in return the Get Weekly Schedule Response command. The Days to Return and Mode to Return fields are defined as bitmask for the flexibility to support multiple days and multiple modes within one command. If thermostat cannot handle incoming command with multiple days and/or multiple modes within one command, it SHALL send default response of INVALID_COMMAND in return. - - + + This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. @@ -269,14 +269,14 @@ limitations under the License. This command has the same payload format as the Set Weekly Schedule. Please refer to the payload detail in - - - + + + Upon receipt, this SHALL set the thermostat - + Upon receipt, this SHALL attempt to commit any pending changes to the @@ -285,8 +285,8 @@ limitations under the License. This command is sent from the thermostat cluster server in response to the Get Relay Status Log. After the Relay Status Entry is sent over the air to the requesting client, the specific entry will be cleared from the thermostat internal log. - - + + @@ -304,7 +304,7 @@ limitations under the License. This command is sent to set the - + Upon receipt, this SHALL attempt to enable editing of the @@ -318,6 +318,8 @@ limitations under the License. + + @@ -426,45 +428,45 @@ limitations under the License. - - - + + + - + - + - - + + - - - + + + - + - + - + - + diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter index 01eea56a4bb700..ec5810fb8c764e 100644 --- a/src/controller/data_model/controller-clusters.matter +++ b/src/controller/data_model/controller-clusters.matter @@ -5480,18 +5480,18 @@ cluster Thermostat = 513 { kUserDefined = 6; } - enum SetpointAdjustModeEnum : enum8 { - kHeat = 0; - kCool = 1; - kBoth = 2; - } - enum SetpointChangeSourceEnum : enum8 { kManual = 0; kSchedule = 1; kExternal = 2; } + enum SetpointRaiseLowerModeEnum : enum8 { + kHeat = 0; + kCool = 1; + kBoth = 2; + } + enum StartOfWeekEnum : enum8 { kSunday = 0; kMonday = 1; @@ -5554,6 +5554,8 @@ cluster Thermostat = 513 { } bitmap HVACSystemTypeBitmap : bitmap8 { + kCoolingStage = 0x3; + kHeatingStage = 0xC; kHeatingIsHeatPump = 0x10; kHeatingUsesFuel = 0x20; } @@ -5734,7 +5736,7 @@ cluster Thermostat = 513 { readonly attribute int16u clusterRevision = 65533; request struct SetpointRaiseLowerRequest { - SetpointAdjustModeEnum mode = 0; + SetpointRaiseLowerModeEnum mode = 0; int8s amount = 1; } diff --git a/src/controller/python/chip/clusters/Objects.py b/src/controller/python/chip/clusters/Objects.py index 570004b3f6a9f2..e25bbb3ad99dad 100644 --- a/src/controller/python/chip/clusters/Objects.py +++ b/src/controller/python/chip/clusters/Objects.py @@ -27732,20 +27732,20 @@ class PresetScenarioEnum(MatterIntEnum): # enum value. This specific should never be transmitted. kUnknownEnumValue = 7, - class SetpointAdjustModeEnum(MatterIntEnum): - kHeat = 0x00 - kCool = 0x01 - kBoth = 0x02 + class SetpointChangeSourceEnum(MatterIntEnum): + kManual = 0x00 + kSchedule = 0x01 + kExternal = 0x02 # All received enum values that are not listed above will be mapped # to kUnknownEnumValue. This is a helper enum value that should only # be used by code to process how it handles receiving and unknown # enum value. This specific should never be transmitted. kUnknownEnumValue = 3, - class SetpointChangeSourceEnum(MatterIntEnum): - kManual = 0x00 - kSchedule = 0x01 - kExternal = 0x02 + class SetpointRaiseLowerModeEnum(MatterIntEnum): + kHeat = 0x00 + kCool = 0x01 + kBoth = 0x02 # All received enum values that are not listed above will be mapped # to kUnknownEnumValue. This is a helper enum value that should only # be used by code to process how it handles receiving and unknown @@ -27828,6 +27828,8 @@ class Feature(IntFlag): kQueuedPresetsSupported = 0x400 class HVACSystemTypeBitmap(IntFlag): + kCoolingStage = 0x3 + kHeatingStage = 0xC kHeatingIsHeatPump = 0x10 kHeatingUsesFuel = 0x20 @@ -28012,11 +28014,11 @@ class SetpointRaiseLower(ClusterCommand): def descriptor(cls) -> ClusterObjectDescriptor: return ClusterObjectDescriptor( Fields=[ - ClusterObjectFieldDescriptor(Label="mode", Tag=0, Type=Thermostat.Enums.SetpointAdjustModeEnum), + ClusterObjectFieldDescriptor(Label="mode", Tag=0, Type=Thermostat.Enums.SetpointRaiseLowerModeEnum), ClusterObjectFieldDescriptor(Label="amount", Tag=1, Type=int), ]) - mode: 'Thermostat.Enums.SetpointAdjustModeEnum' = 0 + mode: 'Thermostat.Enums.SetpointRaiseLowerModeEnum' = 0 amount: 'int' = 0 @dataclass diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h index 2347f26040288b..837b9cfd42b8b7 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h @@ -17264,18 +17264,18 @@ typedef NS_ENUM(uint8_t, MTRThermostatPresetScenario) { MTRThermostatPresetScenarioUserDefined MTR_PROVISIONALLY_AVAILABLE = 0x06, } MTR_PROVISIONALLY_AVAILABLE; -typedef NS_ENUM(uint8_t, MTRThermostatSetpointAdjustMode) { - MTRThermostatSetpointAdjustModeHeat MTR_PROVISIONALLY_AVAILABLE = 0x00, - MTRThermostatSetpointAdjustModeCool MTR_PROVISIONALLY_AVAILABLE = 0x01, - MTRThermostatSetpointAdjustModeBoth MTR_PROVISIONALLY_AVAILABLE = 0x02, -} MTR_PROVISIONALLY_AVAILABLE; - typedef NS_ENUM(uint8_t, MTRThermostatSetpointChangeSource) { MTRThermostatSetpointChangeSourceManual MTR_PROVISIONALLY_AVAILABLE = 0x00, MTRThermostatSetpointChangeSourceSchedule MTR_PROVISIONALLY_AVAILABLE = 0x01, MTRThermostatSetpointChangeSourceExternal MTR_PROVISIONALLY_AVAILABLE = 0x02, } MTR_PROVISIONALLY_AVAILABLE; +typedef NS_ENUM(uint8_t, MTRThermostatSetpointRaiseLowerMode) { + MTRThermostatSetpointRaiseLowerModeHeat MTR_PROVISIONALLY_AVAILABLE = 0x00, + MTRThermostatSetpointRaiseLowerModeCool MTR_PROVISIONALLY_AVAILABLE = 0x01, + MTRThermostatSetpointRaiseLowerModeBoth MTR_PROVISIONALLY_AVAILABLE = 0x02, +} MTR_PROVISIONALLY_AVAILABLE; + typedef NS_ENUM(uint8_t, MTRThermostatStartOfWeek) { MTRThermostatStartOfWeekSunday MTR_PROVISIONALLY_AVAILABLE = 0x00, MTRThermostatStartOfWeekMonday MTR_PROVISIONALLY_AVAILABLE = 0x01, @@ -17339,6 +17339,8 @@ typedef NS_OPTIONS(uint32_t, MTRThermostatFeature) { } MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)); typedef NS_OPTIONS(uint8_t, MTRThermostatHVACSystemTypeBitmap) { + MTRThermostatHVACSystemTypeBitmapCoolingStage MTR_PROVISIONALLY_AVAILABLE = 0x3, + MTRThermostatHVACSystemTypeBitmapHeatingStage MTR_PROVISIONALLY_AVAILABLE = 0xC, MTRThermostatHVACSystemTypeBitmapHeatingIsHeatPump MTR_PROVISIONALLY_AVAILABLE = 0x10, MTRThermostatHVACSystemTypeBitmapHeatingUsesFuel MTR_PROVISIONALLY_AVAILABLE = 0x20, } MTR_PROVISIONALLY_AVAILABLE; diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-enums-check.h b/zzz_generated/app-common/app-common/zap-generated/cluster-enums-check.h index aee7474b071b26..6466fec8986dda 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-enums-check.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-enums-check.h @@ -2200,27 +2200,27 @@ static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::PresetScena return static_cast(7); } } -static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::SetpointAdjustModeEnum val) +static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::SetpointChangeSourceEnum val) { - using EnumType = Thermostat::SetpointAdjustModeEnum; + using EnumType = Thermostat::SetpointChangeSourceEnum; switch (val) { - case EnumType::kHeat: - case EnumType::kCool: - case EnumType::kBoth: + case EnumType::kManual: + case EnumType::kSchedule: + case EnumType::kExternal: return val; default: return static_cast(3); } } -static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::SetpointChangeSourceEnum val) +static auto __attribute__((unused)) EnsureKnownEnumValue(Thermostat::SetpointRaiseLowerModeEnum val) { - using EnumType = Thermostat::SetpointChangeSourceEnum; + using EnumType = Thermostat::SetpointRaiseLowerModeEnum; switch (val) { - case EnumType::kManual: - case EnumType::kSchedule: - case EnumType::kExternal: + case EnumType::kHeat: + case EnumType::kCool: + case EnumType::kBoth: return val; default: return static_cast(3); diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h b/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h index 9f4d99604c1c1d..ec7cb3c6f03c99 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h @@ -3210,12 +3210,12 @@ enum class PresetScenarioEnum : uint8_t kUnknownEnumValue = 7, }; -// Enum for SetpointAdjustModeEnum -enum class SetpointAdjustModeEnum : uint8_t +// Enum for SetpointChangeSourceEnum +enum class SetpointChangeSourceEnum : uint8_t { - kHeat = 0x00, - kCool = 0x01, - kBoth = 0x02, + kManual = 0x00, + kSchedule = 0x01, + kExternal = 0x02, // All received enum values that are not listed above will be mapped // to kUnknownEnumValue. This is a helper enum value that should only // be used by code to process how it handles receiving and unknown @@ -3223,12 +3223,12 @@ enum class SetpointAdjustModeEnum : uint8_t kUnknownEnumValue = 3, }; -// Enum for SetpointChangeSourceEnum -enum class SetpointChangeSourceEnum : uint8_t +// Enum for SetpointRaiseLowerModeEnum +enum class SetpointRaiseLowerModeEnum : uint8_t { - kManual = 0x00, - kSchedule = 0x01, - kExternal = 0x02, + kHeat = 0x00, + kCool = 0x01, + kBoth = 0x02, // All received enum values that are not listed above will be mapped // to kUnknownEnumValue. This is a helper enum value that should only // be used by code to process how it handles receiving and unknown @@ -3334,6 +3334,8 @@ enum class Feature : uint32_t // Bitmap for HVACSystemTypeBitmap enum class HVACSystemTypeBitmap : uint8_t { + kCoolingStage = 0x3, + kHeatingStage = 0xC, kHeatingIsHeatPump = 0x10, kHeatingUsesFuel = 0x20, }; diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h index 2fe21b46f31484..9866d0a85f9c67 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h @@ -25613,8 +25613,8 @@ struct Type static constexpr CommandId GetCommandId() { return Commands::SetpointRaiseLower::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - SetpointAdjustModeEnum mode = static_cast(0); - int8_t amount = static_cast(0); + SetpointRaiseLowerModeEnum mode = static_cast(0); + int8_t amount = static_cast(0); CHIP_ERROR Encode(TLV::TLVWriter & aWriter, TLV::Tag aTag) const; @@ -25629,8 +25629,8 @@ struct DecodableType static constexpr CommandId GetCommandId() { return Commands::SetpointRaiseLower::Id; } static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } - SetpointAdjustModeEnum mode = static_cast(0); - int8_t amount = static_cast(0); + SetpointRaiseLowerModeEnum mode = static_cast(0); + int8_t amount = static_cast(0); CHIP_ERROR Decode(TLV::TLVReader & reader); }; }; // namespace SetpointRaiseLower From b219209df079747d657de6f5de716e3522278f2b Mon Sep 17 00:00:00 2001 From: David Rempel Date: Wed, 29 Nov 2023 17:30:20 -0800 Subject: [PATCH 29/41] Fixing ameba target --- .../all-clusters-app/ameba/main/include/ThermostatCommands.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/all-clusters-app/ameba/main/include/ThermostatCommands.h b/examples/all-clusters-app/ameba/main/include/ThermostatCommands.h index a0405eafc78fc8..7d6c77af81ef1e 100644 --- a/examples/all-clusters-app/ameba/main/include/ThermostatCommands.h +++ b/examples/all-clusters-app/ameba/main/include/ThermostatCommands.h @@ -154,7 +154,7 @@ void ProcessThermostatUnicastBindingCommand(BindingCommandData * data, const Emb switch (data->commandId) { case Clusters::Thermostat::Commands::SetpointRaiseLower::Id: - setpointRaiseLowerCommand.mode = static_cast(data->args[0]); + setpointRaiseLowerCommand.mode = static_cast(data->args[0]); setpointRaiseLowerCommand.amount = static_cast(data->args[1]); Controller::InvokeCommandRequest(peer_device->GetExchangeManager(), peer_device->GetSecureSession().Value(), binding.remote, setpointRaiseLowerCommand, onSuccess, onFailure); @@ -171,7 +171,7 @@ void ProcessThermostatGroupBindingCommand(BindingCommandData * data, const Ember switch (data->commandId) { case Clusters::Thermostat::Commands::SetpointRaiseLower::Id: - setpointRaiseLowerCommand.mode = static_cast(data->args[0]); + setpointRaiseLowerCommand.mode = static_cast(data->args[0]); setpointRaiseLowerCommand.amount = static_cast(data->args[1]); Controller::InvokeGroupCommandRequest(&exchangeMgr, binding.fabricIndex, binding.groupId, setpointRaiseLowerCommand); break; From 5c264fa7b65e6ee48d9591d9d79368dc3915fa30 Mon Sep 17 00:00:00 2001 From: David Rempel Date: Fri, 8 Dec 2023 16:03:10 -0800 Subject: [PATCH 30/41] missed these in the merge --- examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp | 3 --- examples/thermostat/silabs/src/TemperatureManager.cpp | 3 --- examples/thermostat/telink/src/TemperatureManager.cpp | 3 --- 3 files changed, 9 deletions(-) diff --git a/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp b/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp index 213b77c049bd27..0668411a9bfbd3 100644 --- a/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp +++ b/examples/all-clusters-app/esp32/main/DeviceWithDisplay.cpp @@ -679,10 +679,7 @@ void SetupPretendDevices() app::Clusters::Thermostat::Attributes::LocalTemperature::Set(1, static_cast(21 * 100)); AddAttribute("SystemMode", "4"); app::Clusters::Thermostat::Attributes::SystemMode::Set(1, chip::app::Clusters::Thermostat::SystemModeEnum::kHeat); -<<<<<<< HEAD -======= ->>>>>>> master AddAttribute("CoolSetpoint", "19"); app::Clusters::Thermostat::Attributes::OccupiedCoolingSetpoint::Set(1, static_cast(19 * 100)); AddAttribute("HeatSetpoint", "25"); diff --git a/examples/thermostat/silabs/src/TemperatureManager.cpp b/examples/thermostat/silabs/src/TemperatureManager.cpp index 52c55bad0aa7d4..f858e438a7449f 100644 --- a/examples/thermostat/silabs/src/TemperatureManager.cpp +++ b/examples/thermostat/silabs/src/TemperatureManager.cpp @@ -60,10 +60,7 @@ CHIP_ERROR TemperatureManager::Init() mCurrentTempCelsius = ConvertToPrintableTemp((temp.IsNull()) ? static_cast(0.0) : temp.Value()); mHeatingCelsiusSetPoint = ConvertToPrintableTemp(coolingSetpoint); mCoolingCelsiusSetPoint = ConvertToPrintableTemp(heatingSetpoint); -<<<<<<< HEAD -======= ->>>>>>> master switch (systemMode) { case SystemModeEnum::kOff: diff --git a/examples/thermostat/telink/src/TemperatureManager.cpp b/examples/thermostat/telink/src/TemperatureManager.cpp index 9bf03b7a6eb88e..ee52427d95c5bc 100644 --- a/examples/thermostat/telink/src/TemperatureManager.cpp +++ b/examples/thermostat/telink/src/TemperatureManager.cpp @@ -49,10 +49,7 @@ CHIP_ERROR TemperatureManager::Init() mCurrentTempCelsius = ConvertToPrintableTemp(temp.Value()); mHeatingCelsiusSetPoint = ConvertToPrintableTemp(coolingSetpoint); mCoolingCelsiusSetPoint = ConvertToPrintableTemp(heatingSetpoint); -<<<<<<< HEAD -======= ->>>>>>> master switch (systemMode) { case SystemModeEnum::kOff: From 2892b06d1a95213c0406251f17177008307174c9 Mon Sep 17 00:00:00 2001 From: David Rempel Date: Fri, 8 Dec 2023 21:44:14 -0800 Subject: [PATCH 31/41] After inspecting the bits of the xml that didn't conflict, found some bad merges and reverted them back to master --- .../all-clusters-app.matter | 16 ++-- .../all-clusters-minimal-app.matter | 16 ++-- ...umiditysensor_thermostat_56de3d5f45.matter | 16 ++-- ...tnode_heatingcoolingunit_ncdGai1E5a.matter | 16 ++-- ...tnode_roomairconditioner_9cf3607804.matter | 16 ++-- .../rootnode_thermostat_bm3fb8dhYi.matter | 16 ++-- .../placeholder/linux/apps/app1/config.matter | 32 +++---- .../placeholder/linux/apps/app2/config.matter | 32 +++---- .../nxp/zap/thermostat_matter_thread.matter | 16 ++-- .../nxp/zap/thermostat_matter_wifi.matter | 16 ++-- .../thermostat-common/thermostat.matter | 16 ++-- .../app-templates/endpoint_config.h | 92 ++++++++++--------- .../data-model/chip/thermostat-cluster.xml | 28 +++--- .../data_model/controller-clusters.matter | 16 ++-- .../zap-generated/attributes/Accessors.cpp | 16 ++-- .../zap-generated/attributes/Accessors.h | 16 ++-- 16 files changed, 191 insertions(+), 185 deletions(-) diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter index 09d353251cd4d3..b487059e56aa7a 100644 --- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter +++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter @@ -4204,14 +4204,14 @@ cluster Thermostat = 513 { readonly attribute optional int8u PIHeatingDemand = 8; attribute access(write: manage) optional bitmap8 HVACSystemTypeConfiguration = 9; attribute access(write: manage) optional int8s localTemperatureCalibration = 16; - attribute optional temperature occupiedCoolingSetpoint = 17; - attribute optional temperature occupiedHeatingSetpoint = 18; - attribute optional temperature unoccupiedCoolingSetpoint = 19; - attribute optional temperature unoccupiedHeatingSetpoint = 20; - attribute access(write: manage) optional temperature minHeatSetpointLimit = 21; - attribute access(write: manage) optional temperature maxHeatSetpointLimit = 22; - attribute access(write: manage) optional temperature minCoolSetpointLimit = 23; - attribute access(write: manage) optional temperature maxCoolSetpointLimit = 24; + attribute optional int16s occupiedCoolingSetpoint = 17; + attribute optional int16s occupiedHeatingSetpoint = 18; + attribute optional int16s unoccupiedCoolingSetpoint = 19; + attribute optional int16s unoccupiedHeatingSetpoint = 20; + attribute access(write: manage) optional int16s minHeatSetpointLimit = 21; + attribute access(write: manage) optional int16s maxHeatSetpointLimit = 22; + attribute access(write: manage) optional int16s minCoolSetpointLimit = 23; + attribute access(write: manage) optional int16s maxCoolSetpointLimit = 24; attribute access(write: manage) optional int8s minSetpointDeadBand = 25; attribute access(write: manage) optional RemoteSensingBitmap remoteSensing = 26; attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; diff --git a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter index f72c182e05c6ef..432f506b440597 100644 --- a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter +++ b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter @@ -3735,14 +3735,14 @@ cluster Thermostat = 513 { readonly attribute optional int8u PIHeatingDemand = 8; attribute access(write: manage) optional bitmap8 HVACSystemTypeConfiguration = 9; attribute access(write: manage) optional int8s localTemperatureCalibration = 16; - attribute optional temperature occupiedCoolingSetpoint = 17; - attribute optional temperature occupiedHeatingSetpoint = 18; - attribute optional temperature unoccupiedCoolingSetpoint = 19; - attribute optional temperature unoccupiedHeatingSetpoint = 20; - attribute access(write: manage) optional temperature minHeatSetpointLimit = 21; - attribute access(write: manage) optional temperature maxHeatSetpointLimit = 22; - attribute access(write: manage) optional temperature minCoolSetpointLimit = 23; - attribute access(write: manage) optional temperature maxCoolSetpointLimit = 24; + attribute optional int16s occupiedCoolingSetpoint = 17; + attribute optional int16s occupiedHeatingSetpoint = 18; + attribute optional int16s unoccupiedCoolingSetpoint = 19; + attribute optional int16s unoccupiedHeatingSetpoint = 20; + attribute access(write: manage) optional int16s minHeatSetpointLimit = 21; + attribute access(write: manage) optional int16s maxHeatSetpointLimit = 22; + attribute access(write: manage) optional int16s minCoolSetpointLimit = 23; + attribute access(write: manage) optional int16s maxCoolSetpointLimit = 24; attribute access(write: manage) optional int8s minSetpointDeadBand = 25; attribute access(write: manage) optional RemoteSensingBitmap remoteSensing = 26; attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; diff --git a/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter b/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter index 5ba8bcfead1d69..6f42e424469c2d 100644 --- a/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter +++ b/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter @@ -1377,14 +1377,14 @@ cluster Thermostat = 513 { readonly attribute optional int8u PIHeatingDemand = 8; attribute access(write: manage) optional bitmap8 HVACSystemTypeConfiguration = 9; attribute access(write: manage) optional int8s localTemperatureCalibration = 16; - attribute optional temperature occupiedCoolingSetpoint = 17; - attribute optional temperature occupiedHeatingSetpoint = 18; - attribute optional temperature unoccupiedCoolingSetpoint = 19; - attribute optional temperature unoccupiedHeatingSetpoint = 20; - attribute access(write: manage) optional temperature minHeatSetpointLimit = 21; - attribute access(write: manage) optional temperature maxHeatSetpointLimit = 22; - attribute access(write: manage) optional temperature minCoolSetpointLimit = 23; - attribute access(write: manage) optional temperature maxCoolSetpointLimit = 24; + attribute optional int16s occupiedCoolingSetpoint = 17; + attribute optional int16s occupiedHeatingSetpoint = 18; + attribute optional int16s unoccupiedCoolingSetpoint = 19; + attribute optional int16s unoccupiedHeatingSetpoint = 20; + attribute access(write: manage) optional int16s minHeatSetpointLimit = 21; + attribute access(write: manage) optional int16s maxHeatSetpointLimit = 22; + attribute access(write: manage) optional int16s minCoolSetpointLimit = 23; + attribute access(write: manage) optional int16s maxCoolSetpointLimit = 24; attribute access(write: manage) optional int8s minSetpointDeadBand = 25; attribute access(write: manage) optional RemoteSensingBitmap remoteSensing = 26; attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; diff --git a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter index 25fe7bc62414c2..fc3eb87d66c331 100644 --- a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter +++ b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter @@ -1734,14 +1734,14 @@ cluster Thermostat = 513 { readonly attribute optional int8u PIHeatingDemand = 8; attribute access(write: manage) optional bitmap8 HVACSystemTypeConfiguration = 9; attribute access(write: manage) optional int8s localTemperatureCalibration = 16; - attribute optional temperature occupiedCoolingSetpoint = 17; - attribute optional temperature occupiedHeatingSetpoint = 18; - attribute optional temperature unoccupiedCoolingSetpoint = 19; - attribute optional temperature unoccupiedHeatingSetpoint = 20; - attribute access(write: manage) optional temperature minHeatSetpointLimit = 21; - attribute access(write: manage) optional temperature maxHeatSetpointLimit = 22; - attribute access(write: manage) optional temperature minCoolSetpointLimit = 23; - attribute access(write: manage) optional temperature maxCoolSetpointLimit = 24; + attribute optional int16s occupiedCoolingSetpoint = 17; + attribute optional int16s occupiedHeatingSetpoint = 18; + attribute optional int16s unoccupiedCoolingSetpoint = 19; + attribute optional int16s unoccupiedHeatingSetpoint = 20; + attribute access(write: manage) optional int16s minHeatSetpointLimit = 21; + attribute access(write: manage) optional int16s maxHeatSetpointLimit = 22; + attribute access(write: manage) optional int16s minCoolSetpointLimit = 23; + attribute access(write: manage) optional int16s maxCoolSetpointLimit = 24; attribute access(write: manage) optional int8s minSetpointDeadBand = 25; attribute access(write: manage) optional RemoteSensingBitmap remoteSensing = 26; attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; diff --git a/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter b/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter index 8afca84cfe053c..1dc99a316a224a 100644 --- a/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter +++ b/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter @@ -1317,14 +1317,14 @@ cluster Thermostat = 513 { readonly attribute optional int8u PIHeatingDemand = 8; attribute access(write: manage) optional bitmap8 HVACSystemTypeConfiguration = 9; attribute access(write: manage) optional int8s localTemperatureCalibration = 16; - attribute optional temperature occupiedCoolingSetpoint = 17; - attribute optional temperature occupiedHeatingSetpoint = 18; - attribute optional temperature unoccupiedCoolingSetpoint = 19; - attribute optional temperature unoccupiedHeatingSetpoint = 20; - attribute access(write: manage) optional temperature minHeatSetpointLimit = 21; - attribute access(write: manage) optional temperature maxHeatSetpointLimit = 22; - attribute access(write: manage) optional temperature minCoolSetpointLimit = 23; - attribute access(write: manage) optional temperature maxCoolSetpointLimit = 24; + attribute optional int16s occupiedCoolingSetpoint = 17; + attribute optional int16s occupiedHeatingSetpoint = 18; + attribute optional int16s unoccupiedCoolingSetpoint = 19; + attribute optional int16s unoccupiedHeatingSetpoint = 20; + attribute access(write: manage) optional int16s minHeatSetpointLimit = 21; + attribute access(write: manage) optional int16s maxHeatSetpointLimit = 22; + attribute access(write: manage) optional int16s minCoolSetpointLimit = 23; + attribute access(write: manage) optional int16s maxCoolSetpointLimit = 24; attribute access(write: manage) optional int8s minSetpointDeadBand = 25; attribute access(write: manage) optional RemoteSensingBitmap remoteSensing = 26; attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; diff --git a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter index f55826f423e7f8..43d11ff6dcddf0 100644 --- a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter +++ b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter @@ -1537,14 +1537,14 @@ cluster Thermostat = 513 { readonly attribute optional int8u PIHeatingDemand = 8; attribute access(write: manage) optional bitmap8 HVACSystemTypeConfiguration = 9; attribute access(write: manage) optional int8s localTemperatureCalibration = 16; - attribute optional temperature occupiedCoolingSetpoint = 17; - attribute optional temperature occupiedHeatingSetpoint = 18; - attribute optional temperature unoccupiedCoolingSetpoint = 19; - attribute optional temperature unoccupiedHeatingSetpoint = 20; - attribute access(write: manage) optional temperature minHeatSetpointLimit = 21; - attribute access(write: manage) optional temperature maxHeatSetpointLimit = 22; - attribute access(write: manage) optional temperature minCoolSetpointLimit = 23; - attribute access(write: manage) optional temperature maxCoolSetpointLimit = 24; + attribute optional int16s occupiedCoolingSetpoint = 17; + attribute optional int16s occupiedHeatingSetpoint = 18; + attribute optional int16s unoccupiedCoolingSetpoint = 19; + attribute optional int16s unoccupiedHeatingSetpoint = 20; + attribute access(write: manage) optional int16s minHeatSetpointLimit = 21; + attribute access(write: manage) optional int16s maxHeatSetpointLimit = 22; + attribute access(write: manage) optional int16s minCoolSetpointLimit = 23; + attribute access(write: manage) optional int16s maxCoolSetpointLimit = 24; attribute access(write: manage) optional int8s minSetpointDeadBand = 25; attribute access(write: manage) optional RemoteSensingBitmap remoteSensing = 26; attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; diff --git a/examples/placeholder/linux/apps/app1/config.matter b/examples/placeholder/linux/apps/app1/config.matter index 1f4574f8f0c9a1..01eb53a7886b00 100644 --- a/examples/placeholder/linux/apps/app1/config.matter +++ b/examples/placeholder/linux/apps/app1/config.matter @@ -4951,14 +4951,14 @@ cluster Thermostat = 513 { readonly attribute optional int8u PIHeatingDemand = 8; attribute access(write: manage) optional bitmap8 HVACSystemTypeConfiguration = 9; attribute access(write: manage) optional int8s localTemperatureCalibration = 16; - attribute optional temperature occupiedCoolingSetpoint = 17; - attribute optional temperature occupiedHeatingSetpoint = 18; - attribute optional temperature unoccupiedCoolingSetpoint = 19; - attribute optional temperature unoccupiedHeatingSetpoint = 20; - attribute access(write: manage) optional temperature minHeatSetpointLimit = 21; - attribute access(write: manage) optional temperature maxHeatSetpointLimit = 22; - attribute access(write: manage) optional temperature minCoolSetpointLimit = 23; - attribute access(write: manage) optional temperature maxCoolSetpointLimit = 24; + attribute optional int16s occupiedCoolingSetpoint = 17; + attribute optional int16s occupiedHeatingSetpoint = 18; + attribute optional int16s unoccupiedCoolingSetpoint = 19; + attribute optional int16s unoccupiedHeatingSetpoint = 20; + attribute access(write: manage) optional int16s minHeatSetpointLimit = 21; + attribute access(write: manage) optional int16s maxHeatSetpointLimit = 22; + attribute access(write: manage) optional int16s minCoolSetpointLimit = 23; + attribute access(write: manage) optional int16s maxCoolSetpointLimit = 24; attribute access(write: manage) optional int8s minSetpointDeadBand = 25; attribute access(write: manage) optional RemoteSensingBitmap remoteSensing = 26; attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; @@ -5322,14 +5322,14 @@ cluster Thermostat = 513 { readonly attribute optional int8u PIHeatingDemand = 8; attribute access(write: manage) optional bitmap8 HVACSystemTypeConfiguration = 9; attribute access(write: manage) optional int8s localTemperatureCalibration = 16; - attribute optional temperature occupiedCoolingSetpoint = 17; - attribute optional temperature occupiedHeatingSetpoint = 18; - attribute optional temperature unoccupiedCoolingSetpoint = 19; - attribute optional temperature unoccupiedHeatingSetpoint = 20; - attribute access(write: manage) optional temperature minHeatSetpointLimit = 21; - attribute access(write: manage) optional temperature maxHeatSetpointLimit = 22; - attribute access(write: manage) optional temperature minCoolSetpointLimit = 23; - attribute access(write: manage) optional temperature maxCoolSetpointLimit = 24; + attribute optional int16s occupiedCoolingSetpoint = 17; + attribute optional int16s occupiedHeatingSetpoint = 18; + attribute optional int16s unoccupiedCoolingSetpoint = 19; + attribute optional int16s unoccupiedHeatingSetpoint = 20; + attribute access(write: manage) optional int16s minHeatSetpointLimit = 21; + attribute access(write: manage) optional int16s maxHeatSetpointLimit = 22; + attribute access(write: manage) optional int16s minCoolSetpointLimit = 23; + attribute access(write: manage) optional int16s maxCoolSetpointLimit = 24; attribute access(write: manage) optional int8s minSetpointDeadBand = 25; attribute access(write: manage) optional RemoteSensingBitmap remoteSensing = 26; attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; diff --git a/examples/placeholder/linux/apps/app2/config.matter b/examples/placeholder/linux/apps/app2/config.matter index f25bfb56c92081..2a9dae71da5c3e 100644 --- a/examples/placeholder/linux/apps/app2/config.matter +++ b/examples/placeholder/linux/apps/app2/config.matter @@ -4908,14 +4908,14 @@ cluster Thermostat = 513 { readonly attribute optional int8u PIHeatingDemand = 8; attribute access(write: manage) optional bitmap8 HVACSystemTypeConfiguration = 9; attribute access(write: manage) optional int8s localTemperatureCalibration = 16; - attribute optional temperature occupiedCoolingSetpoint = 17; - attribute optional temperature occupiedHeatingSetpoint = 18; - attribute optional temperature unoccupiedCoolingSetpoint = 19; - attribute optional temperature unoccupiedHeatingSetpoint = 20; - attribute access(write: manage) optional temperature minHeatSetpointLimit = 21; - attribute access(write: manage) optional temperature maxHeatSetpointLimit = 22; - attribute access(write: manage) optional temperature minCoolSetpointLimit = 23; - attribute access(write: manage) optional temperature maxCoolSetpointLimit = 24; + attribute optional int16s occupiedCoolingSetpoint = 17; + attribute optional int16s occupiedHeatingSetpoint = 18; + attribute optional int16s unoccupiedCoolingSetpoint = 19; + attribute optional int16s unoccupiedHeatingSetpoint = 20; + attribute access(write: manage) optional int16s minHeatSetpointLimit = 21; + attribute access(write: manage) optional int16s maxHeatSetpointLimit = 22; + attribute access(write: manage) optional int16s minCoolSetpointLimit = 23; + attribute access(write: manage) optional int16s maxCoolSetpointLimit = 24; attribute access(write: manage) optional int8s minSetpointDeadBand = 25; attribute access(write: manage) optional RemoteSensingBitmap remoteSensing = 26; attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; @@ -5279,14 +5279,14 @@ cluster Thermostat = 513 { readonly attribute optional int8u PIHeatingDemand = 8; attribute access(write: manage) optional bitmap8 HVACSystemTypeConfiguration = 9; attribute access(write: manage) optional int8s localTemperatureCalibration = 16; - attribute optional temperature occupiedCoolingSetpoint = 17; - attribute optional temperature occupiedHeatingSetpoint = 18; - attribute optional temperature unoccupiedCoolingSetpoint = 19; - attribute optional temperature unoccupiedHeatingSetpoint = 20; - attribute access(write: manage) optional temperature minHeatSetpointLimit = 21; - attribute access(write: manage) optional temperature maxHeatSetpointLimit = 22; - attribute access(write: manage) optional temperature minCoolSetpointLimit = 23; - attribute access(write: manage) optional temperature maxCoolSetpointLimit = 24; + attribute optional int16s occupiedCoolingSetpoint = 17; + attribute optional int16s occupiedHeatingSetpoint = 18; + attribute optional int16s unoccupiedCoolingSetpoint = 19; + attribute optional int16s unoccupiedHeatingSetpoint = 20; + attribute access(write: manage) optional int16s minHeatSetpointLimit = 21; + attribute access(write: manage) optional int16s maxHeatSetpointLimit = 22; + attribute access(write: manage) optional int16s minCoolSetpointLimit = 23; + attribute access(write: manage) optional int16s maxCoolSetpointLimit = 24; attribute access(write: manage) optional int8s minSetpointDeadBand = 25; attribute access(write: manage) optional RemoteSensingBitmap remoteSensing = 26; attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; diff --git a/examples/thermostat/nxp/zap/thermostat_matter_thread.matter b/examples/thermostat/nxp/zap/thermostat_matter_thread.matter index 15834f4566a413..91020cf91415c9 100644 --- a/examples/thermostat/nxp/zap/thermostat_matter_thread.matter +++ b/examples/thermostat/nxp/zap/thermostat_matter_thread.matter @@ -2165,14 +2165,14 @@ cluster Thermostat = 513 { readonly attribute optional int8u PIHeatingDemand = 8; attribute access(write: manage) optional bitmap8 HVACSystemTypeConfiguration = 9; attribute access(write: manage) optional int8s localTemperatureCalibration = 16; - attribute optional temperature occupiedCoolingSetpoint = 17; - attribute optional temperature occupiedHeatingSetpoint = 18; - attribute optional temperature unoccupiedCoolingSetpoint = 19; - attribute optional temperature unoccupiedHeatingSetpoint = 20; - attribute access(write: manage) optional temperature minHeatSetpointLimit = 21; - attribute access(write: manage) optional temperature maxHeatSetpointLimit = 22; - attribute access(write: manage) optional temperature minCoolSetpointLimit = 23; - attribute access(write: manage) optional temperature maxCoolSetpointLimit = 24; + attribute optional int16s occupiedCoolingSetpoint = 17; + attribute optional int16s occupiedHeatingSetpoint = 18; + attribute optional int16s unoccupiedCoolingSetpoint = 19; + attribute optional int16s unoccupiedHeatingSetpoint = 20; + attribute access(write: manage) optional int16s minHeatSetpointLimit = 21; + attribute access(write: manage) optional int16s maxHeatSetpointLimit = 22; + attribute access(write: manage) optional int16s minCoolSetpointLimit = 23; + attribute access(write: manage) optional int16s maxCoolSetpointLimit = 24; attribute access(write: manage) optional int8s minSetpointDeadBand = 25; attribute access(write: manage) optional RemoteSensingBitmap remoteSensing = 26; attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; diff --git a/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter b/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter index ce2588ca0c5155..046cc529e5c0ca 100644 --- a/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter +++ b/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter @@ -2076,14 +2076,14 @@ cluster Thermostat = 513 { readonly attribute optional int8u PIHeatingDemand = 8; attribute access(write: manage) optional bitmap8 HVACSystemTypeConfiguration = 9; attribute access(write: manage) optional int8s localTemperatureCalibration = 16; - attribute optional temperature occupiedCoolingSetpoint = 17; - attribute optional temperature occupiedHeatingSetpoint = 18; - attribute optional temperature unoccupiedCoolingSetpoint = 19; - attribute optional temperature unoccupiedHeatingSetpoint = 20; - attribute access(write: manage) optional temperature minHeatSetpointLimit = 21; - attribute access(write: manage) optional temperature maxHeatSetpointLimit = 22; - attribute access(write: manage) optional temperature minCoolSetpointLimit = 23; - attribute access(write: manage) optional temperature maxCoolSetpointLimit = 24; + attribute optional int16s occupiedCoolingSetpoint = 17; + attribute optional int16s occupiedHeatingSetpoint = 18; + attribute optional int16s unoccupiedCoolingSetpoint = 19; + attribute optional int16s unoccupiedHeatingSetpoint = 20; + attribute access(write: manage) optional int16s minHeatSetpointLimit = 21; + attribute access(write: manage) optional int16s maxHeatSetpointLimit = 22; + attribute access(write: manage) optional int16s minCoolSetpointLimit = 23; + attribute access(write: manage) optional int16s maxCoolSetpointLimit = 24; attribute access(write: manage) optional int8s minSetpointDeadBand = 25; attribute access(write: manage) optional RemoteSensingBitmap remoteSensing = 26; attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; diff --git a/examples/thermostat/thermostat-common/thermostat.matter b/examples/thermostat/thermostat-common/thermostat.matter index aa583ac852d08e..3c5e916ab74465 100644 --- a/examples/thermostat/thermostat-common/thermostat.matter +++ b/examples/thermostat/thermostat-common/thermostat.matter @@ -1916,14 +1916,14 @@ cluster Thermostat = 513 { readonly attribute optional int8u PIHeatingDemand = 8; attribute access(write: manage) optional bitmap8 HVACSystemTypeConfiguration = 9; attribute access(write: manage) optional int8s localTemperatureCalibration = 16; - attribute optional temperature occupiedCoolingSetpoint = 17; - attribute optional temperature occupiedHeatingSetpoint = 18; - attribute optional temperature unoccupiedCoolingSetpoint = 19; - attribute optional temperature unoccupiedHeatingSetpoint = 20; - attribute access(write: manage) optional temperature minHeatSetpointLimit = 21; - attribute access(write: manage) optional temperature maxHeatSetpointLimit = 22; - attribute access(write: manage) optional temperature minCoolSetpointLimit = 23; - attribute access(write: manage) optional temperature maxCoolSetpointLimit = 24; + attribute optional int16s occupiedCoolingSetpoint = 17; + attribute optional int16s occupiedHeatingSetpoint = 18; + attribute optional int16s unoccupiedCoolingSetpoint = 19; + attribute optional int16s unoccupiedHeatingSetpoint = 20; + attribute access(write: manage) optional int16s minHeatSetpointLimit = 21; + attribute access(write: manage) optional int16s maxHeatSetpointLimit = 22; + attribute access(write: manage) optional int16s minCoolSetpointLimit = 23; + attribute access(write: manage) optional int16s maxCoolSetpointLimit = 24; attribute access(write: manage) optional int8s minSetpointDeadBand = 25; attribute access(write: manage) optional RemoteSensingBitmap remoteSensing = 26; attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; diff --git a/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h b/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h index 8475ff59ab0c10..c761ccbbcedbca 100644 --- a/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h +++ b/scripts/tools/zap/tests/outputs/all-clusters-app/app-templates/endpoint_config.h @@ -269,7 +269,7 @@ #define GENERATED_DEFAULTS_COUNT (32) // This is an array of EmberAfAttributeMinMaxValue structures. -#define GENERATED_MIN_MAX_DEFAULT_COUNT 39 +#define GENERATED_MIN_MAX_DEFAULT_COUNT 45 #define GENERATED_MIN_MAX_DEFAULTS \ { \ \ @@ -302,9 +302,15 @@ { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x7 }, /* ControlMode */ \ \ /* Endpoint: 1, Cluster: Thermostat (server) */ \ - { (uint16_t) 0x19, (uint16_t) 0x0, (uint16_t) 0x19 }, /* MinSetpointDeadBand */ \ - { (uint16_t) 0x4, (uint16_t) 0x0, (uint16_t) 0x5 }, /* ControlSequenceOfOperation */ \ - { (uint16_t) 0x1, (uint16_t) 0x0, (uint16_t) 0x9 }, /* SystemMode */ \ + { (uint16_t) 0xA28, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* OccupiedCoolingSetpoint */ \ + { (uint16_t) 0x7D0, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* OccupiedHeatingSetpoint */ \ + { (uint16_t) 0x2BC, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* MinHeatSetpointLimit */ \ + { (uint16_t) 0xBB8, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* MaxHeatSetpointLimit */ \ + { (uint16_t) 0x640, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* MinCoolSetpointLimit */ \ + { (uint16_t) 0xC80, (uint16_t) -0x6AB3, (uint16_t) 0x7FFF }, /* MaxCoolSetpointLimit */ \ + { (uint16_t) 0x19, (uint16_t) 0x0, (uint16_t) 0x19 }, /* MinSetpointDeadBand */ \ + { (uint16_t) 0x4, (uint16_t) 0x0, (uint16_t) 0x5 }, /* ControlSequenceOfOperation */ \ + { (uint16_t) 0x1, (uint16_t) 0x0, (uint16_t) 0x9 }, /* SystemMode */ \ \ /* Endpoint: 1, Cluster: Fan Control (server) */ \ { (uint16_t) 0x0, (uint16_t) 0x0, (uint16_t) 0x6 }, /* FanMode */ \ @@ -1004,36 +1010,36 @@ { ZAP_SIMPLE_DEFAULT(0x0BB8), 0x00000004, 2, ZAP_TYPE(TEMPERATURE), 0 }, /* AbsMaxHeatSetpointLimit */ \ { ZAP_SIMPLE_DEFAULT(0x0640), 0x00000005, 2, ZAP_TYPE(TEMPERATURE), 0 }, /* AbsMinCoolSetpointLimit */ \ { ZAP_SIMPLE_DEFAULT(0x0C80), 0x00000006, 2, ZAP_TYPE(TEMPERATURE), 0 }, /* AbsMaxCoolSetpointLimit */ \ - { ZAP_SIMPLE_DEFAULT(0x0A28), 0x00000011, 2, ZAP_TYPE(TEMPERATURE), \ - ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* OccupiedCoolingSetpoint */ \ - { ZAP_SIMPLE_DEFAULT(0x07D0), 0x00000012, 2, ZAP_TYPE(TEMPERATURE), \ - ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* OccupiedHeatingSetpoint */ \ - { ZAP_SIMPLE_DEFAULT(0x02BC), 0x00000015, 2, ZAP_TYPE(TEMPERATURE), \ - ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* MinHeatSetpointLimit */ \ - { ZAP_SIMPLE_DEFAULT(0x0BB8), 0x00000016, 2, ZAP_TYPE(TEMPERATURE), \ - ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* MaxHeatSetpointLimit */ \ - { ZAP_SIMPLE_DEFAULT(0x0640), 0x00000017, 2, ZAP_TYPE(TEMPERATURE), \ - ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* MinCoolSetpointLimit */ \ - { ZAP_SIMPLE_DEFAULT(0x0C80), 0x00000018, 2, ZAP_TYPE(TEMPERATURE), \ - ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* MaxCoolSetpointLimit */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(12), 0x00000019, 1, ZAP_TYPE(INT8S), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(12), 0x00000011, 2, ZAP_TYPE(INT16S), \ + ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* OccupiedCoolingSetpoint */ \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(13), 0x00000012, 2, ZAP_TYPE(INT16S), \ + ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* OccupiedHeatingSetpoint */ \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(14), 0x00000015, 2, ZAP_TYPE(INT16S), \ + ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* MinHeatSetpointLimit */ \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(15), 0x00000016, 2, ZAP_TYPE(INT16S), \ + ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* MaxHeatSetpointLimit */ \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(16), 0x00000017, 2, ZAP_TYPE(INT16S), \ + ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* MinCoolSetpointLimit */ \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(17), 0x00000018, 2, ZAP_TYPE(INT16S), \ + ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* MaxCoolSetpointLimit */ \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(18), 0x00000019, 1, ZAP_TYPE(INT8S), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* MinSetpointDeadBand */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(13), 0x0000001B, 1, ZAP_TYPE(ENUM8), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(19), 0x0000001B, 1, ZAP_TYPE(ENUM8), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* ControlSequenceOfOperation */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(14), 0x0000001C, 1, ZAP_TYPE(ENUM8), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(20), 0x0000001C, 1, ZAP_TYPE(ENUM8), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* SystemMode */ \ { ZAP_SIMPLE_DEFAULT(0x0023), 0x0000FFFC, 4, ZAP_TYPE(BITMAP32), 0 }, /* FeatureMap */ \ { ZAP_SIMPLE_DEFAULT(6), 0x0000FFFD, 2, ZAP_TYPE(INT16U), 0 }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Fan Control (server) */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(15), 0x00000000, 1, ZAP_TYPE(ENUM8), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(21), 0x00000000, 1, ZAP_TYPE(ENUM8), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* FanMode */ \ { ZAP_SIMPLE_DEFAULT(0x02), 0x00000001, 1, ZAP_TYPE(ENUM8), 0 }, /* FanModeSequence */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(16), 0x00000002, 1, ZAP_TYPE(PERCENT), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(22), 0x00000002, 1, ZAP_TYPE(PERCENT), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* PercentSetting */ \ { ZAP_SIMPLE_DEFAULT(0x00), 0x00000003, 1, ZAP_TYPE(PERCENT), 0 }, /* PercentCurrent */ \ { ZAP_SIMPLE_DEFAULT(100), 0x00000004, 1, ZAP_TYPE(INT8U), 0 }, /* SpeedMax */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(17), 0x00000005, 1, ZAP_TYPE(INT8U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(23), 0x00000005, 1, ZAP_TYPE(INT8U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* SpeedSetting */ \ { ZAP_SIMPLE_DEFAULT(0x00), 0x00000006, 1, ZAP_TYPE(INT8U), 0 }, /* SpeedCurrent */ \ { ZAP_SIMPLE_DEFAULT(0x00), 0x00000007, 1, ZAP_TYPE(BITMAP8), 0 }, /* RockSupport */ \ @@ -1044,11 +1050,11 @@ { ZAP_SIMPLE_DEFAULT(2), 0x0000FFFD, 2, ZAP_TYPE(INT16U), 0 }, /* ClusterRevision */ \ \ /* Endpoint: 1, Cluster: Thermostat User Interface Configuration (server) */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(18), 0x00000000, 1, ZAP_TYPE(ENUM8), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(24), 0x00000000, 1, ZAP_TYPE(ENUM8), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* TemperatureDisplayMode */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(19), 0x00000001, 1, ZAP_TYPE(ENUM8), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(25), 0x00000001, 1, ZAP_TYPE(ENUM8), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* KeypadLockout */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(20), 0x00000002, 1, ZAP_TYPE(ENUM8), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(26), 0x00000002, 1, ZAP_TYPE(ENUM8), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* ScheduleProgrammingVisibility */ \ { ZAP_SIMPLE_DEFAULT(0), 0x0000FFFC, 4, ZAP_TYPE(BITMAP32), 0 }, /* FeatureMap */ \ { ZAP_SIMPLE_DEFAULT(2), 0x0000FFFD, 2, ZAP_TYPE(INT16U), 0 }, /* ClusterRevision */ \ @@ -1083,25 +1089,25 @@ { ZAP_EMPTY_DEFAULT(), 0x00000028, 2, ZAP_TYPE(INT16U), 0 }, /* Primary6X */ \ { ZAP_EMPTY_DEFAULT(), 0x00000029, 2, ZAP_TYPE(INT16U), 0 }, /* Primary6Y */ \ { ZAP_EMPTY_DEFAULT(), 0x0000002A, 1, ZAP_TYPE(INT8U), ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* Primary6Intensity */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(21), 0x00000030, 2, ZAP_TYPE(INT16U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(27), 0x00000030, 2, ZAP_TYPE(INT16U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* WhitePointX */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(22), 0x00000031, 2, ZAP_TYPE(INT16U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(28), 0x00000031, 2, ZAP_TYPE(INT16U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* WhitePointY */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(23), 0x00000032, 2, ZAP_TYPE(INT16U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(29), 0x00000032, 2, ZAP_TYPE(INT16U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* ColorPointRX */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(24), 0x00000033, 2, ZAP_TYPE(INT16U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(30), 0x00000033, 2, ZAP_TYPE(INT16U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* ColorPointRY */ \ { ZAP_EMPTY_DEFAULT(), 0x00000034, 1, ZAP_TYPE(INT8U), \ ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* ColorPointRIntensity */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(25), 0x00000036, 2, ZAP_TYPE(INT16U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(31), 0x00000036, 2, ZAP_TYPE(INT16U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* ColorPointGX */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(26), 0x00000037, 2, ZAP_TYPE(INT16U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(32), 0x00000037, 2, ZAP_TYPE(INT16U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* ColorPointGY */ \ { ZAP_EMPTY_DEFAULT(), 0x00000038, 1, ZAP_TYPE(INT8U), \ ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* ColorPointGIntensity */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(27), 0x0000003A, 2, ZAP_TYPE(INT16U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(33), 0x0000003A, 2, ZAP_TYPE(INT16U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* ColorPointBX */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(28), 0x0000003B, 2, ZAP_TYPE(INT16U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(34), 0x0000003B, 2, ZAP_TYPE(INT16U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* ColorPointBY */ \ { ZAP_EMPTY_DEFAULT(), 0x0000003C, 1, ZAP_TYPE(INT8U), \ ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* ColorPointBIntensity */ \ @@ -1116,7 +1122,7 @@ { ZAP_SIMPLE_DEFAULT(0x0000), 0x0000400B, 2, ZAP_TYPE(INT16U), 0 }, /* ColorTempPhysicalMinMireds */ \ { ZAP_SIMPLE_DEFAULT(0xFEFF), 0x0000400C, 2, ZAP_TYPE(INT16U), 0 }, /* ColorTempPhysicalMaxMireds */ \ { ZAP_EMPTY_DEFAULT(), 0x0000400D, 2, ZAP_TYPE(INT16U), 0 }, /* CoupleColorTempToLevelMinMireds */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(29), 0x00004010, 2, ZAP_TYPE(INT16U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(35), 0x00004010, 2, ZAP_TYPE(INT16U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) | \ ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* StartUpColorTemperatureMireds */ \ { ZAP_SIMPLE_DEFAULT(0x1F), 0x0000FFFC, 4, ZAP_TYPE(BITMAP32), 0 }, /* FeatureMap */ \ @@ -1305,13 +1311,13 @@ { ZAP_EMPTY_DEFAULT(), 0x00000024, 1, ZAP_TYPE(ENUM8), ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* enum_attr */ \ { ZAP_EMPTY_DEFAULT(), 0x00000025, 0, ZAP_TYPE(STRUCT), \ ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* struct_attr */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(30), 0x00000026, 1, ZAP_TYPE(INT8U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(36), 0x00000026, 1, ZAP_TYPE(INT8U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* range_restricted_int8u */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(31), 0x00000027, 1, ZAP_TYPE(INT8S), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(37), 0x00000027, 1, ZAP_TYPE(INT8S), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* range_restricted_int8s */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(32), 0x00000028, 2, ZAP_TYPE(INT16U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(38), 0x00000028, 2, ZAP_TYPE(INT16U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* range_restricted_int16u */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(33), 0x00000029, 2, ZAP_TYPE(INT16S), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(39), 0x00000029, 2, ZAP_TYPE(INT16S), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* range_restricted_int16s */ \ { ZAP_EMPTY_DEFAULT(), 0x0000002A, 0, ZAP_TYPE(ARRAY), \ ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* list_long_octet_string */ \ @@ -1382,16 +1388,16 @@ { ZAP_EMPTY_DEFAULT(), 0x00004025, 0, ZAP_TYPE(STRUCT), \ ZAP_ATTRIBUTE_MASK(EXTERNAL_STORAGE) | ZAP_ATTRIBUTE_MASK(WRITABLE) | \ ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* nullable_struct */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(34), 0x00004026, 1, ZAP_TYPE(INT8U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(40), 0x00004026, 1, ZAP_TYPE(INT8U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) | \ ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* nullable_range_restricted_int8u */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(35), 0x00004027, 1, ZAP_TYPE(INT8S), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(41), 0x00004027, 1, ZAP_TYPE(INT8S), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) | \ ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* nullable_range_restricted_int8s */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(36), 0x00004028, 2, ZAP_TYPE(INT16U), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(42), 0x00004028, 2, ZAP_TYPE(INT16U), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) | \ ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* nullable_range_restricted_int16u */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(37), 0x00004029, 2, ZAP_TYPE(INT16S), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(43), 0x00004029, 2, ZAP_TYPE(INT16S), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) | \ ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* nullable_range_restricted_int16s */ \ { ZAP_EMPTY_DEFAULT(), 0x0000402A, 1, ZAP_TYPE(INT8U), \ @@ -1426,7 +1432,7 @@ { ZAP_SIMPLE_DEFAULT(1), 0x00004000, 1, ZAP_TYPE(BOOLEAN), 0 }, /* GlobalSceneControl */ \ { ZAP_SIMPLE_DEFAULT(0), 0x00004001, 2, ZAP_TYPE(INT16U), ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* OnTime */ \ { ZAP_SIMPLE_DEFAULT(0), 0x00004002, 2, ZAP_TYPE(INT16U), ZAP_ATTRIBUTE_MASK(WRITABLE) }, /* OffWaitTime */ \ - { ZAP_MIN_MAX_DEFAULTS_INDEX(38), 0x00004003, 1, ZAP_TYPE(ENUM8), \ + { ZAP_MIN_MAX_DEFAULTS_INDEX(44), 0x00004003, 1, ZAP_TYPE(ENUM8), \ ZAP_ATTRIBUTE_MASK(MIN_MAX) | ZAP_ATTRIBUTE_MASK(WRITABLE) | ZAP_ATTRIBUTE_MASK(NULLABLE) }, /* StartUpOnOff */ \ { ZAP_SIMPLE_DEFAULT(0x0000), 0x0000FFFC, 4, ZAP_TYPE(BITMAP32), 0 }, /* FeatureMap */ \ { ZAP_SIMPLE_DEFAULT(5), 0x0000FFFD, 2, ZAP_TYPE(INT16U), 0 }, /* ClusterRevision */ \ diff --git a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml index a768c8c88748fd..01a8e44a43f78b 100644 --- a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml @@ -304,27 +304,27 @@ limitations under the License. LocalTemperatureCalibration - OccupiedCoolingSetpoint - OccupiedHeatingSetpoint - UnoccupiedCoolingSetpoint - UnoccupiedHeatingSetpoint - + OccupiedCoolingSetpoint + OccupiedHeatingSetpoint + UnoccupiedCoolingSetpoint + UnoccupiedHeatingSetpoint + MinHeatSetpointLimit - + MaxHeatSetpointLimit - + MinCoolSetpointLimit - + MaxCoolSetpointLimit - + MinSetpointDeadBand @@ -348,7 +348,7 @@ limitations under the License. TemperatureSetpointHold - + TemperatureSetpointHoldDuration @@ -364,12 +364,12 @@ limitations under the License. OccupiedSetback - OccupiedSetbackMin - OccupiedSetbackMax - + OccupiedSetbackMin + OccupiedSetbackMax + UnoccupiedSetback - + UnoccupiedSetbackMin UnoccupiedSetbackMax diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter index e8b5a801c836b6..2d46574e1e8a7d 100644 --- a/src/controller/data_model/controller-clusters.matter +++ b/src/controller/data_model/controller-clusters.matter @@ -5851,14 +5851,14 @@ cluster Thermostat = 513 { readonly attribute optional int8u PIHeatingDemand = 8; attribute access(write: manage) optional bitmap8 HVACSystemTypeConfiguration = 9; attribute access(write: manage) optional int8s localTemperatureCalibration = 16; - attribute optional temperature occupiedCoolingSetpoint = 17; - attribute optional temperature occupiedHeatingSetpoint = 18; - attribute optional temperature unoccupiedCoolingSetpoint = 19; - attribute optional temperature unoccupiedHeatingSetpoint = 20; - attribute access(write: manage) optional temperature minHeatSetpointLimit = 21; - attribute access(write: manage) optional temperature maxHeatSetpointLimit = 22; - attribute access(write: manage) optional temperature minCoolSetpointLimit = 23; - attribute access(write: manage) optional temperature maxCoolSetpointLimit = 24; + attribute optional int16s occupiedCoolingSetpoint = 17; + attribute optional int16s occupiedHeatingSetpoint = 18; + attribute optional int16s unoccupiedCoolingSetpoint = 19; + attribute optional int16s unoccupiedHeatingSetpoint = 20; + attribute access(write: manage) optional int16s minHeatSetpointLimit = 21; + attribute access(write: manage) optional int16s maxHeatSetpointLimit = 22; + attribute access(write: manage) optional int16s minCoolSetpointLimit = 23; + attribute access(write: manage) optional int16s maxCoolSetpointLimit = 24; attribute access(write: manage) optional int8s minSetpointDeadBand = 25; attribute access(write: manage) optional RemoteSensingBitmap remoteSensing = 26; attribute access(write: manage) ControlSequenceOfOperationEnum controlSequenceOfOperation = 27; diff --git a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp index eb37b54d843a47..cb9a938a575c28 100644 --- a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp +++ b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.cpp @@ -15807,7 +15807,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } } // namespace OccupiedCoolingSetpoint @@ -15838,7 +15838,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } } // namespace OccupiedHeatingSetpoint @@ -15869,7 +15869,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } } // namespace UnoccupiedCoolingSetpoint @@ -15900,7 +15900,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } } // namespace UnoccupiedHeatingSetpoint @@ -15931,7 +15931,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } } // namespace MinHeatSetpointLimit @@ -15962,7 +15962,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } } // namespace MaxHeatSetpointLimit @@ -15993,7 +15993,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } } // namespace MinCoolSetpointLimit @@ -16024,7 +16024,7 @@ EmberAfStatus Set(chip::EndpointId endpoint, int16_t value) Traits::StorageType storageValue; Traits::WorkingToStorage(value, storageValue); uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue); - return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_TEMPERATURE_ATTRIBUTE_TYPE); + return emberAfWriteAttribute(endpoint, Clusters::Thermostat::Id, Id, writable, ZCL_INT16S_ATTRIBUTE_TYPE); } } // namespace MaxCoolSetpointLimit diff --git a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h index eb3106d184b7be..bbd0bfa4580982 100644 --- a/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h +++ b/zzz_generated/app-common/app-common/zap-generated/attributes/Accessors.h @@ -2865,42 +2865,42 @@ EmberAfStatus Set(chip::EndpointId endpoint, int8_t value); } // namespace LocalTemperatureCalibration namespace OccupiedCoolingSetpoint { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // temperature +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); } // namespace OccupiedCoolingSetpoint namespace OccupiedHeatingSetpoint { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // temperature +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); } // namespace OccupiedHeatingSetpoint namespace UnoccupiedCoolingSetpoint { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // temperature +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); } // namespace UnoccupiedCoolingSetpoint namespace UnoccupiedHeatingSetpoint { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // temperature +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); } // namespace UnoccupiedHeatingSetpoint namespace MinHeatSetpointLimit { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // temperature +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); } // namespace MinHeatSetpointLimit namespace MaxHeatSetpointLimit { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // temperature +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); } // namespace MaxHeatSetpointLimit namespace MinCoolSetpointLimit { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // temperature +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); } // namespace MinCoolSetpointLimit namespace MaxCoolSetpointLimit { -EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // temperature +EmberAfStatus Get(chip::EndpointId endpoint, int16_t * value); // int16s EmberAfStatus Set(chip::EndpointId endpoint, int16_t value); } // namespace MaxCoolSetpointLimit From 4c311d16083c392270e19c2897a1015732dd735b Mon Sep 17 00:00:00 2001 From: David Rempel Date: Fri, 8 Dec 2023 23:14:16 -0800 Subject: [PATCH 32/41] Revert this change back since it was decided in the great renaming to not do it. --- .../suites/certification/Test_TC_TSTAT_2_1.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/app/tests/suites/certification/Test_TC_TSTAT_2_1.yaml b/src/app/tests/suites/certification/Test_TC_TSTAT_2_1.yaml index f7c249970505a6..36b535a024f6c0 100644 --- a/src/app/tests/suites/certification/Test_TC_TSTAT_2_1.yaml +++ b/src/app/tests/suites/certification/Test_TC_TSTAT_2_1.yaml @@ -231,6 +231,16 @@ tests: minValue: 0 maxValue: 100 + - label: "Step 11: Read HVACSystemTypeConfiguration attribute from the DUT" + PICS: TSTAT.S.A0009 + command: "readAttribute" + attribute: "HVACSystemTypeConfiguration" + response: + constraints: + type: bitmap8 + minValue: 0 + maxValue: 63 + - label: "Step 12: Read LocalTemperatureCalibration attribute from the DUT" PICS: TSTAT.S.A0010 command: "readAttribute" @@ -707,7 +717,7 @@ tests: - label: "Step 51: Read ACCapacityFormat attribute from the DUT" PICS: TSTAT.S.A0047 command: "readAttribute" - attribute: "ACCapacityFormat" + attribute: "ACCapacityformat" response: value: 0 constraints: From 0fe71a76e134026d06a76a2ccb607ed3c4682fb6 Mon Sep 17 00:00:00 2001 From: David Rempel Date: Mon, 11 Dec 2023 09:57:40 -0800 Subject: [PATCH 33/41] This should get us past the backward incompat test --- .../all-clusters-common/all-clusters-app.matter | 2 +- .../all-clusters-minimal-app.matter | 2 +- ...esensor_humiditysensor_thermostat_56de3d5f45.matter | 2 +- .../rootnode_heatingcoolingunit_ncdGai1E5a.matter | 2 +- .../rootnode_roomairconditioner_9cf3607804.matter | 2 +- .../chef/devices/rootnode_thermostat_bm3fb8dhYi.matter | 2 +- examples/placeholder/linux/apps/app1/config.matter | 4 ++-- examples/placeholder/linux/apps/app2/config.matter | 4 ++-- .../thermostat/nxp/zap/thermostat_matter_thread.matter | 2 +- .../thermostat/nxp/zap/thermostat_matter_wifi.matter | 2 +- .../thermostat/thermostat-common/thermostat.matter | 2 +- .../zcl/data-model/chip/thermostat-cluster.xml | 10 +++++----- src/controller/data_model/controller-clusters.matter | 2 +- src/controller/python/chip/clusters/Objects.py | 2 +- .../Framework/CHIP/zap-generated/MTRBaseClusters.h | 3 ++- .../app-common/zap-generated/cluster-enums.h | 2 +- 16 files changed, 23 insertions(+), 22 deletions(-) diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter index b487059e56aa7a..1a0cfb4c9cb284 100644 --- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter +++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter @@ -4071,7 +4071,7 @@ cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kZigbeeScheduleConfiguration = 0x8; + kScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; diff --git a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter index 432f506b440597..a23b8dc15cb09b 100644 --- a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter +++ b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter @@ -3602,7 +3602,7 @@ cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kZigbeeScheduleConfiguration = 0x8; + kScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; diff --git a/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter b/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter index 6f42e424469c2d..d25841fea7bed8 100644 --- a/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter +++ b/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter @@ -1244,7 +1244,7 @@ cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kZigbeeScheduleConfiguration = 0x8; + kScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; diff --git a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter index fc3eb87d66c331..1992272ee28aa6 100644 --- a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter +++ b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter @@ -1601,7 +1601,7 @@ cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kZigbeeScheduleConfiguration = 0x8; + kScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; diff --git a/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter b/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter index 1dc99a316a224a..7d1cf33cd03202 100644 --- a/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter +++ b/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter @@ -1184,7 +1184,7 @@ cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kZigbeeScheduleConfiguration = 0x8; + kScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; diff --git a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter index 43d11ff6dcddf0..351d8c52aa882f 100644 --- a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter +++ b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter @@ -1404,7 +1404,7 @@ cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kZigbeeScheduleConfiguration = 0x8; + kScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; diff --git a/examples/placeholder/linux/apps/app1/config.matter b/examples/placeholder/linux/apps/app1/config.matter index 01eb53a7886b00..4788cb2305a031 100644 --- a/examples/placeholder/linux/apps/app1/config.matter +++ b/examples/placeholder/linux/apps/app1/config.matter @@ -4818,7 +4818,7 @@ cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kZigbeeScheduleConfiguration = 0x8; + kScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; @@ -5189,7 +5189,7 @@ cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kZigbeeScheduleConfiguration = 0x8; + kScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; diff --git a/examples/placeholder/linux/apps/app2/config.matter b/examples/placeholder/linux/apps/app2/config.matter index 2a9dae71da5c3e..eea33d7af373db 100644 --- a/examples/placeholder/linux/apps/app2/config.matter +++ b/examples/placeholder/linux/apps/app2/config.matter @@ -4775,7 +4775,7 @@ cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kZigbeeScheduleConfiguration = 0x8; + kScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; @@ -5146,7 +5146,7 @@ cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kZigbeeScheduleConfiguration = 0x8; + kScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; diff --git a/examples/thermostat/nxp/zap/thermostat_matter_thread.matter b/examples/thermostat/nxp/zap/thermostat_matter_thread.matter index 91020cf91415c9..28403ee8758dc4 100644 --- a/examples/thermostat/nxp/zap/thermostat_matter_thread.matter +++ b/examples/thermostat/nxp/zap/thermostat_matter_thread.matter @@ -2032,7 +2032,7 @@ cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kZigbeeScheduleConfiguration = 0x8; + kScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; diff --git a/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter b/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter index 046cc529e5c0ca..54bcac7c245a88 100644 --- a/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter +++ b/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter @@ -1943,7 +1943,7 @@ cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kZigbeeScheduleConfiguration = 0x8; + kScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; diff --git a/examples/thermostat/thermostat-common/thermostat.matter b/examples/thermostat/thermostat-common/thermostat.matter index 3c5e916ab74465..15edceace269dd 100644 --- a/examples/thermostat/thermostat-common/thermostat.matter +++ b/examples/thermostat/thermostat-common/thermostat.matter @@ -1783,7 +1783,7 @@ cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kZigbeeScheduleConfiguration = 0x8; + kScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; diff --git a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml index 01a8e44a43f78b..dc5dd35be70363 100644 --- a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml @@ -21,14 +21,14 @@ limitations under the License. - + - - - + + + - + diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter index 2d46574e1e8a7d..c40e4f3bfc0913 100644 --- a/src/controller/data_model/controller-clusters.matter +++ b/src/controller/data_model/controller-clusters.matter @@ -5718,7 +5718,7 @@ cluster Thermostat = 513 { kHeating = 0x1; kCooling = 0x2; kOccupancy = 0x4; - kZigbeeScheduleConfiguration = 0x8; + kScheduleConfiguration = 0x8; kSetback = 0x10; kAutoMode = 0x20; kLocalTemperatureNotExposed = 0x40; diff --git a/src/controller/python/chip/clusters/Objects.py b/src/controller/python/chip/clusters/Objects.py index cc8d8e27f84bc9..0696636b28ca6b 100644 --- a/src/controller/python/chip/clusters/Objects.py +++ b/src/controller/python/chip/clusters/Objects.py @@ -28449,7 +28449,7 @@ class Feature(IntFlag): kHeating = 0x1 kCooling = 0x2 kOccupancy = 0x4 - kZigbeeScheduleConfiguration = 0x8 + kScheduleConfiguration = 0x8 kSetback = 0x10 kAutoMode = 0x20 kLocalTemperatureNotExposed = 0x40 diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h index 041b4735642092..08c2fbed1c8d67 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h @@ -17858,7 +17858,8 @@ typedef NS_OPTIONS(uint32_t, MTRThermostatFeature) { MTRThermostatFeatureHeating MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x1, MTRThermostatFeatureCooling MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x2, MTRThermostatFeatureOccupancy MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x4, - MTRThermostatFeatureZigbeeScheduleConfiguration MTR_PROVISIONALLY_AVAILABLE = 0x8, + MTRThermostatFeatureScheduleConfiguration MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x8, + MTRThermostatFeatureSchedule MTR_DEPRECATED("Please use MTRThermostatFeatureScheduleConfiguration", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)) = 0x8, MTRThermostatFeatureSetback MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) = 0x10, MTRThermostatFeatureAutoMode MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)) = 0x20, MTRThermostatFeatureAutomode MTR_DEPRECATED("Please use MTRThermostatFeatureAutoMode", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)) = 0x20, diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h b/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h index 2eb6a6a0b155d6..f23a115c1ba8e5 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h @@ -3396,7 +3396,7 @@ enum class Feature : uint32_t kHeating = 0x1, kCooling = 0x2, kOccupancy = 0x4, - kZigbeeScheduleConfiguration = 0x8, + kScheduleConfiguration = 0x8, kSetback = 0x10, kAutoMode = 0x20, kLocalTemperatureNotExposed = 0x40, From 11340934c206b2eb58795e0057ebb81796435efd Mon Sep 17 00:00:00 2001 From: David Rempel Date: Mon, 11 Dec 2023 13:22:13 -0800 Subject: [PATCH 34/41] Fix the bad merge I did using github directly --- src/app/zap-templates/zcl/zcl-with-test-extensions.json | 2 +- src/app/zap-templates/zcl/zcl.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/zap-templates/zcl/zcl-with-test-extensions.json b/src/app/zap-templates/zcl/zcl-with-test-extensions.json index d51be5a1da772c..690c8ec12e1d13 100644 --- a/src/app/zap-templates/zcl/zcl-with-test-extensions.json +++ b/src/app/zap-templates/zcl/zcl-with-test-extensions.json @@ -547,7 +547,7 @@ "FeatureMap" ], "Air Quality": ["AirQuality", "FeatureMap"], - "Thermostat": ["QueuedPreset"] + "Thermostat": ["QueuedPreset"], "Electrical Energy Measurement": [ "Accuracy", "CumulativeEnergyImported", diff --git a/src/app/zap-templates/zcl/zcl.json b/src/app/zap-templates/zcl/zcl.json index 8ec1dc06d1c8af..b9d7931ca27255 100644 --- a/src/app/zap-templates/zcl/zcl.json +++ b/src/app/zap-templates/zcl/zcl.json @@ -545,7 +545,7 @@ "FeatureMap" ], "Air Quality": ["AirQuality", "FeatureMap"], - "Thermostat": ["QueuedPreset"] + "Thermostat": ["QueuedPreset"], "Electrical Energy Measurement": [ "Accuracy", "CumulativeEnergyImported", From bbf0ec1e44f4fa4dea998c000e79c7a00b8570f0 Mon Sep 17 00:00:00 2001 From: David Rempel Date: Tue, 12 Dec 2023 11:14:28 -0800 Subject: [PATCH 35/41] XML changes as requested --- .../data-model/chip/thermostat-cluster.xml | 62 ++++++++++++------- 1 file changed, 39 insertions(+), 23 deletions(-) diff --git a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml index dc5dd35be70363..370ab77f0def34 100644 --- a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml @@ -236,11 +236,13 @@ limitations under the License. - + + + @@ -250,12 +252,14 @@ limitations under the License. + + @@ -265,6 +269,7 @@ limitations under the License. + @@ -284,11 +289,13 @@ limitations under the License. true true + + + LocalTemperature OutdoorTemperature Occupancy - - + AbsMinHeatSetpointLimit AbsMaxHeatSetpointLimit AbsMinCoolSetpointLimit @@ -369,7 +376,7 @@ limitations under the License. UnoccupiedSetback - + UnoccupiedSetbackMin UnoccupiedSetbackMax @@ -405,26 +412,29 @@ limitations under the License. ACCapacityformat + PresetTypes + ScheduleTypes + NumberOfPresets + NumberOfSchedules + NumberOfScheduleTransitions + NumberOfScheduleTransitionPerDay + ActivePresetHandle + ActiveScheduleHandle Presets - TemperatureSetpointHoldPolicy - SetpointHoldExpiryTimestamp - NumberOfScheduleTransitionPerDay - ActiveScheduleHandle - NumberOfSchedules - ScheduleTypes - PresetsSchedulesEditable - NumberOfPresets Schedules - NumberOfScheduleTransitions - PresetTypes + PresetsSchedulesEditable + TemperatureSetpointHoldPolicy + SetpointHoldExpiryTimestamp QueuedPreset - ActivePresetHandle + + + Command description for SetpointRaiseLower @@ -452,14 +462,7 @@ limitations under the License. This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. - - - This command has the same payload format as the Set Weekly Schedule. Please refer to the payload detail in - - - - - + Upon receipt, this SHALL set the thermostat @@ -490,5 +493,18 @@ limitations under the License. Upon receipt, this SHALL attempt to cancel any active editing of the + + + + + + The Current Weekly Schedule Command is sent from the server in response to the Get Weekly Schedule Command. + + + + + + + \ No newline at end of file From 39500297535fc7a3396cf34bc6161e9c2ac55b6a Mon Sep 17 00:00:00 2001 From: David Rempel Date: Tue, 12 Dec 2023 12:52:54 -0800 Subject: [PATCH 36/41] Blew away the zap generated dirs and regenerated again. Some files stayed deleted. --- ...usterThermostatScheduleTransitionStruct.kt | 71 - ...usterThermostatScheduleTransitionStruct.kt | 71 - .../ElectricalEnergyMeasurementCluster.kt | 472 - .../matter/devicecontroller/cluster/files.gni | 318 - .../chip/devicecontroller/ChipClusters.java | 40492 ---------------- 5 files changed, 41424 deletions(-) delete mode 100644 src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt delete mode 100644 src/controller/java/generated/java/matter/controller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt delete mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ElectricalEnergyMeasurementCluster.kt delete mode 100644 src/controller/java/generated/java/matter/devicecontroller/cluster/files.gni delete mode 100644 src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java diff --git a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt b/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt deleted file mode 100644 index 8b1ae0ae2b05ed..00000000000000 --- a/src/controller/java/generated/java/chip/devicecontroller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt +++ /dev/null @@ -1,71 +0,0 @@ -/* - * - * Copyright (c) 2023 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package chip.devicecontroller.cluster.structs - -import chip.devicecontroller.cluster.* -import matter.tlv.ContextSpecificTag -import matter.tlv.Tag -import matter.tlv.TlvReader -import matter.tlv.TlvWriter - -class ThermostatClusterThermostatScheduleTransitionStruct( - val transitionTime: UInt, - val heatSetpoint: Int, - val coolSetpoint: Int -) { - override fun toString(): String = buildString { - append("ThermostatClusterThermostatScheduleTransitionStruct {\n") - append("\ttransitionTime : $transitionTime\n") - append("\theatSetpoint : $heatSetpoint\n") - append("\tcoolSetpoint : $coolSetpoint\n") - append("}\n") - } - - fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { - tlvWriter.apply { - startStructure(tlvTag) - put(ContextSpecificTag(TAG_TRANSITION_TIME), transitionTime) - put(ContextSpecificTag(TAG_HEAT_SETPOINT), heatSetpoint) - put(ContextSpecificTag(TAG_COOL_SETPOINT), coolSetpoint) - endStructure() - } - } - - companion object { - private const val TAG_TRANSITION_TIME = 0 - private const val TAG_HEAT_SETPOINT = 1 - private const val TAG_COOL_SETPOINT = 2 - - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): ThermostatClusterThermostatScheduleTransitionStruct { - tlvReader.enterStructure(tlvTag) - val transitionTime = tlvReader.getUInt(ContextSpecificTag(TAG_TRANSITION_TIME)) - val heatSetpoint = tlvReader.getInt(ContextSpecificTag(TAG_HEAT_SETPOINT)) - val coolSetpoint = tlvReader.getInt(ContextSpecificTag(TAG_COOL_SETPOINT)) - - tlvReader.exitContainer() - - return ThermostatClusterThermostatScheduleTransitionStruct( - transitionTime, - heatSetpoint, - coolSetpoint - ) - } - } -} diff --git a/src/controller/java/generated/java/matter/controller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt b/src/controller/java/generated/java/matter/controller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt deleted file mode 100644 index 7acf503909fa7a..00000000000000 --- a/src/controller/java/generated/java/matter/controller/cluster/structs/ThermostatClusterThermostatScheduleTransitionStruct.kt +++ /dev/null @@ -1,71 +0,0 @@ -/* - * - * Copyright (c) 2023 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package matter.devicecontroller.cluster.structs - -import matter.devicecontroller.cluster.* -import matter.tlv.ContextSpecificTag -import matter.tlv.Tag -import matter.tlv.TlvReader -import matter.tlv.TlvWriter - -class ThermostatClusterThermostatScheduleTransitionStruct( - val transitionTime: UShort, - val heatSetpoint: Short, - val coolSetpoint: Short -) { - override fun toString(): String = buildString { - append("ThermostatClusterThermostatScheduleTransitionStruct {\n") - append("\ttransitionTime : $transitionTime\n") - append("\theatSetpoint : $heatSetpoint\n") - append("\tcoolSetpoint : $coolSetpoint\n") - append("}\n") - } - - fun toTlv(tlvTag: Tag, tlvWriter: TlvWriter) { - tlvWriter.apply { - startStructure(tlvTag) - put(ContextSpecificTag(TAG_TRANSITION_TIME), transitionTime) - put(ContextSpecificTag(TAG_HEAT_SETPOINT), heatSetpoint) - put(ContextSpecificTag(TAG_COOL_SETPOINT), coolSetpoint) - endStructure() - } - } - - companion object { - private const val TAG_TRANSITION_TIME = 0 - private const val TAG_HEAT_SETPOINT = 1 - private const val TAG_COOL_SETPOINT = 2 - - fun fromTlv( - tlvTag: Tag, - tlvReader: TlvReader - ): ThermostatClusterThermostatScheduleTransitionStruct { - tlvReader.enterStructure(tlvTag) - val transitionTime = tlvReader.getUShort(ContextSpecificTag(TAG_TRANSITION_TIME)) - val heatSetpoint = tlvReader.getShort(ContextSpecificTag(TAG_HEAT_SETPOINT)) - val coolSetpoint = tlvReader.getShort(ContextSpecificTag(TAG_COOL_SETPOINT)) - - tlvReader.exitContainer() - - return ThermostatClusterThermostatScheduleTransitionStruct( - transitionTime, - heatSetpoint, - coolSetpoint - ) - } - } -} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ElectricalEnergyMeasurementCluster.kt b/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ElectricalEnergyMeasurementCluster.kt deleted file mode 100644 index d9c3677d557c85..00000000000000 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ElectricalEnergyMeasurementCluster.kt +++ /dev/null @@ -1,472 +0,0 @@ -/* - * - * Copyright (c) 2023 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package matter.devicecontroller.cluster.clusters - -import java.util.logging.Level -import java.util.logging.Logger -import matter.controller.* -import matter.controller.model.AttributePath -import matter.devicecontroller.cluster.structs.* -import matter.tlv.AnonymousTag -import matter.tlv.TlvReader - -class ElectricalEnergyMeasurementCluster( - private val controller: MatterController, - private val endpointId: UShort -) { - class AccuracyAttribute(val value: ElectricalEnergyMeasurementClusterMeasurementAccuracyStruct) - - class CumulativeEnergyImportedAttribute( - val value: ElectricalEnergyMeasurementClusterEnergyMeasurementStruct? - ) - - class CumulativeEnergyExportedAttribute( - val value: ElectricalEnergyMeasurementClusterEnergyMeasurementStruct? - ) - - class PeriodicEnergyImportedAttribute( - val value: ElectricalEnergyMeasurementClusterEnergyMeasurementStruct? - ) - - class PeriodicEnergyExportedAttribute( - val value: ElectricalEnergyMeasurementClusterEnergyMeasurementStruct? - ) - - class GeneratedCommandListAttribute(val value: List) - - class AcceptedCommandListAttribute(val value: List) - - class EventListAttribute(val value: List) - - class AttributeListAttribute(val value: List) - - suspend fun readAccuracyAttribute(): AccuracyAttribute { - val ATTRIBUTE_ID: UInt = 0u - - val attributePath = - AttributePath(endpointId = endpointId, clusterId = CLUSTER_ID, attributeId = ATTRIBUTE_ID) - - val readRequest = ReadRequest(eventPaths = emptyList(), attributePaths = listOf(attributePath)) - - val response = controller.read(readRequest) - - if (response.successes.isEmpty()) { - logger.log(Level.WARNING, "Read command failed") - throw IllegalStateException("Read command failed with failures: ${response.failures}") - } - - logger.log(Level.FINE, "Read command succeeded") - - val attributeData = - response.successes.filterIsInstance().firstOrNull { - it.path.attributeId == ATTRIBUTE_ID - } - - requireNotNull(attributeData) { "Accuracy attribute not found in response" } - - // Decode the TLV data into the appropriate type - val tlvReader = TlvReader(attributeData.data) - val decodedValue: ElectricalEnergyMeasurementClusterMeasurementAccuracyStruct = - ElectricalEnergyMeasurementClusterMeasurementAccuracyStruct.fromTlv(AnonymousTag, tlvReader) - - return AccuracyAttribute(decodedValue) - } - - suspend fun readCumulativeEnergyImportedAttribute(): CumulativeEnergyImportedAttribute { - val ATTRIBUTE_ID: UInt = 1u - - val attributePath = - AttributePath(endpointId = endpointId, clusterId = CLUSTER_ID, attributeId = ATTRIBUTE_ID) - - val readRequest = ReadRequest(eventPaths = emptyList(), attributePaths = listOf(attributePath)) - - val response = controller.read(readRequest) - - if (response.successes.isEmpty()) { - logger.log(Level.WARNING, "Read command failed") - throw IllegalStateException("Read command failed with failures: ${response.failures}") - } - - logger.log(Level.FINE, "Read command succeeded") - - val attributeData = - response.successes.filterIsInstance().firstOrNull { - it.path.attributeId == ATTRIBUTE_ID - } - - requireNotNull(attributeData) { "Cumulativeenergyimported attribute not found in response" } - - // Decode the TLV data into the appropriate type - val tlvReader = TlvReader(attributeData.data) - val decodedValue: ElectricalEnergyMeasurementClusterEnergyMeasurementStruct? = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(AnonymousTag)) { - ElectricalEnergyMeasurementClusterEnergyMeasurementStruct.fromTlv(AnonymousTag, tlvReader) - } else { - null - } - } else { - tlvReader.getNull(AnonymousTag) - null - } - - return CumulativeEnergyImportedAttribute(decodedValue) - } - - suspend fun readCumulativeEnergyExportedAttribute(): CumulativeEnergyExportedAttribute { - val ATTRIBUTE_ID: UInt = 2u - - val attributePath = - AttributePath(endpointId = endpointId, clusterId = CLUSTER_ID, attributeId = ATTRIBUTE_ID) - - val readRequest = ReadRequest(eventPaths = emptyList(), attributePaths = listOf(attributePath)) - - val response = controller.read(readRequest) - - if (response.successes.isEmpty()) { - logger.log(Level.WARNING, "Read command failed") - throw IllegalStateException("Read command failed with failures: ${response.failures}") - } - - logger.log(Level.FINE, "Read command succeeded") - - val attributeData = - response.successes.filterIsInstance().firstOrNull { - it.path.attributeId == ATTRIBUTE_ID - } - - requireNotNull(attributeData) { "Cumulativeenergyexported attribute not found in response" } - - // Decode the TLV data into the appropriate type - val tlvReader = TlvReader(attributeData.data) - val decodedValue: ElectricalEnergyMeasurementClusterEnergyMeasurementStruct? = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(AnonymousTag)) { - ElectricalEnergyMeasurementClusterEnergyMeasurementStruct.fromTlv(AnonymousTag, tlvReader) - } else { - null - } - } else { - tlvReader.getNull(AnonymousTag) - null - } - - return CumulativeEnergyExportedAttribute(decodedValue) - } - - suspend fun readPeriodicEnergyImportedAttribute(): PeriodicEnergyImportedAttribute { - val ATTRIBUTE_ID: UInt = 3u - - val attributePath = - AttributePath(endpointId = endpointId, clusterId = CLUSTER_ID, attributeId = ATTRIBUTE_ID) - - val readRequest = ReadRequest(eventPaths = emptyList(), attributePaths = listOf(attributePath)) - - val response = controller.read(readRequest) - - if (response.successes.isEmpty()) { - logger.log(Level.WARNING, "Read command failed") - throw IllegalStateException("Read command failed with failures: ${response.failures}") - } - - logger.log(Level.FINE, "Read command succeeded") - - val attributeData = - response.successes.filterIsInstance().firstOrNull { - it.path.attributeId == ATTRIBUTE_ID - } - - requireNotNull(attributeData) { "Periodicenergyimported attribute not found in response" } - - // Decode the TLV data into the appropriate type - val tlvReader = TlvReader(attributeData.data) - val decodedValue: ElectricalEnergyMeasurementClusterEnergyMeasurementStruct? = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(AnonymousTag)) { - ElectricalEnergyMeasurementClusterEnergyMeasurementStruct.fromTlv(AnonymousTag, tlvReader) - } else { - null - } - } else { - tlvReader.getNull(AnonymousTag) - null - } - - return PeriodicEnergyImportedAttribute(decodedValue) - } - - suspend fun readPeriodicEnergyExportedAttribute(): PeriodicEnergyExportedAttribute { - val ATTRIBUTE_ID: UInt = 4u - - val attributePath = - AttributePath(endpointId = endpointId, clusterId = CLUSTER_ID, attributeId = ATTRIBUTE_ID) - - val readRequest = ReadRequest(eventPaths = emptyList(), attributePaths = listOf(attributePath)) - - val response = controller.read(readRequest) - - if (response.successes.isEmpty()) { - logger.log(Level.WARNING, "Read command failed") - throw IllegalStateException("Read command failed with failures: ${response.failures}") - } - - logger.log(Level.FINE, "Read command succeeded") - - val attributeData = - response.successes.filterIsInstance().firstOrNull { - it.path.attributeId == ATTRIBUTE_ID - } - - requireNotNull(attributeData) { "Periodicenergyexported attribute not found in response" } - - // Decode the TLV data into the appropriate type - val tlvReader = TlvReader(attributeData.data) - val decodedValue: ElectricalEnergyMeasurementClusterEnergyMeasurementStruct? = - if (!tlvReader.isNull()) { - if (tlvReader.isNextTag(AnonymousTag)) { - ElectricalEnergyMeasurementClusterEnergyMeasurementStruct.fromTlv(AnonymousTag, tlvReader) - } else { - null - } - } else { - tlvReader.getNull(AnonymousTag) - null - } - - return PeriodicEnergyExportedAttribute(decodedValue) - } - - suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute { - val ATTRIBUTE_ID: UInt = 65528u - - val attributePath = - AttributePath(endpointId = endpointId, clusterId = CLUSTER_ID, attributeId = ATTRIBUTE_ID) - - val readRequest = ReadRequest(eventPaths = emptyList(), attributePaths = listOf(attributePath)) - - val response = controller.read(readRequest) - - if (response.successes.isEmpty()) { - logger.log(Level.WARNING, "Read command failed") - throw IllegalStateException("Read command failed with failures: ${response.failures}") - } - - logger.log(Level.FINE, "Read command succeeded") - - val attributeData = - response.successes.filterIsInstance().firstOrNull { - it.path.attributeId == ATTRIBUTE_ID - } - - requireNotNull(attributeData) { "Generatedcommandlist attribute not found in response" } - - // Decode the TLV data into the appropriate type - val tlvReader = TlvReader(attributeData.data) - val decodedValue: List = - buildList { - tlvReader.enterArray(AnonymousTag) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - - return GeneratedCommandListAttribute(decodedValue) - } - - suspend fun readAcceptedCommandListAttribute(): AcceptedCommandListAttribute { - val ATTRIBUTE_ID: UInt = 65529u - - val attributePath = - AttributePath(endpointId = endpointId, clusterId = CLUSTER_ID, attributeId = ATTRIBUTE_ID) - - val readRequest = ReadRequest(eventPaths = emptyList(), attributePaths = listOf(attributePath)) - - val response = controller.read(readRequest) - - if (response.successes.isEmpty()) { - logger.log(Level.WARNING, "Read command failed") - throw IllegalStateException("Read command failed with failures: ${response.failures}") - } - - logger.log(Level.FINE, "Read command succeeded") - - val attributeData = - response.successes.filterIsInstance().firstOrNull { - it.path.attributeId == ATTRIBUTE_ID - } - - requireNotNull(attributeData) { "Acceptedcommandlist attribute not found in response" } - - // Decode the TLV data into the appropriate type - val tlvReader = TlvReader(attributeData.data) - val decodedValue: List = - buildList { - tlvReader.enterArray(AnonymousTag) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - - return AcceptedCommandListAttribute(decodedValue) - } - - suspend fun readEventListAttribute(): EventListAttribute { - val ATTRIBUTE_ID: UInt = 65530u - - val attributePath = - AttributePath(endpointId = endpointId, clusterId = CLUSTER_ID, attributeId = ATTRIBUTE_ID) - - val readRequest = ReadRequest(eventPaths = emptyList(), attributePaths = listOf(attributePath)) - - val response = controller.read(readRequest) - - if (response.successes.isEmpty()) { - logger.log(Level.WARNING, "Read command failed") - throw IllegalStateException("Read command failed with failures: ${response.failures}") - } - - logger.log(Level.FINE, "Read command succeeded") - - val attributeData = - response.successes.filterIsInstance().firstOrNull { - it.path.attributeId == ATTRIBUTE_ID - } - - requireNotNull(attributeData) { "Eventlist attribute not found in response" } - - // Decode the TLV data into the appropriate type - val tlvReader = TlvReader(attributeData.data) - val decodedValue: List = - buildList { - tlvReader.enterArray(AnonymousTag) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - - return EventListAttribute(decodedValue) - } - - suspend fun readAttributeListAttribute(): AttributeListAttribute { - val ATTRIBUTE_ID: UInt = 65531u - - val attributePath = - AttributePath(endpointId = endpointId, clusterId = CLUSTER_ID, attributeId = ATTRIBUTE_ID) - - val readRequest = ReadRequest(eventPaths = emptyList(), attributePaths = listOf(attributePath)) - - val response = controller.read(readRequest) - - if (response.successes.isEmpty()) { - logger.log(Level.WARNING, "Read command failed") - throw IllegalStateException("Read command failed with failures: ${response.failures}") - } - - logger.log(Level.FINE, "Read command succeeded") - - val attributeData = - response.successes.filterIsInstance().firstOrNull { - it.path.attributeId == ATTRIBUTE_ID - } - - requireNotNull(attributeData) { "Attributelist attribute not found in response" } - - // Decode the TLV data into the appropriate type - val tlvReader = TlvReader(attributeData.data) - val decodedValue: List = - buildList { - tlvReader.enterArray(AnonymousTag) - while (!tlvReader.isEndOfContainer()) { - add(tlvReader.getUInt(AnonymousTag)) - } - tlvReader.exitContainer() - } - - return AttributeListAttribute(decodedValue) - } - - suspend fun readFeatureMapAttribute(): UInt { - val ATTRIBUTE_ID: UInt = 65532u - - val attributePath = - AttributePath(endpointId = endpointId, clusterId = CLUSTER_ID, attributeId = ATTRIBUTE_ID) - - val readRequest = ReadRequest(eventPaths = emptyList(), attributePaths = listOf(attributePath)) - - val response = controller.read(readRequest) - - if (response.successes.isEmpty()) { - logger.log(Level.WARNING, "Read command failed") - throw IllegalStateException("Read command failed with failures: ${response.failures}") - } - - logger.log(Level.FINE, "Read command succeeded") - - val attributeData = - response.successes.filterIsInstance().firstOrNull { - it.path.attributeId == ATTRIBUTE_ID - } - - requireNotNull(attributeData) { "Featuremap attribute not found in response" } - - // Decode the TLV data into the appropriate type - val tlvReader = TlvReader(attributeData.data) - val decodedValue: UInt = tlvReader.getUInt(AnonymousTag) - - return decodedValue - } - - suspend fun readClusterRevisionAttribute(): UShort { - val ATTRIBUTE_ID: UInt = 65533u - - val attributePath = - AttributePath(endpointId = endpointId, clusterId = CLUSTER_ID, attributeId = ATTRIBUTE_ID) - - val readRequest = ReadRequest(eventPaths = emptyList(), attributePaths = listOf(attributePath)) - - val response = controller.read(readRequest) - - if (response.successes.isEmpty()) { - logger.log(Level.WARNING, "Read command failed") - throw IllegalStateException("Read command failed with failures: ${response.failures}") - } - - logger.log(Level.FINE, "Read command succeeded") - - val attributeData = - response.successes.filterIsInstance().firstOrNull { - it.path.attributeId == ATTRIBUTE_ID - } - - requireNotNull(attributeData) { "Clusterrevision attribute not found in response" } - - // Decode the TLV data into the appropriate type - val tlvReader = TlvReader(attributeData.data) - val decodedValue: UShort = tlvReader.getUShort(AnonymousTag) - - return decodedValue - } - - companion object { - private val logger = Logger.getLogger(ElectricalEnergyMeasurementCluster::class.java.name) - const val CLUSTER_ID: UInt = 145u - } -} diff --git a/src/controller/java/generated/java/matter/devicecontroller/cluster/files.gni b/src/controller/java/generated/java/matter/devicecontroller/cluster/files.gni deleted file mode 100644 index 16fa341cf3050c..00000000000000 --- a/src/controller/java/generated/java/matter/devicecontroller/cluster/files.gni +++ /dev/null @@ -1,318 +0,0 @@ -import("//build_overrides/build.gni") -import("//build_overrides/chip.gni") - -matter_structs_sources = [ - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlEntryStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlExtensionStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AccessControlClusterAccessControlTargetStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterActionStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActionsClusterEndpointListStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ActivatedCarbonFilterMonitoringClusterReplacementProductStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationBasicClusterApplicationStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationEPStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ApplicationLauncherClusterApplicationStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/AudioOutputClusterOutputInfoStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterCapabilityMinimaStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BasicInformationClusterProductAppearanceStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BindingClusterTargetStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/BridgedDeviceBasicInformationClusterProductAppearanceStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterAdditionalInfoStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterChannelInfoStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterChannelPagingStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterLineupInfoStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterPageTokenStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterProgramCastStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterProgramCategoryStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterProgramStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ChannelClusterSeriesInfoStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentControlClusterRatingNameStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterAdditionalInfoStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterBrandingInformationStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterContentSearchStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterDimensionStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterParameterStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterPlaybackPreferencesStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterStyleInformationStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ContentLauncherClusterTrackPreferenceStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterAverageLoadControlStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterDutyCycleControlStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterHeatingSourceControlStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlEventTransitionStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterLoadControlProgramStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterPowerSavingsControlStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DemandResponseLoadControlClusterTemperatureControlStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterDeviceTypeStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DescriptorClusterSemanticTagStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DeviceEnergyManagementClusterConstraintsStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DeviceEnergyManagementClusterCostStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DeviceEnergyManagementClusterForecastStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DeviceEnergyManagementClusterPowerAdjustStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DeviceEnergyManagementClusterSlotAdjustmentStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DeviceEnergyManagementClusterSlotStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeOptionStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DishwasherModeClusterModeTagStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/DoorLockClusterCredentialStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ElectricalEnergyMeasurementClusterEnergyMeasurementStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ElectricalEnergyMeasurementClusterMeasurementAccuracyRangeStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ElectricalEnergyMeasurementClusterMeasurementAccuracyStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/EnergyEvseClusterChargingTargetStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/FixedLabelClusterLabelStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralCommissioningClusterBasicCommissioningInfo.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GeneralDiagnosticsClusterNetworkInterface.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupInfoMapStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeyMapStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/GroupKeyManagementClusterGroupKeySetStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/HepaFilterMonitoringClusterReplacementProductStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/IcdManagementClusterMonitoringRegistrationStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeOptionStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/LaundryWasherModeClusterModeTagStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaInputClusterInputInfoStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaPlaybackClusterPlaybackPositionStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaPlaybackClusterTrackAttributesStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MediaPlaybackClusterTrackStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeOptionStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/MicrowaveOvenModeClusterModeTagStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterModeOptionStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ModeSelectClusterSemanticTagStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterNetworkInfoStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterThreadInterfaceScanResultStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/NetworkCommissioningClusterWiFiInterfaceScanResultStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterFabricDescriptorStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalCredentialsClusterNOCStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterErrorStateStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OperationalStateClusterOperationalStateStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OtaSoftwareUpdateRequestorClusterProviderLocation.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OvenCavityOperationalStateClusterErrorStateStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OvenCavityOperationalStateClusterOperationalStateStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OvenModeClusterModeOptionStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/OvenModeClusterModeTagStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatChargeFaultChangeType.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterBatFaultChangeType.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/PowerSourceClusterWiredFaultChangeType.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeOptionStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RefrigeratorAndTemperatureControlledCabinetModeClusterModeTagStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeOptionStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcCleanModeClusterModeTagStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterErrorStateStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcOperationalStateClusterOperationalStateStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeOptionStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/RvcRunModeClusterModeTagStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterAttributeValuePair.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterExtensionFieldSet.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ScenesClusterSceneInfoStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/SoftwareDiagnosticsClusterThreadMetricsStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TargetNavigatorClusterTargetInfoStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterPresetStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterPresetTypeStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterQueuedPresetStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleTransitionStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterScheduleTypeStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThermostatClusterWeeklyScheduleTransitionStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterNeighborTableStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterOperationalDatasetComponents.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterRouteTableStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/ThreadNetworkDiagnosticsClusterSecurityPolicy.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterDSTOffsetStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTimeZoneStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/TimeSynchronizationClusterTrustedTimeSourceStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterDoubleNestedStructList.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNestedStructList.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterNullablesAndOptionalsStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterSimpleStruct.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestFabricScoped.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UnitTestingClusterTestListStructOctet.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/structs/UserLabelClusterLabelStruct.kt", -] - -matter_eventstructs_sources = [ - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlEntryChangedEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccessControlClusterAccessControlExtensionChangedEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/AccountLoginClusterLoggedOutEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterActionFailedEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ActionsClusterStateChangedEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterLeaveEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterReachableChangedEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BasicInformationClusterStartUpEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BooleanSensorConfigurationClusterAlarmsStateChangedEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BooleanStateClusterStateChangeEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterReachableChangedEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/BridgedDeviceBasicInformationClusterStartUpEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DemandResponseLoadControlClusterLoadControlEventStatusChangeEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DeviceEnergyManagementClusterPowerAdjustEndEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DishwasherAlarmClusterNotifyEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorLockAlarmEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterDoorStateChangeEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockOperationErrorEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/DoorLockClusterLockUserChangeEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ElectricalEnergyMeasurementClusterCumulativeEnergyMeasuredEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ElectricalEnergyMeasurementClusterPeriodicEnergyMeasuredEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/EnergyEvseClusterEnergyTransferStartedEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/EnergyEvseClusterEnergyTransferStoppedEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/EnergyEvseClusterEVConnectedEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/EnergyEvseClusterEVNotDetectedEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/EnergyEvseClusterFaultEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/EnergyEvseClusterRFIDEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterBootReasonEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterHardwareFaultChangeEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterNetworkFaultChangeEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/GeneralDiagnosticsClusterRadioFaultChangeEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/MediaPlaybackClusterStateChangedEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationalErrorEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OperationalStateClusterOperationCompletionEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterDownloadErrorEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterStateTransitionEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OtaSoftwareUpdateRequestorClusterVersionAppliedEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OvenCavityOperationalStateClusterOperationalErrorEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/OvenCavityOperationalStateClusterOperationCompletionEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatChargeFaultChangeEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterBatFaultChangeEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/PowerSourceClusterWiredFaultChangeEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RefrigeratorAlarmClusterNotifyEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationalErrorEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/RvcOperationalStateClusterOperationCompletionEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterCOAlarmEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectCOAlarmEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterInterconnectSmokeAlarmEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterLowBatteryEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SmokeCoAlarmClusterSmokeAlarmEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SoftwareDiagnosticsClusterSoftwareFaultEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterInitialPressEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongPressEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterLongReleaseEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressCompleteEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterMultiPressOngoingEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterShortReleaseEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/SwitchClusterSwitchLatchedEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TargetNavigatorClusterTargetUpdatedEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterConnectionStatusEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ThreadNetworkDiagnosticsClusterNetworkFaultChangeEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterDSTStatusEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/TimeSynchronizationClusterTimeZoneStatusEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestEventEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/UnitTestingClusterTestFabricScopedEventEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveFaultEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/ValveConfigurationAndControlClusterValveStateChangedEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterAssociationFailureEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterConnectionStatusEvent.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/eventstructs/WiFiNetworkDiagnosticsClusterDisconnectionEvent.kt", -] - -matter_clusters_sources = [ - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccessControlCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AccountLoginCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActionsCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ActivatedCarbonFilterMonitoringCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AdministratorCommissioningCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AirQualityCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationBasicCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ApplicationLauncherCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/AudioOutputCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BallastConfigurationCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BarrierControlCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BasicInformationCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BinaryInputBasicCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BindingCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanSensorConfigurationCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BooleanStateCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/BridgedDeviceBasicInformationCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonDioxideConcentrationMeasurementCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/CarbonMonoxideConcentrationMeasurementCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ChannelCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ColorControlCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ContentAppObserverCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ContentControlCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ContentLauncherCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DemandResponseLoadControlCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DescriptorCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DeviceEnergyManagementCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DiagnosticLogsCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherAlarmCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DishwasherModeCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/DoorLockCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ElectricalEnergyMeasurementCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ElectricalMeasurementCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/EnergyEvseCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/EthernetNetworkDiagnosticsCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FanControlCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FaultInjectionCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FixedLabelCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FlowMeasurementCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/FormaldehydeConcentrationMeasurementCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralCommissioningCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GeneralDiagnosticsCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupKeyManagementCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/GroupsCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/HepaFilterMonitoringCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IcdManagementCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IdentifyCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/IlluminanceMeasurementCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/KeypadInputCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryDryerControlsCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherControlsCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LaundryWasherModeCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LevelControlCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LocalizationConfigurationCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/LowPowerCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaInputCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MediaPlaybackCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenControlCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/MicrowaveOvenModeCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ModeSelectCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NetworkCommissioningCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/NitrogenDioxideConcentrationMeasurementCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OccupancySensingCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OnOffSwitchConfigurationCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalCredentialsCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OperationalStateCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateProviderCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OtaSoftwareUpdateRequestorCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OvenCavityOperationalStateCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OvenModeCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/OzoneConcentrationMeasurementCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm10ConcentrationMeasurementCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm1ConcentrationMeasurementCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/Pm25ConcentrationMeasurementCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PowerSourceConfigurationCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PressureMeasurementCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyConfigurationCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyDiscoveryCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ProxyValidCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PulseWidthModulationCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/PumpConfigurationAndControlCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RadonConcentrationMeasurementCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAlarmCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RefrigeratorAndTemperatureControlledCabinetModeCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RelativeHumidityMeasurementCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcCleanModeCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcOperationalStateCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/RvcRunModeCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SampleMeiCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ScenesCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SmokeCoAlarmCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SoftwareDiagnosticsCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/SwitchCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TargetNavigatorCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureControlCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TemperatureMeasurementCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThermostatUserInterfaceConfigurationCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ThreadNetworkDiagnosticsCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeFormatLocalizationCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimerCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TimeSynchronizationCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/TotalVolatileOrganicCompoundsConcentrationMeasurementCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitLocalizationCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UnitTestingCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/UserLabelCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/ValveConfigurationAndControlCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WakeOnLanCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WiFiNetworkDiagnosticsCluster.kt", - "${chip_root}/src/controller/java/generated/java/matter/devicecontroller/cluster/clusters/WindowCoveringCluster.kt", -] \ No newline at end of file diff --git a/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java b/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java deleted file mode 100644 index 99db5abbfecc9f..00000000000000 --- a/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java +++ /dev/null @@ -1,40492 +0,0 @@ -/* - * - * Copyright (c) 2022 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP -package chip.devicecontroller; - -import javax.annotation.Nullable; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Optional; - -public class ChipClusters { - - public interface DefaultClusterCallback { - void onSuccess(); - void onError(Exception error); - } - - public interface CharStringAttributeCallback { - /** Indicates a successful read for a CHAR_STRING attribute. */ - void onSuccess(String value); - void onError(Exception error); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public interface OctetStringAttributeCallback { - /** Indicates a successful read for an OCTET_STRING attribute. */ - void onSuccess(byte[] value); - void onError(Exception error); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public interface IntegerAttributeCallback { - void onSuccess(int value); - void onError(Exception error); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public interface LongAttributeCallback { - void onSuccess(long value); - void onError(Exception error); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public interface BooleanAttributeCallback { - void onSuccess(boolean value); - void onError(Exception error); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public interface FloatAttributeCallback { - void onSuccess(float value); - void onError(Exception error); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public interface DoubleAttributeCallback { - void onSuccess(double value); - void onError(Exception error); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public static abstract class BaseChipCluster { - protected long chipClusterPtr; - - public BaseChipCluster(long devicePtr, int endpointId) { - chipClusterPtr = initWithDevice(devicePtr, endpointId); - } - - /** - * Sets the timeout, in milliseconds, after which commands sent through this cluster will fail - * with a timeout (regardless of whether or not a response has been received). If set to an - * empty optional, the default timeout will be used. - */ - public void setCommandTimeout(Optional timeoutMillis) { - setCommandTimeout(chipClusterPtr, timeoutMillis); - } - - private native void setCommandTimeout(long clusterPtr, Optional timeoutMillis); - - /** Returns the current timeout (in milliseconds) for commands sent through this cluster. */ - public Optional getCommandTimeout() { - Optional timeout = getCommandTimeout(chipClusterPtr); - return timeout == null ? Optional.empty() : timeout; - } - - private native Optional getCommandTimeout(long clusterPtr); - - public abstract long initWithDevice(long devicePtr, int endpointId); - - public native void deleteCluster(long chipClusterPtr); - - @SuppressWarnings("deprecation") - protected void finalize() throws Throwable { - super.finalize(); - - if (chipClusterPtr != 0) { - deleteCluster(chipClusterPtr); - chipClusterPtr = 0; - } - } - } - - public static class IdentifyCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000003L; - - public IdentifyCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void identify(DefaultClusterCallback callback - , Integer identifyTime) { - identify(chipClusterPtr, callback, identifyTime, null); - } - - public void identify(DefaultClusterCallback callback - , Integer identifyTime - , int timedInvokeTimeoutMs) { - identify(chipClusterPtr, callback, identifyTime, timedInvokeTimeoutMs); - } - - public void triggerEffect(DefaultClusterCallback callback - , Integer effectIdentifier, Integer effectVariant) { - triggerEffect(chipClusterPtr, callback, effectIdentifier, effectVariant, null); - } - - public void triggerEffect(DefaultClusterCallback callback - , Integer effectIdentifier, Integer effectVariant - , int timedInvokeTimeoutMs) { - triggerEffect(chipClusterPtr, callback, effectIdentifier, effectVariant, timedInvokeTimeoutMs); - } - private native void identify(long chipClusterPtr, DefaultClusterCallback Callback - , Integer identifyTime - , @Nullable Integer timedInvokeTimeoutMs); - private native void triggerEffect(long chipClusterPtr, DefaultClusterCallback Callback - , Integer effectIdentifier, Integer effectVariant - , @Nullable Integer timedInvokeTimeoutMs); - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readIdentifyTimeAttribute( - IntegerAttributeCallback callback - ) { - readIdentifyTimeAttribute(chipClusterPtr, callback); - } - public void writeIdentifyTimeAttribute(DefaultClusterCallback callback, Integer value) { - writeIdentifyTimeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeIdentifyTimeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeIdentifyTimeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeIdentifyTimeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeIdentifyTimeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readIdentifyTypeAttribute( - IntegerAttributeCallback callback - ) { - readIdentifyTypeAttribute(chipClusterPtr, callback); - } - public void subscribeIdentifyTypeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeIdentifyTypeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readIdentifyTimeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeIdentifyTimeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeIdentifyTimeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readIdentifyTypeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeIdentifyTypeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class GroupsCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000004L; - - public GroupsCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void addGroup(AddGroupResponseCallback callback - , Integer groupID, String groupName) { - addGroup(chipClusterPtr, callback, groupID, groupName, null); - } - - public void addGroup(AddGroupResponseCallback callback - , Integer groupID, String groupName - , int timedInvokeTimeoutMs) { - addGroup(chipClusterPtr, callback, groupID, groupName, timedInvokeTimeoutMs); - } - - public void viewGroup(ViewGroupResponseCallback callback - , Integer groupID) { - viewGroup(chipClusterPtr, callback, groupID, null); - } - - public void viewGroup(ViewGroupResponseCallback callback - , Integer groupID - , int timedInvokeTimeoutMs) { - viewGroup(chipClusterPtr, callback, groupID, timedInvokeTimeoutMs); - } - - public void getGroupMembership(GetGroupMembershipResponseCallback callback - , ArrayList groupList) { - getGroupMembership(chipClusterPtr, callback, groupList, null); - } - - public void getGroupMembership(GetGroupMembershipResponseCallback callback - , ArrayList groupList - , int timedInvokeTimeoutMs) { - getGroupMembership(chipClusterPtr, callback, groupList, timedInvokeTimeoutMs); - } - - public void removeGroup(RemoveGroupResponseCallback callback - , Integer groupID) { - removeGroup(chipClusterPtr, callback, groupID, null); - } - - public void removeGroup(RemoveGroupResponseCallback callback - , Integer groupID - , int timedInvokeTimeoutMs) { - removeGroup(chipClusterPtr, callback, groupID, timedInvokeTimeoutMs); - } - - public void removeAllGroups(DefaultClusterCallback callback - ) { - removeAllGroups(chipClusterPtr, callback, null); - } - - public void removeAllGroups(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - removeAllGroups(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void addGroupIfIdentifying(DefaultClusterCallback callback - , Integer groupID, String groupName) { - addGroupIfIdentifying(chipClusterPtr, callback, groupID, groupName, null); - } - - public void addGroupIfIdentifying(DefaultClusterCallback callback - , Integer groupID, String groupName - , int timedInvokeTimeoutMs) { - addGroupIfIdentifying(chipClusterPtr, callback, groupID, groupName, timedInvokeTimeoutMs); - } - private native void addGroup(long chipClusterPtr, AddGroupResponseCallback Callback - , Integer groupID, String groupName - , @Nullable Integer timedInvokeTimeoutMs); - private native void viewGroup(long chipClusterPtr, ViewGroupResponseCallback Callback - , Integer groupID - , @Nullable Integer timedInvokeTimeoutMs); - private native void getGroupMembership(long chipClusterPtr, GetGroupMembershipResponseCallback Callback - , ArrayList groupList - , @Nullable Integer timedInvokeTimeoutMs); - private native void removeGroup(long chipClusterPtr, RemoveGroupResponseCallback Callback - , Integer groupID - , @Nullable Integer timedInvokeTimeoutMs); - private native void removeAllGroups(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void addGroupIfIdentifying(long chipClusterPtr, DefaultClusterCallback Callback - , Integer groupID, String groupName - , @Nullable Integer timedInvokeTimeoutMs); - public interface AddGroupResponseCallback { - void onSuccess(Integer status, Integer groupID); - - void onError(Exception error); - } - - public interface ViewGroupResponseCallback { - void onSuccess(Integer status, Integer groupID, String groupName); - - void onError(Exception error); - } - - public interface GetGroupMembershipResponseCallback { - void onSuccess(@Nullable Integer capacity, ArrayList groupList); - - void onError(Exception error); - } - - public interface RemoveGroupResponseCallback { - void onSuccess(Integer status, Integer groupID); - - void onError(Exception error); - } - - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readNameSupportAttribute( - IntegerAttributeCallback callback - ) { - readNameSupportAttribute(chipClusterPtr, callback); - } - public void subscribeNameSupportAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeNameSupportAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readNameSupportAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeNameSupportAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class ScenesCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000005L; - - public ScenesCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void addScene(AddSceneResponseCallback callback - , Integer groupID, Integer sceneID, Integer transitionTime, String sceneName, ArrayList extensionFieldSets) { - addScene(chipClusterPtr, callback, groupID, sceneID, transitionTime, sceneName, extensionFieldSets, null); - } - - public void addScene(AddSceneResponseCallback callback - , Integer groupID, Integer sceneID, Integer transitionTime, String sceneName, ArrayList extensionFieldSets - , int timedInvokeTimeoutMs) { - addScene(chipClusterPtr, callback, groupID, sceneID, transitionTime, sceneName, extensionFieldSets, timedInvokeTimeoutMs); - } - - public void viewScene(ViewSceneResponseCallback callback - , Integer groupID, Integer sceneID) { - viewScene(chipClusterPtr, callback, groupID, sceneID, null); - } - - public void viewScene(ViewSceneResponseCallback callback - , Integer groupID, Integer sceneID - , int timedInvokeTimeoutMs) { - viewScene(chipClusterPtr, callback, groupID, sceneID, timedInvokeTimeoutMs); - } - - public void removeScene(RemoveSceneResponseCallback callback - , Integer groupID, Integer sceneID) { - removeScene(chipClusterPtr, callback, groupID, sceneID, null); - } - - public void removeScene(RemoveSceneResponseCallback callback - , Integer groupID, Integer sceneID - , int timedInvokeTimeoutMs) { - removeScene(chipClusterPtr, callback, groupID, sceneID, timedInvokeTimeoutMs); - } - - public void removeAllScenes(RemoveAllScenesResponseCallback callback - , Integer groupID) { - removeAllScenes(chipClusterPtr, callback, groupID, null); - } - - public void removeAllScenes(RemoveAllScenesResponseCallback callback - , Integer groupID - , int timedInvokeTimeoutMs) { - removeAllScenes(chipClusterPtr, callback, groupID, timedInvokeTimeoutMs); - } - - public void storeScene(StoreSceneResponseCallback callback - , Integer groupID, Integer sceneID) { - storeScene(chipClusterPtr, callback, groupID, sceneID, null); - } - - public void storeScene(StoreSceneResponseCallback callback - , Integer groupID, Integer sceneID - , int timedInvokeTimeoutMs) { - storeScene(chipClusterPtr, callback, groupID, sceneID, timedInvokeTimeoutMs); - } - - public void recallScene(DefaultClusterCallback callback - , Integer groupID, Integer sceneID, @Nullable Optional transitionTime) { - recallScene(chipClusterPtr, callback, groupID, sceneID, transitionTime, null); - } - - public void recallScene(DefaultClusterCallback callback - , Integer groupID, Integer sceneID, @Nullable Optional transitionTime - , int timedInvokeTimeoutMs) { - recallScene(chipClusterPtr, callback, groupID, sceneID, transitionTime, timedInvokeTimeoutMs); - } - - public void getSceneMembership(GetSceneMembershipResponseCallback callback - , Integer groupID) { - getSceneMembership(chipClusterPtr, callback, groupID, null); - } - - public void getSceneMembership(GetSceneMembershipResponseCallback callback - , Integer groupID - , int timedInvokeTimeoutMs) { - getSceneMembership(chipClusterPtr, callback, groupID, timedInvokeTimeoutMs); - } - - public void enhancedAddScene(EnhancedAddSceneResponseCallback callback - , Integer groupID, Integer sceneID, Integer transitionTime, String sceneName, ArrayList extensionFieldSets) { - enhancedAddScene(chipClusterPtr, callback, groupID, sceneID, transitionTime, sceneName, extensionFieldSets, null); - } - - public void enhancedAddScene(EnhancedAddSceneResponseCallback callback - , Integer groupID, Integer sceneID, Integer transitionTime, String sceneName, ArrayList extensionFieldSets - , int timedInvokeTimeoutMs) { - enhancedAddScene(chipClusterPtr, callback, groupID, sceneID, transitionTime, sceneName, extensionFieldSets, timedInvokeTimeoutMs); - } - - public void enhancedViewScene(EnhancedViewSceneResponseCallback callback - , Integer groupID, Integer sceneID) { - enhancedViewScene(chipClusterPtr, callback, groupID, sceneID, null); - } - - public void enhancedViewScene(EnhancedViewSceneResponseCallback callback - , Integer groupID, Integer sceneID - , int timedInvokeTimeoutMs) { - enhancedViewScene(chipClusterPtr, callback, groupID, sceneID, timedInvokeTimeoutMs); - } - - public void copyScene(CopySceneResponseCallback callback - , Integer mode, Integer groupIdentifierFrom, Integer sceneIdentifierFrom, Integer groupIdentifierTo, Integer sceneIdentifierTo) { - copyScene(chipClusterPtr, callback, mode, groupIdentifierFrom, sceneIdentifierFrom, groupIdentifierTo, sceneIdentifierTo, null); - } - - public void copyScene(CopySceneResponseCallback callback - , Integer mode, Integer groupIdentifierFrom, Integer sceneIdentifierFrom, Integer groupIdentifierTo, Integer sceneIdentifierTo - , int timedInvokeTimeoutMs) { - copyScene(chipClusterPtr, callback, mode, groupIdentifierFrom, sceneIdentifierFrom, groupIdentifierTo, sceneIdentifierTo, timedInvokeTimeoutMs); - } - private native void addScene(long chipClusterPtr, AddSceneResponseCallback Callback - , Integer groupID, Integer sceneID, Integer transitionTime, String sceneName, ArrayList extensionFieldSets - , @Nullable Integer timedInvokeTimeoutMs); - private native void viewScene(long chipClusterPtr, ViewSceneResponseCallback Callback - , Integer groupID, Integer sceneID - , @Nullable Integer timedInvokeTimeoutMs); - private native void removeScene(long chipClusterPtr, RemoveSceneResponseCallback Callback - , Integer groupID, Integer sceneID - , @Nullable Integer timedInvokeTimeoutMs); - private native void removeAllScenes(long chipClusterPtr, RemoveAllScenesResponseCallback Callback - , Integer groupID - , @Nullable Integer timedInvokeTimeoutMs); - private native void storeScene(long chipClusterPtr, StoreSceneResponseCallback Callback - , Integer groupID, Integer sceneID - , @Nullable Integer timedInvokeTimeoutMs); - private native void recallScene(long chipClusterPtr, DefaultClusterCallback Callback - , Integer groupID, Integer sceneID, @Nullable Optional transitionTime - , @Nullable Integer timedInvokeTimeoutMs); - private native void getSceneMembership(long chipClusterPtr, GetSceneMembershipResponseCallback Callback - , Integer groupID - , @Nullable Integer timedInvokeTimeoutMs); - private native void enhancedAddScene(long chipClusterPtr, EnhancedAddSceneResponseCallback Callback - , Integer groupID, Integer sceneID, Integer transitionTime, String sceneName, ArrayList extensionFieldSets - , @Nullable Integer timedInvokeTimeoutMs); - private native void enhancedViewScene(long chipClusterPtr, EnhancedViewSceneResponseCallback Callback - , Integer groupID, Integer sceneID - , @Nullable Integer timedInvokeTimeoutMs); - private native void copyScene(long chipClusterPtr, CopySceneResponseCallback Callback - , Integer mode, Integer groupIdentifierFrom, Integer sceneIdentifierFrom, Integer groupIdentifierTo, Integer sceneIdentifierTo - , @Nullable Integer timedInvokeTimeoutMs); - public interface AddSceneResponseCallback { - void onSuccess(Integer status, Integer groupID, Integer sceneID); - - void onError(Exception error); - } - - public interface ViewSceneResponseCallback { - void onSuccess(Integer status, Integer groupID, Integer sceneID, Optional transitionTime, Optional sceneName, Optional> extensionFieldSets); - - void onError(Exception error); - } - - public interface RemoveSceneResponseCallback { - void onSuccess(Integer status, Integer groupID, Integer sceneID); - - void onError(Exception error); - } - - public interface RemoveAllScenesResponseCallback { - void onSuccess(Integer status, Integer groupID); - - void onError(Exception error); - } - - public interface StoreSceneResponseCallback { - void onSuccess(Integer status, Integer groupID, Integer sceneID); - - void onError(Exception error); - } - - public interface GetSceneMembershipResponseCallback { - void onSuccess(Integer status, @Nullable Integer capacity, Integer groupID, Optional> sceneList); - - void onError(Exception error); - } - - public interface EnhancedAddSceneResponseCallback { - void onSuccess(Integer status, Integer groupID, Integer sceneID); - - void onError(Exception error); - } - - public interface EnhancedViewSceneResponseCallback { - void onSuccess(Integer status, Integer groupID, Integer sceneID, Optional transitionTime, Optional sceneName, Optional> extensionFieldSets); - - void onError(Exception error); - } - - public interface CopySceneResponseCallback { - void onSuccess(Integer status, Integer groupIdentifierFrom, Integer sceneIdentifierFrom); - - void onError(Exception error); - } - - - public interface LastConfiguredByAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readSceneCountAttribute( - IntegerAttributeCallback callback - ) { - readSceneCountAttribute(chipClusterPtr, callback); - } - public void subscribeSceneCountAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSceneCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentSceneAttribute( - IntegerAttributeCallback callback - ) { - readCurrentSceneAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentSceneAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCurrentSceneAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentGroupAttribute( - IntegerAttributeCallback callback - ) { - readCurrentGroupAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentGroupAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCurrentGroupAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSceneValidAttribute( - BooleanAttributeCallback callback - ) { - readSceneValidAttribute(chipClusterPtr, callback); - } - public void subscribeSceneValidAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSceneValidAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNameSupportAttribute( - IntegerAttributeCallback callback - ) { - readNameSupportAttribute(chipClusterPtr, callback); - } - public void subscribeNameSupportAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeNameSupportAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLastConfiguredByAttribute( - LastConfiguredByAttributeCallback callback - ) { - readLastConfiguredByAttribute(chipClusterPtr, callback); - } - public void subscribeLastConfiguredByAttribute( - LastConfiguredByAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeLastConfiguredByAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSceneTableSizeAttribute( - IntegerAttributeCallback callback - ) { - readSceneTableSizeAttribute(chipClusterPtr, callback); - } - public void subscribeSceneTableSizeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSceneTableSizeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRemainingCapacityAttribute( - IntegerAttributeCallback callback - ) { - readRemainingCapacityAttribute(chipClusterPtr, callback); - } - public void subscribeRemainingCapacityAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRemainingCapacityAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readSceneCountAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeSceneCountAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readCurrentSceneAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeCurrentSceneAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readCurrentGroupAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeCurrentGroupAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSceneValidAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - private native void subscribeSceneValidAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readNameSupportAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeNameSupportAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLastConfiguredByAttribute(long chipClusterPtr, - LastConfiguredByAttributeCallback callback - ); - private native void subscribeLastConfiguredByAttribute(long chipClusterPtr, - LastConfiguredByAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readSceneTableSizeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeSceneTableSizeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRemainingCapacityAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRemainingCapacityAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class OnOffCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000006L; - - public OnOffCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void off(DefaultClusterCallback callback - ) { - off(chipClusterPtr, callback, null); - } - - public void off(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - off(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void on(DefaultClusterCallback callback - ) { - on(chipClusterPtr, callback, null); - } - - public void on(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - on(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void toggle(DefaultClusterCallback callback - ) { - toggle(chipClusterPtr, callback, null); - } - - public void toggle(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - toggle(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void offWithEffect(DefaultClusterCallback callback - , Integer effectIdentifier, Integer effectVariant) { - offWithEffect(chipClusterPtr, callback, effectIdentifier, effectVariant, null); - } - - public void offWithEffect(DefaultClusterCallback callback - , Integer effectIdentifier, Integer effectVariant - , int timedInvokeTimeoutMs) { - offWithEffect(chipClusterPtr, callback, effectIdentifier, effectVariant, timedInvokeTimeoutMs); - } - - public void onWithRecallGlobalScene(DefaultClusterCallback callback - ) { - onWithRecallGlobalScene(chipClusterPtr, callback, null); - } - - public void onWithRecallGlobalScene(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - onWithRecallGlobalScene(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void onWithTimedOff(DefaultClusterCallback callback - , Integer onOffControl, Integer onTime, Integer offWaitTime) { - onWithTimedOff(chipClusterPtr, callback, onOffControl, onTime, offWaitTime, null); - } - - public void onWithTimedOff(DefaultClusterCallback callback - , Integer onOffControl, Integer onTime, Integer offWaitTime - , int timedInvokeTimeoutMs) { - onWithTimedOff(chipClusterPtr, callback, onOffControl, onTime, offWaitTime, timedInvokeTimeoutMs); - } - private native void off(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void on(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void toggle(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void offWithEffect(long chipClusterPtr, DefaultClusterCallback Callback - , Integer effectIdentifier, Integer effectVariant - , @Nullable Integer timedInvokeTimeoutMs); - private native void onWithRecallGlobalScene(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void onWithTimedOff(long chipClusterPtr, DefaultClusterCallback Callback - , Integer onOffControl, Integer onTime, Integer offWaitTime - , @Nullable Integer timedInvokeTimeoutMs); - - public interface StartUpOnOffAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readOnOffAttribute( - BooleanAttributeCallback callback - ) { - readOnOffAttribute(chipClusterPtr, callback); - } - public void subscribeOnOffAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeOnOffAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGlobalSceneControlAttribute( - BooleanAttributeCallback callback - ) { - readGlobalSceneControlAttribute(chipClusterPtr, callback); - } - public void subscribeGlobalSceneControlAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeGlobalSceneControlAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOnTimeAttribute( - IntegerAttributeCallback callback - ) { - readOnTimeAttribute(chipClusterPtr, callback); - } - public void writeOnTimeAttribute(DefaultClusterCallback callback, Integer value) { - writeOnTimeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeOnTimeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeOnTimeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeOnTimeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeOnTimeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOffWaitTimeAttribute( - IntegerAttributeCallback callback - ) { - readOffWaitTimeAttribute(chipClusterPtr, callback); - } - public void writeOffWaitTimeAttribute(DefaultClusterCallback callback, Integer value) { - writeOffWaitTimeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeOffWaitTimeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeOffWaitTimeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeOffWaitTimeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeOffWaitTimeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readStartUpOnOffAttribute( - StartUpOnOffAttributeCallback callback - ) { - readStartUpOnOffAttribute(chipClusterPtr, callback); - } - public void writeStartUpOnOffAttribute(DefaultClusterCallback callback, Integer value) { - writeStartUpOnOffAttribute(chipClusterPtr, callback, value, null); - } - - public void writeStartUpOnOffAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeStartUpOnOffAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeStartUpOnOffAttribute( - StartUpOnOffAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeStartUpOnOffAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readOnOffAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - private native void subscribeOnOffAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGlobalSceneControlAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - private native void subscribeGlobalSceneControlAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readOnTimeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeOnTimeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeOnTimeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readOffWaitTimeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeOffWaitTimeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeOffWaitTimeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readStartUpOnOffAttribute(long chipClusterPtr, - StartUpOnOffAttributeCallback callback - ); - - private native void writeStartUpOnOffAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeStartUpOnOffAttribute(long chipClusterPtr, - StartUpOnOffAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class OnOffSwitchConfigurationCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000007L; - - public OnOffSwitchConfigurationCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readSwitchTypeAttribute( - IntegerAttributeCallback callback - ) { - readSwitchTypeAttribute(chipClusterPtr, callback); - } - public void subscribeSwitchTypeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSwitchTypeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSwitchActionsAttribute( - IntegerAttributeCallback callback - ) { - readSwitchActionsAttribute(chipClusterPtr, callback); - } - public void writeSwitchActionsAttribute(DefaultClusterCallback callback, Integer value) { - writeSwitchActionsAttribute(chipClusterPtr, callback, value, null); - } - - public void writeSwitchActionsAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeSwitchActionsAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeSwitchActionsAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSwitchActionsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readSwitchTypeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeSwitchTypeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSwitchActionsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeSwitchActionsAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeSwitchActionsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class LevelControlCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000008L; - - public LevelControlCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void moveToLevel(DefaultClusterCallback callback - , Integer level, @Nullable Integer transitionTime, Integer optionsMask, Integer optionsOverride) { - moveToLevel(chipClusterPtr, callback, level, transitionTime, optionsMask, optionsOverride, null); - } - - public void moveToLevel(DefaultClusterCallback callback - , Integer level, @Nullable Integer transitionTime, Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - moveToLevel(chipClusterPtr, callback, level, transitionTime, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void move(DefaultClusterCallback callback - , Integer moveMode, @Nullable Integer rate, Integer optionsMask, Integer optionsOverride) { - move(chipClusterPtr, callback, moveMode, rate, optionsMask, optionsOverride, null); - } - - public void move(DefaultClusterCallback callback - , Integer moveMode, @Nullable Integer rate, Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - move(chipClusterPtr, callback, moveMode, rate, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void step(DefaultClusterCallback callback - , Integer stepMode, Integer stepSize, @Nullable Integer transitionTime, Integer optionsMask, Integer optionsOverride) { - step(chipClusterPtr, callback, stepMode, stepSize, transitionTime, optionsMask, optionsOverride, null); - } - - public void step(DefaultClusterCallback callback - , Integer stepMode, Integer stepSize, @Nullable Integer transitionTime, Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - step(chipClusterPtr, callback, stepMode, stepSize, transitionTime, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void stop(DefaultClusterCallback callback - , Integer optionsMask, Integer optionsOverride) { - stop(chipClusterPtr, callback, optionsMask, optionsOverride, null); - } - - public void stop(DefaultClusterCallback callback - , Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - stop(chipClusterPtr, callback, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void moveToLevelWithOnOff(DefaultClusterCallback callback - , Integer level, @Nullable Integer transitionTime, Integer optionsMask, Integer optionsOverride) { - moveToLevelWithOnOff(chipClusterPtr, callback, level, transitionTime, optionsMask, optionsOverride, null); - } - - public void moveToLevelWithOnOff(DefaultClusterCallback callback - , Integer level, @Nullable Integer transitionTime, Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - moveToLevelWithOnOff(chipClusterPtr, callback, level, transitionTime, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void moveWithOnOff(DefaultClusterCallback callback - , Integer moveMode, @Nullable Integer rate, Integer optionsMask, Integer optionsOverride) { - moveWithOnOff(chipClusterPtr, callback, moveMode, rate, optionsMask, optionsOverride, null); - } - - public void moveWithOnOff(DefaultClusterCallback callback - , Integer moveMode, @Nullable Integer rate, Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - moveWithOnOff(chipClusterPtr, callback, moveMode, rate, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void stepWithOnOff(DefaultClusterCallback callback - , Integer stepMode, Integer stepSize, @Nullable Integer transitionTime, Integer optionsMask, Integer optionsOverride) { - stepWithOnOff(chipClusterPtr, callback, stepMode, stepSize, transitionTime, optionsMask, optionsOverride, null); - } - - public void stepWithOnOff(DefaultClusterCallback callback - , Integer stepMode, Integer stepSize, @Nullable Integer transitionTime, Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - stepWithOnOff(chipClusterPtr, callback, stepMode, stepSize, transitionTime, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void stopWithOnOff(DefaultClusterCallback callback - , Integer optionsMask, Integer optionsOverride) { - stopWithOnOff(chipClusterPtr, callback, optionsMask, optionsOverride, null); - } - - public void stopWithOnOff(DefaultClusterCallback callback - , Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - stopWithOnOff(chipClusterPtr, callback, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void moveToClosestFrequency(DefaultClusterCallback callback - , Integer frequency) { - moveToClosestFrequency(chipClusterPtr, callback, frequency, null); - } - - public void moveToClosestFrequency(DefaultClusterCallback callback - , Integer frequency - , int timedInvokeTimeoutMs) { - moveToClosestFrequency(chipClusterPtr, callback, frequency, timedInvokeTimeoutMs); - } - private native void moveToLevel(long chipClusterPtr, DefaultClusterCallback Callback - , Integer level, @Nullable Integer transitionTime, Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void move(long chipClusterPtr, DefaultClusterCallback Callback - , Integer moveMode, @Nullable Integer rate, Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void step(long chipClusterPtr, DefaultClusterCallback Callback - , Integer stepMode, Integer stepSize, @Nullable Integer transitionTime, Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void stop(long chipClusterPtr, DefaultClusterCallback Callback - , Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void moveToLevelWithOnOff(long chipClusterPtr, DefaultClusterCallback Callback - , Integer level, @Nullable Integer transitionTime, Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void moveWithOnOff(long chipClusterPtr, DefaultClusterCallback Callback - , Integer moveMode, @Nullable Integer rate, Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void stepWithOnOff(long chipClusterPtr, DefaultClusterCallback Callback - , Integer stepMode, Integer stepSize, @Nullable Integer transitionTime, Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void stopWithOnOff(long chipClusterPtr, DefaultClusterCallback Callback - , Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void moveToClosestFrequency(long chipClusterPtr, DefaultClusterCallback Callback - , Integer frequency - , @Nullable Integer timedInvokeTimeoutMs); - - public interface CurrentLevelAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface OnLevelAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface OnTransitionTimeAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface OffTransitionTimeAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface DefaultMoveRateAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface StartUpCurrentLevelAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readCurrentLevelAttribute( - CurrentLevelAttributeCallback callback - ) { - readCurrentLevelAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentLevelAttribute( - CurrentLevelAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeCurrentLevelAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRemainingTimeAttribute( - IntegerAttributeCallback callback - ) { - readRemainingTimeAttribute(chipClusterPtr, callback); - } - public void subscribeRemainingTimeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRemainingTimeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinLevelAttribute( - IntegerAttributeCallback callback - ) { - readMinLevelAttribute(chipClusterPtr, callback); - } - public void subscribeMinLevelAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMinLevelAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxLevelAttribute( - IntegerAttributeCallback callback - ) { - readMaxLevelAttribute(chipClusterPtr, callback); - } - public void subscribeMaxLevelAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMaxLevelAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentFrequencyAttribute( - IntegerAttributeCallback callback - ) { - readCurrentFrequencyAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentFrequencyAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCurrentFrequencyAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinFrequencyAttribute( - IntegerAttributeCallback callback - ) { - readMinFrequencyAttribute(chipClusterPtr, callback); - } - public void subscribeMinFrequencyAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMinFrequencyAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxFrequencyAttribute( - IntegerAttributeCallback callback - ) { - readMaxFrequencyAttribute(chipClusterPtr, callback); - } - public void subscribeMaxFrequencyAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMaxFrequencyAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOptionsAttribute( - IntegerAttributeCallback callback - ) { - readOptionsAttribute(chipClusterPtr, callback); - } - public void writeOptionsAttribute(DefaultClusterCallback callback, Integer value) { - writeOptionsAttribute(chipClusterPtr, callback, value, null); - } - - public void writeOptionsAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeOptionsAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeOptionsAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeOptionsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOnOffTransitionTimeAttribute( - IntegerAttributeCallback callback - ) { - readOnOffTransitionTimeAttribute(chipClusterPtr, callback); - } - public void writeOnOffTransitionTimeAttribute(DefaultClusterCallback callback, Integer value) { - writeOnOffTransitionTimeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeOnOffTransitionTimeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeOnOffTransitionTimeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeOnOffTransitionTimeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeOnOffTransitionTimeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOnLevelAttribute( - OnLevelAttributeCallback callback - ) { - readOnLevelAttribute(chipClusterPtr, callback); - } - public void writeOnLevelAttribute(DefaultClusterCallback callback, Integer value) { - writeOnLevelAttribute(chipClusterPtr, callback, value, null); - } - - public void writeOnLevelAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeOnLevelAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeOnLevelAttribute( - OnLevelAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeOnLevelAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOnTransitionTimeAttribute( - OnTransitionTimeAttributeCallback callback - ) { - readOnTransitionTimeAttribute(chipClusterPtr, callback); - } - public void writeOnTransitionTimeAttribute(DefaultClusterCallback callback, Integer value) { - writeOnTransitionTimeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeOnTransitionTimeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeOnTransitionTimeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeOnTransitionTimeAttribute( - OnTransitionTimeAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeOnTransitionTimeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOffTransitionTimeAttribute( - OffTransitionTimeAttributeCallback callback - ) { - readOffTransitionTimeAttribute(chipClusterPtr, callback); - } - public void writeOffTransitionTimeAttribute(DefaultClusterCallback callback, Integer value) { - writeOffTransitionTimeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeOffTransitionTimeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeOffTransitionTimeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeOffTransitionTimeAttribute( - OffTransitionTimeAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeOffTransitionTimeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDefaultMoveRateAttribute( - DefaultMoveRateAttributeCallback callback - ) { - readDefaultMoveRateAttribute(chipClusterPtr, callback); - } - public void writeDefaultMoveRateAttribute(DefaultClusterCallback callback, Integer value) { - writeDefaultMoveRateAttribute(chipClusterPtr, callback, value, null); - } - - public void writeDefaultMoveRateAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeDefaultMoveRateAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeDefaultMoveRateAttribute( - DefaultMoveRateAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeDefaultMoveRateAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readStartUpCurrentLevelAttribute( - StartUpCurrentLevelAttributeCallback callback - ) { - readStartUpCurrentLevelAttribute(chipClusterPtr, callback); - } - public void writeStartUpCurrentLevelAttribute(DefaultClusterCallback callback, Integer value) { - writeStartUpCurrentLevelAttribute(chipClusterPtr, callback, value, null); - } - - public void writeStartUpCurrentLevelAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeStartUpCurrentLevelAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeStartUpCurrentLevelAttribute( - StartUpCurrentLevelAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeStartUpCurrentLevelAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readCurrentLevelAttribute(long chipClusterPtr, - CurrentLevelAttributeCallback callback - ); - private native void subscribeCurrentLevelAttribute(long chipClusterPtr, - CurrentLevelAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readRemainingTimeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRemainingTimeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMinLevelAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMinLevelAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMaxLevelAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMaxLevelAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readCurrentFrequencyAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeCurrentFrequencyAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMinFrequencyAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMinFrequencyAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMaxFrequencyAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMaxFrequencyAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readOptionsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeOptionsAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeOptionsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readOnOffTransitionTimeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeOnOffTransitionTimeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeOnOffTransitionTimeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readOnLevelAttribute(long chipClusterPtr, - OnLevelAttributeCallback callback - ); - - private native void writeOnLevelAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeOnLevelAttribute(long chipClusterPtr, - OnLevelAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readOnTransitionTimeAttribute(long chipClusterPtr, - OnTransitionTimeAttributeCallback callback - ); - - private native void writeOnTransitionTimeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeOnTransitionTimeAttribute(long chipClusterPtr, - OnTransitionTimeAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readOffTransitionTimeAttribute(long chipClusterPtr, - OffTransitionTimeAttributeCallback callback - ); - - private native void writeOffTransitionTimeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeOffTransitionTimeAttribute(long chipClusterPtr, - OffTransitionTimeAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readDefaultMoveRateAttribute(long chipClusterPtr, - DefaultMoveRateAttributeCallback callback - ); - - private native void writeDefaultMoveRateAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeDefaultMoveRateAttribute(long chipClusterPtr, - DefaultMoveRateAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readStartUpCurrentLevelAttribute(long chipClusterPtr, - StartUpCurrentLevelAttributeCallback callback - ); - - private native void writeStartUpCurrentLevelAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeStartUpCurrentLevelAttribute(long chipClusterPtr, - StartUpCurrentLevelAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class BinaryInputBasicCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000000FL; - - public BinaryInputBasicCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readActiveTextAttribute( - CharStringAttributeCallback callback - ) { - readActiveTextAttribute(chipClusterPtr, callback); - } - public void writeActiveTextAttribute(DefaultClusterCallback callback, String value) { - writeActiveTextAttribute(chipClusterPtr, callback, value, null); - } - - public void writeActiveTextAttribute(DefaultClusterCallback callback, String value, int timedWriteTimeoutMs) { - writeActiveTextAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeActiveTextAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeActiveTextAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDescriptionAttribute( - CharStringAttributeCallback callback - ) { - readDescriptionAttribute(chipClusterPtr, callback); - } - public void writeDescriptionAttribute(DefaultClusterCallback callback, String value) { - writeDescriptionAttribute(chipClusterPtr, callback, value, null); - } - - public void writeDescriptionAttribute(DefaultClusterCallback callback, String value, int timedWriteTimeoutMs) { - writeDescriptionAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeDescriptionAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDescriptionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInactiveTextAttribute( - CharStringAttributeCallback callback - ) { - readInactiveTextAttribute(chipClusterPtr, callback); - } - public void writeInactiveTextAttribute(DefaultClusterCallback callback, String value) { - writeInactiveTextAttribute(chipClusterPtr, callback, value, null); - } - - public void writeInactiveTextAttribute(DefaultClusterCallback callback, String value, int timedWriteTimeoutMs) { - writeInactiveTextAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeInactiveTextAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInactiveTextAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOutOfServiceAttribute( - BooleanAttributeCallback callback - ) { - readOutOfServiceAttribute(chipClusterPtr, callback); - } - public void writeOutOfServiceAttribute(DefaultClusterCallback callback, Boolean value) { - writeOutOfServiceAttribute(chipClusterPtr, callback, value, null); - } - - public void writeOutOfServiceAttribute(DefaultClusterCallback callback, Boolean value, int timedWriteTimeoutMs) { - writeOutOfServiceAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeOutOfServiceAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeOutOfServiceAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPolarityAttribute( - IntegerAttributeCallback callback - ) { - readPolarityAttribute(chipClusterPtr, callback); - } - public void subscribePolarityAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePolarityAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPresentValueAttribute( - BooleanAttributeCallback callback - ) { - readPresentValueAttribute(chipClusterPtr, callback); - } - public void writePresentValueAttribute(DefaultClusterCallback callback, Boolean value) { - writePresentValueAttribute(chipClusterPtr, callback, value, null); - } - - public void writePresentValueAttribute(DefaultClusterCallback callback, Boolean value, int timedWriteTimeoutMs) { - writePresentValueAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribePresentValueAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePresentValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readReliabilityAttribute( - IntegerAttributeCallback callback - ) { - readReliabilityAttribute(chipClusterPtr, callback); - } - public void writeReliabilityAttribute(DefaultClusterCallback callback, Integer value) { - writeReliabilityAttribute(chipClusterPtr, callback, value, null); - } - - public void writeReliabilityAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeReliabilityAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeReliabilityAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeReliabilityAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readStatusFlagsAttribute( - IntegerAttributeCallback callback - ) { - readStatusFlagsAttribute(chipClusterPtr, callback); - } - public void subscribeStatusFlagsAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeStatusFlagsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readApplicationTypeAttribute( - LongAttributeCallback callback - ) { - readApplicationTypeAttribute(chipClusterPtr, callback); - } - public void subscribeApplicationTypeAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeApplicationTypeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readActiveTextAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - - private native void writeActiveTextAttribute(long chipClusterPtr, DefaultClusterCallback callback, String value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeActiveTextAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDescriptionAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - - private native void writeDescriptionAttribute(long chipClusterPtr, DefaultClusterCallback callback, String value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeDescriptionAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInactiveTextAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - - private native void writeInactiveTextAttribute(long chipClusterPtr, DefaultClusterCallback callback, String value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeInactiveTextAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readOutOfServiceAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - - private native void writeOutOfServiceAttribute(long chipClusterPtr, DefaultClusterCallback callback, Boolean value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeOutOfServiceAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPolarityAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePolarityAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPresentValueAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - - private native void writePresentValueAttribute(long chipClusterPtr, DefaultClusterCallback callback, Boolean value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribePresentValueAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readReliabilityAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeReliabilityAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeReliabilityAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readStatusFlagsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeStatusFlagsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readApplicationTypeAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeApplicationTypeAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class PulseWidthModulationCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000001CL; - - public PulseWidthModulationCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class DescriptorCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000001DL; - - public DescriptorCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface DeviceTypeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ServerListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ClientListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface PartsListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface TagListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readDeviceTypeListAttribute( - DeviceTypeListAttributeCallback callback - ) { - readDeviceTypeListAttribute(chipClusterPtr, callback); - } - public void subscribeDeviceTypeListAttribute( - DeviceTypeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeDeviceTypeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readServerListAttribute( - ServerListAttributeCallback callback - ) { - readServerListAttribute(chipClusterPtr, callback); - } - public void subscribeServerListAttribute( - ServerListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeServerListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClientListAttribute( - ClientListAttributeCallback callback - ) { - readClientListAttribute(chipClusterPtr, callback); - } - public void subscribeClientListAttribute( - ClientListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeClientListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPartsListAttribute( - PartsListAttributeCallback callback - ) { - readPartsListAttribute(chipClusterPtr, callback); - } - public void subscribePartsListAttribute( - PartsListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePartsListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTagListAttribute( - TagListAttributeCallback callback - ) { - readTagListAttribute(chipClusterPtr, callback); - } - public void subscribeTagListAttribute( - TagListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeTagListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readDeviceTypeListAttribute(long chipClusterPtr, - DeviceTypeListAttributeCallback callback - ); - private native void subscribeDeviceTypeListAttribute(long chipClusterPtr, - DeviceTypeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readServerListAttribute(long chipClusterPtr, - ServerListAttributeCallback callback - ); - private native void subscribeServerListAttribute(long chipClusterPtr, - ServerListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readClientListAttribute(long chipClusterPtr, - ClientListAttributeCallback callback - ); - private native void subscribeClientListAttribute(long chipClusterPtr, - ClientListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPartsListAttribute(long chipClusterPtr, - PartsListAttributeCallback callback - ); - private native void subscribePartsListAttribute(long chipClusterPtr, - PartsListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readTagListAttribute(long chipClusterPtr, - TagListAttributeCallback callback - ); - private native void subscribeTagListAttribute(long chipClusterPtr, - TagListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class BindingCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000001EL; - - public BindingCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface BindingAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readBindingAttribute( - BindingAttributeCallback callback - ) { - readBindingAttribute(chipClusterPtr, callback, true); - } - public void readBindingAttributeWithFabricFilter( - BindingAttributeCallback callback - , - boolean isFabricFiltered - ) { - readBindingAttribute(chipClusterPtr, callback, isFabricFiltered); - } - public void writeBindingAttribute(DefaultClusterCallback callback, ArrayList value) { - writeBindingAttribute(chipClusterPtr, callback, value, null); - } - - public void writeBindingAttribute(DefaultClusterCallback callback, ArrayList value, int timedWriteTimeoutMs) { - writeBindingAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeBindingAttribute( - BindingAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeBindingAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readBindingAttribute(long chipClusterPtr, - BindingAttributeCallback callback - , boolean isFabricFiltered - ); - - private native void writeBindingAttribute(long chipClusterPtr, DefaultClusterCallback callback, ArrayList value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeBindingAttribute(long chipClusterPtr, - BindingAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class AccessControlCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000001FL; - - public AccessControlCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface AclAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ExtensionAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readAclAttribute( - AclAttributeCallback callback - ) { - readAclAttribute(chipClusterPtr, callback, true); - } - public void readAclAttributeWithFabricFilter( - AclAttributeCallback callback - , - boolean isFabricFiltered - ) { - readAclAttribute(chipClusterPtr, callback, isFabricFiltered); - } - public void writeAclAttribute(DefaultClusterCallback callback, ArrayList value) { - writeAclAttribute(chipClusterPtr, callback, value, null); - } - - public void writeAclAttribute(DefaultClusterCallback callback, ArrayList value, int timedWriteTimeoutMs) { - writeAclAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeAclAttribute( - AclAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAclAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readExtensionAttribute( - ExtensionAttributeCallback callback - ) { - readExtensionAttribute(chipClusterPtr, callback, true); - } - public void readExtensionAttributeWithFabricFilter( - ExtensionAttributeCallback callback - , - boolean isFabricFiltered - ) { - readExtensionAttribute(chipClusterPtr, callback, isFabricFiltered); - } - public void writeExtensionAttribute(DefaultClusterCallback callback, ArrayList value) { - writeExtensionAttribute(chipClusterPtr, callback, value, null); - } - - public void writeExtensionAttribute(DefaultClusterCallback callback, ArrayList value, int timedWriteTimeoutMs) { - writeExtensionAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeExtensionAttribute( - ExtensionAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeExtensionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSubjectsPerAccessControlEntryAttribute( - IntegerAttributeCallback callback - ) { - readSubjectsPerAccessControlEntryAttribute(chipClusterPtr, callback); - } - public void subscribeSubjectsPerAccessControlEntryAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSubjectsPerAccessControlEntryAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTargetsPerAccessControlEntryAttribute( - IntegerAttributeCallback callback - ) { - readTargetsPerAccessControlEntryAttribute(chipClusterPtr, callback); - } - public void subscribeTargetsPerAccessControlEntryAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTargetsPerAccessControlEntryAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAccessControlEntriesPerFabricAttribute( - IntegerAttributeCallback callback - ) { - readAccessControlEntriesPerFabricAttribute(chipClusterPtr, callback); - } - public void subscribeAccessControlEntriesPerFabricAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAccessControlEntriesPerFabricAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readAclAttribute(long chipClusterPtr, - AclAttributeCallback callback - , boolean isFabricFiltered - ); - - private native void writeAclAttribute(long chipClusterPtr, DefaultClusterCallback callback, ArrayList value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeAclAttribute(long chipClusterPtr, - AclAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readExtensionAttribute(long chipClusterPtr, - ExtensionAttributeCallback callback - , boolean isFabricFiltered - ); - - private native void writeExtensionAttribute(long chipClusterPtr, DefaultClusterCallback callback, ArrayList value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeExtensionAttribute(long chipClusterPtr, - ExtensionAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readSubjectsPerAccessControlEntryAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeSubjectsPerAccessControlEntryAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTargetsPerAccessControlEntryAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeTargetsPerAccessControlEntryAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAccessControlEntriesPerFabricAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAccessControlEntriesPerFabricAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class ActionsCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000025L; - - public ActionsCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void instantAction(DefaultClusterCallback callback - , Integer actionID, Optional invokeID) { - instantAction(chipClusterPtr, callback, actionID, invokeID, null); - } - - public void instantAction(DefaultClusterCallback callback - , Integer actionID, Optional invokeID - , int timedInvokeTimeoutMs) { - instantAction(chipClusterPtr, callback, actionID, invokeID, timedInvokeTimeoutMs); - } - - public void instantActionWithTransition(DefaultClusterCallback callback - , Integer actionID, Optional invokeID, Integer transitionTime) { - instantActionWithTransition(chipClusterPtr, callback, actionID, invokeID, transitionTime, null); - } - - public void instantActionWithTransition(DefaultClusterCallback callback - , Integer actionID, Optional invokeID, Integer transitionTime - , int timedInvokeTimeoutMs) { - instantActionWithTransition(chipClusterPtr, callback, actionID, invokeID, transitionTime, timedInvokeTimeoutMs); - } - - public void startAction(DefaultClusterCallback callback - , Integer actionID, Optional invokeID) { - startAction(chipClusterPtr, callback, actionID, invokeID, null); - } - - public void startAction(DefaultClusterCallback callback - , Integer actionID, Optional invokeID - , int timedInvokeTimeoutMs) { - startAction(chipClusterPtr, callback, actionID, invokeID, timedInvokeTimeoutMs); - } - - public void startActionWithDuration(DefaultClusterCallback callback - , Integer actionID, Optional invokeID, Long duration) { - startActionWithDuration(chipClusterPtr, callback, actionID, invokeID, duration, null); - } - - public void startActionWithDuration(DefaultClusterCallback callback - , Integer actionID, Optional invokeID, Long duration - , int timedInvokeTimeoutMs) { - startActionWithDuration(chipClusterPtr, callback, actionID, invokeID, duration, timedInvokeTimeoutMs); - } - - public void stopAction(DefaultClusterCallback callback - , Integer actionID, Optional invokeID) { - stopAction(chipClusterPtr, callback, actionID, invokeID, null); - } - - public void stopAction(DefaultClusterCallback callback - , Integer actionID, Optional invokeID - , int timedInvokeTimeoutMs) { - stopAction(chipClusterPtr, callback, actionID, invokeID, timedInvokeTimeoutMs); - } - - public void pauseAction(DefaultClusterCallback callback - , Integer actionID, Optional invokeID) { - pauseAction(chipClusterPtr, callback, actionID, invokeID, null); - } - - public void pauseAction(DefaultClusterCallback callback - , Integer actionID, Optional invokeID - , int timedInvokeTimeoutMs) { - pauseAction(chipClusterPtr, callback, actionID, invokeID, timedInvokeTimeoutMs); - } - - public void pauseActionWithDuration(DefaultClusterCallback callback - , Integer actionID, Optional invokeID, Long duration) { - pauseActionWithDuration(chipClusterPtr, callback, actionID, invokeID, duration, null); - } - - public void pauseActionWithDuration(DefaultClusterCallback callback - , Integer actionID, Optional invokeID, Long duration - , int timedInvokeTimeoutMs) { - pauseActionWithDuration(chipClusterPtr, callback, actionID, invokeID, duration, timedInvokeTimeoutMs); - } - - public void resumeAction(DefaultClusterCallback callback - , Integer actionID, Optional invokeID) { - resumeAction(chipClusterPtr, callback, actionID, invokeID, null); - } - - public void resumeAction(DefaultClusterCallback callback - , Integer actionID, Optional invokeID - , int timedInvokeTimeoutMs) { - resumeAction(chipClusterPtr, callback, actionID, invokeID, timedInvokeTimeoutMs); - } - - public void enableAction(DefaultClusterCallback callback - , Integer actionID, Optional invokeID) { - enableAction(chipClusterPtr, callback, actionID, invokeID, null); - } - - public void enableAction(DefaultClusterCallback callback - , Integer actionID, Optional invokeID - , int timedInvokeTimeoutMs) { - enableAction(chipClusterPtr, callback, actionID, invokeID, timedInvokeTimeoutMs); - } - - public void enableActionWithDuration(DefaultClusterCallback callback - , Integer actionID, Optional invokeID, Long duration) { - enableActionWithDuration(chipClusterPtr, callback, actionID, invokeID, duration, null); - } - - public void enableActionWithDuration(DefaultClusterCallback callback - , Integer actionID, Optional invokeID, Long duration - , int timedInvokeTimeoutMs) { - enableActionWithDuration(chipClusterPtr, callback, actionID, invokeID, duration, timedInvokeTimeoutMs); - } - - public void disableAction(DefaultClusterCallback callback - , Integer actionID, Optional invokeID) { - disableAction(chipClusterPtr, callback, actionID, invokeID, null); - } - - public void disableAction(DefaultClusterCallback callback - , Integer actionID, Optional invokeID - , int timedInvokeTimeoutMs) { - disableAction(chipClusterPtr, callback, actionID, invokeID, timedInvokeTimeoutMs); - } - - public void disableActionWithDuration(DefaultClusterCallback callback - , Integer actionID, Optional invokeID, Long duration) { - disableActionWithDuration(chipClusterPtr, callback, actionID, invokeID, duration, null); - } - - public void disableActionWithDuration(DefaultClusterCallback callback - , Integer actionID, Optional invokeID, Long duration - , int timedInvokeTimeoutMs) { - disableActionWithDuration(chipClusterPtr, callback, actionID, invokeID, duration, timedInvokeTimeoutMs); - } - private native void instantAction(long chipClusterPtr, DefaultClusterCallback Callback - , Integer actionID, Optional invokeID - , @Nullable Integer timedInvokeTimeoutMs); - private native void instantActionWithTransition(long chipClusterPtr, DefaultClusterCallback Callback - , Integer actionID, Optional invokeID, Integer transitionTime - , @Nullable Integer timedInvokeTimeoutMs); - private native void startAction(long chipClusterPtr, DefaultClusterCallback Callback - , Integer actionID, Optional invokeID - , @Nullable Integer timedInvokeTimeoutMs); - private native void startActionWithDuration(long chipClusterPtr, DefaultClusterCallback Callback - , Integer actionID, Optional invokeID, Long duration - , @Nullable Integer timedInvokeTimeoutMs); - private native void stopAction(long chipClusterPtr, DefaultClusterCallback Callback - , Integer actionID, Optional invokeID - , @Nullable Integer timedInvokeTimeoutMs); - private native void pauseAction(long chipClusterPtr, DefaultClusterCallback Callback - , Integer actionID, Optional invokeID - , @Nullable Integer timedInvokeTimeoutMs); - private native void pauseActionWithDuration(long chipClusterPtr, DefaultClusterCallback Callback - , Integer actionID, Optional invokeID, Long duration - , @Nullable Integer timedInvokeTimeoutMs); - private native void resumeAction(long chipClusterPtr, DefaultClusterCallback Callback - , Integer actionID, Optional invokeID - , @Nullable Integer timedInvokeTimeoutMs); - private native void enableAction(long chipClusterPtr, DefaultClusterCallback Callback - , Integer actionID, Optional invokeID - , @Nullable Integer timedInvokeTimeoutMs); - private native void enableActionWithDuration(long chipClusterPtr, DefaultClusterCallback Callback - , Integer actionID, Optional invokeID, Long duration - , @Nullable Integer timedInvokeTimeoutMs); - private native void disableAction(long chipClusterPtr, DefaultClusterCallback Callback - , Integer actionID, Optional invokeID - , @Nullable Integer timedInvokeTimeoutMs); - private native void disableActionWithDuration(long chipClusterPtr, DefaultClusterCallback Callback - , Integer actionID, Optional invokeID, Long duration - , @Nullable Integer timedInvokeTimeoutMs); - - public interface ActionListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EndpointListsAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readActionListAttribute( - ActionListAttributeCallback callback - ) { - readActionListAttribute(chipClusterPtr, callback); - } - public void subscribeActionListAttribute( - ActionListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeActionListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEndpointListsAttribute( - EndpointListsAttributeCallback callback - ) { - readEndpointListsAttribute(chipClusterPtr, callback); - } - public void subscribeEndpointListsAttribute( - EndpointListsAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEndpointListsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSetupURLAttribute( - CharStringAttributeCallback callback - ) { - readSetupURLAttribute(chipClusterPtr, callback); - } - public void subscribeSetupURLAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSetupURLAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readActionListAttribute(long chipClusterPtr, - ActionListAttributeCallback callback - ); - private native void subscribeActionListAttribute(long chipClusterPtr, - ActionListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEndpointListsAttribute(long chipClusterPtr, - EndpointListsAttributeCallback callback - ); - private native void subscribeEndpointListsAttribute(long chipClusterPtr, - EndpointListsAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readSetupURLAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeSetupURLAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class BasicInformationCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000028L; - - public BasicInformationCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void mfgSpecificPing(DefaultClusterCallback callback - ) { - mfgSpecificPing(chipClusterPtr, callback, null); - } - - public void mfgSpecificPing(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - mfgSpecificPing(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - private native void mfgSpecificPing(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readDataModelRevisionAttribute( - IntegerAttributeCallback callback - ) { - readDataModelRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeDataModelRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDataModelRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readVendorNameAttribute( - CharStringAttributeCallback callback - ) { - readVendorNameAttribute(chipClusterPtr, callback); - } - public void subscribeVendorNameAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeVendorNameAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readVendorIDAttribute( - IntegerAttributeCallback callback - ) { - readVendorIDAttribute(chipClusterPtr, callback); - } - public void subscribeVendorIDAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeVendorIDAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readProductNameAttribute( - CharStringAttributeCallback callback - ) { - readProductNameAttribute(chipClusterPtr, callback); - } - public void subscribeProductNameAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeProductNameAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readProductIDAttribute( - IntegerAttributeCallback callback - ) { - readProductIDAttribute(chipClusterPtr, callback); - } - public void subscribeProductIDAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeProductIDAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNodeLabelAttribute( - CharStringAttributeCallback callback - ) { - readNodeLabelAttribute(chipClusterPtr, callback); - } - public void writeNodeLabelAttribute(DefaultClusterCallback callback, String value) { - writeNodeLabelAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNodeLabelAttribute(DefaultClusterCallback callback, String value, int timedWriteTimeoutMs) { - writeNodeLabelAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNodeLabelAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeNodeLabelAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLocationAttribute( - CharStringAttributeCallback callback - ) { - readLocationAttribute(chipClusterPtr, callback); - } - public void writeLocationAttribute(DefaultClusterCallback callback, String value) { - writeLocationAttribute(chipClusterPtr, callback, value, null); - } - - public void writeLocationAttribute(DefaultClusterCallback callback, String value, int timedWriteTimeoutMs) { - writeLocationAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeLocationAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLocationAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readHardwareVersionAttribute( - IntegerAttributeCallback callback - ) { - readHardwareVersionAttribute(chipClusterPtr, callback); - } - public void subscribeHardwareVersionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeHardwareVersionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readHardwareVersionStringAttribute( - CharStringAttributeCallback callback - ) { - readHardwareVersionStringAttribute(chipClusterPtr, callback); - } - public void subscribeHardwareVersionStringAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeHardwareVersionStringAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSoftwareVersionAttribute( - LongAttributeCallback callback - ) { - readSoftwareVersionAttribute(chipClusterPtr, callback); - } - public void subscribeSoftwareVersionAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSoftwareVersionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSoftwareVersionStringAttribute( - CharStringAttributeCallback callback - ) { - readSoftwareVersionStringAttribute(chipClusterPtr, callback); - } - public void subscribeSoftwareVersionStringAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSoftwareVersionStringAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readManufacturingDateAttribute( - CharStringAttributeCallback callback - ) { - readManufacturingDateAttribute(chipClusterPtr, callback); - } - public void subscribeManufacturingDateAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeManufacturingDateAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPartNumberAttribute( - CharStringAttributeCallback callback - ) { - readPartNumberAttribute(chipClusterPtr, callback); - } - public void subscribePartNumberAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePartNumberAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readProductURLAttribute( - CharStringAttributeCallback callback - ) { - readProductURLAttribute(chipClusterPtr, callback); - } - public void subscribeProductURLAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeProductURLAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readProductLabelAttribute( - CharStringAttributeCallback callback - ) { - readProductLabelAttribute(chipClusterPtr, callback); - } - public void subscribeProductLabelAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeProductLabelAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSerialNumberAttribute( - CharStringAttributeCallback callback - ) { - readSerialNumberAttribute(chipClusterPtr, callback); - } - public void subscribeSerialNumberAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSerialNumberAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLocalConfigDisabledAttribute( - BooleanAttributeCallback callback - ) { - readLocalConfigDisabledAttribute(chipClusterPtr, callback); - } - public void writeLocalConfigDisabledAttribute(DefaultClusterCallback callback, Boolean value) { - writeLocalConfigDisabledAttribute(chipClusterPtr, callback, value, null); - } - - public void writeLocalConfigDisabledAttribute(DefaultClusterCallback callback, Boolean value, int timedWriteTimeoutMs) { - writeLocalConfigDisabledAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeLocalConfigDisabledAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLocalConfigDisabledAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readReachableAttribute( - BooleanAttributeCallback callback - ) { - readReachableAttribute(chipClusterPtr, callback); - } - public void subscribeReachableAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeReachableAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUniqueIDAttribute( - CharStringAttributeCallback callback - ) { - readUniqueIDAttribute(chipClusterPtr, callback); - } - public void subscribeUniqueIDAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeUniqueIDAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readDataModelRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeDataModelRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readVendorNameAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeVendorNameAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readVendorIDAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeVendorIDAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readProductNameAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeProductNameAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readProductIDAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeProductIDAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readNodeLabelAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - - private native void writeNodeLabelAttribute(long chipClusterPtr, DefaultClusterCallback callback, String value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNodeLabelAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLocationAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - - private native void writeLocationAttribute(long chipClusterPtr, DefaultClusterCallback callback, String value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeLocationAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readHardwareVersionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeHardwareVersionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readHardwareVersionStringAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeHardwareVersionStringAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSoftwareVersionAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeSoftwareVersionAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSoftwareVersionStringAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeSoftwareVersionStringAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readManufacturingDateAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeManufacturingDateAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPartNumberAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribePartNumberAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readProductURLAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeProductURLAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readProductLabelAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeProductLabelAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSerialNumberAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeSerialNumberAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLocalConfigDisabledAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - - private native void writeLocalConfigDisabledAttribute(long chipClusterPtr, DefaultClusterCallback callback, Boolean value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeLocalConfigDisabledAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readReachableAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - private native void subscribeReachableAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readUniqueIDAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeUniqueIDAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class OtaSoftwareUpdateProviderCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000029L; - - public OtaSoftwareUpdateProviderCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void queryImage(QueryImageResponseCallback callback - , Integer vendorID, Integer productID, Long softwareVersion, ArrayList protocolsSupported, Optional hardwareVersion, Optional location, Optional requestorCanConsent, Optional metadataForProvider) { - queryImage(chipClusterPtr, callback, vendorID, productID, softwareVersion, protocolsSupported, hardwareVersion, location, requestorCanConsent, metadataForProvider, null); - } - - public void queryImage(QueryImageResponseCallback callback - , Integer vendorID, Integer productID, Long softwareVersion, ArrayList protocolsSupported, Optional hardwareVersion, Optional location, Optional requestorCanConsent, Optional metadataForProvider - , int timedInvokeTimeoutMs) { - queryImage(chipClusterPtr, callback, vendorID, productID, softwareVersion, protocolsSupported, hardwareVersion, location, requestorCanConsent, metadataForProvider, timedInvokeTimeoutMs); - } - - public void applyUpdateRequest(ApplyUpdateResponseCallback callback - , byte[] updateToken, Long newVersion) { - applyUpdateRequest(chipClusterPtr, callback, updateToken, newVersion, null); - } - - public void applyUpdateRequest(ApplyUpdateResponseCallback callback - , byte[] updateToken, Long newVersion - , int timedInvokeTimeoutMs) { - applyUpdateRequest(chipClusterPtr, callback, updateToken, newVersion, timedInvokeTimeoutMs); - } - - public void notifyUpdateApplied(DefaultClusterCallback callback - , byte[] updateToken, Long softwareVersion) { - notifyUpdateApplied(chipClusterPtr, callback, updateToken, softwareVersion, null); - } - - public void notifyUpdateApplied(DefaultClusterCallback callback - , byte[] updateToken, Long softwareVersion - , int timedInvokeTimeoutMs) { - notifyUpdateApplied(chipClusterPtr, callback, updateToken, softwareVersion, timedInvokeTimeoutMs); - } - private native void queryImage(long chipClusterPtr, QueryImageResponseCallback Callback - , Integer vendorID, Integer productID, Long softwareVersion, ArrayList protocolsSupported, Optional hardwareVersion, Optional location, Optional requestorCanConsent, Optional metadataForProvider - , @Nullable Integer timedInvokeTimeoutMs); - private native void applyUpdateRequest(long chipClusterPtr, ApplyUpdateResponseCallback Callback - , byte[] updateToken, Long newVersion - , @Nullable Integer timedInvokeTimeoutMs); - private native void notifyUpdateApplied(long chipClusterPtr, DefaultClusterCallback Callback - , byte[] updateToken, Long softwareVersion - , @Nullable Integer timedInvokeTimeoutMs); - public interface QueryImageResponseCallback { - void onSuccess(Integer status, Optional delayedActionTime, Optional imageURI, Optional softwareVersion, Optional softwareVersionString, Optional updateToken, Optional userConsentNeeded, Optional metadataForRequestor); - - void onError(Exception error); - } - - public interface ApplyUpdateResponseCallback { - void onSuccess(Integer action, Long delayedActionTime); - - void onError(Exception error); - } - - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class OtaSoftwareUpdateRequestorCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000002AL; - - public OtaSoftwareUpdateRequestorCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void announceOTAProvider(DefaultClusterCallback callback - , Long providerNodeID, Integer vendorID, Integer announcementReason, Optional metadataForNode, Integer endpoint) { - announceOTAProvider(chipClusterPtr, callback, providerNodeID, vendorID, announcementReason, metadataForNode, endpoint, null); - } - - public void announceOTAProvider(DefaultClusterCallback callback - , Long providerNodeID, Integer vendorID, Integer announcementReason, Optional metadataForNode, Integer endpoint - , int timedInvokeTimeoutMs) { - announceOTAProvider(chipClusterPtr, callback, providerNodeID, vendorID, announcementReason, metadataForNode, endpoint, timedInvokeTimeoutMs); - } - private native void announceOTAProvider(long chipClusterPtr, DefaultClusterCallback Callback - , Long providerNodeID, Integer vendorID, Integer announcementReason, Optional metadataForNode, Integer endpoint - , @Nullable Integer timedInvokeTimeoutMs); - - public interface DefaultOTAProvidersAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface UpdateStateProgressAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readDefaultOTAProvidersAttribute( - DefaultOTAProvidersAttributeCallback callback - ) { - readDefaultOTAProvidersAttribute(chipClusterPtr, callback, true); - } - public void readDefaultOTAProvidersAttributeWithFabricFilter( - DefaultOTAProvidersAttributeCallback callback - , - boolean isFabricFiltered - ) { - readDefaultOTAProvidersAttribute(chipClusterPtr, callback, isFabricFiltered); - } - public void writeDefaultOTAProvidersAttribute(DefaultClusterCallback callback, ArrayList value) { - writeDefaultOTAProvidersAttribute(chipClusterPtr, callback, value, null); - } - - public void writeDefaultOTAProvidersAttribute(DefaultClusterCallback callback, ArrayList value, int timedWriteTimeoutMs) { - writeDefaultOTAProvidersAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeDefaultOTAProvidersAttribute( - DefaultOTAProvidersAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeDefaultOTAProvidersAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUpdatePossibleAttribute( - BooleanAttributeCallback callback - ) { - readUpdatePossibleAttribute(chipClusterPtr, callback); - } - public void subscribeUpdatePossibleAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeUpdatePossibleAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUpdateStateAttribute( - IntegerAttributeCallback callback - ) { - readUpdateStateAttribute(chipClusterPtr, callback); - } - public void subscribeUpdateStateAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeUpdateStateAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUpdateStateProgressAttribute( - UpdateStateProgressAttributeCallback callback - ) { - readUpdateStateProgressAttribute(chipClusterPtr, callback); - } - public void subscribeUpdateStateProgressAttribute( - UpdateStateProgressAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeUpdateStateProgressAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readDefaultOTAProvidersAttribute(long chipClusterPtr, - DefaultOTAProvidersAttributeCallback callback - , boolean isFabricFiltered - ); - - private native void writeDefaultOTAProvidersAttribute(long chipClusterPtr, DefaultClusterCallback callback, ArrayList value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeDefaultOTAProvidersAttribute(long chipClusterPtr, - DefaultOTAProvidersAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readUpdatePossibleAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - private native void subscribeUpdatePossibleAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readUpdateStateAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeUpdateStateAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readUpdateStateProgressAttribute(long chipClusterPtr, - UpdateStateProgressAttributeCallback callback - ); - private native void subscribeUpdateStateProgressAttribute(long chipClusterPtr, - UpdateStateProgressAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class LocalizationConfigurationCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000002BL; - - public LocalizationConfigurationCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface SupportedLocalesAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readActiveLocaleAttribute( - CharStringAttributeCallback callback - ) { - readActiveLocaleAttribute(chipClusterPtr, callback); - } - public void writeActiveLocaleAttribute(DefaultClusterCallback callback, String value) { - writeActiveLocaleAttribute(chipClusterPtr, callback, value, null); - } - - public void writeActiveLocaleAttribute(DefaultClusterCallback callback, String value, int timedWriteTimeoutMs) { - writeActiveLocaleAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeActiveLocaleAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeActiveLocaleAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSupportedLocalesAttribute( - SupportedLocalesAttributeCallback callback - ) { - readSupportedLocalesAttribute(chipClusterPtr, callback); - } - public void subscribeSupportedLocalesAttribute( - SupportedLocalesAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeSupportedLocalesAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readActiveLocaleAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - - private native void writeActiveLocaleAttribute(long chipClusterPtr, DefaultClusterCallback callback, String value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeActiveLocaleAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSupportedLocalesAttribute(long chipClusterPtr, - SupportedLocalesAttributeCallback callback - ); - private native void subscribeSupportedLocalesAttribute(long chipClusterPtr, - SupportedLocalesAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class TimeFormatLocalizationCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000002CL; - - public TimeFormatLocalizationCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface SupportedCalendarTypesAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readHourFormatAttribute( - IntegerAttributeCallback callback - ) { - readHourFormatAttribute(chipClusterPtr, callback); - } - public void writeHourFormatAttribute(DefaultClusterCallback callback, Integer value) { - writeHourFormatAttribute(chipClusterPtr, callback, value, null); - } - - public void writeHourFormatAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeHourFormatAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeHourFormatAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeHourFormatAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readActiveCalendarTypeAttribute( - IntegerAttributeCallback callback - ) { - readActiveCalendarTypeAttribute(chipClusterPtr, callback); - } - public void writeActiveCalendarTypeAttribute(DefaultClusterCallback callback, Integer value) { - writeActiveCalendarTypeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeActiveCalendarTypeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeActiveCalendarTypeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeActiveCalendarTypeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeActiveCalendarTypeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSupportedCalendarTypesAttribute( - SupportedCalendarTypesAttributeCallback callback - ) { - readSupportedCalendarTypesAttribute(chipClusterPtr, callback); - } - public void subscribeSupportedCalendarTypesAttribute( - SupportedCalendarTypesAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeSupportedCalendarTypesAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readHourFormatAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeHourFormatAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeHourFormatAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readActiveCalendarTypeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeActiveCalendarTypeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeActiveCalendarTypeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSupportedCalendarTypesAttribute(long chipClusterPtr, - SupportedCalendarTypesAttributeCallback callback - ); - private native void subscribeSupportedCalendarTypesAttribute(long chipClusterPtr, - SupportedCalendarTypesAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class UnitLocalizationCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000002DL; - - public UnitLocalizationCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readTemperatureUnitAttribute( - IntegerAttributeCallback callback - ) { - readTemperatureUnitAttribute(chipClusterPtr, callback); - } - public void writeTemperatureUnitAttribute(DefaultClusterCallback callback, Integer value) { - writeTemperatureUnitAttribute(chipClusterPtr, callback, value, null); - } - - public void writeTemperatureUnitAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeTemperatureUnitAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeTemperatureUnitAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTemperatureUnitAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readTemperatureUnitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeTemperatureUnitAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeTemperatureUnitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class PowerSourceConfigurationCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000002EL; - - public PowerSourceConfigurationCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface SourcesAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readSourcesAttribute( - SourcesAttributeCallback callback - ) { - readSourcesAttribute(chipClusterPtr, callback); - } - public void subscribeSourcesAttribute( - SourcesAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeSourcesAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readSourcesAttribute(long chipClusterPtr, - SourcesAttributeCallback callback - ); - private native void subscribeSourcesAttribute(long chipClusterPtr, - SourcesAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class PowerSourceCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000002FL; - - public PowerSourceCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface WiredAssessedInputVoltageAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface WiredAssessedInputFrequencyAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface WiredAssessedCurrentAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ActiveWiredFaultsAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface BatVoltageAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface BatPercentRemainingAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface BatTimeRemainingAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ActiveBatFaultsAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface BatTimeToFullChargeAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface BatChargingCurrentAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ActiveBatChargeFaultsAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EndpointListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readStatusAttribute( - IntegerAttributeCallback callback - ) { - readStatusAttribute(chipClusterPtr, callback); - } - public void subscribeStatusAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeStatusAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOrderAttribute( - IntegerAttributeCallback callback - ) { - readOrderAttribute(chipClusterPtr, callback); - } - public void subscribeOrderAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeOrderAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDescriptionAttribute( - CharStringAttributeCallback callback - ) { - readDescriptionAttribute(chipClusterPtr, callback); - } - public void subscribeDescriptionAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDescriptionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readWiredAssessedInputVoltageAttribute( - WiredAssessedInputVoltageAttributeCallback callback - ) { - readWiredAssessedInputVoltageAttribute(chipClusterPtr, callback); - } - public void subscribeWiredAssessedInputVoltageAttribute( - WiredAssessedInputVoltageAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeWiredAssessedInputVoltageAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readWiredAssessedInputFrequencyAttribute( - WiredAssessedInputFrequencyAttributeCallback callback - ) { - readWiredAssessedInputFrequencyAttribute(chipClusterPtr, callback); - } - public void subscribeWiredAssessedInputFrequencyAttribute( - WiredAssessedInputFrequencyAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeWiredAssessedInputFrequencyAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readWiredCurrentTypeAttribute( - IntegerAttributeCallback callback - ) { - readWiredCurrentTypeAttribute(chipClusterPtr, callback); - } - public void subscribeWiredCurrentTypeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeWiredCurrentTypeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readWiredAssessedCurrentAttribute( - WiredAssessedCurrentAttributeCallback callback - ) { - readWiredAssessedCurrentAttribute(chipClusterPtr, callback); - } - public void subscribeWiredAssessedCurrentAttribute( - WiredAssessedCurrentAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeWiredAssessedCurrentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readWiredNominalVoltageAttribute( - LongAttributeCallback callback - ) { - readWiredNominalVoltageAttribute(chipClusterPtr, callback); - } - public void subscribeWiredNominalVoltageAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeWiredNominalVoltageAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readWiredMaximumCurrentAttribute( - LongAttributeCallback callback - ) { - readWiredMaximumCurrentAttribute(chipClusterPtr, callback); - } - public void subscribeWiredMaximumCurrentAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeWiredMaximumCurrentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readWiredPresentAttribute( - BooleanAttributeCallback callback - ) { - readWiredPresentAttribute(chipClusterPtr, callback); - } - public void subscribeWiredPresentAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeWiredPresentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readActiveWiredFaultsAttribute( - ActiveWiredFaultsAttributeCallback callback - ) { - readActiveWiredFaultsAttribute(chipClusterPtr, callback); - } - public void subscribeActiveWiredFaultsAttribute( - ActiveWiredFaultsAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeActiveWiredFaultsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBatVoltageAttribute( - BatVoltageAttributeCallback callback - ) { - readBatVoltageAttribute(chipClusterPtr, callback); - } - public void subscribeBatVoltageAttribute( - BatVoltageAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeBatVoltageAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBatPercentRemainingAttribute( - BatPercentRemainingAttributeCallback callback - ) { - readBatPercentRemainingAttribute(chipClusterPtr, callback); - } - public void subscribeBatPercentRemainingAttribute( - BatPercentRemainingAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeBatPercentRemainingAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBatTimeRemainingAttribute( - BatTimeRemainingAttributeCallback callback - ) { - readBatTimeRemainingAttribute(chipClusterPtr, callback); - } - public void subscribeBatTimeRemainingAttribute( - BatTimeRemainingAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeBatTimeRemainingAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBatChargeLevelAttribute( - IntegerAttributeCallback callback - ) { - readBatChargeLevelAttribute(chipClusterPtr, callback); - } - public void subscribeBatChargeLevelAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBatChargeLevelAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBatReplacementNeededAttribute( - BooleanAttributeCallback callback - ) { - readBatReplacementNeededAttribute(chipClusterPtr, callback); - } - public void subscribeBatReplacementNeededAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBatReplacementNeededAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBatReplaceabilityAttribute( - IntegerAttributeCallback callback - ) { - readBatReplaceabilityAttribute(chipClusterPtr, callback); - } - public void subscribeBatReplaceabilityAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBatReplaceabilityAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBatPresentAttribute( - BooleanAttributeCallback callback - ) { - readBatPresentAttribute(chipClusterPtr, callback); - } - public void subscribeBatPresentAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBatPresentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readActiveBatFaultsAttribute( - ActiveBatFaultsAttributeCallback callback - ) { - readActiveBatFaultsAttribute(chipClusterPtr, callback); - } - public void subscribeActiveBatFaultsAttribute( - ActiveBatFaultsAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeActiveBatFaultsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBatReplacementDescriptionAttribute( - CharStringAttributeCallback callback - ) { - readBatReplacementDescriptionAttribute(chipClusterPtr, callback); - } - public void subscribeBatReplacementDescriptionAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBatReplacementDescriptionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBatCommonDesignationAttribute( - IntegerAttributeCallback callback - ) { - readBatCommonDesignationAttribute(chipClusterPtr, callback); - } - public void subscribeBatCommonDesignationAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBatCommonDesignationAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBatANSIDesignationAttribute( - CharStringAttributeCallback callback - ) { - readBatANSIDesignationAttribute(chipClusterPtr, callback); - } - public void subscribeBatANSIDesignationAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBatANSIDesignationAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBatIECDesignationAttribute( - CharStringAttributeCallback callback - ) { - readBatIECDesignationAttribute(chipClusterPtr, callback); - } - public void subscribeBatIECDesignationAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBatIECDesignationAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBatApprovedChemistryAttribute( - IntegerAttributeCallback callback - ) { - readBatApprovedChemistryAttribute(chipClusterPtr, callback); - } - public void subscribeBatApprovedChemistryAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBatApprovedChemistryAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBatCapacityAttribute( - LongAttributeCallback callback - ) { - readBatCapacityAttribute(chipClusterPtr, callback); - } - public void subscribeBatCapacityAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBatCapacityAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBatQuantityAttribute( - IntegerAttributeCallback callback - ) { - readBatQuantityAttribute(chipClusterPtr, callback); - } - public void subscribeBatQuantityAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBatQuantityAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBatChargeStateAttribute( - IntegerAttributeCallback callback - ) { - readBatChargeStateAttribute(chipClusterPtr, callback); - } - public void subscribeBatChargeStateAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBatChargeStateAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBatTimeToFullChargeAttribute( - BatTimeToFullChargeAttributeCallback callback - ) { - readBatTimeToFullChargeAttribute(chipClusterPtr, callback); - } - public void subscribeBatTimeToFullChargeAttribute( - BatTimeToFullChargeAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeBatTimeToFullChargeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBatFunctionalWhileChargingAttribute( - BooleanAttributeCallback callback - ) { - readBatFunctionalWhileChargingAttribute(chipClusterPtr, callback); - } - public void subscribeBatFunctionalWhileChargingAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBatFunctionalWhileChargingAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBatChargingCurrentAttribute( - BatChargingCurrentAttributeCallback callback - ) { - readBatChargingCurrentAttribute(chipClusterPtr, callback); - } - public void subscribeBatChargingCurrentAttribute( - BatChargingCurrentAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeBatChargingCurrentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readActiveBatChargeFaultsAttribute( - ActiveBatChargeFaultsAttributeCallback callback - ) { - readActiveBatChargeFaultsAttribute(chipClusterPtr, callback); - } - public void subscribeActiveBatChargeFaultsAttribute( - ActiveBatChargeFaultsAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeActiveBatChargeFaultsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEndpointListAttribute( - EndpointListAttributeCallback callback - ) { - readEndpointListAttribute(chipClusterPtr, callback); - } - public void subscribeEndpointListAttribute( - EndpointListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEndpointListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readStatusAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeStatusAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readOrderAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeOrderAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDescriptionAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeDescriptionAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readWiredAssessedInputVoltageAttribute(long chipClusterPtr, - WiredAssessedInputVoltageAttributeCallback callback - ); - private native void subscribeWiredAssessedInputVoltageAttribute(long chipClusterPtr, - WiredAssessedInputVoltageAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readWiredAssessedInputFrequencyAttribute(long chipClusterPtr, - WiredAssessedInputFrequencyAttributeCallback callback - ); - private native void subscribeWiredAssessedInputFrequencyAttribute(long chipClusterPtr, - WiredAssessedInputFrequencyAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readWiredCurrentTypeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeWiredCurrentTypeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readWiredAssessedCurrentAttribute(long chipClusterPtr, - WiredAssessedCurrentAttributeCallback callback - ); - private native void subscribeWiredAssessedCurrentAttribute(long chipClusterPtr, - WiredAssessedCurrentAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readWiredNominalVoltageAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeWiredNominalVoltageAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readWiredMaximumCurrentAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeWiredMaximumCurrentAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readWiredPresentAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - private native void subscribeWiredPresentAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readActiveWiredFaultsAttribute(long chipClusterPtr, - ActiveWiredFaultsAttributeCallback callback - ); - private native void subscribeActiveWiredFaultsAttribute(long chipClusterPtr, - ActiveWiredFaultsAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readBatVoltageAttribute(long chipClusterPtr, - BatVoltageAttributeCallback callback - ); - private native void subscribeBatVoltageAttribute(long chipClusterPtr, - BatVoltageAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readBatPercentRemainingAttribute(long chipClusterPtr, - BatPercentRemainingAttributeCallback callback - ); - private native void subscribeBatPercentRemainingAttribute(long chipClusterPtr, - BatPercentRemainingAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readBatTimeRemainingAttribute(long chipClusterPtr, - BatTimeRemainingAttributeCallback callback - ); - private native void subscribeBatTimeRemainingAttribute(long chipClusterPtr, - BatTimeRemainingAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readBatChargeLevelAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeBatChargeLevelAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBatReplacementNeededAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - private native void subscribeBatReplacementNeededAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBatReplaceabilityAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeBatReplaceabilityAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBatPresentAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - private native void subscribeBatPresentAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readActiveBatFaultsAttribute(long chipClusterPtr, - ActiveBatFaultsAttributeCallback callback - ); - private native void subscribeActiveBatFaultsAttribute(long chipClusterPtr, - ActiveBatFaultsAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readBatReplacementDescriptionAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeBatReplacementDescriptionAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBatCommonDesignationAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeBatCommonDesignationAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBatANSIDesignationAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeBatANSIDesignationAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBatIECDesignationAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeBatIECDesignationAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBatApprovedChemistryAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeBatApprovedChemistryAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBatCapacityAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeBatCapacityAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBatQuantityAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeBatQuantityAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBatChargeStateAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeBatChargeStateAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBatTimeToFullChargeAttribute(long chipClusterPtr, - BatTimeToFullChargeAttributeCallback callback - ); - private native void subscribeBatTimeToFullChargeAttribute(long chipClusterPtr, - BatTimeToFullChargeAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readBatFunctionalWhileChargingAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - private native void subscribeBatFunctionalWhileChargingAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBatChargingCurrentAttribute(long chipClusterPtr, - BatChargingCurrentAttributeCallback callback - ); - private native void subscribeBatChargingCurrentAttribute(long chipClusterPtr, - BatChargingCurrentAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readActiveBatChargeFaultsAttribute(long chipClusterPtr, - ActiveBatChargeFaultsAttributeCallback callback - ); - private native void subscribeActiveBatChargeFaultsAttribute(long chipClusterPtr, - ActiveBatChargeFaultsAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEndpointListAttribute(long chipClusterPtr, - EndpointListAttributeCallback callback - ); - private native void subscribeEndpointListAttribute(long chipClusterPtr, - EndpointListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class GeneralCommissioningCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000030L; - - public GeneralCommissioningCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void armFailSafe(ArmFailSafeResponseCallback callback - , Integer expiryLengthSeconds, Long breadcrumb) { - armFailSafe(chipClusterPtr, callback, expiryLengthSeconds, breadcrumb, null); - } - - public void armFailSafe(ArmFailSafeResponseCallback callback - , Integer expiryLengthSeconds, Long breadcrumb - , int timedInvokeTimeoutMs) { - armFailSafe(chipClusterPtr, callback, expiryLengthSeconds, breadcrumb, timedInvokeTimeoutMs); - } - - public void setRegulatoryConfig(SetRegulatoryConfigResponseCallback callback - , Integer newRegulatoryConfig, String countryCode, Long breadcrumb) { - setRegulatoryConfig(chipClusterPtr, callback, newRegulatoryConfig, countryCode, breadcrumb, null); - } - - public void setRegulatoryConfig(SetRegulatoryConfigResponseCallback callback - , Integer newRegulatoryConfig, String countryCode, Long breadcrumb - , int timedInvokeTimeoutMs) { - setRegulatoryConfig(chipClusterPtr, callback, newRegulatoryConfig, countryCode, breadcrumb, timedInvokeTimeoutMs); - } - - public void commissioningComplete(CommissioningCompleteResponseCallback callback - ) { - commissioningComplete(chipClusterPtr, callback, null); - } - - public void commissioningComplete(CommissioningCompleteResponseCallback callback - - , int timedInvokeTimeoutMs) { - commissioningComplete(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - private native void armFailSafe(long chipClusterPtr, ArmFailSafeResponseCallback Callback - , Integer expiryLengthSeconds, Long breadcrumb - , @Nullable Integer timedInvokeTimeoutMs); - private native void setRegulatoryConfig(long chipClusterPtr, SetRegulatoryConfigResponseCallback Callback - , Integer newRegulatoryConfig, String countryCode, Long breadcrumb - , @Nullable Integer timedInvokeTimeoutMs); - private native void commissioningComplete(long chipClusterPtr, CommissioningCompleteResponseCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - public interface ArmFailSafeResponseCallback { - void onSuccess(Integer errorCode, String debugText); - - void onError(Exception error); - } - - public interface SetRegulatoryConfigResponseCallback { - void onSuccess(Integer errorCode, String debugText); - - void onError(Exception error); - } - - public interface CommissioningCompleteResponseCallback { - void onSuccess(Integer errorCode, String debugText); - - void onError(Exception error); - } - - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readBreadcrumbAttribute( - LongAttributeCallback callback - ) { - readBreadcrumbAttribute(chipClusterPtr, callback); - } - public void writeBreadcrumbAttribute(DefaultClusterCallback callback, Long value) { - writeBreadcrumbAttribute(chipClusterPtr, callback, value, null); - } - - public void writeBreadcrumbAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeBreadcrumbAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeBreadcrumbAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBreadcrumbAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRegulatoryConfigAttribute( - IntegerAttributeCallback callback - ) { - readRegulatoryConfigAttribute(chipClusterPtr, callback); - } - public void subscribeRegulatoryConfigAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRegulatoryConfigAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLocationCapabilityAttribute( - IntegerAttributeCallback callback - ) { - readLocationCapabilityAttribute(chipClusterPtr, callback); - } - public void subscribeLocationCapabilityAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLocationCapabilityAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSupportsConcurrentConnectionAttribute( - BooleanAttributeCallback callback - ) { - readSupportsConcurrentConnectionAttribute(chipClusterPtr, callback); - } - public void subscribeSupportsConcurrentConnectionAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSupportsConcurrentConnectionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readBreadcrumbAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - - private native void writeBreadcrumbAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeBreadcrumbAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRegulatoryConfigAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRegulatoryConfigAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLocationCapabilityAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeLocationCapabilityAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSupportsConcurrentConnectionAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - private native void subscribeSupportsConcurrentConnectionAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class NetworkCommissioningCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000031L; - - public NetworkCommissioningCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void scanNetworks(ScanNetworksResponseCallback callback - , @Nullable Optional ssid, Optional breadcrumb) { - scanNetworks(chipClusterPtr, callback, ssid, breadcrumb, null); - } - - public void scanNetworks(ScanNetworksResponseCallback callback - , @Nullable Optional ssid, Optional breadcrumb - , int timedInvokeTimeoutMs) { - scanNetworks(chipClusterPtr, callback, ssid, breadcrumb, timedInvokeTimeoutMs); - } - - public void addOrUpdateWiFiNetwork(NetworkConfigResponseCallback callback - , byte[] ssid, byte[] credentials, Optional breadcrumb) { - addOrUpdateWiFiNetwork(chipClusterPtr, callback, ssid, credentials, breadcrumb, null); - } - - public void addOrUpdateWiFiNetwork(NetworkConfigResponseCallback callback - , byte[] ssid, byte[] credentials, Optional breadcrumb - , int timedInvokeTimeoutMs) { - addOrUpdateWiFiNetwork(chipClusterPtr, callback, ssid, credentials, breadcrumb, timedInvokeTimeoutMs); - } - - public void addOrUpdateThreadNetwork(NetworkConfigResponseCallback callback - , byte[] operationalDataset, Optional breadcrumb) { - addOrUpdateThreadNetwork(chipClusterPtr, callback, operationalDataset, breadcrumb, null); - } - - public void addOrUpdateThreadNetwork(NetworkConfigResponseCallback callback - , byte[] operationalDataset, Optional breadcrumb - , int timedInvokeTimeoutMs) { - addOrUpdateThreadNetwork(chipClusterPtr, callback, operationalDataset, breadcrumb, timedInvokeTimeoutMs); - } - - public void removeNetwork(NetworkConfigResponseCallback callback - , byte[] networkID, Optional breadcrumb) { - removeNetwork(chipClusterPtr, callback, networkID, breadcrumb, null); - } - - public void removeNetwork(NetworkConfigResponseCallback callback - , byte[] networkID, Optional breadcrumb - , int timedInvokeTimeoutMs) { - removeNetwork(chipClusterPtr, callback, networkID, breadcrumb, timedInvokeTimeoutMs); - } - - public void connectNetwork(ConnectNetworkResponseCallback callback - , byte[] networkID, Optional breadcrumb) { - connectNetwork(chipClusterPtr, callback, networkID, breadcrumb, null); - } - - public void connectNetwork(ConnectNetworkResponseCallback callback - , byte[] networkID, Optional breadcrumb - , int timedInvokeTimeoutMs) { - connectNetwork(chipClusterPtr, callback, networkID, breadcrumb, timedInvokeTimeoutMs); - } - - public void reorderNetwork(NetworkConfigResponseCallback callback - , byte[] networkID, Integer networkIndex, Optional breadcrumb) { - reorderNetwork(chipClusterPtr, callback, networkID, networkIndex, breadcrumb, null); - } - - public void reorderNetwork(NetworkConfigResponseCallback callback - , byte[] networkID, Integer networkIndex, Optional breadcrumb - , int timedInvokeTimeoutMs) { - reorderNetwork(chipClusterPtr, callback, networkID, networkIndex, breadcrumb, timedInvokeTimeoutMs); - } - private native void scanNetworks(long chipClusterPtr, ScanNetworksResponseCallback Callback - , @Nullable Optional ssid, Optional breadcrumb - , @Nullable Integer timedInvokeTimeoutMs); - private native void addOrUpdateWiFiNetwork(long chipClusterPtr, NetworkConfigResponseCallback Callback - , byte[] ssid, byte[] credentials, Optional breadcrumb - , @Nullable Integer timedInvokeTimeoutMs); - private native void addOrUpdateThreadNetwork(long chipClusterPtr, NetworkConfigResponseCallback Callback - , byte[] operationalDataset, Optional breadcrumb - , @Nullable Integer timedInvokeTimeoutMs); - private native void removeNetwork(long chipClusterPtr, NetworkConfigResponseCallback Callback - , byte[] networkID, Optional breadcrumb - , @Nullable Integer timedInvokeTimeoutMs); - private native void connectNetwork(long chipClusterPtr, ConnectNetworkResponseCallback Callback - , byte[] networkID, Optional breadcrumb - , @Nullable Integer timedInvokeTimeoutMs); - private native void reorderNetwork(long chipClusterPtr, NetworkConfigResponseCallback Callback - , byte[] networkID, Integer networkIndex, Optional breadcrumb - , @Nullable Integer timedInvokeTimeoutMs); - public interface ScanNetworksResponseCallback { - void onSuccess(Integer networkingStatus, Optional debugText, Optional> wiFiScanResults, Optional> threadScanResults); - - void onError(Exception error); - } - - public interface NetworkConfigResponseCallback { - void onSuccess(Integer networkingStatus, Optional debugText, Optional networkIndex); - - void onError(Exception error); - } - - public interface ConnectNetworkResponseCallback { - void onSuccess(Integer networkingStatus, Optional debugText, @Nullable Long errorValue); - - void onError(Exception error); - } - - - public interface NetworksAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface LastNetworkingStatusAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface LastNetworkIDAttributeCallback { - void onSuccess(@Nullable byte[] value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface LastConnectErrorValueAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readMaxNetworksAttribute( - IntegerAttributeCallback callback - ) { - readMaxNetworksAttribute(chipClusterPtr, callback); - } - public void subscribeMaxNetworksAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMaxNetworksAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNetworksAttribute( - NetworksAttributeCallback callback - ) { - readNetworksAttribute(chipClusterPtr, callback); - } - public void subscribeNetworksAttribute( - NetworksAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNetworksAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readScanMaxTimeSecondsAttribute( - IntegerAttributeCallback callback - ) { - readScanMaxTimeSecondsAttribute(chipClusterPtr, callback); - } - public void subscribeScanMaxTimeSecondsAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeScanMaxTimeSecondsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readConnectMaxTimeSecondsAttribute( - IntegerAttributeCallback callback - ) { - readConnectMaxTimeSecondsAttribute(chipClusterPtr, callback); - } - public void subscribeConnectMaxTimeSecondsAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeConnectMaxTimeSecondsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInterfaceEnabledAttribute( - BooleanAttributeCallback callback - ) { - readInterfaceEnabledAttribute(chipClusterPtr, callback); - } - public void writeInterfaceEnabledAttribute(DefaultClusterCallback callback, Boolean value) { - writeInterfaceEnabledAttribute(chipClusterPtr, callback, value, null); - } - - public void writeInterfaceEnabledAttribute(DefaultClusterCallback callback, Boolean value, int timedWriteTimeoutMs) { - writeInterfaceEnabledAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeInterfaceEnabledAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInterfaceEnabledAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLastNetworkingStatusAttribute( - LastNetworkingStatusAttributeCallback callback - ) { - readLastNetworkingStatusAttribute(chipClusterPtr, callback); - } - public void subscribeLastNetworkingStatusAttribute( - LastNetworkingStatusAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeLastNetworkingStatusAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLastNetworkIDAttribute( - LastNetworkIDAttributeCallback callback - ) { - readLastNetworkIDAttribute(chipClusterPtr, callback); - } - public void subscribeLastNetworkIDAttribute( - LastNetworkIDAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeLastNetworkIDAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLastConnectErrorValueAttribute( - LastConnectErrorValueAttributeCallback callback - ) { - readLastConnectErrorValueAttribute(chipClusterPtr, callback); - } - public void subscribeLastConnectErrorValueAttribute( - LastConnectErrorValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeLastConnectErrorValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readMaxNetworksAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMaxNetworksAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readNetworksAttribute(long chipClusterPtr, - NetworksAttributeCallback callback - ); - private native void subscribeNetworksAttribute(long chipClusterPtr, - NetworksAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readScanMaxTimeSecondsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeScanMaxTimeSecondsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readConnectMaxTimeSecondsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeConnectMaxTimeSecondsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInterfaceEnabledAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - - private native void writeInterfaceEnabledAttribute(long chipClusterPtr, DefaultClusterCallback callback, Boolean value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeInterfaceEnabledAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLastNetworkingStatusAttribute(long chipClusterPtr, - LastNetworkingStatusAttributeCallback callback - ); - private native void subscribeLastNetworkingStatusAttribute(long chipClusterPtr, - LastNetworkingStatusAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readLastNetworkIDAttribute(long chipClusterPtr, - LastNetworkIDAttributeCallback callback - ); - private native void subscribeLastNetworkIDAttribute(long chipClusterPtr, - LastNetworkIDAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readLastConnectErrorValueAttribute(long chipClusterPtr, - LastConnectErrorValueAttributeCallback callback - ); - private native void subscribeLastConnectErrorValueAttribute(long chipClusterPtr, - LastConnectErrorValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class DiagnosticLogsCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000032L; - - public DiagnosticLogsCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void retrieveLogsRequest(RetrieveLogsResponseCallback callback - , Integer intent, Integer requestedProtocol, Optional transferFileDesignator) { - retrieveLogsRequest(chipClusterPtr, callback, intent, requestedProtocol, transferFileDesignator, null); - } - - public void retrieveLogsRequest(RetrieveLogsResponseCallback callback - , Integer intent, Integer requestedProtocol, Optional transferFileDesignator - , int timedInvokeTimeoutMs) { - retrieveLogsRequest(chipClusterPtr, callback, intent, requestedProtocol, transferFileDesignator, timedInvokeTimeoutMs); - } - private native void retrieveLogsRequest(long chipClusterPtr, RetrieveLogsResponseCallback Callback - , Integer intent, Integer requestedProtocol, Optional transferFileDesignator - , @Nullable Integer timedInvokeTimeoutMs); - public interface RetrieveLogsResponseCallback { - void onSuccess(Integer status, byte[] logContent, Optional UTCTimeStamp, Optional timeSinceBoot); - - void onError(Exception error); - } - - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class GeneralDiagnosticsCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000033L; - - public GeneralDiagnosticsCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void testEventTrigger(DefaultClusterCallback callback - , byte[] enableKey, Long eventTrigger) { - testEventTrigger(chipClusterPtr, callback, enableKey, eventTrigger, null); - } - - public void testEventTrigger(DefaultClusterCallback callback - , byte[] enableKey, Long eventTrigger - , int timedInvokeTimeoutMs) { - testEventTrigger(chipClusterPtr, callback, enableKey, eventTrigger, timedInvokeTimeoutMs); - } - private native void testEventTrigger(long chipClusterPtr, DefaultClusterCallback Callback - , byte[] enableKey, Long eventTrigger - , @Nullable Integer timedInvokeTimeoutMs); - - public interface NetworkInterfacesAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ActiveHardwareFaultsAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ActiveRadioFaultsAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ActiveNetworkFaultsAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readNetworkInterfacesAttribute( - NetworkInterfacesAttributeCallback callback - ) { - readNetworkInterfacesAttribute(chipClusterPtr, callback); - } - public void subscribeNetworkInterfacesAttribute( - NetworkInterfacesAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNetworkInterfacesAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRebootCountAttribute( - IntegerAttributeCallback callback - ) { - readRebootCountAttribute(chipClusterPtr, callback); - } - public void subscribeRebootCountAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRebootCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUpTimeAttribute( - LongAttributeCallback callback - ) { - readUpTimeAttribute(chipClusterPtr, callback); - } - public void subscribeUpTimeAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeUpTimeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTotalOperationalHoursAttribute( - LongAttributeCallback callback - ) { - readTotalOperationalHoursAttribute(chipClusterPtr, callback); - } - public void subscribeTotalOperationalHoursAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTotalOperationalHoursAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBootReasonAttribute( - IntegerAttributeCallback callback - ) { - readBootReasonAttribute(chipClusterPtr, callback); - } - public void subscribeBootReasonAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBootReasonAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readActiveHardwareFaultsAttribute( - ActiveHardwareFaultsAttributeCallback callback - ) { - readActiveHardwareFaultsAttribute(chipClusterPtr, callback); - } - public void subscribeActiveHardwareFaultsAttribute( - ActiveHardwareFaultsAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeActiveHardwareFaultsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readActiveRadioFaultsAttribute( - ActiveRadioFaultsAttributeCallback callback - ) { - readActiveRadioFaultsAttribute(chipClusterPtr, callback); - } - public void subscribeActiveRadioFaultsAttribute( - ActiveRadioFaultsAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeActiveRadioFaultsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readActiveNetworkFaultsAttribute( - ActiveNetworkFaultsAttributeCallback callback - ) { - readActiveNetworkFaultsAttribute(chipClusterPtr, callback); - } - public void subscribeActiveNetworkFaultsAttribute( - ActiveNetworkFaultsAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeActiveNetworkFaultsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTestEventTriggersEnabledAttribute( - BooleanAttributeCallback callback - ) { - readTestEventTriggersEnabledAttribute(chipClusterPtr, callback); - } - public void subscribeTestEventTriggersEnabledAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTestEventTriggersEnabledAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageWearCountAttribute( - LongAttributeCallback callback - ) { - readAverageWearCountAttribute(chipClusterPtr, callback); - } - public void subscribeAverageWearCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAverageWearCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readNetworkInterfacesAttribute(long chipClusterPtr, - NetworkInterfacesAttributeCallback callback - ); - private native void subscribeNetworkInterfacesAttribute(long chipClusterPtr, - NetworkInterfacesAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readRebootCountAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRebootCountAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readUpTimeAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeUpTimeAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTotalOperationalHoursAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeTotalOperationalHoursAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBootReasonAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeBootReasonAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readActiveHardwareFaultsAttribute(long chipClusterPtr, - ActiveHardwareFaultsAttributeCallback callback - ); - private native void subscribeActiveHardwareFaultsAttribute(long chipClusterPtr, - ActiveHardwareFaultsAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readActiveRadioFaultsAttribute(long chipClusterPtr, - ActiveRadioFaultsAttributeCallback callback - ); - private native void subscribeActiveRadioFaultsAttribute(long chipClusterPtr, - ActiveRadioFaultsAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readActiveNetworkFaultsAttribute(long chipClusterPtr, - ActiveNetworkFaultsAttributeCallback callback - ); - private native void subscribeActiveNetworkFaultsAttribute(long chipClusterPtr, - ActiveNetworkFaultsAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readTestEventTriggersEnabledAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - private native void subscribeTestEventTriggersEnabledAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAverageWearCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeAverageWearCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class SoftwareDiagnosticsCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000034L; - - public SoftwareDiagnosticsCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void resetWatermarks(DefaultClusterCallback callback - ) { - resetWatermarks(chipClusterPtr, callback, null); - } - - public void resetWatermarks(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - resetWatermarks(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - private native void resetWatermarks(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - - public interface ThreadMetricsAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readThreadMetricsAttribute( - ThreadMetricsAttributeCallback callback - ) { - readThreadMetricsAttribute(chipClusterPtr, callback); - } - public void subscribeThreadMetricsAttribute( - ThreadMetricsAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeThreadMetricsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentHeapFreeAttribute( - LongAttributeCallback callback - ) { - readCurrentHeapFreeAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentHeapFreeAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCurrentHeapFreeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentHeapUsedAttribute( - LongAttributeCallback callback - ) { - readCurrentHeapUsedAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentHeapUsedAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCurrentHeapUsedAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentHeapHighWatermarkAttribute( - LongAttributeCallback callback - ) { - readCurrentHeapHighWatermarkAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentHeapHighWatermarkAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCurrentHeapHighWatermarkAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readThreadMetricsAttribute(long chipClusterPtr, - ThreadMetricsAttributeCallback callback - ); - private native void subscribeThreadMetricsAttribute(long chipClusterPtr, - ThreadMetricsAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readCurrentHeapFreeAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeCurrentHeapFreeAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readCurrentHeapUsedAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeCurrentHeapUsedAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readCurrentHeapHighWatermarkAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeCurrentHeapHighWatermarkAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class ThreadNetworkDiagnosticsCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000035L; - - public ThreadNetworkDiagnosticsCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void resetCounts(DefaultClusterCallback callback - ) { - resetCounts(chipClusterPtr, callback, null); - } - - public void resetCounts(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - resetCounts(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - private native void resetCounts(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - - public interface ChannelAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface RoutingRoleAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NetworkNameAttributeCallback { - void onSuccess(@Nullable String value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface PanIdAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ExtendedPanIdAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MeshLocalPrefixAttributeCallback { - void onSuccess(@Nullable byte[] value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NeighborTableAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface RouteTableAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface PartitionIdAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface WeightingAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface DataVersionAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface StableDataVersionAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface LeaderRouterIdAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ActiveTimestampAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface PendingTimestampAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface DelayAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ChannelPage0MaskAttributeCallback { - void onSuccess(@Nullable byte[] value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ActiveNetworkFaultsListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readChannelAttribute( - ChannelAttributeCallback callback - ) { - readChannelAttribute(chipClusterPtr, callback); - } - public void subscribeChannelAttribute( - ChannelAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeChannelAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRoutingRoleAttribute( - RoutingRoleAttributeCallback callback - ) { - readRoutingRoleAttribute(chipClusterPtr, callback); - } - public void subscribeRoutingRoleAttribute( - RoutingRoleAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeRoutingRoleAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNetworkNameAttribute( - NetworkNameAttributeCallback callback - ) { - readNetworkNameAttribute(chipClusterPtr, callback); - } - public void subscribeNetworkNameAttribute( - NetworkNameAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNetworkNameAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPanIdAttribute( - PanIdAttributeCallback callback - ) { - readPanIdAttribute(chipClusterPtr, callback); - } - public void subscribePanIdAttribute( - PanIdAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePanIdAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readExtendedPanIdAttribute( - ExtendedPanIdAttributeCallback callback - ) { - readExtendedPanIdAttribute(chipClusterPtr, callback); - } - public void subscribeExtendedPanIdAttribute( - ExtendedPanIdAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeExtendedPanIdAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeshLocalPrefixAttribute( - MeshLocalPrefixAttributeCallback callback - ) { - readMeshLocalPrefixAttribute(chipClusterPtr, callback); - } - public void subscribeMeshLocalPrefixAttribute( - MeshLocalPrefixAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMeshLocalPrefixAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOverrunCountAttribute( - LongAttributeCallback callback - ) { - readOverrunCountAttribute(chipClusterPtr, callback); - } - public void subscribeOverrunCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeOverrunCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNeighborTableAttribute( - NeighborTableAttributeCallback callback - ) { - readNeighborTableAttribute(chipClusterPtr, callback); - } - public void subscribeNeighborTableAttribute( - NeighborTableAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNeighborTableAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRouteTableAttribute( - RouteTableAttributeCallback callback - ) { - readRouteTableAttribute(chipClusterPtr, callback); - } - public void subscribeRouteTableAttribute( - RouteTableAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeRouteTableAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPartitionIdAttribute( - PartitionIdAttributeCallback callback - ) { - readPartitionIdAttribute(chipClusterPtr, callback); - } - public void subscribePartitionIdAttribute( - PartitionIdAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePartitionIdAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readWeightingAttribute( - WeightingAttributeCallback callback - ) { - readWeightingAttribute(chipClusterPtr, callback); - } - public void subscribeWeightingAttribute( - WeightingAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeWeightingAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDataVersionAttribute( - DataVersionAttributeCallback callback - ) { - readDataVersionAttribute(chipClusterPtr, callback); - } - public void subscribeDataVersionAttribute( - DataVersionAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeDataVersionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readStableDataVersionAttribute( - StableDataVersionAttributeCallback callback - ) { - readStableDataVersionAttribute(chipClusterPtr, callback); - } - public void subscribeStableDataVersionAttribute( - StableDataVersionAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeStableDataVersionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLeaderRouterIdAttribute( - LeaderRouterIdAttributeCallback callback - ) { - readLeaderRouterIdAttribute(chipClusterPtr, callback); - } - public void subscribeLeaderRouterIdAttribute( - LeaderRouterIdAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeLeaderRouterIdAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDetachedRoleCountAttribute( - IntegerAttributeCallback callback - ) { - readDetachedRoleCountAttribute(chipClusterPtr, callback); - } - public void subscribeDetachedRoleCountAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDetachedRoleCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readChildRoleCountAttribute( - IntegerAttributeCallback callback - ) { - readChildRoleCountAttribute(chipClusterPtr, callback); - } - public void subscribeChildRoleCountAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeChildRoleCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRouterRoleCountAttribute( - IntegerAttributeCallback callback - ) { - readRouterRoleCountAttribute(chipClusterPtr, callback); - } - public void subscribeRouterRoleCountAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRouterRoleCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLeaderRoleCountAttribute( - IntegerAttributeCallback callback - ) { - readLeaderRoleCountAttribute(chipClusterPtr, callback); - } - public void subscribeLeaderRoleCountAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLeaderRoleCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttachAttemptCountAttribute( - IntegerAttributeCallback callback - ) { - readAttachAttemptCountAttribute(chipClusterPtr, callback); - } - public void subscribeAttachAttemptCountAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAttachAttemptCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPartitionIdChangeCountAttribute( - IntegerAttributeCallback callback - ) { - readPartitionIdChangeCountAttribute(chipClusterPtr, callback); - } - public void subscribePartitionIdChangeCountAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePartitionIdChangeCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBetterPartitionAttachAttemptCountAttribute( - IntegerAttributeCallback callback - ) { - readBetterPartitionAttachAttemptCountAttribute(chipClusterPtr, callback); - } - public void subscribeBetterPartitionAttachAttemptCountAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBetterPartitionAttachAttemptCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readParentChangeCountAttribute( - IntegerAttributeCallback callback - ) { - readParentChangeCountAttribute(chipClusterPtr, callback); - } - public void subscribeParentChangeCountAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeParentChangeCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTxTotalCountAttribute( - LongAttributeCallback callback - ) { - readTxTotalCountAttribute(chipClusterPtr, callback); - } - public void subscribeTxTotalCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTxTotalCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTxUnicastCountAttribute( - LongAttributeCallback callback - ) { - readTxUnicastCountAttribute(chipClusterPtr, callback); - } - public void subscribeTxUnicastCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTxUnicastCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTxBroadcastCountAttribute( - LongAttributeCallback callback - ) { - readTxBroadcastCountAttribute(chipClusterPtr, callback); - } - public void subscribeTxBroadcastCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTxBroadcastCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTxAckRequestedCountAttribute( - LongAttributeCallback callback - ) { - readTxAckRequestedCountAttribute(chipClusterPtr, callback); - } - public void subscribeTxAckRequestedCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTxAckRequestedCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTxAckedCountAttribute( - LongAttributeCallback callback - ) { - readTxAckedCountAttribute(chipClusterPtr, callback); - } - public void subscribeTxAckedCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTxAckedCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTxNoAckRequestedCountAttribute( - LongAttributeCallback callback - ) { - readTxNoAckRequestedCountAttribute(chipClusterPtr, callback); - } - public void subscribeTxNoAckRequestedCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTxNoAckRequestedCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTxDataCountAttribute( - LongAttributeCallback callback - ) { - readTxDataCountAttribute(chipClusterPtr, callback); - } - public void subscribeTxDataCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTxDataCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTxDataPollCountAttribute( - LongAttributeCallback callback - ) { - readTxDataPollCountAttribute(chipClusterPtr, callback); - } - public void subscribeTxDataPollCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTxDataPollCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTxBeaconCountAttribute( - LongAttributeCallback callback - ) { - readTxBeaconCountAttribute(chipClusterPtr, callback); - } - public void subscribeTxBeaconCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTxBeaconCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTxBeaconRequestCountAttribute( - LongAttributeCallback callback - ) { - readTxBeaconRequestCountAttribute(chipClusterPtr, callback); - } - public void subscribeTxBeaconRequestCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTxBeaconRequestCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTxOtherCountAttribute( - LongAttributeCallback callback - ) { - readTxOtherCountAttribute(chipClusterPtr, callback); - } - public void subscribeTxOtherCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTxOtherCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTxRetryCountAttribute( - LongAttributeCallback callback - ) { - readTxRetryCountAttribute(chipClusterPtr, callback); - } - public void subscribeTxRetryCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTxRetryCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTxDirectMaxRetryExpiryCountAttribute( - LongAttributeCallback callback - ) { - readTxDirectMaxRetryExpiryCountAttribute(chipClusterPtr, callback); - } - public void subscribeTxDirectMaxRetryExpiryCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTxDirectMaxRetryExpiryCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTxIndirectMaxRetryExpiryCountAttribute( - LongAttributeCallback callback - ) { - readTxIndirectMaxRetryExpiryCountAttribute(chipClusterPtr, callback); - } - public void subscribeTxIndirectMaxRetryExpiryCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTxIndirectMaxRetryExpiryCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTxErrCcaCountAttribute( - LongAttributeCallback callback - ) { - readTxErrCcaCountAttribute(chipClusterPtr, callback); - } - public void subscribeTxErrCcaCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTxErrCcaCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTxErrAbortCountAttribute( - LongAttributeCallback callback - ) { - readTxErrAbortCountAttribute(chipClusterPtr, callback); - } - public void subscribeTxErrAbortCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTxErrAbortCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTxErrBusyChannelCountAttribute( - LongAttributeCallback callback - ) { - readTxErrBusyChannelCountAttribute(chipClusterPtr, callback); - } - public void subscribeTxErrBusyChannelCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTxErrBusyChannelCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRxTotalCountAttribute( - LongAttributeCallback callback - ) { - readRxTotalCountAttribute(chipClusterPtr, callback); - } - public void subscribeRxTotalCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRxTotalCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRxUnicastCountAttribute( - LongAttributeCallback callback - ) { - readRxUnicastCountAttribute(chipClusterPtr, callback); - } - public void subscribeRxUnicastCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRxUnicastCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRxBroadcastCountAttribute( - LongAttributeCallback callback - ) { - readRxBroadcastCountAttribute(chipClusterPtr, callback); - } - public void subscribeRxBroadcastCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRxBroadcastCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRxDataCountAttribute( - LongAttributeCallback callback - ) { - readRxDataCountAttribute(chipClusterPtr, callback); - } - public void subscribeRxDataCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRxDataCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRxDataPollCountAttribute( - LongAttributeCallback callback - ) { - readRxDataPollCountAttribute(chipClusterPtr, callback); - } - public void subscribeRxDataPollCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRxDataPollCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRxBeaconCountAttribute( - LongAttributeCallback callback - ) { - readRxBeaconCountAttribute(chipClusterPtr, callback); - } - public void subscribeRxBeaconCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRxBeaconCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRxBeaconRequestCountAttribute( - LongAttributeCallback callback - ) { - readRxBeaconRequestCountAttribute(chipClusterPtr, callback); - } - public void subscribeRxBeaconRequestCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRxBeaconRequestCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRxOtherCountAttribute( - LongAttributeCallback callback - ) { - readRxOtherCountAttribute(chipClusterPtr, callback); - } - public void subscribeRxOtherCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRxOtherCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRxAddressFilteredCountAttribute( - LongAttributeCallback callback - ) { - readRxAddressFilteredCountAttribute(chipClusterPtr, callback); - } - public void subscribeRxAddressFilteredCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRxAddressFilteredCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRxDestAddrFilteredCountAttribute( - LongAttributeCallback callback - ) { - readRxDestAddrFilteredCountAttribute(chipClusterPtr, callback); - } - public void subscribeRxDestAddrFilteredCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRxDestAddrFilteredCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRxDuplicatedCountAttribute( - LongAttributeCallback callback - ) { - readRxDuplicatedCountAttribute(chipClusterPtr, callback); - } - public void subscribeRxDuplicatedCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRxDuplicatedCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRxErrNoFrameCountAttribute( - LongAttributeCallback callback - ) { - readRxErrNoFrameCountAttribute(chipClusterPtr, callback); - } - public void subscribeRxErrNoFrameCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRxErrNoFrameCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRxErrUnknownNeighborCountAttribute( - LongAttributeCallback callback - ) { - readRxErrUnknownNeighborCountAttribute(chipClusterPtr, callback); - } - public void subscribeRxErrUnknownNeighborCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRxErrUnknownNeighborCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRxErrInvalidSrcAddrCountAttribute( - LongAttributeCallback callback - ) { - readRxErrInvalidSrcAddrCountAttribute(chipClusterPtr, callback); - } - public void subscribeRxErrInvalidSrcAddrCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRxErrInvalidSrcAddrCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRxErrSecCountAttribute( - LongAttributeCallback callback - ) { - readRxErrSecCountAttribute(chipClusterPtr, callback); - } - public void subscribeRxErrSecCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRxErrSecCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRxErrFcsCountAttribute( - LongAttributeCallback callback - ) { - readRxErrFcsCountAttribute(chipClusterPtr, callback); - } - public void subscribeRxErrFcsCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRxErrFcsCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRxErrOtherCountAttribute( - LongAttributeCallback callback - ) { - readRxErrOtherCountAttribute(chipClusterPtr, callback); - } - public void subscribeRxErrOtherCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRxErrOtherCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readActiveTimestampAttribute( - ActiveTimestampAttributeCallback callback - ) { - readActiveTimestampAttribute(chipClusterPtr, callback); - } - public void subscribeActiveTimestampAttribute( - ActiveTimestampAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeActiveTimestampAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPendingTimestampAttribute( - PendingTimestampAttributeCallback callback - ) { - readPendingTimestampAttribute(chipClusterPtr, callback); - } - public void subscribePendingTimestampAttribute( - PendingTimestampAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePendingTimestampAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDelayAttribute( - DelayAttributeCallback callback - ) { - readDelayAttribute(chipClusterPtr, callback); - } - public void subscribeDelayAttribute( - DelayAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeDelayAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readChannelPage0MaskAttribute( - ChannelPage0MaskAttributeCallback callback - ) { - readChannelPage0MaskAttribute(chipClusterPtr, callback); - } - public void subscribeChannelPage0MaskAttribute( - ChannelPage0MaskAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeChannelPage0MaskAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readActiveNetworkFaultsListAttribute( - ActiveNetworkFaultsListAttributeCallback callback - ) { - readActiveNetworkFaultsListAttribute(chipClusterPtr, callback); - } - public void subscribeActiveNetworkFaultsListAttribute( - ActiveNetworkFaultsListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeActiveNetworkFaultsListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readChannelAttribute(long chipClusterPtr, - ChannelAttributeCallback callback - ); - private native void subscribeChannelAttribute(long chipClusterPtr, - ChannelAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readRoutingRoleAttribute(long chipClusterPtr, - RoutingRoleAttributeCallback callback - ); - private native void subscribeRoutingRoleAttribute(long chipClusterPtr, - RoutingRoleAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNetworkNameAttribute(long chipClusterPtr, - NetworkNameAttributeCallback callback - ); - private native void subscribeNetworkNameAttribute(long chipClusterPtr, - NetworkNameAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPanIdAttribute(long chipClusterPtr, - PanIdAttributeCallback callback - ); - private native void subscribePanIdAttribute(long chipClusterPtr, - PanIdAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readExtendedPanIdAttribute(long chipClusterPtr, - ExtendedPanIdAttributeCallback callback - ); - private native void subscribeExtendedPanIdAttribute(long chipClusterPtr, - ExtendedPanIdAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMeshLocalPrefixAttribute(long chipClusterPtr, - MeshLocalPrefixAttributeCallback callback - ); - private native void subscribeMeshLocalPrefixAttribute(long chipClusterPtr, - MeshLocalPrefixAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readOverrunCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeOverrunCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readNeighborTableAttribute(long chipClusterPtr, - NeighborTableAttributeCallback callback - ); - private native void subscribeNeighborTableAttribute(long chipClusterPtr, - NeighborTableAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readRouteTableAttribute(long chipClusterPtr, - RouteTableAttributeCallback callback - ); - private native void subscribeRouteTableAttribute(long chipClusterPtr, - RouteTableAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPartitionIdAttribute(long chipClusterPtr, - PartitionIdAttributeCallback callback - ); - private native void subscribePartitionIdAttribute(long chipClusterPtr, - PartitionIdAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readWeightingAttribute(long chipClusterPtr, - WeightingAttributeCallback callback - ); - private native void subscribeWeightingAttribute(long chipClusterPtr, - WeightingAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readDataVersionAttribute(long chipClusterPtr, - DataVersionAttributeCallback callback - ); - private native void subscribeDataVersionAttribute(long chipClusterPtr, - DataVersionAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readStableDataVersionAttribute(long chipClusterPtr, - StableDataVersionAttributeCallback callback - ); - private native void subscribeStableDataVersionAttribute(long chipClusterPtr, - StableDataVersionAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readLeaderRouterIdAttribute(long chipClusterPtr, - LeaderRouterIdAttributeCallback callback - ); - private native void subscribeLeaderRouterIdAttribute(long chipClusterPtr, - LeaderRouterIdAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readDetachedRoleCountAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeDetachedRoleCountAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readChildRoleCountAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeChildRoleCountAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRouterRoleCountAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRouterRoleCountAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLeaderRoleCountAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeLeaderRoleCountAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAttachAttemptCountAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAttachAttemptCountAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPartitionIdChangeCountAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePartitionIdChangeCountAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBetterPartitionAttachAttemptCountAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeBetterPartitionAttachAttemptCountAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readParentChangeCountAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeParentChangeCountAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTxTotalCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeTxTotalCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTxUnicastCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeTxUnicastCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTxBroadcastCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeTxBroadcastCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTxAckRequestedCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeTxAckRequestedCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTxAckedCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeTxAckedCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTxNoAckRequestedCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeTxNoAckRequestedCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTxDataCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeTxDataCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTxDataPollCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeTxDataPollCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTxBeaconCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeTxBeaconCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTxBeaconRequestCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeTxBeaconRequestCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTxOtherCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeTxOtherCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTxRetryCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeTxRetryCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTxDirectMaxRetryExpiryCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeTxDirectMaxRetryExpiryCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTxIndirectMaxRetryExpiryCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeTxIndirectMaxRetryExpiryCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTxErrCcaCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeTxErrCcaCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTxErrAbortCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeTxErrAbortCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTxErrBusyChannelCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeTxErrBusyChannelCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRxTotalCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeRxTotalCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRxUnicastCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeRxUnicastCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRxBroadcastCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeRxBroadcastCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRxDataCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeRxDataCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRxDataPollCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeRxDataPollCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRxBeaconCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeRxBeaconCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRxBeaconRequestCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeRxBeaconRequestCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRxOtherCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeRxOtherCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRxAddressFilteredCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeRxAddressFilteredCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRxDestAddrFilteredCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeRxDestAddrFilteredCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRxDuplicatedCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeRxDuplicatedCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRxErrNoFrameCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeRxErrNoFrameCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRxErrUnknownNeighborCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeRxErrUnknownNeighborCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRxErrInvalidSrcAddrCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeRxErrInvalidSrcAddrCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRxErrSecCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeRxErrSecCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRxErrFcsCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeRxErrFcsCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRxErrOtherCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeRxErrOtherCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readActiveTimestampAttribute(long chipClusterPtr, - ActiveTimestampAttributeCallback callback - ); - private native void subscribeActiveTimestampAttribute(long chipClusterPtr, - ActiveTimestampAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPendingTimestampAttribute(long chipClusterPtr, - PendingTimestampAttributeCallback callback - ); - private native void subscribePendingTimestampAttribute(long chipClusterPtr, - PendingTimestampAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readDelayAttribute(long chipClusterPtr, - DelayAttributeCallback callback - ); - private native void subscribeDelayAttribute(long chipClusterPtr, - DelayAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readChannelPage0MaskAttribute(long chipClusterPtr, - ChannelPage0MaskAttributeCallback callback - ); - private native void subscribeChannelPage0MaskAttribute(long chipClusterPtr, - ChannelPage0MaskAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readActiveNetworkFaultsListAttribute(long chipClusterPtr, - ActiveNetworkFaultsListAttributeCallback callback - ); - private native void subscribeActiveNetworkFaultsListAttribute(long chipClusterPtr, - ActiveNetworkFaultsListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class WiFiNetworkDiagnosticsCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000036L; - - public WiFiNetworkDiagnosticsCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void resetCounts(DefaultClusterCallback callback - ) { - resetCounts(chipClusterPtr, callback, null); - } - - public void resetCounts(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - resetCounts(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - private native void resetCounts(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - - public interface BssidAttributeCallback { - void onSuccess(@Nullable byte[] value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface SecurityTypeAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface WiFiVersionAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ChannelNumberAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface RssiAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface BeaconLostCountAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface BeaconRxCountAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface PacketMulticastRxCountAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface PacketMulticastTxCountAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface PacketUnicastRxCountAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface PacketUnicastTxCountAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface CurrentMaxRateAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface OverrunCountAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readBssidAttribute( - BssidAttributeCallback callback - ) { - readBssidAttribute(chipClusterPtr, callback); - } - public void subscribeBssidAttribute( - BssidAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeBssidAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSecurityTypeAttribute( - SecurityTypeAttributeCallback callback - ) { - readSecurityTypeAttribute(chipClusterPtr, callback); - } - public void subscribeSecurityTypeAttribute( - SecurityTypeAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeSecurityTypeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readWiFiVersionAttribute( - WiFiVersionAttributeCallback callback - ) { - readWiFiVersionAttribute(chipClusterPtr, callback); - } - public void subscribeWiFiVersionAttribute( - WiFiVersionAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeWiFiVersionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readChannelNumberAttribute( - ChannelNumberAttributeCallback callback - ) { - readChannelNumberAttribute(chipClusterPtr, callback); - } - public void subscribeChannelNumberAttribute( - ChannelNumberAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeChannelNumberAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRssiAttribute( - RssiAttributeCallback callback - ) { - readRssiAttribute(chipClusterPtr, callback); - } - public void subscribeRssiAttribute( - RssiAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeRssiAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBeaconLostCountAttribute( - BeaconLostCountAttributeCallback callback - ) { - readBeaconLostCountAttribute(chipClusterPtr, callback); - } - public void subscribeBeaconLostCountAttribute( - BeaconLostCountAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeBeaconLostCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBeaconRxCountAttribute( - BeaconRxCountAttributeCallback callback - ) { - readBeaconRxCountAttribute(chipClusterPtr, callback); - } - public void subscribeBeaconRxCountAttribute( - BeaconRxCountAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeBeaconRxCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPacketMulticastRxCountAttribute( - PacketMulticastRxCountAttributeCallback callback - ) { - readPacketMulticastRxCountAttribute(chipClusterPtr, callback); - } - public void subscribePacketMulticastRxCountAttribute( - PacketMulticastRxCountAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePacketMulticastRxCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPacketMulticastTxCountAttribute( - PacketMulticastTxCountAttributeCallback callback - ) { - readPacketMulticastTxCountAttribute(chipClusterPtr, callback); - } - public void subscribePacketMulticastTxCountAttribute( - PacketMulticastTxCountAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePacketMulticastTxCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPacketUnicastRxCountAttribute( - PacketUnicastRxCountAttributeCallback callback - ) { - readPacketUnicastRxCountAttribute(chipClusterPtr, callback); - } - public void subscribePacketUnicastRxCountAttribute( - PacketUnicastRxCountAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePacketUnicastRxCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPacketUnicastTxCountAttribute( - PacketUnicastTxCountAttributeCallback callback - ) { - readPacketUnicastTxCountAttribute(chipClusterPtr, callback); - } - public void subscribePacketUnicastTxCountAttribute( - PacketUnicastTxCountAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePacketUnicastTxCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentMaxRateAttribute( - CurrentMaxRateAttributeCallback callback - ) { - readCurrentMaxRateAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentMaxRateAttribute( - CurrentMaxRateAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeCurrentMaxRateAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOverrunCountAttribute( - OverrunCountAttributeCallback callback - ) { - readOverrunCountAttribute(chipClusterPtr, callback); - } - public void subscribeOverrunCountAttribute( - OverrunCountAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeOverrunCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readBssidAttribute(long chipClusterPtr, - BssidAttributeCallback callback - ); - private native void subscribeBssidAttribute(long chipClusterPtr, - BssidAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readSecurityTypeAttribute(long chipClusterPtr, - SecurityTypeAttributeCallback callback - ); - private native void subscribeSecurityTypeAttribute(long chipClusterPtr, - SecurityTypeAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readWiFiVersionAttribute(long chipClusterPtr, - WiFiVersionAttributeCallback callback - ); - private native void subscribeWiFiVersionAttribute(long chipClusterPtr, - WiFiVersionAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readChannelNumberAttribute(long chipClusterPtr, - ChannelNumberAttributeCallback callback - ); - private native void subscribeChannelNumberAttribute(long chipClusterPtr, - ChannelNumberAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readRssiAttribute(long chipClusterPtr, - RssiAttributeCallback callback - ); - private native void subscribeRssiAttribute(long chipClusterPtr, - RssiAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readBeaconLostCountAttribute(long chipClusterPtr, - BeaconLostCountAttributeCallback callback - ); - private native void subscribeBeaconLostCountAttribute(long chipClusterPtr, - BeaconLostCountAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readBeaconRxCountAttribute(long chipClusterPtr, - BeaconRxCountAttributeCallback callback - ); - private native void subscribeBeaconRxCountAttribute(long chipClusterPtr, - BeaconRxCountAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPacketMulticastRxCountAttribute(long chipClusterPtr, - PacketMulticastRxCountAttributeCallback callback - ); - private native void subscribePacketMulticastRxCountAttribute(long chipClusterPtr, - PacketMulticastRxCountAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPacketMulticastTxCountAttribute(long chipClusterPtr, - PacketMulticastTxCountAttributeCallback callback - ); - private native void subscribePacketMulticastTxCountAttribute(long chipClusterPtr, - PacketMulticastTxCountAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPacketUnicastRxCountAttribute(long chipClusterPtr, - PacketUnicastRxCountAttributeCallback callback - ); - private native void subscribePacketUnicastRxCountAttribute(long chipClusterPtr, - PacketUnicastRxCountAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPacketUnicastTxCountAttribute(long chipClusterPtr, - PacketUnicastTxCountAttributeCallback callback - ); - private native void subscribePacketUnicastTxCountAttribute(long chipClusterPtr, - PacketUnicastTxCountAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readCurrentMaxRateAttribute(long chipClusterPtr, - CurrentMaxRateAttributeCallback callback - ); - private native void subscribeCurrentMaxRateAttribute(long chipClusterPtr, - CurrentMaxRateAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readOverrunCountAttribute(long chipClusterPtr, - OverrunCountAttributeCallback callback - ); - private native void subscribeOverrunCountAttribute(long chipClusterPtr, - OverrunCountAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class EthernetNetworkDiagnosticsCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000037L; - - public EthernetNetworkDiagnosticsCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void resetCounts(DefaultClusterCallback callback - ) { - resetCounts(chipClusterPtr, callback, null); - } - - public void resetCounts(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - resetCounts(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - private native void resetCounts(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - - public interface PHYRateAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface FullDuplexAttributeCallback { - void onSuccess(@Nullable Boolean value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface CarrierDetectAttributeCallback { - void onSuccess(@Nullable Boolean value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readPHYRateAttribute( - PHYRateAttributeCallback callback - ) { - readPHYRateAttribute(chipClusterPtr, callback); - } - public void subscribePHYRateAttribute( - PHYRateAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePHYRateAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFullDuplexAttribute( - FullDuplexAttributeCallback callback - ) { - readFullDuplexAttribute(chipClusterPtr, callback); - } - public void subscribeFullDuplexAttribute( - FullDuplexAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeFullDuplexAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPacketRxCountAttribute( - LongAttributeCallback callback - ) { - readPacketRxCountAttribute(chipClusterPtr, callback); - } - public void subscribePacketRxCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePacketRxCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPacketTxCountAttribute( - LongAttributeCallback callback - ) { - readPacketTxCountAttribute(chipClusterPtr, callback); - } - public void subscribePacketTxCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePacketTxCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTxErrCountAttribute( - LongAttributeCallback callback - ) { - readTxErrCountAttribute(chipClusterPtr, callback); - } - public void subscribeTxErrCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTxErrCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCollisionCountAttribute( - LongAttributeCallback callback - ) { - readCollisionCountAttribute(chipClusterPtr, callback); - } - public void subscribeCollisionCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCollisionCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOverrunCountAttribute( - LongAttributeCallback callback - ) { - readOverrunCountAttribute(chipClusterPtr, callback); - } - public void subscribeOverrunCountAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeOverrunCountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCarrierDetectAttribute( - CarrierDetectAttributeCallback callback - ) { - readCarrierDetectAttribute(chipClusterPtr, callback); - } - public void subscribeCarrierDetectAttribute( - CarrierDetectAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeCarrierDetectAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTimeSinceResetAttribute( - LongAttributeCallback callback - ) { - readTimeSinceResetAttribute(chipClusterPtr, callback); - } - public void subscribeTimeSinceResetAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTimeSinceResetAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readPHYRateAttribute(long chipClusterPtr, - PHYRateAttributeCallback callback - ); - private native void subscribePHYRateAttribute(long chipClusterPtr, - PHYRateAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFullDuplexAttribute(long chipClusterPtr, - FullDuplexAttributeCallback callback - ); - private native void subscribeFullDuplexAttribute(long chipClusterPtr, - FullDuplexAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPacketRxCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribePacketRxCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPacketTxCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribePacketTxCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTxErrCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeTxErrCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readCollisionCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeCollisionCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readOverrunCountAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeOverrunCountAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readCarrierDetectAttribute(long chipClusterPtr, - CarrierDetectAttributeCallback callback - ); - private native void subscribeCarrierDetectAttribute(long chipClusterPtr, - CarrierDetectAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readTimeSinceResetAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeTimeSinceResetAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class TimeSynchronizationCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000038L; - - public TimeSynchronizationCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void setUTCTime(DefaultClusterCallback callback - , Long UTCTime, Integer granularity, Optional timeSource) { - setUTCTime(chipClusterPtr, callback, UTCTime, granularity, timeSource, null); - } - - public void setUTCTime(DefaultClusterCallback callback - , Long UTCTime, Integer granularity, Optional timeSource - , int timedInvokeTimeoutMs) { - setUTCTime(chipClusterPtr, callback, UTCTime, granularity, timeSource, timedInvokeTimeoutMs); - } - - public void setTrustedTimeSource(DefaultClusterCallback callback - , @Nullable ChipStructs.TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct trustedTimeSource) { - setTrustedTimeSource(chipClusterPtr, callback, trustedTimeSource, null); - } - - public void setTrustedTimeSource(DefaultClusterCallback callback - , @Nullable ChipStructs.TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct trustedTimeSource - , int timedInvokeTimeoutMs) { - setTrustedTimeSource(chipClusterPtr, callback, trustedTimeSource, timedInvokeTimeoutMs); - } - - public void setTimeZone(SetTimeZoneResponseCallback callback - , ArrayList timeZone) { - setTimeZone(chipClusterPtr, callback, timeZone, null); - } - - public void setTimeZone(SetTimeZoneResponseCallback callback - , ArrayList timeZone - , int timedInvokeTimeoutMs) { - setTimeZone(chipClusterPtr, callback, timeZone, timedInvokeTimeoutMs); - } - - public void setDSTOffset(DefaultClusterCallback callback - , ArrayList DSTOffset) { - setDSTOffset(chipClusterPtr, callback, DSTOffset, null); - } - - public void setDSTOffset(DefaultClusterCallback callback - , ArrayList DSTOffset - , int timedInvokeTimeoutMs) { - setDSTOffset(chipClusterPtr, callback, DSTOffset, timedInvokeTimeoutMs); - } - - public void setDefaultNTP(DefaultClusterCallback callback - , @Nullable String defaultNTP) { - setDefaultNTP(chipClusterPtr, callback, defaultNTP, null); - } - - public void setDefaultNTP(DefaultClusterCallback callback - , @Nullable String defaultNTP - , int timedInvokeTimeoutMs) { - setDefaultNTP(chipClusterPtr, callback, defaultNTP, timedInvokeTimeoutMs); - } - private native void setUTCTime(long chipClusterPtr, DefaultClusterCallback Callback - , Long UTCTime, Integer granularity, Optional timeSource - , @Nullable Integer timedInvokeTimeoutMs); - private native void setTrustedTimeSource(long chipClusterPtr, DefaultClusterCallback Callback - , @Nullable ChipStructs.TimeSynchronizationClusterFabricScopedTrustedTimeSourceStruct trustedTimeSource - , @Nullable Integer timedInvokeTimeoutMs); - private native void setTimeZone(long chipClusterPtr, SetTimeZoneResponseCallback Callback - , ArrayList timeZone - , @Nullable Integer timedInvokeTimeoutMs); - private native void setDSTOffset(long chipClusterPtr, DefaultClusterCallback Callback - , ArrayList DSTOffset - , @Nullable Integer timedInvokeTimeoutMs); - private native void setDefaultNTP(long chipClusterPtr, DefaultClusterCallback Callback - , @Nullable String defaultNTP - , @Nullable Integer timedInvokeTimeoutMs); - public interface SetTimeZoneResponseCallback { - void onSuccess(Boolean DSTOffsetRequired); - - void onError(Exception error); - } - - - public interface UTCTimeAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface DefaultNTPAttributeCallback { - void onSuccess(@Nullable String value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface TimeZoneAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface DSTOffsetAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface LocalTimeAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readUTCTimeAttribute( - UTCTimeAttributeCallback callback - ) { - readUTCTimeAttribute(chipClusterPtr, callback); - } - public void subscribeUTCTimeAttribute( - UTCTimeAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeUTCTimeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGranularityAttribute( - IntegerAttributeCallback callback - ) { - readGranularityAttribute(chipClusterPtr, callback); - } - public void subscribeGranularityAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeGranularityAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTimeSourceAttribute( - IntegerAttributeCallback callback - ) { - readTimeSourceAttribute(chipClusterPtr, callback); - } - public void subscribeTimeSourceAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTimeSourceAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDefaultNTPAttribute( - DefaultNTPAttributeCallback callback - ) { - readDefaultNTPAttribute(chipClusterPtr, callback); - } - public void subscribeDefaultNTPAttribute( - DefaultNTPAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeDefaultNTPAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTimeZoneAttribute( - TimeZoneAttributeCallback callback - ) { - readTimeZoneAttribute(chipClusterPtr, callback); - } - public void subscribeTimeZoneAttribute( - TimeZoneAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeTimeZoneAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDSTOffsetAttribute( - DSTOffsetAttributeCallback callback - ) { - readDSTOffsetAttribute(chipClusterPtr, callback); - } - public void subscribeDSTOffsetAttribute( - DSTOffsetAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeDSTOffsetAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLocalTimeAttribute( - LocalTimeAttributeCallback callback - ) { - readLocalTimeAttribute(chipClusterPtr, callback); - } - public void subscribeLocalTimeAttribute( - LocalTimeAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeLocalTimeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTimeZoneDatabaseAttribute( - IntegerAttributeCallback callback - ) { - readTimeZoneDatabaseAttribute(chipClusterPtr, callback); - } - public void subscribeTimeZoneDatabaseAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTimeZoneDatabaseAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNTPServerAvailableAttribute( - BooleanAttributeCallback callback - ) { - readNTPServerAvailableAttribute(chipClusterPtr, callback); - } - public void subscribeNTPServerAvailableAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeNTPServerAvailableAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTimeZoneListMaxSizeAttribute( - IntegerAttributeCallback callback - ) { - readTimeZoneListMaxSizeAttribute(chipClusterPtr, callback); - } - public void subscribeTimeZoneListMaxSizeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTimeZoneListMaxSizeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDSTOffsetListMaxSizeAttribute( - IntegerAttributeCallback callback - ) { - readDSTOffsetListMaxSizeAttribute(chipClusterPtr, callback); - } - public void subscribeDSTOffsetListMaxSizeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDSTOffsetListMaxSizeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSupportsDNSResolveAttribute( - BooleanAttributeCallback callback - ) { - readSupportsDNSResolveAttribute(chipClusterPtr, callback); - } - public void subscribeSupportsDNSResolveAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSupportsDNSResolveAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readUTCTimeAttribute(long chipClusterPtr, - UTCTimeAttributeCallback callback - ); - private native void subscribeUTCTimeAttribute(long chipClusterPtr, - UTCTimeAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGranularityAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeGranularityAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTimeSourceAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeTimeSourceAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDefaultNTPAttribute(long chipClusterPtr, - DefaultNTPAttributeCallback callback - ); - private native void subscribeDefaultNTPAttribute(long chipClusterPtr, - DefaultNTPAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readTimeZoneAttribute(long chipClusterPtr, - TimeZoneAttributeCallback callback - ); - private native void subscribeTimeZoneAttribute(long chipClusterPtr, - TimeZoneAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readDSTOffsetAttribute(long chipClusterPtr, - DSTOffsetAttributeCallback callback - ); - private native void subscribeDSTOffsetAttribute(long chipClusterPtr, - DSTOffsetAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readLocalTimeAttribute(long chipClusterPtr, - LocalTimeAttributeCallback callback - ); - private native void subscribeLocalTimeAttribute(long chipClusterPtr, - LocalTimeAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readTimeZoneDatabaseAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeTimeZoneDatabaseAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readNTPServerAvailableAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - private native void subscribeNTPServerAvailableAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTimeZoneListMaxSizeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeTimeZoneListMaxSizeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDSTOffsetListMaxSizeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeDSTOffsetListMaxSizeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSupportsDNSResolveAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - private native void subscribeSupportsDNSResolveAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class BridgedDeviceBasicInformationCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000039L; - - public BridgedDeviceBasicInformationCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readVendorNameAttribute( - CharStringAttributeCallback callback - ) { - readVendorNameAttribute(chipClusterPtr, callback); - } - public void subscribeVendorNameAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeVendorNameAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readVendorIDAttribute( - IntegerAttributeCallback callback - ) { - readVendorIDAttribute(chipClusterPtr, callback); - } - public void subscribeVendorIDAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeVendorIDAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readProductNameAttribute( - CharStringAttributeCallback callback - ) { - readProductNameAttribute(chipClusterPtr, callback); - } - public void subscribeProductNameAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeProductNameAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNodeLabelAttribute( - CharStringAttributeCallback callback - ) { - readNodeLabelAttribute(chipClusterPtr, callback); - } - public void writeNodeLabelAttribute(DefaultClusterCallback callback, String value) { - writeNodeLabelAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNodeLabelAttribute(DefaultClusterCallback callback, String value, int timedWriteTimeoutMs) { - writeNodeLabelAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNodeLabelAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeNodeLabelAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readHardwareVersionAttribute( - IntegerAttributeCallback callback - ) { - readHardwareVersionAttribute(chipClusterPtr, callback); - } - public void subscribeHardwareVersionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeHardwareVersionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readHardwareVersionStringAttribute( - CharStringAttributeCallback callback - ) { - readHardwareVersionStringAttribute(chipClusterPtr, callback); - } - public void subscribeHardwareVersionStringAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeHardwareVersionStringAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSoftwareVersionAttribute( - LongAttributeCallback callback - ) { - readSoftwareVersionAttribute(chipClusterPtr, callback); - } - public void subscribeSoftwareVersionAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSoftwareVersionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSoftwareVersionStringAttribute( - CharStringAttributeCallback callback - ) { - readSoftwareVersionStringAttribute(chipClusterPtr, callback); - } - public void subscribeSoftwareVersionStringAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSoftwareVersionStringAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readManufacturingDateAttribute( - CharStringAttributeCallback callback - ) { - readManufacturingDateAttribute(chipClusterPtr, callback); - } - public void subscribeManufacturingDateAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeManufacturingDateAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPartNumberAttribute( - CharStringAttributeCallback callback - ) { - readPartNumberAttribute(chipClusterPtr, callback); - } - public void subscribePartNumberAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePartNumberAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readProductURLAttribute( - CharStringAttributeCallback callback - ) { - readProductURLAttribute(chipClusterPtr, callback); - } - public void subscribeProductURLAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeProductURLAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readProductLabelAttribute( - CharStringAttributeCallback callback - ) { - readProductLabelAttribute(chipClusterPtr, callback); - } - public void subscribeProductLabelAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeProductLabelAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSerialNumberAttribute( - CharStringAttributeCallback callback - ) { - readSerialNumberAttribute(chipClusterPtr, callback); - } - public void subscribeSerialNumberAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSerialNumberAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readReachableAttribute( - BooleanAttributeCallback callback - ) { - readReachableAttribute(chipClusterPtr, callback); - } - public void subscribeReachableAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeReachableAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUniqueIDAttribute( - CharStringAttributeCallback callback - ) { - readUniqueIDAttribute(chipClusterPtr, callback); - } - public void subscribeUniqueIDAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeUniqueIDAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readVendorNameAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeVendorNameAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readVendorIDAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeVendorIDAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readProductNameAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeProductNameAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readNodeLabelAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - - private native void writeNodeLabelAttribute(long chipClusterPtr, DefaultClusterCallback callback, String value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNodeLabelAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readHardwareVersionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeHardwareVersionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readHardwareVersionStringAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeHardwareVersionStringAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSoftwareVersionAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeSoftwareVersionAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSoftwareVersionStringAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeSoftwareVersionStringAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readManufacturingDateAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeManufacturingDateAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPartNumberAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribePartNumberAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readProductURLAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeProductURLAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readProductLabelAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeProductLabelAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSerialNumberAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeSerialNumberAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readReachableAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - private native void subscribeReachableAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readUniqueIDAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeUniqueIDAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class SwitchCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000003BL; - - public SwitchCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readNumberOfPositionsAttribute( - IntegerAttributeCallback callback - ) { - readNumberOfPositionsAttribute(chipClusterPtr, callback); - } - public void subscribeNumberOfPositionsAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeNumberOfPositionsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentPositionAttribute( - IntegerAttributeCallback callback - ) { - readCurrentPositionAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentPositionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCurrentPositionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMultiPressMaxAttribute( - IntegerAttributeCallback callback - ) { - readMultiPressMaxAttribute(chipClusterPtr, callback); - } - public void subscribeMultiPressMaxAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMultiPressMaxAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readNumberOfPositionsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeNumberOfPositionsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readCurrentPositionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeCurrentPositionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMultiPressMaxAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMultiPressMaxAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class AdministratorCommissioningCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000003CL; - - public AdministratorCommissioningCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - - public void openCommissioningWindow(DefaultClusterCallback callback - , Integer commissioningTimeout, byte[] PAKEPasscodeVerifier, Integer discriminator, Long iterations, byte[] salt - , int timedInvokeTimeoutMs) { - openCommissioningWindow(chipClusterPtr, callback, commissioningTimeout, PAKEPasscodeVerifier, discriminator, iterations, salt, timedInvokeTimeoutMs); - } - - - public void openBasicCommissioningWindow(DefaultClusterCallback callback - , Integer commissioningTimeout - , int timedInvokeTimeoutMs) { - openBasicCommissioningWindow(chipClusterPtr, callback, commissioningTimeout, timedInvokeTimeoutMs); - } - - - public void revokeCommissioning(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - revokeCommissioning(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - private native void openCommissioningWindow(long chipClusterPtr, DefaultClusterCallback Callback - , Integer commissioningTimeout, byte[] PAKEPasscodeVerifier, Integer discriminator, Long iterations, byte[] salt - , @Nullable Integer timedInvokeTimeoutMs); - private native void openBasicCommissioningWindow(long chipClusterPtr, DefaultClusterCallback Callback - , Integer commissioningTimeout - , @Nullable Integer timedInvokeTimeoutMs); - private native void revokeCommissioning(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - - public interface AdminFabricIndexAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AdminVendorIdAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readWindowStatusAttribute( - IntegerAttributeCallback callback - ) { - readWindowStatusAttribute(chipClusterPtr, callback); - } - public void subscribeWindowStatusAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeWindowStatusAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAdminFabricIndexAttribute( - AdminFabricIndexAttributeCallback callback - ) { - readAdminFabricIndexAttribute(chipClusterPtr, callback); - } - public void subscribeAdminFabricIndexAttribute( - AdminFabricIndexAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAdminFabricIndexAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAdminVendorIdAttribute( - AdminVendorIdAttributeCallback callback - ) { - readAdminVendorIdAttribute(chipClusterPtr, callback); - } - public void subscribeAdminVendorIdAttribute( - AdminVendorIdAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAdminVendorIdAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readWindowStatusAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeWindowStatusAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAdminFabricIndexAttribute(long chipClusterPtr, - AdminFabricIndexAttributeCallback callback - ); - private native void subscribeAdminFabricIndexAttribute(long chipClusterPtr, - AdminFabricIndexAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAdminVendorIdAttribute(long chipClusterPtr, - AdminVendorIdAttributeCallback callback - ); - private native void subscribeAdminVendorIdAttribute(long chipClusterPtr, - AdminVendorIdAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class OperationalCredentialsCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000003EL; - - public OperationalCredentialsCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void attestationRequest(AttestationResponseCallback callback - , byte[] attestationNonce) { - attestationRequest(chipClusterPtr, callback, attestationNonce, null); - } - - public void attestationRequest(AttestationResponseCallback callback - , byte[] attestationNonce - , int timedInvokeTimeoutMs) { - attestationRequest(chipClusterPtr, callback, attestationNonce, timedInvokeTimeoutMs); - } - - public void certificateChainRequest(CertificateChainResponseCallback callback - , Integer certificateType) { - certificateChainRequest(chipClusterPtr, callback, certificateType, null); - } - - public void certificateChainRequest(CertificateChainResponseCallback callback - , Integer certificateType - , int timedInvokeTimeoutMs) { - certificateChainRequest(chipClusterPtr, callback, certificateType, timedInvokeTimeoutMs); - } - - public void CSRRequest(CSRResponseCallback callback - , byte[] CSRNonce, Optional isForUpdateNOC) { - CSRRequest(chipClusterPtr, callback, CSRNonce, isForUpdateNOC, null); - } - - public void CSRRequest(CSRResponseCallback callback - , byte[] CSRNonce, Optional isForUpdateNOC - , int timedInvokeTimeoutMs) { - CSRRequest(chipClusterPtr, callback, CSRNonce, isForUpdateNOC, timedInvokeTimeoutMs); - } - - public void addNOC(NOCResponseCallback callback - , byte[] NOCValue, Optional ICACValue, byte[] IPKValue, Long caseAdminSubject, Integer adminVendorId) { - addNOC(chipClusterPtr, callback, NOCValue, ICACValue, IPKValue, caseAdminSubject, adminVendorId, null); - } - - public void addNOC(NOCResponseCallback callback - , byte[] NOCValue, Optional ICACValue, byte[] IPKValue, Long caseAdminSubject, Integer adminVendorId - , int timedInvokeTimeoutMs) { - addNOC(chipClusterPtr, callback, NOCValue, ICACValue, IPKValue, caseAdminSubject, adminVendorId, timedInvokeTimeoutMs); - } - - public void updateNOC(NOCResponseCallback callback - , byte[] NOCValue, Optional ICACValue) { - updateNOC(chipClusterPtr, callback, NOCValue, ICACValue, null); - } - - public void updateNOC(NOCResponseCallback callback - , byte[] NOCValue, Optional ICACValue - , int timedInvokeTimeoutMs) { - updateNOC(chipClusterPtr, callback, NOCValue, ICACValue, timedInvokeTimeoutMs); - } - - public void updateFabricLabel(NOCResponseCallback callback - , String label) { - updateFabricLabel(chipClusterPtr, callback, label, null); - } - - public void updateFabricLabel(NOCResponseCallback callback - , String label - , int timedInvokeTimeoutMs) { - updateFabricLabel(chipClusterPtr, callback, label, timedInvokeTimeoutMs); - } - - public void removeFabric(NOCResponseCallback callback - , Integer fabricIndex) { - removeFabric(chipClusterPtr, callback, fabricIndex, null); - } - - public void removeFabric(NOCResponseCallback callback - , Integer fabricIndex - , int timedInvokeTimeoutMs) { - removeFabric(chipClusterPtr, callback, fabricIndex, timedInvokeTimeoutMs); - } - - public void addTrustedRootCertificate(DefaultClusterCallback callback - , byte[] rootCACertificate) { - addTrustedRootCertificate(chipClusterPtr, callback, rootCACertificate, null); - } - - public void addTrustedRootCertificate(DefaultClusterCallback callback - , byte[] rootCACertificate - , int timedInvokeTimeoutMs) { - addTrustedRootCertificate(chipClusterPtr, callback, rootCACertificate, timedInvokeTimeoutMs); - } - private native void attestationRequest(long chipClusterPtr, AttestationResponseCallback Callback - , byte[] attestationNonce - , @Nullable Integer timedInvokeTimeoutMs); - private native void certificateChainRequest(long chipClusterPtr, CertificateChainResponseCallback Callback - , Integer certificateType - , @Nullable Integer timedInvokeTimeoutMs); - private native void CSRRequest(long chipClusterPtr, CSRResponseCallback Callback - , byte[] CSRNonce, Optional isForUpdateNOC - , @Nullable Integer timedInvokeTimeoutMs); - private native void addNOC(long chipClusterPtr, NOCResponseCallback Callback - , byte[] NOCValue, Optional ICACValue, byte[] IPKValue, Long caseAdminSubject, Integer adminVendorId - , @Nullable Integer timedInvokeTimeoutMs); - private native void updateNOC(long chipClusterPtr, NOCResponseCallback Callback - , byte[] NOCValue, Optional ICACValue - , @Nullable Integer timedInvokeTimeoutMs); - private native void updateFabricLabel(long chipClusterPtr, NOCResponseCallback Callback - , String label - , @Nullable Integer timedInvokeTimeoutMs); - private native void removeFabric(long chipClusterPtr, NOCResponseCallback Callback - , Integer fabricIndex - , @Nullable Integer timedInvokeTimeoutMs); - private native void addTrustedRootCertificate(long chipClusterPtr, DefaultClusterCallback Callback - , byte[] rootCACertificate - , @Nullable Integer timedInvokeTimeoutMs); - public interface AttestationResponseCallback { - void onSuccess(byte[] attestationElements, byte[] attestationSignature); - - void onError(Exception error); - } - - public interface CertificateChainResponseCallback { - void onSuccess(byte[] certificate); - - void onError(Exception error); - } - - public interface CSRResponseCallback { - void onSuccess(byte[] NOCSRElements, byte[] attestationSignature); - - void onError(Exception error); - } - - public interface NOCResponseCallback { - void onSuccess(Integer statusCode, Optional fabricIndex, Optional debugText); - - void onError(Exception error); - } - - - public interface NOCsAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface FabricsAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface TrustedRootCertificatesAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readNOCsAttribute( - NOCsAttributeCallback callback - ) { - readNOCsAttribute(chipClusterPtr, callback, true); - } - public void readNOCsAttributeWithFabricFilter( - NOCsAttributeCallback callback - , - boolean isFabricFiltered - ) { - readNOCsAttribute(chipClusterPtr, callback, isFabricFiltered); - } - public void subscribeNOCsAttribute( - NOCsAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNOCsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFabricsAttribute( - FabricsAttributeCallback callback - ) { - readFabricsAttribute(chipClusterPtr, callback, true); - } - public void readFabricsAttributeWithFabricFilter( - FabricsAttributeCallback callback - , - boolean isFabricFiltered - ) { - readFabricsAttribute(chipClusterPtr, callback, isFabricFiltered); - } - public void subscribeFabricsAttribute( - FabricsAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeFabricsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSupportedFabricsAttribute( - IntegerAttributeCallback callback - ) { - readSupportedFabricsAttribute(chipClusterPtr, callback); - } - public void subscribeSupportedFabricsAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSupportedFabricsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCommissionedFabricsAttribute( - IntegerAttributeCallback callback - ) { - readCommissionedFabricsAttribute(chipClusterPtr, callback); - } - public void subscribeCommissionedFabricsAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCommissionedFabricsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTrustedRootCertificatesAttribute( - TrustedRootCertificatesAttributeCallback callback - ) { - readTrustedRootCertificatesAttribute(chipClusterPtr, callback); - } - public void subscribeTrustedRootCertificatesAttribute( - TrustedRootCertificatesAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeTrustedRootCertificatesAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentFabricIndexAttribute( - IntegerAttributeCallback callback - ) { - readCurrentFabricIndexAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentFabricIndexAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCurrentFabricIndexAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readNOCsAttribute(long chipClusterPtr, - NOCsAttributeCallback callback - , boolean isFabricFiltered - ); - private native void subscribeNOCsAttribute(long chipClusterPtr, - NOCsAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFabricsAttribute(long chipClusterPtr, - FabricsAttributeCallback callback - , boolean isFabricFiltered - ); - private native void subscribeFabricsAttribute(long chipClusterPtr, - FabricsAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readSupportedFabricsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeSupportedFabricsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readCommissionedFabricsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeCommissionedFabricsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTrustedRootCertificatesAttribute(long chipClusterPtr, - TrustedRootCertificatesAttributeCallback callback - ); - private native void subscribeTrustedRootCertificatesAttribute(long chipClusterPtr, - TrustedRootCertificatesAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readCurrentFabricIndexAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeCurrentFabricIndexAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class GroupKeyManagementCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000003FL; - - public GroupKeyManagementCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void keySetWrite(DefaultClusterCallback callback - , ChipStructs.GroupKeyManagementClusterGroupKeySetStruct groupKeySet) { - keySetWrite(chipClusterPtr, callback, groupKeySet, null); - } - - public void keySetWrite(DefaultClusterCallback callback - , ChipStructs.GroupKeyManagementClusterGroupKeySetStruct groupKeySet - , int timedInvokeTimeoutMs) { - keySetWrite(chipClusterPtr, callback, groupKeySet, timedInvokeTimeoutMs); - } - - public void keySetRead(KeySetReadResponseCallback callback - , Integer groupKeySetID) { - keySetRead(chipClusterPtr, callback, groupKeySetID, null); - } - - public void keySetRead(KeySetReadResponseCallback callback - , Integer groupKeySetID - , int timedInvokeTimeoutMs) { - keySetRead(chipClusterPtr, callback, groupKeySetID, timedInvokeTimeoutMs); - } - - public void keySetRemove(DefaultClusterCallback callback - , Integer groupKeySetID) { - keySetRemove(chipClusterPtr, callback, groupKeySetID, null); - } - - public void keySetRemove(DefaultClusterCallback callback - , Integer groupKeySetID - , int timedInvokeTimeoutMs) { - keySetRemove(chipClusterPtr, callback, groupKeySetID, timedInvokeTimeoutMs); - } - - public void keySetReadAllIndices(KeySetReadAllIndicesResponseCallback callback - ) { - keySetReadAllIndices(chipClusterPtr, callback, null); - } - - public void keySetReadAllIndices(KeySetReadAllIndicesResponseCallback callback - - , int timedInvokeTimeoutMs) { - keySetReadAllIndices(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - private native void keySetWrite(long chipClusterPtr, DefaultClusterCallback Callback - , ChipStructs.GroupKeyManagementClusterGroupKeySetStruct groupKeySet - , @Nullable Integer timedInvokeTimeoutMs); - private native void keySetRead(long chipClusterPtr, KeySetReadResponseCallback Callback - , Integer groupKeySetID - , @Nullable Integer timedInvokeTimeoutMs); - private native void keySetRemove(long chipClusterPtr, DefaultClusterCallback Callback - , Integer groupKeySetID - , @Nullable Integer timedInvokeTimeoutMs); - private native void keySetReadAllIndices(long chipClusterPtr, KeySetReadAllIndicesResponseCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - public interface KeySetReadResponseCallback { - void onSuccess(ChipStructs.GroupKeyManagementClusterGroupKeySetStruct groupKeySet); - - void onError(Exception error); - } - - public interface KeySetReadAllIndicesResponseCallback { - void onSuccess(ArrayList groupKeySetIDs); - - void onError(Exception error); - } - - - public interface GroupKeyMapAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GroupTableAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readGroupKeyMapAttribute( - GroupKeyMapAttributeCallback callback - ) { - readGroupKeyMapAttribute(chipClusterPtr, callback, true); - } - public void readGroupKeyMapAttributeWithFabricFilter( - GroupKeyMapAttributeCallback callback - , - boolean isFabricFiltered - ) { - readGroupKeyMapAttribute(chipClusterPtr, callback, isFabricFiltered); - } - public void writeGroupKeyMapAttribute(DefaultClusterCallback callback, ArrayList value) { - writeGroupKeyMapAttribute(chipClusterPtr, callback, value, null); - } - - public void writeGroupKeyMapAttribute(DefaultClusterCallback callback, ArrayList value, int timedWriteTimeoutMs) { - writeGroupKeyMapAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeGroupKeyMapAttribute( - GroupKeyMapAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGroupKeyMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGroupTableAttribute( - GroupTableAttributeCallback callback - ) { - readGroupTableAttribute(chipClusterPtr, callback, true); - } - public void readGroupTableAttributeWithFabricFilter( - GroupTableAttributeCallback callback - , - boolean isFabricFiltered - ) { - readGroupTableAttribute(chipClusterPtr, callback, isFabricFiltered); - } - public void subscribeGroupTableAttribute( - GroupTableAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGroupTableAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxGroupsPerFabricAttribute( - IntegerAttributeCallback callback - ) { - readMaxGroupsPerFabricAttribute(chipClusterPtr, callback); - } - public void subscribeMaxGroupsPerFabricAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMaxGroupsPerFabricAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxGroupKeysPerFabricAttribute( - IntegerAttributeCallback callback - ) { - readMaxGroupKeysPerFabricAttribute(chipClusterPtr, callback); - } - public void subscribeMaxGroupKeysPerFabricAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMaxGroupKeysPerFabricAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readGroupKeyMapAttribute(long chipClusterPtr, - GroupKeyMapAttributeCallback callback - , boolean isFabricFiltered - ); - - private native void writeGroupKeyMapAttribute(long chipClusterPtr, DefaultClusterCallback callback, ArrayList value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeGroupKeyMapAttribute(long chipClusterPtr, - GroupKeyMapAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGroupTableAttribute(long chipClusterPtr, - GroupTableAttributeCallback callback - , boolean isFabricFiltered - ); - private native void subscribeGroupTableAttribute(long chipClusterPtr, - GroupTableAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMaxGroupsPerFabricAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMaxGroupsPerFabricAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMaxGroupKeysPerFabricAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMaxGroupKeysPerFabricAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class FixedLabelCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000040L; - - public FixedLabelCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface LabelListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readLabelListAttribute( - LabelListAttributeCallback callback - ) { - readLabelListAttribute(chipClusterPtr, callback); - } - public void subscribeLabelListAttribute( - LabelListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeLabelListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readLabelListAttribute(long chipClusterPtr, - LabelListAttributeCallback callback - ); - private native void subscribeLabelListAttribute(long chipClusterPtr, - LabelListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class UserLabelCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000041L; - - public UserLabelCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface LabelListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readLabelListAttribute( - LabelListAttributeCallback callback - ) { - readLabelListAttribute(chipClusterPtr, callback); - } - public void writeLabelListAttribute(DefaultClusterCallback callback, ArrayList value) { - writeLabelListAttribute(chipClusterPtr, callback, value, null); - } - - public void writeLabelListAttribute(DefaultClusterCallback callback, ArrayList value, int timedWriteTimeoutMs) { - writeLabelListAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeLabelListAttribute( - LabelListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeLabelListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readLabelListAttribute(long chipClusterPtr, - LabelListAttributeCallback callback - ); - - private native void writeLabelListAttribute(long chipClusterPtr, DefaultClusterCallback callback, ArrayList value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeLabelListAttribute(long chipClusterPtr, - LabelListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class ProxyConfigurationCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000042L; - - public ProxyConfigurationCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class ProxyDiscoveryCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000043L; - - public ProxyDiscoveryCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class ProxyValidCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000044L; - - public ProxyValidCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class BooleanStateCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000045L; - - public BooleanStateCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readStateValueAttribute( - BooleanAttributeCallback callback - ) { - readStateValueAttribute(chipClusterPtr, callback); - } - public void subscribeStateValueAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeStateValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readStateValueAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - private native void subscribeStateValueAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class IcdManagementCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000046L; - - public IcdManagementCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void registerClient(RegisterClientResponseCallback callback - , Long checkInNodeID, Long monitoredSubject, byte[] key, Optional verificationKey) { - registerClient(chipClusterPtr, callback, checkInNodeID, monitoredSubject, key, verificationKey, null); - } - - public void registerClient(RegisterClientResponseCallback callback - , Long checkInNodeID, Long monitoredSubject, byte[] key, Optional verificationKey - , int timedInvokeTimeoutMs) { - registerClient(chipClusterPtr, callback, checkInNodeID, monitoredSubject, key, verificationKey, timedInvokeTimeoutMs); - } - - public void unregisterClient(DefaultClusterCallback callback - , Long checkInNodeID, Optional verificationKey) { - unregisterClient(chipClusterPtr, callback, checkInNodeID, verificationKey, null); - } - - public void unregisterClient(DefaultClusterCallback callback - , Long checkInNodeID, Optional verificationKey - , int timedInvokeTimeoutMs) { - unregisterClient(chipClusterPtr, callback, checkInNodeID, verificationKey, timedInvokeTimeoutMs); - } - - public void stayActiveRequest(DefaultClusterCallback callback - ) { - stayActiveRequest(chipClusterPtr, callback, null); - } - - public void stayActiveRequest(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - stayActiveRequest(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - private native void registerClient(long chipClusterPtr, RegisterClientResponseCallback Callback - , Long checkInNodeID, Long monitoredSubject, byte[] key, Optional verificationKey - , @Nullable Integer timedInvokeTimeoutMs); - private native void unregisterClient(long chipClusterPtr, DefaultClusterCallback Callback - , Long checkInNodeID, Optional verificationKey - , @Nullable Integer timedInvokeTimeoutMs); - private native void stayActiveRequest(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - public interface RegisterClientResponseCallback { - void onSuccess(Long ICDCounter); - - void onError(Exception error); - } - - - public interface RegisteredClientsAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readIdleModeIntervalAttribute( - LongAttributeCallback callback - ) { - readIdleModeIntervalAttribute(chipClusterPtr, callback); - } - public void subscribeIdleModeIntervalAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeIdleModeIntervalAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readActiveModeIntervalAttribute( - LongAttributeCallback callback - ) { - readActiveModeIntervalAttribute(chipClusterPtr, callback); - } - public void subscribeActiveModeIntervalAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeActiveModeIntervalAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readActiveModeThresholdAttribute( - IntegerAttributeCallback callback - ) { - readActiveModeThresholdAttribute(chipClusterPtr, callback); - } - public void subscribeActiveModeThresholdAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeActiveModeThresholdAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRegisteredClientsAttribute( - RegisteredClientsAttributeCallback callback - ) { - readRegisteredClientsAttribute(chipClusterPtr, callback, true); - } - public void readRegisteredClientsAttributeWithFabricFilter( - RegisteredClientsAttributeCallback callback - , - boolean isFabricFiltered - ) { - readRegisteredClientsAttribute(chipClusterPtr, callback, isFabricFiltered); - } - public void subscribeRegisteredClientsAttribute( - RegisteredClientsAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeRegisteredClientsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readICDCounterAttribute( - LongAttributeCallback callback - ) { - readICDCounterAttribute(chipClusterPtr, callback); - } - public void subscribeICDCounterAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeICDCounterAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClientsSupportedPerFabricAttribute( - IntegerAttributeCallback callback - ) { - readClientsSupportedPerFabricAttribute(chipClusterPtr, callback); - } - public void subscribeClientsSupportedPerFabricAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClientsSupportedPerFabricAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readIdleModeIntervalAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeIdleModeIntervalAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readActiveModeIntervalAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeActiveModeIntervalAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readActiveModeThresholdAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeActiveModeThresholdAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRegisteredClientsAttribute(long chipClusterPtr, - RegisteredClientsAttributeCallback callback - , boolean isFabricFiltered - ); - private native void subscribeRegisteredClientsAttribute(long chipClusterPtr, - RegisteredClientsAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readICDCounterAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeICDCounterAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClientsSupportedPerFabricAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClientsSupportedPerFabricAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class ModeSelectCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000050L; - - public ModeSelectCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void changeToMode(DefaultClusterCallback callback - , Integer newMode) { - changeToMode(chipClusterPtr, callback, newMode, null); - } - - public void changeToMode(DefaultClusterCallback callback - , Integer newMode - , int timedInvokeTimeoutMs) { - changeToMode(chipClusterPtr, callback, newMode, timedInvokeTimeoutMs); - } - private native void changeToMode(long chipClusterPtr, DefaultClusterCallback Callback - , Integer newMode - , @Nullable Integer timedInvokeTimeoutMs); - - public interface StandardNamespaceAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface SupportedModesAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface StartUpModeAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface OnModeAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readDescriptionAttribute( - CharStringAttributeCallback callback - ) { - readDescriptionAttribute(chipClusterPtr, callback); - } - public void subscribeDescriptionAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDescriptionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readStandardNamespaceAttribute( - StandardNamespaceAttributeCallback callback - ) { - readStandardNamespaceAttribute(chipClusterPtr, callback); - } - public void subscribeStandardNamespaceAttribute( - StandardNamespaceAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeStandardNamespaceAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSupportedModesAttribute( - SupportedModesAttributeCallback callback - ) { - readSupportedModesAttribute(chipClusterPtr, callback); - } - public void subscribeSupportedModesAttribute( - SupportedModesAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeSupportedModesAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentModeAttribute( - IntegerAttributeCallback callback - ) { - readCurrentModeAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentModeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCurrentModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readStartUpModeAttribute( - StartUpModeAttributeCallback callback - ) { - readStartUpModeAttribute(chipClusterPtr, callback); - } - public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value) { - writeStartUpModeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeStartUpModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeStartUpModeAttribute( - StartUpModeAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeStartUpModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOnModeAttribute( - OnModeAttributeCallback callback - ) { - readOnModeAttribute(chipClusterPtr, callback); - } - public void writeOnModeAttribute(DefaultClusterCallback callback, Integer value) { - writeOnModeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeOnModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeOnModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeOnModeAttribute( - OnModeAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeOnModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readDescriptionAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeDescriptionAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readStandardNamespaceAttribute(long chipClusterPtr, - StandardNamespaceAttributeCallback callback - ); - private native void subscribeStandardNamespaceAttribute(long chipClusterPtr, - StandardNamespaceAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readSupportedModesAttribute(long chipClusterPtr, - SupportedModesAttributeCallback callback - ); - private native void subscribeSupportedModesAttribute(long chipClusterPtr, - SupportedModesAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readCurrentModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeCurrentModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readStartUpModeAttribute(long chipClusterPtr, - StartUpModeAttributeCallback callback - ); - - private native void writeStartUpModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeStartUpModeAttribute(long chipClusterPtr, - StartUpModeAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readOnModeAttribute(long chipClusterPtr, - OnModeAttributeCallback callback - ); - - private native void writeOnModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeOnModeAttribute(long chipClusterPtr, - OnModeAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class LaundryWasherModeCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000051L; - - public LaundryWasherModeCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void changeToMode(ChangeToModeResponseCallback callback - , Integer newMode) { - changeToMode(chipClusterPtr, callback, newMode, null); - } - - public void changeToMode(ChangeToModeResponseCallback callback - , Integer newMode - , int timedInvokeTimeoutMs) { - changeToMode(chipClusterPtr, callback, newMode, timedInvokeTimeoutMs); - } - private native void changeToMode(long chipClusterPtr, ChangeToModeResponseCallback Callback - , Integer newMode - , @Nullable Integer timedInvokeTimeoutMs); - public interface ChangeToModeResponseCallback { - void onSuccess(Integer status, Optional statusText); - - void onError(Exception error); - } - - - public interface SupportedModesAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface StartUpModeAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface OnModeAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readSupportedModesAttribute( - SupportedModesAttributeCallback callback - ) { - readSupportedModesAttribute(chipClusterPtr, callback); - } - public void subscribeSupportedModesAttribute( - SupportedModesAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeSupportedModesAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentModeAttribute( - IntegerAttributeCallback callback - ) { - readCurrentModeAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentModeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCurrentModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readStartUpModeAttribute( - StartUpModeAttributeCallback callback - ) { - readStartUpModeAttribute(chipClusterPtr, callback); - } - public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value) { - writeStartUpModeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeStartUpModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeStartUpModeAttribute( - StartUpModeAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeStartUpModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOnModeAttribute( - OnModeAttributeCallback callback - ) { - readOnModeAttribute(chipClusterPtr, callback); - } - public void writeOnModeAttribute(DefaultClusterCallback callback, Integer value) { - writeOnModeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeOnModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeOnModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeOnModeAttribute( - OnModeAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeOnModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readSupportedModesAttribute(long chipClusterPtr, - SupportedModesAttributeCallback callback - ); - private native void subscribeSupportedModesAttribute(long chipClusterPtr, - SupportedModesAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readCurrentModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeCurrentModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readStartUpModeAttribute(long chipClusterPtr, - StartUpModeAttributeCallback callback - ); - - private native void writeStartUpModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeStartUpModeAttribute(long chipClusterPtr, - StartUpModeAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readOnModeAttribute(long chipClusterPtr, - OnModeAttributeCallback callback - ); - - private native void writeOnModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeOnModeAttribute(long chipClusterPtr, - OnModeAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class RefrigeratorAndTemperatureControlledCabinetModeCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000052L; - - public RefrigeratorAndTemperatureControlledCabinetModeCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void changeToMode(ChangeToModeResponseCallback callback - , Integer newMode) { - changeToMode(chipClusterPtr, callback, newMode, null); - } - - public void changeToMode(ChangeToModeResponseCallback callback - , Integer newMode - , int timedInvokeTimeoutMs) { - changeToMode(chipClusterPtr, callback, newMode, timedInvokeTimeoutMs); - } - private native void changeToMode(long chipClusterPtr, ChangeToModeResponseCallback Callback - , Integer newMode - , @Nullable Integer timedInvokeTimeoutMs); - public interface ChangeToModeResponseCallback { - void onSuccess(Integer status, Optional statusText); - - void onError(Exception error); - } - - - public interface SupportedModesAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface StartUpModeAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface OnModeAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readSupportedModesAttribute( - SupportedModesAttributeCallback callback - ) { - readSupportedModesAttribute(chipClusterPtr, callback); - } - public void subscribeSupportedModesAttribute( - SupportedModesAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeSupportedModesAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentModeAttribute( - IntegerAttributeCallback callback - ) { - readCurrentModeAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentModeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCurrentModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readStartUpModeAttribute( - StartUpModeAttributeCallback callback - ) { - readStartUpModeAttribute(chipClusterPtr, callback); - } - public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value) { - writeStartUpModeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeStartUpModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeStartUpModeAttribute( - StartUpModeAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeStartUpModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOnModeAttribute( - OnModeAttributeCallback callback - ) { - readOnModeAttribute(chipClusterPtr, callback); - } - public void writeOnModeAttribute(DefaultClusterCallback callback, Integer value) { - writeOnModeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeOnModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeOnModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeOnModeAttribute( - OnModeAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeOnModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readSupportedModesAttribute(long chipClusterPtr, - SupportedModesAttributeCallback callback - ); - private native void subscribeSupportedModesAttribute(long chipClusterPtr, - SupportedModesAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readCurrentModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeCurrentModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readStartUpModeAttribute(long chipClusterPtr, - StartUpModeAttributeCallback callback - ); - - private native void writeStartUpModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeStartUpModeAttribute(long chipClusterPtr, - StartUpModeAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readOnModeAttribute(long chipClusterPtr, - OnModeAttributeCallback callback - ); - - private native void writeOnModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeOnModeAttribute(long chipClusterPtr, - OnModeAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class LaundryWasherControlsCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000053L; - - public LaundryWasherControlsCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface SpinSpeedsAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface SpinSpeedCurrentAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface SupportedRinsesAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readSpinSpeedsAttribute( - SpinSpeedsAttributeCallback callback - ) { - readSpinSpeedsAttribute(chipClusterPtr, callback); - } - public void subscribeSpinSpeedsAttribute( - SpinSpeedsAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeSpinSpeedsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSpinSpeedCurrentAttribute( - SpinSpeedCurrentAttributeCallback callback - ) { - readSpinSpeedCurrentAttribute(chipClusterPtr, callback); - } - public void writeSpinSpeedCurrentAttribute(DefaultClusterCallback callback, Integer value) { - writeSpinSpeedCurrentAttribute(chipClusterPtr, callback, value, null); - } - - public void writeSpinSpeedCurrentAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeSpinSpeedCurrentAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeSpinSpeedCurrentAttribute( - SpinSpeedCurrentAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeSpinSpeedCurrentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNumberOfRinsesAttribute( - IntegerAttributeCallback callback - ) { - readNumberOfRinsesAttribute(chipClusterPtr, callback); - } - public void writeNumberOfRinsesAttribute(DefaultClusterCallback callback, Integer value) { - writeNumberOfRinsesAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNumberOfRinsesAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeNumberOfRinsesAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNumberOfRinsesAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeNumberOfRinsesAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSupportedRinsesAttribute( - SupportedRinsesAttributeCallback callback - ) { - readSupportedRinsesAttribute(chipClusterPtr, callback); - } - public void subscribeSupportedRinsesAttribute( - SupportedRinsesAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeSupportedRinsesAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readSpinSpeedsAttribute(long chipClusterPtr, - SpinSpeedsAttributeCallback callback - ); - private native void subscribeSpinSpeedsAttribute(long chipClusterPtr, - SpinSpeedsAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readSpinSpeedCurrentAttribute(long chipClusterPtr, - SpinSpeedCurrentAttributeCallback callback - ); - - private native void writeSpinSpeedCurrentAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeSpinSpeedCurrentAttribute(long chipClusterPtr, - SpinSpeedCurrentAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNumberOfRinsesAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeNumberOfRinsesAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNumberOfRinsesAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSupportedRinsesAttribute(long chipClusterPtr, - SupportedRinsesAttributeCallback callback - ); - private native void subscribeSupportedRinsesAttribute(long chipClusterPtr, - SupportedRinsesAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class RvcRunModeCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000054L; - - public RvcRunModeCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void changeToMode(ChangeToModeResponseCallback callback - , Integer newMode) { - changeToMode(chipClusterPtr, callback, newMode, null); - } - - public void changeToMode(ChangeToModeResponseCallback callback - , Integer newMode - , int timedInvokeTimeoutMs) { - changeToMode(chipClusterPtr, callback, newMode, timedInvokeTimeoutMs); - } - private native void changeToMode(long chipClusterPtr, ChangeToModeResponseCallback Callback - , Integer newMode - , @Nullable Integer timedInvokeTimeoutMs); - public interface ChangeToModeResponseCallback { - void onSuccess(Integer status, Optional statusText); - - void onError(Exception error); - } - - - public interface SupportedModesAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface StartUpModeAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface OnModeAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readSupportedModesAttribute( - SupportedModesAttributeCallback callback - ) { - readSupportedModesAttribute(chipClusterPtr, callback); - } - public void subscribeSupportedModesAttribute( - SupportedModesAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeSupportedModesAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentModeAttribute( - IntegerAttributeCallback callback - ) { - readCurrentModeAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentModeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCurrentModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readStartUpModeAttribute( - StartUpModeAttributeCallback callback - ) { - readStartUpModeAttribute(chipClusterPtr, callback); - } - public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value) { - writeStartUpModeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeStartUpModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeStartUpModeAttribute( - StartUpModeAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeStartUpModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOnModeAttribute( - OnModeAttributeCallback callback - ) { - readOnModeAttribute(chipClusterPtr, callback); - } - public void writeOnModeAttribute(DefaultClusterCallback callback, Integer value) { - writeOnModeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeOnModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeOnModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeOnModeAttribute( - OnModeAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeOnModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readSupportedModesAttribute(long chipClusterPtr, - SupportedModesAttributeCallback callback - ); - private native void subscribeSupportedModesAttribute(long chipClusterPtr, - SupportedModesAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readCurrentModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeCurrentModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readStartUpModeAttribute(long chipClusterPtr, - StartUpModeAttributeCallback callback - ); - - private native void writeStartUpModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeStartUpModeAttribute(long chipClusterPtr, - StartUpModeAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readOnModeAttribute(long chipClusterPtr, - OnModeAttributeCallback callback - ); - - private native void writeOnModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeOnModeAttribute(long chipClusterPtr, - OnModeAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class RvcCleanModeCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000055L; - - public RvcCleanModeCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void changeToMode(ChangeToModeResponseCallback callback - , Integer newMode) { - changeToMode(chipClusterPtr, callback, newMode, null); - } - - public void changeToMode(ChangeToModeResponseCallback callback - , Integer newMode - , int timedInvokeTimeoutMs) { - changeToMode(chipClusterPtr, callback, newMode, timedInvokeTimeoutMs); - } - private native void changeToMode(long chipClusterPtr, ChangeToModeResponseCallback Callback - , Integer newMode - , @Nullable Integer timedInvokeTimeoutMs); - public interface ChangeToModeResponseCallback { - void onSuccess(Integer status, Optional statusText); - - void onError(Exception error); - } - - - public interface SupportedModesAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface StartUpModeAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface OnModeAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readSupportedModesAttribute( - SupportedModesAttributeCallback callback - ) { - readSupportedModesAttribute(chipClusterPtr, callback); - } - public void subscribeSupportedModesAttribute( - SupportedModesAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeSupportedModesAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentModeAttribute( - IntegerAttributeCallback callback - ) { - readCurrentModeAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentModeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCurrentModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readStartUpModeAttribute( - StartUpModeAttributeCallback callback - ) { - readStartUpModeAttribute(chipClusterPtr, callback); - } - public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value) { - writeStartUpModeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeStartUpModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeStartUpModeAttribute( - StartUpModeAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeStartUpModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOnModeAttribute( - OnModeAttributeCallback callback - ) { - readOnModeAttribute(chipClusterPtr, callback); - } - public void writeOnModeAttribute(DefaultClusterCallback callback, Integer value) { - writeOnModeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeOnModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeOnModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeOnModeAttribute( - OnModeAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeOnModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readSupportedModesAttribute(long chipClusterPtr, - SupportedModesAttributeCallback callback - ); - private native void subscribeSupportedModesAttribute(long chipClusterPtr, - SupportedModesAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readCurrentModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeCurrentModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readStartUpModeAttribute(long chipClusterPtr, - StartUpModeAttributeCallback callback - ); - - private native void writeStartUpModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeStartUpModeAttribute(long chipClusterPtr, - StartUpModeAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readOnModeAttribute(long chipClusterPtr, - OnModeAttributeCallback callback - ); - - private native void writeOnModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeOnModeAttribute(long chipClusterPtr, - OnModeAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class TemperatureControlCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000056L; - - public TemperatureControlCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void setTemperature(DefaultClusterCallback callback - , Optional targetTemperature, Optional targetTemperatureLevel) { - setTemperature(chipClusterPtr, callback, targetTemperature, targetTemperatureLevel, null); - } - - public void setTemperature(DefaultClusterCallback callback - , Optional targetTemperature, Optional targetTemperatureLevel - , int timedInvokeTimeoutMs) { - setTemperature(chipClusterPtr, callback, targetTemperature, targetTemperatureLevel, timedInvokeTimeoutMs); - } - private native void setTemperature(long chipClusterPtr, DefaultClusterCallback Callback - , Optional targetTemperature, Optional targetTemperatureLevel - , @Nullable Integer timedInvokeTimeoutMs); - - public interface SupportedTemperatureLevelsAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readTemperatureSetpointAttribute( - IntegerAttributeCallback callback - ) { - readTemperatureSetpointAttribute(chipClusterPtr, callback); - } - public void subscribeTemperatureSetpointAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTemperatureSetpointAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinTemperatureAttribute( - IntegerAttributeCallback callback - ) { - readMinTemperatureAttribute(chipClusterPtr, callback); - } - public void subscribeMinTemperatureAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMinTemperatureAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxTemperatureAttribute( - IntegerAttributeCallback callback - ) { - readMaxTemperatureAttribute(chipClusterPtr, callback); - } - public void subscribeMaxTemperatureAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMaxTemperatureAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readStepAttribute( - IntegerAttributeCallback callback - ) { - readStepAttribute(chipClusterPtr, callback); - } - public void subscribeStepAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeStepAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSelectedTemperatureLevelAttribute( - IntegerAttributeCallback callback - ) { - readSelectedTemperatureLevelAttribute(chipClusterPtr, callback); - } - public void subscribeSelectedTemperatureLevelAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSelectedTemperatureLevelAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSupportedTemperatureLevelsAttribute( - SupportedTemperatureLevelsAttributeCallback callback - ) { - readSupportedTemperatureLevelsAttribute(chipClusterPtr, callback); - } - public void subscribeSupportedTemperatureLevelsAttribute( - SupportedTemperatureLevelsAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeSupportedTemperatureLevelsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readTemperatureSetpointAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeTemperatureSetpointAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMinTemperatureAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMinTemperatureAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMaxTemperatureAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMaxTemperatureAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readStepAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeStepAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSelectedTemperatureLevelAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeSelectedTemperatureLevelAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSupportedTemperatureLevelsAttribute(long chipClusterPtr, - SupportedTemperatureLevelsAttributeCallback callback - ); - private native void subscribeSupportedTemperatureLevelsAttribute(long chipClusterPtr, - SupportedTemperatureLevelsAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class RefrigeratorAlarmCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000057L; - - public RefrigeratorAlarmCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readMaskAttribute( - LongAttributeCallback callback - ) { - readMaskAttribute(chipClusterPtr, callback); - } - public void subscribeMaskAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMaskAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readStateAttribute( - LongAttributeCallback callback - ) { - readStateAttribute(chipClusterPtr, callback); - } - public void subscribeStateAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeStateAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSupportedAttribute( - LongAttributeCallback callback - ) { - readSupportedAttribute(chipClusterPtr, callback); - } - public void subscribeSupportedAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSupportedAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readMaskAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeMaskAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readStateAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeStateAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSupportedAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeSupportedAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class DishwasherModeCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000059L; - - public DishwasherModeCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void changeToMode(ChangeToModeResponseCallback callback - , Integer newMode) { - changeToMode(chipClusterPtr, callback, newMode, null); - } - - public void changeToMode(ChangeToModeResponseCallback callback - , Integer newMode - , int timedInvokeTimeoutMs) { - changeToMode(chipClusterPtr, callback, newMode, timedInvokeTimeoutMs); - } - private native void changeToMode(long chipClusterPtr, ChangeToModeResponseCallback Callback - , Integer newMode - , @Nullable Integer timedInvokeTimeoutMs); - public interface ChangeToModeResponseCallback { - void onSuccess(Integer status, Optional statusText); - - void onError(Exception error); - } - - - public interface SupportedModesAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface StartUpModeAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface OnModeAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readSupportedModesAttribute( - SupportedModesAttributeCallback callback - ) { - readSupportedModesAttribute(chipClusterPtr, callback); - } - public void subscribeSupportedModesAttribute( - SupportedModesAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeSupportedModesAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentModeAttribute( - IntegerAttributeCallback callback - ) { - readCurrentModeAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentModeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCurrentModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readStartUpModeAttribute( - StartUpModeAttributeCallback callback - ) { - readStartUpModeAttribute(chipClusterPtr, callback); - } - public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value) { - writeStartUpModeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeStartUpModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeStartUpModeAttribute( - StartUpModeAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeStartUpModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOnModeAttribute( - OnModeAttributeCallback callback - ) { - readOnModeAttribute(chipClusterPtr, callback); - } - public void writeOnModeAttribute(DefaultClusterCallback callback, Integer value) { - writeOnModeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeOnModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeOnModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeOnModeAttribute( - OnModeAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeOnModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readSupportedModesAttribute(long chipClusterPtr, - SupportedModesAttributeCallback callback - ); - private native void subscribeSupportedModesAttribute(long chipClusterPtr, - SupportedModesAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readCurrentModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeCurrentModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readStartUpModeAttribute(long chipClusterPtr, - StartUpModeAttributeCallback callback - ); - - private native void writeStartUpModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeStartUpModeAttribute(long chipClusterPtr, - StartUpModeAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readOnModeAttribute(long chipClusterPtr, - OnModeAttributeCallback callback - ); - - private native void writeOnModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeOnModeAttribute(long chipClusterPtr, - OnModeAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class AirQualityCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000005BL; - - public AirQualityCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readAirQualityAttribute( - IntegerAttributeCallback callback - ) { - readAirQualityAttribute(chipClusterPtr, callback); - } - public void subscribeAirQualityAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAirQualityAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readAirQualityAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAirQualityAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class SmokeCoAlarmCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000005CL; - - public SmokeCoAlarmCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void selfTestRequest(DefaultClusterCallback callback - ) { - selfTestRequest(chipClusterPtr, callback, null); - } - - public void selfTestRequest(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - selfTestRequest(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - private native void selfTestRequest(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readExpressedStateAttribute( - IntegerAttributeCallback callback - ) { - readExpressedStateAttribute(chipClusterPtr, callback); - } - public void subscribeExpressedStateAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeExpressedStateAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSmokeStateAttribute( - IntegerAttributeCallback callback - ) { - readSmokeStateAttribute(chipClusterPtr, callback); - } - public void subscribeSmokeStateAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSmokeStateAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCOStateAttribute( - IntegerAttributeCallback callback - ) { - readCOStateAttribute(chipClusterPtr, callback); - } - public void subscribeCOStateAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCOStateAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBatteryAlertAttribute( - IntegerAttributeCallback callback - ) { - readBatteryAlertAttribute(chipClusterPtr, callback); - } - public void subscribeBatteryAlertAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBatteryAlertAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDeviceMutedAttribute( - IntegerAttributeCallback callback - ) { - readDeviceMutedAttribute(chipClusterPtr, callback); - } - public void subscribeDeviceMutedAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDeviceMutedAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTestInProgressAttribute( - BooleanAttributeCallback callback - ) { - readTestInProgressAttribute(chipClusterPtr, callback); - } - public void subscribeTestInProgressAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTestInProgressAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readHardwareFaultAlertAttribute( - BooleanAttributeCallback callback - ) { - readHardwareFaultAlertAttribute(chipClusterPtr, callback); - } - public void subscribeHardwareFaultAlertAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeHardwareFaultAlertAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEndOfServiceAlertAttribute( - IntegerAttributeCallback callback - ) { - readEndOfServiceAlertAttribute(chipClusterPtr, callback); - } - public void subscribeEndOfServiceAlertAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeEndOfServiceAlertAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInterconnectSmokeAlarmAttribute( - IntegerAttributeCallback callback - ) { - readInterconnectSmokeAlarmAttribute(chipClusterPtr, callback); - } - public void subscribeInterconnectSmokeAlarmAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInterconnectSmokeAlarmAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInterconnectCOAlarmAttribute( - IntegerAttributeCallback callback - ) { - readInterconnectCOAlarmAttribute(chipClusterPtr, callback); - } - public void subscribeInterconnectCOAlarmAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInterconnectCOAlarmAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readContaminationStateAttribute( - IntegerAttributeCallback callback - ) { - readContaminationStateAttribute(chipClusterPtr, callback); - } - public void subscribeContaminationStateAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeContaminationStateAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSmokeSensitivityLevelAttribute( - IntegerAttributeCallback callback - ) { - readSmokeSensitivityLevelAttribute(chipClusterPtr, callback); - } - public void writeSmokeSensitivityLevelAttribute(DefaultClusterCallback callback, Integer value) { - writeSmokeSensitivityLevelAttribute(chipClusterPtr, callback, value, null); - } - - public void writeSmokeSensitivityLevelAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeSmokeSensitivityLevelAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeSmokeSensitivityLevelAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSmokeSensitivityLevelAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readExpiryDateAttribute( - LongAttributeCallback callback - ) { - readExpiryDateAttribute(chipClusterPtr, callback); - } - public void subscribeExpiryDateAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeExpiryDateAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readExpressedStateAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeExpressedStateAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSmokeStateAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeSmokeStateAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readCOStateAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeCOStateAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBatteryAlertAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeBatteryAlertAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDeviceMutedAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeDeviceMutedAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTestInProgressAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - private native void subscribeTestInProgressAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readHardwareFaultAlertAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - private native void subscribeHardwareFaultAlertAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readEndOfServiceAlertAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeEndOfServiceAlertAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInterconnectSmokeAlarmAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeInterconnectSmokeAlarmAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInterconnectCOAlarmAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeInterconnectCOAlarmAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readContaminationStateAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeContaminationStateAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSmokeSensitivityLevelAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeSmokeSensitivityLevelAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeSmokeSensitivityLevelAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readExpiryDateAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeExpiryDateAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class DishwasherAlarmCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000005DL; - - public DishwasherAlarmCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void reset(DefaultClusterCallback callback - , Long alarms) { - reset(chipClusterPtr, callback, alarms, null); - } - - public void reset(DefaultClusterCallback callback - , Long alarms - , int timedInvokeTimeoutMs) { - reset(chipClusterPtr, callback, alarms, timedInvokeTimeoutMs); - } - - public void modifyEnabledAlarms(DefaultClusterCallback callback - , Long mask) { - modifyEnabledAlarms(chipClusterPtr, callback, mask, null); - } - - public void modifyEnabledAlarms(DefaultClusterCallback callback - , Long mask - , int timedInvokeTimeoutMs) { - modifyEnabledAlarms(chipClusterPtr, callback, mask, timedInvokeTimeoutMs); - } - private native void reset(long chipClusterPtr, DefaultClusterCallback Callback - , Long alarms - , @Nullable Integer timedInvokeTimeoutMs); - private native void modifyEnabledAlarms(long chipClusterPtr, DefaultClusterCallback Callback - , Long mask - , @Nullable Integer timedInvokeTimeoutMs); - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readMaskAttribute( - LongAttributeCallback callback - ) { - readMaskAttribute(chipClusterPtr, callback); - } - public void subscribeMaskAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMaskAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLatchAttribute( - LongAttributeCallback callback - ) { - readLatchAttribute(chipClusterPtr, callback); - } - public void subscribeLatchAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLatchAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readStateAttribute( - LongAttributeCallback callback - ) { - readStateAttribute(chipClusterPtr, callback); - } - public void subscribeStateAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeStateAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSupportedAttribute( - LongAttributeCallback callback - ) { - readSupportedAttribute(chipClusterPtr, callback); - } - public void subscribeSupportedAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSupportedAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readMaskAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeMaskAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLatchAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeLatchAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readStateAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeStateAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSupportedAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeSupportedAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class OperationalStateCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000060L; - - public OperationalStateCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void pause(OperationalCommandResponseCallback callback - ) { - pause(chipClusterPtr, callback, null); - } - - public void pause(OperationalCommandResponseCallback callback - - , int timedInvokeTimeoutMs) { - pause(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void stop(OperationalCommandResponseCallback callback - ) { - stop(chipClusterPtr, callback, null); - } - - public void stop(OperationalCommandResponseCallback callback - - , int timedInvokeTimeoutMs) { - stop(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void start(OperationalCommandResponseCallback callback - ) { - start(chipClusterPtr, callback, null); - } - - public void start(OperationalCommandResponseCallback callback - - , int timedInvokeTimeoutMs) { - start(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void resume(OperationalCommandResponseCallback callback - ) { - resume(chipClusterPtr, callback, null); - } - - public void resume(OperationalCommandResponseCallback callback - - , int timedInvokeTimeoutMs) { - resume(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - private native void pause(long chipClusterPtr, OperationalCommandResponseCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void stop(long chipClusterPtr, OperationalCommandResponseCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void start(long chipClusterPtr, OperationalCommandResponseCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void resume(long chipClusterPtr, OperationalCommandResponseCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - public interface OperationalCommandResponseCallback { - void onSuccess(ChipStructs.OperationalStateClusterErrorStateStruct commandResponseState); - - void onError(Exception error); - } - - - public interface PhaseListAttributeCallback { - void onSuccess(@Nullable List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface CurrentPhaseAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface CountdownTimeAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface OperationalStateListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readPhaseListAttribute( - PhaseListAttributeCallback callback - ) { - readPhaseListAttribute(chipClusterPtr, callback); - } - public void subscribePhaseListAttribute( - PhaseListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePhaseListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentPhaseAttribute( - CurrentPhaseAttributeCallback callback - ) { - readCurrentPhaseAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentPhaseAttribute( - CurrentPhaseAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeCurrentPhaseAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCountdownTimeAttribute( - CountdownTimeAttributeCallback callback - ) { - readCountdownTimeAttribute(chipClusterPtr, callback); - } - public void subscribeCountdownTimeAttribute( - CountdownTimeAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeCountdownTimeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOperationalStateListAttribute( - OperationalStateListAttributeCallback callback - ) { - readOperationalStateListAttribute(chipClusterPtr, callback); - } - public void subscribeOperationalStateListAttribute( - OperationalStateListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeOperationalStateListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOperationalStateAttribute( - IntegerAttributeCallback callback - ) { - readOperationalStateAttribute(chipClusterPtr, callback); - } - public void subscribeOperationalStateAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeOperationalStateAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readPhaseListAttribute(long chipClusterPtr, - PhaseListAttributeCallback callback - ); - private native void subscribePhaseListAttribute(long chipClusterPtr, - PhaseListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readCurrentPhaseAttribute(long chipClusterPtr, - CurrentPhaseAttributeCallback callback - ); - private native void subscribeCurrentPhaseAttribute(long chipClusterPtr, - CurrentPhaseAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readCountdownTimeAttribute(long chipClusterPtr, - CountdownTimeAttributeCallback callback - ); - private native void subscribeCountdownTimeAttribute(long chipClusterPtr, - CountdownTimeAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readOperationalStateListAttribute(long chipClusterPtr, - OperationalStateListAttributeCallback callback - ); - private native void subscribeOperationalStateListAttribute(long chipClusterPtr, - OperationalStateListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readOperationalStateAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeOperationalStateAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class RvcOperationalStateCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000061L; - - public RvcOperationalStateCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void pause(OperationalCommandResponseCallback callback - ) { - pause(chipClusterPtr, callback, null); - } - - public void pause(OperationalCommandResponseCallback callback - - , int timedInvokeTimeoutMs) { - pause(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void stop(OperationalCommandResponseCallback callback - ) { - stop(chipClusterPtr, callback, null); - } - - public void stop(OperationalCommandResponseCallback callback - - , int timedInvokeTimeoutMs) { - stop(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void start(OperationalCommandResponseCallback callback - ) { - start(chipClusterPtr, callback, null); - } - - public void start(OperationalCommandResponseCallback callback - - , int timedInvokeTimeoutMs) { - start(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void resume(OperationalCommandResponseCallback callback - ) { - resume(chipClusterPtr, callback, null); - } - - public void resume(OperationalCommandResponseCallback callback - - , int timedInvokeTimeoutMs) { - resume(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - private native void pause(long chipClusterPtr, OperationalCommandResponseCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void stop(long chipClusterPtr, OperationalCommandResponseCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void start(long chipClusterPtr, OperationalCommandResponseCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void resume(long chipClusterPtr, OperationalCommandResponseCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - public interface OperationalCommandResponseCallback { - void onSuccess(ChipStructs.RvcOperationalStateClusterErrorStateStruct commandResponseState); - - void onError(Exception error); - } - - - public interface PhaseListAttributeCallback { - void onSuccess(@Nullable List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface CurrentPhaseAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface CountdownTimeAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface OperationalStateListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readPhaseListAttribute( - PhaseListAttributeCallback callback - ) { - readPhaseListAttribute(chipClusterPtr, callback); - } - public void subscribePhaseListAttribute( - PhaseListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePhaseListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentPhaseAttribute( - CurrentPhaseAttributeCallback callback - ) { - readCurrentPhaseAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentPhaseAttribute( - CurrentPhaseAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeCurrentPhaseAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCountdownTimeAttribute( - CountdownTimeAttributeCallback callback - ) { - readCountdownTimeAttribute(chipClusterPtr, callback); - } - public void subscribeCountdownTimeAttribute( - CountdownTimeAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeCountdownTimeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOperationalStateListAttribute( - OperationalStateListAttributeCallback callback - ) { - readOperationalStateListAttribute(chipClusterPtr, callback); - } - public void subscribeOperationalStateListAttribute( - OperationalStateListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeOperationalStateListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOperationalStateAttribute( - IntegerAttributeCallback callback - ) { - readOperationalStateAttribute(chipClusterPtr, callback); - } - public void subscribeOperationalStateAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeOperationalStateAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readPhaseListAttribute(long chipClusterPtr, - PhaseListAttributeCallback callback - ); - private native void subscribePhaseListAttribute(long chipClusterPtr, - PhaseListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readCurrentPhaseAttribute(long chipClusterPtr, - CurrentPhaseAttributeCallback callback - ); - private native void subscribeCurrentPhaseAttribute(long chipClusterPtr, - CurrentPhaseAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readCountdownTimeAttribute(long chipClusterPtr, - CountdownTimeAttributeCallback callback - ); - private native void subscribeCountdownTimeAttribute(long chipClusterPtr, - CountdownTimeAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readOperationalStateListAttribute(long chipClusterPtr, - OperationalStateListAttributeCallback callback - ); - private native void subscribeOperationalStateListAttribute(long chipClusterPtr, - OperationalStateListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readOperationalStateAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeOperationalStateAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class HepaFilterMonitoringCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000071L; - - public HepaFilterMonitoringCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void resetCondition(DefaultClusterCallback callback - ) { - resetCondition(chipClusterPtr, callback, null); - } - - public void resetCondition(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - resetCondition(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - private native void resetCondition(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - - public interface LastChangedTimeAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ReplacementProductListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readConditionAttribute( - IntegerAttributeCallback callback - ) { - readConditionAttribute(chipClusterPtr, callback); - } - public void subscribeConditionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeConditionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDegradationDirectionAttribute( - IntegerAttributeCallback callback - ) { - readDegradationDirectionAttribute(chipClusterPtr, callback); - } - public void subscribeDegradationDirectionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDegradationDirectionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readChangeIndicationAttribute( - IntegerAttributeCallback callback - ) { - readChangeIndicationAttribute(chipClusterPtr, callback); - } - public void subscribeChangeIndicationAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeChangeIndicationAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInPlaceIndicatorAttribute( - BooleanAttributeCallback callback - ) { - readInPlaceIndicatorAttribute(chipClusterPtr, callback); - } - public void subscribeInPlaceIndicatorAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInPlaceIndicatorAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLastChangedTimeAttribute( - LastChangedTimeAttributeCallback callback - ) { - readLastChangedTimeAttribute(chipClusterPtr, callback); - } - public void writeLastChangedTimeAttribute(DefaultClusterCallback callback, Long value) { - writeLastChangedTimeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeLastChangedTimeAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeLastChangedTimeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeLastChangedTimeAttribute( - LastChangedTimeAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeLastChangedTimeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readReplacementProductListAttribute( - ReplacementProductListAttributeCallback callback - ) { - readReplacementProductListAttribute(chipClusterPtr, callback); - } - public void subscribeReplacementProductListAttribute( - ReplacementProductListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeReplacementProductListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readConditionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeConditionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDegradationDirectionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeDegradationDirectionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readChangeIndicationAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeChangeIndicationAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInPlaceIndicatorAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - private native void subscribeInPlaceIndicatorAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLastChangedTimeAttribute(long chipClusterPtr, - LastChangedTimeAttributeCallback callback - ); - - private native void writeLastChangedTimeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeLastChangedTimeAttribute(long chipClusterPtr, - LastChangedTimeAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readReplacementProductListAttribute(long chipClusterPtr, - ReplacementProductListAttributeCallback callback - ); - private native void subscribeReplacementProductListAttribute(long chipClusterPtr, - ReplacementProductListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class ActivatedCarbonFilterMonitoringCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000072L; - - public ActivatedCarbonFilterMonitoringCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void resetCondition(DefaultClusterCallback callback - ) { - resetCondition(chipClusterPtr, callback, null); - } - - public void resetCondition(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - resetCondition(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - private native void resetCondition(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - - public interface LastChangedTimeAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ReplacementProductListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readConditionAttribute( - IntegerAttributeCallback callback - ) { - readConditionAttribute(chipClusterPtr, callback); - } - public void subscribeConditionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeConditionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDegradationDirectionAttribute( - IntegerAttributeCallback callback - ) { - readDegradationDirectionAttribute(chipClusterPtr, callback); - } - public void subscribeDegradationDirectionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDegradationDirectionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readChangeIndicationAttribute( - IntegerAttributeCallback callback - ) { - readChangeIndicationAttribute(chipClusterPtr, callback); - } - public void subscribeChangeIndicationAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeChangeIndicationAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInPlaceIndicatorAttribute( - BooleanAttributeCallback callback - ) { - readInPlaceIndicatorAttribute(chipClusterPtr, callback); - } - public void subscribeInPlaceIndicatorAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInPlaceIndicatorAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLastChangedTimeAttribute( - LastChangedTimeAttributeCallback callback - ) { - readLastChangedTimeAttribute(chipClusterPtr, callback); - } - public void writeLastChangedTimeAttribute(DefaultClusterCallback callback, Long value) { - writeLastChangedTimeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeLastChangedTimeAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeLastChangedTimeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeLastChangedTimeAttribute( - LastChangedTimeAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeLastChangedTimeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readReplacementProductListAttribute( - ReplacementProductListAttributeCallback callback - ) { - readReplacementProductListAttribute(chipClusterPtr, callback); - } - public void subscribeReplacementProductListAttribute( - ReplacementProductListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeReplacementProductListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readConditionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeConditionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDegradationDirectionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeDegradationDirectionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readChangeIndicationAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeChangeIndicationAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInPlaceIndicatorAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - private native void subscribeInPlaceIndicatorAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLastChangedTimeAttribute(long chipClusterPtr, - LastChangedTimeAttributeCallback callback - ); - - private native void writeLastChangedTimeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeLastChangedTimeAttribute(long chipClusterPtr, - LastChangedTimeAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readReplacementProductListAttribute(long chipClusterPtr, - ReplacementProductListAttributeCallback callback - ); - private native void subscribeReplacementProductListAttribute(long chipClusterPtr, - ReplacementProductListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class BooleanSensorConfigurationCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000080L; - - public BooleanSensorConfigurationCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void supressRequest(DefaultClusterCallback callback - , Integer alarmsToSuppress) { - supressRequest(chipClusterPtr, callback, alarmsToSuppress, null); - } - - public void supressRequest(DefaultClusterCallback callback - , Integer alarmsToSuppress - , int timedInvokeTimeoutMs) { - supressRequest(chipClusterPtr, callback, alarmsToSuppress, timedInvokeTimeoutMs); - } - private native void supressRequest(long chipClusterPtr, DefaultClusterCallback Callback - , Integer alarmsToSuppress - , @Nullable Integer timedInvokeTimeoutMs); - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readSensitivityLevelAttribute( - IntegerAttributeCallback callback - ) { - readSensitivityLevelAttribute(chipClusterPtr, callback); - } - public void writeSensitivityLevelAttribute(DefaultClusterCallback callback, Integer value) { - writeSensitivityLevelAttribute(chipClusterPtr, callback, value, null); - } - - public void writeSensitivityLevelAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeSensitivityLevelAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeSensitivityLevelAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSensitivityLevelAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAlarmsActiveAttribute( - IntegerAttributeCallback callback - ) { - readAlarmsActiveAttribute(chipClusterPtr, callback); - } - public void subscribeAlarmsActiveAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAlarmsActiveAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAlarmsSuppressedAttribute( - IntegerAttributeCallback callback - ) { - readAlarmsSuppressedAttribute(chipClusterPtr, callback); - } - public void subscribeAlarmsSuppressedAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAlarmsSuppressedAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAlarmsEnabledAttribute( - IntegerAttributeCallback callback - ) { - readAlarmsEnabledAttribute(chipClusterPtr, callback); - } - public void writeAlarmsEnabledAttribute(DefaultClusterCallback callback, Integer value) { - writeAlarmsEnabledAttribute(chipClusterPtr, callback, value, null); - } - - public void writeAlarmsEnabledAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeAlarmsEnabledAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeAlarmsEnabledAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAlarmsEnabledAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readSensitivityLevelAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeSensitivityLevelAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeSensitivityLevelAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAlarmsActiveAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAlarmsActiveAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAlarmsSuppressedAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAlarmsSuppressedAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAlarmsEnabledAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeAlarmsEnabledAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeAlarmsEnabledAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class ValveConfigurationAndControlCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000081L; - - public ValveConfigurationAndControlCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void open(DefaultClusterCallback callback - , Optional openDuration) { - open(chipClusterPtr, callback, openDuration, null); - } - - public void open(DefaultClusterCallback callback - , Optional openDuration - , int timedInvokeTimeoutMs) { - open(chipClusterPtr, callback, openDuration, timedInvokeTimeoutMs); - } - - public void close(DefaultClusterCallback callback - ) { - close(chipClusterPtr, callback, null); - } - - public void close(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - close(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void setLevel(DefaultClusterCallback callback - , Integer level, Optional openDuration) { - setLevel(chipClusterPtr, callback, level, openDuration, null); - } - - public void setLevel(DefaultClusterCallback callback - , Integer level, Optional openDuration - , int timedInvokeTimeoutMs) { - setLevel(chipClusterPtr, callback, level, openDuration, timedInvokeTimeoutMs); - } - private native void open(long chipClusterPtr, DefaultClusterCallback Callback - , Optional openDuration - , @Nullable Integer timedInvokeTimeoutMs); - private native void close(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void setLevel(long chipClusterPtr, DefaultClusterCallback Callback - , Integer level, Optional openDuration - , @Nullable Integer timedInvokeTimeoutMs); - - public interface OpenDurationAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AutoCloseTimeAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface RemainingDurationAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface CurrentStateAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface TargetStateAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface CurrentLevelAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface TargetLevelAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface OpenLevelAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readOpenDurationAttribute( - OpenDurationAttributeCallback callback - ) { - readOpenDurationAttribute(chipClusterPtr, callback); - } - public void writeOpenDurationAttribute(DefaultClusterCallback callback, Long value) { - writeOpenDurationAttribute(chipClusterPtr, callback, value, null); - } - - public void writeOpenDurationAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeOpenDurationAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeOpenDurationAttribute( - OpenDurationAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeOpenDurationAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAutoCloseTimeAttribute( - AutoCloseTimeAttributeCallback callback - ) { - readAutoCloseTimeAttribute(chipClusterPtr, callback); - } - public void subscribeAutoCloseTimeAttribute( - AutoCloseTimeAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAutoCloseTimeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRemainingDurationAttribute( - RemainingDurationAttributeCallback callback - ) { - readRemainingDurationAttribute(chipClusterPtr, callback); - } - public void subscribeRemainingDurationAttribute( - RemainingDurationAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeRemainingDurationAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentStateAttribute( - CurrentStateAttributeCallback callback - ) { - readCurrentStateAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentStateAttribute( - CurrentStateAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeCurrentStateAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTargetStateAttribute( - TargetStateAttributeCallback callback - ) { - readTargetStateAttribute(chipClusterPtr, callback); - } - public void subscribeTargetStateAttribute( - TargetStateAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeTargetStateAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readStartUpStateAttribute( - IntegerAttributeCallback callback - ) { - readStartUpStateAttribute(chipClusterPtr, callback); - } - public void writeStartUpStateAttribute(DefaultClusterCallback callback, Integer value) { - writeStartUpStateAttribute(chipClusterPtr, callback, value, null); - } - - public void writeStartUpStateAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeStartUpStateAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeStartUpStateAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeStartUpStateAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentLevelAttribute( - CurrentLevelAttributeCallback callback - ) { - readCurrentLevelAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentLevelAttribute( - CurrentLevelAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeCurrentLevelAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTargetLevelAttribute( - TargetLevelAttributeCallback callback - ) { - readTargetLevelAttribute(chipClusterPtr, callback); - } - public void subscribeTargetLevelAttribute( - TargetLevelAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeTargetLevelAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOpenLevelAttribute( - OpenLevelAttributeCallback callback - ) { - readOpenLevelAttribute(chipClusterPtr, callback); - } - public void writeOpenLevelAttribute(DefaultClusterCallback callback, Integer value) { - writeOpenLevelAttribute(chipClusterPtr, callback, value, null); - } - - public void writeOpenLevelAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeOpenLevelAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeOpenLevelAttribute( - OpenLevelAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeOpenLevelAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readValveFaultAttribute( - IntegerAttributeCallback callback - ) { - readValveFaultAttribute(chipClusterPtr, callback); - } - public void subscribeValveFaultAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeValveFaultAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readOpenDurationAttribute(long chipClusterPtr, - OpenDurationAttributeCallback callback - ); - - private native void writeOpenDurationAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeOpenDurationAttribute(long chipClusterPtr, - OpenDurationAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAutoCloseTimeAttribute(long chipClusterPtr, - AutoCloseTimeAttributeCallback callback - ); - private native void subscribeAutoCloseTimeAttribute(long chipClusterPtr, - AutoCloseTimeAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readRemainingDurationAttribute(long chipClusterPtr, - RemainingDurationAttributeCallback callback - ); - private native void subscribeRemainingDurationAttribute(long chipClusterPtr, - RemainingDurationAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readCurrentStateAttribute(long chipClusterPtr, - CurrentStateAttributeCallback callback - ); - private native void subscribeCurrentStateAttribute(long chipClusterPtr, - CurrentStateAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readTargetStateAttribute(long chipClusterPtr, - TargetStateAttributeCallback callback - ); - private native void subscribeTargetStateAttribute(long chipClusterPtr, - TargetStateAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readStartUpStateAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeStartUpStateAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeStartUpStateAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readCurrentLevelAttribute(long chipClusterPtr, - CurrentLevelAttributeCallback callback - ); - private native void subscribeCurrentLevelAttribute(long chipClusterPtr, - CurrentLevelAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readTargetLevelAttribute(long chipClusterPtr, - TargetLevelAttributeCallback callback - ); - private native void subscribeTargetLevelAttribute(long chipClusterPtr, - TargetLevelAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readOpenLevelAttribute(long chipClusterPtr, - OpenLevelAttributeCallback callback - ); - - private native void writeOpenLevelAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeOpenLevelAttribute(long chipClusterPtr, - OpenLevelAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readValveFaultAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeValveFaultAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class DoorLockCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000101L; - - public DoorLockCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - - public void lockDoor(DefaultClusterCallback callback - , Optional PINCode - , int timedInvokeTimeoutMs) { - lockDoor(chipClusterPtr, callback, PINCode, timedInvokeTimeoutMs); - } - - - public void unlockDoor(DefaultClusterCallback callback - , Optional PINCode - , int timedInvokeTimeoutMs) { - unlockDoor(chipClusterPtr, callback, PINCode, timedInvokeTimeoutMs); - } - - - public void unlockWithTimeout(DefaultClusterCallback callback - , Integer timeout, Optional PINCode - , int timedInvokeTimeoutMs) { - unlockWithTimeout(chipClusterPtr, callback, timeout, PINCode, timedInvokeTimeoutMs); - } - - public void setWeekDaySchedule(DefaultClusterCallback callback - , Integer weekDayIndex, Integer userIndex, Integer daysMask, Integer startHour, Integer startMinute, Integer endHour, Integer endMinute) { - setWeekDaySchedule(chipClusterPtr, callback, weekDayIndex, userIndex, daysMask, startHour, startMinute, endHour, endMinute, null); - } - - public void setWeekDaySchedule(DefaultClusterCallback callback - , Integer weekDayIndex, Integer userIndex, Integer daysMask, Integer startHour, Integer startMinute, Integer endHour, Integer endMinute - , int timedInvokeTimeoutMs) { - setWeekDaySchedule(chipClusterPtr, callback, weekDayIndex, userIndex, daysMask, startHour, startMinute, endHour, endMinute, timedInvokeTimeoutMs); - } - - public void getWeekDaySchedule(GetWeekDayScheduleResponseCallback callback - , Integer weekDayIndex, Integer userIndex) { - getWeekDaySchedule(chipClusterPtr, callback, weekDayIndex, userIndex, null); - } - - public void getWeekDaySchedule(GetWeekDayScheduleResponseCallback callback - , Integer weekDayIndex, Integer userIndex - , int timedInvokeTimeoutMs) { - getWeekDaySchedule(chipClusterPtr, callback, weekDayIndex, userIndex, timedInvokeTimeoutMs); - } - - public void clearWeekDaySchedule(DefaultClusterCallback callback - , Integer weekDayIndex, Integer userIndex) { - clearWeekDaySchedule(chipClusterPtr, callback, weekDayIndex, userIndex, null); - } - - public void clearWeekDaySchedule(DefaultClusterCallback callback - , Integer weekDayIndex, Integer userIndex - , int timedInvokeTimeoutMs) { - clearWeekDaySchedule(chipClusterPtr, callback, weekDayIndex, userIndex, timedInvokeTimeoutMs); - } - - public void setYearDaySchedule(DefaultClusterCallback callback - , Integer yearDayIndex, Integer userIndex, Long localStartTime, Long localEndTime) { - setYearDaySchedule(chipClusterPtr, callback, yearDayIndex, userIndex, localStartTime, localEndTime, null); - } - - public void setYearDaySchedule(DefaultClusterCallback callback - , Integer yearDayIndex, Integer userIndex, Long localStartTime, Long localEndTime - , int timedInvokeTimeoutMs) { - setYearDaySchedule(chipClusterPtr, callback, yearDayIndex, userIndex, localStartTime, localEndTime, timedInvokeTimeoutMs); - } - - public void getYearDaySchedule(GetYearDayScheduleResponseCallback callback - , Integer yearDayIndex, Integer userIndex) { - getYearDaySchedule(chipClusterPtr, callback, yearDayIndex, userIndex, null); - } - - public void getYearDaySchedule(GetYearDayScheduleResponseCallback callback - , Integer yearDayIndex, Integer userIndex - , int timedInvokeTimeoutMs) { - getYearDaySchedule(chipClusterPtr, callback, yearDayIndex, userIndex, timedInvokeTimeoutMs); - } - - public void clearYearDaySchedule(DefaultClusterCallback callback - , Integer yearDayIndex, Integer userIndex) { - clearYearDaySchedule(chipClusterPtr, callback, yearDayIndex, userIndex, null); - } - - public void clearYearDaySchedule(DefaultClusterCallback callback - , Integer yearDayIndex, Integer userIndex - , int timedInvokeTimeoutMs) { - clearYearDaySchedule(chipClusterPtr, callback, yearDayIndex, userIndex, timedInvokeTimeoutMs); - } - - public void setHolidaySchedule(DefaultClusterCallback callback - , Integer holidayIndex, Long localStartTime, Long localEndTime, Integer operatingMode) { - setHolidaySchedule(chipClusterPtr, callback, holidayIndex, localStartTime, localEndTime, operatingMode, null); - } - - public void setHolidaySchedule(DefaultClusterCallback callback - , Integer holidayIndex, Long localStartTime, Long localEndTime, Integer operatingMode - , int timedInvokeTimeoutMs) { - setHolidaySchedule(chipClusterPtr, callback, holidayIndex, localStartTime, localEndTime, operatingMode, timedInvokeTimeoutMs); - } - - public void getHolidaySchedule(GetHolidayScheduleResponseCallback callback - , Integer holidayIndex) { - getHolidaySchedule(chipClusterPtr, callback, holidayIndex, null); - } - - public void getHolidaySchedule(GetHolidayScheduleResponseCallback callback - , Integer holidayIndex - , int timedInvokeTimeoutMs) { - getHolidaySchedule(chipClusterPtr, callback, holidayIndex, timedInvokeTimeoutMs); - } - - public void clearHolidaySchedule(DefaultClusterCallback callback - , Integer holidayIndex) { - clearHolidaySchedule(chipClusterPtr, callback, holidayIndex, null); - } - - public void clearHolidaySchedule(DefaultClusterCallback callback - , Integer holidayIndex - , int timedInvokeTimeoutMs) { - clearHolidaySchedule(chipClusterPtr, callback, holidayIndex, timedInvokeTimeoutMs); - } - - - public void setUser(DefaultClusterCallback callback - , Integer operationType, Integer userIndex, @Nullable String userName, @Nullable Long userUniqueID, @Nullable Integer userStatus, @Nullable Integer userType, @Nullable Integer credentialRule - , int timedInvokeTimeoutMs) { - setUser(chipClusterPtr, callback, operationType, userIndex, userName, userUniqueID, userStatus, userType, credentialRule, timedInvokeTimeoutMs); - } - - public void getUser(GetUserResponseCallback callback - , Integer userIndex) { - getUser(chipClusterPtr, callback, userIndex, null); - } - - public void getUser(GetUserResponseCallback callback - , Integer userIndex - , int timedInvokeTimeoutMs) { - getUser(chipClusterPtr, callback, userIndex, timedInvokeTimeoutMs); - } - - - public void clearUser(DefaultClusterCallback callback - , Integer userIndex - , int timedInvokeTimeoutMs) { - clearUser(chipClusterPtr, callback, userIndex, timedInvokeTimeoutMs); - } - - - public void setCredential(SetCredentialResponseCallback callback - , Integer operationType, ChipStructs.DoorLockClusterCredentialStruct credential, byte[] credentialData, @Nullable Integer userIndex, @Nullable Integer userStatus, @Nullable Integer userType - , int timedInvokeTimeoutMs) { - setCredential(chipClusterPtr, callback, operationType, credential, credentialData, userIndex, userStatus, userType, timedInvokeTimeoutMs); - } - - public void getCredentialStatus(GetCredentialStatusResponseCallback callback - , ChipStructs.DoorLockClusterCredentialStruct credential) { - getCredentialStatus(chipClusterPtr, callback, credential, null); - } - - public void getCredentialStatus(GetCredentialStatusResponseCallback callback - , ChipStructs.DoorLockClusterCredentialStruct credential - , int timedInvokeTimeoutMs) { - getCredentialStatus(chipClusterPtr, callback, credential, timedInvokeTimeoutMs); - } - - - public void clearCredential(DefaultClusterCallback callback - , @Nullable ChipStructs.DoorLockClusterCredentialStruct credential - , int timedInvokeTimeoutMs) { - clearCredential(chipClusterPtr, callback, credential, timedInvokeTimeoutMs); - } - - - public void unboltDoor(DefaultClusterCallback callback - , Optional PINCode - , int timedInvokeTimeoutMs) { - unboltDoor(chipClusterPtr, callback, PINCode, timedInvokeTimeoutMs); - } - private native void lockDoor(long chipClusterPtr, DefaultClusterCallback Callback - , Optional PINCode - , @Nullable Integer timedInvokeTimeoutMs); - private native void unlockDoor(long chipClusterPtr, DefaultClusterCallback Callback - , Optional PINCode - , @Nullable Integer timedInvokeTimeoutMs); - private native void unlockWithTimeout(long chipClusterPtr, DefaultClusterCallback Callback - , Integer timeout, Optional PINCode - , @Nullable Integer timedInvokeTimeoutMs); - private native void setWeekDaySchedule(long chipClusterPtr, DefaultClusterCallback Callback - , Integer weekDayIndex, Integer userIndex, Integer daysMask, Integer startHour, Integer startMinute, Integer endHour, Integer endMinute - , @Nullable Integer timedInvokeTimeoutMs); - private native void getWeekDaySchedule(long chipClusterPtr, GetWeekDayScheduleResponseCallback Callback - , Integer weekDayIndex, Integer userIndex - , @Nullable Integer timedInvokeTimeoutMs); - private native void clearWeekDaySchedule(long chipClusterPtr, DefaultClusterCallback Callback - , Integer weekDayIndex, Integer userIndex - , @Nullable Integer timedInvokeTimeoutMs); - private native void setYearDaySchedule(long chipClusterPtr, DefaultClusterCallback Callback - , Integer yearDayIndex, Integer userIndex, Long localStartTime, Long localEndTime - , @Nullable Integer timedInvokeTimeoutMs); - private native void getYearDaySchedule(long chipClusterPtr, GetYearDayScheduleResponseCallback Callback - , Integer yearDayIndex, Integer userIndex - , @Nullable Integer timedInvokeTimeoutMs); - private native void clearYearDaySchedule(long chipClusterPtr, DefaultClusterCallback Callback - , Integer yearDayIndex, Integer userIndex - , @Nullable Integer timedInvokeTimeoutMs); - private native void setHolidaySchedule(long chipClusterPtr, DefaultClusterCallback Callback - , Integer holidayIndex, Long localStartTime, Long localEndTime, Integer operatingMode - , @Nullable Integer timedInvokeTimeoutMs); - private native void getHolidaySchedule(long chipClusterPtr, GetHolidayScheduleResponseCallback Callback - , Integer holidayIndex - , @Nullable Integer timedInvokeTimeoutMs); - private native void clearHolidaySchedule(long chipClusterPtr, DefaultClusterCallback Callback - , Integer holidayIndex - , @Nullable Integer timedInvokeTimeoutMs); - private native void setUser(long chipClusterPtr, DefaultClusterCallback Callback - , Integer operationType, Integer userIndex, @Nullable String userName, @Nullable Long userUniqueID, @Nullable Integer userStatus, @Nullable Integer userType, @Nullable Integer credentialRule - , @Nullable Integer timedInvokeTimeoutMs); - private native void getUser(long chipClusterPtr, GetUserResponseCallback Callback - , Integer userIndex - , @Nullable Integer timedInvokeTimeoutMs); - private native void clearUser(long chipClusterPtr, DefaultClusterCallback Callback - , Integer userIndex - , @Nullable Integer timedInvokeTimeoutMs); - private native void setCredential(long chipClusterPtr, SetCredentialResponseCallback Callback - , Integer operationType, ChipStructs.DoorLockClusterCredentialStruct credential, byte[] credentialData, @Nullable Integer userIndex, @Nullable Integer userStatus, @Nullable Integer userType - , @Nullable Integer timedInvokeTimeoutMs); - private native void getCredentialStatus(long chipClusterPtr, GetCredentialStatusResponseCallback Callback - , ChipStructs.DoorLockClusterCredentialStruct credential - , @Nullable Integer timedInvokeTimeoutMs); - private native void clearCredential(long chipClusterPtr, DefaultClusterCallback Callback - , @Nullable ChipStructs.DoorLockClusterCredentialStruct credential - , @Nullable Integer timedInvokeTimeoutMs); - private native void unboltDoor(long chipClusterPtr, DefaultClusterCallback Callback - , Optional PINCode - , @Nullable Integer timedInvokeTimeoutMs); - public interface GetWeekDayScheduleResponseCallback { - void onSuccess(Integer weekDayIndex, Integer userIndex, Integer status, Optional daysMask, Optional startHour, Optional startMinute, Optional endHour, Optional endMinute); - - void onError(Exception error); - } - - public interface GetYearDayScheduleResponseCallback { - void onSuccess(Integer yearDayIndex, Integer userIndex, Integer status, Optional localStartTime, Optional localEndTime); - - void onError(Exception error); - } - - public interface GetHolidayScheduleResponseCallback { - void onSuccess(Integer holidayIndex, Integer status, Optional localStartTime, Optional localEndTime, Optional operatingMode); - - void onError(Exception error); - } - - public interface GetUserResponseCallback { - void onSuccess(Integer userIndex, @Nullable String userName, @Nullable Long userUniqueID, @Nullable Integer userStatus, @Nullable Integer userType, @Nullable Integer credentialRule, @Nullable ArrayList credentials, @Nullable Integer creatorFabricIndex, @Nullable Integer lastModifiedFabricIndex, @Nullable Integer nextUserIndex); - - void onError(Exception error); - } - - public interface SetCredentialResponseCallback { - void onSuccess(Integer status, @Nullable Integer userIndex, @Nullable Integer nextCredentialIndex); - - void onError(Exception error); - } - - public interface GetCredentialStatusResponseCallback { - void onSuccess(Boolean credentialExists, @Nullable Integer userIndex, @Nullable Integer creatorFabricIndex, @Nullable Integer lastModifiedFabricIndex, @Nullable Integer nextCredentialIndex); - - void onError(Exception error); - } - - - public interface LockStateAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface DoorStateAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readLockStateAttribute( - LockStateAttributeCallback callback - ) { - readLockStateAttribute(chipClusterPtr, callback); - } - public void subscribeLockStateAttribute( - LockStateAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeLockStateAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLockTypeAttribute( - IntegerAttributeCallback callback - ) { - readLockTypeAttribute(chipClusterPtr, callback); - } - public void subscribeLockTypeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLockTypeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readActuatorEnabledAttribute( - BooleanAttributeCallback callback - ) { - readActuatorEnabledAttribute(chipClusterPtr, callback); - } - public void subscribeActuatorEnabledAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeActuatorEnabledAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDoorStateAttribute( - DoorStateAttributeCallback callback - ) { - readDoorStateAttribute(chipClusterPtr, callback); - } - public void subscribeDoorStateAttribute( - DoorStateAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeDoorStateAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDoorOpenEventsAttribute( - LongAttributeCallback callback - ) { - readDoorOpenEventsAttribute(chipClusterPtr, callback); - } - public void writeDoorOpenEventsAttribute(DefaultClusterCallback callback, Long value) { - writeDoorOpenEventsAttribute(chipClusterPtr, callback, value, null); - } - - public void writeDoorOpenEventsAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeDoorOpenEventsAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeDoorOpenEventsAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDoorOpenEventsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDoorClosedEventsAttribute( - LongAttributeCallback callback - ) { - readDoorClosedEventsAttribute(chipClusterPtr, callback); - } - public void writeDoorClosedEventsAttribute(DefaultClusterCallback callback, Long value) { - writeDoorClosedEventsAttribute(chipClusterPtr, callback, value, null); - } - - public void writeDoorClosedEventsAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeDoorClosedEventsAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeDoorClosedEventsAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDoorClosedEventsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOpenPeriodAttribute( - IntegerAttributeCallback callback - ) { - readOpenPeriodAttribute(chipClusterPtr, callback); - } - public void writeOpenPeriodAttribute(DefaultClusterCallback callback, Integer value) { - writeOpenPeriodAttribute(chipClusterPtr, callback, value, null); - } - - public void writeOpenPeriodAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeOpenPeriodAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeOpenPeriodAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeOpenPeriodAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNumberOfTotalUsersSupportedAttribute( - IntegerAttributeCallback callback - ) { - readNumberOfTotalUsersSupportedAttribute(chipClusterPtr, callback); - } - public void subscribeNumberOfTotalUsersSupportedAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeNumberOfTotalUsersSupportedAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNumberOfPINUsersSupportedAttribute( - IntegerAttributeCallback callback - ) { - readNumberOfPINUsersSupportedAttribute(chipClusterPtr, callback); - } - public void subscribeNumberOfPINUsersSupportedAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeNumberOfPINUsersSupportedAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNumberOfRFIDUsersSupportedAttribute( - IntegerAttributeCallback callback - ) { - readNumberOfRFIDUsersSupportedAttribute(chipClusterPtr, callback); - } - public void subscribeNumberOfRFIDUsersSupportedAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeNumberOfRFIDUsersSupportedAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNumberOfWeekDaySchedulesSupportedPerUserAttribute( - IntegerAttributeCallback callback - ) { - readNumberOfWeekDaySchedulesSupportedPerUserAttribute(chipClusterPtr, callback); - } - public void subscribeNumberOfWeekDaySchedulesSupportedPerUserAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeNumberOfWeekDaySchedulesSupportedPerUserAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNumberOfYearDaySchedulesSupportedPerUserAttribute( - IntegerAttributeCallback callback - ) { - readNumberOfYearDaySchedulesSupportedPerUserAttribute(chipClusterPtr, callback); - } - public void subscribeNumberOfYearDaySchedulesSupportedPerUserAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeNumberOfYearDaySchedulesSupportedPerUserAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNumberOfHolidaySchedulesSupportedAttribute( - IntegerAttributeCallback callback - ) { - readNumberOfHolidaySchedulesSupportedAttribute(chipClusterPtr, callback); - } - public void subscribeNumberOfHolidaySchedulesSupportedAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeNumberOfHolidaySchedulesSupportedAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxPINCodeLengthAttribute( - IntegerAttributeCallback callback - ) { - readMaxPINCodeLengthAttribute(chipClusterPtr, callback); - } - public void subscribeMaxPINCodeLengthAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMaxPINCodeLengthAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinPINCodeLengthAttribute( - IntegerAttributeCallback callback - ) { - readMinPINCodeLengthAttribute(chipClusterPtr, callback); - } - public void subscribeMinPINCodeLengthAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMinPINCodeLengthAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxRFIDCodeLengthAttribute( - IntegerAttributeCallback callback - ) { - readMaxRFIDCodeLengthAttribute(chipClusterPtr, callback); - } - public void subscribeMaxRFIDCodeLengthAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMaxRFIDCodeLengthAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinRFIDCodeLengthAttribute( - IntegerAttributeCallback callback - ) { - readMinRFIDCodeLengthAttribute(chipClusterPtr, callback); - } - public void subscribeMinRFIDCodeLengthAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMinRFIDCodeLengthAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCredentialRulesSupportAttribute( - IntegerAttributeCallback callback - ) { - readCredentialRulesSupportAttribute(chipClusterPtr, callback); - } - public void subscribeCredentialRulesSupportAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCredentialRulesSupportAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNumberOfCredentialsSupportedPerUserAttribute( - IntegerAttributeCallback callback - ) { - readNumberOfCredentialsSupportedPerUserAttribute(chipClusterPtr, callback); - } - public void subscribeNumberOfCredentialsSupportedPerUserAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeNumberOfCredentialsSupportedPerUserAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLanguageAttribute( - CharStringAttributeCallback callback - ) { - readLanguageAttribute(chipClusterPtr, callback); - } - public void writeLanguageAttribute(DefaultClusterCallback callback, String value) { - writeLanguageAttribute(chipClusterPtr, callback, value, null); - } - - public void writeLanguageAttribute(DefaultClusterCallback callback, String value, int timedWriteTimeoutMs) { - writeLanguageAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeLanguageAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLanguageAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLEDSettingsAttribute( - IntegerAttributeCallback callback - ) { - readLEDSettingsAttribute(chipClusterPtr, callback); - } - public void writeLEDSettingsAttribute(DefaultClusterCallback callback, Integer value) { - writeLEDSettingsAttribute(chipClusterPtr, callback, value, null); - } - - public void writeLEDSettingsAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeLEDSettingsAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeLEDSettingsAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLEDSettingsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAutoRelockTimeAttribute( - LongAttributeCallback callback - ) { - readAutoRelockTimeAttribute(chipClusterPtr, callback); - } - public void writeAutoRelockTimeAttribute(DefaultClusterCallback callback, Long value) { - writeAutoRelockTimeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeAutoRelockTimeAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeAutoRelockTimeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeAutoRelockTimeAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAutoRelockTimeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSoundVolumeAttribute( - IntegerAttributeCallback callback - ) { - readSoundVolumeAttribute(chipClusterPtr, callback); - } - public void writeSoundVolumeAttribute(DefaultClusterCallback callback, Integer value) { - writeSoundVolumeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeSoundVolumeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeSoundVolumeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeSoundVolumeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSoundVolumeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOperatingModeAttribute( - IntegerAttributeCallback callback - ) { - readOperatingModeAttribute(chipClusterPtr, callback); - } - public void writeOperatingModeAttribute(DefaultClusterCallback callback, Integer value) { - writeOperatingModeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeOperatingModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeOperatingModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeOperatingModeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeOperatingModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSupportedOperatingModesAttribute( - IntegerAttributeCallback callback - ) { - readSupportedOperatingModesAttribute(chipClusterPtr, callback); - } - public void subscribeSupportedOperatingModesAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSupportedOperatingModesAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDefaultConfigurationRegisterAttribute( - IntegerAttributeCallback callback - ) { - readDefaultConfigurationRegisterAttribute(chipClusterPtr, callback); - } - public void subscribeDefaultConfigurationRegisterAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDefaultConfigurationRegisterAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEnableLocalProgrammingAttribute( - BooleanAttributeCallback callback - ) { - readEnableLocalProgrammingAttribute(chipClusterPtr, callback); - } - public void writeEnableLocalProgrammingAttribute(DefaultClusterCallback callback, Boolean value) { - writeEnableLocalProgrammingAttribute(chipClusterPtr, callback, value, null); - } - - public void writeEnableLocalProgrammingAttribute(DefaultClusterCallback callback, Boolean value, int timedWriteTimeoutMs) { - writeEnableLocalProgrammingAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeEnableLocalProgrammingAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeEnableLocalProgrammingAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEnableOneTouchLockingAttribute( - BooleanAttributeCallback callback - ) { - readEnableOneTouchLockingAttribute(chipClusterPtr, callback); - } - public void writeEnableOneTouchLockingAttribute(DefaultClusterCallback callback, Boolean value) { - writeEnableOneTouchLockingAttribute(chipClusterPtr, callback, value, null); - } - - public void writeEnableOneTouchLockingAttribute(DefaultClusterCallback callback, Boolean value, int timedWriteTimeoutMs) { - writeEnableOneTouchLockingAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeEnableOneTouchLockingAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeEnableOneTouchLockingAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEnableInsideStatusLEDAttribute( - BooleanAttributeCallback callback - ) { - readEnableInsideStatusLEDAttribute(chipClusterPtr, callback); - } - public void writeEnableInsideStatusLEDAttribute(DefaultClusterCallback callback, Boolean value) { - writeEnableInsideStatusLEDAttribute(chipClusterPtr, callback, value, null); - } - - public void writeEnableInsideStatusLEDAttribute(DefaultClusterCallback callback, Boolean value, int timedWriteTimeoutMs) { - writeEnableInsideStatusLEDAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeEnableInsideStatusLEDAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeEnableInsideStatusLEDAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEnablePrivacyModeButtonAttribute( - BooleanAttributeCallback callback - ) { - readEnablePrivacyModeButtonAttribute(chipClusterPtr, callback); - } - public void writeEnablePrivacyModeButtonAttribute(DefaultClusterCallback callback, Boolean value) { - writeEnablePrivacyModeButtonAttribute(chipClusterPtr, callback, value, null); - } - - public void writeEnablePrivacyModeButtonAttribute(DefaultClusterCallback callback, Boolean value, int timedWriteTimeoutMs) { - writeEnablePrivacyModeButtonAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeEnablePrivacyModeButtonAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeEnablePrivacyModeButtonAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLocalProgrammingFeaturesAttribute( - IntegerAttributeCallback callback - ) { - readLocalProgrammingFeaturesAttribute(chipClusterPtr, callback); - } - public void writeLocalProgrammingFeaturesAttribute(DefaultClusterCallback callback, Integer value) { - writeLocalProgrammingFeaturesAttribute(chipClusterPtr, callback, value, null); - } - - public void writeLocalProgrammingFeaturesAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeLocalProgrammingFeaturesAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeLocalProgrammingFeaturesAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLocalProgrammingFeaturesAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readWrongCodeEntryLimitAttribute( - IntegerAttributeCallback callback - ) { - readWrongCodeEntryLimitAttribute(chipClusterPtr, callback); - } - public void writeWrongCodeEntryLimitAttribute(DefaultClusterCallback callback, Integer value) { - writeWrongCodeEntryLimitAttribute(chipClusterPtr, callback, value, null); - } - - public void writeWrongCodeEntryLimitAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeWrongCodeEntryLimitAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeWrongCodeEntryLimitAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeWrongCodeEntryLimitAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUserCodeTemporaryDisableTimeAttribute( - IntegerAttributeCallback callback - ) { - readUserCodeTemporaryDisableTimeAttribute(chipClusterPtr, callback); - } - public void writeUserCodeTemporaryDisableTimeAttribute(DefaultClusterCallback callback, Integer value) { - writeUserCodeTemporaryDisableTimeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeUserCodeTemporaryDisableTimeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeUserCodeTemporaryDisableTimeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeUserCodeTemporaryDisableTimeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeUserCodeTemporaryDisableTimeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSendPINOverTheAirAttribute( - BooleanAttributeCallback callback - ) { - readSendPINOverTheAirAttribute(chipClusterPtr, callback); - } - public void writeSendPINOverTheAirAttribute(DefaultClusterCallback callback, Boolean value) { - writeSendPINOverTheAirAttribute(chipClusterPtr, callback, value, null); - } - - public void writeSendPINOverTheAirAttribute(DefaultClusterCallback callback, Boolean value, int timedWriteTimeoutMs) { - writeSendPINOverTheAirAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeSendPINOverTheAirAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSendPINOverTheAirAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRequirePINforRemoteOperationAttribute( - BooleanAttributeCallback callback - ) { - readRequirePINforRemoteOperationAttribute(chipClusterPtr, callback); - } - public void writeRequirePINforRemoteOperationAttribute(DefaultClusterCallback callback, Boolean value) { - writeRequirePINforRemoteOperationAttribute(chipClusterPtr, callback, value, null); - } - - public void writeRequirePINforRemoteOperationAttribute(DefaultClusterCallback callback, Boolean value, int timedWriteTimeoutMs) { - writeRequirePINforRemoteOperationAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeRequirePINforRemoteOperationAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRequirePINforRemoteOperationAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readExpiringUserTimeoutAttribute( - IntegerAttributeCallback callback - ) { - readExpiringUserTimeoutAttribute(chipClusterPtr, callback); - } - public void writeExpiringUserTimeoutAttribute(DefaultClusterCallback callback, Integer value) { - writeExpiringUserTimeoutAttribute(chipClusterPtr, callback, value, null); - } - - public void writeExpiringUserTimeoutAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeExpiringUserTimeoutAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeExpiringUserTimeoutAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeExpiringUserTimeoutAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readLockStateAttribute(long chipClusterPtr, - LockStateAttributeCallback callback - ); - private native void subscribeLockStateAttribute(long chipClusterPtr, - LockStateAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readLockTypeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeLockTypeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readActuatorEnabledAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - private native void subscribeActuatorEnabledAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDoorStateAttribute(long chipClusterPtr, - DoorStateAttributeCallback callback - ); - private native void subscribeDoorStateAttribute(long chipClusterPtr, - DoorStateAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readDoorOpenEventsAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - - private native void writeDoorOpenEventsAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeDoorOpenEventsAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDoorClosedEventsAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - - private native void writeDoorClosedEventsAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeDoorClosedEventsAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readOpenPeriodAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeOpenPeriodAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeOpenPeriodAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readNumberOfTotalUsersSupportedAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeNumberOfTotalUsersSupportedAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readNumberOfPINUsersSupportedAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeNumberOfPINUsersSupportedAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readNumberOfRFIDUsersSupportedAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeNumberOfRFIDUsersSupportedAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readNumberOfWeekDaySchedulesSupportedPerUserAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeNumberOfWeekDaySchedulesSupportedPerUserAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readNumberOfYearDaySchedulesSupportedPerUserAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeNumberOfYearDaySchedulesSupportedPerUserAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readNumberOfHolidaySchedulesSupportedAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeNumberOfHolidaySchedulesSupportedAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMaxPINCodeLengthAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMaxPINCodeLengthAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMinPINCodeLengthAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMinPINCodeLengthAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMaxRFIDCodeLengthAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMaxRFIDCodeLengthAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMinRFIDCodeLengthAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMinRFIDCodeLengthAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readCredentialRulesSupportAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeCredentialRulesSupportAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readNumberOfCredentialsSupportedPerUserAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeNumberOfCredentialsSupportedPerUserAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLanguageAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - - private native void writeLanguageAttribute(long chipClusterPtr, DefaultClusterCallback callback, String value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeLanguageAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLEDSettingsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeLEDSettingsAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeLEDSettingsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAutoRelockTimeAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - - private native void writeAutoRelockTimeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeAutoRelockTimeAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSoundVolumeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeSoundVolumeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeSoundVolumeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readOperatingModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeOperatingModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeOperatingModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSupportedOperatingModesAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeSupportedOperatingModesAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDefaultConfigurationRegisterAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeDefaultConfigurationRegisterAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readEnableLocalProgrammingAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - - private native void writeEnableLocalProgrammingAttribute(long chipClusterPtr, DefaultClusterCallback callback, Boolean value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeEnableLocalProgrammingAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readEnableOneTouchLockingAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - - private native void writeEnableOneTouchLockingAttribute(long chipClusterPtr, DefaultClusterCallback callback, Boolean value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeEnableOneTouchLockingAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readEnableInsideStatusLEDAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - - private native void writeEnableInsideStatusLEDAttribute(long chipClusterPtr, DefaultClusterCallback callback, Boolean value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeEnableInsideStatusLEDAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readEnablePrivacyModeButtonAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - - private native void writeEnablePrivacyModeButtonAttribute(long chipClusterPtr, DefaultClusterCallback callback, Boolean value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeEnablePrivacyModeButtonAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLocalProgrammingFeaturesAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeLocalProgrammingFeaturesAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeLocalProgrammingFeaturesAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readWrongCodeEntryLimitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeWrongCodeEntryLimitAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeWrongCodeEntryLimitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readUserCodeTemporaryDisableTimeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeUserCodeTemporaryDisableTimeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeUserCodeTemporaryDisableTimeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSendPINOverTheAirAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - - private native void writeSendPINOverTheAirAttribute(long chipClusterPtr, DefaultClusterCallback callback, Boolean value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeSendPINOverTheAirAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRequirePINforRemoteOperationAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - - private native void writeRequirePINforRemoteOperationAttribute(long chipClusterPtr, DefaultClusterCallback callback, Boolean value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeRequirePINforRemoteOperationAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readExpiringUserTimeoutAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeExpiringUserTimeoutAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeExpiringUserTimeoutAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class WindowCoveringCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000102L; - - public WindowCoveringCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void upOrOpen(DefaultClusterCallback callback - ) { - upOrOpen(chipClusterPtr, callback, null); - } - - public void upOrOpen(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - upOrOpen(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void downOrClose(DefaultClusterCallback callback - ) { - downOrClose(chipClusterPtr, callback, null); - } - - public void downOrClose(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - downOrClose(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void stopMotion(DefaultClusterCallback callback - ) { - stopMotion(chipClusterPtr, callback, null); - } - - public void stopMotion(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - stopMotion(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void goToLiftValue(DefaultClusterCallback callback - , Integer liftValue) { - goToLiftValue(chipClusterPtr, callback, liftValue, null); - } - - public void goToLiftValue(DefaultClusterCallback callback - , Integer liftValue - , int timedInvokeTimeoutMs) { - goToLiftValue(chipClusterPtr, callback, liftValue, timedInvokeTimeoutMs); - } - - public void goToLiftPercentage(DefaultClusterCallback callback - , Integer liftPercent100thsValue) { - goToLiftPercentage(chipClusterPtr, callback, liftPercent100thsValue, null); - } - - public void goToLiftPercentage(DefaultClusterCallback callback - , Integer liftPercent100thsValue - , int timedInvokeTimeoutMs) { - goToLiftPercentage(chipClusterPtr, callback, liftPercent100thsValue, timedInvokeTimeoutMs); - } - - public void goToTiltValue(DefaultClusterCallback callback - , Integer tiltValue) { - goToTiltValue(chipClusterPtr, callback, tiltValue, null); - } - - public void goToTiltValue(DefaultClusterCallback callback - , Integer tiltValue - , int timedInvokeTimeoutMs) { - goToTiltValue(chipClusterPtr, callback, tiltValue, timedInvokeTimeoutMs); - } - - public void goToTiltPercentage(DefaultClusterCallback callback - , Integer tiltPercent100thsValue) { - goToTiltPercentage(chipClusterPtr, callback, tiltPercent100thsValue, null); - } - - public void goToTiltPercentage(DefaultClusterCallback callback - , Integer tiltPercent100thsValue - , int timedInvokeTimeoutMs) { - goToTiltPercentage(chipClusterPtr, callback, tiltPercent100thsValue, timedInvokeTimeoutMs); - } - private native void upOrOpen(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void downOrClose(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void stopMotion(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void goToLiftValue(long chipClusterPtr, DefaultClusterCallback Callback - , Integer liftValue - , @Nullable Integer timedInvokeTimeoutMs); - private native void goToLiftPercentage(long chipClusterPtr, DefaultClusterCallback Callback - , Integer liftPercent100thsValue - , @Nullable Integer timedInvokeTimeoutMs); - private native void goToTiltValue(long chipClusterPtr, DefaultClusterCallback Callback - , Integer tiltValue - , @Nullable Integer timedInvokeTimeoutMs); - private native void goToTiltPercentage(long chipClusterPtr, DefaultClusterCallback Callback - , Integer tiltPercent100thsValue - , @Nullable Integer timedInvokeTimeoutMs); - - public interface CurrentPositionLiftAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface CurrentPositionTiltAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface CurrentPositionLiftPercentageAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface CurrentPositionTiltPercentageAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface TargetPositionLiftPercent100thsAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface TargetPositionTiltPercent100thsAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface CurrentPositionLiftPercent100thsAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface CurrentPositionTiltPercent100thsAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readTypeAttribute( - IntegerAttributeCallback callback - ) { - readTypeAttribute(chipClusterPtr, callback); - } - public void subscribeTypeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTypeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPhysicalClosedLimitLiftAttribute( - IntegerAttributeCallback callback - ) { - readPhysicalClosedLimitLiftAttribute(chipClusterPtr, callback); - } - public void subscribePhysicalClosedLimitLiftAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePhysicalClosedLimitLiftAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPhysicalClosedLimitTiltAttribute( - IntegerAttributeCallback callback - ) { - readPhysicalClosedLimitTiltAttribute(chipClusterPtr, callback); - } - public void subscribePhysicalClosedLimitTiltAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePhysicalClosedLimitTiltAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentPositionLiftAttribute( - CurrentPositionLiftAttributeCallback callback - ) { - readCurrentPositionLiftAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentPositionLiftAttribute( - CurrentPositionLiftAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeCurrentPositionLiftAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentPositionTiltAttribute( - CurrentPositionTiltAttributeCallback callback - ) { - readCurrentPositionTiltAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentPositionTiltAttribute( - CurrentPositionTiltAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeCurrentPositionTiltAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNumberOfActuationsLiftAttribute( - IntegerAttributeCallback callback - ) { - readNumberOfActuationsLiftAttribute(chipClusterPtr, callback); - } - public void subscribeNumberOfActuationsLiftAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeNumberOfActuationsLiftAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNumberOfActuationsTiltAttribute( - IntegerAttributeCallback callback - ) { - readNumberOfActuationsTiltAttribute(chipClusterPtr, callback); - } - public void subscribeNumberOfActuationsTiltAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeNumberOfActuationsTiltAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readConfigStatusAttribute( - IntegerAttributeCallback callback - ) { - readConfigStatusAttribute(chipClusterPtr, callback); - } - public void subscribeConfigStatusAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeConfigStatusAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentPositionLiftPercentageAttribute( - CurrentPositionLiftPercentageAttributeCallback callback - ) { - readCurrentPositionLiftPercentageAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentPositionLiftPercentageAttribute( - CurrentPositionLiftPercentageAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeCurrentPositionLiftPercentageAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentPositionTiltPercentageAttribute( - CurrentPositionTiltPercentageAttributeCallback callback - ) { - readCurrentPositionTiltPercentageAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentPositionTiltPercentageAttribute( - CurrentPositionTiltPercentageAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeCurrentPositionTiltPercentageAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOperationalStatusAttribute( - IntegerAttributeCallback callback - ) { - readOperationalStatusAttribute(chipClusterPtr, callback); - } - public void subscribeOperationalStatusAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeOperationalStatusAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTargetPositionLiftPercent100thsAttribute( - TargetPositionLiftPercent100thsAttributeCallback callback - ) { - readTargetPositionLiftPercent100thsAttribute(chipClusterPtr, callback); - } - public void subscribeTargetPositionLiftPercent100thsAttribute( - TargetPositionLiftPercent100thsAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeTargetPositionLiftPercent100thsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTargetPositionTiltPercent100thsAttribute( - TargetPositionTiltPercent100thsAttributeCallback callback - ) { - readTargetPositionTiltPercent100thsAttribute(chipClusterPtr, callback); - } - public void subscribeTargetPositionTiltPercent100thsAttribute( - TargetPositionTiltPercent100thsAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeTargetPositionTiltPercent100thsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEndProductTypeAttribute( - IntegerAttributeCallback callback - ) { - readEndProductTypeAttribute(chipClusterPtr, callback); - } - public void subscribeEndProductTypeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeEndProductTypeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentPositionLiftPercent100thsAttribute( - CurrentPositionLiftPercent100thsAttributeCallback callback - ) { - readCurrentPositionLiftPercent100thsAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentPositionLiftPercent100thsAttribute( - CurrentPositionLiftPercent100thsAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeCurrentPositionLiftPercent100thsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentPositionTiltPercent100thsAttribute( - CurrentPositionTiltPercent100thsAttributeCallback callback - ) { - readCurrentPositionTiltPercent100thsAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentPositionTiltPercent100thsAttribute( - CurrentPositionTiltPercent100thsAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeCurrentPositionTiltPercent100thsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInstalledOpenLimitLiftAttribute( - IntegerAttributeCallback callback - ) { - readInstalledOpenLimitLiftAttribute(chipClusterPtr, callback); - } - public void subscribeInstalledOpenLimitLiftAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInstalledOpenLimitLiftAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInstalledClosedLimitLiftAttribute( - IntegerAttributeCallback callback - ) { - readInstalledClosedLimitLiftAttribute(chipClusterPtr, callback); - } - public void subscribeInstalledClosedLimitLiftAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInstalledClosedLimitLiftAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInstalledOpenLimitTiltAttribute( - IntegerAttributeCallback callback - ) { - readInstalledOpenLimitTiltAttribute(chipClusterPtr, callback); - } - public void subscribeInstalledOpenLimitTiltAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInstalledOpenLimitTiltAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInstalledClosedLimitTiltAttribute( - IntegerAttributeCallback callback - ) { - readInstalledClosedLimitTiltAttribute(chipClusterPtr, callback); - } - public void subscribeInstalledClosedLimitTiltAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInstalledClosedLimitTiltAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readModeAttribute( - IntegerAttributeCallback callback - ) { - readModeAttribute(chipClusterPtr, callback); - } - public void writeModeAttribute(DefaultClusterCallback callback, Integer value) { - writeModeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeModeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSafetyStatusAttribute( - IntegerAttributeCallback callback - ) { - readSafetyStatusAttribute(chipClusterPtr, callback); - } - public void subscribeSafetyStatusAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSafetyStatusAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readTypeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeTypeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPhysicalClosedLimitLiftAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePhysicalClosedLimitLiftAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPhysicalClosedLimitTiltAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePhysicalClosedLimitTiltAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readCurrentPositionLiftAttribute(long chipClusterPtr, - CurrentPositionLiftAttributeCallback callback - ); - private native void subscribeCurrentPositionLiftAttribute(long chipClusterPtr, - CurrentPositionLiftAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readCurrentPositionTiltAttribute(long chipClusterPtr, - CurrentPositionTiltAttributeCallback callback - ); - private native void subscribeCurrentPositionTiltAttribute(long chipClusterPtr, - CurrentPositionTiltAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNumberOfActuationsLiftAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeNumberOfActuationsLiftAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readNumberOfActuationsTiltAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeNumberOfActuationsTiltAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readConfigStatusAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeConfigStatusAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readCurrentPositionLiftPercentageAttribute(long chipClusterPtr, - CurrentPositionLiftPercentageAttributeCallback callback - ); - private native void subscribeCurrentPositionLiftPercentageAttribute(long chipClusterPtr, - CurrentPositionLiftPercentageAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readCurrentPositionTiltPercentageAttribute(long chipClusterPtr, - CurrentPositionTiltPercentageAttributeCallback callback - ); - private native void subscribeCurrentPositionTiltPercentageAttribute(long chipClusterPtr, - CurrentPositionTiltPercentageAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readOperationalStatusAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeOperationalStatusAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTargetPositionLiftPercent100thsAttribute(long chipClusterPtr, - TargetPositionLiftPercent100thsAttributeCallback callback - ); - private native void subscribeTargetPositionLiftPercent100thsAttribute(long chipClusterPtr, - TargetPositionLiftPercent100thsAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readTargetPositionTiltPercent100thsAttribute(long chipClusterPtr, - TargetPositionTiltPercent100thsAttributeCallback callback - ); - private native void subscribeTargetPositionTiltPercent100thsAttribute(long chipClusterPtr, - TargetPositionTiltPercent100thsAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEndProductTypeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeEndProductTypeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readCurrentPositionLiftPercent100thsAttribute(long chipClusterPtr, - CurrentPositionLiftPercent100thsAttributeCallback callback - ); - private native void subscribeCurrentPositionLiftPercent100thsAttribute(long chipClusterPtr, - CurrentPositionLiftPercent100thsAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readCurrentPositionTiltPercent100thsAttribute(long chipClusterPtr, - CurrentPositionTiltPercent100thsAttributeCallback callback - ); - private native void subscribeCurrentPositionTiltPercent100thsAttribute(long chipClusterPtr, - CurrentPositionTiltPercent100thsAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readInstalledOpenLimitLiftAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeInstalledOpenLimitLiftAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInstalledClosedLimitLiftAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeInstalledClosedLimitLiftAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInstalledOpenLimitTiltAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeInstalledOpenLimitTiltAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInstalledClosedLimitTiltAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeInstalledClosedLimitTiltAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSafetyStatusAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeSafetyStatusAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class BarrierControlCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000103L; - - public BarrierControlCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void barrierControlGoToPercent(DefaultClusterCallback callback - , Integer percentOpen) { - barrierControlGoToPercent(chipClusterPtr, callback, percentOpen, null); - } - - public void barrierControlGoToPercent(DefaultClusterCallback callback - , Integer percentOpen - , int timedInvokeTimeoutMs) { - barrierControlGoToPercent(chipClusterPtr, callback, percentOpen, timedInvokeTimeoutMs); - } - - public void barrierControlStop(DefaultClusterCallback callback - ) { - barrierControlStop(chipClusterPtr, callback, null); - } - - public void barrierControlStop(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - barrierControlStop(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - private native void barrierControlGoToPercent(long chipClusterPtr, DefaultClusterCallback Callback - , Integer percentOpen - , @Nullable Integer timedInvokeTimeoutMs); - private native void barrierControlStop(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readBarrierMovingStateAttribute( - IntegerAttributeCallback callback - ) { - readBarrierMovingStateAttribute(chipClusterPtr, callback); - } - public void subscribeBarrierMovingStateAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBarrierMovingStateAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBarrierSafetyStatusAttribute( - IntegerAttributeCallback callback - ) { - readBarrierSafetyStatusAttribute(chipClusterPtr, callback); - } - public void subscribeBarrierSafetyStatusAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBarrierSafetyStatusAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBarrierCapabilitiesAttribute( - IntegerAttributeCallback callback - ) { - readBarrierCapabilitiesAttribute(chipClusterPtr, callback); - } - public void subscribeBarrierCapabilitiesAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBarrierCapabilitiesAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBarrierOpenEventsAttribute( - IntegerAttributeCallback callback - ) { - readBarrierOpenEventsAttribute(chipClusterPtr, callback); - } - public void writeBarrierOpenEventsAttribute(DefaultClusterCallback callback, Integer value) { - writeBarrierOpenEventsAttribute(chipClusterPtr, callback, value, null); - } - - public void writeBarrierOpenEventsAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeBarrierOpenEventsAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeBarrierOpenEventsAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBarrierOpenEventsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBarrierCloseEventsAttribute( - IntegerAttributeCallback callback - ) { - readBarrierCloseEventsAttribute(chipClusterPtr, callback); - } - public void writeBarrierCloseEventsAttribute(DefaultClusterCallback callback, Integer value) { - writeBarrierCloseEventsAttribute(chipClusterPtr, callback, value, null); - } - - public void writeBarrierCloseEventsAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeBarrierCloseEventsAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeBarrierCloseEventsAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBarrierCloseEventsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBarrierCommandOpenEventsAttribute( - IntegerAttributeCallback callback - ) { - readBarrierCommandOpenEventsAttribute(chipClusterPtr, callback); - } - public void writeBarrierCommandOpenEventsAttribute(DefaultClusterCallback callback, Integer value) { - writeBarrierCommandOpenEventsAttribute(chipClusterPtr, callback, value, null); - } - - public void writeBarrierCommandOpenEventsAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeBarrierCommandOpenEventsAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeBarrierCommandOpenEventsAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBarrierCommandOpenEventsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBarrierCommandCloseEventsAttribute( - IntegerAttributeCallback callback - ) { - readBarrierCommandCloseEventsAttribute(chipClusterPtr, callback); - } - public void writeBarrierCommandCloseEventsAttribute(DefaultClusterCallback callback, Integer value) { - writeBarrierCommandCloseEventsAttribute(chipClusterPtr, callback, value, null); - } - - public void writeBarrierCommandCloseEventsAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeBarrierCommandCloseEventsAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeBarrierCommandCloseEventsAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBarrierCommandCloseEventsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBarrierOpenPeriodAttribute( - IntegerAttributeCallback callback - ) { - readBarrierOpenPeriodAttribute(chipClusterPtr, callback); - } - public void writeBarrierOpenPeriodAttribute(DefaultClusterCallback callback, Integer value) { - writeBarrierOpenPeriodAttribute(chipClusterPtr, callback, value, null); - } - - public void writeBarrierOpenPeriodAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeBarrierOpenPeriodAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeBarrierOpenPeriodAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBarrierOpenPeriodAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBarrierClosePeriodAttribute( - IntegerAttributeCallback callback - ) { - readBarrierClosePeriodAttribute(chipClusterPtr, callback); - } - public void writeBarrierClosePeriodAttribute(DefaultClusterCallback callback, Integer value) { - writeBarrierClosePeriodAttribute(chipClusterPtr, callback, value, null); - } - - public void writeBarrierClosePeriodAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeBarrierClosePeriodAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeBarrierClosePeriodAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBarrierClosePeriodAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBarrierPositionAttribute( - IntegerAttributeCallback callback - ) { - readBarrierPositionAttribute(chipClusterPtr, callback); - } - public void subscribeBarrierPositionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBarrierPositionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readBarrierMovingStateAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeBarrierMovingStateAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBarrierSafetyStatusAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeBarrierSafetyStatusAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBarrierCapabilitiesAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeBarrierCapabilitiesAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBarrierOpenEventsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeBarrierOpenEventsAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeBarrierOpenEventsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBarrierCloseEventsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeBarrierCloseEventsAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeBarrierCloseEventsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBarrierCommandOpenEventsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeBarrierCommandOpenEventsAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeBarrierCommandOpenEventsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBarrierCommandCloseEventsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeBarrierCommandCloseEventsAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeBarrierCommandCloseEventsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBarrierOpenPeriodAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeBarrierOpenPeriodAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeBarrierOpenPeriodAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBarrierClosePeriodAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeBarrierClosePeriodAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeBarrierClosePeriodAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBarrierPositionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeBarrierPositionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class PumpConfigurationAndControlCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000200L; - - public PumpConfigurationAndControlCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface MaxPressureAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MaxSpeedAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MaxFlowAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MinConstPressureAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MaxConstPressureAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MinCompPressureAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MaxCompPressureAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MinConstSpeedAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MaxConstSpeedAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MinConstFlowAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MaxConstFlowAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MinConstTempAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MaxConstTempAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface CapacityAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface SpeedAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface LifetimeRunningHoursAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface PowerAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface LifetimeEnergyConsumedAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readMaxPressureAttribute( - MaxPressureAttributeCallback callback - ) { - readMaxPressureAttribute(chipClusterPtr, callback); - } - public void subscribeMaxPressureAttribute( - MaxPressureAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMaxPressureAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxSpeedAttribute( - MaxSpeedAttributeCallback callback - ) { - readMaxSpeedAttribute(chipClusterPtr, callback); - } - public void subscribeMaxSpeedAttribute( - MaxSpeedAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMaxSpeedAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxFlowAttribute( - MaxFlowAttributeCallback callback - ) { - readMaxFlowAttribute(chipClusterPtr, callback); - } - public void subscribeMaxFlowAttribute( - MaxFlowAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMaxFlowAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinConstPressureAttribute( - MinConstPressureAttributeCallback callback - ) { - readMinConstPressureAttribute(chipClusterPtr, callback); - } - public void subscribeMinConstPressureAttribute( - MinConstPressureAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMinConstPressureAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxConstPressureAttribute( - MaxConstPressureAttributeCallback callback - ) { - readMaxConstPressureAttribute(chipClusterPtr, callback); - } - public void subscribeMaxConstPressureAttribute( - MaxConstPressureAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMaxConstPressureAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinCompPressureAttribute( - MinCompPressureAttributeCallback callback - ) { - readMinCompPressureAttribute(chipClusterPtr, callback); - } - public void subscribeMinCompPressureAttribute( - MinCompPressureAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMinCompPressureAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxCompPressureAttribute( - MaxCompPressureAttributeCallback callback - ) { - readMaxCompPressureAttribute(chipClusterPtr, callback); - } - public void subscribeMaxCompPressureAttribute( - MaxCompPressureAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMaxCompPressureAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinConstSpeedAttribute( - MinConstSpeedAttributeCallback callback - ) { - readMinConstSpeedAttribute(chipClusterPtr, callback); - } - public void subscribeMinConstSpeedAttribute( - MinConstSpeedAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMinConstSpeedAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxConstSpeedAttribute( - MaxConstSpeedAttributeCallback callback - ) { - readMaxConstSpeedAttribute(chipClusterPtr, callback); - } - public void subscribeMaxConstSpeedAttribute( - MaxConstSpeedAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMaxConstSpeedAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinConstFlowAttribute( - MinConstFlowAttributeCallback callback - ) { - readMinConstFlowAttribute(chipClusterPtr, callback); - } - public void subscribeMinConstFlowAttribute( - MinConstFlowAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMinConstFlowAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxConstFlowAttribute( - MaxConstFlowAttributeCallback callback - ) { - readMaxConstFlowAttribute(chipClusterPtr, callback); - } - public void subscribeMaxConstFlowAttribute( - MaxConstFlowAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMaxConstFlowAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinConstTempAttribute( - MinConstTempAttributeCallback callback - ) { - readMinConstTempAttribute(chipClusterPtr, callback); - } - public void subscribeMinConstTempAttribute( - MinConstTempAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMinConstTempAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxConstTempAttribute( - MaxConstTempAttributeCallback callback - ) { - readMaxConstTempAttribute(chipClusterPtr, callback); - } - public void subscribeMaxConstTempAttribute( - MaxConstTempAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMaxConstTempAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPumpStatusAttribute( - IntegerAttributeCallback callback - ) { - readPumpStatusAttribute(chipClusterPtr, callback); - } - public void subscribePumpStatusAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePumpStatusAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEffectiveOperationModeAttribute( - IntegerAttributeCallback callback - ) { - readEffectiveOperationModeAttribute(chipClusterPtr, callback); - } - public void subscribeEffectiveOperationModeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeEffectiveOperationModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEffectiveControlModeAttribute( - IntegerAttributeCallback callback - ) { - readEffectiveControlModeAttribute(chipClusterPtr, callback); - } - public void subscribeEffectiveControlModeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeEffectiveControlModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCapacityAttribute( - CapacityAttributeCallback callback - ) { - readCapacityAttribute(chipClusterPtr, callback); - } - public void subscribeCapacityAttribute( - CapacityAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeCapacityAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSpeedAttribute( - SpeedAttributeCallback callback - ) { - readSpeedAttribute(chipClusterPtr, callback); - } - public void subscribeSpeedAttribute( - SpeedAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeSpeedAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLifetimeRunningHoursAttribute( - LifetimeRunningHoursAttributeCallback callback - ) { - readLifetimeRunningHoursAttribute(chipClusterPtr, callback); - } - public void writeLifetimeRunningHoursAttribute(DefaultClusterCallback callback, Long value) { - writeLifetimeRunningHoursAttribute(chipClusterPtr, callback, value, null); - } - - public void writeLifetimeRunningHoursAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeLifetimeRunningHoursAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeLifetimeRunningHoursAttribute( - LifetimeRunningHoursAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeLifetimeRunningHoursAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPowerAttribute( - PowerAttributeCallback callback - ) { - readPowerAttribute(chipClusterPtr, callback); - } - public void subscribePowerAttribute( - PowerAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePowerAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLifetimeEnergyConsumedAttribute( - LifetimeEnergyConsumedAttributeCallback callback - ) { - readLifetimeEnergyConsumedAttribute(chipClusterPtr, callback); - } - public void writeLifetimeEnergyConsumedAttribute(DefaultClusterCallback callback, Long value) { - writeLifetimeEnergyConsumedAttribute(chipClusterPtr, callback, value, null); - } - - public void writeLifetimeEnergyConsumedAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeLifetimeEnergyConsumedAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeLifetimeEnergyConsumedAttribute( - LifetimeEnergyConsumedAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeLifetimeEnergyConsumedAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOperationModeAttribute( - IntegerAttributeCallback callback - ) { - readOperationModeAttribute(chipClusterPtr, callback); - } - public void writeOperationModeAttribute(DefaultClusterCallback callback, Integer value) { - writeOperationModeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeOperationModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeOperationModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeOperationModeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeOperationModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readControlModeAttribute( - IntegerAttributeCallback callback - ) { - readControlModeAttribute(chipClusterPtr, callback); - } - public void writeControlModeAttribute(DefaultClusterCallback callback, Integer value) { - writeControlModeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeControlModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeControlModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeControlModeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeControlModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readMaxPressureAttribute(long chipClusterPtr, - MaxPressureAttributeCallback callback - ); - private native void subscribeMaxPressureAttribute(long chipClusterPtr, - MaxPressureAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMaxSpeedAttribute(long chipClusterPtr, - MaxSpeedAttributeCallback callback - ); - private native void subscribeMaxSpeedAttribute(long chipClusterPtr, - MaxSpeedAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMaxFlowAttribute(long chipClusterPtr, - MaxFlowAttributeCallback callback - ); - private native void subscribeMaxFlowAttribute(long chipClusterPtr, - MaxFlowAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMinConstPressureAttribute(long chipClusterPtr, - MinConstPressureAttributeCallback callback - ); - private native void subscribeMinConstPressureAttribute(long chipClusterPtr, - MinConstPressureAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMaxConstPressureAttribute(long chipClusterPtr, - MaxConstPressureAttributeCallback callback - ); - private native void subscribeMaxConstPressureAttribute(long chipClusterPtr, - MaxConstPressureAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMinCompPressureAttribute(long chipClusterPtr, - MinCompPressureAttributeCallback callback - ); - private native void subscribeMinCompPressureAttribute(long chipClusterPtr, - MinCompPressureAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMaxCompPressureAttribute(long chipClusterPtr, - MaxCompPressureAttributeCallback callback - ); - private native void subscribeMaxCompPressureAttribute(long chipClusterPtr, - MaxCompPressureAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMinConstSpeedAttribute(long chipClusterPtr, - MinConstSpeedAttributeCallback callback - ); - private native void subscribeMinConstSpeedAttribute(long chipClusterPtr, - MinConstSpeedAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMaxConstSpeedAttribute(long chipClusterPtr, - MaxConstSpeedAttributeCallback callback - ); - private native void subscribeMaxConstSpeedAttribute(long chipClusterPtr, - MaxConstSpeedAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMinConstFlowAttribute(long chipClusterPtr, - MinConstFlowAttributeCallback callback - ); - private native void subscribeMinConstFlowAttribute(long chipClusterPtr, - MinConstFlowAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMaxConstFlowAttribute(long chipClusterPtr, - MaxConstFlowAttributeCallback callback - ); - private native void subscribeMaxConstFlowAttribute(long chipClusterPtr, - MaxConstFlowAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMinConstTempAttribute(long chipClusterPtr, - MinConstTempAttributeCallback callback - ); - private native void subscribeMinConstTempAttribute(long chipClusterPtr, - MinConstTempAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMaxConstTempAttribute(long chipClusterPtr, - MaxConstTempAttributeCallback callback - ); - private native void subscribeMaxConstTempAttribute(long chipClusterPtr, - MaxConstTempAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPumpStatusAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePumpStatusAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readEffectiveOperationModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeEffectiveOperationModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readEffectiveControlModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeEffectiveControlModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readCapacityAttribute(long chipClusterPtr, - CapacityAttributeCallback callback - ); - private native void subscribeCapacityAttribute(long chipClusterPtr, - CapacityAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readSpeedAttribute(long chipClusterPtr, - SpeedAttributeCallback callback - ); - private native void subscribeSpeedAttribute(long chipClusterPtr, - SpeedAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readLifetimeRunningHoursAttribute(long chipClusterPtr, - LifetimeRunningHoursAttributeCallback callback - ); - - private native void writeLifetimeRunningHoursAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeLifetimeRunningHoursAttribute(long chipClusterPtr, - LifetimeRunningHoursAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPowerAttribute(long chipClusterPtr, - PowerAttributeCallback callback - ); - private native void subscribePowerAttribute(long chipClusterPtr, - PowerAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readLifetimeEnergyConsumedAttribute(long chipClusterPtr, - LifetimeEnergyConsumedAttributeCallback callback - ); - - private native void writeLifetimeEnergyConsumedAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeLifetimeEnergyConsumedAttribute(long chipClusterPtr, - LifetimeEnergyConsumedAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readOperationModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeOperationModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeOperationModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readControlModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeControlModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeControlModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class ThermostatCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000201L; - - public ThermostatCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void setpointRaiseLower(DefaultClusterCallback callback - , Integer mode, Integer amount) { - setpointRaiseLower(chipClusterPtr, callback, mode, amount, null); - } - - public void setpointRaiseLower(DefaultClusterCallback callback - , Integer mode, Integer amount - , int timedInvokeTimeoutMs) { - setpointRaiseLower(chipClusterPtr, callback, mode, amount, timedInvokeTimeoutMs); - } - - public void setWeeklySchedule(DefaultClusterCallback callback - , Integer numberOfTransitionsForSequence, Integer dayOfWeekForSequence, Integer modeForSequence, ArrayList transitions) { - setWeeklySchedule(chipClusterPtr, callback, numberOfTransitionsForSequence, dayOfWeekForSequence, modeForSequence, transitions, null); - } - - public void setWeeklySchedule(DefaultClusterCallback callback - , Integer numberOfTransitionsForSequence, Integer dayOfWeekForSequence, Integer modeForSequence, ArrayList transitions - , int timedInvokeTimeoutMs) { - setWeeklySchedule(chipClusterPtr, callback, numberOfTransitionsForSequence, dayOfWeekForSequence, modeForSequence, transitions, timedInvokeTimeoutMs); - } - - public void getWeeklySchedule(GetWeeklyScheduleResponseCallback callback - , Integer daysToReturn, Integer modeToReturn) { - getWeeklySchedule(chipClusterPtr, callback, daysToReturn, modeToReturn, null); - } - - public void getWeeklySchedule(GetWeeklyScheduleResponseCallback callback - , Integer daysToReturn, Integer modeToReturn - , int timedInvokeTimeoutMs) { - getWeeklySchedule(chipClusterPtr, callback, daysToReturn, modeToReturn, timedInvokeTimeoutMs); - } - - public void clearWeeklySchedule(DefaultClusterCallback callback - ) { - clearWeeklySchedule(chipClusterPtr, callback, null); - } - - public void clearWeeklySchedule(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - clearWeeklySchedule(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - private native void setpointRaiseLower(long chipClusterPtr, DefaultClusterCallback Callback - , Integer mode, Integer amount - , @Nullable Integer timedInvokeTimeoutMs); - private native void setWeeklySchedule(long chipClusterPtr, DefaultClusterCallback Callback - , Integer numberOfTransitionsForSequence, Integer dayOfWeekForSequence, Integer modeForSequence, ArrayList transitions - , @Nullable Integer timedInvokeTimeoutMs); - private native void getWeeklySchedule(long chipClusterPtr, GetWeeklyScheduleResponseCallback Callback - , Integer daysToReturn, Integer modeToReturn - , @Nullable Integer timedInvokeTimeoutMs); - private native void clearWeeklySchedule(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - public interface GetWeeklyScheduleResponseCallback { - void onSuccess(Integer numberOfTransitionsForSequence, Integer dayOfWeekForSequence, Integer modeForSequence, ArrayList transitions); - - void onError(Exception error); - } - - - public interface LocalTemperatureAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface OutdoorTemperatureAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface TemperatureSetpointHoldDurationAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface SetpointChangeAmountAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface OccupiedSetbackAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface OccupiedSetbackMinAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface OccupiedSetbackMaxAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface UnoccupiedSetbackAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface UnoccupiedSetbackMinAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface UnoccupiedSetbackMaxAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ACCoilTemperatureAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readLocalTemperatureAttribute( - LocalTemperatureAttributeCallback callback - ) { - readLocalTemperatureAttribute(chipClusterPtr, callback); - } - public void subscribeLocalTemperatureAttribute( - LocalTemperatureAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeLocalTemperatureAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOutdoorTemperatureAttribute( - OutdoorTemperatureAttributeCallback callback - ) { - readOutdoorTemperatureAttribute(chipClusterPtr, callback); - } - public void subscribeOutdoorTemperatureAttribute( - OutdoorTemperatureAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeOutdoorTemperatureAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOccupancyAttribute( - IntegerAttributeCallback callback - ) { - readOccupancyAttribute(chipClusterPtr, callback); - } - public void subscribeOccupancyAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeOccupancyAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAbsMinHeatSetpointLimitAttribute( - IntegerAttributeCallback callback - ) { - readAbsMinHeatSetpointLimitAttribute(chipClusterPtr, callback); - } - public void subscribeAbsMinHeatSetpointLimitAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAbsMinHeatSetpointLimitAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAbsMaxHeatSetpointLimitAttribute( - IntegerAttributeCallback callback - ) { - readAbsMaxHeatSetpointLimitAttribute(chipClusterPtr, callback); - } - public void subscribeAbsMaxHeatSetpointLimitAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAbsMaxHeatSetpointLimitAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAbsMinCoolSetpointLimitAttribute( - IntegerAttributeCallback callback - ) { - readAbsMinCoolSetpointLimitAttribute(chipClusterPtr, callback); - } - public void subscribeAbsMinCoolSetpointLimitAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAbsMinCoolSetpointLimitAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAbsMaxCoolSetpointLimitAttribute( - IntegerAttributeCallback callback - ) { - readAbsMaxCoolSetpointLimitAttribute(chipClusterPtr, callback); - } - public void subscribeAbsMaxCoolSetpointLimitAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAbsMaxCoolSetpointLimitAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPICoolingDemandAttribute( - IntegerAttributeCallback callback - ) { - readPICoolingDemandAttribute(chipClusterPtr, callback); - } - public void subscribePICoolingDemandAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePICoolingDemandAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPIHeatingDemandAttribute( - IntegerAttributeCallback callback - ) { - readPIHeatingDemandAttribute(chipClusterPtr, callback); - } - public void subscribePIHeatingDemandAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePIHeatingDemandAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readHVACSystemTypeConfigurationAttribute( - IntegerAttributeCallback callback - ) { - readHVACSystemTypeConfigurationAttribute(chipClusterPtr, callback); - } - public void writeHVACSystemTypeConfigurationAttribute(DefaultClusterCallback callback, Integer value) { - writeHVACSystemTypeConfigurationAttribute(chipClusterPtr, callback, value, null); - } - - public void writeHVACSystemTypeConfigurationAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeHVACSystemTypeConfigurationAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeHVACSystemTypeConfigurationAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeHVACSystemTypeConfigurationAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLocalTemperatureCalibrationAttribute( - IntegerAttributeCallback callback - ) { - readLocalTemperatureCalibrationAttribute(chipClusterPtr, callback); - } - public void writeLocalTemperatureCalibrationAttribute(DefaultClusterCallback callback, Integer value) { - writeLocalTemperatureCalibrationAttribute(chipClusterPtr, callback, value, null); - } - - public void writeLocalTemperatureCalibrationAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeLocalTemperatureCalibrationAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeLocalTemperatureCalibrationAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLocalTemperatureCalibrationAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOccupiedCoolingSetpointAttribute( - IntegerAttributeCallback callback - ) { - readOccupiedCoolingSetpointAttribute(chipClusterPtr, callback); - } - public void writeOccupiedCoolingSetpointAttribute(DefaultClusterCallback callback, Integer value) { - writeOccupiedCoolingSetpointAttribute(chipClusterPtr, callback, value, null); - } - - public void writeOccupiedCoolingSetpointAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeOccupiedCoolingSetpointAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeOccupiedCoolingSetpointAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeOccupiedCoolingSetpointAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOccupiedHeatingSetpointAttribute( - IntegerAttributeCallback callback - ) { - readOccupiedHeatingSetpointAttribute(chipClusterPtr, callback); - } - public void writeOccupiedHeatingSetpointAttribute(DefaultClusterCallback callback, Integer value) { - writeOccupiedHeatingSetpointAttribute(chipClusterPtr, callback, value, null); - } - - public void writeOccupiedHeatingSetpointAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeOccupiedHeatingSetpointAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeOccupiedHeatingSetpointAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeOccupiedHeatingSetpointAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUnoccupiedCoolingSetpointAttribute( - IntegerAttributeCallback callback - ) { - readUnoccupiedCoolingSetpointAttribute(chipClusterPtr, callback); - } - public void writeUnoccupiedCoolingSetpointAttribute(DefaultClusterCallback callback, Integer value) { - writeUnoccupiedCoolingSetpointAttribute(chipClusterPtr, callback, value, null); - } - - public void writeUnoccupiedCoolingSetpointAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeUnoccupiedCoolingSetpointAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeUnoccupiedCoolingSetpointAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeUnoccupiedCoolingSetpointAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUnoccupiedHeatingSetpointAttribute( - IntegerAttributeCallback callback - ) { - readUnoccupiedHeatingSetpointAttribute(chipClusterPtr, callback); - } - public void writeUnoccupiedHeatingSetpointAttribute(DefaultClusterCallback callback, Integer value) { - writeUnoccupiedHeatingSetpointAttribute(chipClusterPtr, callback, value, null); - } - - public void writeUnoccupiedHeatingSetpointAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeUnoccupiedHeatingSetpointAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeUnoccupiedHeatingSetpointAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeUnoccupiedHeatingSetpointAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinHeatSetpointLimitAttribute( - IntegerAttributeCallback callback - ) { - readMinHeatSetpointLimitAttribute(chipClusterPtr, callback); - } - public void writeMinHeatSetpointLimitAttribute(DefaultClusterCallback callback, Integer value) { - writeMinHeatSetpointLimitAttribute(chipClusterPtr, callback, value, null); - } - - public void writeMinHeatSetpointLimitAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeMinHeatSetpointLimitAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeMinHeatSetpointLimitAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMinHeatSetpointLimitAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxHeatSetpointLimitAttribute( - IntegerAttributeCallback callback - ) { - readMaxHeatSetpointLimitAttribute(chipClusterPtr, callback); - } - public void writeMaxHeatSetpointLimitAttribute(DefaultClusterCallback callback, Integer value) { - writeMaxHeatSetpointLimitAttribute(chipClusterPtr, callback, value, null); - } - - public void writeMaxHeatSetpointLimitAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeMaxHeatSetpointLimitAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeMaxHeatSetpointLimitAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMaxHeatSetpointLimitAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinCoolSetpointLimitAttribute( - IntegerAttributeCallback callback - ) { - readMinCoolSetpointLimitAttribute(chipClusterPtr, callback); - } - public void writeMinCoolSetpointLimitAttribute(DefaultClusterCallback callback, Integer value) { - writeMinCoolSetpointLimitAttribute(chipClusterPtr, callback, value, null); - } - - public void writeMinCoolSetpointLimitAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeMinCoolSetpointLimitAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeMinCoolSetpointLimitAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMinCoolSetpointLimitAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxCoolSetpointLimitAttribute( - IntegerAttributeCallback callback - ) { - readMaxCoolSetpointLimitAttribute(chipClusterPtr, callback); - } - public void writeMaxCoolSetpointLimitAttribute(DefaultClusterCallback callback, Integer value) { - writeMaxCoolSetpointLimitAttribute(chipClusterPtr, callback, value, null); - } - - public void writeMaxCoolSetpointLimitAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeMaxCoolSetpointLimitAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeMaxCoolSetpointLimitAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMaxCoolSetpointLimitAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinSetpointDeadBandAttribute( - IntegerAttributeCallback callback - ) { - readMinSetpointDeadBandAttribute(chipClusterPtr, callback); - } - public void writeMinSetpointDeadBandAttribute(DefaultClusterCallback callback, Integer value) { - writeMinSetpointDeadBandAttribute(chipClusterPtr, callback, value, null); - } - - public void writeMinSetpointDeadBandAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeMinSetpointDeadBandAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeMinSetpointDeadBandAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMinSetpointDeadBandAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRemoteSensingAttribute( - IntegerAttributeCallback callback - ) { - readRemoteSensingAttribute(chipClusterPtr, callback); - } - public void writeRemoteSensingAttribute(DefaultClusterCallback callback, Integer value) { - writeRemoteSensingAttribute(chipClusterPtr, callback, value, null); - } - - public void writeRemoteSensingAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeRemoteSensingAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeRemoteSensingAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRemoteSensingAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readControlSequenceOfOperationAttribute( - IntegerAttributeCallback callback - ) { - readControlSequenceOfOperationAttribute(chipClusterPtr, callback); - } - public void writeControlSequenceOfOperationAttribute(DefaultClusterCallback callback, Integer value) { - writeControlSequenceOfOperationAttribute(chipClusterPtr, callback, value, null); - } - - public void writeControlSequenceOfOperationAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeControlSequenceOfOperationAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeControlSequenceOfOperationAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeControlSequenceOfOperationAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSystemModeAttribute( - IntegerAttributeCallback callback - ) { - readSystemModeAttribute(chipClusterPtr, callback); - } - public void writeSystemModeAttribute(DefaultClusterCallback callback, Integer value) { - writeSystemModeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeSystemModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeSystemModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeSystemModeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSystemModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readThermostatRunningModeAttribute( - IntegerAttributeCallback callback - ) { - readThermostatRunningModeAttribute(chipClusterPtr, callback); - } - public void subscribeThermostatRunningModeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeThermostatRunningModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readStartOfWeekAttribute( - IntegerAttributeCallback callback - ) { - readStartOfWeekAttribute(chipClusterPtr, callback); - } - public void subscribeStartOfWeekAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeStartOfWeekAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNumberOfWeeklyTransitionsAttribute( - IntegerAttributeCallback callback - ) { - readNumberOfWeeklyTransitionsAttribute(chipClusterPtr, callback); - } - public void subscribeNumberOfWeeklyTransitionsAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeNumberOfWeeklyTransitionsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNumberOfDailyTransitionsAttribute( - IntegerAttributeCallback callback - ) { - readNumberOfDailyTransitionsAttribute(chipClusterPtr, callback); - } - public void subscribeNumberOfDailyTransitionsAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeNumberOfDailyTransitionsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTemperatureSetpointHoldAttribute( - IntegerAttributeCallback callback - ) { - readTemperatureSetpointHoldAttribute(chipClusterPtr, callback); - } - public void writeTemperatureSetpointHoldAttribute(DefaultClusterCallback callback, Integer value) { - writeTemperatureSetpointHoldAttribute(chipClusterPtr, callback, value, null); - } - - public void writeTemperatureSetpointHoldAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeTemperatureSetpointHoldAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeTemperatureSetpointHoldAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTemperatureSetpointHoldAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTemperatureSetpointHoldDurationAttribute( - TemperatureSetpointHoldDurationAttributeCallback callback - ) { - readTemperatureSetpointHoldDurationAttribute(chipClusterPtr, callback); - } - public void writeTemperatureSetpointHoldDurationAttribute(DefaultClusterCallback callback, Integer value) { - writeTemperatureSetpointHoldDurationAttribute(chipClusterPtr, callback, value, null); - } - - public void writeTemperatureSetpointHoldDurationAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeTemperatureSetpointHoldDurationAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeTemperatureSetpointHoldDurationAttribute( - TemperatureSetpointHoldDurationAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeTemperatureSetpointHoldDurationAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readThermostatProgrammingOperationModeAttribute( - IntegerAttributeCallback callback - ) { - readThermostatProgrammingOperationModeAttribute(chipClusterPtr, callback); - } - public void writeThermostatProgrammingOperationModeAttribute(DefaultClusterCallback callback, Integer value) { - writeThermostatProgrammingOperationModeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeThermostatProgrammingOperationModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeThermostatProgrammingOperationModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeThermostatProgrammingOperationModeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeThermostatProgrammingOperationModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readThermostatRunningStateAttribute( - IntegerAttributeCallback callback - ) { - readThermostatRunningStateAttribute(chipClusterPtr, callback); - } - public void subscribeThermostatRunningStateAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeThermostatRunningStateAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSetpointChangeSourceAttribute( - IntegerAttributeCallback callback - ) { - readSetpointChangeSourceAttribute(chipClusterPtr, callback); - } - public void subscribeSetpointChangeSourceAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSetpointChangeSourceAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSetpointChangeAmountAttribute( - SetpointChangeAmountAttributeCallback callback - ) { - readSetpointChangeAmountAttribute(chipClusterPtr, callback); - } - public void subscribeSetpointChangeAmountAttribute( - SetpointChangeAmountAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeSetpointChangeAmountAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSetpointChangeSourceTimestampAttribute( - LongAttributeCallback callback - ) { - readSetpointChangeSourceTimestampAttribute(chipClusterPtr, callback); - } - public void subscribeSetpointChangeSourceTimestampAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSetpointChangeSourceTimestampAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOccupiedSetbackAttribute( - OccupiedSetbackAttributeCallback callback - ) { - readOccupiedSetbackAttribute(chipClusterPtr, callback); - } - public void writeOccupiedSetbackAttribute(DefaultClusterCallback callback, Integer value) { - writeOccupiedSetbackAttribute(chipClusterPtr, callback, value, null); - } - - public void writeOccupiedSetbackAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeOccupiedSetbackAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeOccupiedSetbackAttribute( - OccupiedSetbackAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeOccupiedSetbackAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOccupiedSetbackMinAttribute( - OccupiedSetbackMinAttributeCallback callback - ) { - readOccupiedSetbackMinAttribute(chipClusterPtr, callback); - } - public void subscribeOccupiedSetbackMinAttribute( - OccupiedSetbackMinAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeOccupiedSetbackMinAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOccupiedSetbackMaxAttribute( - OccupiedSetbackMaxAttributeCallback callback - ) { - readOccupiedSetbackMaxAttribute(chipClusterPtr, callback); - } - public void subscribeOccupiedSetbackMaxAttribute( - OccupiedSetbackMaxAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeOccupiedSetbackMaxAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUnoccupiedSetbackAttribute( - UnoccupiedSetbackAttributeCallback callback - ) { - readUnoccupiedSetbackAttribute(chipClusterPtr, callback); - } - public void writeUnoccupiedSetbackAttribute(DefaultClusterCallback callback, Integer value) { - writeUnoccupiedSetbackAttribute(chipClusterPtr, callback, value, null); - } - - public void writeUnoccupiedSetbackAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeUnoccupiedSetbackAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeUnoccupiedSetbackAttribute( - UnoccupiedSetbackAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeUnoccupiedSetbackAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUnoccupiedSetbackMinAttribute( - UnoccupiedSetbackMinAttributeCallback callback - ) { - readUnoccupiedSetbackMinAttribute(chipClusterPtr, callback); - } - public void subscribeUnoccupiedSetbackMinAttribute( - UnoccupiedSetbackMinAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeUnoccupiedSetbackMinAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUnoccupiedSetbackMaxAttribute( - UnoccupiedSetbackMaxAttributeCallback callback - ) { - readUnoccupiedSetbackMaxAttribute(chipClusterPtr, callback); - } - public void subscribeUnoccupiedSetbackMaxAttribute( - UnoccupiedSetbackMaxAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeUnoccupiedSetbackMaxAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEmergencyHeatDeltaAttribute( - IntegerAttributeCallback callback - ) { - readEmergencyHeatDeltaAttribute(chipClusterPtr, callback); - } - public void writeEmergencyHeatDeltaAttribute(DefaultClusterCallback callback, Integer value) { - writeEmergencyHeatDeltaAttribute(chipClusterPtr, callback, value, null); - } - - public void writeEmergencyHeatDeltaAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeEmergencyHeatDeltaAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeEmergencyHeatDeltaAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeEmergencyHeatDeltaAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readACTypeAttribute( - IntegerAttributeCallback callback - ) { - readACTypeAttribute(chipClusterPtr, callback); - } - public void writeACTypeAttribute(DefaultClusterCallback callback, Integer value) { - writeACTypeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeACTypeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeACTypeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeACTypeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeACTypeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readACCapacityAttribute( - IntegerAttributeCallback callback - ) { - readACCapacityAttribute(chipClusterPtr, callback); - } - public void writeACCapacityAttribute(DefaultClusterCallback callback, Integer value) { - writeACCapacityAttribute(chipClusterPtr, callback, value, null); - } - - public void writeACCapacityAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeACCapacityAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeACCapacityAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeACCapacityAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readACRefrigerantTypeAttribute( - IntegerAttributeCallback callback - ) { - readACRefrigerantTypeAttribute(chipClusterPtr, callback); - } - public void writeACRefrigerantTypeAttribute(DefaultClusterCallback callback, Integer value) { - writeACRefrigerantTypeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeACRefrigerantTypeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeACRefrigerantTypeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeACRefrigerantTypeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeACRefrigerantTypeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readACCompressorTypeAttribute( - IntegerAttributeCallback callback - ) { - readACCompressorTypeAttribute(chipClusterPtr, callback); - } - public void writeACCompressorTypeAttribute(DefaultClusterCallback callback, Integer value) { - writeACCompressorTypeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeACCompressorTypeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeACCompressorTypeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeACCompressorTypeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeACCompressorTypeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readACErrorCodeAttribute( - LongAttributeCallback callback - ) { - readACErrorCodeAttribute(chipClusterPtr, callback); - } - public void writeACErrorCodeAttribute(DefaultClusterCallback callback, Long value) { - writeACErrorCodeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeACErrorCodeAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeACErrorCodeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeACErrorCodeAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeACErrorCodeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readACLouverPositionAttribute( - IntegerAttributeCallback callback - ) { - readACLouverPositionAttribute(chipClusterPtr, callback); - } - public void writeACLouverPositionAttribute(DefaultClusterCallback callback, Integer value) { - writeACLouverPositionAttribute(chipClusterPtr, callback, value, null); - } - - public void writeACLouverPositionAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeACLouverPositionAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeACLouverPositionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeACLouverPositionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readACCoilTemperatureAttribute( - ACCoilTemperatureAttributeCallback callback - ) { - readACCoilTemperatureAttribute(chipClusterPtr, callback); - } - public void subscribeACCoilTemperatureAttribute( - ACCoilTemperatureAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeACCoilTemperatureAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readACCapacityformatAttribute( - IntegerAttributeCallback callback - ) { - readACCapacityformatAttribute(chipClusterPtr, callback); - } - public void writeACCapacityformatAttribute(DefaultClusterCallback callback, Integer value) { - writeACCapacityformatAttribute(chipClusterPtr, callback, value, null); - } - - public void writeACCapacityformatAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeACCapacityformatAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeACCapacityformatAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeACCapacityformatAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readLocalTemperatureAttribute(long chipClusterPtr, - LocalTemperatureAttributeCallback callback - ); - private native void subscribeLocalTemperatureAttribute(long chipClusterPtr, - LocalTemperatureAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readOutdoorTemperatureAttribute(long chipClusterPtr, - OutdoorTemperatureAttributeCallback callback - ); - private native void subscribeOutdoorTemperatureAttribute(long chipClusterPtr, - OutdoorTemperatureAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readOccupancyAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeOccupancyAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAbsMinHeatSetpointLimitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAbsMinHeatSetpointLimitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAbsMaxHeatSetpointLimitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAbsMaxHeatSetpointLimitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAbsMinCoolSetpointLimitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAbsMinCoolSetpointLimitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAbsMaxCoolSetpointLimitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAbsMaxCoolSetpointLimitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPICoolingDemandAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePICoolingDemandAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPIHeatingDemandAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePIHeatingDemandAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readHVACSystemTypeConfigurationAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeHVACSystemTypeConfigurationAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeHVACSystemTypeConfigurationAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLocalTemperatureCalibrationAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeLocalTemperatureCalibrationAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeLocalTemperatureCalibrationAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readOccupiedCoolingSetpointAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeOccupiedCoolingSetpointAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeOccupiedCoolingSetpointAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readOccupiedHeatingSetpointAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeOccupiedHeatingSetpointAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeOccupiedHeatingSetpointAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readUnoccupiedCoolingSetpointAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeUnoccupiedCoolingSetpointAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeUnoccupiedCoolingSetpointAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readUnoccupiedHeatingSetpointAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeUnoccupiedHeatingSetpointAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeUnoccupiedHeatingSetpointAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMinHeatSetpointLimitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeMinHeatSetpointLimitAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeMinHeatSetpointLimitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMaxHeatSetpointLimitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeMaxHeatSetpointLimitAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeMaxHeatSetpointLimitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMinCoolSetpointLimitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeMinCoolSetpointLimitAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeMinCoolSetpointLimitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMaxCoolSetpointLimitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeMaxCoolSetpointLimitAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeMaxCoolSetpointLimitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMinSetpointDeadBandAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeMinSetpointDeadBandAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeMinSetpointDeadBandAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRemoteSensingAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeRemoteSensingAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeRemoteSensingAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readControlSequenceOfOperationAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeControlSequenceOfOperationAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeControlSequenceOfOperationAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSystemModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeSystemModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeSystemModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readThermostatRunningModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeThermostatRunningModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readStartOfWeekAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeStartOfWeekAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readNumberOfWeeklyTransitionsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeNumberOfWeeklyTransitionsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readNumberOfDailyTransitionsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeNumberOfDailyTransitionsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTemperatureSetpointHoldAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeTemperatureSetpointHoldAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeTemperatureSetpointHoldAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTemperatureSetpointHoldDurationAttribute(long chipClusterPtr, - TemperatureSetpointHoldDurationAttributeCallback callback - ); - - private native void writeTemperatureSetpointHoldDurationAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeTemperatureSetpointHoldDurationAttribute(long chipClusterPtr, - TemperatureSetpointHoldDurationAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readThermostatProgrammingOperationModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeThermostatProgrammingOperationModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeThermostatProgrammingOperationModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readThermostatRunningStateAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeThermostatRunningStateAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSetpointChangeSourceAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeSetpointChangeSourceAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSetpointChangeAmountAttribute(long chipClusterPtr, - SetpointChangeAmountAttributeCallback callback - ); - private native void subscribeSetpointChangeAmountAttribute(long chipClusterPtr, - SetpointChangeAmountAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readSetpointChangeSourceTimestampAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeSetpointChangeSourceTimestampAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readOccupiedSetbackAttribute(long chipClusterPtr, - OccupiedSetbackAttributeCallback callback - ); - - private native void writeOccupiedSetbackAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeOccupiedSetbackAttribute(long chipClusterPtr, - OccupiedSetbackAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readOccupiedSetbackMinAttribute(long chipClusterPtr, - OccupiedSetbackMinAttributeCallback callback - ); - private native void subscribeOccupiedSetbackMinAttribute(long chipClusterPtr, - OccupiedSetbackMinAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readOccupiedSetbackMaxAttribute(long chipClusterPtr, - OccupiedSetbackMaxAttributeCallback callback - ); - private native void subscribeOccupiedSetbackMaxAttribute(long chipClusterPtr, - OccupiedSetbackMaxAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readUnoccupiedSetbackAttribute(long chipClusterPtr, - UnoccupiedSetbackAttributeCallback callback - ); - - private native void writeUnoccupiedSetbackAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeUnoccupiedSetbackAttribute(long chipClusterPtr, - UnoccupiedSetbackAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readUnoccupiedSetbackMinAttribute(long chipClusterPtr, - UnoccupiedSetbackMinAttributeCallback callback - ); - private native void subscribeUnoccupiedSetbackMinAttribute(long chipClusterPtr, - UnoccupiedSetbackMinAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readUnoccupiedSetbackMaxAttribute(long chipClusterPtr, - UnoccupiedSetbackMaxAttributeCallback callback - ); - private native void subscribeUnoccupiedSetbackMaxAttribute(long chipClusterPtr, - UnoccupiedSetbackMaxAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEmergencyHeatDeltaAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeEmergencyHeatDeltaAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeEmergencyHeatDeltaAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readACTypeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeACTypeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeACTypeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readACCapacityAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeACCapacityAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeACCapacityAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readACRefrigerantTypeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeACRefrigerantTypeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeACRefrigerantTypeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readACCompressorTypeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeACCompressorTypeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeACCompressorTypeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readACErrorCodeAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - - private native void writeACErrorCodeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeACErrorCodeAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readACLouverPositionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeACLouverPositionAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeACLouverPositionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readACCoilTemperatureAttribute(long chipClusterPtr, - ACCoilTemperatureAttributeCallback callback - ); - private native void subscribeACCoilTemperatureAttribute(long chipClusterPtr, - ACCoilTemperatureAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readACCapacityformatAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeACCapacityformatAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeACCapacityformatAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class FanControlCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000202L; - - public FanControlCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void step(DefaultClusterCallback callback - , Integer direction, Optional wrap, Optional lowestOff) { - step(chipClusterPtr, callback, direction, wrap, lowestOff, null); - } - - public void step(DefaultClusterCallback callback - , Integer direction, Optional wrap, Optional lowestOff - , int timedInvokeTimeoutMs) { - step(chipClusterPtr, callback, direction, wrap, lowestOff, timedInvokeTimeoutMs); - } - private native void step(long chipClusterPtr, DefaultClusterCallback Callback - , Integer direction, Optional wrap, Optional lowestOff - , @Nullable Integer timedInvokeTimeoutMs); - - public interface PercentSettingAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface SpeedSettingAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readFanModeAttribute( - IntegerAttributeCallback callback - ) { - readFanModeAttribute(chipClusterPtr, callback); - } - public void writeFanModeAttribute(DefaultClusterCallback callback, Integer value) { - writeFanModeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeFanModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeFanModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeFanModeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFanModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFanModeSequenceAttribute( - IntegerAttributeCallback callback - ) { - readFanModeSequenceAttribute(chipClusterPtr, callback); - } - public void writeFanModeSequenceAttribute(DefaultClusterCallback callback, Integer value) { - writeFanModeSequenceAttribute(chipClusterPtr, callback, value, null); - } - - public void writeFanModeSequenceAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeFanModeSequenceAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeFanModeSequenceAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFanModeSequenceAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPercentSettingAttribute( - PercentSettingAttributeCallback callback - ) { - readPercentSettingAttribute(chipClusterPtr, callback); - } - public void writePercentSettingAttribute(DefaultClusterCallback callback, Integer value) { - writePercentSettingAttribute(chipClusterPtr, callback, value, null); - } - - public void writePercentSettingAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writePercentSettingAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribePercentSettingAttribute( - PercentSettingAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePercentSettingAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPercentCurrentAttribute( - IntegerAttributeCallback callback - ) { - readPercentCurrentAttribute(chipClusterPtr, callback); - } - public void subscribePercentCurrentAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePercentCurrentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSpeedMaxAttribute( - IntegerAttributeCallback callback - ) { - readSpeedMaxAttribute(chipClusterPtr, callback); - } - public void subscribeSpeedMaxAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSpeedMaxAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSpeedSettingAttribute( - SpeedSettingAttributeCallback callback - ) { - readSpeedSettingAttribute(chipClusterPtr, callback); - } - public void writeSpeedSettingAttribute(DefaultClusterCallback callback, Integer value) { - writeSpeedSettingAttribute(chipClusterPtr, callback, value, null); - } - - public void writeSpeedSettingAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeSpeedSettingAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeSpeedSettingAttribute( - SpeedSettingAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeSpeedSettingAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSpeedCurrentAttribute( - IntegerAttributeCallback callback - ) { - readSpeedCurrentAttribute(chipClusterPtr, callback); - } - public void subscribeSpeedCurrentAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSpeedCurrentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRockSupportAttribute( - IntegerAttributeCallback callback - ) { - readRockSupportAttribute(chipClusterPtr, callback); - } - public void subscribeRockSupportAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRockSupportAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRockSettingAttribute( - IntegerAttributeCallback callback - ) { - readRockSettingAttribute(chipClusterPtr, callback); - } - public void writeRockSettingAttribute(DefaultClusterCallback callback, Integer value) { - writeRockSettingAttribute(chipClusterPtr, callback, value, null); - } - - public void writeRockSettingAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeRockSettingAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeRockSettingAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRockSettingAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readWindSupportAttribute( - IntegerAttributeCallback callback - ) { - readWindSupportAttribute(chipClusterPtr, callback); - } - public void subscribeWindSupportAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeWindSupportAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readWindSettingAttribute( - IntegerAttributeCallback callback - ) { - readWindSettingAttribute(chipClusterPtr, callback); - } - public void writeWindSettingAttribute(DefaultClusterCallback callback, Integer value) { - writeWindSettingAttribute(chipClusterPtr, callback, value, null); - } - - public void writeWindSettingAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeWindSettingAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeWindSettingAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeWindSettingAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAirflowDirectionAttribute( - IntegerAttributeCallback callback - ) { - readAirflowDirectionAttribute(chipClusterPtr, callback); - } - public void writeAirflowDirectionAttribute(DefaultClusterCallback callback, Integer value) { - writeAirflowDirectionAttribute(chipClusterPtr, callback, value, null); - } - - public void writeAirflowDirectionAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeAirflowDirectionAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeAirflowDirectionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAirflowDirectionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readFanModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeFanModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeFanModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readFanModeSequenceAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeFanModeSequenceAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeFanModeSequenceAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPercentSettingAttribute(long chipClusterPtr, - PercentSettingAttributeCallback callback - ); - - private native void writePercentSettingAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribePercentSettingAttribute(long chipClusterPtr, - PercentSettingAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPercentCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePercentCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSpeedMaxAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeSpeedMaxAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSpeedSettingAttribute(long chipClusterPtr, - SpeedSettingAttributeCallback callback - ); - - private native void writeSpeedSettingAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeSpeedSettingAttribute(long chipClusterPtr, - SpeedSettingAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readSpeedCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeSpeedCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRockSupportAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRockSupportAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRockSettingAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeRockSettingAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeRockSettingAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readWindSupportAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeWindSupportAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readWindSettingAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeWindSettingAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeWindSettingAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAirflowDirectionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeAirflowDirectionAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeAirflowDirectionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class ThermostatUserInterfaceConfigurationCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000204L; - - public ThermostatUserInterfaceConfigurationCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readTemperatureDisplayModeAttribute( - IntegerAttributeCallback callback - ) { - readTemperatureDisplayModeAttribute(chipClusterPtr, callback); - } - public void writeTemperatureDisplayModeAttribute(DefaultClusterCallback callback, Integer value) { - writeTemperatureDisplayModeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeTemperatureDisplayModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeTemperatureDisplayModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeTemperatureDisplayModeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTemperatureDisplayModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readKeypadLockoutAttribute( - IntegerAttributeCallback callback - ) { - readKeypadLockoutAttribute(chipClusterPtr, callback); - } - public void writeKeypadLockoutAttribute(DefaultClusterCallback callback, Integer value) { - writeKeypadLockoutAttribute(chipClusterPtr, callback, value, null); - } - - public void writeKeypadLockoutAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeKeypadLockoutAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeKeypadLockoutAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeKeypadLockoutAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readScheduleProgrammingVisibilityAttribute( - IntegerAttributeCallback callback - ) { - readScheduleProgrammingVisibilityAttribute(chipClusterPtr, callback); - } - public void writeScheduleProgrammingVisibilityAttribute(DefaultClusterCallback callback, Integer value) { - writeScheduleProgrammingVisibilityAttribute(chipClusterPtr, callback, value, null); - } - - public void writeScheduleProgrammingVisibilityAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeScheduleProgrammingVisibilityAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeScheduleProgrammingVisibilityAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeScheduleProgrammingVisibilityAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readTemperatureDisplayModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeTemperatureDisplayModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeTemperatureDisplayModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readKeypadLockoutAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeKeypadLockoutAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeKeypadLockoutAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readScheduleProgrammingVisibilityAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeScheduleProgrammingVisibilityAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeScheduleProgrammingVisibilityAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class ColorControlCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000300L; - - public ColorControlCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void moveToHue(DefaultClusterCallback callback - , Integer hue, Integer direction, Integer transitionTime, Integer optionsMask, Integer optionsOverride) { - moveToHue(chipClusterPtr, callback, hue, direction, transitionTime, optionsMask, optionsOverride, null); - } - - public void moveToHue(DefaultClusterCallback callback - , Integer hue, Integer direction, Integer transitionTime, Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - moveToHue(chipClusterPtr, callback, hue, direction, transitionTime, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void moveHue(DefaultClusterCallback callback - , Integer moveMode, Integer rate, Integer optionsMask, Integer optionsOverride) { - moveHue(chipClusterPtr, callback, moveMode, rate, optionsMask, optionsOverride, null); - } - - public void moveHue(DefaultClusterCallback callback - , Integer moveMode, Integer rate, Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - moveHue(chipClusterPtr, callback, moveMode, rate, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void stepHue(DefaultClusterCallback callback - , Integer stepMode, Integer stepSize, Integer transitionTime, Integer optionsMask, Integer optionsOverride) { - stepHue(chipClusterPtr, callback, stepMode, stepSize, transitionTime, optionsMask, optionsOverride, null); - } - - public void stepHue(DefaultClusterCallback callback - , Integer stepMode, Integer stepSize, Integer transitionTime, Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - stepHue(chipClusterPtr, callback, stepMode, stepSize, transitionTime, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void moveToSaturation(DefaultClusterCallback callback - , Integer saturation, Integer transitionTime, Integer optionsMask, Integer optionsOverride) { - moveToSaturation(chipClusterPtr, callback, saturation, transitionTime, optionsMask, optionsOverride, null); - } - - public void moveToSaturation(DefaultClusterCallback callback - , Integer saturation, Integer transitionTime, Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - moveToSaturation(chipClusterPtr, callback, saturation, transitionTime, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void moveSaturation(DefaultClusterCallback callback - , Integer moveMode, Integer rate, Integer optionsMask, Integer optionsOverride) { - moveSaturation(chipClusterPtr, callback, moveMode, rate, optionsMask, optionsOverride, null); - } - - public void moveSaturation(DefaultClusterCallback callback - , Integer moveMode, Integer rate, Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - moveSaturation(chipClusterPtr, callback, moveMode, rate, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void stepSaturation(DefaultClusterCallback callback - , Integer stepMode, Integer stepSize, Integer transitionTime, Integer optionsMask, Integer optionsOverride) { - stepSaturation(chipClusterPtr, callback, stepMode, stepSize, transitionTime, optionsMask, optionsOverride, null); - } - - public void stepSaturation(DefaultClusterCallback callback - , Integer stepMode, Integer stepSize, Integer transitionTime, Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - stepSaturation(chipClusterPtr, callback, stepMode, stepSize, transitionTime, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void moveToHueAndSaturation(DefaultClusterCallback callback - , Integer hue, Integer saturation, Integer transitionTime, Integer optionsMask, Integer optionsOverride) { - moveToHueAndSaturation(chipClusterPtr, callback, hue, saturation, transitionTime, optionsMask, optionsOverride, null); - } - - public void moveToHueAndSaturation(DefaultClusterCallback callback - , Integer hue, Integer saturation, Integer transitionTime, Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - moveToHueAndSaturation(chipClusterPtr, callback, hue, saturation, transitionTime, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void moveToColor(DefaultClusterCallback callback - , Integer colorX, Integer colorY, Integer transitionTime, Integer optionsMask, Integer optionsOverride) { - moveToColor(chipClusterPtr, callback, colorX, colorY, transitionTime, optionsMask, optionsOverride, null); - } - - public void moveToColor(DefaultClusterCallback callback - , Integer colorX, Integer colorY, Integer transitionTime, Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - moveToColor(chipClusterPtr, callback, colorX, colorY, transitionTime, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void moveColor(DefaultClusterCallback callback - , Integer rateX, Integer rateY, Integer optionsMask, Integer optionsOverride) { - moveColor(chipClusterPtr, callback, rateX, rateY, optionsMask, optionsOverride, null); - } - - public void moveColor(DefaultClusterCallback callback - , Integer rateX, Integer rateY, Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - moveColor(chipClusterPtr, callback, rateX, rateY, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void stepColor(DefaultClusterCallback callback - , Integer stepX, Integer stepY, Integer transitionTime, Integer optionsMask, Integer optionsOverride) { - stepColor(chipClusterPtr, callback, stepX, stepY, transitionTime, optionsMask, optionsOverride, null); - } - - public void stepColor(DefaultClusterCallback callback - , Integer stepX, Integer stepY, Integer transitionTime, Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - stepColor(chipClusterPtr, callback, stepX, stepY, transitionTime, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void moveToColorTemperature(DefaultClusterCallback callback - , Integer colorTemperatureMireds, Integer transitionTime, Integer optionsMask, Integer optionsOverride) { - moveToColorTemperature(chipClusterPtr, callback, colorTemperatureMireds, transitionTime, optionsMask, optionsOverride, null); - } - - public void moveToColorTemperature(DefaultClusterCallback callback - , Integer colorTemperatureMireds, Integer transitionTime, Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - moveToColorTemperature(chipClusterPtr, callback, colorTemperatureMireds, transitionTime, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void enhancedMoveToHue(DefaultClusterCallback callback - , Integer enhancedHue, Integer direction, Integer transitionTime, Integer optionsMask, Integer optionsOverride) { - enhancedMoveToHue(chipClusterPtr, callback, enhancedHue, direction, transitionTime, optionsMask, optionsOverride, null); - } - - public void enhancedMoveToHue(DefaultClusterCallback callback - , Integer enhancedHue, Integer direction, Integer transitionTime, Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - enhancedMoveToHue(chipClusterPtr, callback, enhancedHue, direction, transitionTime, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void enhancedMoveHue(DefaultClusterCallback callback - , Integer moveMode, Integer rate, Integer optionsMask, Integer optionsOverride) { - enhancedMoveHue(chipClusterPtr, callback, moveMode, rate, optionsMask, optionsOverride, null); - } - - public void enhancedMoveHue(DefaultClusterCallback callback - , Integer moveMode, Integer rate, Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - enhancedMoveHue(chipClusterPtr, callback, moveMode, rate, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void enhancedStepHue(DefaultClusterCallback callback - , Integer stepMode, Integer stepSize, Integer transitionTime, Integer optionsMask, Integer optionsOverride) { - enhancedStepHue(chipClusterPtr, callback, stepMode, stepSize, transitionTime, optionsMask, optionsOverride, null); - } - - public void enhancedStepHue(DefaultClusterCallback callback - , Integer stepMode, Integer stepSize, Integer transitionTime, Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - enhancedStepHue(chipClusterPtr, callback, stepMode, stepSize, transitionTime, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void enhancedMoveToHueAndSaturation(DefaultClusterCallback callback - , Integer enhancedHue, Integer saturation, Integer transitionTime, Integer optionsMask, Integer optionsOverride) { - enhancedMoveToHueAndSaturation(chipClusterPtr, callback, enhancedHue, saturation, transitionTime, optionsMask, optionsOverride, null); - } - - public void enhancedMoveToHueAndSaturation(DefaultClusterCallback callback - , Integer enhancedHue, Integer saturation, Integer transitionTime, Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - enhancedMoveToHueAndSaturation(chipClusterPtr, callback, enhancedHue, saturation, transitionTime, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void colorLoopSet(DefaultClusterCallback callback - , Integer updateFlags, Integer action, Integer direction, Integer time, Integer startHue, Integer optionsMask, Integer optionsOverride) { - colorLoopSet(chipClusterPtr, callback, updateFlags, action, direction, time, startHue, optionsMask, optionsOverride, null); - } - - public void colorLoopSet(DefaultClusterCallback callback - , Integer updateFlags, Integer action, Integer direction, Integer time, Integer startHue, Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - colorLoopSet(chipClusterPtr, callback, updateFlags, action, direction, time, startHue, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void stopMoveStep(DefaultClusterCallback callback - , Integer optionsMask, Integer optionsOverride) { - stopMoveStep(chipClusterPtr, callback, optionsMask, optionsOverride, null); - } - - public void stopMoveStep(DefaultClusterCallback callback - , Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - stopMoveStep(chipClusterPtr, callback, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void moveColorTemperature(DefaultClusterCallback callback - , Integer moveMode, Integer rate, Integer colorTemperatureMinimumMireds, Integer colorTemperatureMaximumMireds, Integer optionsMask, Integer optionsOverride) { - moveColorTemperature(chipClusterPtr, callback, moveMode, rate, colorTemperatureMinimumMireds, colorTemperatureMaximumMireds, optionsMask, optionsOverride, null); - } - - public void moveColorTemperature(DefaultClusterCallback callback - , Integer moveMode, Integer rate, Integer colorTemperatureMinimumMireds, Integer colorTemperatureMaximumMireds, Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - moveColorTemperature(chipClusterPtr, callback, moveMode, rate, colorTemperatureMinimumMireds, colorTemperatureMaximumMireds, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - - public void stepColorTemperature(DefaultClusterCallback callback - , Integer stepMode, Integer stepSize, Integer transitionTime, Integer colorTemperatureMinimumMireds, Integer colorTemperatureMaximumMireds, Integer optionsMask, Integer optionsOverride) { - stepColorTemperature(chipClusterPtr, callback, stepMode, stepSize, transitionTime, colorTemperatureMinimumMireds, colorTemperatureMaximumMireds, optionsMask, optionsOverride, null); - } - - public void stepColorTemperature(DefaultClusterCallback callback - , Integer stepMode, Integer stepSize, Integer transitionTime, Integer colorTemperatureMinimumMireds, Integer colorTemperatureMaximumMireds, Integer optionsMask, Integer optionsOverride - , int timedInvokeTimeoutMs) { - stepColorTemperature(chipClusterPtr, callback, stepMode, stepSize, transitionTime, colorTemperatureMinimumMireds, colorTemperatureMaximumMireds, optionsMask, optionsOverride, timedInvokeTimeoutMs); - } - private native void moveToHue(long chipClusterPtr, DefaultClusterCallback Callback - , Integer hue, Integer direction, Integer transitionTime, Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void moveHue(long chipClusterPtr, DefaultClusterCallback Callback - , Integer moveMode, Integer rate, Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void stepHue(long chipClusterPtr, DefaultClusterCallback Callback - , Integer stepMode, Integer stepSize, Integer transitionTime, Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void moveToSaturation(long chipClusterPtr, DefaultClusterCallback Callback - , Integer saturation, Integer transitionTime, Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void moveSaturation(long chipClusterPtr, DefaultClusterCallback Callback - , Integer moveMode, Integer rate, Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void stepSaturation(long chipClusterPtr, DefaultClusterCallback Callback - , Integer stepMode, Integer stepSize, Integer transitionTime, Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void moveToHueAndSaturation(long chipClusterPtr, DefaultClusterCallback Callback - , Integer hue, Integer saturation, Integer transitionTime, Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void moveToColor(long chipClusterPtr, DefaultClusterCallback Callback - , Integer colorX, Integer colorY, Integer transitionTime, Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void moveColor(long chipClusterPtr, DefaultClusterCallback Callback - , Integer rateX, Integer rateY, Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void stepColor(long chipClusterPtr, DefaultClusterCallback Callback - , Integer stepX, Integer stepY, Integer transitionTime, Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void moveToColorTemperature(long chipClusterPtr, DefaultClusterCallback Callback - , Integer colorTemperatureMireds, Integer transitionTime, Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void enhancedMoveToHue(long chipClusterPtr, DefaultClusterCallback Callback - , Integer enhancedHue, Integer direction, Integer transitionTime, Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void enhancedMoveHue(long chipClusterPtr, DefaultClusterCallback Callback - , Integer moveMode, Integer rate, Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void enhancedStepHue(long chipClusterPtr, DefaultClusterCallback Callback - , Integer stepMode, Integer stepSize, Integer transitionTime, Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void enhancedMoveToHueAndSaturation(long chipClusterPtr, DefaultClusterCallback Callback - , Integer enhancedHue, Integer saturation, Integer transitionTime, Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void colorLoopSet(long chipClusterPtr, DefaultClusterCallback Callback - , Integer updateFlags, Integer action, Integer direction, Integer time, Integer startHue, Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void stopMoveStep(long chipClusterPtr, DefaultClusterCallback Callback - , Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void moveColorTemperature(long chipClusterPtr, DefaultClusterCallback Callback - , Integer moveMode, Integer rate, Integer colorTemperatureMinimumMireds, Integer colorTemperatureMaximumMireds, Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - private native void stepColorTemperature(long chipClusterPtr, DefaultClusterCallback Callback - , Integer stepMode, Integer stepSize, Integer transitionTime, Integer colorTemperatureMinimumMireds, Integer colorTemperatureMaximumMireds, Integer optionsMask, Integer optionsOverride - , @Nullable Integer timedInvokeTimeoutMs); - - public interface NumberOfPrimariesAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface Primary1IntensityAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface Primary2IntensityAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface Primary3IntensityAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface Primary4IntensityAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface Primary5IntensityAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface Primary6IntensityAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ColorPointRIntensityAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ColorPointGIntensityAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ColorPointBIntensityAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface StartUpColorTemperatureMiredsAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readCurrentHueAttribute( - IntegerAttributeCallback callback - ) { - readCurrentHueAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentHueAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCurrentHueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentSaturationAttribute( - IntegerAttributeCallback callback - ) { - readCurrentSaturationAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentSaturationAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCurrentSaturationAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRemainingTimeAttribute( - IntegerAttributeCallback callback - ) { - readRemainingTimeAttribute(chipClusterPtr, callback); - } - public void subscribeRemainingTimeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRemainingTimeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentXAttribute( - IntegerAttributeCallback callback - ) { - readCurrentXAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentXAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCurrentXAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentYAttribute( - IntegerAttributeCallback callback - ) { - readCurrentYAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentYAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCurrentYAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDriftCompensationAttribute( - IntegerAttributeCallback callback - ) { - readDriftCompensationAttribute(chipClusterPtr, callback); - } - public void subscribeDriftCompensationAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDriftCompensationAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCompensationTextAttribute( - CharStringAttributeCallback callback - ) { - readCompensationTextAttribute(chipClusterPtr, callback); - } - public void subscribeCompensationTextAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCompensationTextAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readColorTemperatureMiredsAttribute( - IntegerAttributeCallback callback - ) { - readColorTemperatureMiredsAttribute(chipClusterPtr, callback); - } - public void subscribeColorTemperatureMiredsAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeColorTemperatureMiredsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readColorModeAttribute( - IntegerAttributeCallback callback - ) { - readColorModeAttribute(chipClusterPtr, callback); - } - public void subscribeColorModeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeColorModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOptionsAttribute( - IntegerAttributeCallback callback - ) { - readOptionsAttribute(chipClusterPtr, callback); - } - public void writeOptionsAttribute(DefaultClusterCallback callback, Integer value) { - writeOptionsAttribute(chipClusterPtr, callback, value, null); - } - - public void writeOptionsAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeOptionsAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeOptionsAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeOptionsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNumberOfPrimariesAttribute( - NumberOfPrimariesAttributeCallback callback - ) { - readNumberOfPrimariesAttribute(chipClusterPtr, callback); - } - public void subscribeNumberOfPrimariesAttribute( - NumberOfPrimariesAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNumberOfPrimariesAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPrimary1XAttribute( - IntegerAttributeCallback callback - ) { - readPrimary1XAttribute(chipClusterPtr, callback); - } - public void subscribePrimary1XAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePrimary1XAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPrimary1YAttribute( - IntegerAttributeCallback callback - ) { - readPrimary1YAttribute(chipClusterPtr, callback); - } - public void subscribePrimary1YAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePrimary1YAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPrimary1IntensityAttribute( - Primary1IntensityAttributeCallback callback - ) { - readPrimary1IntensityAttribute(chipClusterPtr, callback); - } - public void subscribePrimary1IntensityAttribute( - Primary1IntensityAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePrimary1IntensityAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPrimary2XAttribute( - IntegerAttributeCallback callback - ) { - readPrimary2XAttribute(chipClusterPtr, callback); - } - public void subscribePrimary2XAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePrimary2XAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPrimary2YAttribute( - IntegerAttributeCallback callback - ) { - readPrimary2YAttribute(chipClusterPtr, callback); - } - public void subscribePrimary2YAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePrimary2YAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPrimary2IntensityAttribute( - Primary2IntensityAttributeCallback callback - ) { - readPrimary2IntensityAttribute(chipClusterPtr, callback); - } - public void subscribePrimary2IntensityAttribute( - Primary2IntensityAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePrimary2IntensityAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPrimary3XAttribute( - IntegerAttributeCallback callback - ) { - readPrimary3XAttribute(chipClusterPtr, callback); - } - public void subscribePrimary3XAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePrimary3XAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPrimary3YAttribute( - IntegerAttributeCallback callback - ) { - readPrimary3YAttribute(chipClusterPtr, callback); - } - public void subscribePrimary3YAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePrimary3YAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPrimary3IntensityAttribute( - Primary3IntensityAttributeCallback callback - ) { - readPrimary3IntensityAttribute(chipClusterPtr, callback); - } - public void subscribePrimary3IntensityAttribute( - Primary3IntensityAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePrimary3IntensityAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPrimary4XAttribute( - IntegerAttributeCallback callback - ) { - readPrimary4XAttribute(chipClusterPtr, callback); - } - public void subscribePrimary4XAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePrimary4XAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPrimary4YAttribute( - IntegerAttributeCallback callback - ) { - readPrimary4YAttribute(chipClusterPtr, callback); - } - public void subscribePrimary4YAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePrimary4YAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPrimary4IntensityAttribute( - Primary4IntensityAttributeCallback callback - ) { - readPrimary4IntensityAttribute(chipClusterPtr, callback); - } - public void subscribePrimary4IntensityAttribute( - Primary4IntensityAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePrimary4IntensityAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPrimary5XAttribute( - IntegerAttributeCallback callback - ) { - readPrimary5XAttribute(chipClusterPtr, callback); - } - public void subscribePrimary5XAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePrimary5XAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPrimary5YAttribute( - IntegerAttributeCallback callback - ) { - readPrimary5YAttribute(chipClusterPtr, callback); - } - public void subscribePrimary5YAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePrimary5YAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPrimary5IntensityAttribute( - Primary5IntensityAttributeCallback callback - ) { - readPrimary5IntensityAttribute(chipClusterPtr, callback); - } - public void subscribePrimary5IntensityAttribute( - Primary5IntensityAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePrimary5IntensityAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPrimary6XAttribute( - IntegerAttributeCallback callback - ) { - readPrimary6XAttribute(chipClusterPtr, callback); - } - public void subscribePrimary6XAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePrimary6XAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPrimary6YAttribute( - IntegerAttributeCallback callback - ) { - readPrimary6YAttribute(chipClusterPtr, callback); - } - public void subscribePrimary6YAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePrimary6YAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPrimary6IntensityAttribute( - Primary6IntensityAttributeCallback callback - ) { - readPrimary6IntensityAttribute(chipClusterPtr, callback); - } - public void subscribePrimary6IntensityAttribute( - Primary6IntensityAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePrimary6IntensityAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readWhitePointXAttribute( - IntegerAttributeCallback callback - ) { - readWhitePointXAttribute(chipClusterPtr, callback); - } - public void writeWhitePointXAttribute(DefaultClusterCallback callback, Integer value) { - writeWhitePointXAttribute(chipClusterPtr, callback, value, null); - } - - public void writeWhitePointXAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeWhitePointXAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeWhitePointXAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeWhitePointXAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readWhitePointYAttribute( - IntegerAttributeCallback callback - ) { - readWhitePointYAttribute(chipClusterPtr, callback); - } - public void writeWhitePointYAttribute(DefaultClusterCallback callback, Integer value) { - writeWhitePointYAttribute(chipClusterPtr, callback, value, null); - } - - public void writeWhitePointYAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeWhitePointYAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeWhitePointYAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeWhitePointYAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readColorPointRXAttribute( - IntegerAttributeCallback callback - ) { - readColorPointRXAttribute(chipClusterPtr, callback); - } - public void writeColorPointRXAttribute(DefaultClusterCallback callback, Integer value) { - writeColorPointRXAttribute(chipClusterPtr, callback, value, null); - } - - public void writeColorPointRXAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeColorPointRXAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeColorPointRXAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeColorPointRXAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readColorPointRYAttribute( - IntegerAttributeCallback callback - ) { - readColorPointRYAttribute(chipClusterPtr, callback); - } - public void writeColorPointRYAttribute(DefaultClusterCallback callback, Integer value) { - writeColorPointRYAttribute(chipClusterPtr, callback, value, null); - } - - public void writeColorPointRYAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeColorPointRYAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeColorPointRYAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeColorPointRYAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readColorPointRIntensityAttribute( - ColorPointRIntensityAttributeCallback callback - ) { - readColorPointRIntensityAttribute(chipClusterPtr, callback); - } - public void writeColorPointRIntensityAttribute(DefaultClusterCallback callback, Integer value) { - writeColorPointRIntensityAttribute(chipClusterPtr, callback, value, null); - } - - public void writeColorPointRIntensityAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeColorPointRIntensityAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeColorPointRIntensityAttribute( - ColorPointRIntensityAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeColorPointRIntensityAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readColorPointGXAttribute( - IntegerAttributeCallback callback - ) { - readColorPointGXAttribute(chipClusterPtr, callback); - } - public void writeColorPointGXAttribute(DefaultClusterCallback callback, Integer value) { - writeColorPointGXAttribute(chipClusterPtr, callback, value, null); - } - - public void writeColorPointGXAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeColorPointGXAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeColorPointGXAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeColorPointGXAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readColorPointGYAttribute( - IntegerAttributeCallback callback - ) { - readColorPointGYAttribute(chipClusterPtr, callback); - } - public void writeColorPointGYAttribute(DefaultClusterCallback callback, Integer value) { - writeColorPointGYAttribute(chipClusterPtr, callback, value, null); - } - - public void writeColorPointGYAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeColorPointGYAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeColorPointGYAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeColorPointGYAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readColorPointGIntensityAttribute( - ColorPointGIntensityAttributeCallback callback - ) { - readColorPointGIntensityAttribute(chipClusterPtr, callback); - } - public void writeColorPointGIntensityAttribute(DefaultClusterCallback callback, Integer value) { - writeColorPointGIntensityAttribute(chipClusterPtr, callback, value, null); - } - - public void writeColorPointGIntensityAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeColorPointGIntensityAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeColorPointGIntensityAttribute( - ColorPointGIntensityAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeColorPointGIntensityAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readColorPointBXAttribute( - IntegerAttributeCallback callback - ) { - readColorPointBXAttribute(chipClusterPtr, callback); - } - public void writeColorPointBXAttribute(DefaultClusterCallback callback, Integer value) { - writeColorPointBXAttribute(chipClusterPtr, callback, value, null); - } - - public void writeColorPointBXAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeColorPointBXAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeColorPointBXAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeColorPointBXAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readColorPointBYAttribute( - IntegerAttributeCallback callback - ) { - readColorPointBYAttribute(chipClusterPtr, callback); - } - public void writeColorPointBYAttribute(DefaultClusterCallback callback, Integer value) { - writeColorPointBYAttribute(chipClusterPtr, callback, value, null); - } - - public void writeColorPointBYAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeColorPointBYAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeColorPointBYAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeColorPointBYAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readColorPointBIntensityAttribute( - ColorPointBIntensityAttributeCallback callback - ) { - readColorPointBIntensityAttribute(chipClusterPtr, callback); - } - public void writeColorPointBIntensityAttribute(DefaultClusterCallback callback, Integer value) { - writeColorPointBIntensityAttribute(chipClusterPtr, callback, value, null); - } - - public void writeColorPointBIntensityAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeColorPointBIntensityAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeColorPointBIntensityAttribute( - ColorPointBIntensityAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeColorPointBIntensityAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEnhancedCurrentHueAttribute( - IntegerAttributeCallback callback - ) { - readEnhancedCurrentHueAttribute(chipClusterPtr, callback); - } - public void subscribeEnhancedCurrentHueAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeEnhancedCurrentHueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEnhancedColorModeAttribute( - IntegerAttributeCallback callback - ) { - readEnhancedColorModeAttribute(chipClusterPtr, callback); - } - public void subscribeEnhancedColorModeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeEnhancedColorModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readColorLoopActiveAttribute( - IntegerAttributeCallback callback - ) { - readColorLoopActiveAttribute(chipClusterPtr, callback); - } - public void subscribeColorLoopActiveAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeColorLoopActiveAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readColorLoopDirectionAttribute( - IntegerAttributeCallback callback - ) { - readColorLoopDirectionAttribute(chipClusterPtr, callback); - } - public void subscribeColorLoopDirectionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeColorLoopDirectionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readColorLoopTimeAttribute( - IntegerAttributeCallback callback - ) { - readColorLoopTimeAttribute(chipClusterPtr, callback); - } - public void subscribeColorLoopTimeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeColorLoopTimeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readColorLoopStartEnhancedHueAttribute( - IntegerAttributeCallback callback - ) { - readColorLoopStartEnhancedHueAttribute(chipClusterPtr, callback); - } - public void subscribeColorLoopStartEnhancedHueAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeColorLoopStartEnhancedHueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readColorLoopStoredEnhancedHueAttribute( - IntegerAttributeCallback callback - ) { - readColorLoopStoredEnhancedHueAttribute(chipClusterPtr, callback); - } - public void subscribeColorLoopStoredEnhancedHueAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeColorLoopStoredEnhancedHueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readColorCapabilitiesAttribute( - IntegerAttributeCallback callback - ) { - readColorCapabilitiesAttribute(chipClusterPtr, callback); - } - public void subscribeColorCapabilitiesAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeColorCapabilitiesAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readColorTempPhysicalMinMiredsAttribute( - IntegerAttributeCallback callback - ) { - readColorTempPhysicalMinMiredsAttribute(chipClusterPtr, callback); - } - public void subscribeColorTempPhysicalMinMiredsAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeColorTempPhysicalMinMiredsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readColorTempPhysicalMaxMiredsAttribute( - IntegerAttributeCallback callback - ) { - readColorTempPhysicalMaxMiredsAttribute(chipClusterPtr, callback); - } - public void subscribeColorTempPhysicalMaxMiredsAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeColorTempPhysicalMaxMiredsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCoupleColorTempToLevelMinMiredsAttribute( - IntegerAttributeCallback callback - ) { - readCoupleColorTempToLevelMinMiredsAttribute(chipClusterPtr, callback); - } - public void subscribeCoupleColorTempToLevelMinMiredsAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCoupleColorTempToLevelMinMiredsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readStartUpColorTemperatureMiredsAttribute( - StartUpColorTemperatureMiredsAttributeCallback callback - ) { - readStartUpColorTemperatureMiredsAttribute(chipClusterPtr, callback); - } - public void writeStartUpColorTemperatureMiredsAttribute(DefaultClusterCallback callback, Integer value) { - writeStartUpColorTemperatureMiredsAttribute(chipClusterPtr, callback, value, null); - } - - public void writeStartUpColorTemperatureMiredsAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeStartUpColorTemperatureMiredsAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeStartUpColorTemperatureMiredsAttribute( - StartUpColorTemperatureMiredsAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeStartUpColorTemperatureMiredsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readCurrentHueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeCurrentHueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readCurrentSaturationAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeCurrentSaturationAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRemainingTimeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRemainingTimeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readCurrentXAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeCurrentXAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readCurrentYAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeCurrentYAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDriftCompensationAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeDriftCompensationAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readCompensationTextAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeCompensationTextAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readColorTemperatureMiredsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeColorTemperatureMiredsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readColorModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeColorModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readOptionsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeOptionsAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeOptionsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readNumberOfPrimariesAttribute(long chipClusterPtr, - NumberOfPrimariesAttributeCallback callback - ); - private native void subscribeNumberOfPrimariesAttribute(long chipClusterPtr, - NumberOfPrimariesAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPrimary1XAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePrimary1XAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPrimary1YAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePrimary1YAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPrimary1IntensityAttribute(long chipClusterPtr, - Primary1IntensityAttributeCallback callback - ); - private native void subscribePrimary1IntensityAttribute(long chipClusterPtr, - Primary1IntensityAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPrimary2XAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePrimary2XAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPrimary2YAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePrimary2YAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPrimary2IntensityAttribute(long chipClusterPtr, - Primary2IntensityAttributeCallback callback - ); - private native void subscribePrimary2IntensityAttribute(long chipClusterPtr, - Primary2IntensityAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPrimary3XAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePrimary3XAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPrimary3YAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePrimary3YAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPrimary3IntensityAttribute(long chipClusterPtr, - Primary3IntensityAttributeCallback callback - ); - private native void subscribePrimary3IntensityAttribute(long chipClusterPtr, - Primary3IntensityAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPrimary4XAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePrimary4XAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPrimary4YAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePrimary4YAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPrimary4IntensityAttribute(long chipClusterPtr, - Primary4IntensityAttributeCallback callback - ); - private native void subscribePrimary4IntensityAttribute(long chipClusterPtr, - Primary4IntensityAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPrimary5XAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePrimary5XAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPrimary5YAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePrimary5YAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPrimary5IntensityAttribute(long chipClusterPtr, - Primary5IntensityAttributeCallback callback - ); - private native void subscribePrimary5IntensityAttribute(long chipClusterPtr, - Primary5IntensityAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPrimary6XAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePrimary6XAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPrimary6YAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePrimary6YAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPrimary6IntensityAttribute(long chipClusterPtr, - Primary6IntensityAttributeCallback callback - ); - private native void subscribePrimary6IntensityAttribute(long chipClusterPtr, - Primary6IntensityAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readWhitePointXAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeWhitePointXAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeWhitePointXAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readWhitePointYAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeWhitePointYAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeWhitePointYAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readColorPointRXAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeColorPointRXAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeColorPointRXAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readColorPointRYAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeColorPointRYAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeColorPointRYAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readColorPointRIntensityAttribute(long chipClusterPtr, - ColorPointRIntensityAttributeCallback callback - ); - - private native void writeColorPointRIntensityAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeColorPointRIntensityAttribute(long chipClusterPtr, - ColorPointRIntensityAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readColorPointGXAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeColorPointGXAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeColorPointGXAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readColorPointGYAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeColorPointGYAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeColorPointGYAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readColorPointGIntensityAttribute(long chipClusterPtr, - ColorPointGIntensityAttributeCallback callback - ); - - private native void writeColorPointGIntensityAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeColorPointGIntensityAttribute(long chipClusterPtr, - ColorPointGIntensityAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readColorPointBXAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeColorPointBXAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeColorPointBXAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readColorPointBYAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeColorPointBYAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeColorPointBYAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readColorPointBIntensityAttribute(long chipClusterPtr, - ColorPointBIntensityAttributeCallback callback - ); - - private native void writeColorPointBIntensityAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeColorPointBIntensityAttribute(long chipClusterPtr, - ColorPointBIntensityAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEnhancedCurrentHueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeEnhancedCurrentHueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readEnhancedColorModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeEnhancedColorModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readColorLoopActiveAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeColorLoopActiveAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readColorLoopDirectionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeColorLoopDirectionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readColorLoopTimeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeColorLoopTimeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readColorLoopStartEnhancedHueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeColorLoopStartEnhancedHueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readColorLoopStoredEnhancedHueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeColorLoopStoredEnhancedHueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readColorCapabilitiesAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeColorCapabilitiesAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readColorTempPhysicalMinMiredsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeColorTempPhysicalMinMiredsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readColorTempPhysicalMaxMiredsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeColorTempPhysicalMaxMiredsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readCoupleColorTempToLevelMinMiredsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeCoupleColorTempToLevelMinMiredsAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readStartUpColorTemperatureMiredsAttribute(long chipClusterPtr, - StartUpColorTemperatureMiredsAttributeCallback callback - ); - - private native void writeStartUpColorTemperatureMiredsAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeStartUpColorTemperatureMiredsAttribute(long chipClusterPtr, - StartUpColorTemperatureMiredsAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class BallastConfigurationCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000301L; - - public BallastConfigurationCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface IntrinsicBallastFactorAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface BallastFactorAdjustmentAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface LampRatedHoursAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface LampBurnHoursAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface LampBurnHoursTripPointAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readPhysicalMinLevelAttribute( - IntegerAttributeCallback callback - ) { - readPhysicalMinLevelAttribute(chipClusterPtr, callback); - } - public void subscribePhysicalMinLevelAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePhysicalMinLevelAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPhysicalMaxLevelAttribute( - IntegerAttributeCallback callback - ) { - readPhysicalMaxLevelAttribute(chipClusterPtr, callback); - } - public void subscribePhysicalMaxLevelAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePhysicalMaxLevelAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBallastStatusAttribute( - IntegerAttributeCallback callback - ) { - readBallastStatusAttribute(chipClusterPtr, callback); - } - public void subscribeBallastStatusAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBallastStatusAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinLevelAttribute( - IntegerAttributeCallback callback - ) { - readMinLevelAttribute(chipClusterPtr, callback); - } - public void writeMinLevelAttribute(DefaultClusterCallback callback, Integer value) { - writeMinLevelAttribute(chipClusterPtr, callback, value, null); - } - - public void writeMinLevelAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeMinLevelAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeMinLevelAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMinLevelAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxLevelAttribute( - IntegerAttributeCallback callback - ) { - readMaxLevelAttribute(chipClusterPtr, callback); - } - public void writeMaxLevelAttribute(DefaultClusterCallback callback, Integer value) { - writeMaxLevelAttribute(chipClusterPtr, callback, value, null); - } - - public void writeMaxLevelAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeMaxLevelAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeMaxLevelAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMaxLevelAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readIntrinsicBallastFactorAttribute( - IntrinsicBallastFactorAttributeCallback callback - ) { - readIntrinsicBallastFactorAttribute(chipClusterPtr, callback); - } - public void writeIntrinsicBallastFactorAttribute(DefaultClusterCallback callback, Integer value) { - writeIntrinsicBallastFactorAttribute(chipClusterPtr, callback, value, null); - } - - public void writeIntrinsicBallastFactorAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeIntrinsicBallastFactorAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeIntrinsicBallastFactorAttribute( - IntrinsicBallastFactorAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeIntrinsicBallastFactorAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBallastFactorAdjustmentAttribute( - BallastFactorAdjustmentAttributeCallback callback - ) { - readBallastFactorAdjustmentAttribute(chipClusterPtr, callback); - } - public void writeBallastFactorAdjustmentAttribute(DefaultClusterCallback callback, Integer value) { - writeBallastFactorAdjustmentAttribute(chipClusterPtr, callback, value, null); - } - - public void writeBallastFactorAdjustmentAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeBallastFactorAdjustmentAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeBallastFactorAdjustmentAttribute( - BallastFactorAdjustmentAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeBallastFactorAdjustmentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLampQuantityAttribute( - IntegerAttributeCallback callback - ) { - readLampQuantityAttribute(chipClusterPtr, callback); - } - public void subscribeLampQuantityAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLampQuantityAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLampTypeAttribute( - CharStringAttributeCallback callback - ) { - readLampTypeAttribute(chipClusterPtr, callback); - } - public void writeLampTypeAttribute(DefaultClusterCallback callback, String value) { - writeLampTypeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeLampTypeAttribute(DefaultClusterCallback callback, String value, int timedWriteTimeoutMs) { - writeLampTypeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeLampTypeAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLampTypeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLampManufacturerAttribute( - CharStringAttributeCallback callback - ) { - readLampManufacturerAttribute(chipClusterPtr, callback); - } - public void writeLampManufacturerAttribute(DefaultClusterCallback callback, String value) { - writeLampManufacturerAttribute(chipClusterPtr, callback, value, null); - } - - public void writeLampManufacturerAttribute(DefaultClusterCallback callback, String value, int timedWriteTimeoutMs) { - writeLampManufacturerAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeLampManufacturerAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLampManufacturerAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLampRatedHoursAttribute( - LampRatedHoursAttributeCallback callback - ) { - readLampRatedHoursAttribute(chipClusterPtr, callback); - } - public void writeLampRatedHoursAttribute(DefaultClusterCallback callback, Long value) { - writeLampRatedHoursAttribute(chipClusterPtr, callback, value, null); - } - - public void writeLampRatedHoursAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeLampRatedHoursAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeLampRatedHoursAttribute( - LampRatedHoursAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeLampRatedHoursAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLampBurnHoursAttribute( - LampBurnHoursAttributeCallback callback - ) { - readLampBurnHoursAttribute(chipClusterPtr, callback); - } - public void writeLampBurnHoursAttribute(DefaultClusterCallback callback, Long value) { - writeLampBurnHoursAttribute(chipClusterPtr, callback, value, null); - } - - public void writeLampBurnHoursAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeLampBurnHoursAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeLampBurnHoursAttribute( - LampBurnHoursAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeLampBurnHoursAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLampAlarmModeAttribute( - IntegerAttributeCallback callback - ) { - readLampAlarmModeAttribute(chipClusterPtr, callback); - } - public void writeLampAlarmModeAttribute(DefaultClusterCallback callback, Integer value) { - writeLampAlarmModeAttribute(chipClusterPtr, callback, value, null); - } - - public void writeLampAlarmModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeLampAlarmModeAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeLampAlarmModeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLampAlarmModeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLampBurnHoursTripPointAttribute( - LampBurnHoursTripPointAttributeCallback callback - ) { - readLampBurnHoursTripPointAttribute(chipClusterPtr, callback); - } - public void writeLampBurnHoursTripPointAttribute(DefaultClusterCallback callback, Long value) { - writeLampBurnHoursTripPointAttribute(chipClusterPtr, callback, value, null); - } - - public void writeLampBurnHoursTripPointAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeLampBurnHoursTripPointAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeLampBurnHoursTripPointAttribute( - LampBurnHoursTripPointAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeLampBurnHoursTripPointAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readPhysicalMinLevelAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePhysicalMinLevelAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPhysicalMaxLevelAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePhysicalMaxLevelAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBallastStatusAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeBallastStatusAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMinLevelAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeMinLevelAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeMinLevelAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMaxLevelAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeMaxLevelAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeMaxLevelAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readIntrinsicBallastFactorAttribute(long chipClusterPtr, - IntrinsicBallastFactorAttributeCallback callback - ); - - private native void writeIntrinsicBallastFactorAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeIntrinsicBallastFactorAttribute(long chipClusterPtr, - IntrinsicBallastFactorAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readBallastFactorAdjustmentAttribute(long chipClusterPtr, - BallastFactorAdjustmentAttributeCallback callback - ); - - private native void writeBallastFactorAdjustmentAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeBallastFactorAdjustmentAttribute(long chipClusterPtr, - BallastFactorAdjustmentAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readLampQuantityAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeLampQuantityAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLampTypeAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - - private native void writeLampTypeAttribute(long chipClusterPtr, DefaultClusterCallback callback, String value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeLampTypeAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLampManufacturerAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - - private native void writeLampManufacturerAttribute(long chipClusterPtr, DefaultClusterCallback callback, String value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeLampManufacturerAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLampRatedHoursAttribute(long chipClusterPtr, - LampRatedHoursAttributeCallback callback - ); - - private native void writeLampRatedHoursAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeLampRatedHoursAttribute(long chipClusterPtr, - LampRatedHoursAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readLampBurnHoursAttribute(long chipClusterPtr, - LampBurnHoursAttributeCallback callback - ); - - private native void writeLampBurnHoursAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeLampBurnHoursAttribute(long chipClusterPtr, - LampBurnHoursAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readLampAlarmModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeLampAlarmModeAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeLampAlarmModeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLampBurnHoursTripPointAttribute(long chipClusterPtr, - LampBurnHoursTripPointAttributeCallback callback - ); - - private native void writeLampBurnHoursTripPointAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeLampBurnHoursTripPointAttribute(long chipClusterPtr, - LampBurnHoursTripPointAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class IlluminanceMeasurementCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000400L; - - public IlluminanceMeasurementCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface MeasuredValueAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MinMeasuredValueAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MaxMeasuredValueAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface LightSensorTypeAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - ) { - readMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - ) { - readMinMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMinMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - ) { - readMaxMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMaxMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readToleranceAttribute( - IntegerAttributeCallback callback - ) { - readToleranceAttribute(chipClusterPtr, callback); - } - public void subscribeToleranceAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeToleranceAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLightSensorTypeAttribute( - LightSensorTypeAttributeCallback callback - ) { - readLightSensorTypeAttribute(chipClusterPtr, callback); - } - public void subscribeLightSensorTypeAttribute( - LightSensorTypeAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeLightSensorTypeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - ); - private native void subscribeMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - ); - private native void subscribeMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - ); - private native void subscribeMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readToleranceAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeToleranceAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLightSensorTypeAttribute(long chipClusterPtr, - LightSensorTypeAttributeCallback callback - ); - private native void subscribeLightSensorTypeAttribute(long chipClusterPtr, - LightSensorTypeAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class TemperatureMeasurementCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000402L; - - public TemperatureMeasurementCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface MeasuredValueAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MinMeasuredValueAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MaxMeasuredValueAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - ) { - readMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - ) { - readMinMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMinMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - ) { - readMaxMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMaxMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readToleranceAttribute( - IntegerAttributeCallback callback - ) { - readToleranceAttribute(chipClusterPtr, callback); - } - public void subscribeToleranceAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeToleranceAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - ); - private native void subscribeMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - ); - private native void subscribeMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - ); - private native void subscribeMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readToleranceAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeToleranceAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class PressureMeasurementCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000403L; - - public PressureMeasurementCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface MeasuredValueAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MinMeasuredValueAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MaxMeasuredValueAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ScaledValueAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MinScaledValueAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MaxScaledValueAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - ) { - readMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - ) { - readMinMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMinMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - ) { - readMaxMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMaxMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readToleranceAttribute( - IntegerAttributeCallback callback - ) { - readToleranceAttribute(chipClusterPtr, callback); - } - public void subscribeToleranceAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeToleranceAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readScaledValueAttribute( - ScaledValueAttributeCallback callback - ) { - readScaledValueAttribute(chipClusterPtr, callback); - } - public void subscribeScaledValueAttribute( - ScaledValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeScaledValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinScaledValueAttribute( - MinScaledValueAttributeCallback callback - ) { - readMinScaledValueAttribute(chipClusterPtr, callback); - } - public void subscribeMinScaledValueAttribute( - MinScaledValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMinScaledValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxScaledValueAttribute( - MaxScaledValueAttributeCallback callback - ) { - readMaxScaledValueAttribute(chipClusterPtr, callback); - } - public void subscribeMaxScaledValueAttribute( - MaxScaledValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMaxScaledValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readScaledToleranceAttribute( - IntegerAttributeCallback callback - ) { - readScaledToleranceAttribute(chipClusterPtr, callback); - } - public void subscribeScaledToleranceAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeScaledToleranceAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readScaleAttribute( - IntegerAttributeCallback callback - ) { - readScaleAttribute(chipClusterPtr, callback); - } - public void subscribeScaleAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeScaleAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - ); - private native void subscribeMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - ); - private native void subscribeMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - ); - private native void subscribeMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readToleranceAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeToleranceAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readScaledValueAttribute(long chipClusterPtr, - ScaledValueAttributeCallback callback - ); - private native void subscribeScaledValueAttribute(long chipClusterPtr, - ScaledValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMinScaledValueAttribute(long chipClusterPtr, - MinScaledValueAttributeCallback callback - ); - private native void subscribeMinScaledValueAttribute(long chipClusterPtr, - MinScaledValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMaxScaledValueAttribute(long chipClusterPtr, - MaxScaledValueAttributeCallback callback - ); - private native void subscribeMaxScaledValueAttribute(long chipClusterPtr, - MaxScaledValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readScaledToleranceAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeScaledToleranceAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readScaleAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeScaleAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class FlowMeasurementCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000404L; - - public FlowMeasurementCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface MeasuredValueAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MinMeasuredValueAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MaxMeasuredValueAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - ) { - readMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - ) { - readMinMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMinMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - ) { - readMaxMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMaxMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readToleranceAttribute( - IntegerAttributeCallback callback - ) { - readToleranceAttribute(chipClusterPtr, callback); - } - public void subscribeToleranceAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeToleranceAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - ); - private native void subscribeMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - ); - private native void subscribeMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - ); - private native void subscribeMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readToleranceAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeToleranceAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class RelativeHumidityMeasurementCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000405L; - - public RelativeHumidityMeasurementCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface MeasuredValueAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MinMeasuredValueAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MaxMeasuredValueAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - ) { - readMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - ) { - readMinMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMinMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - ) { - readMaxMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMaxMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readToleranceAttribute( - IntegerAttributeCallback callback - ) { - readToleranceAttribute(chipClusterPtr, callback); - } - public void subscribeToleranceAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeToleranceAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - ); - private native void subscribeMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - ); - private native void subscribeMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - ); - private native void subscribeMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readToleranceAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeToleranceAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class OccupancySensingCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000406L; - - public OccupancySensingCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readOccupancyAttribute( - IntegerAttributeCallback callback - ) { - readOccupancyAttribute(chipClusterPtr, callback); - } - public void subscribeOccupancyAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeOccupancyAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOccupancySensorTypeAttribute( - IntegerAttributeCallback callback - ) { - readOccupancySensorTypeAttribute(chipClusterPtr, callback); - } - public void subscribeOccupancySensorTypeAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeOccupancySensorTypeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOccupancySensorTypeBitmapAttribute( - IntegerAttributeCallback callback - ) { - readOccupancySensorTypeBitmapAttribute(chipClusterPtr, callback); - } - public void subscribeOccupancySensorTypeBitmapAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeOccupancySensorTypeBitmapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPIROccupiedToUnoccupiedDelayAttribute( - IntegerAttributeCallback callback - ) { - readPIROccupiedToUnoccupiedDelayAttribute(chipClusterPtr, callback); - } - public void writePIROccupiedToUnoccupiedDelayAttribute(DefaultClusterCallback callback, Integer value) { - writePIROccupiedToUnoccupiedDelayAttribute(chipClusterPtr, callback, value, null); - } - - public void writePIROccupiedToUnoccupiedDelayAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writePIROccupiedToUnoccupiedDelayAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribePIROccupiedToUnoccupiedDelayAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePIROccupiedToUnoccupiedDelayAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPIRUnoccupiedToOccupiedDelayAttribute( - IntegerAttributeCallback callback - ) { - readPIRUnoccupiedToOccupiedDelayAttribute(chipClusterPtr, callback); - } - public void writePIRUnoccupiedToOccupiedDelayAttribute(DefaultClusterCallback callback, Integer value) { - writePIRUnoccupiedToOccupiedDelayAttribute(chipClusterPtr, callback, value, null); - } - - public void writePIRUnoccupiedToOccupiedDelayAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writePIRUnoccupiedToOccupiedDelayAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribePIRUnoccupiedToOccupiedDelayAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePIRUnoccupiedToOccupiedDelayAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPIRUnoccupiedToOccupiedThresholdAttribute( - IntegerAttributeCallback callback - ) { - readPIRUnoccupiedToOccupiedThresholdAttribute(chipClusterPtr, callback); - } - public void writePIRUnoccupiedToOccupiedThresholdAttribute(DefaultClusterCallback callback, Integer value) { - writePIRUnoccupiedToOccupiedThresholdAttribute(chipClusterPtr, callback, value, null); - } - - public void writePIRUnoccupiedToOccupiedThresholdAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writePIRUnoccupiedToOccupiedThresholdAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribePIRUnoccupiedToOccupiedThresholdAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePIRUnoccupiedToOccupiedThresholdAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUltrasonicOccupiedToUnoccupiedDelayAttribute( - IntegerAttributeCallback callback - ) { - readUltrasonicOccupiedToUnoccupiedDelayAttribute(chipClusterPtr, callback); - } - public void writeUltrasonicOccupiedToUnoccupiedDelayAttribute(DefaultClusterCallback callback, Integer value) { - writeUltrasonicOccupiedToUnoccupiedDelayAttribute(chipClusterPtr, callback, value, null); - } - - public void writeUltrasonicOccupiedToUnoccupiedDelayAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeUltrasonicOccupiedToUnoccupiedDelayAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeUltrasonicOccupiedToUnoccupiedDelayAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeUltrasonicOccupiedToUnoccupiedDelayAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUltrasonicUnoccupiedToOccupiedDelayAttribute( - IntegerAttributeCallback callback - ) { - readUltrasonicUnoccupiedToOccupiedDelayAttribute(chipClusterPtr, callback); - } - public void writeUltrasonicUnoccupiedToOccupiedDelayAttribute(DefaultClusterCallback callback, Integer value) { - writeUltrasonicUnoccupiedToOccupiedDelayAttribute(chipClusterPtr, callback, value, null); - } - - public void writeUltrasonicUnoccupiedToOccupiedDelayAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeUltrasonicUnoccupiedToOccupiedDelayAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeUltrasonicUnoccupiedToOccupiedDelayAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeUltrasonicUnoccupiedToOccupiedDelayAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUltrasonicUnoccupiedToOccupiedThresholdAttribute( - IntegerAttributeCallback callback - ) { - readUltrasonicUnoccupiedToOccupiedThresholdAttribute(chipClusterPtr, callback); - } - public void writeUltrasonicUnoccupiedToOccupiedThresholdAttribute(DefaultClusterCallback callback, Integer value) { - writeUltrasonicUnoccupiedToOccupiedThresholdAttribute(chipClusterPtr, callback, value, null); - } - - public void writeUltrasonicUnoccupiedToOccupiedThresholdAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeUltrasonicUnoccupiedToOccupiedThresholdAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeUltrasonicUnoccupiedToOccupiedThresholdAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeUltrasonicUnoccupiedToOccupiedThresholdAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPhysicalContactOccupiedToUnoccupiedDelayAttribute( - IntegerAttributeCallback callback - ) { - readPhysicalContactOccupiedToUnoccupiedDelayAttribute(chipClusterPtr, callback); - } - public void writePhysicalContactOccupiedToUnoccupiedDelayAttribute(DefaultClusterCallback callback, Integer value) { - writePhysicalContactOccupiedToUnoccupiedDelayAttribute(chipClusterPtr, callback, value, null); - } - - public void writePhysicalContactOccupiedToUnoccupiedDelayAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writePhysicalContactOccupiedToUnoccupiedDelayAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribePhysicalContactOccupiedToUnoccupiedDelayAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePhysicalContactOccupiedToUnoccupiedDelayAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPhysicalContactUnoccupiedToOccupiedDelayAttribute( - IntegerAttributeCallback callback - ) { - readPhysicalContactUnoccupiedToOccupiedDelayAttribute(chipClusterPtr, callback); - } - public void writePhysicalContactUnoccupiedToOccupiedDelayAttribute(DefaultClusterCallback callback, Integer value) { - writePhysicalContactUnoccupiedToOccupiedDelayAttribute(chipClusterPtr, callback, value, null); - } - - public void writePhysicalContactUnoccupiedToOccupiedDelayAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writePhysicalContactUnoccupiedToOccupiedDelayAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribePhysicalContactUnoccupiedToOccupiedDelayAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePhysicalContactUnoccupiedToOccupiedDelayAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPhysicalContactUnoccupiedToOccupiedThresholdAttribute( - IntegerAttributeCallback callback - ) { - readPhysicalContactUnoccupiedToOccupiedThresholdAttribute(chipClusterPtr, callback); - } - public void writePhysicalContactUnoccupiedToOccupiedThresholdAttribute(DefaultClusterCallback callback, Integer value) { - writePhysicalContactUnoccupiedToOccupiedThresholdAttribute(chipClusterPtr, callback, value, null); - } - - public void writePhysicalContactUnoccupiedToOccupiedThresholdAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writePhysicalContactUnoccupiedToOccupiedThresholdAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribePhysicalContactUnoccupiedToOccupiedThresholdAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePhysicalContactUnoccupiedToOccupiedThresholdAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readOccupancyAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeOccupancyAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readOccupancySensorTypeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeOccupancySensorTypeAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readOccupancySensorTypeBitmapAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeOccupancySensorTypeBitmapAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPIROccupiedToUnoccupiedDelayAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writePIROccupiedToUnoccupiedDelayAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribePIROccupiedToUnoccupiedDelayAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPIRUnoccupiedToOccupiedDelayAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writePIRUnoccupiedToOccupiedDelayAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribePIRUnoccupiedToOccupiedDelayAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPIRUnoccupiedToOccupiedThresholdAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writePIRUnoccupiedToOccupiedThresholdAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribePIRUnoccupiedToOccupiedThresholdAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readUltrasonicOccupiedToUnoccupiedDelayAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeUltrasonicOccupiedToUnoccupiedDelayAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeUltrasonicOccupiedToUnoccupiedDelayAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readUltrasonicUnoccupiedToOccupiedDelayAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeUltrasonicUnoccupiedToOccupiedDelayAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeUltrasonicUnoccupiedToOccupiedDelayAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readUltrasonicUnoccupiedToOccupiedThresholdAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeUltrasonicUnoccupiedToOccupiedThresholdAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeUltrasonicUnoccupiedToOccupiedThresholdAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPhysicalContactOccupiedToUnoccupiedDelayAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writePhysicalContactOccupiedToUnoccupiedDelayAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribePhysicalContactOccupiedToUnoccupiedDelayAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPhysicalContactUnoccupiedToOccupiedDelayAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writePhysicalContactUnoccupiedToOccupiedDelayAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribePhysicalContactUnoccupiedToOccupiedDelayAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPhysicalContactUnoccupiedToOccupiedThresholdAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writePhysicalContactUnoccupiedToOccupiedThresholdAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribePhysicalContactUnoccupiedToOccupiedThresholdAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class CarbonMonoxideConcentrationMeasurementCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000040CL; - - public CarbonMonoxideConcentrationMeasurementCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface MeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MinMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MaxMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface PeakMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AverageMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - ) { - readMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - ) { - readMinMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMinMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - ) { - readMaxMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMaxMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPeakMeasuredValueAttribute( - PeakMeasuredValueAttributeCallback callback - ) { - readPeakMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribePeakMeasuredValueAttribute( - PeakMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePeakMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPeakMeasuredValueWindowAttribute( - LongAttributeCallback callback - ) { - readPeakMeasuredValueWindowAttribute(chipClusterPtr, callback); - } - public void subscribePeakMeasuredValueWindowAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePeakMeasuredValueWindowAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageMeasuredValueAttribute( - AverageMeasuredValueAttributeCallback callback - ) { - readAverageMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeAverageMeasuredValueAttribute( - AverageMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAverageMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageMeasuredValueWindowAttribute( - LongAttributeCallback callback - ) { - readAverageMeasuredValueWindowAttribute(chipClusterPtr, callback); - } - public void subscribeAverageMeasuredValueWindowAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAverageMeasuredValueWindowAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUncertaintyAttribute( - FloatAttributeCallback callback - ) { - readUncertaintyAttribute(chipClusterPtr, callback); - } - public void subscribeUncertaintyAttribute( - FloatAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeUncertaintyAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasurementUnitAttribute( - IntegerAttributeCallback callback - ) { - readMeasurementUnitAttribute(chipClusterPtr, callback); - } - public void subscribeMeasurementUnitAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasurementUnitAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasurementMediumAttribute( - IntegerAttributeCallback callback - ) { - readMeasurementMediumAttribute(chipClusterPtr, callback); - } - public void subscribeMeasurementMediumAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasurementMediumAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLevelValueAttribute( - IntegerAttributeCallback callback - ) { - readLevelValueAttribute(chipClusterPtr, callback); - } - public void subscribeLevelValueAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLevelValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - ); - private native void subscribeMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - ); - private native void subscribeMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - ); - private native void subscribeMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPeakMeasuredValueAttribute(long chipClusterPtr, - PeakMeasuredValueAttributeCallback callback - ); - private native void subscribePeakMeasuredValueAttribute(long chipClusterPtr, - PeakMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPeakMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribePeakMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAverageMeasuredValueAttribute(long chipClusterPtr, - AverageMeasuredValueAttributeCallback callback - ); - private native void subscribeAverageMeasuredValueAttribute(long chipClusterPtr, - AverageMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAverageMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeAverageMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readUncertaintyAttribute(long chipClusterPtr, - FloatAttributeCallback callback - ); - private native void subscribeUncertaintyAttribute(long chipClusterPtr, - FloatAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasurementUnitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasurementUnitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasurementMediumAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasurementMediumAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLevelValueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeLevelValueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class CarbonDioxideConcentrationMeasurementCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000040DL; - - public CarbonDioxideConcentrationMeasurementCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface MeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MinMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MaxMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface PeakMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AverageMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - ) { - readMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - ) { - readMinMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMinMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - ) { - readMaxMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMaxMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPeakMeasuredValueAttribute( - PeakMeasuredValueAttributeCallback callback - ) { - readPeakMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribePeakMeasuredValueAttribute( - PeakMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePeakMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPeakMeasuredValueWindowAttribute( - LongAttributeCallback callback - ) { - readPeakMeasuredValueWindowAttribute(chipClusterPtr, callback); - } - public void subscribePeakMeasuredValueWindowAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePeakMeasuredValueWindowAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageMeasuredValueAttribute( - AverageMeasuredValueAttributeCallback callback - ) { - readAverageMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeAverageMeasuredValueAttribute( - AverageMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAverageMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageMeasuredValueWindowAttribute( - LongAttributeCallback callback - ) { - readAverageMeasuredValueWindowAttribute(chipClusterPtr, callback); - } - public void subscribeAverageMeasuredValueWindowAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAverageMeasuredValueWindowAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUncertaintyAttribute( - FloatAttributeCallback callback - ) { - readUncertaintyAttribute(chipClusterPtr, callback); - } - public void subscribeUncertaintyAttribute( - FloatAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeUncertaintyAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasurementUnitAttribute( - IntegerAttributeCallback callback - ) { - readMeasurementUnitAttribute(chipClusterPtr, callback); - } - public void subscribeMeasurementUnitAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasurementUnitAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasurementMediumAttribute( - IntegerAttributeCallback callback - ) { - readMeasurementMediumAttribute(chipClusterPtr, callback); - } - public void subscribeMeasurementMediumAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasurementMediumAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLevelValueAttribute( - IntegerAttributeCallback callback - ) { - readLevelValueAttribute(chipClusterPtr, callback); - } - public void subscribeLevelValueAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLevelValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - ); - private native void subscribeMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - ); - private native void subscribeMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - ); - private native void subscribeMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPeakMeasuredValueAttribute(long chipClusterPtr, - PeakMeasuredValueAttributeCallback callback - ); - private native void subscribePeakMeasuredValueAttribute(long chipClusterPtr, - PeakMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPeakMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribePeakMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAverageMeasuredValueAttribute(long chipClusterPtr, - AverageMeasuredValueAttributeCallback callback - ); - private native void subscribeAverageMeasuredValueAttribute(long chipClusterPtr, - AverageMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAverageMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeAverageMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readUncertaintyAttribute(long chipClusterPtr, - FloatAttributeCallback callback - ); - private native void subscribeUncertaintyAttribute(long chipClusterPtr, - FloatAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasurementUnitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasurementUnitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasurementMediumAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasurementMediumAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLevelValueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeLevelValueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class NitrogenDioxideConcentrationMeasurementCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000413L; - - public NitrogenDioxideConcentrationMeasurementCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface MeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MinMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MaxMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface PeakMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AverageMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - ) { - readMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - ) { - readMinMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMinMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - ) { - readMaxMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMaxMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPeakMeasuredValueAttribute( - PeakMeasuredValueAttributeCallback callback - ) { - readPeakMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribePeakMeasuredValueAttribute( - PeakMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePeakMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPeakMeasuredValueWindowAttribute( - LongAttributeCallback callback - ) { - readPeakMeasuredValueWindowAttribute(chipClusterPtr, callback); - } - public void subscribePeakMeasuredValueWindowAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePeakMeasuredValueWindowAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageMeasuredValueAttribute( - AverageMeasuredValueAttributeCallback callback - ) { - readAverageMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeAverageMeasuredValueAttribute( - AverageMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAverageMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageMeasuredValueWindowAttribute( - LongAttributeCallback callback - ) { - readAverageMeasuredValueWindowAttribute(chipClusterPtr, callback); - } - public void subscribeAverageMeasuredValueWindowAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAverageMeasuredValueWindowAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUncertaintyAttribute( - FloatAttributeCallback callback - ) { - readUncertaintyAttribute(chipClusterPtr, callback); - } - public void subscribeUncertaintyAttribute( - FloatAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeUncertaintyAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasurementUnitAttribute( - IntegerAttributeCallback callback - ) { - readMeasurementUnitAttribute(chipClusterPtr, callback); - } - public void subscribeMeasurementUnitAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasurementUnitAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasurementMediumAttribute( - IntegerAttributeCallback callback - ) { - readMeasurementMediumAttribute(chipClusterPtr, callback); - } - public void subscribeMeasurementMediumAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasurementMediumAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLevelValueAttribute( - IntegerAttributeCallback callback - ) { - readLevelValueAttribute(chipClusterPtr, callback); - } - public void subscribeLevelValueAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLevelValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - ); - private native void subscribeMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - ); - private native void subscribeMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - ); - private native void subscribeMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPeakMeasuredValueAttribute(long chipClusterPtr, - PeakMeasuredValueAttributeCallback callback - ); - private native void subscribePeakMeasuredValueAttribute(long chipClusterPtr, - PeakMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPeakMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribePeakMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAverageMeasuredValueAttribute(long chipClusterPtr, - AverageMeasuredValueAttributeCallback callback - ); - private native void subscribeAverageMeasuredValueAttribute(long chipClusterPtr, - AverageMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAverageMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeAverageMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readUncertaintyAttribute(long chipClusterPtr, - FloatAttributeCallback callback - ); - private native void subscribeUncertaintyAttribute(long chipClusterPtr, - FloatAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasurementUnitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasurementUnitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasurementMediumAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasurementMediumAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLevelValueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeLevelValueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class OzoneConcentrationMeasurementCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000415L; - - public OzoneConcentrationMeasurementCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface MeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MinMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MaxMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface PeakMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AverageMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - ) { - readMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - ) { - readMinMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMinMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - ) { - readMaxMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMaxMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPeakMeasuredValueAttribute( - PeakMeasuredValueAttributeCallback callback - ) { - readPeakMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribePeakMeasuredValueAttribute( - PeakMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePeakMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPeakMeasuredValueWindowAttribute( - LongAttributeCallback callback - ) { - readPeakMeasuredValueWindowAttribute(chipClusterPtr, callback); - } - public void subscribePeakMeasuredValueWindowAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePeakMeasuredValueWindowAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageMeasuredValueAttribute( - AverageMeasuredValueAttributeCallback callback - ) { - readAverageMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeAverageMeasuredValueAttribute( - AverageMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAverageMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageMeasuredValueWindowAttribute( - LongAttributeCallback callback - ) { - readAverageMeasuredValueWindowAttribute(chipClusterPtr, callback); - } - public void subscribeAverageMeasuredValueWindowAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAverageMeasuredValueWindowAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUncertaintyAttribute( - FloatAttributeCallback callback - ) { - readUncertaintyAttribute(chipClusterPtr, callback); - } - public void subscribeUncertaintyAttribute( - FloatAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeUncertaintyAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasurementUnitAttribute( - IntegerAttributeCallback callback - ) { - readMeasurementUnitAttribute(chipClusterPtr, callback); - } - public void subscribeMeasurementUnitAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasurementUnitAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasurementMediumAttribute( - IntegerAttributeCallback callback - ) { - readMeasurementMediumAttribute(chipClusterPtr, callback); - } - public void subscribeMeasurementMediumAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasurementMediumAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLevelValueAttribute( - IntegerAttributeCallback callback - ) { - readLevelValueAttribute(chipClusterPtr, callback); - } - public void subscribeLevelValueAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLevelValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - ); - private native void subscribeMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - ); - private native void subscribeMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - ); - private native void subscribeMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPeakMeasuredValueAttribute(long chipClusterPtr, - PeakMeasuredValueAttributeCallback callback - ); - private native void subscribePeakMeasuredValueAttribute(long chipClusterPtr, - PeakMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPeakMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribePeakMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAverageMeasuredValueAttribute(long chipClusterPtr, - AverageMeasuredValueAttributeCallback callback - ); - private native void subscribeAverageMeasuredValueAttribute(long chipClusterPtr, - AverageMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAverageMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeAverageMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readUncertaintyAttribute(long chipClusterPtr, - FloatAttributeCallback callback - ); - private native void subscribeUncertaintyAttribute(long chipClusterPtr, - FloatAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasurementUnitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasurementUnitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasurementMediumAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasurementMediumAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLevelValueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeLevelValueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class Pm25ConcentrationMeasurementCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000042AL; - - public Pm25ConcentrationMeasurementCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface MeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MinMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MaxMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface PeakMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AverageMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - ) { - readMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - ) { - readMinMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMinMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - ) { - readMaxMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMaxMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPeakMeasuredValueAttribute( - PeakMeasuredValueAttributeCallback callback - ) { - readPeakMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribePeakMeasuredValueAttribute( - PeakMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePeakMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPeakMeasuredValueWindowAttribute( - LongAttributeCallback callback - ) { - readPeakMeasuredValueWindowAttribute(chipClusterPtr, callback); - } - public void subscribePeakMeasuredValueWindowAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePeakMeasuredValueWindowAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageMeasuredValueAttribute( - AverageMeasuredValueAttributeCallback callback - ) { - readAverageMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeAverageMeasuredValueAttribute( - AverageMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAverageMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageMeasuredValueWindowAttribute( - LongAttributeCallback callback - ) { - readAverageMeasuredValueWindowAttribute(chipClusterPtr, callback); - } - public void subscribeAverageMeasuredValueWindowAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAverageMeasuredValueWindowAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUncertaintyAttribute( - FloatAttributeCallback callback - ) { - readUncertaintyAttribute(chipClusterPtr, callback); - } - public void subscribeUncertaintyAttribute( - FloatAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeUncertaintyAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasurementUnitAttribute( - IntegerAttributeCallback callback - ) { - readMeasurementUnitAttribute(chipClusterPtr, callback); - } - public void subscribeMeasurementUnitAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasurementUnitAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasurementMediumAttribute( - IntegerAttributeCallback callback - ) { - readMeasurementMediumAttribute(chipClusterPtr, callback); - } - public void subscribeMeasurementMediumAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasurementMediumAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLevelValueAttribute( - IntegerAttributeCallback callback - ) { - readLevelValueAttribute(chipClusterPtr, callback); - } - public void subscribeLevelValueAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLevelValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - ); - private native void subscribeMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - ); - private native void subscribeMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - ); - private native void subscribeMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPeakMeasuredValueAttribute(long chipClusterPtr, - PeakMeasuredValueAttributeCallback callback - ); - private native void subscribePeakMeasuredValueAttribute(long chipClusterPtr, - PeakMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPeakMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribePeakMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAverageMeasuredValueAttribute(long chipClusterPtr, - AverageMeasuredValueAttributeCallback callback - ); - private native void subscribeAverageMeasuredValueAttribute(long chipClusterPtr, - AverageMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAverageMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeAverageMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readUncertaintyAttribute(long chipClusterPtr, - FloatAttributeCallback callback - ); - private native void subscribeUncertaintyAttribute(long chipClusterPtr, - FloatAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasurementUnitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasurementUnitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasurementMediumAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasurementMediumAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLevelValueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeLevelValueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class FormaldehydeConcentrationMeasurementCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000042BL; - - public FormaldehydeConcentrationMeasurementCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface MeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MinMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MaxMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface PeakMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AverageMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - ) { - readMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - ) { - readMinMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMinMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - ) { - readMaxMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMaxMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPeakMeasuredValueAttribute( - PeakMeasuredValueAttributeCallback callback - ) { - readPeakMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribePeakMeasuredValueAttribute( - PeakMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePeakMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPeakMeasuredValueWindowAttribute( - LongAttributeCallback callback - ) { - readPeakMeasuredValueWindowAttribute(chipClusterPtr, callback); - } - public void subscribePeakMeasuredValueWindowAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePeakMeasuredValueWindowAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageMeasuredValueAttribute( - AverageMeasuredValueAttributeCallback callback - ) { - readAverageMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeAverageMeasuredValueAttribute( - AverageMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAverageMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageMeasuredValueWindowAttribute( - LongAttributeCallback callback - ) { - readAverageMeasuredValueWindowAttribute(chipClusterPtr, callback); - } - public void subscribeAverageMeasuredValueWindowAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAverageMeasuredValueWindowAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUncertaintyAttribute( - FloatAttributeCallback callback - ) { - readUncertaintyAttribute(chipClusterPtr, callback); - } - public void subscribeUncertaintyAttribute( - FloatAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeUncertaintyAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasurementUnitAttribute( - IntegerAttributeCallback callback - ) { - readMeasurementUnitAttribute(chipClusterPtr, callback); - } - public void subscribeMeasurementUnitAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasurementUnitAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasurementMediumAttribute( - IntegerAttributeCallback callback - ) { - readMeasurementMediumAttribute(chipClusterPtr, callback); - } - public void subscribeMeasurementMediumAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasurementMediumAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLevelValueAttribute( - IntegerAttributeCallback callback - ) { - readLevelValueAttribute(chipClusterPtr, callback); - } - public void subscribeLevelValueAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLevelValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - ); - private native void subscribeMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - ); - private native void subscribeMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - ); - private native void subscribeMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPeakMeasuredValueAttribute(long chipClusterPtr, - PeakMeasuredValueAttributeCallback callback - ); - private native void subscribePeakMeasuredValueAttribute(long chipClusterPtr, - PeakMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPeakMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribePeakMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAverageMeasuredValueAttribute(long chipClusterPtr, - AverageMeasuredValueAttributeCallback callback - ); - private native void subscribeAverageMeasuredValueAttribute(long chipClusterPtr, - AverageMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAverageMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeAverageMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readUncertaintyAttribute(long chipClusterPtr, - FloatAttributeCallback callback - ); - private native void subscribeUncertaintyAttribute(long chipClusterPtr, - FloatAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasurementUnitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasurementUnitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasurementMediumAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasurementMediumAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLevelValueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeLevelValueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class Pm1ConcentrationMeasurementCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000042CL; - - public Pm1ConcentrationMeasurementCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface MeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MinMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MaxMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface PeakMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AverageMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - ) { - readMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - ) { - readMinMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMinMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - ) { - readMaxMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMaxMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPeakMeasuredValueAttribute( - PeakMeasuredValueAttributeCallback callback - ) { - readPeakMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribePeakMeasuredValueAttribute( - PeakMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePeakMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPeakMeasuredValueWindowAttribute( - LongAttributeCallback callback - ) { - readPeakMeasuredValueWindowAttribute(chipClusterPtr, callback); - } - public void subscribePeakMeasuredValueWindowAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePeakMeasuredValueWindowAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageMeasuredValueAttribute( - AverageMeasuredValueAttributeCallback callback - ) { - readAverageMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeAverageMeasuredValueAttribute( - AverageMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAverageMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageMeasuredValueWindowAttribute( - LongAttributeCallback callback - ) { - readAverageMeasuredValueWindowAttribute(chipClusterPtr, callback); - } - public void subscribeAverageMeasuredValueWindowAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAverageMeasuredValueWindowAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUncertaintyAttribute( - FloatAttributeCallback callback - ) { - readUncertaintyAttribute(chipClusterPtr, callback); - } - public void subscribeUncertaintyAttribute( - FloatAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeUncertaintyAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasurementUnitAttribute( - IntegerAttributeCallback callback - ) { - readMeasurementUnitAttribute(chipClusterPtr, callback); - } - public void subscribeMeasurementUnitAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasurementUnitAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasurementMediumAttribute( - IntegerAttributeCallback callback - ) { - readMeasurementMediumAttribute(chipClusterPtr, callback); - } - public void subscribeMeasurementMediumAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasurementMediumAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLevelValueAttribute( - IntegerAttributeCallback callback - ) { - readLevelValueAttribute(chipClusterPtr, callback); - } - public void subscribeLevelValueAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLevelValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - ); - private native void subscribeMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - ); - private native void subscribeMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - ); - private native void subscribeMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPeakMeasuredValueAttribute(long chipClusterPtr, - PeakMeasuredValueAttributeCallback callback - ); - private native void subscribePeakMeasuredValueAttribute(long chipClusterPtr, - PeakMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPeakMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribePeakMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAverageMeasuredValueAttribute(long chipClusterPtr, - AverageMeasuredValueAttributeCallback callback - ); - private native void subscribeAverageMeasuredValueAttribute(long chipClusterPtr, - AverageMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAverageMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeAverageMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readUncertaintyAttribute(long chipClusterPtr, - FloatAttributeCallback callback - ); - private native void subscribeUncertaintyAttribute(long chipClusterPtr, - FloatAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasurementUnitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasurementUnitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasurementMediumAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasurementMediumAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLevelValueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeLevelValueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class Pm10ConcentrationMeasurementCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000042DL; - - public Pm10ConcentrationMeasurementCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface MeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MinMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MaxMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface PeakMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AverageMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - ) { - readMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - ) { - readMinMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMinMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - ) { - readMaxMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMaxMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPeakMeasuredValueAttribute( - PeakMeasuredValueAttributeCallback callback - ) { - readPeakMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribePeakMeasuredValueAttribute( - PeakMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePeakMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPeakMeasuredValueWindowAttribute( - LongAttributeCallback callback - ) { - readPeakMeasuredValueWindowAttribute(chipClusterPtr, callback); - } - public void subscribePeakMeasuredValueWindowAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePeakMeasuredValueWindowAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageMeasuredValueAttribute( - AverageMeasuredValueAttributeCallback callback - ) { - readAverageMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeAverageMeasuredValueAttribute( - AverageMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAverageMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageMeasuredValueWindowAttribute( - LongAttributeCallback callback - ) { - readAverageMeasuredValueWindowAttribute(chipClusterPtr, callback); - } - public void subscribeAverageMeasuredValueWindowAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAverageMeasuredValueWindowAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUncertaintyAttribute( - FloatAttributeCallback callback - ) { - readUncertaintyAttribute(chipClusterPtr, callback); - } - public void subscribeUncertaintyAttribute( - FloatAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeUncertaintyAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasurementUnitAttribute( - IntegerAttributeCallback callback - ) { - readMeasurementUnitAttribute(chipClusterPtr, callback); - } - public void subscribeMeasurementUnitAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasurementUnitAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasurementMediumAttribute( - IntegerAttributeCallback callback - ) { - readMeasurementMediumAttribute(chipClusterPtr, callback); - } - public void subscribeMeasurementMediumAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasurementMediumAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLevelValueAttribute( - IntegerAttributeCallback callback - ) { - readLevelValueAttribute(chipClusterPtr, callback); - } - public void subscribeLevelValueAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLevelValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - ); - private native void subscribeMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - ); - private native void subscribeMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - ); - private native void subscribeMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPeakMeasuredValueAttribute(long chipClusterPtr, - PeakMeasuredValueAttributeCallback callback - ); - private native void subscribePeakMeasuredValueAttribute(long chipClusterPtr, - PeakMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPeakMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribePeakMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAverageMeasuredValueAttribute(long chipClusterPtr, - AverageMeasuredValueAttributeCallback callback - ); - private native void subscribeAverageMeasuredValueAttribute(long chipClusterPtr, - AverageMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAverageMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeAverageMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readUncertaintyAttribute(long chipClusterPtr, - FloatAttributeCallback callback - ); - private native void subscribeUncertaintyAttribute(long chipClusterPtr, - FloatAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasurementUnitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasurementUnitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasurementMediumAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasurementMediumAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLevelValueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeLevelValueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class TotalVolatileOrganicCompoundsConcentrationMeasurementCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000042EL; - - public TotalVolatileOrganicCompoundsConcentrationMeasurementCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface MeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MinMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MaxMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface PeakMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AverageMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - ) { - readMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - ) { - readMinMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMinMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - ) { - readMaxMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMaxMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPeakMeasuredValueAttribute( - PeakMeasuredValueAttributeCallback callback - ) { - readPeakMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribePeakMeasuredValueAttribute( - PeakMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePeakMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPeakMeasuredValueWindowAttribute( - LongAttributeCallback callback - ) { - readPeakMeasuredValueWindowAttribute(chipClusterPtr, callback); - } - public void subscribePeakMeasuredValueWindowAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePeakMeasuredValueWindowAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageMeasuredValueAttribute( - AverageMeasuredValueAttributeCallback callback - ) { - readAverageMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeAverageMeasuredValueAttribute( - AverageMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAverageMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageMeasuredValueWindowAttribute( - LongAttributeCallback callback - ) { - readAverageMeasuredValueWindowAttribute(chipClusterPtr, callback); - } - public void subscribeAverageMeasuredValueWindowAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAverageMeasuredValueWindowAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUncertaintyAttribute( - FloatAttributeCallback callback - ) { - readUncertaintyAttribute(chipClusterPtr, callback); - } - public void subscribeUncertaintyAttribute( - FloatAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeUncertaintyAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasurementUnitAttribute( - IntegerAttributeCallback callback - ) { - readMeasurementUnitAttribute(chipClusterPtr, callback); - } - public void subscribeMeasurementUnitAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasurementUnitAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasurementMediumAttribute( - IntegerAttributeCallback callback - ) { - readMeasurementMediumAttribute(chipClusterPtr, callback); - } - public void subscribeMeasurementMediumAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasurementMediumAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLevelValueAttribute( - IntegerAttributeCallback callback - ) { - readLevelValueAttribute(chipClusterPtr, callback); - } - public void subscribeLevelValueAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLevelValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - ); - private native void subscribeMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - ); - private native void subscribeMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - ); - private native void subscribeMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPeakMeasuredValueAttribute(long chipClusterPtr, - PeakMeasuredValueAttributeCallback callback - ); - private native void subscribePeakMeasuredValueAttribute(long chipClusterPtr, - PeakMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPeakMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribePeakMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAverageMeasuredValueAttribute(long chipClusterPtr, - AverageMeasuredValueAttributeCallback callback - ); - private native void subscribeAverageMeasuredValueAttribute(long chipClusterPtr, - AverageMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAverageMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeAverageMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readUncertaintyAttribute(long chipClusterPtr, - FloatAttributeCallback callback - ); - private native void subscribeUncertaintyAttribute(long chipClusterPtr, - FloatAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasurementUnitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasurementUnitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasurementMediumAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasurementMediumAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLevelValueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeLevelValueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class RadonConcentrationMeasurementCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000042FL; - - public RadonConcentrationMeasurementCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface MeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MinMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface MaxMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface PeakMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AverageMeasuredValueAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - ) { - readMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMeasuredValueAttribute( - MeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - ) { - readMinMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMinMeasuredValueAttribute( - MinMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMinMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - ) { - readMaxMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeMaxMeasuredValueAttribute( - MaxMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeMaxMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPeakMeasuredValueAttribute( - PeakMeasuredValueAttributeCallback callback - ) { - readPeakMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribePeakMeasuredValueAttribute( - PeakMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribePeakMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPeakMeasuredValueWindowAttribute( - LongAttributeCallback callback - ) { - readPeakMeasuredValueWindowAttribute(chipClusterPtr, callback); - } - public void subscribePeakMeasuredValueWindowAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePeakMeasuredValueWindowAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageMeasuredValueAttribute( - AverageMeasuredValueAttributeCallback callback - ) { - readAverageMeasuredValueAttribute(chipClusterPtr, callback); - } - public void subscribeAverageMeasuredValueAttribute( - AverageMeasuredValueAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAverageMeasuredValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageMeasuredValueWindowAttribute( - LongAttributeCallback callback - ) { - readAverageMeasuredValueWindowAttribute(chipClusterPtr, callback); - } - public void subscribeAverageMeasuredValueWindowAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAverageMeasuredValueWindowAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUncertaintyAttribute( - FloatAttributeCallback callback - ) { - readUncertaintyAttribute(chipClusterPtr, callback); - } - public void subscribeUncertaintyAttribute( - FloatAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeUncertaintyAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasurementUnitAttribute( - IntegerAttributeCallback callback - ) { - readMeasurementUnitAttribute(chipClusterPtr, callback); - } - public void subscribeMeasurementUnitAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasurementUnitAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasurementMediumAttribute( - IntegerAttributeCallback callback - ) { - readMeasurementMediumAttribute(chipClusterPtr, callback); - } - public void subscribeMeasurementMediumAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasurementMediumAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLevelValueAttribute( - IntegerAttributeCallback callback - ) { - readLevelValueAttribute(chipClusterPtr, callback); - } - public void subscribeLevelValueAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLevelValueAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - ); - private native void subscribeMeasuredValueAttribute(long chipClusterPtr, - MeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - ); - private native void subscribeMinMeasuredValueAttribute(long chipClusterPtr, - MinMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - ); - private native void subscribeMaxMeasuredValueAttribute(long chipClusterPtr, - MaxMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPeakMeasuredValueAttribute(long chipClusterPtr, - PeakMeasuredValueAttributeCallback callback - ); - private native void subscribePeakMeasuredValueAttribute(long chipClusterPtr, - PeakMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPeakMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribePeakMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAverageMeasuredValueAttribute(long chipClusterPtr, - AverageMeasuredValueAttributeCallback callback - ); - private native void subscribeAverageMeasuredValueAttribute(long chipClusterPtr, - AverageMeasuredValueAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAverageMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeAverageMeasuredValueWindowAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readUncertaintyAttribute(long chipClusterPtr, - FloatAttributeCallback callback - ); - private native void subscribeUncertaintyAttribute(long chipClusterPtr, - FloatAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasurementUnitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasurementUnitAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasurementMediumAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasurementMediumAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLevelValueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeLevelValueAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class WakeOnLanCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000503L; - - public WakeOnLanCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readMACAddressAttribute( - CharStringAttributeCallback callback - ) { - readMACAddressAttribute(chipClusterPtr, callback); - } - public void subscribeMACAddressAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMACAddressAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readMACAddressAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeMACAddressAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class ChannelCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000504L; - - public ChannelCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void changeChannel(ChangeChannelResponseCallback callback - , String match) { - changeChannel(chipClusterPtr, callback, match, null); - } - - public void changeChannel(ChangeChannelResponseCallback callback - , String match - , int timedInvokeTimeoutMs) { - changeChannel(chipClusterPtr, callback, match, timedInvokeTimeoutMs); - } - - public void changeChannelByNumber(DefaultClusterCallback callback - , Integer majorNumber, Integer minorNumber) { - changeChannelByNumber(chipClusterPtr, callback, majorNumber, minorNumber, null); - } - - public void changeChannelByNumber(DefaultClusterCallback callback - , Integer majorNumber, Integer minorNumber - , int timedInvokeTimeoutMs) { - changeChannelByNumber(chipClusterPtr, callback, majorNumber, minorNumber, timedInvokeTimeoutMs); - } - - public void skipChannel(DefaultClusterCallback callback - , Integer count) { - skipChannel(chipClusterPtr, callback, count, null); - } - - public void skipChannel(DefaultClusterCallback callback - , Integer count - , int timedInvokeTimeoutMs) { - skipChannel(chipClusterPtr, callback, count, timedInvokeTimeoutMs); - } - private native void changeChannel(long chipClusterPtr, ChangeChannelResponseCallback Callback - , String match - , @Nullable Integer timedInvokeTimeoutMs); - private native void changeChannelByNumber(long chipClusterPtr, DefaultClusterCallback Callback - , Integer majorNumber, Integer minorNumber - , @Nullable Integer timedInvokeTimeoutMs); - private native void skipChannel(long chipClusterPtr, DefaultClusterCallback Callback - , Integer count - , @Nullable Integer timedInvokeTimeoutMs); - public interface ChangeChannelResponseCallback { - void onSuccess(Integer status, Optional data); - - void onError(Exception error); - } - - - public interface ChannelListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readChannelListAttribute( - ChannelListAttributeCallback callback - ) { - readChannelListAttribute(chipClusterPtr, callback); - } - public void subscribeChannelListAttribute( - ChannelListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeChannelListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readChannelListAttribute(long chipClusterPtr, - ChannelListAttributeCallback callback - ); - private native void subscribeChannelListAttribute(long chipClusterPtr, - ChannelListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class TargetNavigatorCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000505L; - - public TargetNavigatorCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void navigateTarget(NavigateTargetResponseCallback callback - , Integer target, Optional data) { - navigateTarget(chipClusterPtr, callback, target, data, null); - } - - public void navigateTarget(NavigateTargetResponseCallback callback - , Integer target, Optional data - , int timedInvokeTimeoutMs) { - navigateTarget(chipClusterPtr, callback, target, data, timedInvokeTimeoutMs); - } - private native void navigateTarget(long chipClusterPtr, NavigateTargetResponseCallback Callback - , Integer target, Optional data - , @Nullable Integer timedInvokeTimeoutMs); - public interface NavigateTargetResponseCallback { - void onSuccess(Integer status, Optional data); - - void onError(Exception error); - } - - - public interface TargetListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readTargetListAttribute( - TargetListAttributeCallback callback - ) { - readTargetListAttribute(chipClusterPtr, callback); - } - public void subscribeTargetListAttribute( - TargetListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeTargetListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentTargetAttribute( - IntegerAttributeCallback callback - ) { - readCurrentTargetAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentTargetAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCurrentTargetAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readTargetListAttribute(long chipClusterPtr, - TargetListAttributeCallback callback - ); - private native void subscribeTargetListAttribute(long chipClusterPtr, - TargetListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readCurrentTargetAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeCurrentTargetAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class MediaPlaybackCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000506L; - - public MediaPlaybackCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void play(PlaybackResponseCallback callback - ) { - play(chipClusterPtr, callback, null); - } - - public void play(PlaybackResponseCallback callback - - , int timedInvokeTimeoutMs) { - play(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void pause(PlaybackResponseCallback callback - ) { - pause(chipClusterPtr, callback, null); - } - - public void pause(PlaybackResponseCallback callback - - , int timedInvokeTimeoutMs) { - pause(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void stop(PlaybackResponseCallback callback - ) { - stop(chipClusterPtr, callback, null); - } - - public void stop(PlaybackResponseCallback callback - - , int timedInvokeTimeoutMs) { - stop(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void startOver(PlaybackResponseCallback callback - ) { - startOver(chipClusterPtr, callback, null); - } - - public void startOver(PlaybackResponseCallback callback - - , int timedInvokeTimeoutMs) { - startOver(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void previous(PlaybackResponseCallback callback - ) { - previous(chipClusterPtr, callback, null); - } - - public void previous(PlaybackResponseCallback callback - - , int timedInvokeTimeoutMs) { - previous(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void next(PlaybackResponseCallback callback - ) { - next(chipClusterPtr, callback, null); - } - - public void next(PlaybackResponseCallback callback - - , int timedInvokeTimeoutMs) { - next(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void rewind(PlaybackResponseCallback callback - ) { - rewind(chipClusterPtr, callback, null); - } - - public void rewind(PlaybackResponseCallback callback - - , int timedInvokeTimeoutMs) { - rewind(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void fastForward(PlaybackResponseCallback callback - ) { - fastForward(chipClusterPtr, callback, null); - } - - public void fastForward(PlaybackResponseCallback callback - - , int timedInvokeTimeoutMs) { - fastForward(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void skipForward(PlaybackResponseCallback callback - , Long deltaPositionMilliseconds) { - skipForward(chipClusterPtr, callback, deltaPositionMilliseconds, null); - } - - public void skipForward(PlaybackResponseCallback callback - , Long deltaPositionMilliseconds - , int timedInvokeTimeoutMs) { - skipForward(chipClusterPtr, callback, deltaPositionMilliseconds, timedInvokeTimeoutMs); - } - - public void skipBackward(PlaybackResponseCallback callback - , Long deltaPositionMilliseconds) { - skipBackward(chipClusterPtr, callback, deltaPositionMilliseconds, null); - } - - public void skipBackward(PlaybackResponseCallback callback - , Long deltaPositionMilliseconds - , int timedInvokeTimeoutMs) { - skipBackward(chipClusterPtr, callback, deltaPositionMilliseconds, timedInvokeTimeoutMs); - } - - public void seek(PlaybackResponseCallback callback - , Long position) { - seek(chipClusterPtr, callback, position, null); - } - - public void seek(PlaybackResponseCallback callback - , Long position - , int timedInvokeTimeoutMs) { - seek(chipClusterPtr, callback, position, timedInvokeTimeoutMs); - } - private native void play(long chipClusterPtr, PlaybackResponseCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void pause(long chipClusterPtr, PlaybackResponseCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void stop(long chipClusterPtr, PlaybackResponseCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void startOver(long chipClusterPtr, PlaybackResponseCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void previous(long chipClusterPtr, PlaybackResponseCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void next(long chipClusterPtr, PlaybackResponseCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void rewind(long chipClusterPtr, PlaybackResponseCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void fastForward(long chipClusterPtr, PlaybackResponseCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void skipForward(long chipClusterPtr, PlaybackResponseCallback Callback - , Long deltaPositionMilliseconds - , @Nullable Integer timedInvokeTimeoutMs); - private native void skipBackward(long chipClusterPtr, PlaybackResponseCallback Callback - , Long deltaPositionMilliseconds - , @Nullable Integer timedInvokeTimeoutMs); - private native void seek(long chipClusterPtr, PlaybackResponseCallback Callback - , Long position - , @Nullable Integer timedInvokeTimeoutMs); - public interface PlaybackResponseCallback { - void onSuccess(Integer status, Optional data); - - void onError(Exception error); - } - - - public interface StartTimeAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface DurationAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface SeekRangeEndAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface SeekRangeStartAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readCurrentStateAttribute( - IntegerAttributeCallback callback - ) { - readCurrentStateAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentStateAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCurrentStateAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readStartTimeAttribute( - StartTimeAttributeCallback callback - ) { - readStartTimeAttribute(chipClusterPtr, callback); - } - public void subscribeStartTimeAttribute( - StartTimeAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeStartTimeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDurationAttribute( - DurationAttributeCallback callback - ) { - readDurationAttribute(chipClusterPtr, callback); - } - public void subscribeDurationAttribute( - DurationAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeDurationAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPlaybackSpeedAttribute( - FloatAttributeCallback callback - ) { - readPlaybackSpeedAttribute(chipClusterPtr, callback); - } - public void subscribePlaybackSpeedAttribute( - FloatAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePlaybackSpeedAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSeekRangeEndAttribute( - SeekRangeEndAttributeCallback callback - ) { - readSeekRangeEndAttribute(chipClusterPtr, callback); - } - public void subscribeSeekRangeEndAttribute( - SeekRangeEndAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeSeekRangeEndAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSeekRangeStartAttribute( - SeekRangeStartAttributeCallback callback - ) { - readSeekRangeStartAttribute(chipClusterPtr, callback); - } - public void subscribeSeekRangeStartAttribute( - SeekRangeStartAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeSeekRangeStartAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readCurrentStateAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeCurrentStateAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readStartTimeAttribute(long chipClusterPtr, - StartTimeAttributeCallback callback - ); - private native void subscribeStartTimeAttribute(long chipClusterPtr, - StartTimeAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readDurationAttribute(long chipClusterPtr, - DurationAttributeCallback callback - ); - private native void subscribeDurationAttribute(long chipClusterPtr, - DurationAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readPlaybackSpeedAttribute(long chipClusterPtr, - FloatAttributeCallback callback - ); - private native void subscribePlaybackSpeedAttribute(long chipClusterPtr, - FloatAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readSeekRangeEndAttribute(long chipClusterPtr, - SeekRangeEndAttributeCallback callback - ); - private native void subscribeSeekRangeEndAttribute(long chipClusterPtr, - SeekRangeEndAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readSeekRangeStartAttribute(long chipClusterPtr, - SeekRangeStartAttributeCallback callback - ); - private native void subscribeSeekRangeStartAttribute(long chipClusterPtr, - SeekRangeStartAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class MediaInputCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000507L; - - public MediaInputCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void selectInput(DefaultClusterCallback callback - , Integer index) { - selectInput(chipClusterPtr, callback, index, null); - } - - public void selectInput(DefaultClusterCallback callback - , Integer index - , int timedInvokeTimeoutMs) { - selectInput(chipClusterPtr, callback, index, timedInvokeTimeoutMs); - } - - public void showInputStatus(DefaultClusterCallback callback - ) { - showInputStatus(chipClusterPtr, callback, null); - } - - public void showInputStatus(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - showInputStatus(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void hideInputStatus(DefaultClusterCallback callback - ) { - hideInputStatus(chipClusterPtr, callback, null); - } - - public void hideInputStatus(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - hideInputStatus(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void renameInput(DefaultClusterCallback callback - , Integer index, String name) { - renameInput(chipClusterPtr, callback, index, name, null); - } - - public void renameInput(DefaultClusterCallback callback - , Integer index, String name - , int timedInvokeTimeoutMs) { - renameInput(chipClusterPtr, callback, index, name, timedInvokeTimeoutMs); - } - private native void selectInput(long chipClusterPtr, DefaultClusterCallback Callback - , Integer index - , @Nullable Integer timedInvokeTimeoutMs); - private native void showInputStatus(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void hideInputStatus(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void renameInput(long chipClusterPtr, DefaultClusterCallback Callback - , Integer index, String name - , @Nullable Integer timedInvokeTimeoutMs); - - public interface InputListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readInputListAttribute( - InputListAttributeCallback callback - ) { - readInputListAttribute(chipClusterPtr, callback); - } - public void subscribeInputListAttribute( - InputListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeInputListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentInputAttribute( - IntegerAttributeCallback callback - ) { - readCurrentInputAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentInputAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCurrentInputAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readInputListAttribute(long chipClusterPtr, - InputListAttributeCallback callback - ); - private native void subscribeInputListAttribute(long chipClusterPtr, - InputListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readCurrentInputAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeCurrentInputAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class LowPowerCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000508L; - - public LowPowerCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void sleep(DefaultClusterCallback callback - ) { - sleep(chipClusterPtr, callback, null); - } - - public void sleep(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - sleep(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - private native void sleep(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class KeypadInputCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000509L; - - public KeypadInputCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void sendKey(SendKeyResponseCallback callback - , Integer keyCode) { - sendKey(chipClusterPtr, callback, keyCode, null); - } - - public void sendKey(SendKeyResponseCallback callback - , Integer keyCode - , int timedInvokeTimeoutMs) { - sendKey(chipClusterPtr, callback, keyCode, timedInvokeTimeoutMs); - } - private native void sendKey(long chipClusterPtr, SendKeyResponseCallback Callback - , Integer keyCode - , @Nullable Integer timedInvokeTimeoutMs); - public interface SendKeyResponseCallback { - void onSuccess(Integer status); - - void onError(Exception error); - } - - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class ContentLauncherCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000050AL; - - public ContentLauncherCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void launchContent(LauncherResponseCallback callback - , ChipStructs.ContentLauncherClusterContentSearchStruct search, Boolean autoPlay, Optional data) { - launchContent(chipClusterPtr, callback, search, autoPlay, data, null); - } - - public void launchContent(LauncherResponseCallback callback - , ChipStructs.ContentLauncherClusterContentSearchStruct search, Boolean autoPlay, Optional data - , int timedInvokeTimeoutMs) { - launchContent(chipClusterPtr, callback, search, autoPlay, data, timedInvokeTimeoutMs); - } - - public void launchURL(LauncherResponseCallback callback - , String contentURL, Optional displayString, Optional brandingInformation) { - launchURL(chipClusterPtr, callback, contentURL, displayString, brandingInformation, null); - } - - public void launchURL(LauncherResponseCallback callback - , String contentURL, Optional displayString, Optional brandingInformation - , int timedInvokeTimeoutMs) { - launchURL(chipClusterPtr, callback, contentURL, displayString, brandingInformation, timedInvokeTimeoutMs); - } - private native void launchContent(long chipClusterPtr, LauncherResponseCallback Callback - , ChipStructs.ContentLauncherClusterContentSearchStruct search, Boolean autoPlay, Optional data - , @Nullable Integer timedInvokeTimeoutMs); - private native void launchURL(long chipClusterPtr, LauncherResponseCallback Callback - , String contentURL, Optional displayString, Optional brandingInformation - , @Nullable Integer timedInvokeTimeoutMs); - public interface LauncherResponseCallback { - void onSuccess(Integer status, Optional data); - - void onError(Exception error); - } - - - public interface AcceptHeaderAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readAcceptHeaderAttribute( - AcceptHeaderAttributeCallback callback - ) { - readAcceptHeaderAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptHeaderAttribute( - AcceptHeaderAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptHeaderAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readSupportedStreamingProtocolsAttribute( - LongAttributeCallback callback - ) { - readSupportedStreamingProtocolsAttribute(chipClusterPtr, callback); - } - public void writeSupportedStreamingProtocolsAttribute(DefaultClusterCallback callback, Long value) { - writeSupportedStreamingProtocolsAttribute(chipClusterPtr, callback, value, null); - } - - public void writeSupportedStreamingProtocolsAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeSupportedStreamingProtocolsAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeSupportedStreamingProtocolsAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeSupportedStreamingProtocolsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readAcceptHeaderAttribute(long chipClusterPtr, - AcceptHeaderAttributeCallback callback - ); - private native void subscribeAcceptHeaderAttribute(long chipClusterPtr, - AcceptHeaderAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readSupportedStreamingProtocolsAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - - private native void writeSupportedStreamingProtocolsAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeSupportedStreamingProtocolsAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class AudioOutputCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000050BL; - - public AudioOutputCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void selectOutput(DefaultClusterCallback callback - , Integer index) { - selectOutput(chipClusterPtr, callback, index, null); - } - - public void selectOutput(DefaultClusterCallback callback - , Integer index - , int timedInvokeTimeoutMs) { - selectOutput(chipClusterPtr, callback, index, timedInvokeTimeoutMs); - } - - public void renameOutput(DefaultClusterCallback callback - , Integer index, String name) { - renameOutput(chipClusterPtr, callback, index, name, null); - } - - public void renameOutput(DefaultClusterCallback callback - , Integer index, String name - , int timedInvokeTimeoutMs) { - renameOutput(chipClusterPtr, callback, index, name, timedInvokeTimeoutMs); - } - private native void selectOutput(long chipClusterPtr, DefaultClusterCallback Callback - , Integer index - , @Nullable Integer timedInvokeTimeoutMs); - private native void renameOutput(long chipClusterPtr, DefaultClusterCallback Callback - , Integer index, String name - , @Nullable Integer timedInvokeTimeoutMs); - - public interface OutputListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readOutputListAttribute( - OutputListAttributeCallback callback - ) { - readOutputListAttribute(chipClusterPtr, callback); - } - public void subscribeOutputListAttribute( - OutputListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeOutputListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentOutputAttribute( - IntegerAttributeCallback callback - ) { - readCurrentOutputAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentOutputAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCurrentOutputAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readOutputListAttribute(long chipClusterPtr, - OutputListAttributeCallback callback - ); - private native void subscribeOutputListAttribute(long chipClusterPtr, - OutputListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readCurrentOutputAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeCurrentOutputAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class ApplicationLauncherCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000050CL; - - public ApplicationLauncherCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void launchApp(LauncherResponseCallback callback - , Optional application, Optional data) { - launchApp(chipClusterPtr, callback, application, data, null); - } - - public void launchApp(LauncherResponseCallback callback - , Optional application, Optional data - , int timedInvokeTimeoutMs) { - launchApp(chipClusterPtr, callback, application, data, timedInvokeTimeoutMs); - } - - public void stopApp(LauncherResponseCallback callback - , Optional application) { - stopApp(chipClusterPtr, callback, application, null); - } - - public void stopApp(LauncherResponseCallback callback - , Optional application - , int timedInvokeTimeoutMs) { - stopApp(chipClusterPtr, callback, application, timedInvokeTimeoutMs); - } - - public void hideApp(LauncherResponseCallback callback - , Optional application) { - hideApp(chipClusterPtr, callback, application, null); - } - - public void hideApp(LauncherResponseCallback callback - , Optional application - , int timedInvokeTimeoutMs) { - hideApp(chipClusterPtr, callback, application, timedInvokeTimeoutMs); - } - private native void launchApp(long chipClusterPtr, LauncherResponseCallback Callback - , Optional application, Optional data - , @Nullable Integer timedInvokeTimeoutMs); - private native void stopApp(long chipClusterPtr, LauncherResponseCallback Callback - , Optional application - , @Nullable Integer timedInvokeTimeoutMs); - private native void hideApp(long chipClusterPtr, LauncherResponseCallback Callback - , Optional application - , @Nullable Integer timedInvokeTimeoutMs); - public interface LauncherResponseCallback { - void onSuccess(Integer status, Optional data); - - void onError(Exception error); - } - - - public interface CatalogListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readCatalogListAttribute( - CatalogListAttributeCallback callback - ) { - readCatalogListAttribute(chipClusterPtr, callback); - } - public void subscribeCatalogListAttribute( - CatalogListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeCatalogListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readCatalogListAttribute(long chipClusterPtr, - CatalogListAttributeCallback callback - ); - private native void subscribeCatalogListAttribute(long chipClusterPtr, - CatalogListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class ApplicationBasicCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000050DL; - - public ApplicationBasicCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public interface AllowedVendorListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readVendorNameAttribute( - CharStringAttributeCallback callback - ) { - readVendorNameAttribute(chipClusterPtr, callback); - } - public void subscribeVendorNameAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeVendorNameAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readVendorIDAttribute( - IntegerAttributeCallback callback - ) { - readVendorIDAttribute(chipClusterPtr, callback); - } - public void subscribeVendorIDAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeVendorIDAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readApplicationNameAttribute( - CharStringAttributeCallback callback - ) { - readApplicationNameAttribute(chipClusterPtr, callback); - } - public void subscribeApplicationNameAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeApplicationNameAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readProductIDAttribute( - IntegerAttributeCallback callback - ) { - readProductIDAttribute(chipClusterPtr, callback); - } - public void subscribeProductIDAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeProductIDAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readStatusAttribute( - IntegerAttributeCallback callback - ) { - readStatusAttribute(chipClusterPtr, callback); - } - public void subscribeStatusAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeStatusAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readApplicationVersionAttribute( - CharStringAttributeCallback callback - ) { - readApplicationVersionAttribute(chipClusterPtr, callback); - } - public void subscribeApplicationVersionAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeApplicationVersionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAllowedVendorListAttribute( - AllowedVendorListAttributeCallback callback - ) { - readAllowedVendorListAttribute(chipClusterPtr, callback); - } - public void subscribeAllowedVendorListAttribute( - AllowedVendorListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAllowedVendorListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readVendorNameAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeVendorNameAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readVendorIDAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeVendorIDAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readApplicationNameAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeApplicationNameAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readProductIDAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeProductIDAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readStatusAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeStatusAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readApplicationVersionAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - private native void subscribeApplicationVersionAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAllowedVendorListAttribute(long chipClusterPtr, - AllowedVendorListAttributeCallback callback - ); - private native void subscribeAllowedVendorListAttribute(long chipClusterPtr, - AllowedVendorListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class AccountLoginCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x0000050EL; - - public AccountLoginCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - - public void getSetupPIN(GetSetupPINResponseCallback callback - , String tempAccountIdentifier - , int timedInvokeTimeoutMs) { - getSetupPIN(chipClusterPtr, callback, tempAccountIdentifier, timedInvokeTimeoutMs); - } - - - public void login(DefaultClusterCallback callback - , String tempAccountIdentifier, String setupPIN - , int timedInvokeTimeoutMs) { - login(chipClusterPtr, callback, tempAccountIdentifier, setupPIN, timedInvokeTimeoutMs); - } - - - public void logout(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - logout(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - private native void getSetupPIN(long chipClusterPtr, GetSetupPINResponseCallback Callback - , String tempAccountIdentifier - , @Nullable Integer timedInvokeTimeoutMs); - private native void login(long chipClusterPtr, DefaultClusterCallback Callback - , String tempAccountIdentifier, String setupPIN - , @Nullable Integer timedInvokeTimeoutMs); - private native void logout(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - public interface GetSetupPINResponseCallback { - void onSuccess(String setupPIN); - - void onError(Exception error); - } - - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class ElectricalMeasurementCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0x00000B04L; - - public ElectricalMeasurementCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void getProfileInfoCommand(DefaultClusterCallback callback - ) { - getProfileInfoCommand(chipClusterPtr, callback, null); - } - - public void getProfileInfoCommand(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - getProfileInfoCommand(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void getMeasurementProfileCommand(DefaultClusterCallback callback - , Integer attributeId, Long startTime, Integer numberOfIntervals) { - getMeasurementProfileCommand(chipClusterPtr, callback, attributeId, startTime, numberOfIntervals, null); - } - - public void getMeasurementProfileCommand(DefaultClusterCallback callback - , Integer attributeId, Long startTime, Integer numberOfIntervals - , int timedInvokeTimeoutMs) { - getMeasurementProfileCommand(chipClusterPtr, callback, attributeId, startTime, numberOfIntervals, timedInvokeTimeoutMs); - } - private native void getProfileInfoCommand(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void getMeasurementProfileCommand(long chipClusterPtr, DefaultClusterCallback Callback - , Integer attributeId, Long startTime, Integer numberOfIntervals - , @Nullable Integer timedInvokeTimeoutMs); - public interface GetProfileInfoResponseCommandCallback { - void onSuccess(Integer profileCount, Integer profileIntervalPeriod, Integer maxNumberOfIntervals, ArrayList listOfAttributes); - - void onError(Exception error); - } - - public interface GetMeasurementProfileResponseCommandCallback { - void onSuccess(Long startTime, Integer status, Integer profileIntervalPeriod, Integer numberOfIntervalsDelivered, Integer attributeId, ArrayList intervals); - - void onError(Exception error); - } - - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readMeasurementTypeAttribute( - LongAttributeCallback callback - ) { - readMeasurementTypeAttribute(chipClusterPtr, callback); - } - public void subscribeMeasurementTypeAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasurementTypeAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDcVoltageAttribute( - IntegerAttributeCallback callback - ) { - readDcVoltageAttribute(chipClusterPtr, callback); - } - public void subscribeDcVoltageAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDcVoltageAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDcVoltageMinAttribute( - IntegerAttributeCallback callback - ) { - readDcVoltageMinAttribute(chipClusterPtr, callback); - } - public void subscribeDcVoltageMinAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDcVoltageMinAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDcVoltageMaxAttribute( - IntegerAttributeCallback callback - ) { - readDcVoltageMaxAttribute(chipClusterPtr, callback); - } - public void subscribeDcVoltageMaxAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDcVoltageMaxAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDcCurrentAttribute( - IntegerAttributeCallback callback - ) { - readDcCurrentAttribute(chipClusterPtr, callback); - } - public void subscribeDcCurrentAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDcCurrentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDcCurrentMinAttribute( - IntegerAttributeCallback callback - ) { - readDcCurrentMinAttribute(chipClusterPtr, callback); - } - public void subscribeDcCurrentMinAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDcCurrentMinAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDcCurrentMaxAttribute( - IntegerAttributeCallback callback - ) { - readDcCurrentMaxAttribute(chipClusterPtr, callback); - } - public void subscribeDcCurrentMaxAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDcCurrentMaxAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDcPowerAttribute( - IntegerAttributeCallback callback - ) { - readDcPowerAttribute(chipClusterPtr, callback); - } - public void subscribeDcPowerAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDcPowerAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDcPowerMinAttribute( - IntegerAttributeCallback callback - ) { - readDcPowerMinAttribute(chipClusterPtr, callback); - } - public void subscribeDcPowerMinAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDcPowerMinAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDcPowerMaxAttribute( - IntegerAttributeCallback callback - ) { - readDcPowerMaxAttribute(chipClusterPtr, callback); - } - public void subscribeDcPowerMaxAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDcPowerMaxAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDcVoltageMultiplierAttribute( - IntegerAttributeCallback callback - ) { - readDcVoltageMultiplierAttribute(chipClusterPtr, callback); - } - public void subscribeDcVoltageMultiplierAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDcVoltageMultiplierAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDcVoltageDivisorAttribute( - IntegerAttributeCallback callback - ) { - readDcVoltageDivisorAttribute(chipClusterPtr, callback); - } - public void subscribeDcVoltageDivisorAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDcVoltageDivisorAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDcCurrentMultiplierAttribute( - IntegerAttributeCallback callback - ) { - readDcCurrentMultiplierAttribute(chipClusterPtr, callback); - } - public void subscribeDcCurrentMultiplierAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDcCurrentMultiplierAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDcCurrentDivisorAttribute( - IntegerAttributeCallback callback - ) { - readDcCurrentDivisorAttribute(chipClusterPtr, callback); - } - public void subscribeDcCurrentDivisorAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDcCurrentDivisorAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDcPowerMultiplierAttribute( - IntegerAttributeCallback callback - ) { - readDcPowerMultiplierAttribute(chipClusterPtr, callback); - } - public void subscribeDcPowerMultiplierAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDcPowerMultiplierAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readDcPowerDivisorAttribute( - IntegerAttributeCallback callback - ) { - readDcPowerDivisorAttribute(chipClusterPtr, callback); - } - public void subscribeDcPowerDivisorAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeDcPowerDivisorAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcFrequencyAttribute( - IntegerAttributeCallback callback - ) { - readAcFrequencyAttribute(chipClusterPtr, callback); - } - public void subscribeAcFrequencyAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAcFrequencyAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcFrequencyMinAttribute( - IntegerAttributeCallback callback - ) { - readAcFrequencyMinAttribute(chipClusterPtr, callback); - } - public void subscribeAcFrequencyMinAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAcFrequencyMinAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcFrequencyMaxAttribute( - IntegerAttributeCallback callback - ) { - readAcFrequencyMaxAttribute(chipClusterPtr, callback); - } - public void subscribeAcFrequencyMaxAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAcFrequencyMaxAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNeutralCurrentAttribute( - IntegerAttributeCallback callback - ) { - readNeutralCurrentAttribute(chipClusterPtr, callback); - } - public void subscribeNeutralCurrentAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeNeutralCurrentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTotalActivePowerAttribute( - LongAttributeCallback callback - ) { - readTotalActivePowerAttribute(chipClusterPtr, callback); - } - public void subscribeTotalActivePowerAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTotalActivePowerAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTotalReactivePowerAttribute( - LongAttributeCallback callback - ) { - readTotalReactivePowerAttribute(chipClusterPtr, callback); - } - public void subscribeTotalReactivePowerAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTotalReactivePowerAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTotalApparentPowerAttribute( - LongAttributeCallback callback - ) { - readTotalApparentPowerAttribute(chipClusterPtr, callback); - } - public void subscribeTotalApparentPowerAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTotalApparentPowerAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasured1stHarmonicCurrentAttribute( - IntegerAttributeCallback callback - ) { - readMeasured1stHarmonicCurrentAttribute(chipClusterPtr, callback); - } - public void subscribeMeasured1stHarmonicCurrentAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasured1stHarmonicCurrentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasured3rdHarmonicCurrentAttribute( - IntegerAttributeCallback callback - ) { - readMeasured3rdHarmonicCurrentAttribute(chipClusterPtr, callback); - } - public void subscribeMeasured3rdHarmonicCurrentAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasured3rdHarmonicCurrentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasured5thHarmonicCurrentAttribute( - IntegerAttributeCallback callback - ) { - readMeasured5thHarmonicCurrentAttribute(chipClusterPtr, callback); - } - public void subscribeMeasured5thHarmonicCurrentAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasured5thHarmonicCurrentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasured7thHarmonicCurrentAttribute( - IntegerAttributeCallback callback - ) { - readMeasured7thHarmonicCurrentAttribute(chipClusterPtr, callback); - } - public void subscribeMeasured7thHarmonicCurrentAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasured7thHarmonicCurrentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasured9thHarmonicCurrentAttribute( - IntegerAttributeCallback callback - ) { - readMeasured9thHarmonicCurrentAttribute(chipClusterPtr, callback); - } - public void subscribeMeasured9thHarmonicCurrentAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasured9thHarmonicCurrentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasured11thHarmonicCurrentAttribute( - IntegerAttributeCallback callback - ) { - readMeasured11thHarmonicCurrentAttribute(chipClusterPtr, callback); - } - public void subscribeMeasured11thHarmonicCurrentAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasured11thHarmonicCurrentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasuredPhase1stHarmonicCurrentAttribute( - IntegerAttributeCallback callback - ) { - readMeasuredPhase1stHarmonicCurrentAttribute(chipClusterPtr, callback); - } - public void subscribeMeasuredPhase1stHarmonicCurrentAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasuredPhase1stHarmonicCurrentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasuredPhase3rdHarmonicCurrentAttribute( - IntegerAttributeCallback callback - ) { - readMeasuredPhase3rdHarmonicCurrentAttribute(chipClusterPtr, callback); - } - public void subscribeMeasuredPhase3rdHarmonicCurrentAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasuredPhase3rdHarmonicCurrentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasuredPhase5thHarmonicCurrentAttribute( - IntegerAttributeCallback callback - ) { - readMeasuredPhase5thHarmonicCurrentAttribute(chipClusterPtr, callback); - } - public void subscribeMeasuredPhase5thHarmonicCurrentAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasuredPhase5thHarmonicCurrentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasuredPhase7thHarmonicCurrentAttribute( - IntegerAttributeCallback callback - ) { - readMeasuredPhase7thHarmonicCurrentAttribute(chipClusterPtr, callback); - } - public void subscribeMeasuredPhase7thHarmonicCurrentAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasuredPhase7thHarmonicCurrentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasuredPhase9thHarmonicCurrentAttribute( - IntegerAttributeCallback callback - ) { - readMeasuredPhase9thHarmonicCurrentAttribute(chipClusterPtr, callback); - } - public void subscribeMeasuredPhase9thHarmonicCurrentAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasuredPhase9thHarmonicCurrentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readMeasuredPhase11thHarmonicCurrentAttribute( - IntegerAttributeCallback callback - ) { - readMeasuredPhase11thHarmonicCurrentAttribute(chipClusterPtr, callback); - } - public void subscribeMeasuredPhase11thHarmonicCurrentAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeMeasuredPhase11thHarmonicCurrentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcFrequencyMultiplierAttribute( - IntegerAttributeCallback callback - ) { - readAcFrequencyMultiplierAttribute(chipClusterPtr, callback); - } - public void subscribeAcFrequencyMultiplierAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAcFrequencyMultiplierAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcFrequencyDivisorAttribute( - IntegerAttributeCallback callback - ) { - readAcFrequencyDivisorAttribute(chipClusterPtr, callback); - } - public void subscribeAcFrequencyDivisorAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAcFrequencyDivisorAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPowerMultiplierAttribute( - LongAttributeCallback callback - ) { - readPowerMultiplierAttribute(chipClusterPtr, callback); - } - public void subscribePowerMultiplierAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePowerMultiplierAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPowerDivisorAttribute( - LongAttributeCallback callback - ) { - readPowerDivisorAttribute(chipClusterPtr, callback); - } - public void subscribePowerDivisorAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePowerDivisorAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readHarmonicCurrentMultiplierAttribute( - IntegerAttributeCallback callback - ) { - readHarmonicCurrentMultiplierAttribute(chipClusterPtr, callback); - } - public void subscribeHarmonicCurrentMultiplierAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeHarmonicCurrentMultiplierAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPhaseHarmonicCurrentMultiplierAttribute( - IntegerAttributeCallback callback - ) { - readPhaseHarmonicCurrentMultiplierAttribute(chipClusterPtr, callback); - } - public void subscribePhaseHarmonicCurrentMultiplierAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePhaseHarmonicCurrentMultiplierAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInstantaneousVoltageAttribute( - IntegerAttributeCallback callback - ) { - readInstantaneousVoltageAttribute(chipClusterPtr, callback); - } - public void subscribeInstantaneousVoltageAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInstantaneousVoltageAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInstantaneousLineCurrentAttribute( - IntegerAttributeCallback callback - ) { - readInstantaneousLineCurrentAttribute(chipClusterPtr, callback); - } - public void subscribeInstantaneousLineCurrentAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInstantaneousLineCurrentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInstantaneousActiveCurrentAttribute( - IntegerAttributeCallback callback - ) { - readInstantaneousActiveCurrentAttribute(chipClusterPtr, callback); - } - public void subscribeInstantaneousActiveCurrentAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInstantaneousActiveCurrentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInstantaneousReactiveCurrentAttribute( - IntegerAttributeCallback callback - ) { - readInstantaneousReactiveCurrentAttribute(chipClusterPtr, callback); - } - public void subscribeInstantaneousReactiveCurrentAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInstantaneousReactiveCurrentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInstantaneousPowerAttribute( - IntegerAttributeCallback callback - ) { - readInstantaneousPowerAttribute(chipClusterPtr, callback); - } - public void subscribeInstantaneousPowerAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInstantaneousPowerAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsVoltageAttribute( - IntegerAttributeCallback callback - ) { - readRmsVoltageAttribute(chipClusterPtr, callback); - } - public void subscribeRmsVoltageAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsVoltageAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsVoltageMinAttribute( - IntegerAttributeCallback callback - ) { - readRmsVoltageMinAttribute(chipClusterPtr, callback); - } - public void subscribeRmsVoltageMinAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsVoltageMinAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsVoltageMaxAttribute( - IntegerAttributeCallback callback - ) { - readRmsVoltageMaxAttribute(chipClusterPtr, callback); - } - public void subscribeRmsVoltageMaxAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsVoltageMaxAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsCurrentAttribute( - IntegerAttributeCallback callback - ) { - readRmsCurrentAttribute(chipClusterPtr, callback); - } - public void subscribeRmsCurrentAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsCurrentAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsCurrentMinAttribute( - IntegerAttributeCallback callback - ) { - readRmsCurrentMinAttribute(chipClusterPtr, callback); - } - public void subscribeRmsCurrentMinAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsCurrentMinAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsCurrentMaxAttribute( - IntegerAttributeCallback callback - ) { - readRmsCurrentMaxAttribute(chipClusterPtr, callback); - } - public void subscribeRmsCurrentMaxAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsCurrentMaxAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readActivePowerAttribute( - IntegerAttributeCallback callback - ) { - readActivePowerAttribute(chipClusterPtr, callback); - } - public void subscribeActivePowerAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeActivePowerAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readActivePowerMinAttribute( - IntegerAttributeCallback callback - ) { - readActivePowerMinAttribute(chipClusterPtr, callback); - } - public void subscribeActivePowerMinAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeActivePowerMinAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readActivePowerMaxAttribute( - IntegerAttributeCallback callback - ) { - readActivePowerMaxAttribute(chipClusterPtr, callback); - } - public void subscribeActivePowerMaxAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeActivePowerMaxAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readReactivePowerAttribute( - IntegerAttributeCallback callback - ) { - readReactivePowerAttribute(chipClusterPtr, callback); - } - public void subscribeReactivePowerAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeReactivePowerAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readApparentPowerAttribute( - IntegerAttributeCallback callback - ) { - readApparentPowerAttribute(chipClusterPtr, callback); - } - public void subscribeApparentPowerAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeApparentPowerAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPowerFactorAttribute( - IntegerAttributeCallback callback - ) { - readPowerFactorAttribute(chipClusterPtr, callback); - } - public void subscribePowerFactorAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePowerFactorAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageRmsVoltageMeasurementPeriodAttribute( - IntegerAttributeCallback callback - ) { - readAverageRmsVoltageMeasurementPeriodAttribute(chipClusterPtr, callback); - } - public void writeAverageRmsVoltageMeasurementPeriodAttribute(DefaultClusterCallback callback, Integer value) { - writeAverageRmsVoltageMeasurementPeriodAttribute(chipClusterPtr, callback, value, null); - } - - public void writeAverageRmsVoltageMeasurementPeriodAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeAverageRmsVoltageMeasurementPeriodAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeAverageRmsVoltageMeasurementPeriodAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAverageRmsVoltageMeasurementPeriodAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageRmsUnderVoltageCounterAttribute( - IntegerAttributeCallback callback - ) { - readAverageRmsUnderVoltageCounterAttribute(chipClusterPtr, callback); - } - public void writeAverageRmsUnderVoltageCounterAttribute(DefaultClusterCallback callback, Integer value) { - writeAverageRmsUnderVoltageCounterAttribute(chipClusterPtr, callback, value, null); - } - - public void writeAverageRmsUnderVoltageCounterAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeAverageRmsUnderVoltageCounterAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeAverageRmsUnderVoltageCounterAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAverageRmsUnderVoltageCounterAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsExtremeOverVoltagePeriodAttribute( - IntegerAttributeCallback callback - ) { - readRmsExtremeOverVoltagePeriodAttribute(chipClusterPtr, callback); - } - public void writeRmsExtremeOverVoltagePeriodAttribute(DefaultClusterCallback callback, Integer value) { - writeRmsExtremeOverVoltagePeriodAttribute(chipClusterPtr, callback, value, null); - } - - public void writeRmsExtremeOverVoltagePeriodAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeRmsExtremeOverVoltagePeriodAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeRmsExtremeOverVoltagePeriodAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsExtremeOverVoltagePeriodAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsExtremeUnderVoltagePeriodAttribute( - IntegerAttributeCallback callback - ) { - readRmsExtremeUnderVoltagePeriodAttribute(chipClusterPtr, callback); - } - public void writeRmsExtremeUnderVoltagePeriodAttribute(DefaultClusterCallback callback, Integer value) { - writeRmsExtremeUnderVoltagePeriodAttribute(chipClusterPtr, callback, value, null); - } - - public void writeRmsExtremeUnderVoltagePeriodAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeRmsExtremeUnderVoltagePeriodAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeRmsExtremeUnderVoltagePeriodAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsExtremeUnderVoltagePeriodAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsVoltageSagPeriodAttribute( - IntegerAttributeCallback callback - ) { - readRmsVoltageSagPeriodAttribute(chipClusterPtr, callback); - } - public void writeRmsVoltageSagPeriodAttribute(DefaultClusterCallback callback, Integer value) { - writeRmsVoltageSagPeriodAttribute(chipClusterPtr, callback, value, null); - } - - public void writeRmsVoltageSagPeriodAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeRmsVoltageSagPeriodAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeRmsVoltageSagPeriodAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsVoltageSagPeriodAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsVoltageSwellPeriodAttribute( - IntegerAttributeCallback callback - ) { - readRmsVoltageSwellPeriodAttribute(chipClusterPtr, callback); - } - public void writeRmsVoltageSwellPeriodAttribute(DefaultClusterCallback callback, Integer value) { - writeRmsVoltageSwellPeriodAttribute(chipClusterPtr, callback, value, null); - } - - public void writeRmsVoltageSwellPeriodAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeRmsVoltageSwellPeriodAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeRmsVoltageSwellPeriodAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsVoltageSwellPeriodAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcVoltageMultiplierAttribute( - IntegerAttributeCallback callback - ) { - readAcVoltageMultiplierAttribute(chipClusterPtr, callback); - } - public void subscribeAcVoltageMultiplierAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAcVoltageMultiplierAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcVoltageDivisorAttribute( - IntegerAttributeCallback callback - ) { - readAcVoltageDivisorAttribute(chipClusterPtr, callback); - } - public void subscribeAcVoltageDivisorAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAcVoltageDivisorAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcCurrentMultiplierAttribute( - IntegerAttributeCallback callback - ) { - readAcCurrentMultiplierAttribute(chipClusterPtr, callback); - } - public void subscribeAcCurrentMultiplierAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAcCurrentMultiplierAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcCurrentDivisorAttribute( - IntegerAttributeCallback callback - ) { - readAcCurrentDivisorAttribute(chipClusterPtr, callback); - } - public void subscribeAcCurrentDivisorAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAcCurrentDivisorAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcPowerMultiplierAttribute( - IntegerAttributeCallback callback - ) { - readAcPowerMultiplierAttribute(chipClusterPtr, callback); - } - public void subscribeAcPowerMultiplierAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAcPowerMultiplierAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcPowerDivisorAttribute( - IntegerAttributeCallback callback - ) { - readAcPowerDivisorAttribute(chipClusterPtr, callback); - } - public void subscribeAcPowerDivisorAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAcPowerDivisorAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOverloadAlarmsMaskAttribute( - IntegerAttributeCallback callback - ) { - readOverloadAlarmsMaskAttribute(chipClusterPtr, callback); - } - public void writeOverloadAlarmsMaskAttribute(DefaultClusterCallback callback, Integer value) { - writeOverloadAlarmsMaskAttribute(chipClusterPtr, callback, value, null); - } - - public void writeOverloadAlarmsMaskAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeOverloadAlarmsMaskAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeOverloadAlarmsMaskAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeOverloadAlarmsMaskAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readVoltageOverloadAttribute( - IntegerAttributeCallback callback - ) { - readVoltageOverloadAttribute(chipClusterPtr, callback); - } - public void subscribeVoltageOverloadAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeVoltageOverloadAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCurrentOverloadAttribute( - IntegerAttributeCallback callback - ) { - readCurrentOverloadAttribute(chipClusterPtr, callback); - } - public void subscribeCurrentOverloadAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCurrentOverloadAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcOverloadAlarmsMaskAttribute( - IntegerAttributeCallback callback - ) { - readAcOverloadAlarmsMaskAttribute(chipClusterPtr, callback); - } - public void writeAcOverloadAlarmsMaskAttribute(DefaultClusterCallback callback, Integer value) { - writeAcOverloadAlarmsMaskAttribute(chipClusterPtr, callback, value, null); - } - - public void writeAcOverloadAlarmsMaskAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeAcOverloadAlarmsMaskAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeAcOverloadAlarmsMaskAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAcOverloadAlarmsMaskAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcVoltageOverloadAttribute( - IntegerAttributeCallback callback - ) { - readAcVoltageOverloadAttribute(chipClusterPtr, callback); - } - public void subscribeAcVoltageOverloadAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAcVoltageOverloadAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcCurrentOverloadAttribute( - IntegerAttributeCallback callback - ) { - readAcCurrentOverloadAttribute(chipClusterPtr, callback); - } - public void subscribeAcCurrentOverloadAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAcCurrentOverloadAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcActivePowerOverloadAttribute( - IntegerAttributeCallback callback - ) { - readAcActivePowerOverloadAttribute(chipClusterPtr, callback); - } - public void subscribeAcActivePowerOverloadAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAcActivePowerOverloadAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcReactivePowerOverloadAttribute( - IntegerAttributeCallback callback - ) { - readAcReactivePowerOverloadAttribute(chipClusterPtr, callback); - } - public void subscribeAcReactivePowerOverloadAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAcReactivePowerOverloadAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageRmsOverVoltageAttribute( - IntegerAttributeCallback callback - ) { - readAverageRmsOverVoltageAttribute(chipClusterPtr, callback); - } - public void subscribeAverageRmsOverVoltageAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAverageRmsOverVoltageAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageRmsUnderVoltageAttribute( - IntegerAttributeCallback callback - ) { - readAverageRmsUnderVoltageAttribute(chipClusterPtr, callback); - } - public void subscribeAverageRmsUnderVoltageAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAverageRmsUnderVoltageAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsExtremeOverVoltageAttribute( - IntegerAttributeCallback callback - ) { - readRmsExtremeOverVoltageAttribute(chipClusterPtr, callback); - } - public void subscribeRmsExtremeOverVoltageAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsExtremeOverVoltageAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsExtremeUnderVoltageAttribute( - IntegerAttributeCallback callback - ) { - readRmsExtremeUnderVoltageAttribute(chipClusterPtr, callback); - } - public void subscribeRmsExtremeUnderVoltageAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsExtremeUnderVoltageAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsVoltageSagAttribute( - IntegerAttributeCallback callback - ) { - readRmsVoltageSagAttribute(chipClusterPtr, callback); - } - public void subscribeRmsVoltageSagAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsVoltageSagAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsVoltageSwellAttribute( - IntegerAttributeCallback callback - ) { - readRmsVoltageSwellAttribute(chipClusterPtr, callback); - } - public void subscribeRmsVoltageSwellAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsVoltageSwellAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLineCurrentPhaseBAttribute( - IntegerAttributeCallback callback - ) { - readLineCurrentPhaseBAttribute(chipClusterPtr, callback); - } - public void subscribeLineCurrentPhaseBAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLineCurrentPhaseBAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readActiveCurrentPhaseBAttribute( - IntegerAttributeCallback callback - ) { - readActiveCurrentPhaseBAttribute(chipClusterPtr, callback); - } - public void subscribeActiveCurrentPhaseBAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeActiveCurrentPhaseBAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readReactiveCurrentPhaseBAttribute( - IntegerAttributeCallback callback - ) { - readReactiveCurrentPhaseBAttribute(chipClusterPtr, callback); - } - public void subscribeReactiveCurrentPhaseBAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeReactiveCurrentPhaseBAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsVoltagePhaseBAttribute( - IntegerAttributeCallback callback - ) { - readRmsVoltagePhaseBAttribute(chipClusterPtr, callback); - } - public void subscribeRmsVoltagePhaseBAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsVoltagePhaseBAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsVoltageMinPhaseBAttribute( - IntegerAttributeCallback callback - ) { - readRmsVoltageMinPhaseBAttribute(chipClusterPtr, callback); - } - public void subscribeRmsVoltageMinPhaseBAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsVoltageMinPhaseBAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsVoltageMaxPhaseBAttribute( - IntegerAttributeCallback callback - ) { - readRmsVoltageMaxPhaseBAttribute(chipClusterPtr, callback); - } - public void subscribeRmsVoltageMaxPhaseBAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsVoltageMaxPhaseBAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsCurrentPhaseBAttribute( - IntegerAttributeCallback callback - ) { - readRmsCurrentPhaseBAttribute(chipClusterPtr, callback); - } - public void subscribeRmsCurrentPhaseBAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsCurrentPhaseBAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsCurrentMinPhaseBAttribute( - IntegerAttributeCallback callback - ) { - readRmsCurrentMinPhaseBAttribute(chipClusterPtr, callback); - } - public void subscribeRmsCurrentMinPhaseBAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsCurrentMinPhaseBAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsCurrentMaxPhaseBAttribute( - IntegerAttributeCallback callback - ) { - readRmsCurrentMaxPhaseBAttribute(chipClusterPtr, callback); - } - public void subscribeRmsCurrentMaxPhaseBAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsCurrentMaxPhaseBAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readActivePowerPhaseBAttribute( - IntegerAttributeCallback callback - ) { - readActivePowerPhaseBAttribute(chipClusterPtr, callback); - } - public void subscribeActivePowerPhaseBAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeActivePowerPhaseBAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readActivePowerMinPhaseBAttribute( - IntegerAttributeCallback callback - ) { - readActivePowerMinPhaseBAttribute(chipClusterPtr, callback); - } - public void subscribeActivePowerMinPhaseBAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeActivePowerMinPhaseBAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readActivePowerMaxPhaseBAttribute( - IntegerAttributeCallback callback - ) { - readActivePowerMaxPhaseBAttribute(chipClusterPtr, callback); - } - public void subscribeActivePowerMaxPhaseBAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeActivePowerMaxPhaseBAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readReactivePowerPhaseBAttribute( - IntegerAttributeCallback callback - ) { - readReactivePowerPhaseBAttribute(chipClusterPtr, callback); - } - public void subscribeReactivePowerPhaseBAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeReactivePowerPhaseBAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readApparentPowerPhaseBAttribute( - IntegerAttributeCallback callback - ) { - readApparentPowerPhaseBAttribute(chipClusterPtr, callback); - } - public void subscribeApparentPowerPhaseBAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeApparentPowerPhaseBAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPowerFactorPhaseBAttribute( - IntegerAttributeCallback callback - ) { - readPowerFactorPhaseBAttribute(chipClusterPtr, callback); - } - public void subscribePowerFactorPhaseBAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePowerFactorPhaseBAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageRmsVoltageMeasurementPeriodPhaseBAttribute( - IntegerAttributeCallback callback - ) { - readAverageRmsVoltageMeasurementPeriodPhaseBAttribute(chipClusterPtr, callback); - } - public void subscribeAverageRmsVoltageMeasurementPeriodPhaseBAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAverageRmsVoltageMeasurementPeriodPhaseBAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageRmsOverVoltageCounterPhaseBAttribute( - IntegerAttributeCallback callback - ) { - readAverageRmsOverVoltageCounterPhaseBAttribute(chipClusterPtr, callback); - } - public void subscribeAverageRmsOverVoltageCounterPhaseBAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAverageRmsOverVoltageCounterPhaseBAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageRmsUnderVoltageCounterPhaseBAttribute( - IntegerAttributeCallback callback - ) { - readAverageRmsUnderVoltageCounterPhaseBAttribute(chipClusterPtr, callback); - } - public void subscribeAverageRmsUnderVoltageCounterPhaseBAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAverageRmsUnderVoltageCounterPhaseBAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsExtremeOverVoltagePeriodPhaseBAttribute( - IntegerAttributeCallback callback - ) { - readRmsExtremeOverVoltagePeriodPhaseBAttribute(chipClusterPtr, callback); - } - public void subscribeRmsExtremeOverVoltagePeriodPhaseBAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsExtremeOverVoltagePeriodPhaseBAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsExtremeUnderVoltagePeriodPhaseBAttribute( - IntegerAttributeCallback callback - ) { - readRmsExtremeUnderVoltagePeriodPhaseBAttribute(chipClusterPtr, callback); - } - public void subscribeRmsExtremeUnderVoltagePeriodPhaseBAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsExtremeUnderVoltagePeriodPhaseBAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsVoltageSagPeriodPhaseBAttribute( - IntegerAttributeCallback callback - ) { - readRmsVoltageSagPeriodPhaseBAttribute(chipClusterPtr, callback); - } - public void subscribeRmsVoltageSagPeriodPhaseBAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsVoltageSagPeriodPhaseBAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsVoltageSwellPeriodPhaseBAttribute( - IntegerAttributeCallback callback - ) { - readRmsVoltageSwellPeriodPhaseBAttribute(chipClusterPtr, callback); - } - public void subscribeRmsVoltageSwellPeriodPhaseBAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsVoltageSwellPeriodPhaseBAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLineCurrentPhaseCAttribute( - IntegerAttributeCallback callback - ) { - readLineCurrentPhaseCAttribute(chipClusterPtr, callback); - } - public void subscribeLineCurrentPhaseCAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLineCurrentPhaseCAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readActiveCurrentPhaseCAttribute( - IntegerAttributeCallback callback - ) { - readActiveCurrentPhaseCAttribute(chipClusterPtr, callback); - } - public void subscribeActiveCurrentPhaseCAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeActiveCurrentPhaseCAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readReactiveCurrentPhaseCAttribute( - IntegerAttributeCallback callback - ) { - readReactiveCurrentPhaseCAttribute(chipClusterPtr, callback); - } - public void subscribeReactiveCurrentPhaseCAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeReactiveCurrentPhaseCAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsVoltagePhaseCAttribute( - IntegerAttributeCallback callback - ) { - readRmsVoltagePhaseCAttribute(chipClusterPtr, callback); - } - public void subscribeRmsVoltagePhaseCAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsVoltagePhaseCAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsVoltageMinPhaseCAttribute( - IntegerAttributeCallback callback - ) { - readRmsVoltageMinPhaseCAttribute(chipClusterPtr, callback); - } - public void subscribeRmsVoltageMinPhaseCAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsVoltageMinPhaseCAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsVoltageMaxPhaseCAttribute( - IntegerAttributeCallback callback - ) { - readRmsVoltageMaxPhaseCAttribute(chipClusterPtr, callback); - } - public void subscribeRmsVoltageMaxPhaseCAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsVoltageMaxPhaseCAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsCurrentPhaseCAttribute( - IntegerAttributeCallback callback - ) { - readRmsCurrentPhaseCAttribute(chipClusterPtr, callback); - } - public void subscribeRmsCurrentPhaseCAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsCurrentPhaseCAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsCurrentMinPhaseCAttribute( - IntegerAttributeCallback callback - ) { - readRmsCurrentMinPhaseCAttribute(chipClusterPtr, callback); - } - public void subscribeRmsCurrentMinPhaseCAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsCurrentMinPhaseCAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsCurrentMaxPhaseCAttribute( - IntegerAttributeCallback callback - ) { - readRmsCurrentMaxPhaseCAttribute(chipClusterPtr, callback); - } - public void subscribeRmsCurrentMaxPhaseCAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsCurrentMaxPhaseCAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readActivePowerPhaseCAttribute( - IntegerAttributeCallback callback - ) { - readActivePowerPhaseCAttribute(chipClusterPtr, callback); - } - public void subscribeActivePowerPhaseCAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeActivePowerPhaseCAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readActivePowerMinPhaseCAttribute( - IntegerAttributeCallback callback - ) { - readActivePowerMinPhaseCAttribute(chipClusterPtr, callback); - } - public void subscribeActivePowerMinPhaseCAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeActivePowerMinPhaseCAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readActivePowerMaxPhaseCAttribute( - IntegerAttributeCallback callback - ) { - readActivePowerMaxPhaseCAttribute(chipClusterPtr, callback); - } - public void subscribeActivePowerMaxPhaseCAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeActivePowerMaxPhaseCAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readReactivePowerPhaseCAttribute( - IntegerAttributeCallback callback - ) { - readReactivePowerPhaseCAttribute(chipClusterPtr, callback); - } - public void subscribeReactivePowerPhaseCAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeReactivePowerPhaseCAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readApparentPowerPhaseCAttribute( - IntegerAttributeCallback callback - ) { - readApparentPowerPhaseCAttribute(chipClusterPtr, callback); - } - public void subscribeApparentPowerPhaseCAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeApparentPowerPhaseCAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readPowerFactorPhaseCAttribute( - IntegerAttributeCallback callback - ) { - readPowerFactorPhaseCAttribute(chipClusterPtr, callback); - } - public void subscribePowerFactorPhaseCAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribePowerFactorPhaseCAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageRmsVoltageMeasurementPeriodPhaseCAttribute( - IntegerAttributeCallback callback - ) { - readAverageRmsVoltageMeasurementPeriodPhaseCAttribute(chipClusterPtr, callback); - } - public void subscribeAverageRmsVoltageMeasurementPeriodPhaseCAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAverageRmsVoltageMeasurementPeriodPhaseCAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageRmsOverVoltageCounterPhaseCAttribute( - IntegerAttributeCallback callback - ) { - readAverageRmsOverVoltageCounterPhaseCAttribute(chipClusterPtr, callback); - } - public void subscribeAverageRmsOverVoltageCounterPhaseCAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAverageRmsOverVoltageCounterPhaseCAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAverageRmsUnderVoltageCounterPhaseCAttribute( - IntegerAttributeCallback callback - ) { - readAverageRmsUnderVoltageCounterPhaseCAttribute(chipClusterPtr, callback); - } - public void subscribeAverageRmsUnderVoltageCounterPhaseCAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeAverageRmsUnderVoltageCounterPhaseCAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsExtremeOverVoltagePeriodPhaseCAttribute( - IntegerAttributeCallback callback - ) { - readRmsExtremeOverVoltagePeriodPhaseCAttribute(chipClusterPtr, callback); - } - public void subscribeRmsExtremeOverVoltagePeriodPhaseCAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsExtremeOverVoltagePeriodPhaseCAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsExtremeUnderVoltagePeriodPhaseCAttribute( - IntegerAttributeCallback callback - ) { - readRmsExtremeUnderVoltagePeriodPhaseCAttribute(chipClusterPtr, callback); - } - public void subscribeRmsExtremeUnderVoltagePeriodPhaseCAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsExtremeUnderVoltagePeriodPhaseCAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsVoltageSagPeriodPhaseCAttribute( - IntegerAttributeCallback callback - ) { - readRmsVoltageSagPeriodPhaseCAttribute(chipClusterPtr, callback); - } - public void subscribeRmsVoltageSagPeriodPhaseCAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsVoltageSagPeriodPhaseCAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRmsVoltageSwellPeriodPhaseCAttribute( - IntegerAttributeCallback callback - ) { - readRmsVoltageSwellPeriodPhaseCAttribute(chipClusterPtr, callback); - } - public void subscribeRmsVoltageSwellPeriodPhaseCAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRmsVoltageSwellPeriodPhaseCAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readMeasurementTypeAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeMeasurementTypeAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDcVoltageAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeDcVoltageAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDcVoltageMinAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeDcVoltageMinAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDcVoltageMaxAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeDcVoltageMaxAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDcCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeDcCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDcCurrentMinAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeDcCurrentMinAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDcCurrentMaxAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeDcCurrentMaxAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDcPowerAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeDcPowerAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDcPowerMinAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeDcPowerMinAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDcPowerMaxAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeDcPowerMaxAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDcVoltageMultiplierAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeDcVoltageMultiplierAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDcVoltageDivisorAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeDcVoltageDivisorAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDcCurrentMultiplierAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeDcCurrentMultiplierAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDcCurrentDivisorAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeDcCurrentDivisorAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDcPowerMultiplierAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeDcPowerMultiplierAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readDcPowerDivisorAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeDcPowerDivisorAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAcFrequencyAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAcFrequencyAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAcFrequencyMinAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAcFrequencyMinAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAcFrequencyMaxAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAcFrequencyMaxAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readNeutralCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeNeutralCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTotalActivePowerAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeTotalActivePowerAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTotalReactivePowerAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeTotalReactivePowerAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readTotalApparentPowerAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeTotalApparentPowerAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasured1stHarmonicCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasured1stHarmonicCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasured3rdHarmonicCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasured3rdHarmonicCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasured5thHarmonicCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasured5thHarmonicCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasured7thHarmonicCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasured7thHarmonicCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasured9thHarmonicCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasured9thHarmonicCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasured11thHarmonicCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasured11thHarmonicCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasuredPhase1stHarmonicCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasuredPhase1stHarmonicCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasuredPhase3rdHarmonicCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasuredPhase3rdHarmonicCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasuredPhase5thHarmonicCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasuredPhase5thHarmonicCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasuredPhase7thHarmonicCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasuredPhase7thHarmonicCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasuredPhase9thHarmonicCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasuredPhase9thHarmonicCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readMeasuredPhase11thHarmonicCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeMeasuredPhase11thHarmonicCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAcFrequencyMultiplierAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAcFrequencyMultiplierAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAcFrequencyDivisorAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAcFrequencyDivisorAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPowerMultiplierAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribePowerMultiplierAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPowerDivisorAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribePowerDivisorAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readHarmonicCurrentMultiplierAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeHarmonicCurrentMultiplierAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPhaseHarmonicCurrentMultiplierAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePhaseHarmonicCurrentMultiplierAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInstantaneousVoltageAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeInstantaneousVoltageAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInstantaneousLineCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeInstantaneousLineCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInstantaneousActiveCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeInstantaneousActiveCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInstantaneousReactiveCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeInstantaneousReactiveCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInstantaneousPowerAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeInstantaneousPowerAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsVoltageAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsVoltageAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsVoltageMinAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsVoltageMinAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsVoltageMaxAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsVoltageMaxAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsCurrentAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsCurrentMinAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsCurrentMinAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsCurrentMaxAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsCurrentMaxAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readActivePowerAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeActivePowerAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readActivePowerMinAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeActivePowerMinAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readActivePowerMaxAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeActivePowerMaxAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readReactivePowerAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeReactivePowerAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readApparentPowerAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeApparentPowerAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPowerFactorAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePowerFactorAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAverageRmsVoltageMeasurementPeriodAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeAverageRmsVoltageMeasurementPeriodAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeAverageRmsVoltageMeasurementPeriodAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAverageRmsUnderVoltageCounterAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeAverageRmsUnderVoltageCounterAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeAverageRmsUnderVoltageCounterAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsExtremeOverVoltagePeriodAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeRmsExtremeOverVoltagePeriodAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeRmsExtremeOverVoltagePeriodAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsExtremeUnderVoltagePeriodAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeRmsExtremeUnderVoltagePeriodAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeRmsExtremeUnderVoltagePeriodAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsVoltageSagPeriodAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeRmsVoltageSagPeriodAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeRmsVoltageSagPeriodAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsVoltageSwellPeriodAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeRmsVoltageSwellPeriodAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeRmsVoltageSwellPeriodAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAcVoltageMultiplierAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAcVoltageMultiplierAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAcVoltageDivisorAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAcVoltageDivisorAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAcCurrentMultiplierAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAcCurrentMultiplierAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAcCurrentDivisorAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAcCurrentDivisorAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAcPowerMultiplierAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAcPowerMultiplierAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAcPowerDivisorAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAcPowerDivisorAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readOverloadAlarmsMaskAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeOverloadAlarmsMaskAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeOverloadAlarmsMaskAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readVoltageOverloadAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeVoltageOverloadAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readCurrentOverloadAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeCurrentOverloadAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAcOverloadAlarmsMaskAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeAcOverloadAlarmsMaskAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeAcOverloadAlarmsMaskAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAcVoltageOverloadAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAcVoltageOverloadAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAcCurrentOverloadAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAcCurrentOverloadAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAcActivePowerOverloadAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAcActivePowerOverloadAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAcReactivePowerOverloadAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAcReactivePowerOverloadAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAverageRmsOverVoltageAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAverageRmsOverVoltageAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAverageRmsUnderVoltageAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAverageRmsUnderVoltageAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsExtremeOverVoltageAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsExtremeOverVoltageAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsExtremeUnderVoltageAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsExtremeUnderVoltageAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsVoltageSagAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsVoltageSagAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsVoltageSwellAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsVoltageSwellAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLineCurrentPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeLineCurrentPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readActiveCurrentPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeActiveCurrentPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readReactiveCurrentPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeReactiveCurrentPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsVoltagePhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsVoltagePhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsVoltageMinPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsVoltageMinPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsVoltageMaxPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsVoltageMaxPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsCurrentPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsCurrentPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsCurrentMinPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsCurrentMinPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsCurrentMaxPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsCurrentMaxPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readActivePowerPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeActivePowerPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readActivePowerMinPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeActivePowerMinPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readActivePowerMaxPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeActivePowerMaxPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readReactivePowerPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeReactivePowerPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readApparentPowerPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeApparentPowerPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPowerFactorPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePowerFactorPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAverageRmsVoltageMeasurementPeriodPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAverageRmsVoltageMeasurementPeriodPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAverageRmsOverVoltageCounterPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAverageRmsOverVoltageCounterPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAverageRmsUnderVoltageCounterPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAverageRmsUnderVoltageCounterPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsExtremeOverVoltagePeriodPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsExtremeOverVoltagePeriodPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsExtremeUnderVoltagePeriodPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsExtremeUnderVoltagePeriodPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsVoltageSagPeriodPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsVoltageSagPeriodPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsVoltageSwellPeriodPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsVoltageSwellPeriodPhaseBAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLineCurrentPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeLineCurrentPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readActiveCurrentPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeActiveCurrentPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readReactiveCurrentPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeReactiveCurrentPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsVoltagePhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsVoltagePhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsVoltageMinPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsVoltageMinPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsVoltageMaxPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsVoltageMaxPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsCurrentPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsCurrentPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsCurrentMinPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsCurrentMinPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsCurrentMaxPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsCurrentMaxPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readActivePowerPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeActivePowerPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readActivePowerMinPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeActivePowerMinPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readActivePowerMaxPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeActivePowerMaxPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readReactivePowerPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeReactivePowerPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readApparentPowerPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeApparentPowerPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readPowerFactorPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribePowerFactorPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAverageRmsVoltageMeasurementPeriodPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAverageRmsVoltageMeasurementPeriodPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAverageRmsOverVoltageCounterPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAverageRmsOverVoltageCounterPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readAverageRmsUnderVoltageCounterPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeAverageRmsUnderVoltageCounterPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsExtremeOverVoltagePeriodPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsExtremeOverVoltagePeriodPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsExtremeUnderVoltagePeriodPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsExtremeUnderVoltagePeriodPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsVoltageSagPeriodPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsVoltageSagPeriodPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRmsVoltageSwellPeriodPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeRmsVoltageSwellPeriodPhaseCAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class UnitTestingCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0xFFF1FC05L; - - public UnitTestingCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void test(DefaultClusterCallback callback - ) { - test(chipClusterPtr, callback, null); - } - - public void test(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - test(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void testNotHandled(DefaultClusterCallback callback - ) { - testNotHandled(chipClusterPtr, callback, null); - } - - public void testNotHandled(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - testNotHandled(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void testSpecific(TestSpecificResponseCallback callback - ) { - testSpecific(chipClusterPtr, callback, null); - } - - public void testSpecific(TestSpecificResponseCallback callback - - , int timedInvokeTimeoutMs) { - testSpecific(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void testUnknownCommand(DefaultClusterCallback callback - ) { - testUnknownCommand(chipClusterPtr, callback, null); - } - - public void testUnknownCommand(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - testUnknownCommand(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void testAddArguments(TestAddArgumentsResponseCallback callback - , Integer arg1, Integer arg2) { - testAddArguments(chipClusterPtr, callback, arg1, arg2, null); - } - - public void testAddArguments(TestAddArgumentsResponseCallback callback - , Integer arg1, Integer arg2 - , int timedInvokeTimeoutMs) { - testAddArguments(chipClusterPtr, callback, arg1, arg2, timedInvokeTimeoutMs); - } - - public void testSimpleArgumentRequest(TestSimpleArgumentResponseCallback callback - , Boolean arg1) { - testSimpleArgumentRequest(chipClusterPtr, callback, arg1, null); - } - - public void testSimpleArgumentRequest(TestSimpleArgumentResponseCallback callback - , Boolean arg1 - , int timedInvokeTimeoutMs) { - testSimpleArgumentRequest(chipClusterPtr, callback, arg1, timedInvokeTimeoutMs); - } - - public void testStructArrayArgumentRequest(TestStructArrayArgumentResponseCallback callback - , ArrayList arg1, ArrayList arg2, ArrayList arg3, ArrayList arg4, Integer arg5, Boolean arg6) { - testStructArrayArgumentRequest(chipClusterPtr, callback, arg1, arg2, arg3, arg4, arg5, arg6, null); - } - - public void testStructArrayArgumentRequest(TestStructArrayArgumentResponseCallback callback - , ArrayList arg1, ArrayList arg2, ArrayList arg3, ArrayList arg4, Integer arg5, Boolean arg6 - , int timedInvokeTimeoutMs) { - testStructArrayArgumentRequest(chipClusterPtr, callback, arg1, arg2, arg3, arg4, arg5, arg6, timedInvokeTimeoutMs); - } - - public void testStructArgumentRequest(BooleanResponseCallback callback - , ChipStructs.UnitTestingClusterSimpleStruct arg1) { - testStructArgumentRequest(chipClusterPtr, callback, arg1, null); - } - - public void testStructArgumentRequest(BooleanResponseCallback callback - , ChipStructs.UnitTestingClusterSimpleStruct arg1 - , int timedInvokeTimeoutMs) { - testStructArgumentRequest(chipClusterPtr, callback, arg1, timedInvokeTimeoutMs); - } - - public void testNestedStructArgumentRequest(BooleanResponseCallback callback - , ChipStructs.UnitTestingClusterNestedStruct arg1) { - testNestedStructArgumentRequest(chipClusterPtr, callback, arg1, null); - } - - public void testNestedStructArgumentRequest(BooleanResponseCallback callback - , ChipStructs.UnitTestingClusterNestedStruct arg1 - , int timedInvokeTimeoutMs) { - testNestedStructArgumentRequest(chipClusterPtr, callback, arg1, timedInvokeTimeoutMs); - } - - public void testListStructArgumentRequest(BooleanResponseCallback callback - , ArrayList arg1) { - testListStructArgumentRequest(chipClusterPtr, callback, arg1, null); - } - - public void testListStructArgumentRequest(BooleanResponseCallback callback - , ArrayList arg1 - , int timedInvokeTimeoutMs) { - testListStructArgumentRequest(chipClusterPtr, callback, arg1, timedInvokeTimeoutMs); - } - - public void testListInt8UArgumentRequest(BooleanResponseCallback callback - , ArrayList arg1) { - testListInt8UArgumentRequest(chipClusterPtr, callback, arg1, null); - } - - public void testListInt8UArgumentRequest(BooleanResponseCallback callback - , ArrayList arg1 - , int timedInvokeTimeoutMs) { - testListInt8UArgumentRequest(chipClusterPtr, callback, arg1, timedInvokeTimeoutMs); - } - - public void testNestedStructListArgumentRequest(BooleanResponseCallback callback - , ChipStructs.UnitTestingClusterNestedStructList arg1) { - testNestedStructListArgumentRequest(chipClusterPtr, callback, arg1, null); - } - - public void testNestedStructListArgumentRequest(BooleanResponseCallback callback - , ChipStructs.UnitTestingClusterNestedStructList arg1 - , int timedInvokeTimeoutMs) { - testNestedStructListArgumentRequest(chipClusterPtr, callback, arg1, timedInvokeTimeoutMs); - } - - public void testListNestedStructListArgumentRequest(BooleanResponseCallback callback - , ArrayList arg1) { - testListNestedStructListArgumentRequest(chipClusterPtr, callback, arg1, null); - } - - public void testListNestedStructListArgumentRequest(BooleanResponseCallback callback - , ArrayList arg1 - , int timedInvokeTimeoutMs) { - testListNestedStructListArgumentRequest(chipClusterPtr, callback, arg1, timedInvokeTimeoutMs); - } - - public void testListInt8UReverseRequest(TestListInt8UReverseResponseCallback callback - , ArrayList arg1) { - testListInt8UReverseRequest(chipClusterPtr, callback, arg1, null); - } - - public void testListInt8UReverseRequest(TestListInt8UReverseResponseCallback callback - , ArrayList arg1 - , int timedInvokeTimeoutMs) { - testListInt8UReverseRequest(chipClusterPtr, callback, arg1, timedInvokeTimeoutMs); - } - - public void testEnumsRequest(TestEnumsResponseCallback callback - , Integer arg1, Integer arg2) { - testEnumsRequest(chipClusterPtr, callback, arg1, arg2, null); - } - - public void testEnumsRequest(TestEnumsResponseCallback callback - , Integer arg1, Integer arg2 - , int timedInvokeTimeoutMs) { - testEnumsRequest(chipClusterPtr, callback, arg1, arg2, timedInvokeTimeoutMs); - } - - public void testNullableOptionalRequest(TestNullableOptionalResponseCallback callback - , @Nullable Optional arg1) { - testNullableOptionalRequest(chipClusterPtr, callback, arg1, null); - } - - public void testNullableOptionalRequest(TestNullableOptionalResponseCallback callback - , @Nullable Optional arg1 - , int timedInvokeTimeoutMs) { - testNullableOptionalRequest(chipClusterPtr, callback, arg1, timedInvokeTimeoutMs); - } - - public void testComplexNullableOptionalRequest(TestComplexNullableOptionalResponseCallback callback - , @Nullable Integer nullableInt, Optional optionalInt, @Nullable Optional nullableOptionalInt, @Nullable String nullableString, Optional optionalString, @Nullable Optional nullableOptionalString, @Nullable ChipStructs.UnitTestingClusterSimpleStruct nullableStruct, Optional optionalStruct, @Nullable Optional nullableOptionalStruct, @Nullable ArrayList nullableList, Optional> optionalList, @Nullable Optional> nullableOptionalList) { - testComplexNullableOptionalRequest(chipClusterPtr, callback, nullableInt, optionalInt, nullableOptionalInt, nullableString, optionalString, nullableOptionalString, nullableStruct, optionalStruct, nullableOptionalStruct, nullableList, optionalList, nullableOptionalList, null); - } - - public void testComplexNullableOptionalRequest(TestComplexNullableOptionalResponseCallback callback - , @Nullable Integer nullableInt, Optional optionalInt, @Nullable Optional nullableOptionalInt, @Nullable String nullableString, Optional optionalString, @Nullable Optional nullableOptionalString, @Nullable ChipStructs.UnitTestingClusterSimpleStruct nullableStruct, Optional optionalStruct, @Nullable Optional nullableOptionalStruct, @Nullable ArrayList nullableList, Optional> optionalList, @Nullable Optional> nullableOptionalList - , int timedInvokeTimeoutMs) { - testComplexNullableOptionalRequest(chipClusterPtr, callback, nullableInt, optionalInt, nullableOptionalInt, nullableString, optionalString, nullableOptionalString, nullableStruct, optionalStruct, nullableOptionalStruct, nullableList, optionalList, nullableOptionalList, timedInvokeTimeoutMs); - } - - public void simpleStructEchoRequest(SimpleStructResponseCallback callback - , ChipStructs.UnitTestingClusterSimpleStruct arg1) { - simpleStructEchoRequest(chipClusterPtr, callback, arg1, null); - } - - public void simpleStructEchoRequest(SimpleStructResponseCallback callback - , ChipStructs.UnitTestingClusterSimpleStruct arg1 - , int timedInvokeTimeoutMs) { - simpleStructEchoRequest(chipClusterPtr, callback, arg1, timedInvokeTimeoutMs); - } - - - public void timedInvokeRequest(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - timedInvokeRequest(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void testSimpleOptionalArgumentRequest(DefaultClusterCallback callback - , Optional arg1) { - testSimpleOptionalArgumentRequest(chipClusterPtr, callback, arg1, null); - } - - public void testSimpleOptionalArgumentRequest(DefaultClusterCallback callback - , Optional arg1 - , int timedInvokeTimeoutMs) { - testSimpleOptionalArgumentRequest(chipClusterPtr, callback, arg1, timedInvokeTimeoutMs); - } - - public void testEmitTestEventRequest(TestEmitTestEventResponseCallback callback - , Integer arg1, Integer arg2, Boolean arg3) { - testEmitTestEventRequest(chipClusterPtr, callback, arg1, arg2, arg3, null); - } - - public void testEmitTestEventRequest(TestEmitTestEventResponseCallback callback - , Integer arg1, Integer arg2, Boolean arg3 - , int timedInvokeTimeoutMs) { - testEmitTestEventRequest(chipClusterPtr, callback, arg1, arg2, arg3, timedInvokeTimeoutMs); - } - - public void testEmitTestFabricScopedEventRequest(TestEmitTestFabricScopedEventResponseCallback callback - , Integer arg1) { - testEmitTestFabricScopedEventRequest(chipClusterPtr, callback, arg1, null); - } - - public void testEmitTestFabricScopedEventRequest(TestEmitTestFabricScopedEventResponseCallback callback - , Integer arg1 - , int timedInvokeTimeoutMs) { - testEmitTestFabricScopedEventRequest(chipClusterPtr, callback, arg1, timedInvokeTimeoutMs); - } - private native void test(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void testNotHandled(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void testSpecific(long chipClusterPtr, TestSpecificResponseCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void testUnknownCommand(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void testAddArguments(long chipClusterPtr, TestAddArgumentsResponseCallback Callback - , Integer arg1, Integer arg2 - , @Nullable Integer timedInvokeTimeoutMs); - private native void testSimpleArgumentRequest(long chipClusterPtr, TestSimpleArgumentResponseCallback Callback - , Boolean arg1 - , @Nullable Integer timedInvokeTimeoutMs); - private native void testStructArrayArgumentRequest(long chipClusterPtr, TestStructArrayArgumentResponseCallback Callback - , ArrayList arg1, ArrayList arg2, ArrayList arg3, ArrayList arg4, Integer arg5, Boolean arg6 - , @Nullable Integer timedInvokeTimeoutMs); - private native void testStructArgumentRequest(long chipClusterPtr, BooleanResponseCallback Callback - , ChipStructs.UnitTestingClusterSimpleStruct arg1 - , @Nullable Integer timedInvokeTimeoutMs); - private native void testNestedStructArgumentRequest(long chipClusterPtr, BooleanResponseCallback Callback - , ChipStructs.UnitTestingClusterNestedStruct arg1 - , @Nullable Integer timedInvokeTimeoutMs); - private native void testListStructArgumentRequest(long chipClusterPtr, BooleanResponseCallback Callback - , ArrayList arg1 - , @Nullable Integer timedInvokeTimeoutMs); - private native void testListInt8UArgumentRequest(long chipClusterPtr, BooleanResponseCallback Callback - , ArrayList arg1 - , @Nullable Integer timedInvokeTimeoutMs); - private native void testNestedStructListArgumentRequest(long chipClusterPtr, BooleanResponseCallback Callback - , ChipStructs.UnitTestingClusterNestedStructList arg1 - , @Nullable Integer timedInvokeTimeoutMs); - private native void testListNestedStructListArgumentRequest(long chipClusterPtr, BooleanResponseCallback Callback - , ArrayList arg1 - , @Nullable Integer timedInvokeTimeoutMs); - private native void testListInt8UReverseRequest(long chipClusterPtr, TestListInt8UReverseResponseCallback Callback - , ArrayList arg1 - , @Nullable Integer timedInvokeTimeoutMs); - private native void testEnumsRequest(long chipClusterPtr, TestEnumsResponseCallback Callback - , Integer arg1, Integer arg2 - , @Nullable Integer timedInvokeTimeoutMs); - private native void testNullableOptionalRequest(long chipClusterPtr, TestNullableOptionalResponseCallback Callback - , @Nullable Optional arg1 - , @Nullable Integer timedInvokeTimeoutMs); - private native void testComplexNullableOptionalRequest(long chipClusterPtr, TestComplexNullableOptionalResponseCallback Callback - , @Nullable Integer nullableInt, Optional optionalInt, @Nullable Optional nullableOptionalInt, @Nullable String nullableString, Optional optionalString, @Nullable Optional nullableOptionalString, @Nullable ChipStructs.UnitTestingClusterSimpleStruct nullableStruct, Optional optionalStruct, @Nullable Optional nullableOptionalStruct, @Nullable ArrayList nullableList, Optional> optionalList, @Nullable Optional> nullableOptionalList - , @Nullable Integer timedInvokeTimeoutMs); - private native void simpleStructEchoRequest(long chipClusterPtr, SimpleStructResponseCallback Callback - , ChipStructs.UnitTestingClusterSimpleStruct arg1 - , @Nullable Integer timedInvokeTimeoutMs); - private native void timedInvokeRequest(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void testSimpleOptionalArgumentRequest(long chipClusterPtr, DefaultClusterCallback Callback - , Optional arg1 - , @Nullable Integer timedInvokeTimeoutMs); - private native void testEmitTestEventRequest(long chipClusterPtr, TestEmitTestEventResponseCallback Callback - , Integer arg1, Integer arg2, Boolean arg3 - , @Nullable Integer timedInvokeTimeoutMs); - private native void testEmitTestFabricScopedEventRequest(long chipClusterPtr, TestEmitTestFabricScopedEventResponseCallback Callback - , Integer arg1 - , @Nullable Integer timedInvokeTimeoutMs); - public interface TestSpecificResponseCallback { - void onSuccess(Integer returnValue); - - void onError(Exception error); - } - - public interface TestAddArgumentsResponseCallback { - void onSuccess(Integer returnValue); - - void onError(Exception error); - } - - public interface TestSimpleArgumentResponseCallback { - void onSuccess(Boolean returnValue); - - void onError(Exception error); - } - - public interface TestStructArrayArgumentResponseCallback { - void onSuccess(ArrayList arg1, ArrayList arg2, ArrayList arg3, ArrayList arg4, Integer arg5, Boolean arg6); - - void onError(Exception error); - } - - public interface TestListInt8UReverseResponseCallback { - void onSuccess(ArrayList arg1); - - void onError(Exception error); - } - - public interface TestEnumsResponseCallback { - void onSuccess(Integer arg1, Integer arg2); - - void onError(Exception error); - } - - public interface TestNullableOptionalResponseCallback { - void onSuccess(Boolean wasPresent, Optional wasNull, Optional value, @Nullable Optional originalValue); - - void onError(Exception error); - } - - public interface TestComplexNullableOptionalResponseCallback { - void onSuccess(Boolean nullableIntWasNull, Optional nullableIntValue, Boolean optionalIntWasPresent, Optional optionalIntValue, Boolean nullableOptionalIntWasPresent, Optional nullableOptionalIntWasNull, Optional nullableOptionalIntValue, Boolean nullableStringWasNull, Optional nullableStringValue, Boolean optionalStringWasPresent, Optional optionalStringValue, Boolean nullableOptionalStringWasPresent, Optional nullableOptionalStringWasNull, Optional nullableOptionalStringValue, Boolean nullableStructWasNull, Optional nullableStructValue, Boolean optionalStructWasPresent, Optional optionalStructValue, Boolean nullableOptionalStructWasPresent, Optional nullableOptionalStructWasNull, Optional nullableOptionalStructValue, Boolean nullableListWasNull, Optional> nullableListValue, Boolean optionalListWasPresent, Optional> optionalListValue, Boolean nullableOptionalListWasPresent, Optional nullableOptionalListWasNull, Optional> nullableOptionalListValue); - - void onError(Exception error); - } - - public interface BooleanResponseCallback { - void onSuccess(Boolean value); - - void onError(Exception error); - } - - public interface SimpleStructResponseCallback { - void onSuccess(ChipStructs.UnitTestingClusterSimpleStruct arg1); - - void onError(Exception error); - } - - public interface TestEmitTestEventResponseCallback { - void onSuccess(Long value); - - void onError(Exception error); - } - - public interface TestEmitTestFabricScopedEventResponseCallback { - void onSuccess(Long value); - - void onError(Exception error); - } - - - public interface ListInt8uAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ListOctetStringAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ListStructOctetStringAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ListNullablesAndOptionalsStructAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ListLongOctetStringAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface ListFabricScopedAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableBooleanAttributeCallback { - void onSuccess(@Nullable Boolean value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableBitmap8AttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableBitmap16AttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableBitmap32AttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableBitmap64AttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableInt8uAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableInt16uAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableInt24uAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableInt32uAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableInt40uAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableInt48uAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableInt56uAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableInt64uAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableInt8sAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableInt16sAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableInt24sAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableInt32sAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableInt40sAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableInt48sAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableInt56sAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableInt64sAttributeCallback { - void onSuccess(@Nullable Long value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableEnum8AttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableEnum16AttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableFloatSingleAttributeCallback { - void onSuccess(@Nullable Float value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableFloatDoubleAttributeCallback { - void onSuccess(@Nullable Double value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableOctetStringAttributeCallback { - void onSuccess(@Nullable byte[] value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableCharStringAttributeCallback { - void onSuccess(@Nullable String value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableEnumAttrAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableRangeRestrictedInt8uAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableRangeRestrictedInt8sAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableRangeRestrictedInt16uAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface NullableRangeRestrictedInt16sAttributeCallback { - void onSuccess(@Nullable Integer value); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readBooleanAttribute( - BooleanAttributeCallback callback - ) { - readBooleanAttribute(chipClusterPtr, callback); - } - public void writeBooleanAttribute(DefaultClusterCallback callback, Boolean value) { - writeBooleanAttribute(chipClusterPtr, callback, value, null); - } - - public void writeBooleanAttribute(DefaultClusterCallback callback, Boolean value, int timedWriteTimeoutMs) { - writeBooleanAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeBooleanAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBooleanAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBitmap8Attribute( - IntegerAttributeCallback callback - ) { - readBitmap8Attribute(chipClusterPtr, callback); - } - public void writeBitmap8Attribute(DefaultClusterCallback callback, Integer value) { - writeBitmap8Attribute(chipClusterPtr, callback, value, null); - } - - public void writeBitmap8Attribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeBitmap8Attribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeBitmap8Attribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBitmap8Attribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBitmap16Attribute( - IntegerAttributeCallback callback - ) { - readBitmap16Attribute(chipClusterPtr, callback); - } - public void writeBitmap16Attribute(DefaultClusterCallback callback, Integer value) { - writeBitmap16Attribute(chipClusterPtr, callback, value, null); - } - - public void writeBitmap16Attribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeBitmap16Attribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeBitmap16Attribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBitmap16Attribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBitmap32Attribute( - LongAttributeCallback callback - ) { - readBitmap32Attribute(chipClusterPtr, callback); - } - public void writeBitmap32Attribute(DefaultClusterCallback callback, Long value) { - writeBitmap32Attribute(chipClusterPtr, callback, value, null); - } - - public void writeBitmap32Attribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeBitmap32Attribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeBitmap32Attribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBitmap32Attribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readBitmap64Attribute( - LongAttributeCallback callback - ) { - readBitmap64Attribute(chipClusterPtr, callback); - } - public void writeBitmap64Attribute(DefaultClusterCallback callback, Long value) { - writeBitmap64Attribute(chipClusterPtr, callback, value, null); - } - - public void writeBitmap64Attribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeBitmap64Attribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeBitmap64Attribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeBitmap64Attribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInt8uAttribute( - IntegerAttributeCallback callback - ) { - readInt8uAttribute(chipClusterPtr, callback); - } - public void writeInt8uAttribute(DefaultClusterCallback callback, Integer value) { - writeInt8uAttribute(chipClusterPtr, callback, value, null); - } - - public void writeInt8uAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeInt8uAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeInt8uAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInt8uAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInt16uAttribute( - IntegerAttributeCallback callback - ) { - readInt16uAttribute(chipClusterPtr, callback); - } - public void writeInt16uAttribute(DefaultClusterCallback callback, Integer value) { - writeInt16uAttribute(chipClusterPtr, callback, value, null); - } - - public void writeInt16uAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeInt16uAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeInt16uAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInt16uAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInt24uAttribute( - LongAttributeCallback callback - ) { - readInt24uAttribute(chipClusterPtr, callback); - } - public void writeInt24uAttribute(DefaultClusterCallback callback, Long value) { - writeInt24uAttribute(chipClusterPtr, callback, value, null); - } - - public void writeInt24uAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeInt24uAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeInt24uAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInt24uAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInt32uAttribute( - LongAttributeCallback callback - ) { - readInt32uAttribute(chipClusterPtr, callback); - } - public void writeInt32uAttribute(DefaultClusterCallback callback, Long value) { - writeInt32uAttribute(chipClusterPtr, callback, value, null); - } - - public void writeInt32uAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeInt32uAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeInt32uAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInt32uAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInt40uAttribute( - LongAttributeCallback callback - ) { - readInt40uAttribute(chipClusterPtr, callback); - } - public void writeInt40uAttribute(DefaultClusterCallback callback, Long value) { - writeInt40uAttribute(chipClusterPtr, callback, value, null); - } - - public void writeInt40uAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeInt40uAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeInt40uAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInt40uAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInt48uAttribute( - LongAttributeCallback callback - ) { - readInt48uAttribute(chipClusterPtr, callback); - } - public void writeInt48uAttribute(DefaultClusterCallback callback, Long value) { - writeInt48uAttribute(chipClusterPtr, callback, value, null); - } - - public void writeInt48uAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeInt48uAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeInt48uAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInt48uAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInt56uAttribute( - LongAttributeCallback callback - ) { - readInt56uAttribute(chipClusterPtr, callback); - } - public void writeInt56uAttribute(DefaultClusterCallback callback, Long value) { - writeInt56uAttribute(chipClusterPtr, callback, value, null); - } - - public void writeInt56uAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeInt56uAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeInt56uAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInt56uAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInt64uAttribute( - LongAttributeCallback callback - ) { - readInt64uAttribute(chipClusterPtr, callback); - } - public void writeInt64uAttribute(DefaultClusterCallback callback, Long value) { - writeInt64uAttribute(chipClusterPtr, callback, value, null); - } - - public void writeInt64uAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeInt64uAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeInt64uAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInt64uAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInt8sAttribute( - IntegerAttributeCallback callback - ) { - readInt8sAttribute(chipClusterPtr, callback); - } - public void writeInt8sAttribute(DefaultClusterCallback callback, Integer value) { - writeInt8sAttribute(chipClusterPtr, callback, value, null); - } - - public void writeInt8sAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeInt8sAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeInt8sAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInt8sAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInt16sAttribute( - IntegerAttributeCallback callback - ) { - readInt16sAttribute(chipClusterPtr, callback); - } - public void writeInt16sAttribute(DefaultClusterCallback callback, Integer value) { - writeInt16sAttribute(chipClusterPtr, callback, value, null); - } - - public void writeInt16sAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeInt16sAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeInt16sAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInt16sAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInt24sAttribute( - LongAttributeCallback callback - ) { - readInt24sAttribute(chipClusterPtr, callback); - } - public void writeInt24sAttribute(DefaultClusterCallback callback, Long value) { - writeInt24sAttribute(chipClusterPtr, callback, value, null); - } - - public void writeInt24sAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeInt24sAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeInt24sAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInt24sAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInt32sAttribute( - LongAttributeCallback callback - ) { - readInt32sAttribute(chipClusterPtr, callback); - } - public void writeInt32sAttribute(DefaultClusterCallback callback, Long value) { - writeInt32sAttribute(chipClusterPtr, callback, value, null); - } - - public void writeInt32sAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeInt32sAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeInt32sAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInt32sAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInt40sAttribute( - LongAttributeCallback callback - ) { - readInt40sAttribute(chipClusterPtr, callback); - } - public void writeInt40sAttribute(DefaultClusterCallback callback, Long value) { - writeInt40sAttribute(chipClusterPtr, callback, value, null); - } - - public void writeInt40sAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeInt40sAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeInt40sAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInt40sAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInt48sAttribute( - LongAttributeCallback callback - ) { - readInt48sAttribute(chipClusterPtr, callback); - } - public void writeInt48sAttribute(DefaultClusterCallback callback, Long value) { - writeInt48sAttribute(chipClusterPtr, callback, value, null); - } - - public void writeInt48sAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeInt48sAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeInt48sAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInt48sAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInt56sAttribute( - LongAttributeCallback callback - ) { - readInt56sAttribute(chipClusterPtr, callback); - } - public void writeInt56sAttribute(DefaultClusterCallback callback, Long value) { - writeInt56sAttribute(chipClusterPtr, callback, value, null); - } - - public void writeInt56sAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeInt56sAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeInt56sAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInt56sAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readInt64sAttribute( - LongAttributeCallback callback - ) { - readInt64sAttribute(chipClusterPtr, callback); - } - public void writeInt64sAttribute(DefaultClusterCallback callback, Long value) { - writeInt64sAttribute(chipClusterPtr, callback, value, null); - } - - public void writeInt64sAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeInt64sAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeInt64sAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeInt64sAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEnum8Attribute( - IntegerAttributeCallback callback - ) { - readEnum8Attribute(chipClusterPtr, callback); - } - public void writeEnum8Attribute(DefaultClusterCallback callback, Integer value) { - writeEnum8Attribute(chipClusterPtr, callback, value, null); - } - - public void writeEnum8Attribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeEnum8Attribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeEnum8Attribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeEnum8Attribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEnum16Attribute( - IntegerAttributeCallback callback - ) { - readEnum16Attribute(chipClusterPtr, callback); - } - public void writeEnum16Attribute(DefaultClusterCallback callback, Integer value) { - writeEnum16Attribute(chipClusterPtr, callback, value, null); - } - - public void writeEnum16Attribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeEnum16Attribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeEnum16Attribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeEnum16Attribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFloatSingleAttribute( - FloatAttributeCallback callback - ) { - readFloatSingleAttribute(chipClusterPtr, callback); - } - public void writeFloatSingleAttribute(DefaultClusterCallback callback, Float value) { - writeFloatSingleAttribute(chipClusterPtr, callback, value, null); - } - - public void writeFloatSingleAttribute(DefaultClusterCallback callback, Float value, int timedWriteTimeoutMs) { - writeFloatSingleAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeFloatSingleAttribute( - FloatAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFloatSingleAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFloatDoubleAttribute( - DoubleAttributeCallback callback - ) { - readFloatDoubleAttribute(chipClusterPtr, callback); - } - public void writeFloatDoubleAttribute(DefaultClusterCallback callback, Double value) { - writeFloatDoubleAttribute(chipClusterPtr, callback, value, null); - } - - public void writeFloatDoubleAttribute(DefaultClusterCallback callback, Double value, int timedWriteTimeoutMs) { - writeFloatDoubleAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeFloatDoubleAttribute( - DoubleAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFloatDoubleAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readOctetStringAttribute( - OctetStringAttributeCallback callback - ) { - readOctetStringAttribute(chipClusterPtr, callback); - } - public void writeOctetStringAttribute(DefaultClusterCallback callback, byte[] value) { - writeOctetStringAttribute(chipClusterPtr, callback, value, null); - } - - public void writeOctetStringAttribute(DefaultClusterCallback callback, byte[] value, int timedWriteTimeoutMs) { - writeOctetStringAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeOctetStringAttribute( - OctetStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeOctetStringAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readListInt8uAttribute( - ListInt8uAttributeCallback callback - ) { - readListInt8uAttribute(chipClusterPtr, callback); - } - public void writeListInt8uAttribute(DefaultClusterCallback callback, ArrayList value) { - writeListInt8uAttribute(chipClusterPtr, callback, value, null); - } - - public void writeListInt8uAttribute(DefaultClusterCallback callback, ArrayList value, int timedWriteTimeoutMs) { - writeListInt8uAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeListInt8uAttribute( - ListInt8uAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeListInt8uAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readListOctetStringAttribute( - ListOctetStringAttributeCallback callback - ) { - readListOctetStringAttribute(chipClusterPtr, callback); - } - public void writeListOctetStringAttribute(DefaultClusterCallback callback, ArrayList value) { - writeListOctetStringAttribute(chipClusterPtr, callback, value, null); - } - - public void writeListOctetStringAttribute(DefaultClusterCallback callback, ArrayList value, int timedWriteTimeoutMs) { - writeListOctetStringAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeListOctetStringAttribute( - ListOctetStringAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeListOctetStringAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readListStructOctetStringAttribute( - ListStructOctetStringAttributeCallback callback - ) { - readListStructOctetStringAttribute(chipClusterPtr, callback); - } - public void writeListStructOctetStringAttribute(DefaultClusterCallback callback, ArrayList value) { - writeListStructOctetStringAttribute(chipClusterPtr, callback, value, null); - } - - public void writeListStructOctetStringAttribute(DefaultClusterCallback callback, ArrayList value, int timedWriteTimeoutMs) { - writeListStructOctetStringAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeListStructOctetStringAttribute( - ListStructOctetStringAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeListStructOctetStringAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLongOctetStringAttribute( - OctetStringAttributeCallback callback - ) { - readLongOctetStringAttribute(chipClusterPtr, callback); - } - public void writeLongOctetStringAttribute(DefaultClusterCallback callback, byte[] value) { - writeLongOctetStringAttribute(chipClusterPtr, callback, value, null); - } - - public void writeLongOctetStringAttribute(DefaultClusterCallback callback, byte[] value, int timedWriteTimeoutMs) { - writeLongOctetStringAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeLongOctetStringAttribute( - OctetStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLongOctetStringAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readCharStringAttribute( - CharStringAttributeCallback callback - ) { - readCharStringAttribute(chipClusterPtr, callback); - } - public void writeCharStringAttribute(DefaultClusterCallback callback, String value) { - writeCharStringAttribute(chipClusterPtr, callback, value, null); - } - - public void writeCharStringAttribute(DefaultClusterCallback callback, String value, int timedWriteTimeoutMs) { - writeCharStringAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeCharStringAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeCharStringAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readLongCharStringAttribute( - CharStringAttributeCallback callback - ) { - readLongCharStringAttribute(chipClusterPtr, callback); - } - public void writeLongCharStringAttribute(DefaultClusterCallback callback, String value) { - writeLongCharStringAttribute(chipClusterPtr, callback, value, null); - } - - public void writeLongCharStringAttribute(DefaultClusterCallback callback, String value, int timedWriteTimeoutMs) { - writeLongCharStringAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeLongCharStringAttribute( - CharStringAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeLongCharStringAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEpochUsAttribute( - LongAttributeCallback callback - ) { - readEpochUsAttribute(chipClusterPtr, callback); - } - public void writeEpochUsAttribute(DefaultClusterCallback callback, Long value) { - writeEpochUsAttribute(chipClusterPtr, callback, value, null); - } - - public void writeEpochUsAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeEpochUsAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeEpochUsAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeEpochUsAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEpochSAttribute( - LongAttributeCallback callback - ) { - readEpochSAttribute(chipClusterPtr, callback); - } - public void writeEpochSAttribute(DefaultClusterCallback callback, Long value) { - writeEpochSAttribute(chipClusterPtr, callback, value, null); - } - - public void writeEpochSAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeEpochSAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeEpochSAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeEpochSAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readVendorIdAttribute( - IntegerAttributeCallback callback - ) { - readVendorIdAttribute(chipClusterPtr, callback); - } - public void writeVendorIdAttribute(DefaultClusterCallback callback, Integer value) { - writeVendorIdAttribute(chipClusterPtr, callback, value, null); - } - - public void writeVendorIdAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeVendorIdAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeVendorIdAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeVendorIdAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readListNullablesAndOptionalsStructAttribute( - ListNullablesAndOptionalsStructAttributeCallback callback - ) { - readListNullablesAndOptionalsStructAttribute(chipClusterPtr, callback); - } - public void writeListNullablesAndOptionalsStructAttribute(DefaultClusterCallback callback, ArrayList value) { - writeListNullablesAndOptionalsStructAttribute(chipClusterPtr, callback, value, null); - } - - public void writeListNullablesAndOptionalsStructAttribute(DefaultClusterCallback callback, ArrayList value, int timedWriteTimeoutMs) { - writeListNullablesAndOptionalsStructAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeListNullablesAndOptionalsStructAttribute( - ListNullablesAndOptionalsStructAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeListNullablesAndOptionalsStructAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEnumAttrAttribute( - IntegerAttributeCallback callback - ) { - readEnumAttrAttribute(chipClusterPtr, callback); - } - public void writeEnumAttrAttribute(DefaultClusterCallback callback, Integer value) { - writeEnumAttrAttribute(chipClusterPtr, callback, value, null); - } - - public void writeEnumAttrAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeEnumAttrAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeEnumAttrAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeEnumAttrAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRangeRestrictedInt8uAttribute( - IntegerAttributeCallback callback - ) { - readRangeRestrictedInt8uAttribute(chipClusterPtr, callback); - } - public void writeRangeRestrictedInt8uAttribute(DefaultClusterCallback callback, Integer value) { - writeRangeRestrictedInt8uAttribute(chipClusterPtr, callback, value, null); - } - - public void writeRangeRestrictedInt8uAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeRangeRestrictedInt8uAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeRangeRestrictedInt8uAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRangeRestrictedInt8uAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRangeRestrictedInt8sAttribute( - IntegerAttributeCallback callback - ) { - readRangeRestrictedInt8sAttribute(chipClusterPtr, callback); - } - public void writeRangeRestrictedInt8sAttribute(DefaultClusterCallback callback, Integer value) { - writeRangeRestrictedInt8sAttribute(chipClusterPtr, callback, value, null); - } - - public void writeRangeRestrictedInt8sAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeRangeRestrictedInt8sAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeRangeRestrictedInt8sAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRangeRestrictedInt8sAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRangeRestrictedInt16uAttribute( - IntegerAttributeCallback callback - ) { - readRangeRestrictedInt16uAttribute(chipClusterPtr, callback); - } - public void writeRangeRestrictedInt16uAttribute(DefaultClusterCallback callback, Integer value) { - writeRangeRestrictedInt16uAttribute(chipClusterPtr, callback, value, null); - } - - public void writeRangeRestrictedInt16uAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeRangeRestrictedInt16uAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeRangeRestrictedInt16uAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRangeRestrictedInt16uAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readRangeRestrictedInt16sAttribute( - IntegerAttributeCallback callback - ) { - readRangeRestrictedInt16sAttribute(chipClusterPtr, callback); - } - public void writeRangeRestrictedInt16sAttribute(DefaultClusterCallback callback, Integer value) { - writeRangeRestrictedInt16sAttribute(chipClusterPtr, callback, value, null); - } - - public void writeRangeRestrictedInt16sAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeRangeRestrictedInt16sAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeRangeRestrictedInt16sAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeRangeRestrictedInt16sAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readListLongOctetStringAttribute( - ListLongOctetStringAttributeCallback callback - ) { - readListLongOctetStringAttribute(chipClusterPtr, callback); - } - public void writeListLongOctetStringAttribute(DefaultClusterCallback callback, ArrayList value) { - writeListLongOctetStringAttribute(chipClusterPtr, callback, value, null); - } - - public void writeListLongOctetStringAttribute(DefaultClusterCallback callback, ArrayList value, int timedWriteTimeoutMs) { - writeListLongOctetStringAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeListLongOctetStringAttribute( - ListLongOctetStringAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeListLongOctetStringAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readListFabricScopedAttribute( - ListFabricScopedAttributeCallback callback - ) { - readListFabricScopedAttribute(chipClusterPtr, callback, true); - } - public void readListFabricScopedAttributeWithFabricFilter( - ListFabricScopedAttributeCallback callback - , - boolean isFabricFiltered - ) { - readListFabricScopedAttribute(chipClusterPtr, callback, isFabricFiltered); - } - public void writeListFabricScopedAttribute(DefaultClusterCallback callback, ArrayList value) { - writeListFabricScopedAttribute(chipClusterPtr, callback, value, null); - } - - public void writeListFabricScopedAttribute(DefaultClusterCallback callback, ArrayList value, int timedWriteTimeoutMs) { - writeListFabricScopedAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeListFabricScopedAttribute( - ListFabricScopedAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeListFabricScopedAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readTimedWriteBooleanAttribute( - BooleanAttributeCallback callback - ) { - readTimedWriteBooleanAttribute(chipClusterPtr, callback); - } - - public void writeTimedWriteBooleanAttribute(DefaultClusterCallback callback, Boolean value, int timedWriteTimeoutMs) { - writeTimedWriteBooleanAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeTimedWriteBooleanAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeTimedWriteBooleanAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneralErrorBooleanAttribute( - BooleanAttributeCallback callback - ) { - readGeneralErrorBooleanAttribute(chipClusterPtr, callback); - } - public void writeGeneralErrorBooleanAttribute(DefaultClusterCallback callback, Boolean value) { - writeGeneralErrorBooleanAttribute(chipClusterPtr, callback, value, null); - } - - public void writeGeneralErrorBooleanAttribute(DefaultClusterCallback callback, Boolean value, int timedWriteTimeoutMs) { - writeGeneralErrorBooleanAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeGeneralErrorBooleanAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeGeneralErrorBooleanAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterErrorBooleanAttribute( - BooleanAttributeCallback callback - ) { - readClusterErrorBooleanAttribute(chipClusterPtr, callback); - } - public void writeClusterErrorBooleanAttribute(DefaultClusterCallback callback, Boolean value) { - writeClusterErrorBooleanAttribute(chipClusterPtr, callback, value, null); - } - - public void writeClusterErrorBooleanAttribute(DefaultClusterCallback callback, Boolean value, int timedWriteTimeoutMs) { - writeClusterErrorBooleanAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeClusterErrorBooleanAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterErrorBooleanAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readUnsupportedAttribute( - BooleanAttributeCallback callback - ) { - readUnsupportedAttribute(chipClusterPtr, callback); - } - public void writeUnsupportedAttribute(DefaultClusterCallback callback, Boolean value) { - writeUnsupportedAttribute(chipClusterPtr, callback, value, null); - } - - public void writeUnsupportedAttribute(DefaultClusterCallback callback, Boolean value, int timedWriteTimeoutMs) { - writeUnsupportedAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeUnsupportedAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeUnsupportedAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableBooleanAttribute( - NullableBooleanAttributeCallback callback - ) { - readNullableBooleanAttribute(chipClusterPtr, callback); - } - public void writeNullableBooleanAttribute(DefaultClusterCallback callback, Boolean value) { - writeNullableBooleanAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableBooleanAttribute(DefaultClusterCallback callback, Boolean value, int timedWriteTimeoutMs) { - writeNullableBooleanAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableBooleanAttribute( - NullableBooleanAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableBooleanAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableBitmap8Attribute( - NullableBitmap8AttributeCallback callback - ) { - readNullableBitmap8Attribute(chipClusterPtr, callback); - } - public void writeNullableBitmap8Attribute(DefaultClusterCallback callback, Integer value) { - writeNullableBitmap8Attribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableBitmap8Attribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeNullableBitmap8Attribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableBitmap8Attribute( - NullableBitmap8AttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableBitmap8Attribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableBitmap16Attribute( - NullableBitmap16AttributeCallback callback - ) { - readNullableBitmap16Attribute(chipClusterPtr, callback); - } - public void writeNullableBitmap16Attribute(DefaultClusterCallback callback, Integer value) { - writeNullableBitmap16Attribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableBitmap16Attribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeNullableBitmap16Attribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableBitmap16Attribute( - NullableBitmap16AttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableBitmap16Attribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableBitmap32Attribute( - NullableBitmap32AttributeCallback callback - ) { - readNullableBitmap32Attribute(chipClusterPtr, callback); - } - public void writeNullableBitmap32Attribute(DefaultClusterCallback callback, Long value) { - writeNullableBitmap32Attribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableBitmap32Attribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeNullableBitmap32Attribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableBitmap32Attribute( - NullableBitmap32AttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableBitmap32Attribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableBitmap64Attribute( - NullableBitmap64AttributeCallback callback - ) { - readNullableBitmap64Attribute(chipClusterPtr, callback); - } - public void writeNullableBitmap64Attribute(DefaultClusterCallback callback, Long value) { - writeNullableBitmap64Attribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableBitmap64Attribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeNullableBitmap64Attribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableBitmap64Attribute( - NullableBitmap64AttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableBitmap64Attribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableInt8uAttribute( - NullableInt8uAttributeCallback callback - ) { - readNullableInt8uAttribute(chipClusterPtr, callback); - } - public void writeNullableInt8uAttribute(DefaultClusterCallback callback, Integer value) { - writeNullableInt8uAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableInt8uAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeNullableInt8uAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableInt8uAttribute( - NullableInt8uAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableInt8uAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableInt16uAttribute( - NullableInt16uAttributeCallback callback - ) { - readNullableInt16uAttribute(chipClusterPtr, callback); - } - public void writeNullableInt16uAttribute(DefaultClusterCallback callback, Integer value) { - writeNullableInt16uAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableInt16uAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeNullableInt16uAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableInt16uAttribute( - NullableInt16uAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableInt16uAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableInt24uAttribute( - NullableInt24uAttributeCallback callback - ) { - readNullableInt24uAttribute(chipClusterPtr, callback); - } - public void writeNullableInt24uAttribute(DefaultClusterCallback callback, Long value) { - writeNullableInt24uAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableInt24uAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeNullableInt24uAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableInt24uAttribute( - NullableInt24uAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableInt24uAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableInt32uAttribute( - NullableInt32uAttributeCallback callback - ) { - readNullableInt32uAttribute(chipClusterPtr, callback); - } - public void writeNullableInt32uAttribute(DefaultClusterCallback callback, Long value) { - writeNullableInt32uAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableInt32uAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeNullableInt32uAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableInt32uAttribute( - NullableInt32uAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableInt32uAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableInt40uAttribute( - NullableInt40uAttributeCallback callback - ) { - readNullableInt40uAttribute(chipClusterPtr, callback); - } - public void writeNullableInt40uAttribute(DefaultClusterCallback callback, Long value) { - writeNullableInt40uAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableInt40uAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeNullableInt40uAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableInt40uAttribute( - NullableInt40uAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableInt40uAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableInt48uAttribute( - NullableInt48uAttributeCallback callback - ) { - readNullableInt48uAttribute(chipClusterPtr, callback); - } - public void writeNullableInt48uAttribute(DefaultClusterCallback callback, Long value) { - writeNullableInt48uAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableInt48uAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeNullableInt48uAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableInt48uAttribute( - NullableInt48uAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableInt48uAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableInt56uAttribute( - NullableInt56uAttributeCallback callback - ) { - readNullableInt56uAttribute(chipClusterPtr, callback); - } - public void writeNullableInt56uAttribute(DefaultClusterCallback callback, Long value) { - writeNullableInt56uAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableInt56uAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeNullableInt56uAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableInt56uAttribute( - NullableInt56uAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableInt56uAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableInt64uAttribute( - NullableInt64uAttributeCallback callback - ) { - readNullableInt64uAttribute(chipClusterPtr, callback); - } - public void writeNullableInt64uAttribute(DefaultClusterCallback callback, Long value) { - writeNullableInt64uAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableInt64uAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeNullableInt64uAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableInt64uAttribute( - NullableInt64uAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableInt64uAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableInt8sAttribute( - NullableInt8sAttributeCallback callback - ) { - readNullableInt8sAttribute(chipClusterPtr, callback); - } - public void writeNullableInt8sAttribute(DefaultClusterCallback callback, Integer value) { - writeNullableInt8sAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableInt8sAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeNullableInt8sAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableInt8sAttribute( - NullableInt8sAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableInt8sAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableInt16sAttribute( - NullableInt16sAttributeCallback callback - ) { - readNullableInt16sAttribute(chipClusterPtr, callback); - } - public void writeNullableInt16sAttribute(DefaultClusterCallback callback, Integer value) { - writeNullableInt16sAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableInt16sAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeNullableInt16sAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableInt16sAttribute( - NullableInt16sAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableInt16sAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableInt24sAttribute( - NullableInt24sAttributeCallback callback - ) { - readNullableInt24sAttribute(chipClusterPtr, callback); - } - public void writeNullableInt24sAttribute(DefaultClusterCallback callback, Long value) { - writeNullableInt24sAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableInt24sAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeNullableInt24sAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableInt24sAttribute( - NullableInt24sAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableInt24sAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableInt32sAttribute( - NullableInt32sAttributeCallback callback - ) { - readNullableInt32sAttribute(chipClusterPtr, callback); - } - public void writeNullableInt32sAttribute(DefaultClusterCallback callback, Long value) { - writeNullableInt32sAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableInt32sAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeNullableInt32sAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableInt32sAttribute( - NullableInt32sAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableInt32sAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableInt40sAttribute( - NullableInt40sAttributeCallback callback - ) { - readNullableInt40sAttribute(chipClusterPtr, callback); - } - public void writeNullableInt40sAttribute(DefaultClusterCallback callback, Long value) { - writeNullableInt40sAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableInt40sAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeNullableInt40sAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableInt40sAttribute( - NullableInt40sAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableInt40sAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableInt48sAttribute( - NullableInt48sAttributeCallback callback - ) { - readNullableInt48sAttribute(chipClusterPtr, callback); - } - public void writeNullableInt48sAttribute(DefaultClusterCallback callback, Long value) { - writeNullableInt48sAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableInt48sAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeNullableInt48sAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableInt48sAttribute( - NullableInt48sAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableInt48sAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableInt56sAttribute( - NullableInt56sAttributeCallback callback - ) { - readNullableInt56sAttribute(chipClusterPtr, callback); - } - public void writeNullableInt56sAttribute(DefaultClusterCallback callback, Long value) { - writeNullableInt56sAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableInt56sAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeNullableInt56sAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableInt56sAttribute( - NullableInt56sAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableInt56sAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableInt64sAttribute( - NullableInt64sAttributeCallback callback - ) { - readNullableInt64sAttribute(chipClusterPtr, callback); - } - public void writeNullableInt64sAttribute(DefaultClusterCallback callback, Long value) { - writeNullableInt64sAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableInt64sAttribute(DefaultClusterCallback callback, Long value, int timedWriteTimeoutMs) { - writeNullableInt64sAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableInt64sAttribute( - NullableInt64sAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableInt64sAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableEnum8Attribute( - NullableEnum8AttributeCallback callback - ) { - readNullableEnum8Attribute(chipClusterPtr, callback); - } - public void writeNullableEnum8Attribute(DefaultClusterCallback callback, Integer value) { - writeNullableEnum8Attribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableEnum8Attribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeNullableEnum8Attribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableEnum8Attribute( - NullableEnum8AttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableEnum8Attribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableEnum16Attribute( - NullableEnum16AttributeCallback callback - ) { - readNullableEnum16Attribute(chipClusterPtr, callback); - } - public void writeNullableEnum16Attribute(DefaultClusterCallback callback, Integer value) { - writeNullableEnum16Attribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableEnum16Attribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeNullableEnum16Attribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableEnum16Attribute( - NullableEnum16AttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableEnum16Attribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableFloatSingleAttribute( - NullableFloatSingleAttributeCallback callback - ) { - readNullableFloatSingleAttribute(chipClusterPtr, callback); - } - public void writeNullableFloatSingleAttribute(DefaultClusterCallback callback, Float value) { - writeNullableFloatSingleAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableFloatSingleAttribute(DefaultClusterCallback callback, Float value, int timedWriteTimeoutMs) { - writeNullableFloatSingleAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableFloatSingleAttribute( - NullableFloatSingleAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableFloatSingleAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableFloatDoubleAttribute( - NullableFloatDoubleAttributeCallback callback - ) { - readNullableFloatDoubleAttribute(chipClusterPtr, callback); - } - public void writeNullableFloatDoubleAttribute(DefaultClusterCallback callback, Double value) { - writeNullableFloatDoubleAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableFloatDoubleAttribute(DefaultClusterCallback callback, Double value, int timedWriteTimeoutMs) { - writeNullableFloatDoubleAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableFloatDoubleAttribute( - NullableFloatDoubleAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableFloatDoubleAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableOctetStringAttribute( - NullableOctetStringAttributeCallback callback - ) { - readNullableOctetStringAttribute(chipClusterPtr, callback); - } - public void writeNullableOctetStringAttribute(DefaultClusterCallback callback, byte[] value) { - writeNullableOctetStringAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableOctetStringAttribute(DefaultClusterCallback callback, byte[] value, int timedWriteTimeoutMs) { - writeNullableOctetStringAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableOctetStringAttribute( - NullableOctetStringAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableOctetStringAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableCharStringAttribute( - NullableCharStringAttributeCallback callback - ) { - readNullableCharStringAttribute(chipClusterPtr, callback); - } - public void writeNullableCharStringAttribute(DefaultClusterCallback callback, String value) { - writeNullableCharStringAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableCharStringAttribute(DefaultClusterCallback callback, String value, int timedWriteTimeoutMs) { - writeNullableCharStringAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableCharStringAttribute( - NullableCharStringAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableCharStringAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableEnumAttrAttribute( - NullableEnumAttrAttributeCallback callback - ) { - readNullableEnumAttrAttribute(chipClusterPtr, callback); - } - public void writeNullableEnumAttrAttribute(DefaultClusterCallback callback, Integer value) { - writeNullableEnumAttrAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableEnumAttrAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeNullableEnumAttrAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableEnumAttrAttribute( - NullableEnumAttrAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableEnumAttrAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableRangeRestrictedInt8uAttribute( - NullableRangeRestrictedInt8uAttributeCallback callback - ) { - readNullableRangeRestrictedInt8uAttribute(chipClusterPtr, callback); - } - public void writeNullableRangeRestrictedInt8uAttribute(DefaultClusterCallback callback, Integer value) { - writeNullableRangeRestrictedInt8uAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableRangeRestrictedInt8uAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeNullableRangeRestrictedInt8uAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableRangeRestrictedInt8uAttribute( - NullableRangeRestrictedInt8uAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableRangeRestrictedInt8uAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableRangeRestrictedInt8sAttribute( - NullableRangeRestrictedInt8sAttributeCallback callback - ) { - readNullableRangeRestrictedInt8sAttribute(chipClusterPtr, callback); - } - public void writeNullableRangeRestrictedInt8sAttribute(DefaultClusterCallback callback, Integer value) { - writeNullableRangeRestrictedInt8sAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableRangeRestrictedInt8sAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeNullableRangeRestrictedInt8sAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableRangeRestrictedInt8sAttribute( - NullableRangeRestrictedInt8sAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableRangeRestrictedInt8sAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableRangeRestrictedInt16uAttribute( - NullableRangeRestrictedInt16uAttributeCallback callback - ) { - readNullableRangeRestrictedInt16uAttribute(chipClusterPtr, callback); - } - public void writeNullableRangeRestrictedInt16uAttribute(DefaultClusterCallback callback, Integer value) { - writeNullableRangeRestrictedInt16uAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableRangeRestrictedInt16uAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeNullableRangeRestrictedInt16uAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableRangeRestrictedInt16uAttribute( - NullableRangeRestrictedInt16uAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableRangeRestrictedInt16uAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readNullableRangeRestrictedInt16sAttribute( - NullableRangeRestrictedInt16sAttributeCallback callback - ) { - readNullableRangeRestrictedInt16sAttribute(chipClusterPtr, callback); - } - public void writeNullableRangeRestrictedInt16sAttribute(DefaultClusterCallback callback, Integer value) { - writeNullableRangeRestrictedInt16sAttribute(chipClusterPtr, callback, value, null); - } - - public void writeNullableRangeRestrictedInt16sAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeNullableRangeRestrictedInt16sAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeNullableRangeRestrictedInt16sAttribute( - NullableRangeRestrictedInt16sAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeNullableRangeRestrictedInt16sAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readWriteOnlyInt8uAttribute( - IntegerAttributeCallback callback - ) { - readWriteOnlyInt8uAttribute(chipClusterPtr, callback); - } - public void writeWriteOnlyInt8uAttribute(DefaultClusterCallback callback, Integer value) { - writeWriteOnlyInt8uAttribute(chipClusterPtr, callback, value, null); - } - - public void writeWriteOnlyInt8uAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) { - writeWriteOnlyInt8uAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeWriteOnlyInt8uAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeWriteOnlyInt8uAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readBooleanAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - - private native void writeBooleanAttribute(long chipClusterPtr, DefaultClusterCallback callback, Boolean value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeBooleanAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBitmap8Attribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeBitmap8Attribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeBitmap8Attribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBitmap16Attribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeBitmap16Attribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeBitmap16Attribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBitmap32Attribute(long chipClusterPtr, - LongAttributeCallback callback - ); - - private native void writeBitmap32Attribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeBitmap32Attribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readBitmap64Attribute(long chipClusterPtr, - LongAttributeCallback callback - ); - - private native void writeBitmap64Attribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeBitmap64Attribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInt8uAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeInt8uAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeInt8uAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInt16uAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeInt16uAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeInt16uAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInt24uAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - - private native void writeInt24uAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeInt24uAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInt32uAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - - private native void writeInt32uAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeInt32uAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInt40uAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - - private native void writeInt40uAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeInt40uAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInt48uAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - - private native void writeInt48uAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeInt48uAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInt56uAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - - private native void writeInt56uAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeInt56uAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInt64uAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - - private native void writeInt64uAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeInt64uAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInt8sAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeInt8sAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeInt8sAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInt16sAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeInt16sAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeInt16sAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInt24sAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - - private native void writeInt24sAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeInt24sAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInt32sAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - - private native void writeInt32sAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeInt32sAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInt40sAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - - private native void writeInt40sAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeInt40sAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInt48sAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - - private native void writeInt48sAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeInt48sAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInt56sAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - - private native void writeInt56sAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeInt56sAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readInt64sAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - - private native void writeInt64sAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeInt64sAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readEnum8Attribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeEnum8Attribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeEnum8Attribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readEnum16Attribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeEnum16Attribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeEnum16Attribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readFloatSingleAttribute(long chipClusterPtr, - FloatAttributeCallback callback - ); - - private native void writeFloatSingleAttribute(long chipClusterPtr, DefaultClusterCallback callback, Float value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeFloatSingleAttribute(long chipClusterPtr, - FloatAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readFloatDoubleAttribute(long chipClusterPtr, - DoubleAttributeCallback callback - ); - - private native void writeFloatDoubleAttribute(long chipClusterPtr, DefaultClusterCallback callback, Double value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeFloatDoubleAttribute(long chipClusterPtr, - DoubleAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readOctetStringAttribute(long chipClusterPtr, - OctetStringAttributeCallback callback - ); - - private native void writeOctetStringAttribute(long chipClusterPtr, DefaultClusterCallback callback, byte[] value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeOctetStringAttribute(long chipClusterPtr, - OctetStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readListInt8uAttribute(long chipClusterPtr, - ListInt8uAttributeCallback callback - ); - - private native void writeListInt8uAttribute(long chipClusterPtr, DefaultClusterCallback callback, ArrayList value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeListInt8uAttribute(long chipClusterPtr, - ListInt8uAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readListOctetStringAttribute(long chipClusterPtr, - ListOctetStringAttributeCallback callback - ); - - private native void writeListOctetStringAttribute(long chipClusterPtr, DefaultClusterCallback callback, ArrayList value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeListOctetStringAttribute(long chipClusterPtr, - ListOctetStringAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readListStructOctetStringAttribute(long chipClusterPtr, - ListStructOctetStringAttributeCallback callback - ); - - private native void writeListStructOctetStringAttribute(long chipClusterPtr, DefaultClusterCallback callback, ArrayList value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeListStructOctetStringAttribute(long chipClusterPtr, - ListStructOctetStringAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readLongOctetStringAttribute(long chipClusterPtr, - OctetStringAttributeCallback callback - ); - - private native void writeLongOctetStringAttribute(long chipClusterPtr, DefaultClusterCallback callback, byte[] value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeLongOctetStringAttribute(long chipClusterPtr, - OctetStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readCharStringAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - - private native void writeCharStringAttribute(long chipClusterPtr, DefaultClusterCallback callback, String value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeCharStringAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readLongCharStringAttribute(long chipClusterPtr, - CharStringAttributeCallback callback - ); - - private native void writeLongCharStringAttribute(long chipClusterPtr, DefaultClusterCallback callback, String value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeLongCharStringAttribute(long chipClusterPtr, - CharStringAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readEpochUsAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - - private native void writeEpochUsAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeEpochUsAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readEpochSAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - - private native void writeEpochSAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeEpochSAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readVendorIdAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeVendorIdAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeVendorIdAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readListNullablesAndOptionalsStructAttribute(long chipClusterPtr, - ListNullablesAndOptionalsStructAttributeCallback callback - ); - - private native void writeListNullablesAndOptionalsStructAttribute(long chipClusterPtr, DefaultClusterCallback callback, ArrayList value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeListNullablesAndOptionalsStructAttribute(long chipClusterPtr, - ListNullablesAndOptionalsStructAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEnumAttrAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeEnumAttrAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeEnumAttrAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRangeRestrictedInt8uAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeRangeRestrictedInt8uAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeRangeRestrictedInt8uAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRangeRestrictedInt8sAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeRangeRestrictedInt8sAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeRangeRestrictedInt8sAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRangeRestrictedInt16uAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeRangeRestrictedInt16uAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeRangeRestrictedInt16uAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readRangeRestrictedInt16sAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeRangeRestrictedInt16sAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeRangeRestrictedInt16sAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readListLongOctetStringAttribute(long chipClusterPtr, - ListLongOctetStringAttributeCallback callback - ); - - private native void writeListLongOctetStringAttribute(long chipClusterPtr, DefaultClusterCallback callback, ArrayList value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeListLongOctetStringAttribute(long chipClusterPtr, - ListLongOctetStringAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readListFabricScopedAttribute(long chipClusterPtr, - ListFabricScopedAttributeCallback callback - , boolean isFabricFiltered - ); - - private native void writeListFabricScopedAttribute(long chipClusterPtr, DefaultClusterCallback callback, ArrayList value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeListFabricScopedAttribute(long chipClusterPtr, - ListFabricScopedAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readTimedWriteBooleanAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - - private native void writeTimedWriteBooleanAttribute(long chipClusterPtr, DefaultClusterCallback callback, Boolean value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeTimedWriteBooleanAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneralErrorBooleanAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - - private native void writeGeneralErrorBooleanAttribute(long chipClusterPtr, DefaultClusterCallback callback, Boolean value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeGeneralErrorBooleanAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterErrorBooleanAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - - private native void writeClusterErrorBooleanAttribute(long chipClusterPtr, DefaultClusterCallback callback, Boolean value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeClusterErrorBooleanAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readUnsupportedAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - - private native void writeUnsupportedAttribute(long chipClusterPtr, DefaultClusterCallback callback, Boolean value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeUnsupportedAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readNullableBooleanAttribute(long chipClusterPtr, - NullableBooleanAttributeCallback callback - ); - - private native void writeNullableBooleanAttribute(long chipClusterPtr, DefaultClusterCallback callback, Boolean value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableBooleanAttribute(long chipClusterPtr, - NullableBooleanAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableBitmap8Attribute(long chipClusterPtr, - NullableBitmap8AttributeCallback callback - ); - - private native void writeNullableBitmap8Attribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableBitmap8Attribute(long chipClusterPtr, - NullableBitmap8AttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableBitmap16Attribute(long chipClusterPtr, - NullableBitmap16AttributeCallback callback - ); - - private native void writeNullableBitmap16Attribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableBitmap16Attribute(long chipClusterPtr, - NullableBitmap16AttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableBitmap32Attribute(long chipClusterPtr, - NullableBitmap32AttributeCallback callback - ); - - private native void writeNullableBitmap32Attribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableBitmap32Attribute(long chipClusterPtr, - NullableBitmap32AttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableBitmap64Attribute(long chipClusterPtr, - NullableBitmap64AttributeCallback callback - ); - - private native void writeNullableBitmap64Attribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableBitmap64Attribute(long chipClusterPtr, - NullableBitmap64AttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableInt8uAttribute(long chipClusterPtr, - NullableInt8uAttributeCallback callback - ); - - private native void writeNullableInt8uAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableInt8uAttribute(long chipClusterPtr, - NullableInt8uAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableInt16uAttribute(long chipClusterPtr, - NullableInt16uAttributeCallback callback - ); - - private native void writeNullableInt16uAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableInt16uAttribute(long chipClusterPtr, - NullableInt16uAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableInt24uAttribute(long chipClusterPtr, - NullableInt24uAttributeCallback callback - ); - - private native void writeNullableInt24uAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableInt24uAttribute(long chipClusterPtr, - NullableInt24uAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableInt32uAttribute(long chipClusterPtr, - NullableInt32uAttributeCallback callback - ); - - private native void writeNullableInt32uAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableInt32uAttribute(long chipClusterPtr, - NullableInt32uAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableInt40uAttribute(long chipClusterPtr, - NullableInt40uAttributeCallback callback - ); - - private native void writeNullableInt40uAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableInt40uAttribute(long chipClusterPtr, - NullableInt40uAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableInt48uAttribute(long chipClusterPtr, - NullableInt48uAttributeCallback callback - ); - - private native void writeNullableInt48uAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableInt48uAttribute(long chipClusterPtr, - NullableInt48uAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableInt56uAttribute(long chipClusterPtr, - NullableInt56uAttributeCallback callback - ); - - private native void writeNullableInt56uAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableInt56uAttribute(long chipClusterPtr, - NullableInt56uAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableInt64uAttribute(long chipClusterPtr, - NullableInt64uAttributeCallback callback - ); - - private native void writeNullableInt64uAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableInt64uAttribute(long chipClusterPtr, - NullableInt64uAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableInt8sAttribute(long chipClusterPtr, - NullableInt8sAttributeCallback callback - ); - - private native void writeNullableInt8sAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableInt8sAttribute(long chipClusterPtr, - NullableInt8sAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableInt16sAttribute(long chipClusterPtr, - NullableInt16sAttributeCallback callback - ); - - private native void writeNullableInt16sAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableInt16sAttribute(long chipClusterPtr, - NullableInt16sAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableInt24sAttribute(long chipClusterPtr, - NullableInt24sAttributeCallback callback - ); - - private native void writeNullableInt24sAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableInt24sAttribute(long chipClusterPtr, - NullableInt24sAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableInt32sAttribute(long chipClusterPtr, - NullableInt32sAttributeCallback callback - ); - - private native void writeNullableInt32sAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableInt32sAttribute(long chipClusterPtr, - NullableInt32sAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableInt40sAttribute(long chipClusterPtr, - NullableInt40sAttributeCallback callback - ); - - private native void writeNullableInt40sAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableInt40sAttribute(long chipClusterPtr, - NullableInt40sAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableInt48sAttribute(long chipClusterPtr, - NullableInt48sAttributeCallback callback - ); - - private native void writeNullableInt48sAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableInt48sAttribute(long chipClusterPtr, - NullableInt48sAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableInt56sAttribute(long chipClusterPtr, - NullableInt56sAttributeCallback callback - ); - - private native void writeNullableInt56sAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableInt56sAttribute(long chipClusterPtr, - NullableInt56sAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableInt64sAttribute(long chipClusterPtr, - NullableInt64sAttributeCallback callback - ); - - private native void writeNullableInt64sAttribute(long chipClusterPtr, DefaultClusterCallback callback, Long value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableInt64sAttribute(long chipClusterPtr, - NullableInt64sAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableEnum8Attribute(long chipClusterPtr, - NullableEnum8AttributeCallback callback - ); - - private native void writeNullableEnum8Attribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableEnum8Attribute(long chipClusterPtr, - NullableEnum8AttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableEnum16Attribute(long chipClusterPtr, - NullableEnum16AttributeCallback callback - ); - - private native void writeNullableEnum16Attribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableEnum16Attribute(long chipClusterPtr, - NullableEnum16AttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableFloatSingleAttribute(long chipClusterPtr, - NullableFloatSingleAttributeCallback callback - ); - - private native void writeNullableFloatSingleAttribute(long chipClusterPtr, DefaultClusterCallback callback, Float value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableFloatSingleAttribute(long chipClusterPtr, - NullableFloatSingleAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableFloatDoubleAttribute(long chipClusterPtr, - NullableFloatDoubleAttributeCallback callback - ); - - private native void writeNullableFloatDoubleAttribute(long chipClusterPtr, DefaultClusterCallback callback, Double value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableFloatDoubleAttribute(long chipClusterPtr, - NullableFloatDoubleAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableOctetStringAttribute(long chipClusterPtr, - NullableOctetStringAttributeCallback callback - ); - - private native void writeNullableOctetStringAttribute(long chipClusterPtr, DefaultClusterCallback callback, byte[] value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableOctetStringAttribute(long chipClusterPtr, - NullableOctetStringAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableCharStringAttribute(long chipClusterPtr, - NullableCharStringAttributeCallback callback - ); - - private native void writeNullableCharStringAttribute(long chipClusterPtr, DefaultClusterCallback callback, String value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableCharStringAttribute(long chipClusterPtr, - NullableCharStringAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableEnumAttrAttribute(long chipClusterPtr, - NullableEnumAttrAttributeCallback callback - ); - - private native void writeNullableEnumAttrAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableEnumAttrAttribute(long chipClusterPtr, - NullableEnumAttrAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableRangeRestrictedInt8uAttribute(long chipClusterPtr, - NullableRangeRestrictedInt8uAttributeCallback callback - ); - - private native void writeNullableRangeRestrictedInt8uAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableRangeRestrictedInt8uAttribute(long chipClusterPtr, - NullableRangeRestrictedInt8uAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableRangeRestrictedInt8sAttribute(long chipClusterPtr, - NullableRangeRestrictedInt8sAttributeCallback callback - ); - - private native void writeNullableRangeRestrictedInt8sAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableRangeRestrictedInt8sAttribute(long chipClusterPtr, - NullableRangeRestrictedInt8sAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableRangeRestrictedInt16uAttribute(long chipClusterPtr, - NullableRangeRestrictedInt16uAttributeCallback callback - ); - - private native void writeNullableRangeRestrictedInt16uAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableRangeRestrictedInt16uAttribute(long chipClusterPtr, - NullableRangeRestrictedInt16uAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readNullableRangeRestrictedInt16sAttribute(long chipClusterPtr, - NullableRangeRestrictedInt16sAttributeCallback callback - ); - - private native void writeNullableRangeRestrictedInt16sAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeNullableRangeRestrictedInt16sAttribute(long chipClusterPtr, - NullableRangeRestrictedInt16sAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readWriteOnlyInt8uAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - - private native void writeWriteOnlyInt8uAttribute(long chipClusterPtr, DefaultClusterCallback callback, Integer value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeWriteOnlyInt8uAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class FaultInjectionCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0xFFF1FC06L; - - public FaultInjectionCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void failAtFault(DefaultClusterCallback callback - , Integer type, Long id, Long numCallsToSkip, Long numCallsToFail, Boolean takeMutex) { - failAtFault(chipClusterPtr, callback, type, id, numCallsToSkip, numCallsToFail, takeMutex, null); - } - - public void failAtFault(DefaultClusterCallback callback - , Integer type, Long id, Long numCallsToSkip, Long numCallsToFail, Boolean takeMutex - , int timedInvokeTimeoutMs) { - failAtFault(chipClusterPtr, callback, type, id, numCallsToSkip, numCallsToFail, takeMutex, timedInvokeTimeoutMs); - } - - public void failRandomlyAtFault(DefaultClusterCallback callback - , Integer type, Long id, Integer percentage) { - failRandomlyAtFault(chipClusterPtr, callback, type, id, percentage, null); - } - - public void failRandomlyAtFault(DefaultClusterCallback callback - , Integer type, Long id, Integer percentage - , int timedInvokeTimeoutMs) { - failRandomlyAtFault(chipClusterPtr, callback, type, id, percentage, timedInvokeTimeoutMs); - } - private native void failAtFault(long chipClusterPtr, DefaultClusterCallback Callback - , Integer type, Long id, Long numCallsToSkip, Long numCallsToFail, Boolean takeMutex - , @Nullable Integer timedInvokeTimeoutMs); - private native void failRandomlyAtFault(long chipClusterPtr, DefaultClusterCallback Callback - , Integer type, Long id, Integer percentage - , @Nullable Integer timedInvokeTimeoutMs); - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } - - public static class SampleMeiCluster extends BaseChipCluster { - public static final long CLUSTER_ID = 0xFFF1FC20L; - - public SampleMeiCluster(long devicePtr, int endpointId) { - super(devicePtr, endpointId); - } - - @Override - public native long initWithDevice(long devicePtr, int endpointId); - - public void ping(DefaultClusterCallback callback - ) { - ping(chipClusterPtr, callback, null); - } - - public void ping(DefaultClusterCallback callback - - , int timedInvokeTimeoutMs) { - ping(chipClusterPtr, callback, timedInvokeTimeoutMs); - } - - public void addArguments(AddArgumentsResponseCallback callback - , Integer arg1, Integer arg2) { - addArguments(chipClusterPtr, callback, arg1, arg2, null); - } - - public void addArguments(AddArgumentsResponseCallback callback - , Integer arg1, Integer arg2 - , int timedInvokeTimeoutMs) { - addArguments(chipClusterPtr, callback, arg1, arg2, timedInvokeTimeoutMs); - } - private native void ping(long chipClusterPtr, DefaultClusterCallback Callback - - , @Nullable Integer timedInvokeTimeoutMs); - private native void addArguments(long chipClusterPtr, AddArgumentsResponseCallback Callback - , Integer arg1, Integer arg2 - , @Nullable Integer timedInvokeTimeoutMs); - public interface AddArgumentsResponseCallback { - void onSuccess(Integer returnValue); - - void onError(Exception error); - } - - - public interface GeneratedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AcceptedCommandListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface EventListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - public interface AttributeListAttributeCallback { - void onSuccess( List valueList); - void onError(Exception ex); - default void onSubscriptionEstablished(long subscriptionId) {} - } - - public void readFlipFlopAttribute( - BooleanAttributeCallback callback - ) { - readFlipFlopAttribute(chipClusterPtr, callback); - } - public void writeFlipFlopAttribute(DefaultClusterCallback callback, Boolean value) { - writeFlipFlopAttribute(chipClusterPtr, callback, value, null); - } - - public void writeFlipFlopAttribute(DefaultClusterCallback callback, Boolean value, int timedWriteTimeoutMs) { - writeFlipFlopAttribute(chipClusterPtr, callback, value, timedWriteTimeoutMs); - } - public void subscribeFlipFlopAttribute( - BooleanAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFlipFlopAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - ) { - readGeneratedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeGeneratedCommandListAttribute( - GeneratedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeGeneratedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - ) { - readAcceptedCommandListAttribute(chipClusterPtr, callback); - } - public void subscribeAcceptedCommandListAttribute( - AcceptedCommandListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAcceptedCommandListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readEventListAttribute( - EventListAttributeCallback callback - ) { - readEventListAttribute(chipClusterPtr, callback); - } - public void subscribeEventListAttribute( - EventListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeEventListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readAttributeListAttribute( - AttributeListAttributeCallback callback - ) { - readAttributeListAttribute(chipClusterPtr, callback); - } - public void subscribeAttributeListAttribute( - AttributeListAttributeCallback callback - , - int minInterval, int maxInterval) { - subscribeAttributeListAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readFeatureMapAttribute( - LongAttributeCallback callback - ) { - readFeatureMapAttribute(chipClusterPtr, callback); - } - public void subscribeFeatureMapAttribute( - LongAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeFeatureMapAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - public void readClusterRevisionAttribute( - IntegerAttributeCallback callback - ) { - readClusterRevisionAttribute(chipClusterPtr, callback); - } - public void subscribeClusterRevisionAttribute( - IntegerAttributeCallback callback -, - int minInterval, int maxInterval) { - subscribeClusterRevisionAttribute(chipClusterPtr, callback, minInterval, maxInterval); - } - - private native void readFlipFlopAttribute(long chipClusterPtr, - BooleanAttributeCallback callback - ); - - private native void writeFlipFlopAttribute(long chipClusterPtr, DefaultClusterCallback callback, Boolean value, @Nullable Integer timedWriteTimeoutMs); - private native void subscribeFlipFlopAttribute(long chipClusterPtr, - BooleanAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - ); - private native void subscribeGeneratedCommandListAttribute(long chipClusterPtr, - GeneratedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - ); - private native void subscribeAcceptedCommandListAttribute(long chipClusterPtr, - AcceptedCommandListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - ); - private native void subscribeEventListAttribute(long chipClusterPtr, - EventListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - ); - private native void subscribeAttributeListAttribute(long chipClusterPtr, - AttributeListAttributeCallback callback - , int minInterval, int maxInterval); - - private native void readFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback - ); - private native void subscribeFeatureMapAttribute(long chipClusterPtr, - LongAttributeCallback callback -, int minInterval, int maxInterval); - - private native void readClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback - ); - private native void subscribeClusterRevisionAttribute(long chipClusterPtr, - IntegerAttributeCallback callback -, int minInterval, int maxInterval); - } -} - From 49479b0d7b5332d4fee7cd34339088a038b214b0 Mon Sep 17 00:00:00 2001 From: David Rempel Date: Tue, 12 Dec 2023 13:25:56 -0800 Subject: [PATCH 37/41] missed changing the default response field here --- .../zap-templates/zcl/data-model/chip/thermostat-cluster.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml index 370ab77f0def34..faeb929a9b4d1d 100644 --- a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml @@ -459,7 +459,7 @@ limitations under the License. - + This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. From 3cc1427a0c7675ca6eda5292b8221a6f0ddd1b47 Mon Sep 17 00:00:00 2001 From: David Rempel <63119829+drempelg@users.noreply.github.com> Date: Wed, 13 Dec 2023 09:57:08 -0800 Subject: [PATCH 38/41] Update src/app/clusters/thermostat-server/thermostat-server.cpp Co-authored-by: Boris Zbarsky --- src/app/clusters/thermostat-server/thermostat-server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/clusters/thermostat-server/thermostat-server.cpp b/src/app/clusters/thermostat-server/thermostat-server.cpp index 07a6e0f4aa4483..f5a5157a7e44e9 100644 --- a/src/app/clusters/thermostat-server/thermostat-server.cpp +++ b/src/app/clusters/thermostat-server/thermostat-server.cpp @@ -125,7 +125,7 @@ CHIP_ERROR ThermostatAttrAccess::Read(const ConcreteReadAttributePath & aPath, A } break; case QueuedPreset::Id: { - chip::app::DataModel::Nullable value; + DataModel::Nullable value; return aEncoder.Encode(value); } default: // return CHIP_NO_ERROR and just read from the attribute store in default From c391e39e1335004c084f8693f982007c337ec195 Mon Sep 17 00:00:00 2001 From: David Rempel <63119829+drempelg@users.noreply.github.com> Date: Wed, 13 Dec 2023 09:57:24 -0800 Subject: [PATCH 39/41] Update src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml Co-authored-by: Boris Zbarsky --- .../zap-templates/zcl/data-model/chip/thermostat-cluster.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml index faeb929a9b4d1d..ef6a9247fb2e61 100644 --- a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml @@ -460,7 +460,7 @@ limitations under the License. - This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. + This command is used to clear the weekly schedule. The ClearWeeklySchedule command has no payload. From 8c2abefc599cf4cbe980efd936c19d1b756c29c7 Mon Sep 17 00:00:00 2001 From: David Rempel Date: Wed, 13 Dec 2023 10:15:46 -0800 Subject: [PATCH 40/41] Fixed up the order of the commands and improved the comments. --- .../all-clusters-app.matter | 16 ++++----- .../all-clusters-minimal-app.matter | 16 ++++----- ...umiditysensor_thermostat_56de3d5f45.matter | 16 ++++----- ...tnode_heatingcoolingunit_ncdGai1E5a.matter | 16 ++++----- ...tnode_roomairconditioner_9cf3607804.matter | 16 ++++----- .../rootnode_thermostat_bm3fb8dhYi.matter | 16 ++++----- .../placeholder/linux/apps/app1/config.matter | 32 ++++++++--------- .../placeholder/linux/apps/app2/config.matter | 32 ++++++++--------- .../nxp/zap/thermostat_matter_thread.matter | 16 ++++----- .../nxp/zap/thermostat_matter_wifi.matter | 16 ++++----- .../thermostat-common/thermostat.matter | 16 ++++----- .../data-model/chip/thermostat-cluster.xml | 34 +++++++++---------- .../data_model/controller-clusters.matter | 16 ++++----- .../CHIP/zap-generated/MTRBaseClusters.h | 16 ++++----- 14 files changed, 137 insertions(+), 137 deletions(-) diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter index 69d04a5d540a48..0ebeb8486fcba9 100644 --- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter +++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter @@ -4389,21 +4389,21 @@ cluster Thermostat = 513 { command access(invoke: manage) SetWeeklySchedule(SetWeeklyScheduleRequest): DefaultSuccess = 1; /** Command description for GetWeeklySchedule */ command GetWeeklySchedule(GetWeeklyScheduleRequest): GetWeeklyScheduleResponse = 2; - /** This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. */ + /** This command is used to clear the weekly schedule. The ClearWeeklySchedule command has no payload. */ command access(invoke: manage) ClearWeeklySchedule(): DefaultSuccess = 3; - /** Upon receipt, if the */ + /** This command is used to set the active schedule. */ command SetActiveScheduleRequest(SetActiveScheduleRequestRequest): DefaultSuccess = 5; - /** Upon receipt, this SHALL set the thermostat */ + /** This command is used to set the active preset. */ command SetActivePresetRequest(SetActivePresetRequestRequest): DefaultSuccess = 6; - /** Upon receipt, this SHALL attempt to enable editing of the */ + /** This command is used to start editing the presets and schedules. */ command access(invoke: manage) StartPresetsSchedulesEditRequest(StartPresetsSchedulesEditRequestRequest): DefaultSuccess = 7; - /** Upon receipt, this SHALL attempt to cancel any active editing of the */ + /** This command is used to cancel editing presets and schedules. */ command access(invoke: manage) CancelPresetsSchedulesEditRequest(): DefaultSuccess = 8; - /** Upon receipt, this SHALL attempt to commit any pending changes to the */ + /** This command is used to notify the server that all edits are done and should be committed. */ command access(invoke: manage) CommitPresetsSchedulesRequest(): DefaultSuccess = 9; - /** This command is sent to cancel a queued preset specified by */ + /** This command is sent to cancel a queued preset. */ command access(invoke: manage) CancelSetActivePresetRequest(): DefaultSuccess = 10; - /** This command is sent to set the */ + /** This command sets the set point hold policy. */ command SetTemperatureSetpointHoldPolicy(SetTemperatureSetpointHoldPolicyRequest): DefaultSuccess = 11; } diff --git a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter index 5482d0432a6ee7..2a66e4d79dbe1b 100644 --- a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter +++ b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter @@ -3841,21 +3841,21 @@ cluster Thermostat = 513 { command access(invoke: manage) SetWeeklySchedule(SetWeeklyScheduleRequest): DefaultSuccess = 1; /** Command description for GetWeeklySchedule */ command GetWeeklySchedule(GetWeeklyScheduleRequest): GetWeeklyScheduleResponse = 2; - /** This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. */ + /** This command is used to clear the weekly schedule. The ClearWeeklySchedule command has no payload. */ command access(invoke: manage) ClearWeeklySchedule(): DefaultSuccess = 3; - /** Upon receipt, if the */ + /** This command is used to set the active schedule. */ command SetActiveScheduleRequest(SetActiveScheduleRequestRequest): DefaultSuccess = 5; - /** Upon receipt, this SHALL set the thermostat */ + /** This command is used to set the active preset. */ command SetActivePresetRequest(SetActivePresetRequestRequest): DefaultSuccess = 6; - /** Upon receipt, this SHALL attempt to enable editing of the */ + /** This command is used to start editing the presets and schedules. */ command access(invoke: manage) StartPresetsSchedulesEditRequest(StartPresetsSchedulesEditRequestRequest): DefaultSuccess = 7; - /** Upon receipt, this SHALL attempt to cancel any active editing of the */ + /** This command is used to cancel editing presets and schedules. */ command access(invoke: manage) CancelPresetsSchedulesEditRequest(): DefaultSuccess = 8; - /** Upon receipt, this SHALL attempt to commit any pending changes to the */ + /** This command is used to notify the server that all edits are done and should be committed. */ command access(invoke: manage) CommitPresetsSchedulesRequest(): DefaultSuccess = 9; - /** This command is sent to cancel a queued preset specified by */ + /** This command is sent to cancel a queued preset. */ command access(invoke: manage) CancelSetActivePresetRequest(): DefaultSuccess = 10; - /** This command is sent to set the */ + /** This command sets the set point hold policy. */ command SetTemperatureSetpointHoldPolicy(SetTemperatureSetpointHoldPolicyRequest): DefaultSuccess = 11; } diff --git a/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter b/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter index a9fe914d9c5bcd..93f5436ccc45c2 100644 --- a/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter +++ b/examples/chef/devices/rootnode_airpurifier_airqualitysensor_temperaturesensor_humiditysensor_thermostat_56de3d5f45.matter @@ -1483,21 +1483,21 @@ cluster Thermostat = 513 { command access(invoke: manage) SetWeeklySchedule(SetWeeklyScheduleRequest): DefaultSuccess = 1; /** Command description for GetWeeklySchedule */ command GetWeeklySchedule(GetWeeklyScheduleRequest): GetWeeklyScheduleResponse = 2; - /** This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. */ + /** This command is used to clear the weekly schedule. The ClearWeeklySchedule command has no payload. */ command access(invoke: manage) ClearWeeklySchedule(): DefaultSuccess = 3; - /** Upon receipt, if the */ + /** This command is used to set the active schedule. */ command SetActiveScheduleRequest(SetActiveScheduleRequestRequest): DefaultSuccess = 5; - /** Upon receipt, this SHALL set the thermostat */ + /** This command is used to set the active preset. */ command SetActivePresetRequest(SetActivePresetRequestRequest): DefaultSuccess = 6; - /** Upon receipt, this SHALL attempt to enable editing of the */ + /** This command is used to start editing the presets and schedules. */ command access(invoke: manage) StartPresetsSchedulesEditRequest(StartPresetsSchedulesEditRequestRequest): DefaultSuccess = 7; - /** Upon receipt, this SHALL attempt to cancel any active editing of the */ + /** This command is used to cancel editing presets and schedules. */ command access(invoke: manage) CancelPresetsSchedulesEditRequest(): DefaultSuccess = 8; - /** Upon receipt, this SHALL attempt to commit any pending changes to the */ + /** This command is used to notify the server that all edits are done and should be committed. */ command access(invoke: manage) CommitPresetsSchedulesRequest(): DefaultSuccess = 9; - /** This command is sent to cancel a queued preset specified by */ + /** This command is sent to cancel a queued preset. */ command access(invoke: manage) CancelSetActivePresetRequest(): DefaultSuccess = 10; - /** This command is sent to set the */ + /** This command sets the set point hold policy. */ command SetTemperatureSetpointHoldPolicy(SetTemperatureSetpointHoldPolicyRequest): DefaultSuccess = 11; } diff --git a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter index b61cb9a5dc65d7..c6125d5859edbd 100644 --- a/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter +++ b/examples/chef/devices/rootnode_heatingcoolingunit_ncdGai1E5a.matter @@ -1840,21 +1840,21 @@ cluster Thermostat = 513 { command access(invoke: manage) SetWeeklySchedule(SetWeeklyScheduleRequest): DefaultSuccess = 1; /** Command description for GetWeeklySchedule */ command GetWeeklySchedule(GetWeeklyScheduleRequest): GetWeeklyScheduleResponse = 2; - /** This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. */ + /** This command is used to clear the weekly schedule. The ClearWeeklySchedule command has no payload. */ command access(invoke: manage) ClearWeeklySchedule(): DefaultSuccess = 3; - /** Upon receipt, if the */ + /** This command is used to set the active schedule. */ command SetActiveScheduleRequest(SetActiveScheduleRequestRequest): DefaultSuccess = 5; - /** Upon receipt, this SHALL set the thermostat */ + /** This command is used to set the active preset. */ command SetActivePresetRequest(SetActivePresetRequestRequest): DefaultSuccess = 6; - /** Upon receipt, this SHALL attempt to enable editing of the */ + /** This command is used to start editing the presets and schedules. */ command access(invoke: manage) StartPresetsSchedulesEditRequest(StartPresetsSchedulesEditRequestRequest): DefaultSuccess = 7; - /** Upon receipt, this SHALL attempt to cancel any active editing of the */ + /** This command is used to cancel editing presets and schedules. */ command access(invoke: manage) CancelPresetsSchedulesEditRequest(): DefaultSuccess = 8; - /** Upon receipt, this SHALL attempt to commit any pending changes to the */ + /** This command is used to notify the server that all edits are done and should be committed. */ command access(invoke: manage) CommitPresetsSchedulesRequest(): DefaultSuccess = 9; - /** This command is sent to cancel a queued preset specified by */ + /** This command is sent to cancel a queued preset. */ command access(invoke: manage) CancelSetActivePresetRequest(): DefaultSuccess = 10; - /** This command is sent to set the */ + /** This command sets the set point hold policy. */ command SetTemperatureSetpointHoldPolicy(SetTemperatureSetpointHoldPolicyRequest): DefaultSuccess = 11; } diff --git a/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter b/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter index afce69deebe3f7..cf6ce99b6af75e 100644 --- a/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter +++ b/examples/chef/devices/rootnode_roomairconditioner_9cf3607804.matter @@ -1423,21 +1423,21 @@ cluster Thermostat = 513 { command access(invoke: manage) SetWeeklySchedule(SetWeeklyScheduleRequest): DefaultSuccess = 1; /** Command description for GetWeeklySchedule */ command GetWeeklySchedule(GetWeeklyScheduleRequest): GetWeeklyScheduleResponse = 2; - /** This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. */ + /** This command is used to clear the weekly schedule. The ClearWeeklySchedule command has no payload. */ command access(invoke: manage) ClearWeeklySchedule(): DefaultSuccess = 3; - /** Upon receipt, if the */ + /** This command is used to set the active schedule. */ command SetActiveScheduleRequest(SetActiveScheduleRequestRequest): DefaultSuccess = 5; - /** Upon receipt, this SHALL set the thermostat */ + /** This command is used to set the active preset. */ command SetActivePresetRequest(SetActivePresetRequestRequest): DefaultSuccess = 6; - /** Upon receipt, this SHALL attempt to enable editing of the */ + /** This command is used to start editing the presets and schedules. */ command access(invoke: manage) StartPresetsSchedulesEditRequest(StartPresetsSchedulesEditRequestRequest): DefaultSuccess = 7; - /** Upon receipt, this SHALL attempt to cancel any active editing of the */ + /** This command is used to cancel editing presets and schedules. */ command access(invoke: manage) CancelPresetsSchedulesEditRequest(): DefaultSuccess = 8; - /** Upon receipt, this SHALL attempt to commit any pending changes to the */ + /** This command is used to notify the server that all edits are done and should be committed. */ command access(invoke: manage) CommitPresetsSchedulesRequest(): DefaultSuccess = 9; - /** This command is sent to cancel a queued preset specified by */ + /** This command is sent to cancel a queued preset. */ command access(invoke: manage) CancelSetActivePresetRequest(): DefaultSuccess = 10; - /** This command is sent to set the */ + /** This command sets the set point hold policy. */ command SetTemperatureSetpointHoldPolicy(SetTemperatureSetpointHoldPolicyRequest): DefaultSuccess = 11; } diff --git a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter index 73d5c4ae7a8ee7..b9e1a90ddb143c 100644 --- a/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter +++ b/examples/chef/devices/rootnode_thermostat_bm3fb8dhYi.matter @@ -1643,21 +1643,21 @@ cluster Thermostat = 513 { command access(invoke: manage) SetWeeklySchedule(SetWeeklyScheduleRequest): DefaultSuccess = 1; /** Command description for GetWeeklySchedule */ command GetWeeklySchedule(GetWeeklyScheduleRequest): GetWeeklyScheduleResponse = 2; - /** This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. */ + /** This command is used to clear the weekly schedule. The ClearWeeklySchedule command has no payload. */ command access(invoke: manage) ClearWeeklySchedule(): DefaultSuccess = 3; - /** Upon receipt, if the */ + /** This command is used to set the active schedule. */ command SetActiveScheduleRequest(SetActiveScheduleRequestRequest): DefaultSuccess = 5; - /** Upon receipt, this SHALL set the thermostat */ + /** This command is used to set the active preset. */ command SetActivePresetRequest(SetActivePresetRequestRequest): DefaultSuccess = 6; - /** Upon receipt, this SHALL attempt to enable editing of the */ + /** This command is used to start editing the presets and schedules. */ command access(invoke: manage) StartPresetsSchedulesEditRequest(StartPresetsSchedulesEditRequestRequest): DefaultSuccess = 7; - /** Upon receipt, this SHALL attempt to cancel any active editing of the */ + /** This command is used to cancel editing presets and schedules. */ command access(invoke: manage) CancelPresetsSchedulesEditRequest(): DefaultSuccess = 8; - /** Upon receipt, this SHALL attempt to commit any pending changes to the */ + /** This command is used to notify the server that all edits are done and should be committed. */ command access(invoke: manage) CommitPresetsSchedulesRequest(): DefaultSuccess = 9; - /** This command is sent to cancel a queued preset specified by */ + /** This command is sent to cancel a queued preset. */ command access(invoke: manage) CancelSetActivePresetRequest(): DefaultSuccess = 10; - /** This command is sent to set the */ + /** This command sets the set point hold policy. */ command SetTemperatureSetpointHoldPolicy(SetTemperatureSetpointHoldPolicyRequest): DefaultSuccess = 11; } diff --git a/examples/placeholder/linux/apps/app1/config.matter b/examples/placeholder/linux/apps/app1/config.matter index a3bfc27685a7cd..89bb4b36517476 100644 --- a/examples/placeholder/linux/apps/app1/config.matter +++ b/examples/placeholder/linux/apps/app1/config.matter @@ -5057,21 +5057,21 @@ cluster Thermostat = 513 { command access(invoke: manage) SetWeeklySchedule(SetWeeklyScheduleRequest): DefaultSuccess = 1; /** Command description for GetWeeklySchedule */ command GetWeeklySchedule(GetWeeklyScheduleRequest): GetWeeklyScheduleResponse = 2; - /** This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. */ + /** This command is used to clear the weekly schedule. The ClearWeeklySchedule command has no payload. */ command access(invoke: manage) ClearWeeklySchedule(): DefaultSuccess = 3; - /** Upon receipt, if the */ + /** This command is used to set the active schedule. */ command SetActiveScheduleRequest(SetActiveScheduleRequestRequest): DefaultSuccess = 5; - /** Upon receipt, this SHALL set the thermostat */ + /** This command is used to set the active preset. */ command SetActivePresetRequest(SetActivePresetRequestRequest): DefaultSuccess = 6; - /** Upon receipt, this SHALL attempt to enable editing of the */ + /** This command is used to start editing the presets and schedules. */ command access(invoke: manage) StartPresetsSchedulesEditRequest(StartPresetsSchedulesEditRequestRequest): DefaultSuccess = 7; - /** Upon receipt, this SHALL attempt to cancel any active editing of the */ + /** This command is used to cancel editing presets and schedules. */ command access(invoke: manage) CancelPresetsSchedulesEditRequest(): DefaultSuccess = 8; - /** Upon receipt, this SHALL attempt to commit any pending changes to the */ + /** This command is used to notify the server that all edits are done and should be committed. */ command access(invoke: manage) CommitPresetsSchedulesRequest(): DefaultSuccess = 9; - /** This command is sent to cancel a queued preset specified by */ + /** This command is sent to cancel a queued preset. */ command access(invoke: manage) CancelSetActivePresetRequest(): DefaultSuccess = 10; - /** This command is sent to set the */ + /** This command sets the set point hold policy. */ command SetTemperatureSetpointHoldPolicy(SetTemperatureSetpointHoldPolicyRequest): DefaultSuccess = 11; } @@ -5428,21 +5428,21 @@ cluster Thermostat = 513 { command access(invoke: manage) SetWeeklySchedule(SetWeeklyScheduleRequest): DefaultSuccess = 1; /** Command description for GetWeeklySchedule */ command GetWeeklySchedule(GetWeeklyScheduleRequest): GetWeeklyScheduleResponse = 2; - /** This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. */ + /** This command is used to clear the weekly schedule. The ClearWeeklySchedule command has no payload. */ command access(invoke: manage) ClearWeeklySchedule(): DefaultSuccess = 3; - /** Upon receipt, if the */ + /** This command is used to set the active schedule. */ command SetActiveScheduleRequest(SetActiveScheduleRequestRequest): DefaultSuccess = 5; - /** Upon receipt, this SHALL set the thermostat */ + /** This command is used to set the active preset. */ command SetActivePresetRequest(SetActivePresetRequestRequest): DefaultSuccess = 6; - /** Upon receipt, this SHALL attempt to enable editing of the */ + /** This command is used to start editing the presets and schedules. */ command access(invoke: manage) StartPresetsSchedulesEditRequest(StartPresetsSchedulesEditRequestRequest): DefaultSuccess = 7; - /** Upon receipt, this SHALL attempt to cancel any active editing of the */ + /** This command is used to cancel editing presets and schedules. */ command access(invoke: manage) CancelPresetsSchedulesEditRequest(): DefaultSuccess = 8; - /** Upon receipt, this SHALL attempt to commit any pending changes to the */ + /** This command is used to notify the server that all edits are done and should be committed. */ command access(invoke: manage) CommitPresetsSchedulesRequest(): DefaultSuccess = 9; - /** This command is sent to cancel a queued preset specified by */ + /** This command is sent to cancel a queued preset. */ command access(invoke: manage) CancelSetActivePresetRequest(): DefaultSuccess = 10; - /** This command is sent to set the */ + /** This command sets the set point hold policy. */ command SetTemperatureSetpointHoldPolicy(SetTemperatureSetpointHoldPolicyRequest): DefaultSuccess = 11; } diff --git a/examples/placeholder/linux/apps/app2/config.matter b/examples/placeholder/linux/apps/app2/config.matter index 5868ae5d8726f6..57f8a3cdb3f661 100644 --- a/examples/placeholder/linux/apps/app2/config.matter +++ b/examples/placeholder/linux/apps/app2/config.matter @@ -5014,21 +5014,21 @@ cluster Thermostat = 513 { command access(invoke: manage) SetWeeklySchedule(SetWeeklyScheduleRequest): DefaultSuccess = 1; /** Command description for GetWeeklySchedule */ command GetWeeklySchedule(GetWeeklyScheduleRequest): GetWeeklyScheduleResponse = 2; - /** This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. */ + /** This command is used to clear the weekly schedule. The ClearWeeklySchedule command has no payload. */ command access(invoke: manage) ClearWeeklySchedule(): DefaultSuccess = 3; - /** Upon receipt, if the */ + /** This command is used to set the active schedule. */ command SetActiveScheduleRequest(SetActiveScheduleRequestRequest): DefaultSuccess = 5; - /** Upon receipt, this SHALL set the thermostat */ + /** This command is used to set the active preset. */ command SetActivePresetRequest(SetActivePresetRequestRequest): DefaultSuccess = 6; - /** Upon receipt, this SHALL attempt to enable editing of the */ + /** This command is used to start editing the presets and schedules. */ command access(invoke: manage) StartPresetsSchedulesEditRequest(StartPresetsSchedulesEditRequestRequest): DefaultSuccess = 7; - /** Upon receipt, this SHALL attempt to cancel any active editing of the */ + /** This command is used to cancel editing presets and schedules. */ command access(invoke: manage) CancelPresetsSchedulesEditRequest(): DefaultSuccess = 8; - /** Upon receipt, this SHALL attempt to commit any pending changes to the */ + /** This command is used to notify the server that all edits are done and should be committed. */ command access(invoke: manage) CommitPresetsSchedulesRequest(): DefaultSuccess = 9; - /** This command is sent to cancel a queued preset specified by */ + /** This command is sent to cancel a queued preset. */ command access(invoke: manage) CancelSetActivePresetRequest(): DefaultSuccess = 10; - /** This command is sent to set the */ + /** This command sets the set point hold policy. */ command SetTemperatureSetpointHoldPolicy(SetTemperatureSetpointHoldPolicyRequest): DefaultSuccess = 11; } @@ -5385,21 +5385,21 @@ cluster Thermostat = 513 { command access(invoke: manage) SetWeeklySchedule(SetWeeklyScheduleRequest): DefaultSuccess = 1; /** Command description for GetWeeklySchedule */ command GetWeeklySchedule(GetWeeklyScheduleRequest): GetWeeklyScheduleResponse = 2; - /** This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. */ + /** This command is used to clear the weekly schedule. The ClearWeeklySchedule command has no payload. */ command access(invoke: manage) ClearWeeklySchedule(): DefaultSuccess = 3; - /** Upon receipt, if the */ + /** This command is used to set the active schedule. */ command SetActiveScheduleRequest(SetActiveScheduleRequestRequest): DefaultSuccess = 5; - /** Upon receipt, this SHALL set the thermostat */ + /** This command is used to set the active preset. */ command SetActivePresetRequest(SetActivePresetRequestRequest): DefaultSuccess = 6; - /** Upon receipt, this SHALL attempt to enable editing of the */ + /** This command is used to start editing the presets and schedules. */ command access(invoke: manage) StartPresetsSchedulesEditRequest(StartPresetsSchedulesEditRequestRequest): DefaultSuccess = 7; - /** Upon receipt, this SHALL attempt to cancel any active editing of the */ + /** This command is used to cancel editing presets and schedules. */ command access(invoke: manage) CancelPresetsSchedulesEditRequest(): DefaultSuccess = 8; - /** Upon receipt, this SHALL attempt to commit any pending changes to the */ + /** This command is used to notify the server that all edits are done and should be committed. */ command access(invoke: manage) CommitPresetsSchedulesRequest(): DefaultSuccess = 9; - /** This command is sent to cancel a queued preset specified by */ + /** This command is sent to cancel a queued preset. */ command access(invoke: manage) CancelSetActivePresetRequest(): DefaultSuccess = 10; - /** This command is sent to set the */ + /** This command sets the set point hold policy. */ command SetTemperatureSetpointHoldPolicy(SetTemperatureSetpointHoldPolicyRequest): DefaultSuccess = 11; } diff --git a/examples/thermostat/nxp/zap/thermostat_matter_thread.matter b/examples/thermostat/nxp/zap/thermostat_matter_thread.matter index bebd56df61680d..b718d975683bee 100644 --- a/examples/thermostat/nxp/zap/thermostat_matter_thread.matter +++ b/examples/thermostat/nxp/zap/thermostat_matter_thread.matter @@ -2271,21 +2271,21 @@ cluster Thermostat = 513 { command access(invoke: manage) SetWeeklySchedule(SetWeeklyScheduleRequest): DefaultSuccess = 1; /** Command description for GetWeeklySchedule */ command GetWeeklySchedule(GetWeeklyScheduleRequest): GetWeeklyScheduleResponse = 2; - /** This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. */ + /** This command is used to clear the weekly schedule. The ClearWeeklySchedule command has no payload. */ command access(invoke: manage) ClearWeeklySchedule(): DefaultSuccess = 3; - /** Upon receipt, if the */ + /** This command is used to set the active schedule. */ command SetActiveScheduleRequest(SetActiveScheduleRequestRequest): DefaultSuccess = 5; - /** Upon receipt, this SHALL set the thermostat */ + /** This command is used to set the active preset. */ command SetActivePresetRequest(SetActivePresetRequestRequest): DefaultSuccess = 6; - /** Upon receipt, this SHALL attempt to enable editing of the */ + /** This command is used to start editing the presets and schedules. */ command access(invoke: manage) StartPresetsSchedulesEditRequest(StartPresetsSchedulesEditRequestRequest): DefaultSuccess = 7; - /** Upon receipt, this SHALL attempt to cancel any active editing of the */ + /** This command is used to cancel editing presets and schedules. */ command access(invoke: manage) CancelPresetsSchedulesEditRequest(): DefaultSuccess = 8; - /** Upon receipt, this SHALL attempt to commit any pending changes to the */ + /** This command is used to notify the server that all edits are done and should be committed. */ command access(invoke: manage) CommitPresetsSchedulesRequest(): DefaultSuccess = 9; - /** This command is sent to cancel a queued preset specified by */ + /** This command is sent to cancel a queued preset. */ command access(invoke: manage) CancelSetActivePresetRequest(): DefaultSuccess = 10; - /** This command is sent to set the */ + /** This command sets the set point hold policy. */ command SetTemperatureSetpointHoldPolicy(SetTemperatureSetpointHoldPolicyRequest): DefaultSuccess = 11; } diff --git a/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter b/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter index d346c547ae1f1c..2727ce063d9ab4 100644 --- a/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter +++ b/examples/thermostat/nxp/zap/thermostat_matter_wifi.matter @@ -2182,21 +2182,21 @@ cluster Thermostat = 513 { command access(invoke: manage) SetWeeklySchedule(SetWeeklyScheduleRequest): DefaultSuccess = 1; /** Command description for GetWeeklySchedule */ command GetWeeklySchedule(GetWeeklyScheduleRequest): GetWeeklyScheduleResponse = 2; - /** This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. */ + /** This command is used to clear the weekly schedule. The ClearWeeklySchedule command has no payload. */ command access(invoke: manage) ClearWeeklySchedule(): DefaultSuccess = 3; - /** Upon receipt, if the */ + /** This command is used to set the active schedule. */ command SetActiveScheduleRequest(SetActiveScheduleRequestRequest): DefaultSuccess = 5; - /** Upon receipt, this SHALL set the thermostat */ + /** This command is used to set the active preset. */ command SetActivePresetRequest(SetActivePresetRequestRequest): DefaultSuccess = 6; - /** Upon receipt, this SHALL attempt to enable editing of the */ + /** This command is used to start editing the presets and schedules. */ command access(invoke: manage) StartPresetsSchedulesEditRequest(StartPresetsSchedulesEditRequestRequest): DefaultSuccess = 7; - /** Upon receipt, this SHALL attempt to cancel any active editing of the */ + /** This command is used to cancel editing presets and schedules. */ command access(invoke: manage) CancelPresetsSchedulesEditRequest(): DefaultSuccess = 8; - /** Upon receipt, this SHALL attempt to commit any pending changes to the */ + /** This command is used to notify the server that all edits are done and should be committed. */ command access(invoke: manage) CommitPresetsSchedulesRequest(): DefaultSuccess = 9; - /** This command is sent to cancel a queued preset specified by */ + /** This command is sent to cancel a queued preset. */ command access(invoke: manage) CancelSetActivePresetRequest(): DefaultSuccess = 10; - /** This command is sent to set the */ + /** This command sets the set point hold policy. */ command SetTemperatureSetpointHoldPolicy(SetTemperatureSetpointHoldPolicyRequest): DefaultSuccess = 11; } diff --git a/examples/thermostat/thermostat-common/thermostat.matter b/examples/thermostat/thermostat-common/thermostat.matter index 388970d0a27b20..6d9cd7f3974e62 100644 --- a/examples/thermostat/thermostat-common/thermostat.matter +++ b/examples/thermostat/thermostat-common/thermostat.matter @@ -2022,21 +2022,21 @@ cluster Thermostat = 513 { command access(invoke: manage) SetWeeklySchedule(SetWeeklyScheduleRequest): DefaultSuccess = 1; /** Command description for GetWeeklySchedule */ command GetWeeklySchedule(GetWeeklyScheduleRequest): GetWeeklyScheduleResponse = 2; - /** This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. */ + /** This command is used to clear the weekly schedule. The ClearWeeklySchedule command has no payload. */ command access(invoke: manage) ClearWeeklySchedule(): DefaultSuccess = 3; - /** Upon receipt, if the */ + /** This command is used to set the active schedule. */ command SetActiveScheduleRequest(SetActiveScheduleRequestRequest): DefaultSuccess = 5; - /** Upon receipt, this SHALL set the thermostat */ + /** This command is used to set the active preset. */ command SetActivePresetRequest(SetActivePresetRequestRequest): DefaultSuccess = 6; - /** Upon receipt, this SHALL attempt to enable editing of the */ + /** This command is used to start editing the presets and schedules. */ command access(invoke: manage) StartPresetsSchedulesEditRequest(StartPresetsSchedulesEditRequestRequest): DefaultSuccess = 7; - /** Upon receipt, this SHALL attempt to cancel any active editing of the */ + /** This command is used to cancel editing presets and schedules. */ command access(invoke: manage) CancelPresetsSchedulesEditRequest(): DefaultSuccess = 8; - /** Upon receipt, this SHALL attempt to commit any pending changes to the */ + /** This command is used to notify the server that all edits are done and should be committed. */ command access(invoke: manage) CommitPresetsSchedulesRequest(): DefaultSuccess = 9; - /** This command is sent to cancel a queued preset specified by */ + /** This command is sent to cancel a queued preset. */ command access(invoke: manage) CancelSetActivePresetRequest(): DefaultSuccess = 10; - /** This command is sent to set the */ + /** This command sets the set point hold policy. */ command SetTemperatureSetpointHoldPolicy(SetTemperatureSetpointHoldPolicyRequest): DefaultSuccess = 11; } diff --git a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml index ef6a9247fb2e61..948c0937a3fd10 100644 --- a/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/thermostat-cluster.xml @@ -463,36 +463,36 @@ limitations under the License. This command is used to clear the weekly schedule. The ClearWeeklySchedule command has no payload. + + This command is used to set the active schedule. + + - Upon receipt, this SHALL set the thermostat + This command is used to set the active preset. - - Upon receipt, this SHALL attempt to commit any pending changes to the + + This command is used to start editing the presets and schedules. + - - Upon receipt, if the - + + This command is used to cancel editing presets and schedules. + + + + This command is used to notify the server that all edits are done and should be committed. + - This command is sent to cancel a queued preset specified by + This command is sent to cancel a queued preset. - This command is sent to set the + This command sets the set point hold policy. - - Upon receipt, this SHALL attempt to enable editing of the - - - - - Upon receipt, this SHALL attempt to cancel any active editing of the - - diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter index f43b9081943094..0d7c4ef7e81dbf 100644 --- a/src/controller/data_model/controller-clusters.matter +++ b/src/controller/data_model/controller-clusters.matter @@ -6036,21 +6036,21 @@ cluster Thermostat = 513 { command access(invoke: manage) SetWeeklySchedule(SetWeeklyScheduleRequest): DefaultSuccess = 1; /** Command description for GetWeeklySchedule */ command GetWeeklySchedule(GetWeeklyScheduleRequest): GetWeeklyScheduleResponse = 2; - /** This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. */ + /** This command is used to clear the weekly schedule. The ClearWeeklySchedule command has no payload. */ command access(invoke: manage) ClearWeeklySchedule(): DefaultSuccess = 3; - /** Upon receipt, if the */ + /** This command is used to set the active schedule. */ command SetActiveScheduleRequest(SetActiveScheduleRequestRequest): DefaultSuccess = 5; - /** Upon receipt, this SHALL set the thermostat */ + /** This command is used to set the active preset. */ command SetActivePresetRequest(SetActivePresetRequestRequest): DefaultSuccess = 6; - /** Upon receipt, this SHALL attempt to enable editing of the */ + /** This command is used to start editing the presets and schedules. */ command access(invoke: manage) StartPresetsSchedulesEditRequest(StartPresetsSchedulesEditRequestRequest): DefaultSuccess = 7; - /** Upon receipt, this SHALL attempt to cancel any active editing of the */ + /** This command is used to cancel editing presets and schedules. */ command access(invoke: manage) CancelPresetsSchedulesEditRequest(): DefaultSuccess = 8; - /** Upon receipt, this SHALL attempt to commit any pending changes to the */ + /** This command is used to notify the server that all edits are done and should be committed. */ command access(invoke: manage) CommitPresetsSchedulesRequest(): DefaultSuccess = 9; - /** This command is sent to cancel a queued preset specified by */ + /** This command is sent to cancel a queued preset. */ command access(invoke: manage) CancelSetActivePresetRequest(): DefaultSuccess = 10; - /** This command is sent to set the */ + /** This command sets the set point hold policy. */ command SetTemperatureSetpointHoldPolicy(SetTemperatureSetpointHoldPolicyRequest): DefaultSuccess = 11; } diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h index 7b7ebd70cf11f2..76e562ae364d4e 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h @@ -8937,7 +8937,7 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) /** * Command ClearWeeklySchedule * - * This command is used to clear the weekly schedule. The Clear weekly schedule has no payload. + * This command is used to clear the weekly schedule. The ClearWeeklySchedule command has no payload. */ - (void)clearWeeklyScheduleWithParams:(MTRThermostatClusterClearWeeklyScheduleParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4)); - (void)clearWeeklyScheduleWithCompletion:(MTRStatusCompletion)completion @@ -8945,25 +8945,25 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) /** * Command SetActiveScheduleRequest * - * Upon receipt, if the + * This command is used to set the active schedule. */ - (void)setActiveScheduleRequestWithParams:(MTRThermostatClusterSetActiveScheduleRequestParams *)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; /** * Command SetActivePresetRequest * - * Upon receipt, this SHALL set the thermostat + * This command is used to set the active preset. */ - (void)setActivePresetRequestWithParams:(MTRThermostatClusterSetActivePresetRequestParams *)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; /** * Command StartPresetsSchedulesEditRequest * - * Upon receipt, this SHALL attempt to enable editing of the + * This command is used to start editing the presets and schedules. */ - (void)startPresetsSchedulesEditRequestWithParams:(MTRThermostatClusterStartPresetsSchedulesEditRequestParams *)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; /** * Command CancelPresetsSchedulesEditRequest * - * Upon receipt, this SHALL attempt to cancel any active editing of the + * This command is used to cancel editing presets and schedules. */ - (void)cancelPresetsSchedulesEditRequestWithParams:(MTRThermostatClusterCancelPresetsSchedulesEditRequestParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; - (void)cancelPresetsSchedulesEditRequestWithCompletion:(MTRStatusCompletion)completion @@ -8971,7 +8971,7 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) /** * Command CommitPresetsSchedulesRequest * - * Upon receipt, this SHALL attempt to commit any pending changes to the + * This command is used to notify the server that all edits are done and should be committed. */ - (void)commitPresetsSchedulesRequestWithParams:(MTRThermostatClusterCommitPresetsSchedulesRequestParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; - (void)commitPresetsSchedulesRequestWithCompletion:(MTRStatusCompletion)completion @@ -8979,7 +8979,7 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) /** * Command CancelSetActivePresetRequest * - * This command is sent to cancel a queued preset specified by + * This command is sent to cancel a queued preset. */ - (void)cancelSetActivePresetRequestWithParams:(MTRThermostatClusterCancelSetActivePresetRequestParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; - (void)cancelSetActivePresetRequestWithCompletion:(MTRStatusCompletion)completion @@ -8987,7 +8987,7 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1)) /** * Command SetTemperatureSetpointHoldPolicy * - * This command is sent to set the + * This command sets the set point hold policy. */ - (void)setTemperatureSetpointHoldPolicyWithParams:(MTRThermostatClusterSetTemperatureSetpointHoldPolicyParams *)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE; From 526b521281a9bf07b0ea089848c229d48c4df04b Mon Sep 17 00:00:00 2001 From: David Rempel Date: Thu, 11 Jan 2024 11:50:43 -0800 Subject: [PATCH 41/41] ran regen --- .../CHIPAttributeTLVValueDecoder.cpp | 61 ++++++++++++------- .../java/zap-generated/CHIPReadCallbacks.cpp | 52 ++++++++++------ 2 files changed, 72 insertions(+), 41 deletions(-) diff --git a/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp b/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp index c1b59e45e32b8d..be35601205e295 100644 --- a/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp +++ b/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp @@ -26862,9 +26862,12 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterPresetTypeStruct"); return nullptr; } - jmethodID presetTypeStructStructCtor_1 = env->GetMethodID( - presetTypeStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V"); - if (presetTypeStructStructCtor_1 == nullptr) + + jmethodID presetTypeStructStructCtor_1; + err = chip::JniReferences::GetInstance().FindMethod(env, presetTypeStructStructClass_1, "", + "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V", + &presetTypeStructStructCtor_1); + if (err != CHIP_NO_ERROR || presetTypeStructStructCtor_1 == nullptr) { ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterPresetTypeStruct constructor"); return nullptr; @@ -26923,9 +26926,12 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterScheduleTypeStruct"); return nullptr; } - jmethodID scheduleTypeStructStructCtor_1 = env->GetMethodID( - scheduleTypeStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V"); - if (scheduleTypeStructStructCtor_1 == nullptr) + + jmethodID scheduleTypeStructStructCtor_1; + err = chip::JniReferences::GetInstance().FindMethod(env, scheduleTypeStructStructClass_1, "", + "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V", + &scheduleTypeStructStructCtor_1); + if (err != CHIP_NO_ERROR || scheduleTypeStructStructCtor_1 == nullptr) { ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterScheduleTypeStruct constructor"); return nullptr; @@ -27168,10 +27174,13 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterPresetStruct"); return nullptr; } - jmethodID presetStructStructCtor_1 = env->GetMethodID( - presetStructStructClass_1, "", - "([BLjava/lang/Integer;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/lang/Boolean;)V"); - if (presetStructStructCtor_1 == nullptr) + + jmethodID presetStructStructCtor_1; + err = chip::JniReferences::GetInstance().FindMethod( + env, presetStructStructClass_1, "", + "([BLjava/lang/Integer;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/lang/Boolean;)V", + &presetStructStructCtor_1); + if (err != CHIP_NO_ERROR || presetStructStructCtor_1 == nullptr) { ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterPresetStruct constructor"); return nullptr; @@ -27353,11 +27362,14 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterScheduleTransitionStruct"); return nullptr; } - jmethodID scheduleTransitionStructStructCtor_3 = - env->GetMethodID(scheduleTransitionStructStructClass_3, "", - "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/util/Optional;Ljava/util/Optional;Ljava/" - "util/Optional;Ljava/util/Optional;)V"); - if (scheduleTransitionStructStructCtor_3 == nullptr) + + jmethodID scheduleTransitionStructStructCtor_3; + err = chip::JniReferences::GetInstance().FindMethod( + env, scheduleTransitionStructStructClass_3, "", + "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/" + "util/Optional;)V", + &scheduleTransitionStructStructCtor_3); + if (err != CHIP_NO_ERROR || scheduleTransitionStructStructCtor_3 == nullptr) { ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterScheduleTransitionStruct constructor"); return nullptr; @@ -27402,10 +27414,13 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterScheduleStruct"); return nullptr; } - jmethodID scheduleStructStructCtor_1 = env->GetMethodID( - scheduleStructStructClass_1, "", - "([BLjava/lang/Integer;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/ArrayList;Ljava/util/Optional;)V"); - if (scheduleStructStructCtor_1 == nullptr) + + jmethodID scheduleStructStructCtor_1; + err = chip::JniReferences::GetInstance().FindMethod( + env, scheduleStructStructClass_1, "", + "([BLjava/lang/Integer;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/ArrayList;Ljava/util/Optional;)V", + &scheduleStructStructCtor_1); + if (err != CHIP_NO_ERROR || scheduleStructStructCtor_1 == nullptr) { ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterScheduleStruct constructor"); return nullptr; @@ -27525,9 +27540,11 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterQueuedPresetStruct"); return nullptr; } - jmethodID queuedPresetStructStructCtor_1 = - env->GetMethodID(queuedPresetStructStructClass_1, "", "([BLjava/lang/Long;)V"); - if (queuedPresetStructStructCtor_1 == nullptr) + + jmethodID queuedPresetStructStructCtor_1; + err = chip::JniReferences::GetInstance().FindMethod(env, queuedPresetStructStructClass_1, "", + "([BLjava/lang/Long;)V", &queuedPresetStructStructCtor_1); + if (err != CHIP_NO_ERROR || queuedPresetStructStructCtor_1 == nullptr) { ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterQueuedPresetStruct constructor"); return nullptr; diff --git a/src/controller/java/zap-generated/CHIPReadCallbacks.cpp b/src/controller/java/zap-generated/CHIPReadCallbacks.cpp index 1bbbaf0f96a2e4..6db0e9cb9b9056 100644 --- a/src/controller/java/zap-generated/CHIPReadCallbacks.cpp +++ b/src/controller/java/zap-generated/CHIPReadCallbacks.cpp @@ -39325,9 +39325,12 @@ void CHIPThermostatPresetTypesAttributeCallback::CallbackFn( ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterPresetTypeStruct"); return; } - jmethodID presetTypeStructStructCtor_1 = env->GetMethodID(presetTypeStructStructClass_1, "", - "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V"); - if (presetTypeStructStructCtor_1 == nullptr) + + jmethodID presetTypeStructStructCtor_1; + err = chip::JniReferences::GetInstance().FindMethod(env, presetTypeStructStructClass_1, "", + "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V", + &presetTypeStructStructCtor_1); + if (err != CHIP_NO_ERROR || presetTypeStructStructCtor_1 == nullptr) { ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterPresetTypeStruct constructor"); return; @@ -39431,9 +39434,12 @@ void CHIPThermostatScheduleTypesAttributeCallback::CallbackFn( ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterScheduleTypeStruct"); return; } - jmethodID scheduleTypeStructStructCtor_1 = env->GetMethodID(scheduleTypeStructStructClass_1, "", - "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V"); - if (scheduleTypeStructStructCtor_1 == nullptr) + + jmethodID scheduleTypeStructStructCtor_1; + err = chip::JniReferences::GetInstance().FindMethod(env, scheduleTypeStructStructClass_1, "", + "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V", + &scheduleTypeStructStructCtor_1); + if (err != CHIP_NO_ERROR || scheduleTypeStructStructCtor_1 == nullptr) { ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterScheduleTypeStruct constructor"); return; @@ -39805,10 +39811,13 @@ void CHIPThermostatPresetsAttributeCallback::CallbackFn( ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterPresetStruct"); return; } - jmethodID presetStructStructCtor_1 = env->GetMethodID( - presetStructStructClass_1, "", - "([BLjava/lang/Integer;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/lang/Boolean;)V"); - if (presetStructStructCtor_1 == nullptr) + + jmethodID presetStructStructCtor_1; + err = chip::JniReferences::GetInstance().FindMethod( + env, presetStructStructClass_1, "", + "([BLjava/lang/Integer;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/lang/Boolean;)V", + &presetStructStructCtor_1); + if (err != CHIP_NO_ERROR || presetStructStructCtor_1 == nullptr) { ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterPresetStruct constructor"); return; @@ -40034,11 +40043,13 @@ void CHIPThermostatSchedulesAttributeCallback::CallbackFn( ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterScheduleTransitionStruct"); return; } - jmethodID scheduleTransitionStructStructCtor_3 = - env->GetMethodID(scheduleTransitionStructStructClass_3, "", - "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/" - "Optional;Ljava/util/Optional;)V"); - if (scheduleTransitionStructStructCtor_3 == nullptr) + + jmethodID scheduleTransitionStructStructCtor_3; + err = chip::JniReferences::GetInstance().FindMethod(env, scheduleTransitionStructStructClass_3, "", + "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/util/Optional;Ljava/" + "util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V", + &scheduleTransitionStructStructCtor_3); + if (err != CHIP_NO_ERROR || scheduleTransitionStructStructCtor_3 == nullptr) { ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterScheduleTransitionStruct constructor"); return; @@ -40081,10 +40092,13 @@ void CHIPThermostatSchedulesAttributeCallback::CallbackFn( ChipLogError(Zcl, "Could not find class ChipStructs$ThermostatClusterScheduleStruct"); return; } - jmethodID scheduleStructStructCtor_1 = env->GetMethodID( - scheduleStructStructClass_1, "", - "([BLjava/lang/Integer;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/ArrayList;Ljava/util/Optional;)V"); - if (scheduleStructStructCtor_1 == nullptr) + + jmethodID scheduleStructStructCtor_1; + err = chip::JniReferences::GetInstance().FindMethod( + env, scheduleStructStructClass_1, "", + "([BLjava/lang/Integer;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/ArrayList;Ljava/util/Optional;)V", + &scheduleStructStructCtor_1); + if (err != CHIP_NO_ERROR || scheduleStructStructCtor_1 == nullptr) { ChipLogError(Zcl, "Could not find ChipStructs$ThermostatClusterScheduleStruct constructor"); return;