DEMM, EVSEM, WHM, EEVSE, DEM, EWATERHTR zap XML out of date with 1.4 specs (#36155)
* Fixes #36059
* regen_all after change to mode cluster ZCL XML
* Checking on EEVSE the cluster revision was wrong (looks like the rev 4 was backed out after it was felt to still be a draft). Taken in the DEM and WHM latest descriptions based on Alchemy autogen.
* revert description in DEM which was truncated by Alchemy
* regen_all
* Removed src/app/tests/suites/certification/Test_TC_EEVSEM_3_1.yaml, Test_TC_EEVSEM_3_2.yaml, Test_TC_EEVSEM_3_3.yaml which were removed in test plan PR: https://github.com/CHIP-Specifications/chip-test-plans/pull/4553
* Reverted change to domain since ZAP does not show the clusters if the <domain> element text is empty
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 aa3ef44..4888bf4 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
@@ -4709,13 +4709,13 @@
command ModifyForecastRequest(ModifyForecastRequestRequest): DefaultSuccess = 5;
/** Allows a client to ask the ESA to recompute its Forecast based on power and time constraints. */
command RequestConstraintBasedForecast(RequestConstraintBasedForecastRequest): DefaultSuccess = 6;
- /** Allows a client to request cancellation of a previous adjustment request in a StartTimeAdjustRequest, ModifyForecastRequest or RequestConstraintBasedForecast command */
+ /** Allows a client to request cancellation of a previous adjustment request in a StartTimeAdjustRequest, ModifyForecastRequest or RequestConstraintBasedForecast command. */
command CancelRequest(): DefaultSuccess = 7;
}
/** Electric Vehicle Supply Equipment (EVSE) is equipment used to charge an Electric Vehicle (EV) or Plug-In Hybrid Electric Vehicle. This cluster provides an interface to the functionality of Electric Vehicle Supply Equipment (EVSE) management. */
cluster EnergyEvse = 153 {
- revision 4;
+ revision 3;
enum EnergyTransferStoppedReasonEnum : enum8 {
kEVStopped = 0;
@@ -4880,9 +4880,9 @@
/** Allows a client to disable the EVSE from charging and discharging. */
timed command Disable(): DefaultSuccess = 1;
- /** This command allows a client to enable the EVSE to charge an EV, */
+ /** This command allows a client to enable the EVSE to charge an EV, and to provide or update the maximum and minimum charge current. */
timed command EnableCharging(EnableChargingRequest): DefaultSuccess = 2;
- /** Upon receipt, this SHALL allow a client to enable the discharge of an EV, */
+ /** Upon receipt, this SHALL allow a client to enable the discharge of an EV, and to provide or update the maximum discharge current. */
timed command EnableDischarging(EnableDischargingRequest): DefaultSuccess = 3;
/** Allows a client to put the EVSE into a self-diagnostics mode. */
timed command StartDiagnostics(): DefaultSuccess = 4;
@@ -4951,7 +4951,7 @@
/** Attributes and commands for selecting a mode from a list of supported options. */
cluster EnergyEvseMode = 157 {
- revision 1;
+ revision 2;
enum ModeTag : enum16 {
kAuto = 0;
@@ -4967,6 +4967,7 @@
kManual = 16384;
kTimeOfUse = 16385;
kSolarCharging = 16386;
+ kV2X = 16387;
}
bitmap Feature : bitmap32 {
@@ -4986,8 +4987,6 @@
readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
- attribute optional nullable int8u startUpMode = 2;
- attribute optional nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -5004,8 +5003,7 @@
optional char_string<64> statusText = 1;
}
- /** This command is used to change device modes.
- On receipt of this command the device SHALL respond with a ChangeToModeResponse command. */
+ /** This command is used to change device modes. */
command ChangeToMode(ChangeToModeRequest): ChangeToModeResponse = 0;
}
@@ -5046,8 +5044,6 @@
readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
- attribute optional nullable int8u startUpMode = 2;
- attribute optional nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -5061,17 +5057,16 @@
response struct ChangeToModeResponse = 1 {
enum8 status = 0;
- optional char_string statusText = 1;
+ optional char_string<64> statusText = 1;
}
- /** This command is used to change device modes.
- On receipt of this command the device SHALL respond with a ChangeToModeResponse command. */
+ /** This command is used to change device modes. */
command ChangeToMode(ChangeToModeRequest): ChangeToModeResponse = 0;
}
/** Attributes and commands for selecting a mode from a list of supported options. */
provisional cluster DeviceEnergyManagementMode = 159 {
- revision 1;
+ revision 2;
enum ModeTag : enum16 {
kAuto = 0;
@@ -5107,8 +5102,6 @@
readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
- attribute optional nullable int8u startUpMode = 2;
- attribute optional nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -5125,8 +5118,7 @@
optional char_string<64> statusText = 1;
}
- /** This command is used to change device modes.
- On receipt of this command the device SHALL respond with a ChangeToModeResponse command. */
+ /** This command is used to change device modes. */
command ChangeToMode(ChangeToModeRequest): ChangeToModeResponse = 0;
}
diff --git a/examples/dishwasher-app/silabs/data_model/dishwasher-thread-app.matter b/examples/dishwasher-app/silabs/data_model/dishwasher-thread-app.matter
index 0d217ab..43ac95d 100644
--- a/examples/dishwasher-app/silabs/data_model/dishwasher-thread-app.matter
+++ b/examples/dishwasher-app/silabs/data_model/dishwasher-thread-app.matter
@@ -2227,7 +2227,7 @@
command ModifyForecastRequest(ModifyForecastRequestRequest): DefaultSuccess = 5;
/** Allows a client to ask the ESA to recompute its Forecast based on power and time constraints. */
command RequestConstraintBasedForecast(RequestConstraintBasedForecastRequest): DefaultSuccess = 6;
- /** Allows a client to request cancellation of a previous adjustment request in a StartTimeAdjustRequest, ModifyForecastRequest or RequestConstraintBasedForecast command */
+ /** Allows a client to request cancellation of a previous adjustment request in a StartTimeAdjustRequest, ModifyForecastRequest or RequestConstraintBasedForecast command. */
command CancelRequest(): DefaultSuccess = 7;
}
@@ -2254,7 +2254,7 @@
/** Attributes and commands for selecting a mode from a list of supported options. */
provisional cluster DeviceEnergyManagementMode = 159 {
- revision 1;
+ revision 2;
enum ModeTag : enum16 {
kAuto = 0;
@@ -2290,8 +2290,6 @@
readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
- attribute optional nullable int8u startUpMode = 2;
- attribute optional nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -2308,8 +2306,7 @@
optional char_string<64> statusText = 1;
}
- /** This command is used to change device modes.
- On receipt of this command the device SHALL respond with a ChangeToModeResponse command. */
+ /** This command is used to change device modes. */
command ChangeToMode(ChangeToModeRequest): ChangeToModeResponse = 0;
}
@@ -2792,8 +2789,6 @@
server cluster DeviceEnergyManagementMode {
callback attribute supportedModes;
callback attribute currentMode;
- ram attribute startUpMode;
- ram attribute onMode;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
diff --git a/examples/dishwasher-app/silabs/data_model/dishwasher-wifi-app.matter b/examples/dishwasher-app/silabs/data_model/dishwasher-wifi-app.matter
index 3c8601d..4d11064 100644
--- a/examples/dishwasher-app/silabs/data_model/dishwasher-wifi-app.matter
+++ b/examples/dishwasher-app/silabs/data_model/dishwasher-wifi-app.matter
@@ -2138,7 +2138,7 @@
command ModifyForecastRequest(ModifyForecastRequestRequest): DefaultSuccess = 5;
/** Allows a client to ask the ESA to recompute its Forecast based on power and time constraints. */
command RequestConstraintBasedForecast(RequestConstraintBasedForecastRequest): DefaultSuccess = 6;
- /** Allows a client to request cancellation of a previous adjustment request in a StartTimeAdjustRequest, ModifyForecastRequest or RequestConstraintBasedForecast command */
+ /** Allows a client to request cancellation of a previous adjustment request in a StartTimeAdjustRequest, ModifyForecastRequest or RequestConstraintBasedForecast command. */
command CancelRequest(): DefaultSuccess = 7;
}
@@ -2165,7 +2165,7 @@
/** Attributes and commands for selecting a mode from a list of supported options. */
provisional cluster DeviceEnergyManagementMode = 159 {
- revision 1;
+ revision 2;
enum ModeTag : enum16 {
kAuto = 0;
@@ -2201,8 +2201,6 @@
readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
- attribute optional nullable int8u startUpMode = 2;
- attribute optional nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -2219,8 +2217,7 @@
optional char_string<64> statusText = 1;
}
- /** This command is used to change device modes.
- On receipt of this command the device SHALL respond with a ChangeToModeResponse command. */
+ /** This command is used to change device modes. */
command ChangeToMode(ChangeToModeRequest): ChangeToModeResponse = 0;
}
@@ -2652,8 +2649,6 @@
server cluster DeviceEnergyManagementMode {
callback attribute supportedModes;
callback attribute currentMode;
- ram attribute startUpMode;
- ram attribute onMode;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
diff --git a/examples/energy-management-app/energy-management-common/energy-management-app.matter b/examples/energy-management-app/energy-management-common/energy-management-app.matter
index a8a1007..5da8448 100644
--- a/examples/energy-management-app/energy-management-common/energy-management-app.matter
+++ b/examples/energy-management-app/energy-management-common/energy-management-app.matter
@@ -2019,13 +2019,13 @@
command ModifyForecastRequest(ModifyForecastRequestRequest): DefaultSuccess = 5;
/** Allows a client to ask the ESA to recompute its Forecast based on power and time constraints. */
command RequestConstraintBasedForecast(RequestConstraintBasedForecastRequest): DefaultSuccess = 6;
- /** Allows a client to request cancellation of a previous adjustment request in a StartTimeAdjustRequest, ModifyForecastRequest or RequestConstraintBasedForecast command */
+ /** Allows a client to request cancellation of a previous adjustment request in a StartTimeAdjustRequest, ModifyForecastRequest or RequestConstraintBasedForecast command. */
command CancelRequest(): DefaultSuccess = 7;
}
/** Electric Vehicle Supply Equipment (EVSE) is equipment used to charge an Electric Vehicle (EV) or Plug-In Hybrid Electric Vehicle. This cluster provides an interface to the functionality of Electric Vehicle Supply Equipment (EVSE) management. */
cluster EnergyEvse = 153 {
- revision 4;
+ revision 3;
enum EnergyTransferStoppedReasonEnum : enum8 {
kEVStopped = 0;
@@ -2190,9 +2190,9 @@
/** Allows a client to disable the EVSE from charging and discharging. */
timed command Disable(): DefaultSuccess = 1;
- /** This command allows a client to enable the EVSE to charge an EV, */
+ /** This command allows a client to enable the EVSE to charge an EV, and to provide or update the maximum and minimum charge current. */
timed command EnableCharging(EnableChargingRequest): DefaultSuccess = 2;
- /** Upon receipt, this SHALL allow a client to enable the discharge of an EV, */
+ /** Upon receipt, this SHALL allow a client to enable the discharge of an EV, and to provide or update the maximum discharge current. */
timed command EnableDischarging(EnableDischargingRequest): DefaultSuccess = 3;
/** Allows a client to put the EVSE into a self-diagnostics mode. */
timed command StartDiagnostics(): DefaultSuccess = 4;
@@ -2227,7 +2227,7 @@
/** Attributes and commands for selecting a mode from a list of supported options. */
cluster EnergyEvseMode = 157 {
- revision 1;
+ revision 2;
enum ModeTag : enum16 {
kAuto = 0;
@@ -2243,6 +2243,7 @@
kManual = 16384;
kTimeOfUse = 16385;
kSolarCharging = 16386;
+ kV2X = 16387;
}
bitmap Feature : bitmap32 {
@@ -2262,8 +2263,6 @@
readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
- attribute optional nullable int8u startUpMode = 2;
- attribute optional nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -2280,8 +2279,7 @@
optional char_string<64> statusText = 1;
}
- /** This command is used to change device modes.
- On receipt of this command the device SHALL respond with a ChangeToModeResponse command. */
+ /** This command is used to change device modes. */
command ChangeToMode(ChangeToModeRequest): ChangeToModeResponse = 0;
}
@@ -2322,8 +2320,6 @@
readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
- attribute optional nullable int8u startUpMode = 2;
- attribute optional nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -2337,17 +2333,16 @@
response struct ChangeToModeResponse = 1 {
enum8 status = 0;
- optional char_string statusText = 1;
+ optional char_string<64> statusText = 1;
}
- /** This command is used to change device modes.
- On receipt of this command the device SHALL respond with a ChangeToModeResponse command. */
+ /** This command is used to change device modes. */
command ChangeToMode(ChangeToModeRequest): ChangeToModeResponse = 0;
}
/** Attributes and commands for selecting a mode from a list of supported options. */
provisional cluster DeviceEnergyManagementMode = 159 {
- revision 1;
+ revision 2;
enum ModeTag : enum16 {
kAuto = 0;
@@ -2383,8 +2378,6 @@
readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
- attribute optional nullable int8u startUpMode = 2;
- attribute optional nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -2401,8 +2394,7 @@
optional char_string<64> statusText = 1;
}
- /** This command is used to change device modes.
- On receipt of this command the device SHALL respond with a ChangeToModeResponse command. */
+ /** This command is used to change device modes. */
command ChangeToMode(ChangeToModeRequest): ChangeToModeResponse = 0;
}
diff --git a/src/app/tests/suites/certification/Test_TC_EEVSEM_3_1.yaml b/src/app/tests/suites/certification/Test_TC_EEVSEM_3_1.yaml
deleted file mode 100644
index 2d38a6c..0000000
--- a/src/app/tests/suites/certification/Test_TC_EEVSEM_3_1.yaml
+++ /dev/null
@@ -1,134 +0,0 @@
-# Copyright (c) 2024 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.
-
-name: 183.3.1. [TC-EEVSEM-3.1] On Mode functionality with DUT as Server
-
-PICS:
- - EEVSEM.S.A0003
- - MOD.S.F00
- - OO.S.C00.Rsp
- - OO.S.C01.Rsp
-
-config:
- nodeId: 0x12344321
- cluster: "Energy EVSE Mode"
- endpoint: 1
-
- ConfigureOnMode:
- type: int8u
- defaultValue: 0
- new_mode_th:
- type: int8u
- defaultValue: 2
-
-tests:
- - label:
- "Step 1: Commission DUT to TH (can be skipped if done in a preceding
- test)."
- cluster: "DelayCommands"
- command: "WaitForCommissionee"
- arguments:
- values:
- - name: "nodeId"
- value: nodeId
-
- - label:
- "Precondition: TH writes from the DUT the OnMode attribute.NOTE: To
- execute this test case set onmode to any integer value because as
- default it value has null."
- PICS: EEVSEM.S.A0003 && MOD.S.F00
- command: "writeAttribute"
- attribute: "OnMode"
- arguments:
- value: ConfigureOnMode
-
- - label: "Step 2: TH reads from the DUT the OnMode attribute."
- PICS: EEVSEM.S.A0003 && MOD.S.F00
- command: "readAttribute"
- attribute: "OnMode"
- response:
- saveAs: on_mode_dut
- constraints:
- type: int8u
- minValue: 0
- maxValue: 254
-
- - label: "Step 3: TH reads from the DUT the CurrentMode attribute."
- PICS: EEVSEM.S.A0001 && MOD.S.F00
- command: "readAttribute"
- attribute: "CurrentMode"
- response:
- saveAs: old_current_mode_dut
- constraints:
- type: int8u
- minValue: 0
- maxValue: 254
-
- - label:
- "If on_mode_dut is equal to old_current_mode_dut proceed to step 4.
- Else proceed to step 6."
- cluster: "EqualityCommands"
- command: "UnsignedNumberEquals"
- arguments:
- values:
- - name: "Value1"
- value: on_mode_dut
- - name: "Value2"
- value: old_current_mode_dut
- response:
- - values:
- - name: "Equals"
- saveAs: IsExpectedValue
-
- - label: "Step 4: TH reads from the DUT the SupportedModes attribute."
- runIf: IsExpectedValue
- PICS: EEVSEM.S.A0000 && MOD.S.F00
- command: "readAttribute"
- attribute: "SupportedModes"
- response:
- constraints:
- type: list
- minLength: 2
-
- - label:
- "Step 5: TH sends a ChangeToMode command to the DUT with NewMode set
- to new_mode_th"
- runIf: IsExpectedValue
- PICS: EEVSEM.S.C00.Rsp && MOD.S.F00
- command: "ChangeToMode"
- arguments:
- values:
- - name: "NewMode"
- value: new_mode_th
- response:
- values:
- - name: "Status"
- value: 0x00
-
- - label: "Step 6:TH sends a Off command to the DUT"
- PICS: OO.S.C00.Rsp
- cluster: "On/Off"
- command: "Off"
-
- - label: "Step 7:TH sends a On command to the DUT"
- PICS: OO.S.C01.Rsp
- cluster: "On/Off"
- command: "On"
-
- - label: "Step 8: TH reads from the DUT the CurrentMode attribute."
- PICS: EEVSEM.S.A0001 && EEVSEM.S.A0003 && MOD.S.F00
- command: "readAttribute"
- attribute: "CurrentMode"
- response:
- value: on_mode_dut
diff --git a/src/app/tests/suites/certification/Test_TC_EEVSEM_3_2.yaml b/src/app/tests/suites/certification/Test_TC_EEVSEM_3_2.yaml
deleted file mode 100644
index 0251528..0000000
--- a/src/app/tests/suites/certification/Test_TC_EEVSEM_3_2.yaml
+++ /dev/null
@@ -1,172 +0,0 @@
-# Copyright (c) 2024 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.
-
-name: 269.3.2. [TC-EEVSEM-3.2] Startup Mode functionality with DUT as Server
-
-PICS:
- - EEVSEM.S.A0002
-
-config:
- nodeId: 0x12344321
- cluster: "Energy EVSE Mode"
- endpoint: 1
-
- new_start_up_mode_th:
- type: int8u
- defaultValue: 0
- new_mode_th:
- type: int8u
- defaultValue: 1
-
-tests:
- - label:
- "Step 1: Commission DUT to TH (can be skipped if done in a preceding
- test)."
- cluster: "DelayCommands"
- command: "WaitForCommissionee"
- arguments:
- values:
- - name: "nodeId"
- value: nodeId
-
- - label: "Step 2: TH reads from the DUT the StartUpMode attribute."
- PICS: EEVSEM.S.A0002
- command: "readAttribute"
- attribute: "StartUpMode"
- response:
- saveAs: startup_mode_dut
-
- - label:
- "Step 2: If startup_mode_dut is null proceed to step 3. Else save
- startup_mode_dut as new_start_up_mode_th and proceed to step 5."
- PICS: EEVSEM.S.A0002
- cluster: "EqualityCommands"
- command: "UnsignedNumberEquals"
- arguments:
- values:
- - name: "Value1"
- value: startup_mode_dut
- - name: "Value2"
- value: null
- response:
- - values:
- - name: "Equals"
- saveAs: IsExpectedValue
-
- - label: "Step 3: TH reads from the DUT the SupportedModes attribute."
- runIf: IsExpectedValue
- PICS: EEVSEM.S.A0000
- command: "readAttribute"
- attribute: "SupportedModes"
- response:
- saveAs: supported_modes_dut
- constraints:
- type: list
- minLength: 2
- - label:
- "Step 4: TH writes to the DUT the StartUpMode attribute with the
- new_start_up_mode_th value"
- PICS: EEVSEM.S.A0002
- runIf: IsExpectedValue
- command: "writeAttribute"
- attribute: "StartUpMode"
- arguments:
- value: new_start_up_mode_th
-
- - label: "Step 5: TH reads from the DUT the CurrentMode attribute."
- PICS: EEVSEM.S.A0001
- command: "readAttribute"
- attribute: "CurrentMode"
- response:
- saveAs: old_current_mode_dut
-
- - label:
- "Step 5: If startup_mode_dut is equal to old_current_mode_dut proceed
- to step 6. Else proceed to step 8."
- PICS: EEVSEM.S.A0001 && EEVSEM.S.A0002
- cluster: "EqualityCommands"
- command: "UnsignedNumberEquals"
- arguments:
- values:
- - name: "Value1"
- value: startup_mode_dut
- - name: "Value2"
- value: old_current_mode_dut
- response:
- - values:
- - name: "Equals"
- saveAs: Step5_IsExpectedValue
-
- - label: "Step 6: TH reads from the DUT the SupportedModes attribute."
- PICS: EEVSEM.S.A0000
- runIf: Step5_IsExpectedValue
- command: "readAttribute"
- attribute: "SupportedModes"
- response:
- saveAs: Step6_supported_modes_dut
- constraints:
- type: list
- minLength: 2
-
- - label:
- "Step 7: TH sends a ChangeToMode command to the DUT with NewMode set
- to new_mode_th"
- PICS: EEVSEM.S.C00.Rsp
- runIf: Step5_IsExpectedValue
- command: "ChangeToMode"
- arguments:
- values:
- - name: "NewMode"
- value: new_mode_th
- response:
- values:
- - name: "Status"
- value: 0x00
-
- - label: "Step 8: Physically power cycle the device"
- verification: |
- Physically power cycle the device.
- cluster: "LogCommands"
- command: "UserPrompt"
- PICS: PICS_USER_PROMPT
- arguments:
- values:
- - name: "message"
- value: "Please enter 'y' for success"
- - name: "expectedValue"
- value: "y"
-
- - label: "Wait for the commissioned device to be retrieved"
- cluster: "DelayCommands"
- command: "WaitForCommissionee"
- arguments:
- values:
- - name: "nodeId"
- value: nodeId
-
- - label: "Step 9: TH reads from the DUT the StartUpMode attribute."
- PICS: EEVSEM.S.A0002 && PICS_USER_PROMPT
- command: "readAttribute"
- attribute: "StartUpMode"
- response:
- saveAs: new_start_up_mode_dut
- constraints:
- anyOf: [startup_mode_dut, new_start_up_mode_th]
-
- - label: "Step 10: TH reads from the DUT the CurrentMode attribute."
- PICS: EEVSEM.S.A0001 && PICS_USER_PROMPT
- command: "readAttribute"
- attribute: "CurrentMode"
- response:
- value: new_start_up_mode_dut
diff --git a/src/app/tests/suites/certification/Test_TC_EEVSEM_3_3.yaml b/src/app/tests/suites/certification/Test_TC_EEVSEM_3_3.yaml
deleted file mode 100644
index e60aa1c..0000000
--- a/src/app/tests/suites/certification/Test_TC_EEVSEM_3_3.yaml
+++ /dev/null
@@ -1,189 +0,0 @@
-# Copyright (c) 2024 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.
-
-name:
- 269.3.3. [TC-EEVSEM-3.3] On Mode and Startup Mode functionality with DUT as
- Server
-
-PICS:
- - EEVSEM.S.A0002
- - EEVSEM.S.A0003
- - MOD.S.F00
- - OO.S.A4003
-
-config:
- nodeId: 0x12344321
- cluster: "Energy EVSE Mode"
- endpoint: 1
-
- new_start_up_mode_th:
- type: int8u
- defaultValue: 0
- new_mode_th:
- type: int8u
- defaultValue: 1
-
-tests:
- - label:
- "Step 1: Commission DUT to TH (can be skipped if done in a preceding
- test)."
- cluster: "DelayCommands"
- command: "WaitForCommissionee"
- arguments:
- values:
- - name: "nodeId"
- value: nodeId
-
- - label: "Step 2: TH reads from the DUT the StartUpMode attribute."
- PICS: EEVSEM.S.A0002
- command: "readAttribute"
- attribute: "StartUpMode"
- response:
- saveAs: startup_mode_dut
-
- - label:
- "Step 2: If startup_mode_dut is null proceed to step 3. Else save
- startup_mode_dut as new_start_up_mode_th and proceed to step 5."
- PICS: EEVSEM.S.A0002
- cluster: "EqualityCommands"
- command: "UnsignedNumberEquals"
- arguments:
- values:
- - name: "Value1"
- value: startup_mode_dut
- - name: "Value2"
- value: null
- response:
- - values:
- - name: "Equals"
- saveAs: IsExpectedValue
-
- - label: "Step 3: TH reads from the DUT the SupportedModes attribute."
- runIf: IsExpectedValue
- PICS: EEVSEM.S.A0000
- command: "readAttribute"
- attribute: "SupportedModes"
- response:
- saveAs: supported_modes_dut
- constraints:
- type: list
- minLength: 2
-
- - label:
- "Step 4: TH writes to the DUT the StartUpMode attribute with the
- new_start_up_mode_th value"
- PICS: EEVSEM.S.A0002
- runIf: IsExpectedValue
- command: "writeAttribute"
- attribute: "StartUpMode"
- arguments:
- value: new_start_up_mode_th
-
- - label: "Step 5: TH reads from the DUT the OnMode attribute."
- PICS: EEVSEM.S.A0003 && EEVSEM.S.A0002
- command: "readAttribute"
- attribute: "OnMode"
- response:
- saveAs: old_on_mode_dut
-
- - label:
- "Step 5: If startup_mode_dut is equal to old_on_mode_dut proceed to
- step 6. Else proceed to step 8."
- PICS: EEVSEM.S.A0002
- cluster: "EqualityCommands"
- command: "UnsignedNumberEquals"
- arguments:
- values:
- - name: "Value1"
- value: old_on_mode_dut
- - name: "Value2"
- value: startup_mode_dut
- response:
- - values:
- - name: "Equals"
- saveAs: Step5_IsExpectedValue
-
- - label: "Step 6: TH reads from the DUT the SupportedModes attribute."
- PICS: EEVSEM.S.A0000 && EEVSEM.S.A0002
- runIf: Step5_IsExpectedValue
- command: "readAttribute"
- attribute: "SupportedModes"
- response:
- saveAs: Step6_supported_modes_dut
- constraints:
- type: list
- minLength: 2
-
- - label:
- "Step 7: TH writes to the DUT the OnMode attribute with the
- new_mode_th value"
- PICS: EEVSEM.S.A0003
- runIf: Step5_IsExpectedValue
- command: "writeAttribute"
- attribute: "OnMode"
- arguments:
- value: new_mode_th
-
- - label: "Step 8: TH reads from the DUT the OnMode attribute."
- PICS: EEVSEM.S.A0003 && MOD.S.F00
- command: "readAttribute"
- attribute: "OnMode"
- response:
- saveAs: new_on_mode_dut
-
- - label:
- "Step 9: TH writes to the DUT the StartUpOnOff attribute with the
- value 1."
- PICS: OO.S.A4003
- cluster: "On/Off"
- command: "writeAttribute"
- attribute: "StartUpOnOff"
- arguments:
- value: 1
-
- - label: "Step 10: Physically power cycle the device"
- verification: |
- Physically power cycle the device.
- cluster: "LogCommands"
- command: "UserPrompt"
- PICS: PICS_USER_PROMPT
- arguments:
- values:
- - name: "message"
- value: "Please enter 'y' for success"
- - name: "expectedValue"
- value: "y"
-
- - label: "Wait for the commissioned device to be retrieved"
- cluster: "DelayCommands"
- command: "WaitForCommissionee"
- arguments:
- values:
- - name: "nodeId"
- value: nodeId
-
- - label: "Step 11: TH reads from the DUT the StartUpMode attribute."
- PICS: EEVSEM.S.A0002 && PICS_USER_PROMPT
- command: "readAttribute"
- attribute: "StartUpMode"
- response:
- constraints:
- anyOf: [new_start_up_mode_th, startup_mode_dut]
-
- - label: "Step 12: TH reads from the DUT the CurrentMode attribute."
- PICS: EEVSEM.S.A0001 && PICS_USER_PROMPT
- command: "readAttribute"
- attribute: "CurrentMode"
- response:
- value: new_on_mode_dut
diff --git a/src/app/zap-templates/zcl/data-model/chip/device-energy-management-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/device-energy-management-cluster.xml
index b087f3c..3550dd0 100644
--- a/src/app/zap-templates/zcl/data-model/chip/device-energy-management-cluster.xml
+++ b/src/app/zap-templates/zcl/data-model/chip/device-energy-management-cluster.xml
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<!--
-Copyright (c) 2023 Project CHIP Authors
+Copyright (c) 2023-2024 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.
@@ -14,7 +14,13 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<configurator>
+<!--
+XML generated by Alchemy; DO NOT EDIT.
+Source: src/app_clusters/DeviceEnergyManagement.adoc
+Parameters: in-progress
+Git: 1.4-prerelease-ipr-69-ge15ff5700
+-->
+<configurator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../zcl.xsd">
<domain name="Energy Management"/>
<cluster apiMaturity="provisional">
<name>Device Energy Management</name>
@@ -26,12 +32,10 @@
<description>This cluster allows a client to manage the power draw of a device. An example of such a client could be an Energy Management System (EMS) which controls an Energy Smart Appliance (ESA).</description>
<globalAttribute side="either" code="0xFFFD" value="4"/>
<features>
- <feature bit="0" code="PA" name="PowerAdjustment" summary="Allows an EMS to make a temporary power
-adjustment (within the limits offered by the ESA).">
+ <feature bit="0" code="PA" name="PowerAdjustment" summary="Allows an EMS to make a temporary power adjustment (within the limits offered by the ESA).">
<optionalConform/>
</feature>
- <feature bit="1" code="PFR" name="PowerForecastReporting" summary="Allows an ESA to advertise its indicative
-future power consumption vs time.">
+ <feature bit="1" code="PFR" name="PowerForecastReporting" summary="Allows an ESA to advertise its indicative future power consumption vs time.">
<otherwiseConform>
<optionalConform choice="a">
<notTerm>
@@ -49,28 +53,23 @@
<optionalConform/>
</otherwiseConform>
</feature>
- <feature bit="2" code="SFR" name="StateForecastReporting" summary="Allows an ESA to advertise its indicative
-future state vs time.">
+ <feature bit="2" code="SFR" name="StateForecastReporting" summary="Allows an ESA to advertise its indicative future state vs time.">
<optionalConform choice="a">
<notTerm>
<feature name="PA"/>
</notTerm>
</optionalConform>
</feature>
- <feature bit="3" code="STA" name="StartTimeAdjustment" summary="Allows an EMS to delay an ESA's
-planned operation.">
+ <feature bit="3" code="STA" name="StartTimeAdjustment" summary="Allows an EMS to delay an ESA's planned operation.">
<optionalConform/>
</feature>
- <feature bit="4" code="PAU" name="Pausable" summary="Allows an EMS to pause an ESA's
-planned operation.">
+ <feature bit="4" code="PAU" name="Pausable" summary="Allows an EMS to pause an ESA's planned operation.">
<optionalConform/>
</feature>
- <feature bit="5" code="FA" name="ForecastAdjustment" summary="Allows an EMS to adjust an ESA's
-planned operation.">
+ <feature bit="5" code="FA" name="ForecastAdjustment" summary="Allows an EMS to adjust an ESA's planned operation.">
<optionalConform/>
</feature>
- <feature bit="6" code="CON" name="ConstraintBasedAdjustment" summary="Allows an EMS to request constraints to an ESA's
-planned operation.">
+ <feature bit="6" code="CON" name="ConstraintBasedAdjustment" summary="Allows an EMS to request constraints to an ESA's planned operation.">
<optionalConform/>
</feature>
</features>
@@ -126,26 +125,26 @@
</command>
<command source="client" code="0x07" name="CancelRequest" optional="true">
- <description>Allows a client to request cancellation of a previous adjustment request in a StartTimeAdjustRequest, ModifyForecastRequest or RequestConstraintBasedForecast command</description>
+ <description>Allows a client to request cancellation of a previous adjustment request in a StartTimeAdjustRequest, ModifyForecastRequest or RequestConstraintBasedForecast command.</description>
</command>
<event code="0x00" name="PowerAdjustStart" priority="info" side="server" apiMaturity="provisional" optional="true">
- <description>PowerAdjustStart</description>
+ <description>This event SHALL be generated when the Power Adjustment session is started.</description>
</event>
<event code="0x01" name="PowerAdjustEnd" priority="info" side="server" apiMaturity="provisional" optional="true">
- <description>PowerAdjustEnd</description>
+ <description>This event SHALL be generated when the Power Adjustment session ends.</description>
<field id="0" name="Cause" type="CauseEnum" apiMaturity="provisional" default="0x00" min="0x00" max="0x04"/>
<field id="1" name="Duration" type="elapsed_s" apiMaturity="provisional"/>
<field id="2" name="EnergyUse" type="energy_mwh" apiMaturity="provisional"/>
</event>
<event code="0x02" name="Paused" priority="info" side="server" apiMaturity="provisional" optional="true">
- <description>Paused</description>
+ <description>This event SHALL be generated when the ESA enters the Paused state.</description>
</event>
<event code="0x03" name="Resumed" priority="info" side="server" apiMaturity="provisional" optional="true">
- <description>Resumed</description>
+ <description>This event SHALL be generated when the ESA leaves the Paused state and resumes operation.</description>
<field id="0" name="Cause" type="CauseEnum" apiMaturity="provisional" default="0x00" min="0x00" max="0x04"/>
</event>
diff --git a/src/app/zap-templates/zcl/data-model/chip/device-energy-management-mode-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/device-energy-management-mode-cluster.xml
index 3ee3289..c3440ad 100644
--- a/src/app/zap-templates/zcl/data-model/chip/device-energy-management-mode-cluster.xml
+++ b/src/app/zap-templates/zcl/data-model/chip/device-energy-management-mode-cluster.xml
@@ -14,9 +14,14 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<configurator>
+<!--
+XML generated by Alchemy; DO NOT EDIT.
+Source: src/app_clusters/Mode_DeviceEnergyManagement.adoc
+Parameters: in-progress
+Git: 1.4-prerelease-ipr-69-ge15ff5700
+-->
+<configurator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../zcl.xsd">
<domain name="CHIP"/>
-
<enum name="ModeTag" type="enum16">
<cluster code="0x009F"/>
<!-- These are the base values (see `enum class ModeTag`
@@ -32,51 +37,41 @@
<item value="0x0007" name="Max"/>
<item value="0x0008" name="Night"/>
<item value="0x0009" name="Day"/>
-
<!-- Derived cluster-specific values -->
- <item value="0x4000" name="No Optimization"/>
- <item value="0x4001" name="Device Optimization"/>
- <item value="0x4002" name="Local Optimization"/>
- <item value="0x4003" name="Grid Optimization"/>
+ <item value="0x4000" name="NoOptimization"/>
+ <item value="0x4001" name="DeviceOptimization"/>
+ <item value="0x4002" name="LocalOptimization"/>
+ <item value="0x4003" name="GridOptimization"/>
</enum>
<cluster apiMaturity="provisional">
- <domain>General</domain>
+ <domain>Energy Management</domain>
<name>Device Energy Management Mode</name>
<code>0x009F</code>
<define>DEVICE_ENERGY_MANAGEMENT_MODE_CLUSTER</define>
<client init="false" tick="false">true</client>
<server init="false" tick="false">true</server>
<description>Attributes and commands for selecting a mode from a list of supported options.</description>
- <globalAttribute side="either" code="0xFFFD" value="1"/>
-
+ <globalAttribute side="either" code="0xFFFD" value="2"/>
<features>
<feature bit="0" code="DEPONOFF" name="OnOff" summary="Dependency with the OnOff cluster">
- <optionalConform/>
+ <disallowConform/>
</feature>
</features>
-
<!-- Base data types -->
- <attribute side="server" code="0x0000" define="SUPPORTED_MODES" type="array" entryType="ModeOptionStruct" writable="false" optional="false" isNullable="false" length="255">SupportedModes</attribute>
- <attribute side="server" code="0x0001" define="CURRENT_MODE" type="int8u" writable="false" optional="false" isNullable="false" reportable="true">CurrentMode</attribute>
- <attribute side="server" code="0x0002" define="START_UP_MODE" type="int8u" writable="true" optional="true" isNullable="true">StartUpMode</attribute>
- <attribute side="server" code="0x0003" define="ON_MODE" type="int8u" writable="true" optional="true" isNullable="true">OnMode</attribute>
-
+ <attribute side="server" code="0x0000" define="SUPPORTED_MODES" type="array" entryType="ModeOptionStruct" length="255" minLength="2">SupportedModes</attribute>
+ <attribute side="server" code="0x0001" define="CURRENT_MODE" type="int8u">CurrentMode</attribute>
<!-- Commands -->
<command source="client" code="0x00" name="ChangeToMode" response="ChangeToModeResponse" optional="false">
- <description>
- This command is used to change device modes.
- On receipt of this command the device SHALL respond with a ChangeToModeResponse command.
- </description>
- <arg name="NewMode" type="int8u" optional="false"/>
+ <description>This command is used to change device modes.</description>
+ <arg id="0" name="NewMode" type="int8u"/>
</command>
<command source="server" code="0x01" name="ChangeToModeResponse" disableDefaultResponse="true" optional="false">
- <description>
- This command is sent by the device on receipt of the ChangeToModeWithStatus command.
- </description>
- <arg name="Status" type="enum8" optional="false"/>
- <arg name="StatusText" type="char_string" length="64" optional="true"/>
+ <description>This command is sent by the device on receipt of the ChangeToMode command.</description>
+ <arg id="0" name="Status" type="enum8"/>
+ <arg id="1" name="StatusText" type="char_string" length="64" optional="true"/>
</command>
+
</cluster>
</configurator>
diff --git a/src/app/zap-templates/zcl/data-model/chip/energy-evse-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/energy-evse-cluster.xml
index 9477477..7a4a40d 100644
--- a/src/app/zap-templates/zcl/data-model/chip/energy-evse-cluster.xml
+++ b/src/app/zap-templates/zcl/data-model/chip/energy-evse-cluster.xml
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<!--
-Copyright (c) 2023 Project CHIP Authors
+Copyright (c) 2023-2024 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
@@ -11,7 +11,13 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<configurator>
+<!--
+XML generated by Alchemy; DO NOT EDIT.
+Source: src/app_clusters/EnergyEVSE.adoc
+Parameters: in-progress
+Git: 1.4-prerelease-ipr-69-ge15ff5700
+-->
+<configurator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../zcl.xsd">
<domain name="Energy Management"/>
<enum name="StateEnum" type="enum8">
<cluster code="0x0099"/>
@@ -94,25 +100,31 @@
<client init="false" tick="false">true</client>
<server init="false" tick="false">true</server>
<description>Electric Vehicle Supply Equipment (EVSE) is equipment used to charge an Electric Vehicle (EV) or Plug-In Hybrid Electric Vehicle. This cluster provides an interface to the functionality of Electric Vehicle Supply Equipment (EVSE) management.</description>
- <globalAttribute side="either" code="0xFFFD" value="4"/>
+ <globalAttribute side="either" code="0xFFFD" value="3"/>
<features>
<feature bit="0" code="PREF" name="ChargingPreferences" summary="EVSE supports storing user charging preferences">
- <otherwiseConform>
- <provisionalConform/>
- <mandatoryConform/>
- </otherwiseConform>
+ <mandatoryConform/>
</feature>
<feature bit="1" code="SOC" name="SoCReporting" summary="EVSE supports reporting of vehicle State of Charge (SoC)">
- <provisionalConform/>
+ <otherwiseConform>
+ <provisionalConform/>
+ <optionalConform/>
+ </otherwiseConform>
</feature>
<feature bit="2" code="PNC" name="PlugAndCharge" summary="EVSE supports PLC to support Plug and Charge">
- <provisionalConform/>
+ <otherwiseConform>
+ <provisionalConform/>
+ <optionalConform/>
+ </otherwiseConform>
</feature>
<feature bit="3" code="RFID" name="RFID" summary="EVSE is fitted with an RFID reader">
<optionalConform/>
</feature>
<feature bit="4" code="V2X" name="V2X" summary="EVSE supports bi-directional charging / discharging">
- <provisionalConform/>
+ <otherwiseConform>
+ <provisionalConform/>
+ <optionalConform/>
+ </otherwiseConform>
</feature>
</features>
<!--Attributes-->
@@ -146,7 +158,7 @@
<!--Conformance feature PREF - for now optional-->
<attribute code="0x0026" side="server" type="percent" define="NEXT_CHARGE_TARGET_SOC" isNullable="true" optional="true">NextChargeTargetSoC</attribute>
<!--Conformance feature [PREF] - for now optional-->
- <attribute code="0x0027" side="server" type="int16u" define="APPROXIMATE_EV_EFFICIENCY" isNullable="true" writable="true" optional="true" max="0xFFFE">
+ <attribute code="0x0027" side="server" type="int16u" define="APPROXIMATE_EV_EFFICIENCY" isNullable="true" writable="true" optional="true" max="0xFFFE" min="0">
<access op="write" privilege="manage"/>
<description>ApproximateEVEfficiency</description>
</attribute>
@@ -169,13 +181,13 @@
<arg id="0" name="ChargingEnabledUntil" type="epoch_s" isNullable="true"/>
<arg id="1" name="MinimumChargeCurrent" type="amperage_ma" min="0"/>
<arg id="2" name="MaximumChargeCurrent" type="amperage_ma" min="0"/>
- <description>This command allows a client to enable the EVSE to charge an EV,</description>
+ <description>This command allows a client to enable the EVSE to charge an EV, and to provide or update the maximum and minimum charge current.</description>
</command>
<command source="client" code="0x03" name="EnableDischarging" optional="true" mustUseTimedInvoke="true" apiMaturity="provisional">
<arg id="0" name="DischargingEnabledUntil" type="epoch_s" isNullable="true"/>
<arg id="1" name="MaximumDischargeCurrent" type="amperage_ma" min="0"/>
- <description>Upon receipt, this SHALL allow a client to enable the discharge of an EV,</description>
+ <description>Upon receipt, this SHALL allow a client to enable the discharge of an EV, and to provide or update the maximum discharge current.</description>
</command>
<command source="client" code="0x04" name="StartDiagnostics" optional="true" mustUseTimedInvoke="true">
@@ -201,12 +213,12 @@
</command>
<event side="server" code="0x00" name="EVConnected" priority="info">
- <description>EVConnected</description>
+ <description>This event SHALL be generated when the EV is plugged in.</description>
<field id="0" name="SessionID" type="int32u"/>
</event>
<event side="server" code="0x01" name="EVNotDetected" priority="info">
- <description>EVNotDetected</description>
+ <description>This event SHALL be generated when the EV is unplugged or not detected (having been previously plugged in).</description>
<field id="0" name="SessionID" type="int32u"/>
<field id="1" name="State" type="StateEnum" min="0x00" max="0x06"/>
<field id="2" name="SessionDuration" type="elapsed_s"/>
@@ -215,7 +227,7 @@
</event>
<event side="server" code="0x02" name="EnergyTransferStarted" priority="info">
- <description>EnergyTransferStarted</description>
+ <description>This event SHALL be generated whenever the EV starts charging or discharging, except when an EV has switched between charging and discharging under the control of the PowerAdjustment feature of the Device Energy Management cluster of the associated Device Energy Management device.</description>
<field id="0" name="SessionID" type="int32u"/>
<field id="1" name="State" type="StateEnum" min="0x00" max="0x06"/>
<field id="2" name="MaximumCurrent" type="amperage_ma" min="0"/>
@@ -223,7 +235,7 @@
</event>
<event side="server" code="0x03" name="EnergyTransferStopped" priority="info">
- <description>EnergyTransferStopped</description>
+ <description>This event SHALL be generated whenever the EV stops charging or discharging, except when an EV has switched between charging and discharging under the control of the PowerAdjustment feature of the Device Energy Management cluster of the associated Device Energy Management device.</description>
<field id="0" name="SessionID" type="int32u"/>
<field id="1" name="State" type="StateEnum" min="0x00" max="0x06"/>
<field id="2" name="Reason" type="EnergyTransferStoppedReasonEnum" min="0x00" max="0x02"/>
@@ -232,7 +244,7 @@
</event>
<event side="server" code="0x04" name="Fault" priority="critical">
- <description>Fault</description>
+ <description>If the EVSE detects a fault it SHALL generate a Fault Event.</description>
<field id="0" name="SessionID" type="int32u" isNullable="true"/>
<field id="1" name="State" type="StateEnum" min="0x00" max="0x06"/>
<field id="2" name="FaultStatePreviousState" type="FaultStateEnum" min="0x00" max="0xFF"/>
@@ -240,7 +252,7 @@
</event>
<event side="server" code="0x05" name="RFID" priority="info" optional="true">
- <description>RFID</description>
+ <description>This event SHALL be generated when a RFID card has been read.</description>
<field id="0" name="UID" type="octet_string" length="10"/>
</event>
diff --git a/src/app/zap-templates/zcl/data-model/chip/energy-evse-mode-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/energy-evse-mode-cluster.xml
index b5dc566..b28daf8 100644
--- a/src/app/zap-templates/zcl/data-model/chip/energy-evse-mode-cluster.xml
+++ b/src/app/zap-templates/zcl/data-model/chip/energy-evse-mode-cluster.xml
@@ -14,9 +14,14 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<configurator>
+<!--
+XML generated by Alchemy; DO NOT EDIT.
+Source: src/app_clusters/Mode_EVSE.adoc
+Parameters: in-progress
+Git: 1.4-prerelease-ipr-69-ge15ff5700
+-->
+<configurator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../zcl.xsd">
<domain name="CHIP"/>
-
<enum name="ModeTag" type="enum16">
<cluster code="0x009D"/>
<!-- These are the base values (see `enum class ModeTag`
@@ -32,50 +37,41 @@
<item value="0x0007" name="Max"/>
<item value="0x0008" name="Night"/>
<item value="0x0009" name="Day"/>
-
<!-- Derived cluster-specific values -->
<item value="0x4000" name="Manual"/>
<item value="0x4001" name="TimeOfUse"/>
<item value="0x4002" name="SolarCharging"/>
+ <item value="0x4003" name="V2X"/>
</enum>
<cluster>
- <domain>General</domain>
+ <domain>Energy Management</domain>
<name>Energy EVSE Mode</name>
<code>0x009D</code>
<define>ENERGY_EVSE_MODE_CLUSTER</define>
<client init="false" tick="false">true</client>
<server init="false" tick="false">true</server>
<description>Attributes and commands for selecting a mode from a list of supported options.</description>
- <globalAttribute side="either" code="0xFFFD" value="1"/>
-
+ <globalAttribute side="either" code="0xFFFD" value="2"/>
<features>
<feature bit="0" code="DEPONOFF" name="OnOff" summary="Dependency with the OnOff cluster">
- <optionalConform/>
+ <disallowConform/>
</feature>
</features>
-
<!-- Base data types -->
- <attribute side="server" code="0x0000" define="SUPPORTED_MODES" type="array" entryType="ModeOptionStruct" writable="false" optional="false" isNullable="false" length="255">SupportedModes</attribute>
- <attribute side="server" code="0x0001" define="CURRENT_MODE" type="int8u" writable="false" optional="false" isNullable="false" reportable="true">CurrentMode</attribute>
- <attribute side="server" code="0x0002" define="START_UP_MODE" type="int8u" writable="true" optional="true" isNullable="true">StartUpMode</attribute>
- <attribute side="server" code="0x0003" define="ON_MODE" type="int8u" writable="true" optional="true" isNullable="true">OnMode</attribute>
-
+ <attribute side="server" code="0x0000" define="SUPPORTED_MODES" type="array" entryType="ModeOptionStruct" length="255" minLength="2">SupportedModes</attribute>
+ <attribute side="server" code="0x0001" define="CURRENT_MODE" type="int8u">CurrentMode</attribute>
<!-- Commands -->
<command source="client" code="0x00" name="ChangeToMode" response="ChangeToModeResponse" optional="false">
- <description>
- This command is used to change device modes.
- On receipt of this command the device SHALL respond with a ChangeToModeResponse command.
- </description>
- <arg name="NewMode" type="int8u" optional="false"/>
+ <description>This command is used to change device modes.</description>
+ <arg id="0" name="NewMode" type="int8u"/>
</command>
<command source="server" code="0x01" name="ChangeToModeResponse" disableDefaultResponse="true" optional="false">
- <description>
- This command is sent by the device on receipt of the ChangeToModeWithStatus command.
- </description>
- <arg name="Status" type="enum8" optional="false"/>
- <arg name="StatusText" type="char_string" length="64" optional="true"/>
+ <description>This command is sent by the device on receipt of the ChangeToMode command.</description>
+ <arg id="0" name="Status" type="enum8"/>
+ <arg id="1" name="StatusText" type="char_string" length="64" optional="true"/>
</command>
+
</cluster>
</configurator>
diff --git a/src/app/zap-templates/zcl/data-model/chip/water-heater-management-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/water-heater-management-cluster.xml
index 8246930..beeaf27 100644
--- a/src/app/zap-templates/zcl/data-model/chip/water-heater-management-cluster.xml
+++ b/src/app/zap-templates/zcl/data-model/chip/water-heater-management-cluster.xml
@@ -14,7 +14,13 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<configurator>
+<!--
+XML generated by Alchemy; DO NOT EDIT.
+Source: src/app_clusters/WaterHeaterManagement.adoc
+Parameters: in-progress
+Git: 1.4-prerelease-ipr-69-ge15ff5700
+-->
+<configurator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../zcl.xsd">
<domain name="Energy Management"/>
<bitmap name="WaterHeaterHeatSourceBitmap" type="bitmap8" apiMaturity="provisional">
<cluster code="0x0094"/>
@@ -76,12 +82,12 @@
</command>
<event code="0x0000" name="BoostStarted" priority="info" side="server">
- <description>BoostStarted</description>
+ <description>This event SHALL be generated whenever a Boost command is accepted.</description>
<field id="0" name="BoostInfo" type="WaterHeaterBoostInfoStruct"/>
</event>
<event code="0x0001" name="BoostEnded" priority="info" side="server">
- <description>BoostEnded</description>
+ <description>This event SHALL be generated whenever the BoostState transitions from Active to Inactive.</description>
</event>
</cluster>
diff --git a/src/app/zap-templates/zcl/data-model/chip/water-heater-mode-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/water-heater-mode-cluster.xml
index 502f9e3..d9211e8 100644
--- a/src/app/zap-templates/zcl/data-model/chip/water-heater-mode-cluster.xml
+++ b/src/app/zap-templates/zcl/data-model/chip/water-heater-mode-cluster.xml
@@ -14,12 +14,16 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<configurator>
+<!--
+XML generated by Alchemy; DO NOT EDIT.
+Source: src/app_clusters/Mode_WaterHeater.adoc
+Parameters: in-progress
+Git: 1.4-prerelease-ipr-69-ge15ff5700
+-->
+<configurator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../zcl.xsd">
<domain name="CHIP"/>
-
<enum name="ModeTag" type="enum16">
<cluster code="0x009E"/>
-
<!-- These are the base values (see `enum class ModeTag`
in src/app/clusters/mode-base-server/mode-base-cluster-objects.h for the namespace source of truth
until it is possible to auto-include these without duplication in codegen. -->
@@ -33,7 +37,6 @@
<item value="0x0007" name="Max"/>
<item value="0x0008" name="Night"/>
<item value="0x0009" name="Day"/>
-
<!-- Derived cluster-specific values -->
<item value="0x4000" name="Off"/>
<item value="0x4001" name="Manual"/>
@@ -41,7 +44,7 @@
</enum>
<cluster>
- <domain>General</domain>
+ <domain>Energy Management</domain>
<name>Water Heater Mode</name>
<code>0x009E</code>
<define>WATER_HEATER_MODE_CLUSTER</define>
@@ -49,34 +52,25 @@
<server init="false" tick="false">true</server>
<description>Attributes and commands for selecting a mode from a list of supported options.</description>
<globalAttribute side="either" code="0xFFFD" value="1"/>
-
<features>
<feature bit="0" code="DEPONOFF" name="OnOff" summary="Dependency with the OnOff cluster">
- <optionalConform/>
+ <disallowConform/>
</feature>
</features>
-
<!-- Base data types -->
- <attribute side="server" code="0x0000" define="SUPPORTED_MODES" type="array" entryType="ModeOptionStruct" writable="false" optional="false" isNullable="false" length="255">SupportedModes</attribute>
- <attribute side="server" code="0x0001" define="CURRENT_MODE" type="int8u" writable="false" optional="false" isNullable="false" reportable="true">CurrentMode</attribute>
- <attribute side="server" code="0x0002" define="START_UP_MODE" type="int8u" writable="true" optional="true" isNullable="true">StartUpMode</attribute>
- <attribute side="server" code="0x0003" define="ON_MODE" type="int8u" writable="true" optional="true" isNullable="true">OnMode</attribute>
-
+ <attribute side="server" code="0x0000" define="SUPPORTED_MODES" type="array" entryType="ModeOptionStruct" length="255" minLength="2">SupportedModes</attribute>
+ <attribute side="server" code="0x0001" define="CURRENT_MODE" type="int8u">CurrentMode</attribute>
<!-- Commands -->
<command source="client" code="0x00" name="ChangeToMode" response="ChangeToModeResponse" optional="false">
- <description>
- This command is used to change device modes.
- On receipt of this command the device SHALL respond with a ChangeToModeResponse command.
- </description>
- <arg name="NewMode" type="int8u" optional="false"/>
+ <description>This command is used to change device modes.</description>
+ <arg id="0" name="NewMode" type="int8u"/>
</command>
<command source="server" code="0x01" name="ChangeToModeResponse" disableDefaultResponse="true" optional="false">
- <description>
- This command is sent by the device on receipt of the ChangeToModeWithStatus command.
- </description>
- <arg name="Status" type="enum8" optional="false"/>
- <arg name="StatusText" type="char_string" lenght="64" optional="true"/>
+ <description>This command is sent by the device on receipt of the ChangeToMode command.</description>
+ <arg id="0" name="Status" type="enum8"/>
+ <arg id="1" name="StatusText" type="char_string" lenght="64" optional="true" length="64"/>
</command>
+
</cluster>
</configurator>
diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter
index 3b77747..d663a5f 100644
--- a/src/controller/data_model/controller-clusters.matter
+++ b/src/controller/data_model/controller-clusters.matter
@@ -5260,13 +5260,13 @@
command ModifyForecastRequest(ModifyForecastRequestRequest): DefaultSuccess = 5;
/** Allows a client to ask the ESA to recompute its Forecast based on power and time constraints. */
command RequestConstraintBasedForecast(RequestConstraintBasedForecastRequest): DefaultSuccess = 6;
- /** Allows a client to request cancellation of a previous adjustment request in a StartTimeAdjustRequest, ModifyForecastRequest or RequestConstraintBasedForecast command */
+ /** Allows a client to request cancellation of a previous adjustment request in a StartTimeAdjustRequest, ModifyForecastRequest or RequestConstraintBasedForecast command. */
command CancelRequest(): DefaultSuccess = 7;
}
/** Electric Vehicle Supply Equipment (EVSE) is equipment used to charge an Electric Vehicle (EV) or Plug-In Hybrid Electric Vehicle. This cluster provides an interface to the functionality of Electric Vehicle Supply Equipment (EVSE) management. */
cluster EnergyEvse = 153 {
- revision 4;
+ revision 3;
enum EnergyTransferStoppedReasonEnum : enum8 {
kEVStopped = 0;
@@ -5431,9 +5431,9 @@
/** Allows a client to disable the EVSE from charging and discharging. */
timed command Disable(): DefaultSuccess = 1;
- /** This command allows a client to enable the EVSE to charge an EV, */
+ /** This command allows a client to enable the EVSE to charge an EV, and to provide or update the maximum and minimum charge current. */
timed command EnableCharging(EnableChargingRequest): DefaultSuccess = 2;
- /** Upon receipt, this SHALL allow a client to enable the discharge of an EV, */
+ /** Upon receipt, this SHALL allow a client to enable the discharge of an EV, and to provide or update the maximum discharge current. */
timed command EnableDischarging(EnableDischargingRequest): DefaultSuccess = 3;
/** Allows a client to put the EVSE into a self-diagnostics mode. */
timed command StartDiagnostics(): DefaultSuccess = 4;
@@ -5502,7 +5502,7 @@
/** Attributes and commands for selecting a mode from a list of supported options. */
cluster EnergyEvseMode = 157 {
- revision 1;
+ revision 2;
enum ModeTag : enum16 {
kAuto = 0;
@@ -5518,6 +5518,7 @@
kManual = 16384;
kTimeOfUse = 16385;
kSolarCharging = 16386;
+ kV2X = 16387;
}
bitmap Feature : bitmap32 {
@@ -5537,8 +5538,6 @@
readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
- attribute optional nullable int8u startUpMode = 2;
- attribute optional nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -5555,8 +5554,7 @@
optional char_string<64> statusText = 1;
}
- /** This command is used to change device modes.
- On receipt of this command the device SHALL respond with a ChangeToModeResponse command. */
+ /** This command is used to change device modes. */
command ChangeToMode(ChangeToModeRequest): ChangeToModeResponse = 0;
}
@@ -5597,8 +5595,6 @@
readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
- attribute optional nullable int8u startUpMode = 2;
- attribute optional nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -5612,17 +5608,16 @@
response struct ChangeToModeResponse = 1 {
enum8 status = 0;
- optional char_string statusText = 1;
+ optional char_string<64> statusText = 1;
}
- /** This command is used to change device modes.
- On receipt of this command the device SHALL respond with a ChangeToModeResponse command. */
+ /** This command is used to change device modes. */
command ChangeToMode(ChangeToModeRequest): ChangeToModeResponse = 0;
}
/** Attributes and commands for selecting a mode from a list of supported options. */
provisional cluster DeviceEnergyManagementMode = 159 {
- revision 1;
+ revision 2;
enum ModeTag : enum16 {
kAuto = 0;
@@ -5658,8 +5653,6 @@
readonly attribute ModeOptionStruct supportedModes[] = 0;
readonly attribute int8u currentMode = 1;
- attribute optional nullable int8u startUpMode = 2;
- attribute optional nullable int8u onMode = 3;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -5676,8 +5669,7 @@
optional char_string<64> statusText = 1;
}
- /** This command is used to change device modes.
- On receipt of this command the device SHALL respond with a ChangeToModeResponse command. */
+ /** This command is used to change device modes. */
command ChangeToMode(ChangeToModeRequest): ChangeToModeResponse = 0;
}
diff --git a/src/controller/java/generated/java/chip/devicecontroller/ChipClusters.java b/src/controller/java/generated/java/chip/devicecontroller/ChipClusters.java
index 5560704..dff134b 100644
--- a/src/controller/java/generated/java/chip/devicecontroller/ChipClusters.java
+++ b/src/controller/java/generated/java/chip/devicecontroller/ChipClusters.java
@@ -33304,8 +33304,6 @@
private static final long SUPPORTED_MODES_ATTRIBUTE_ID = 0L;
private static final long CURRENT_MODE_ATTRIBUTE_ID = 1L;
- private static final long START_UP_MODE_ATTRIBUTE_ID = 2L;
- private static final long ON_MODE_ATTRIBUTE_ID = 3L;
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;
@@ -33368,14 +33366,6 @@
void onSuccess(List<ChipStructs.EnergyEvseModeClusterModeOptionStruct> value);
}
- public interface StartUpModeAttributeCallback extends BaseAttributeCallback {
- void onSuccess(@Nullable Integer value);
- }
-
- public interface OnModeAttributeCallback extends BaseAttributeCallback {
- void onSuccess(@Nullable Integer value);
- }
-
public interface GeneratedCommandListAttributeCallback extends BaseAttributeCallback {
void onSuccess(List<Long> value);
}
@@ -33444,76 +33434,6 @@
}, CURRENT_MODE_ATTRIBUTE_ID, minInterval, maxInterval);
}
- public void readStartUpModeAttribute(
- StartUpModeAttributeCallback callback) {
- ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, START_UP_MODE_ATTRIBUTE_ID);
-
- readAttribute(new ReportCallbackImpl(callback, path) {
- @Override
- public void onSuccess(byte[] tlv) {
- @Nullable Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv);
- callback.onSuccess(value);
- }
- }, START_UP_MODE_ATTRIBUTE_ID, true);
- }
-
- public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value) {
- writeStartUpModeAttribute(callback, value, 0);
- }
-
- public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) {
- BaseTLVType tlvValue = value != null ? new UIntType(value) : new NullType();
- writeAttribute(new WriteAttributesCallbackImpl(callback), START_UP_MODE_ATTRIBUTE_ID, tlvValue, timedWriteTimeoutMs);
- }
-
- public void subscribeStartUpModeAttribute(
- StartUpModeAttributeCallback callback, int minInterval, int maxInterval) {
- ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, START_UP_MODE_ATTRIBUTE_ID);
-
- subscribeAttribute(new ReportCallbackImpl(callback, path) {
- @Override
- public void onSuccess(byte[] tlv) {
- @Nullable Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv);
- callback.onSuccess(value);
- }
- }, START_UP_MODE_ATTRIBUTE_ID, minInterval, maxInterval);
- }
-
- public void readOnModeAttribute(
- OnModeAttributeCallback callback) {
- ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, ON_MODE_ATTRIBUTE_ID);
-
- readAttribute(new ReportCallbackImpl(callback, path) {
- @Override
- public void onSuccess(byte[] tlv) {
- @Nullable Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv);
- callback.onSuccess(value);
- }
- }, ON_MODE_ATTRIBUTE_ID, true);
- }
-
- public void writeOnModeAttribute(DefaultClusterCallback callback, Integer value) {
- writeOnModeAttribute(callback, value, 0);
- }
-
- public void writeOnModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) {
- BaseTLVType tlvValue = value != null ? new UIntType(value) : new NullType();
- writeAttribute(new WriteAttributesCallbackImpl(callback), ON_MODE_ATTRIBUTE_ID, tlvValue, timedWriteTimeoutMs);
- }
-
- public void subscribeOnModeAttribute(
- OnModeAttributeCallback callback, int minInterval, int maxInterval) {
- ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, ON_MODE_ATTRIBUTE_ID);
-
- subscribeAttribute(new ReportCallbackImpl(callback, path) {
- @Override
- public void onSuccess(byte[] tlv) {
- @Nullable Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv);
- callback.onSuccess(value);
- }
- }, ON_MODE_ATTRIBUTE_ID, minInterval, maxInterval);
- }
-
public void readGeneratedCommandListAttribute(
GeneratedCommandListAttributeCallback callback) {
ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, GENERATED_COMMAND_LIST_ATTRIBUTE_ID);
@@ -33676,8 +33596,6 @@
private static final long SUPPORTED_MODES_ATTRIBUTE_ID = 0L;
private static final long CURRENT_MODE_ATTRIBUTE_ID = 1L;
- private static final long START_UP_MODE_ATTRIBUTE_ID = 2L;
- private static final long ON_MODE_ATTRIBUTE_ID = 3L;
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;
@@ -33740,14 +33658,6 @@
void onSuccess(List<ChipStructs.WaterHeaterModeClusterModeOptionStruct> value);
}
- public interface StartUpModeAttributeCallback extends BaseAttributeCallback {
- void onSuccess(@Nullable Integer value);
- }
-
- public interface OnModeAttributeCallback extends BaseAttributeCallback {
- void onSuccess(@Nullable Integer value);
- }
-
public interface GeneratedCommandListAttributeCallback extends BaseAttributeCallback {
void onSuccess(List<Long> value);
}
@@ -33816,76 +33726,6 @@
}, CURRENT_MODE_ATTRIBUTE_ID, minInterval, maxInterval);
}
- public void readStartUpModeAttribute(
- StartUpModeAttributeCallback callback) {
- ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, START_UP_MODE_ATTRIBUTE_ID);
-
- readAttribute(new ReportCallbackImpl(callback, path) {
- @Override
- public void onSuccess(byte[] tlv) {
- @Nullable Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv);
- callback.onSuccess(value);
- }
- }, START_UP_MODE_ATTRIBUTE_ID, true);
- }
-
- public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value) {
- writeStartUpModeAttribute(callback, value, 0);
- }
-
- public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) {
- BaseTLVType tlvValue = value != null ? new UIntType(value) : new NullType();
- writeAttribute(new WriteAttributesCallbackImpl(callback), START_UP_MODE_ATTRIBUTE_ID, tlvValue, timedWriteTimeoutMs);
- }
-
- public void subscribeStartUpModeAttribute(
- StartUpModeAttributeCallback callback, int minInterval, int maxInterval) {
- ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, START_UP_MODE_ATTRIBUTE_ID);
-
- subscribeAttribute(new ReportCallbackImpl(callback, path) {
- @Override
- public void onSuccess(byte[] tlv) {
- @Nullable Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv);
- callback.onSuccess(value);
- }
- }, START_UP_MODE_ATTRIBUTE_ID, minInterval, maxInterval);
- }
-
- public void readOnModeAttribute(
- OnModeAttributeCallback callback) {
- ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, ON_MODE_ATTRIBUTE_ID);
-
- readAttribute(new ReportCallbackImpl(callback, path) {
- @Override
- public void onSuccess(byte[] tlv) {
- @Nullable Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv);
- callback.onSuccess(value);
- }
- }, ON_MODE_ATTRIBUTE_ID, true);
- }
-
- public void writeOnModeAttribute(DefaultClusterCallback callback, Integer value) {
- writeOnModeAttribute(callback, value, 0);
- }
-
- public void writeOnModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) {
- BaseTLVType tlvValue = value != null ? new UIntType(value) : new NullType();
- writeAttribute(new WriteAttributesCallbackImpl(callback), ON_MODE_ATTRIBUTE_ID, tlvValue, timedWriteTimeoutMs);
- }
-
- public void subscribeOnModeAttribute(
- OnModeAttributeCallback callback, int minInterval, int maxInterval) {
- ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, ON_MODE_ATTRIBUTE_ID);
-
- subscribeAttribute(new ReportCallbackImpl(callback, path) {
- @Override
- public void onSuccess(byte[] tlv) {
- @Nullable Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv);
- callback.onSuccess(value);
- }
- }, ON_MODE_ATTRIBUTE_ID, minInterval, maxInterval);
- }
-
public void readGeneratedCommandListAttribute(
GeneratedCommandListAttributeCallback callback) {
ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, GENERATED_COMMAND_LIST_ATTRIBUTE_ID);
@@ -34048,8 +33888,6 @@
private static final long SUPPORTED_MODES_ATTRIBUTE_ID = 0L;
private static final long CURRENT_MODE_ATTRIBUTE_ID = 1L;
- private static final long START_UP_MODE_ATTRIBUTE_ID = 2L;
- private static final long ON_MODE_ATTRIBUTE_ID = 3L;
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;
@@ -34112,14 +33950,6 @@
void onSuccess(List<ChipStructs.DeviceEnergyManagementModeClusterModeOptionStruct> value);
}
- public interface StartUpModeAttributeCallback extends BaseAttributeCallback {
- void onSuccess(@Nullable Integer value);
- }
-
- public interface OnModeAttributeCallback extends BaseAttributeCallback {
- void onSuccess(@Nullable Integer value);
- }
-
public interface GeneratedCommandListAttributeCallback extends BaseAttributeCallback {
void onSuccess(List<Long> value);
}
@@ -34188,76 +34018,6 @@
}, CURRENT_MODE_ATTRIBUTE_ID, minInterval, maxInterval);
}
- public void readStartUpModeAttribute(
- StartUpModeAttributeCallback callback) {
- ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, START_UP_MODE_ATTRIBUTE_ID);
-
- readAttribute(new ReportCallbackImpl(callback, path) {
- @Override
- public void onSuccess(byte[] tlv) {
- @Nullable Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv);
- callback.onSuccess(value);
- }
- }, START_UP_MODE_ATTRIBUTE_ID, true);
- }
-
- public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value) {
- writeStartUpModeAttribute(callback, value, 0);
- }
-
- public void writeStartUpModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) {
- BaseTLVType tlvValue = value != null ? new UIntType(value) : new NullType();
- writeAttribute(new WriteAttributesCallbackImpl(callback), START_UP_MODE_ATTRIBUTE_ID, tlvValue, timedWriteTimeoutMs);
- }
-
- public void subscribeStartUpModeAttribute(
- StartUpModeAttributeCallback callback, int minInterval, int maxInterval) {
- ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, START_UP_MODE_ATTRIBUTE_ID);
-
- subscribeAttribute(new ReportCallbackImpl(callback, path) {
- @Override
- public void onSuccess(byte[] tlv) {
- @Nullable Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv);
- callback.onSuccess(value);
- }
- }, START_UP_MODE_ATTRIBUTE_ID, minInterval, maxInterval);
- }
-
- public void readOnModeAttribute(
- OnModeAttributeCallback callback) {
- ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, ON_MODE_ATTRIBUTE_ID);
-
- readAttribute(new ReportCallbackImpl(callback, path) {
- @Override
- public void onSuccess(byte[] tlv) {
- @Nullable Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv);
- callback.onSuccess(value);
- }
- }, ON_MODE_ATTRIBUTE_ID, true);
- }
-
- public void writeOnModeAttribute(DefaultClusterCallback callback, Integer value) {
- writeOnModeAttribute(callback, value, 0);
- }
-
- public void writeOnModeAttribute(DefaultClusterCallback callback, Integer value, int timedWriteTimeoutMs) {
- BaseTLVType tlvValue = value != null ? new UIntType(value) : new NullType();
- writeAttribute(new WriteAttributesCallbackImpl(callback), ON_MODE_ATTRIBUTE_ID, tlvValue, timedWriteTimeoutMs);
- }
-
- public void subscribeOnModeAttribute(
- OnModeAttributeCallback callback, int minInterval, int maxInterval) {
- ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, ON_MODE_ATTRIBUTE_ID);
-
- subscribeAttribute(new ReportCallbackImpl(callback, path) {
- @Override
- public void onSuccess(byte[] tlv) {
- @Nullable Integer value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv);
- callback.onSuccess(value);
- }
- }, ON_MODE_ATTRIBUTE_ID, minInterval, maxInterval);
- }
-
public void readGeneratedCommandListAttribute(
GeneratedCommandListAttributeCallback callback) {
ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, GENERATED_COMMAND_LIST_ATTRIBUTE_ID);
diff --git a/src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java b/src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java
index 9ab44a7..a43df66 100644
--- a/src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java
+++ b/src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java
@@ -10227,8 +10227,6 @@
public enum Attribute {
SupportedModes(0L),
CurrentMode(1L),
- StartUpMode(2L),
- OnMode(3L),
GeneratedCommandList(65528L),
AcceptedCommandList(65529L),
EventList(65530L),
@@ -10349,8 +10347,6 @@
public enum Attribute {
SupportedModes(0L),
CurrentMode(1L),
- StartUpMode(2L),
- OnMode(3L),
GeneratedCommandList(65528L),
AcceptedCommandList(65529L),
EventList(65530L),
@@ -10471,8 +10467,6 @@
public enum Attribute {
SupportedModes(0L),
CurrentMode(1L),
- StartUpMode(2L),
- OnMode(3L),
GeneratedCommandList(65528L),
AcceptedCommandList(65529L),
EventList(65530L),
diff --git a/src/controller/java/generated/java/chip/devicecontroller/ClusterInfoMapping.java b/src/controller/java/generated/java/chip/devicecontroller/ClusterInfoMapping.java
index 6e89ac9..d0e8325 100644
--- a/src/controller/java/generated/java/chip/devicecontroller/ClusterInfoMapping.java
+++ b/src/controller/java/generated/java/chip/devicecontroller/ClusterInfoMapping.java
@@ -11742,48 +11742,6 @@
}
}
- public static class DelegatedEnergyEvseModeClusterStartUpModeAttributeCallback implements ChipClusters.EnergyEvseModeCluster.StartUpModeAttributeCallback, DelegatedClusterCallback {
- private ClusterCommandCallback callback;
- @Override
- public void setCallbackDelegate(ClusterCommandCallback callback) {
- this.callback = callback;
- }
-
- @Override
- public void onSuccess(@Nullable Integer value) {
- Map<CommandResponseInfo, Object> 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 DelegatedEnergyEvseModeClusterOnModeAttributeCallback implements ChipClusters.EnergyEvseModeCluster.OnModeAttributeCallback, DelegatedClusterCallback {
- private ClusterCommandCallback callback;
- @Override
- public void setCallbackDelegate(ClusterCommandCallback callback) {
- this.callback = callback;
- }
-
- @Override
- public void onSuccess(@Nullable Integer value) {
- Map<CommandResponseInfo, Object> 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 DelegatedEnergyEvseModeClusterGeneratedCommandListAttributeCallback implements ChipClusters.EnergyEvseModeCluster.GeneratedCommandListAttributeCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -11913,48 +11871,6 @@
}
}
- public static class DelegatedWaterHeaterModeClusterStartUpModeAttributeCallback implements ChipClusters.WaterHeaterModeCluster.StartUpModeAttributeCallback, DelegatedClusterCallback {
- private ClusterCommandCallback callback;
- @Override
- public void setCallbackDelegate(ClusterCommandCallback callback) {
- this.callback = callback;
- }
-
- @Override
- public void onSuccess(@Nullable Integer value) {
- Map<CommandResponseInfo, Object> 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 DelegatedWaterHeaterModeClusterOnModeAttributeCallback implements ChipClusters.WaterHeaterModeCluster.OnModeAttributeCallback, DelegatedClusterCallback {
- private ClusterCommandCallback callback;
- @Override
- public void setCallbackDelegate(ClusterCommandCallback callback) {
- this.callback = callback;
- }
-
- @Override
- public void onSuccess(@Nullable Integer value) {
- Map<CommandResponseInfo, Object> 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 DelegatedWaterHeaterModeClusterGeneratedCommandListAttributeCallback implements ChipClusters.WaterHeaterModeCluster.GeneratedCommandListAttributeCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
@@ -12084,48 +12000,6 @@
}
}
- public static class DelegatedDeviceEnergyManagementModeClusterStartUpModeAttributeCallback implements ChipClusters.DeviceEnergyManagementModeCluster.StartUpModeAttributeCallback, DelegatedClusterCallback {
- private ClusterCommandCallback callback;
- @Override
- public void setCallbackDelegate(ClusterCommandCallback callback) {
- this.callback = callback;
- }
-
- @Override
- public void onSuccess(@Nullable Integer value) {
- Map<CommandResponseInfo, Object> 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 DelegatedDeviceEnergyManagementModeClusterOnModeAttributeCallback implements ChipClusters.DeviceEnergyManagementModeCluster.OnModeAttributeCallback, DelegatedClusterCallback {
- private ClusterCommandCallback callback;
- @Override
- public void setCallbackDelegate(ClusterCommandCallback callback) {
- this.callback = callback;
- }
-
- @Override
- public void onSuccess(@Nullable Integer value) {
- Map<CommandResponseInfo, Object> 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 DelegatedDeviceEnergyManagementModeClusterGeneratedCommandListAttributeCallback implements ChipClusters.DeviceEnergyManagementModeCluster.GeneratedCommandListAttributeCallback, DelegatedClusterCallback {
private ClusterCommandCallback callback;
@Override
diff --git a/src/controller/java/generated/java/chip/devicecontroller/ClusterReadMapping.java b/src/controller/java/generated/java/chip/devicecontroller/ClusterReadMapping.java
index 616f9f2..9abbcd8 100644
--- a/src/controller/java/generated/java/chip/devicecontroller/ClusterReadMapping.java
+++ b/src/controller/java/generated/java/chip/devicecontroller/ClusterReadMapping.java
@@ -10236,28 +10236,6 @@
readEnergyEvseModeCurrentModeCommandParams
);
result.put("readCurrentModeAttribute", readEnergyEvseModeCurrentModeAttributeInteractionInfo);
- Map<String, CommandParameterInfo> readEnergyEvseModeStartUpModeCommandParams = new LinkedHashMap<String, CommandParameterInfo>();
- InteractionInfo readEnergyEvseModeStartUpModeAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.EnergyEvseModeCluster) cluster).readStartUpModeAttribute(
- (ChipClusters.EnergyEvseModeCluster.StartUpModeAttributeCallback) callback
- );
- },
- () -> new ClusterInfoMapping.DelegatedEnergyEvseModeClusterStartUpModeAttributeCallback(),
- readEnergyEvseModeStartUpModeCommandParams
- );
- result.put("readStartUpModeAttribute", readEnergyEvseModeStartUpModeAttributeInteractionInfo);
- Map<String, CommandParameterInfo> readEnergyEvseModeOnModeCommandParams = new LinkedHashMap<String, CommandParameterInfo>();
- InteractionInfo readEnergyEvseModeOnModeAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.EnergyEvseModeCluster) cluster).readOnModeAttribute(
- (ChipClusters.EnergyEvseModeCluster.OnModeAttributeCallback) callback
- );
- },
- () -> new ClusterInfoMapping.DelegatedEnergyEvseModeClusterOnModeAttributeCallback(),
- readEnergyEvseModeOnModeCommandParams
- );
- result.put("readOnModeAttribute", readEnergyEvseModeOnModeAttributeInteractionInfo);
Map<String, CommandParameterInfo> readEnergyEvseModeGeneratedCommandListCommandParams = new LinkedHashMap<String, CommandParameterInfo>();
InteractionInfo readEnergyEvseModeGeneratedCommandListAttributeInteractionInfo = new InteractionInfo(
(cluster, callback, commandArguments) -> {
@@ -10350,28 +10328,6 @@
readWaterHeaterModeCurrentModeCommandParams
);
result.put("readCurrentModeAttribute", readWaterHeaterModeCurrentModeAttributeInteractionInfo);
- Map<String, CommandParameterInfo> readWaterHeaterModeStartUpModeCommandParams = new LinkedHashMap<String, CommandParameterInfo>();
- InteractionInfo readWaterHeaterModeStartUpModeAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.WaterHeaterModeCluster) cluster).readStartUpModeAttribute(
- (ChipClusters.WaterHeaterModeCluster.StartUpModeAttributeCallback) callback
- );
- },
- () -> new ClusterInfoMapping.DelegatedWaterHeaterModeClusterStartUpModeAttributeCallback(),
- readWaterHeaterModeStartUpModeCommandParams
- );
- result.put("readStartUpModeAttribute", readWaterHeaterModeStartUpModeAttributeInteractionInfo);
- Map<String, CommandParameterInfo> readWaterHeaterModeOnModeCommandParams = new LinkedHashMap<String, CommandParameterInfo>();
- InteractionInfo readWaterHeaterModeOnModeAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.WaterHeaterModeCluster) cluster).readOnModeAttribute(
- (ChipClusters.WaterHeaterModeCluster.OnModeAttributeCallback) callback
- );
- },
- () -> new ClusterInfoMapping.DelegatedWaterHeaterModeClusterOnModeAttributeCallback(),
- readWaterHeaterModeOnModeCommandParams
- );
- result.put("readOnModeAttribute", readWaterHeaterModeOnModeAttributeInteractionInfo);
Map<String, CommandParameterInfo> readWaterHeaterModeGeneratedCommandListCommandParams = new LinkedHashMap<String, CommandParameterInfo>();
InteractionInfo readWaterHeaterModeGeneratedCommandListAttributeInteractionInfo = new InteractionInfo(
(cluster, callback, commandArguments) -> {
@@ -10464,28 +10420,6 @@
readDeviceEnergyManagementModeCurrentModeCommandParams
);
result.put("readCurrentModeAttribute", readDeviceEnergyManagementModeCurrentModeAttributeInteractionInfo);
- Map<String, CommandParameterInfo> readDeviceEnergyManagementModeStartUpModeCommandParams = new LinkedHashMap<String, CommandParameterInfo>();
- InteractionInfo readDeviceEnergyManagementModeStartUpModeAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.DeviceEnergyManagementModeCluster) cluster).readStartUpModeAttribute(
- (ChipClusters.DeviceEnergyManagementModeCluster.StartUpModeAttributeCallback) callback
- );
- },
- () -> new ClusterInfoMapping.DelegatedDeviceEnergyManagementModeClusterStartUpModeAttributeCallback(),
- readDeviceEnergyManagementModeStartUpModeCommandParams
- );
- result.put("readStartUpModeAttribute", readDeviceEnergyManagementModeStartUpModeAttributeInteractionInfo);
- Map<String, CommandParameterInfo> readDeviceEnergyManagementModeOnModeCommandParams = new LinkedHashMap<String, CommandParameterInfo>();
- InteractionInfo readDeviceEnergyManagementModeOnModeAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.DeviceEnergyManagementModeCluster) cluster).readOnModeAttribute(
- (ChipClusters.DeviceEnergyManagementModeCluster.OnModeAttributeCallback) callback
- );
- },
- () -> new ClusterInfoMapping.DelegatedDeviceEnergyManagementModeClusterOnModeAttributeCallback(),
- readDeviceEnergyManagementModeOnModeCommandParams
- );
- result.put("readOnModeAttribute", readDeviceEnergyManagementModeOnModeAttributeInteractionInfo);
Map<String, CommandParameterInfo> readDeviceEnergyManagementModeGeneratedCommandListCommandParams = new LinkedHashMap<String, CommandParameterInfo>();
InteractionInfo readDeviceEnergyManagementModeGeneratedCommandListAttributeInteractionInfo = 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 cfc3024..725fd0b 100644
--- a/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java
+++ b/src/controller/java/generated/java/chip/devicecontroller/ClusterWriteMapping.java
@@ -1205,142 +1205,10 @@
Map<String, InteractionInfo> writePowerTopologyInteractionInfo = new LinkedHashMap<>();
writeAttributeMap.put("powerTopology", writePowerTopologyInteractionInfo);
Map<String, InteractionInfo> writeEnergyEvseModeInteractionInfo = new LinkedHashMap<>();
- Map<String, CommandParameterInfo> writeEnergyEvseModeStartUpModeCommandParams = new LinkedHashMap<String, CommandParameterInfo>();
- CommandParameterInfo energyEvseModestartUpModeCommandParameterInfo =
- new CommandParameterInfo(
- "value",
- Integer.class,
- Integer.class
- );
- writeEnergyEvseModeStartUpModeCommandParams.put(
- "value",
- energyEvseModestartUpModeCommandParameterInfo
- );
- InteractionInfo writeEnergyEvseModeStartUpModeAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.EnergyEvseModeCluster) cluster).writeStartUpModeAttribute(
- (DefaultClusterCallback) callback,
- (Integer) commandArguments.get("value")
- );
- },
- () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(),
- writeEnergyEvseModeStartUpModeCommandParams
- );
- writeEnergyEvseModeInteractionInfo.put("writeStartUpModeAttribute", writeEnergyEvseModeStartUpModeAttributeInteractionInfo);
- Map<String, CommandParameterInfo> writeEnergyEvseModeOnModeCommandParams = new LinkedHashMap<String, CommandParameterInfo>();
- CommandParameterInfo energyEvseModeonModeCommandParameterInfo =
- new CommandParameterInfo(
- "value",
- Integer.class,
- Integer.class
- );
- writeEnergyEvseModeOnModeCommandParams.put(
- "value",
- energyEvseModeonModeCommandParameterInfo
- );
- InteractionInfo writeEnergyEvseModeOnModeAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.EnergyEvseModeCluster) cluster).writeOnModeAttribute(
- (DefaultClusterCallback) callback,
- (Integer) commandArguments.get("value")
- );
- },
- () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(),
- writeEnergyEvseModeOnModeCommandParams
- );
- writeEnergyEvseModeInteractionInfo.put("writeOnModeAttribute", writeEnergyEvseModeOnModeAttributeInteractionInfo);
writeAttributeMap.put("energyEvseMode", writeEnergyEvseModeInteractionInfo);
Map<String, InteractionInfo> writeWaterHeaterModeInteractionInfo = new LinkedHashMap<>();
- Map<String, CommandParameterInfo> writeWaterHeaterModeStartUpModeCommandParams = new LinkedHashMap<String, CommandParameterInfo>();
- CommandParameterInfo waterHeaterModestartUpModeCommandParameterInfo =
- new CommandParameterInfo(
- "value",
- Integer.class,
- Integer.class
- );
- writeWaterHeaterModeStartUpModeCommandParams.put(
- "value",
- waterHeaterModestartUpModeCommandParameterInfo
- );
- InteractionInfo writeWaterHeaterModeStartUpModeAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.WaterHeaterModeCluster) cluster).writeStartUpModeAttribute(
- (DefaultClusterCallback) callback,
- (Integer) commandArguments.get("value")
- );
- },
- () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(),
- writeWaterHeaterModeStartUpModeCommandParams
- );
- writeWaterHeaterModeInteractionInfo.put("writeStartUpModeAttribute", writeWaterHeaterModeStartUpModeAttributeInteractionInfo);
- Map<String, CommandParameterInfo> writeWaterHeaterModeOnModeCommandParams = new LinkedHashMap<String, CommandParameterInfo>();
- CommandParameterInfo waterHeaterModeonModeCommandParameterInfo =
- new CommandParameterInfo(
- "value",
- Integer.class,
- Integer.class
- );
- writeWaterHeaterModeOnModeCommandParams.put(
- "value",
- waterHeaterModeonModeCommandParameterInfo
- );
- InteractionInfo writeWaterHeaterModeOnModeAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.WaterHeaterModeCluster) cluster).writeOnModeAttribute(
- (DefaultClusterCallback) callback,
- (Integer) commandArguments.get("value")
- );
- },
- () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(),
- writeWaterHeaterModeOnModeCommandParams
- );
- writeWaterHeaterModeInteractionInfo.put("writeOnModeAttribute", writeWaterHeaterModeOnModeAttributeInteractionInfo);
writeAttributeMap.put("waterHeaterMode", writeWaterHeaterModeInteractionInfo);
Map<String, InteractionInfo> writeDeviceEnergyManagementModeInteractionInfo = new LinkedHashMap<>();
- Map<String, CommandParameterInfo> writeDeviceEnergyManagementModeStartUpModeCommandParams = new LinkedHashMap<String, CommandParameterInfo>();
- CommandParameterInfo deviceEnergyManagementModestartUpModeCommandParameterInfo =
- new CommandParameterInfo(
- "value",
- Integer.class,
- Integer.class
- );
- writeDeviceEnergyManagementModeStartUpModeCommandParams.put(
- "value",
- deviceEnergyManagementModestartUpModeCommandParameterInfo
- );
- InteractionInfo writeDeviceEnergyManagementModeStartUpModeAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.DeviceEnergyManagementModeCluster) cluster).writeStartUpModeAttribute(
- (DefaultClusterCallback) callback,
- (Integer) commandArguments.get("value")
- );
- },
- () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(),
- writeDeviceEnergyManagementModeStartUpModeCommandParams
- );
- writeDeviceEnergyManagementModeInteractionInfo.put("writeStartUpModeAttribute", writeDeviceEnergyManagementModeStartUpModeAttributeInteractionInfo);
- Map<String, CommandParameterInfo> writeDeviceEnergyManagementModeOnModeCommandParams = new LinkedHashMap<String, CommandParameterInfo>();
- CommandParameterInfo deviceEnergyManagementModeonModeCommandParameterInfo =
- new CommandParameterInfo(
- "value",
- Integer.class,
- Integer.class
- );
- writeDeviceEnergyManagementModeOnModeCommandParams.put(
- "value",
- deviceEnergyManagementModeonModeCommandParameterInfo
- );
- InteractionInfo writeDeviceEnergyManagementModeOnModeAttributeInteractionInfo = new InteractionInfo(
- (cluster, callback, commandArguments) -> {
- ((ChipClusters.DeviceEnergyManagementModeCluster) cluster).writeOnModeAttribute(
- (DefaultClusterCallback) callback,
- (Integer) commandArguments.get("value")
- );
- },
- () -> new ClusterInfoMapping.DelegatedDefaultClusterCallback(),
- writeDeviceEnergyManagementModeOnModeCommandParams
- );
- writeDeviceEnergyManagementModeInteractionInfo.put("writeOnModeAttribute", writeDeviceEnergyManagementModeOnModeAttributeInteractionInfo);
writeAttributeMap.put("deviceEnergyManagementMode", writeDeviceEnergyManagementModeInteractionInfo);
Map<String, InteractionInfo> writeDoorLockInteractionInfo = new LinkedHashMap<>();
Map<String, CommandParameterInfo> writeDoorLockDoorOpenEventsCommandParams = new LinkedHashMap<String, CommandParameterInfo>();
diff --git a/src/controller/java/generated/java/matter/controller/cluster/clusters/DeviceEnergyManagementModeCluster.kt b/src/controller/java/generated/java/matter/controller/cluster/clusters/DeviceEnergyManagementModeCluster.kt
index 657941c..95ccc5a 100644
--- a/src/controller/java/generated/java/matter/controller/cluster/clusters/DeviceEnergyManagementModeCluster.kt
+++ b/src/controller/java/generated/java/matter/controller/cluster/clusters/DeviceEnergyManagementModeCluster.kt
@@ -32,9 +32,6 @@
import matter.controller.UByteSubscriptionState
import matter.controller.UIntSubscriptionState
import matter.controller.UShortSubscriptionState
-import matter.controller.WriteRequest
-import matter.controller.WriteRequests
-import matter.controller.WriteResponse
import matter.controller.cluster.structs.*
import matter.controller.model.AttributePath
import matter.controller.model.CommandPath
@@ -60,26 +57,6 @@
object SubscriptionEstablished : SupportedModesAttributeSubscriptionState()
}
- class StartUpModeAttribute(val value: UByte?)
-
- sealed class StartUpModeAttributeSubscriptionState {
- data class Success(val value: UByte?) : StartUpModeAttributeSubscriptionState()
-
- data class Error(val exception: Exception) : StartUpModeAttributeSubscriptionState()
-
- object SubscriptionEstablished : StartUpModeAttributeSubscriptionState()
- }
-
- class OnModeAttribute(val value: UByte?)
-
- sealed class OnModeAttributeSubscriptionState {
- data class Success(val value: UByte?) : OnModeAttributeSubscriptionState()
-
- data class Error(val exception: Exception) : OnModeAttributeSubscriptionState()
-
- object SubscriptionEstablished : OnModeAttributeSubscriptionState()
- }
-
class GeneratedCommandListAttribute(val value: List<UInt>)
sealed class GeneratedCommandListAttributeSubscriptionState {
@@ -364,288 +341,6 @@
}
}
- suspend fun readStartUpModeAttribute(): StartUpModeAttribute {
- 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<ReadData.Attribute>().firstOrNull {
- it.path.attributeId == ATTRIBUTE_ID
- }
-
- requireNotNull(attributeData) { "Startupmode attribute not found in response" }
-
- // Decode the TLV data into the appropriate type
- val tlvReader = TlvReader(attributeData.data)
- val decodedValue: UByte? =
- if (!tlvReader.isNull()) {
- if (tlvReader.isNextTag(AnonymousTag)) {
- tlvReader.getUByte(AnonymousTag)
- } else {
- null
- }
- } else {
- tlvReader.getNull(AnonymousTag)
- null
- }
-
- return StartUpModeAttribute(decodedValue)
- }
-
- suspend fun writeStartUpModeAttribute(value: UByte, timedWriteTimeout: Duration? = null) {
- val ATTRIBUTE_ID: UInt = 2u
-
- val tlvWriter = TlvWriter()
- tlvWriter.put(AnonymousTag, value)
-
- val writeRequests: WriteRequests =
- WriteRequests(
- requests =
- listOf(
- WriteRequest(
- attributePath =
- AttributePath(endpointId, clusterId = CLUSTER_ID, attributeId = ATTRIBUTE_ID),
- tlvPayload = tlvWriter.getEncoded(),
- )
- ),
- timedRequest = timedWriteTimeout,
- )
-
- val response: WriteResponse = controller.write(writeRequests)
-
- when (response) {
- is WriteResponse.Success -> {
- logger.log(Level.FINE, "Write command succeeded")
- }
- is WriteResponse.PartialWriteFailure -> {
- val aggregatedErrorMessage =
- response.failures.joinToString("\n") { failure ->
- "Error at ${failure.attributePath}: ${failure.ex.message}"
- }
-
- response.failures.forEach { failure ->
- logger.log(Level.WARNING, "Error at ${failure.attributePath}: ${failure.ex.message}")
- }
-
- throw IllegalStateException("Write command failed with errors: \n$aggregatedErrorMessage")
- }
- }
- }
-
- suspend fun subscribeStartUpModeAttribute(
- minInterval: Int,
- maxInterval: Int,
- ): Flow<StartUpModeAttributeSubscriptionState> {
- val ATTRIBUTE_ID: UInt = 2u
- val attributePaths =
- listOf(
- AttributePath(endpointId = endpointId, clusterId = CLUSTER_ID, attributeId = ATTRIBUTE_ID)
- )
-
- val subscribeRequest: SubscribeRequest =
- SubscribeRequest(
- eventPaths = emptyList(),
- attributePaths = attributePaths,
- minInterval = Duration.ofSeconds(minInterval.toLong()),
- maxInterval = Duration.ofSeconds(maxInterval.toLong()),
- )
-
- return controller.subscribe(subscribeRequest).transform { subscriptionState ->
- when (subscriptionState) {
- is SubscriptionState.SubscriptionErrorNotification -> {
- emit(
- StartUpModeAttributeSubscriptionState.Error(
- Exception(
- "Subscription terminated with error code: ${subscriptionState.terminationCause}"
- )
- )
- )
- }
- is SubscriptionState.NodeStateUpdate -> {
- val attributeData =
- subscriptionState.updateState.successes
- .filterIsInstance<ReadData.Attribute>()
- .firstOrNull { it.path.attributeId == ATTRIBUTE_ID }
-
- requireNotNull(attributeData) { "Startupmode attribute not found in Node State update" }
-
- // Decode the TLV data into the appropriate type
- val tlvReader = TlvReader(attributeData.data)
- val decodedValue: UByte? =
- if (!tlvReader.isNull()) {
- if (tlvReader.isNextTag(AnonymousTag)) {
- tlvReader.getUByte(AnonymousTag)
- } else {
- null
- }
- } else {
- tlvReader.getNull(AnonymousTag)
- null
- }
-
- decodedValue?.let { emit(StartUpModeAttributeSubscriptionState.Success(it)) }
- }
- SubscriptionState.SubscriptionEstablished -> {
- emit(StartUpModeAttributeSubscriptionState.SubscriptionEstablished)
- }
- }
- }
- }
-
- suspend fun readOnModeAttribute(): OnModeAttribute {
- 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<ReadData.Attribute>().firstOrNull {
- it.path.attributeId == ATTRIBUTE_ID
- }
-
- requireNotNull(attributeData) { "Onmode attribute not found in response" }
-
- // Decode the TLV data into the appropriate type
- val tlvReader = TlvReader(attributeData.data)
- val decodedValue: UByte? =
- if (!tlvReader.isNull()) {
- if (tlvReader.isNextTag(AnonymousTag)) {
- tlvReader.getUByte(AnonymousTag)
- } else {
- null
- }
- } else {
- tlvReader.getNull(AnonymousTag)
- null
- }
-
- return OnModeAttribute(decodedValue)
- }
-
- suspend fun writeOnModeAttribute(value: UByte, timedWriteTimeout: Duration? = null) {
- val ATTRIBUTE_ID: UInt = 3u
-
- val tlvWriter = TlvWriter()
- tlvWriter.put(AnonymousTag, value)
-
- val writeRequests: WriteRequests =
- WriteRequests(
- requests =
- listOf(
- WriteRequest(
- attributePath =
- AttributePath(endpointId, clusterId = CLUSTER_ID, attributeId = ATTRIBUTE_ID),
- tlvPayload = tlvWriter.getEncoded(),
- )
- ),
- timedRequest = timedWriteTimeout,
- )
-
- val response: WriteResponse = controller.write(writeRequests)
-
- when (response) {
- is WriteResponse.Success -> {
- logger.log(Level.FINE, "Write command succeeded")
- }
- is WriteResponse.PartialWriteFailure -> {
- val aggregatedErrorMessage =
- response.failures.joinToString("\n") { failure ->
- "Error at ${failure.attributePath}: ${failure.ex.message}"
- }
-
- response.failures.forEach { failure ->
- logger.log(Level.WARNING, "Error at ${failure.attributePath}: ${failure.ex.message}")
- }
-
- throw IllegalStateException("Write command failed with errors: \n$aggregatedErrorMessage")
- }
- }
- }
-
- suspend fun subscribeOnModeAttribute(
- minInterval: Int,
- maxInterval: Int,
- ): Flow<OnModeAttributeSubscriptionState> {
- val ATTRIBUTE_ID: UInt = 3u
- val attributePaths =
- listOf(
- AttributePath(endpointId = endpointId, clusterId = CLUSTER_ID, attributeId = ATTRIBUTE_ID)
- )
-
- val subscribeRequest: SubscribeRequest =
- SubscribeRequest(
- eventPaths = emptyList(),
- attributePaths = attributePaths,
- minInterval = Duration.ofSeconds(minInterval.toLong()),
- maxInterval = Duration.ofSeconds(maxInterval.toLong()),
- )
-
- return controller.subscribe(subscribeRequest).transform { subscriptionState ->
- when (subscriptionState) {
- is SubscriptionState.SubscriptionErrorNotification -> {
- emit(
- OnModeAttributeSubscriptionState.Error(
- Exception(
- "Subscription terminated with error code: ${subscriptionState.terminationCause}"
- )
- )
- )
- }
- is SubscriptionState.NodeStateUpdate -> {
- val attributeData =
- subscriptionState.updateState.successes
- .filterIsInstance<ReadData.Attribute>()
- .firstOrNull { it.path.attributeId == ATTRIBUTE_ID }
-
- requireNotNull(attributeData) { "Onmode attribute not found in Node State update" }
-
- // Decode the TLV data into the appropriate type
- val tlvReader = TlvReader(attributeData.data)
- val decodedValue: UByte? =
- if (!tlvReader.isNull()) {
- if (tlvReader.isNextTag(AnonymousTag)) {
- tlvReader.getUByte(AnonymousTag)
- } else {
- null
- }
- } else {
- tlvReader.getNull(AnonymousTag)
- null
- }
-
- decodedValue?.let { emit(OnModeAttributeSubscriptionState.Success(it)) }
- }
- SubscriptionState.SubscriptionEstablished -> {
- emit(OnModeAttributeSubscriptionState.SubscriptionEstablished)
- }
- }
- }
- }
-
suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
val ATTRIBUTE_ID: UInt = 65528u
diff --git a/src/controller/java/generated/java/matter/controller/cluster/clusters/EnergyEvseModeCluster.kt b/src/controller/java/generated/java/matter/controller/cluster/clusters/EnergyEvseModeCluster.kt
index a854ec8..00baf3c 100644
--- a/src/controller/java/generated/java/matter/controller/cluster/clusters/EnergyEvseModeCluster.kt
+++ b/src/controller/java/generated/java/matter/controller/cluster/clusters/EnergyEvseModeCluster.kt
@@ -32,9 +32,6 @@
import matter.controller.UByteSubscriptionState
import matter.controller.UIntSubscriptionState
import matter.controller.UShortSubscriptionState
-import matter.controller.WriteRequest
-import matter.controller.WriteRequests
-import matter.controller.WriteResponse
import matter.controller.cluster.structs.*
import matter.controller.model.AttributePath
import matter.controller.model.CommandPath
@@ -60,26 +57,6 @@
object SubscriptionEstablished : SupportedModesAttributeSubscriptionState()
}
- class StartUpModeAttribute(val value: UByte?)
-
- sealed class StartUpModeAttributeSubscriptionState {
- data class Success(val value: UByte?) : StartUpModeAttributeSubscriptionState()
-
- data class Error(val exception: Exception) : StartUpModeAttributeSubscriptionState()
-
- object SubscriptionEstablished : StartUpModeAttributeSubscriptionState()
- }
-
- class OnModeAttribute(val value: UByte?)
-
- sealed class OnModeAttributeSubscriptionState {
- data class Success(val value: UByte?) : OnModeAttributeSubscriptionState()
-
- data class Error(val exception: Exception) : OnModeAttributeSubscriptionState()
-
- object SubscriptionEstablished : OnModeAttributeSubscriptionState()
- }
-
class GeneratedCommandListAttribute(val value: List<UInt>)
sealed class GeneratedCommandListAttributeSubscriptionState {
@@ -362,288 +339,6 @@
}
}
- suspend fun readStartUpModeAttribute(): StartUpModeAttribute {
- 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<ReadData.Attribute>().firstOrNull {
- it.path.attributeId == ATTRIBUTE_ID
- }
-
- requireNotNull(attributeData) { "Startupmode attribute not found in response" }
-
- // Decode the TLV data into the appropriate type
- val tlvReader = TlvReader(attributeData.data)
- val decodedValue: UByte? =
- if (!tlvReader.isNull()) {
- if (tlvReader.isNextTag(AnonymousTag)) {
- tlvReader.getUByte(AnonymousTag)
- } else {
- null
- }
- } else {
- tlvReader.getNull(AnonymousTag)
- null
- }
-
- return StartUpModeAttribute(decodedValue)
- }
-
- suspend fun writeStartUpModeAttribute(value: UByte, timedWriteTimeout: Duration? = null) {
- val ATTRIBUTE_ID: UInt = 2u
-
- val tlvWriter = TlvWriter()
- tlvWriter.put(AnonymousTag, value)
-
- val writeRequests: WriteRequests =
- WriteRequests(
- requests =
- listOf(
- WriteRequest(
- attributePath =
- AttributePath(endpointId, clusterId = CLUSTER_ID, attributeId = ATTRIBUTE_ID),
- tlvPayload = tlvWriter.getEncoded(),
- )
- ),
- timedRequest = timedWriteTimeout,
- )
-
- val response: WriteResponse = controller.write(writeRequests)
-
- when (response) {
- is WriteResponse.Success -> {
- logger.log(Level.FINE, "Write command succeeded")
- }
- is WriteResponse.PartialWriteFailure -> {
- val aggregatedErrorMessage =
- response.failures.joinToString("\n") { failure ->
- "Error at ${failure.attributePath}: ${failure.ex.message}"
- }
-
- response.failures.forEach { failure ->
- logger.log(Level.WARNING, "Error at ${failure.attributePath}: ${failure.ex.message}")
- }
-
- throw IllegalStateException("Write command failed with errors: \n$aggregatedErrorMessage")
- }
- }
- }
-
- suspend fun subscribeStartUpModeAttribute(
- minInterval: Int,
- maxInterval: Int,
- ): Flow<StartUpModeAttributeSubscriptionState> {
- val ATTRIBUTE_ID: UInt = 2u
- val attributePaths =
- listOf(
- AttributePath(endpointId = endpointId, clusterId = CLUSTER_ID, attributeId = ATTRIBUTE_ID)
- )
-
- val subscribeRequest: SubscribeRequest =
- SubscribeRequest(
- eventPaths = emptyList(),
- attributePaths = attributePaths,
- minInterval = Duration.ofSeconds(minInterval.toLong()),
- maxInterval = Duration.ofSeconds(maxInterval.toLong()),
- )
-
- return controller.subscribe(subscribeRequest).transform { subscriptionState ->
- when (subscriptionState) {
- is SubscriptionState.SubscriptionErrorNotification -> {
- emit(
- StartUpModeAttributeSubscriptionState.Error(
- Exception(
- "Subscription terminated with error code: ${subscriptionState.terminationCause}"
- )
- )
- )
- }
- is SubscriptionState.NodeStateUpdate -> {
- val attributeData =
- subscriptionState.updateState.successes
- .filterIsInstance<ReadData.Attribute>()
- .firstOrNull { it.path.attributeId == ATTRIBUTE_ID }
-
- requireNotNull(attributeData) { "Startupmode attribute not found in Node State update" }
-
- // Decode the TLV data into the appropriate type
- val tlvReader = TlvReader(attributeData.data)
- val decodedValue: UByte? =
- if (!tlvReader.isNull()) {
- if (tlvReader.isNextTag(AnonymousTag)) {
- tlvReader.getUByte(AnonymousTag)
- } else {
- null
- }
- } else {
- tlvReader.getNull(AnonymousTag)
- null
- }
-
- decodedValue?.let { emit(StartUpModeAttributeSubscriptionState.Success(it)) }
- }
- SubscriptionState.SubscriptionEstablished -> {
- emit(StartUpModeAttributeSubscriptionState.SubscriptionEstablished)
- }
- }
- }
- }
-
- suspend fun readOnModeAttribute(): OnModeAttribute {
- 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<ReadData.Attribute>().firstOrNull {
- it.path.attributeId == ATTRIBUTE_ID
- }
-
- requireNotNull(attributeData) { "Onmode attribute not found in response" }
-
- // Decode the TLV data into the appropriate type
- val tlvReader = TlvReader(attributeData.data)
- val decodedValue: UByte? =
- if (!tlvReader.isNull()) {
- if (tlvReader.isNextTag(AnonymousTag)) {
- tlvReader.getUByte(AnonymousTag)
- } else {
- null
- }
- } else {
- tlvReader.getNull(AnonymousTag)
- null
- }
-
- return OnModeAttribute(decodedValue)
- }
-
- suspend fun writeOnModeAttribute(value: UByte, timedWriteTimeout: Duration? = null) {
- val ATTRIBUTE_ID: UInt = 3u
-
- val tlvWriter = TlvWriter()
- tlvWriter.put(AnonymousTag, value)
-
- val writeRequests: WriteRequests =
- WriteRequests(
- requests =
- listOf(
- WriteRequest(
- attributePath =
- AttributePath(endpointId, clusterId = CLUSTER_ID, attributeId = ATTRIBUTE_ID),
- tlvPayload = tlvWriter.getEncoded(),
- )
- ),
- timedRequest = timedWriteTimeout,
- )
-
- val response: WriteResponse = controller.write(writeRequests)
-
- when (response) {
- is WriteResponse.Success -> {
- logger.log(Level.FINE, "Write command succeeded")
- }
- is WriteResponse.PartialWriteFailure -> {
- val aggregatedErrorMessage =
- response.failures.joinToString("\n") { failure ->
- "Error at ${failure.attributePath}: ${failure.ex.message}"
- }
-
- response.failures.forEach { failure ->
- logger.log(Level.WARNING, "Error at ${failure.attributePath}: ${failure.ex.message}")
- }
-
- throw IllegalStateException("Write command failed with errors: \n$aggregatedErrorMessage")
- }
- }
- }
-
- suspend fun subscribeOnModeAttribute(
- minInterval: Int,
- maxInterval: Int,
- ): Flow<OnModeAttributeSubscriptionState> {
- val ATTRIBUTE_ID: UInt = 3u
- val attributePaths =
- listOf(
- AttributePath(endpointId = endpointId, clusterId = CLUSTER_ID, attributeId = ATTRIBUTE_ID)
- )
-
- val subscribeRequest: SubscribeRequest =
- SubscribeRequest(
- eventPaths = emptyList(),
- attributePaths = attributePaths,
- minInterval = Duration.ofSeconds(minInterval.toLong()),
- maxInterval = Duration.ofSeconds(maxInterval.toLong()),
- )
-
- return controller.subscribe(subscribeRequest).transform { subscriptionState ->
- when (subscriptionState) {
- is SubscriptionState.SubscriptionErrorNotification -> {
- emit(
- OnModeAttributeSubscriptionState.Error(
- Exception(
- "Subscription terminated with error code: ${subscriptionState.terminationCause}"
- )
- )
- )
- }
- is SubscriptionState.NodeStateUpdate -> {
- val attributeData =
- subscriptionState.updateState.successes
- .filterIsInstance<ReadData.Attribute>()
- .firstOrNull { it.path.attributeId == ATTRIBUTE_ID }
-
- requireNotNull(attributeData) { "Onmode attribute not found in Node State update" }
-
- // Decode the TLV data into the appropriate type
- val tlvReader = TlvReader(attributeData.data)
- val decodedValue: UByte? =
- if (!tlvReader.isNull()) {
- if (tlvReader.isNextTag(AnonymousTag)) {
- tlvReader.getUByte(AnonymousTag)
- } else {
- null
- }
- } else {
- tlvReader.getNull(AnonymousTag)
- null
- }
-
- decodedValue?.let { emit(OnModeAttributeSubscriptionState.Success(it)) }
- }
- SubscriptionState.SubscriptionEstablished -> {
- emit(OnModeAttributeSubscriptionState.SubscriptionEstablished)
- }
- }
- }
- }
-
suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
val ATTRIBUTE_ID: UInt = 65528u
diff --git a/src/controller/java/generated/java/matter/controller/cluster/clusters/WaterHeaterModeCluster.kt b/src/controller/java/generated/java/matter/controller/cluster/clusters/WaterHeaterModeCluster.kt
index 2735264..d2bc509 100644
--- a/src/controller/java/generated/java/matter/controller/cluster/clusters/WaterHeaterModeCluster.kt
+++ b/src/controller/java/generated/java/matter/controller/cluster/clusters/WaterHeaterModeCluster.kt
@@ -32,9 +32,6 @@
import matter.controller.UByteSubscriptionState
import matter.controller.UIntSubscriptionState
import matter.controller.UShortSubscriptionState
-import matter.controller.WriteRequest
-import matter.controller.WriteRequests
-import matter.controller.WriteResponse
import matter.controller.cluster.structs.*
import matter.controller.model.AttributePath
import matter.controller.model.CommandPath
@@ -60,26 +57,6 @@
object SubscriptionEstablished : SupportedModesAttributeSubscriptionState()
}
- class StartUpModeAttribute(val value: UByte?)
-
- sealed class StartUpModeAttributeSubscriptionState {
- data class Success(val value: UByte?) : StartUpModeAttributeSubscriptionState()
-
- data class Error(val exception: Exception) : StartUpModeAttributeSubscriptionState()
-
- object SubscriptionEstablished : StartUpModeAttributeSubscriptionState()
- }
-
- class OnModeAttribute(val value: UByte?)
-
- sealed class OnModeAttributeSubscriptionState {
- data class Success(val value: UByte?) : OnModeAttributeSubscriptionState()
-
- data class Error(val exception: Exception) : OnModeAttributeSubscriptionState()
-
- object SubscriptionEstablished : OnModeAttributeSubscriptionState()
- }
-
class GeneratedCommandListAttribute(val value: List<UInt>)
sealed class GeneratedCommandListAttributeSubscriptionState {
@@ -362,288 +339,6 @@
}
}
- suspend fun readStartUpModeAttribute(): StartUpModeAttribute {
- 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<ReadData.Attribute>().firstOrNull {
- it.path.attributeId == ATTRIBUTE_ID
- }
-
- requireNotNull(attributeData) { "Startupmode attribute not found in response" }
-
- // Decode the TLV data into the appropriate type
- val tlvReader = TlvReader(attributeData.data)
- val decodedValue: UByte? =
- if (!tlvReader.isNull()) {
- if (tlvReader.isNextTag(AnonymousTag)) {
- tlvReader.getUByte(AnonymousTag)
- } else {
- null
- }
- } else {
- tlvReader.getNull(AnonymousTag)
- null
- }
-
- return StartUpModeAttribute(decodedValue)
- }
-
- suspend fun writeStartUpModeAttribute(value: UByte, timedWriteTimeout: Duration? = null) {
- val ATTRIBUTE_ID: UInt = 2u
-
- val tlvWriter = TlvWriter()
- tlvWriter.put(AnonymousTag, value)
-
- val writeRequests: WriteRequests =
- WriteRequests(
- requests =
- listOf(
- WriteRequest(
- attributePath =
- AttributePath(endpointId, clusterId = CLUSTER_ID, attributeId = ATTRIBUTE_ID),
- tlvPayload = tlvWriter.getEncoded(),
- )
- ),
- timedRequest = timedWriteTimeout,
- )
-
- val response: WriteResponse = controller.write(writeRequests)
-
- when (response) {
- is WriteResponse.Success -> {
- logger.log(Level.FINE, "Write command succeeded")
- }
- is WriteResponse.PartialWriteFailure -> {
- val aggregatedErrorMessage =
- response.failures.joinToString("\n") { failure ->
- "Error at ${failure.attributePath}: ${failure.ex.message}"
- }
-
- response.failures.forEach { failure ->
- logger.log(Level.WARNING, "Error at ${failure.attributePath}: ${failure.ex.message}")
- }
-
- throw IllegalStateException("Write command failed with errors: \n$aggregatedErrorMessage")
- }
- }
- }
-
- suspend fun subscribeStartUpModeAttribute(
- minInterval: Int,
- maxInterval: Int,
- ): Flow<StartUpModeAttributeSubscriptionState> {
- val ATTRIBUTE_ID: UInt = 2u
- val attributePaths =
- listOf(
- AttributePath(endpointId = endpointId, clusterId = CLUSTER_ID, attributeId = ATTRIBUTE_ID)
- )
-
- val subscribeRequest: SubscribeRequest =
- SubscribeRequest(
- eventPaths = emptyList(),
- attributePaths = attributePaths,
- minInterval = Duration.ofSeconds(minInterval.toLong()),
- maxInterval = Duration.ofSeconds(maxInterval.toLong()),
- )
-
- return controller.subscribe(subscribeRequest).transform { subscriptionState ->
- when (subscriptionState) {
- is SubscriptionState.SubscriptionErrorNotification -> {
- emit(
- StartUpModeAttributeSubscriptionState.Error(
- Exception(
- "Subscription terminated with error code: ${subscriptionState.terminationCause}"
- )
- )
- )
- }
- is SubscriptionState.NodeStateUpdate -> {
- val attributeData =
- subscriptionState.updateState.successes
- .filterIsInstance<ReadData.Attribute>()
- .firstOrNull { it.path.attributeId == ATTRIBUTE_ID }
-
- requireNotNull(attributeData) { "Startupmode attribute not found in Node State update" }
-
- // Decode the TLV data into the appropriate type
- val tlvReader = TlvReader(attributeData.data)
- val decodedValue: UByte? =
- if (!tlvReader.isNull()) {
- if (tlvReader.isNextTag(AnonymousTag)) {
- tlvReader.getUByte(AnonymousTag)
- } else {
- null
- }
- } else {
- tlvReader.getNull(AnonymousTag)
- null
- }
-
- decodedValue?.let { emit(StartUpModeAttributeSubscriptionState.Success(it)) }
- }
- SubscriptionState.SubscriptionEstablished -> {
- emit(StartUpModeAttributeSubscriptionState.SubscriptionEstablished)
- }
- }
- }
- }
-
- suspend fun readOnModeAttribute(): OnModeAttribute {
- 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<ReadData.Attribute>().firstOrNull {
- it.path.attributeId == ATTRIBUTE_ID
- }
-
- requireNotNull(attributeData) { "Onmode attribute not found in response" }
-
- // Decode the TLV data into the appropriate type
- val tlvReader = TlvReader(attributeData.data)
- val decodedValue: UByte? =
- if (!tlvReader.isNull()) {
- if (tlvReader.isNextTag(AnonymousTag)) {
- tlvReader.getUByte(AnonymousTag)
- } else {
- null
- }
- } else {
- tlvReader.getNull(AnonymousTag)
- null
- }
-
- return OnModeAttribute(decodedValue)
- }
-
- suspend fun writeOnModeAttribute(value: UByte, timedWriteTimeout: Duration? = null) {
- val ATTRIBUTE_ID: UInt = 3u
-
- val tlvWriter = TlvWriter()
- tlvWriter.put(AnonymousTag, value)
-
- val writeRequests: WriteRequests =
- WriteRequests(
- requests =
- listOf(
- WriteRequest(
- attributePath =
- AttributePath(endpointId, clusterId = CLUSTER_ID, attributeId = ATTRIBUTE_ID),
- tlvPayload = tlvWriter.getEncoded(),
- )
- ),
- timedRequest = timedWriteTimeout,
- )
-
- val response: WriteResponse = controller.write(writeRequests)
-
- when (response) {
- is WriteResponse.Success -> {
- logger.log(Level.FINE, "Write command succeeded")
- }
- is WriteResponse.PartialWriteFailure -> {
- val aggregatedErrorMessage =
- response.failures.joinToString("\n") { failure ->
- "Error at ${failure.attributePath}: ${failure.ex.message}"
- }
-
- response.failures.forEach { failure ->
- logger.log(Level.WARNING, "Error at ${failure.attributePath}: ${failure.ex.message}")
- }
-
- throw IllegalStateException("Write command failed with errors: \n$aggregatedErrorMessage")
- }
- }
- }
-
- suspend fun subscribeOnModeAttribute(
- minInterval: Int,
- maxInterval: Int,
- ): Flow<OnModeAttributeSubscriptionState> {
- val ATTRIBUTE_ID: UInt = 3u
- val attributePaths =
- listOf(
- AttributePath(endpointId = endpointId, clusterId = CLUSTER_ID, attributeId = ATTRIBUTE_ID)
- )
-
- val subscribeRequest: SubscribeRequest =
- SubscribeRequest(
- eventPaths = emptyList(),
- attributePaths = attributePaths,
- minInterval = Duration.ofSeconds(minInterval.toLong()),
- maxInterval = Duration.ofSeconds(maxInterval.toLong()),
- )
-
- return controller.subscribe(subscribeRequest).transform { subscriptionState ->
- when (subscriptionState) {
- is SubscriptionState.SubscriptionErrorNotification -> {
- emit(
- OnModeAttributeSubscriptionState.Error(
- Exception(
- "Subscription terminated with error code: ${subscriptionState.terminationCause}"
- )
- )
- )
- }
- is SubscriptionState.NodeStateUpdate -> {
- val attributeData =
- subscriptionState.updateState.successes
- .filterIsInstance<ReadData.Attribute>()
- .firstOrNull { it.path.attributeId == ATTRIBUTE_ID }
-
- requireNotNull(attributeData) { "Onmode attribute not found in Node State update" }
-
- // Decode the TLV data into the appropriate type
- val tlvReader = TlvReader(attributeData.data)
- val decodedValue: UByte? =
- if (!tlvReader.isNull()) {
- if (tlvReader.isNextTag(AnonymousTag)) {
- tlvReader.getUByte(AnonymousTag)
- } else {
- null
- }
- } else {
- tlvReader.getNull(AnonymousTag)
- null
- }
-
- decodedValue?.let { emit(OnModeAttributeSubscriptionState.Success(it)) }
- }
- SubscriptionState.SubscriptionEstablished -> {
- emit(OnModeAttributeSubscriptionState.SubscriptionEstablished)
- }
- }
- }
- }
-
suspend fun readGeneratedCommandListAttribute(): GeneratedCommandListAttribute {
val ATTRIBUTE_ID: UInt = 65528u
diff --git a/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp b/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp
index 905347e..972cc32 100644
--- a/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp
+++ b/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp
@@ -25877,52 +25877,6 @@
value);
return value;
}
- case Attributes::StartUpMode::Id: {
- using TypeInfo = Attributes::StartUpMode::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<jint>(cppValue.Value());
- chip::JniReferences::GetInstance().CreateBoxedObject<jint>(valueClassName.c_str(), valueCtorSignature.c_str(),
- jnivalue, value);
- }
- return value;
- }
- case Attributes::OnMode::Id: {
- using TypeInfo = Attributes::OnMode::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<jint>(cppValue.Value());
- chip::JniReferences::GetInstance().CreateBoxedObject<jint>(valueClassName.c_str(), valueCtorSignature.c_str(),
- jnivalue, value);
- }
- return value;
- }
case Attributes::GeneratedCommandList::Id: {
using TypeInfo = Attributes::GeneratedCommandList::TypeInfo;
TypeInfo::DecodableType cppValue;
@@ -26194,52 +26148,6 @@
value);
return value;
}
- case Attributes::StartUpMode::Id: {
- using TypeInfo = Attributes::StartUpMode::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<jint>(cppValue.Value());
- chip::JniReferences::GetInstance().CreateBoxedObject<jint>(valueClassName.c_str(), valueCtorSignature.c_str(),
- jnivalue, value);
- }
- return value;
- }
- case Attributes::OnMode::Id: {
- using TypeInfo = Attributes::OnMode::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<jint>(cppValue.Value());
- chip::JniReferences::GetInstance().CreateBoxedObject<jint>(valueClassName.c_str(), valueCtorSignature.c_str(),
- jnivalue, value);
- }
- return value;
- }
case Attributes::GeneratedCommandList::Id: {
using TypeInfo = Attributes::GeneratedCommandList::TypeInfo;
TypeInfo::DecodableType cppValue;
@@ -26513,52 +26421,6 @@
value);
return value;
}
- case Attributes::StartUpMode::Id: {
- using TypeInfo = Attributes::StartUpMode::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<jint>(cppValue.Value());
- chip::JniReferences::GetInstance().CreateBoxedObject<jint>(valueClassName.c_str(), valueCtorSignature.c_str(),
- jnivalue, value);
- }
- return value;
- }
- case Attributes::OnMode::Id: {
- using TypeInfo = Attributes::OnMode::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<jint>(cppValue.Value());
- chip::JniReferences::GetInstance().CreateBoxedObject<jint>(valueClassName.c_str(), valueCtorSignature.c_str(),
- jnivalue, value);
- }
- return value;
- }
case Attributes::GeneratedCommandList::Id: {
using TypeInfo = Attributes::GeneratedCommandList::TypeInfo;
TypeInfo::DecodableType cppValue;
diff --git a/src/controller/python/chip/clusters/CHIPClusters.py b/src/controller/python/chip/clusters/CHIPClusters.py
index a3b2a05..7bc1cb6 100644
--- a/src/controller/python/chip/clusters/CHIPClusters.py
+++ b/src/controller/python/chip/clusters/CHIPClusters.py
@@ -7336,20 +7336,6 @@
"type": "int",
"reportable": True,
},
- 0x00000002: {
- "attributeName": "StartUpMode",
- "attributeId": 0x00000002,
- "type": "int",
- "reportable": True,
- "writable": True,
- },
- 0x00000003: {
- "attributeName": "OnMode",
- "attributeId": 0x00000003,
- "type": "int",
- "reportable": True,
- "writable": True,
- },
0x0000FFF8: {
"attributeName": "GeneratedCommandList",
"attributeId": 0x0000FFF8,
@@ -7413,20 +7399,6 @@
"type": "int",
"reportable": True,
},
- 0x00000002: {
- "attributeName": "StartUpMode",
- "attributeId": 0x00000002,
- "type": "int",
- "reportable": True,
- "writable": True,
- },
- 0x00000003: {
- "attributeName": "OnMode",
- "attributeId": 0x00000003,
- "type": "int",
- "reportable": True,
- "writable": True,
- },
0x0000FFF8: {
"attributeName": "GeneratedCommandList",
"attributeId": 0x0000FFF8,
@@ -7490,20 +7462,6 @@
"type": "int",
"reportable": True,
},
- 0x00000002: {
- "attributeName": "StartUpMode",
- "attributeId": 0x00000002,
- "type": "int",
- "reportable": True,
- "writable": True,
- },
- 0x00000003: {
- "attributeName": "OnMode",
- "attributeId": 0x00000003,
- "type": "int",
- "reportable": True,
- "writable": 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 076dc94..e6e7471 100644
--- a/src/controller/python/chip/clusters/Objects.py
+++ b/src/controller/python/chip/clusters/Objects.py
@@ -27020,8 +27020,6 @@
Fields=[
ClusterObjectFieldDescriptor(Label="supportedModes", Tag=0x00000000, Type=typing.List[EnergyEvseMode.Structs.ModeOptionStruct]),
ClusterObjectFieldDescriptor(Label="currentMode", Tag=0x00000001, Type=uint),
- ClusterObjectFieldDescriptor(Label="startUpMode", Tag=0x00000002, Type=typing.Union[None, Nullable, uint]),
- ClusterObjectFieldDescriptor(Label="onMode", Tag=0x00000003, Type=typing.Union[None, Nullable, uint]),
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]),
@@ -27032,8 +27030,6 @@
supportedModes: typing.List[EnergyEvseMode.Structs.ModeOptionStruct] = field(default_factory=lambda: [])
currentMode: uint = 0
- startUpMode: typing.Union[None, Nullable, uint] = None
- onMode: typing.Union[None, Nullable, uint] = None
generatedCommandList: typing.List[uint] = field(default_factory=lambda: [])
acceptedCommandList: typing.List[uint] = field(default_factory=lambda: [])
eventList: typing.List[uint] = field(default_factory=lambda: [])
@@ -27056,6 +27052,7 @@
kManual = 0x4000
kTimeOfUse = 0x4001
kSolarCharging = 0x4002
+ kV2x = 0x4003
# kUnknownEnumValue intentionally not defined. This enum never goes
# through DataModel::Decode, likely because it is a part of a derived
# cluster. As a result having kUnknownEnumValue in this enum is error
@@ -27164,38 +27161,6 @@
value: uint = 0
@dataclass
- class StartUpMode(ClusterAttributeDescriptor):
- @ChipUtility.classproperty
- def cluster_id(cls) -> int:
- return 0x0000009D
-
- @ChipUtility.classproperty
- def attribute_id(cls) -> int:
- return 0x00000002
-
- @ChipUtility.classproperty
- def attribute_type(cls) -> ClusterObjectFieldDescriptor:
- return ClusterObjectFieldDescriptor(Type=typing.Union[None, Nullable, uint])
-
- value: typing.Union[None, Nullable, uint] = None
-
- @dataclass
- class OnMode(ClusterAttributeDescriptor):
- @ChipUtility.classproperty
- def cluster_id(cls) -> int:
- return 0x0000009D
-
- @ChipUtility.classproperty
- def attribute_id(cls) -> int:
- return 0x00000003
-
- @ChipUtility.classproperty
- def attribute_type(cls) -> ClusterObjectFieldDescriptor:
- return ClusterObjectFieldDescriptor(Type=typing.Union[None, Nullable, uint])
-
- value: typing.Union[None, Nullable, uint] = None
-
- @dataclass
class GeneratedCommandList(ClusterAttributeDescriptor):
@ChipUtility.classproperty
def cluster_id(cls) -> int:
@@ -27302,8 +27267,6 @@
Fields=[
ClusterObjectFieldDescriptor(Label="supportedModes", Tag=0x00000000, Type=typing.List[WaterHeaterMode.Structs.ModeOptionStruct]),
ClusterObjectFieldDescriptor(Label="currentMode", Tag=0x00000001, Type=uint),
- ClusterObjectFieldDescriptor(Label="startUpMode", Tag=0x00000002, Type=typing.Union[None, Nullable, uint]),
- ClusterObjectFieldDescriptor(Label="onMode", Tag=0x00000003, Type=typing.Union[None, Nullable, uint]),
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]),
@@ -27314,8 +27277,6 @@
supportedModes: typing.List[WaterHeaterMode.Structs.ModeOptionStruct] = field(default_factory=lambda: [])
currentMode: uint = 0
- startUpMode: typing.Union[None, Nullable, uint] = None
- onMode: typing.Union[None, Nullable, uint] = None
generatedCommandList: typing.List[uint] = field(default_factory=lambda: [])
acceptedCommandList: typing.List[uint] = field(default_factory=lambda: [])
eventList: typing.List[uint] = field(default_factory=lambda: [])
@@ -27446,38 +27407,6 @@
value: uint = 0
@dataclass
- class StartUpMode(ClusterAttributeDescriptor):
- @ChipUtility.classproperty
- def cluster_id(cls) -> int:
- return 0x0000009E
-
- @ChipUtility.classproperty
- def attribute_id(cls) -> int:
- return 0x00000002
-
- @ChipUtility.classproperty
- def attribute_type(cls) -> ClusterObjectFieldDescriptor:
- return ClusterObjectFieldDescriptor(Type=typing.Union[None, Nullable, uint])
-
- value: typing.Union[None, Nullable, uint] = None
-
- @dataclass
- class OnMode(ClusterAttributeDescriptor):
- @ChipUtility.classproperty
- def cluster_id(cls) -> int:
- return 0x0000009E
-
- @ChipUtility.classproperty
- def attribute_id(cls) -> int:
- return 0x00000003
-
- @ChipUtility.classproperty
- def attribute_type(cls) -> ClusterObjectFieldDescriptor:
- return ClusterObjectFieldDescriptor(Type=typing.Union[None, Nullable, uint])
-
- value: typing.Union[None, Nullable, uint] = None
-
- @dataclass
class GeneratedCommandList(ClusterAttributeDescriptor):
@ChipUtility.classproperty
def cluster_id(cls) -> int:
@@ -27584,8 +27513,6 @@
Fields=[
ClusterObjectFieldDescriptor(Label="supportedModes", Tag=0x00000000, Type=typing.List[DeviceEnergyManagementMode.Structs.ModeOptionStruct]),
ClusterObjectFieldDescriptor(Label="currentMode", Tag=0x00000001, Type=uint),
- ClusterObjectFieldDescriptor(Label="startUpMode", Tag=0x00000002, Type=typing.Union[None, Nullable, uint]),
- ClusterObjectFieldDescriptor(Label="onMode", Tag=0x00000003, Type=typing.Union[None, Nullable, uint]),
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]),
@@ -27596,8 +27523,6 @@
supportedModes: typing.List[DeviceEnergyManagementMode.Structs.ModeOptionStruct] = field(default_factory=lambda: [])
currentMode: uint = 0
- startUpMode: typing.Union[None, Nullable, uint] = None
- onMode: typing.Union[None, Nullable, uint] = None
generatedCommandList: typing.List[uint] = field(default_factory=lambda: [])
acceptedCommandList: typing.List[uint] = field(default_factory=lambda: [])
eventList: typing.List[uint] = field(default_factory=lambda: [])
@@ -27729,38 +27654,6 @@
value: uint = 0
@dataclass
- class StartUpMode(ClusterAttributeDescriptor):
- @ChipUtility.classproperty
- def cluster_id(cls) -> int:
- return 0x0000009F
-
- @ChipUtility.classproperty
- def attribute_id(cls) -> int:
- return 0x00000002
-
- @ChipUtility.classproperty
- def attribute_type(cls) -> ClusterObjectFieldDescriptor:
- return ClusterObjectFieldDescriptor(Type=typing.Union[None, Nullable, uint])
-
- value: typing.Union[None, Nullable, uint] = None
-
- @dataclass
- class OnMode(ClusterAttributeDescriptor):
- @ChipUtility.classproperty
- def cluster_id(cls) -> int:
- return 0x0000009F
-
- @ChipUtility.classproperty
- def attribute_id(cls) -> int:
- return 0x00000003
-
- @ChipUtility.classproperty
- def attribute_type(cls) -> ClusterObjectFieldDescriptor:
- return ClusterObjectFieldDescriptor(Type=typing.Union[None, Nullable, uint])
-
- value: typing.Union[None, Nullable, uint] = None
-
- @dataclass
class GeneratedCommandList(ClusterAttributeDescriptor):
@ChipUtility.classproperty
def cluster_id(cls) -> int:
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeSpecifiedCheck.mm b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeSpecifiedCheck.mm
index 31a1d57..4f75da1 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeSpecifiedCheck.mm
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeSpecifiedCheck.mm
@@ -3354,12 +3354,6 @@
case Attributes::CurrentMode::Id: {
return YES;
}
- case Attributes::StartUpMode::Id: {
- return YES;
- }
- case Attributes::OnMode::Id: {
- return YES;
- }
case Attributes::GeneratedCommandList::Id: {
return YES;
}
@@ -3393,12 +3387,6 @@
case Attributes::CurrentMode::Id: {
return YES;
}
- case Attributes::StartUpMode::Id: {
- return YES;
- }
- case Attributes::OnMode::Id: {
- return YES;
- }
case Attributes::GeneratedCommandList::Id: {
return YES;
}
@@ -3432,12 +3420,6 @@
case Attributes::CurrentMode::Id: {
return YES;
}
- case Attributes::StartUpMode::Id: {
- return YES;
- }
- case Attributes::OnMode::Id: {
- return YES;
- }
case Attributes::GeneratedCommandList::Id: {
return YES;
}
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm
index 5e6e048..b735c0f 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRAttributeTLVValueDecoder.mm
@@ -9799,36 +9799,6 @@
value = [NSNumber numberWithUnsignedChar:cppValue];
return value;
}
- case Attributes::StartUpMode::Id: {
- using TypeInfo = Attributes::StartUpMode::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::OnMode::Id: {
- using TypeInfo = Attributes::OnMode::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;
- }
default: {
break;
}
@@ -9907,36 +9877,6 @@
value = [NSNumber numberWithUnsignedChar:cppValue];
return value;
}
- case Attributes::StartUpMode::Id: {
- using TypeInfo = Attributes::StartUpMode::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::OnMode::Id: {
- using TypeInfo = Attributes::OnMode::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;
- }
default: {
break;
}
@@ -10015,36 +9955,6 @@
value = [NSNumber numberWithUnsignedChar:cppValue];
return value;
}
- case Attributes::StartUpMode::Id: {
- using TypeInfo = Attributes::StartUpMode::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::OnMode::Id: {
- using TypeInfo = Attributes::OnMode::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;
- }
default: {
break;
}
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h
index bba1180..eda0c7b 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h
@@ -7775,7 +7775,7 @@
/**
* Command CancelRequest
*
- * Allows a client to request cancellation of a previous adjustment request in a StartTimeAdjustRequest, ModifyForecastRequest or RequestConstraintBasedForecast command
+ * Allows a client to request cancellation of a previous adjustment request in a StartTimeAdjustRequest, ModifyForecastRequest or RequestConstraintBasedForecast command.
*/
- (void)cancelRequestWithParams:(MTRDeviceEnergyManagementClusterCancelRequestParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
- (void)cancelRequestWithCompletion:(MTRStatusCompletion)completion
@@ -7901,13 +7901,13 @@
/**
* Command EnableCharging
*
- * This command allows a client to enable the EVSE to charge an EV,
+ * This command allows a client to enable the EVSE to charge an EV, and to provide or update the maximum and minimum charge current.
*/
- (void)enableChargingWithParams:(MTREnergyEVSEClusterEnableChargingParams *)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
/**
* Command EnableDischarging
*
- * Upon receipt, this SHALL allow a client to enable the discharge of an EV,
+ * Upon receipt, this SHALL allow a client to enable the discharge of an EV, and to provide or update the maximum discharge current.
*/
- (void)enableDischargingWithParams:(MTREnergyEVSEClusterEnableDischargingParams *)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
/**
@@ -8318,7 +8318,6 @@
* Command ChangeToMode
*
* This command is used to change device modes.
- On receipt of this command the device SHALL respond with a ChangeToModeResponse command.
*/
- (void)changeToModeWithParams:(MTREnergyEVSEModeClusterChangeToModeParams *)params completion:(void (^)(MTREnergyEVSEModeClusterChangeToModeResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
@@ -8334,22 +8333,6 @@
reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE;
+ (void)readAttributeCurrentModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)readAttributeStartUpModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)subscribeAttributeStartUpModeWithParams:(MTRSubscribeParams *)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE;
-+ (void)readAttributeStartUpModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-
-- (void)readAttributeOnModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)subscribeAttributeOnModeWithParams:(MTRSubscribeParams *)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE;
-+ (void)readAttributeOnModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-
- (void)readAttributeGeneratedCommandListWithCompletion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
- (void)subscribeAttributeGeneratedCommandListWithParams:(MTRSubscribeParams *)params
subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
@@ -8415,7 +8398,6 @@
* Command ChangeToMode
*
* This command is used to change device modes.
- On receipt of this command the device SHALL respond with a ChangeToModeResponse command.
*/
- (void)changeToModeWithParams:(MTRWaterHeaterModeClusterChangeToModeParams *)params completion:(void (^)(MTRWaterHeaterModeClusterChangeToModeResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
@@ -8431,22 +8413,6 @@
reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE;
+ (void)readAttributeCurrentModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)readAttributeStartUpModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)subscribeAttributeStartUpModeWithParams:(MTRSubscribeParams *)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE;
-+ (void)readAttributeStartUpModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-
-- (void)readAttributeOnModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)subscribeAttributeOnModeWithParams:(MTRSubscribeParams *)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE;
-+ (void)readAttributeOnModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-
- (void)readAttributeGeneratedCommandListWithCompletion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
- (void)subscribeAttributeGeneratedCommandListWithParams:(MTRSubscribeParams *)params
subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
@@ -8512,7 +8478,6 @@
* Command ChangeToMode
*
* This command is used to change device modes.
- On receipt of this command the device SHALL respond with a ChangeToModeResponse command.
*/
- (void)changeToModeWithParams:(MTRDeviceEnergyManagementModeClusterChangeToModeParams *)params completion:(void (^)(MTRDeviceEnergyManagementModeClusterChangeToModeResponseParams * _Nullable data, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
@@ -8528,22 +8493,6 @@
reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE;
+ (void)readAttributeCurrentModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)readAttributeStartUpModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)subscribeAttributeStartUpModeWithParams:(MTRSubscribeParams *)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE;
-+ (void)readAttributeStartUpModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-
-- (void)readAttributeOnModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value params:(MTRWriteParams * _Nullable)params completion:(MTRStatusCompletion)completion MTR_PROVISIONALLY_AVAILABLE;
-- (void)subscribeAttributeOnModeWithParams:(MTRSubscribeParams *)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler MTR_PROVISIONALLY_AVAILABLE;
-+ (void)readAttributeOnModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
-
- (void)readAttributeGeneratedCommandListWithCompletion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion MTR_PROVISIONALLY_AVAILABLE;
- (void)subscribeAttributeGeneratedCommandListWithParams:(MTRSubscribeParams *)params
subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
@@ -18962,6 +18911,7 @@
MTREnergyEVSEModeModeTagManual MTR_PROVISIONALLY_AVAILABLE = 0x4000,
MTREnergyEVSEModeModeTagTimeOfUse MTR_PROVISIONALLY_AVAILABLE = 0x4001,
MTREnergyEVSEModeModeTagSolarCharging MTR_PROVISIONALLY_AVAILABLE = 0x4002,
+ MTREnergyEVSEModeModeTagV2X MTR_PROVISIONALLY_AVAILABLE = 0x4003,
} MTR_PROVISIONALLY_AVAILABLE;
typedef NS_OPTIONS(uint32_t, MTREnergyEVSEModeFeature) {
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm
index cda854f..6e2ea74 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm
@@ -54060,144 +54060,6 @@
completion:completion];
}
-- (void)readAttributeStartUpModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- using TypeInfo = EnergyEvseMode::Attributes::StartUpMode::TypeInfo;
- [self.device _readKnownAttributeWithEndpointID:self.endpointID
- clusterID:@(TypeInfo::GetClusterId())
- attributeID:@(TypeInfo::GetAttributeId())
- params:nil
- queue:self.callbackQueue
- completion:completion];
-}
-
-- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion
-{
- [self writeAttributeStartUpModeWithValue:(NSNumber * _Nullable) value params:nil completion:completion];
-}
-- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)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<uint16_t> timedWriteTimeout;
- if (params != nil) {
- if (params.timedWriteTimeout != nil){
- timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue);
- }
- }
-
- ListFreer listFreer;
- using TypeInfo = EnergyEvseMode::Attributes::StartUpMode::TypeInfo;
- TypeInfo::Type cppValue;
- if (value == nil) {
- cppValue.SetNull();
- } else {
- auto & nonNullValue_0 = cppValue.SetNonNull();
- nonNullValue_0 = value.unsignedCharValue;
- }
-
- chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpointID.unsignedShortValue);
- return cppCluster.WriteAttribute<TypeInfo>(cppValue, bridge, successCb, failureCb, timedWriteTimeout); });
- std::move(*bridge).DispatchAction(self.device);
-}
-
-- (void)subscribeAttributeStartUpModeWithParams:(MTRSubscribeParams * _Nonnull)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler
-{
- using TypeInfo = EnergyEvseMode::Attributes::StartUpMode::TypeInfo;
- [self.device _subscribeToKnownAttributeWithEndpointID:self.endpointID
- clusterID:@(TypeInfo::GetClusterId())
- attributeID:@(TypeInfo::GetAttributeId())
- params:params
- queue:self.callbackQueue
- reportHandler:reportHandler
- subscriptionEstablished:subscriptionEstablished];
-}
-
-+ (void)readAttributeStartUpModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- using TypeInfo = EnergyEvseMode::Attributes::StartUpMode::TypeInfo;
- [clusterStateCacheContainer
- _readKnownCachedAttributeWithEndpointID:static_cast<chip::EndpointId>([endpoint unsignedShortValue])
- clusterID:TypeInfo::GetClusterId()
- attributeID:TypeInfo::GetAttributeId()
- queue:queue
- completion:completion];
-}
-
-- (void)readAttributeOnModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- using TypeInfo = EnergyEvseMode::Attributes::OnMode::TypeInfo;
- [self.device _readKnownAttributeWithEndpointID:self.endpointID
- clusterID:@(TypeInfo::GetClusterId())
- attributeID:@(TypeInfo::GetAttributeId())
- params:nil
- queue:self.callbackQueue
- completion:completion];
-}
-
-- (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion
-{
- [self writeAttributeOnModeWithValue:(NSNumber * _Nullable) value params:nil completion:completion];
-}
-- (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)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<uint16_t> timedWriteTimeout;
- if (params != nil) {
- if (params.timedWriteTimeout != nil){
- timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue);
- }
- }
-
- ListFreer listFreer;
- using TypeInfo = EnergyEvseMode::Attributes::OnMode::TypeInfo;
- TypeInfo::Type cppValue;
- if (value == nil) {
- cppValue.SetNull();
- } else {
- auto & nonNullValue_0 = cppValue.SetNonNull();
- nonNullValue_0 = value.unsignedCharValue;
- }
-
- chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpointID.unsignedShortValue);
- return cppCluster.WriteAttribute<TypeInfo>(cppValue, bridge, successCb, failureCb, timedWriteTimeout); });
- std::move(*bridge).DispatchAction(self.device);
-}
-
-- (void)subscribeAttributeOnModeWithParams:(MTRSubscribeParams * _Nonnull)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler
-{
- using TypeInfo = EnergyEvseMode::Attributes::OnMode::TypeInfo;
- [self.device _subscribeToKnownAttributeWithEndpointID:self.endpointID
- clusterID:@(TypeInfo::GetClusterId())
- attributeID:@(TypeInfo::GetAttributeId())
- params:params
- queue:self.callbackQueue
- reportHandler:reportHandler
- subscriptionEstablished:subscriptionEstablished];
-}
-
-+ (void)readAttributeOnModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- using TypeInfo = EnergyEvseMode::Attributes::OnMode::TypeInfo;
- [clusterStateCacheContainer
- _readKnownCachedAttributeWithEndpointID:static_cast<chip::EndpointId>([endpoint unsignedShortValue])
- clusterID:TypeInfo::GetClusterId()
- attributeID:TypeInfo::GetAttributeId()
- queue:queue
- completion:completion];
-}
-
- (void)readAttributeGeneratedCommandListWithCompletion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion
{
using TypeInfo = EnergyEvseMode::Attributes::GeneratedCommandList::TypeInfo;
@@ -54515,144 +54377,6 @@
completion:completion];
}
-- (void)readAttributeStartUpModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- using TypeInfo = WaterHeaterMode::Attributes::StartUpMode::TypeInfo;
- [self.device _readKnownAttributeWithEndpointID:self.endpointID
- clusterID:@(TypeInfo::GetClusterId())
- attributeID:@(TypeInfo::GetAttributeId())
- params:nil
- queue:self.callbackQueue
- completion:completion];
-}
-
-- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion
-{
- [self writeAttributeStartUpModeWithValue:(NSNumber * _Nullable) value params:nil completion:completion];
-}
-- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)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<uint16_t> timedWriteTimeout;
- if (params != nil) {
- if (params.timedWriteTimeout != nil){
- timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue);
- }
- }
-
- ListFreer listFreer;
- using TypeInfo = WaterHeaterMode::Attributes::StartUpMode::TypeInfo;
- TypeInfo::Type cppValue;
- if (value == nil) {
- cppValue.SetNull();
- } else {
- auto & nonNullValue_0 = cppValue.SetNonNull();
- nonNullValue_0 = value.unsignedCharValue;
- }
-
- chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpointID.unsignedShortValue);
- return cppCluster.WriteAttribute<TypeInfo>(cppValue, bridge, successCb, failureCb, timedWriteTimeout); });
- std::move(*bridge).DispatchAction(self.device);
-}
-
-- (void)subscribeAttributeStartUpModeWithParams:(MTRSubscribeParams * _Nonnull)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler
-{
- using TypeInfo = WaterHeaterMode::Attributes::StartUpMode::TypeInfo;
- [self.device _subscribeToKnownAttributeWithEndpointID:self.endpointID
- clusterID:@(TypeInfo::GetClusterId())
- attributeID:@(TypeInfo::GetAttributeId())
- params:params
- queue:self.callbackQueue
- reportHandler:reportHandler
- subscriptionEstablished:subscriptionEstablished];
-}
-
-+ (void)readAttributeStartUpModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- using TypeInfo = WaterHeaterMode::Attributes::StartUpMode::TypeInfo;
- [clusterStateCacheContainer
- _readKnownCachedAttributeWithEndpointID:static_cast<chip::EndpointId>([endpoint unsignedShortValue])
- clusterID:TypeInfo::GetClusterId()
- attributeID:TypeInfo::GetAttributeId()
- queue:queue
- completion:completion];
-}
-
-- (void)readAttributeOnModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- using TypeInfo = WaterHeaterMode::Attributes::OnMode::TypeInfo;
- [self.device _readKnownAttributeWithEndpointID:self.endpointID
- clusterID:@(TypeInfo::GetClusterId())
- attributeID:@(TypeInfo::GetAttributeId())
- params:nil
- queue:self.callbackQueue
- completion:completion];
-}
-
-- (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion
-{
- [self writeAttributeOnModeWithValue:(NSNumber * _Nullable) value params:nil completion:completion];
-}
-- (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)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<uint16_t> timedWriteTimeout;
- if (params != nil) {
- if (params.timedWriteTimeout != nil){
- timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue);
- }
- }
-
- ListFreer listFreer;
- using TypeInfo = WaterHeaterMode::Attributes::OnMode::TypeInfo;
- TypeInfo::Type cppValue;
- if (value == nil) {
- cppValue.SetNull();
- } else {
- auto & nonNullValue_0 = cppValue.SetNonNull();
- nonNullValue_0 = value.unsignedCharValue;
- }
-
- chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpointID.unsignedShortValue);
- return cppCluster.WriteAttribute<TypeInfo>(cppValue, bridge, successCb, failureCb, timedWriteTimeout); });
- std::move(*bridge).DispatchAction(self.device);
-}
-
-- (void)subscribeAttributeOnModeWithParams:(MTRSubscribeParams * _Nonnull)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler
-{
- using TypeInfo = WaterHeaterMode::Attributes::OnMode::TypeInfo;
- [self.device _subscribeToKnownAttributeWithEndpointID:self.endpointID
- clusterID:@(TypeInfo::GetClusterId())
- attributeID:@(TypeInfo::GetAttributeId())
- params:params
- queue:self.callbackQueue
- reportHandler:reportHandler
- subscriptionEstablished:subscriptionEstablished];
-}
-
-+ (void)readAttributeOnModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- using TypeInfo = WaterHeaterMode::Attributes::OnMode::TypeInfo;
- [clusterStateCacheContainer
- _readKnownCachedAttributeWithEndpointID:static_cast<chip::EndpointId>([endpoint unsignedShortValue])
- clusterID:TypeInfo::GetClusterId()
- attributeID:TypeInfo::GetAttributeId()
- queue:queue
- completion:completion];
-}
-
- (void)readAttributeGeneratedCommandListWithCompletion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion
{
using TypeInfo = WaterHeaterMode::Attributes::GeneratedCommandList::TypeInfo;
@@ -54970,144 +54694,6 @@
completion:completion];
}
-- (void)readAttributeStartUpModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- using TypeInfo = DeviceEnergyManagementMode::Attributes::StartUpMode::TypeInfo;
- [self.device _readKnownAttributeWithEndpointID:self.endpointID
- clusterID:@(TypeInfo::GetClusterId())
- attributeID:@(TypeInfo::GetAttributeId())
- params:nil
- queue:self.callbackQueue
- completion:completion];
-}
-
-- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion
-{
- [self writeAttributeStartUpModeWithValue:(NSNumber * _Nullable) value params:nil completion:completion];
-}
-- (void)writeAttributeStartUpModeWithValue:(NSNumber * _Nullable)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<uint16_t> timedWriteTimeout;
- if (params != nil) {
- if (params.timedWriteTimeout != nil){
- timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue);
- }
- }
-
- ListFreer listFreer;
- using TypeInfo = DeviceEnergyManagementMode::Attributes::StartUpMode::TypeInfo;
- TypeInfo::Type cppValue;
- if (value == nil) {
- cppValue.SetNull();
- } else {
- auto & nonNullValue_0 = cppValue.SetNonNull();
- nonNullValue_0 = value.unsignedCharValue;
- }
-
- chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpointID.unsignedShortValue);
- return cppCluster.WriteAttribute<TypeInfo>(cppValue, bridge, successCb, failureCb, timedWriteTimeout); });
- std::move(*bridge).DispatchAction(self.device);
-}
-
-- (void)subscribeAttributeStartUpModeWithParams:(MTRSubscribeParams * _Nonnull)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler
-{
- using TypeInfo = DeviceEnergyManagementMode::Attributes::StartUpMode::TypeInfo;
- [self.device _subscribeToKnownAttributeWithEndpointID:self.endpointID
- clusterID:@(TypeInfo::GetClusterId())
- attributeID:@(TypeInfo::GetAttributeId())
- params:params
- queue:self.callbackQueue
- reportHandler:reportHandler
- subscriptionEstablished:subscriptionEstablished];
-}
-
-+ (void)readAttributeStartUpModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- using TypeInfo = DeviceEnergyManagementMode::Attributes::StartUpMode::TypeInfo;
- [clusterStateCacheContainer
- _readKnownCachedAttributeWithEndpointID:static_cast<chip::EndpointId>([endpoint unsignedShortValue])
- clusterID:TypeInfo::GetClusterId()
- attributeID:TypeInfo::GetAttributeId()
- queue:queue
- completion:completion];
-}
-
-- (void)readAttributeOnModeWithCompletion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- using TypeInfo = DeviceEnergyManagementMode::Attributes::OnMode::TypeInfo;
- [self.device _readKnownAttributeWithEndpointID:self.endpointID
- clusterID:@(TypeInfo::GetClusterId())
- attributeID:@(TypeInfo::GetAttributeId())
- params:nil
- queue:self.callbackQueue
- completion:completion];
-}
-
-- (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)value completion:(MTRStatusCompletion)completion
-{
- [self writeAttributeOnModeWithValue:(NSNumber * _Nullable) value params:nil completion:completion];
-}
-- (void)writeAttributeOnModeWithValue:(NSNumber * _Nullable)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<uint16_t> timedWriteTimeout;
- if (params != nil) {
- if (params.timedWriteTimeout != nil){
- timedWriteTimeout.SetValue(params.timedWriteTimeout.unsignedShortValue);
- }
- }
-
- ListFreer listFreer;
- using TypeInfo = DeviceEnergyManagementMode::Attributes::OnMode::TypeInfo;
- TypeInfo::Type cppValue;
- if (value == nil) {
- cppValue.SetNull();
- } else {
- auto & nonNullValue_0 = cppValue.SetNonNull();
- nonNullValue_0 = value.unsignedCharValue;
- }
-
- chip::Controller::ClusterBase cppCluster(exchangeManager, session, self.endpointID.unsignedShortValue);
- return cppCluster.WriteAttribute<TypeInfo>(cppValue, bridge, successCb, failureCb, timedWriteTimeout); });
- std::move(*bridge).DispatchAction(self.device);
-}
-
-- (void)subscribeAttributeOnModeWithParams:(MTRSubscribeParams * _Nonnull)params
- subscriptionEstablished:(MTRSubscriptionEstablishedHandler _Nullable)subscriptionEstablished
- reportHandler:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))reportHandler
-{
- using TypeInfo = DeviceEnergyManagementMode::Attributes::OnMode::TypeInfo;
- [self.device _subscribeToKnownAttributeWithEndpointID:self.endpointID
- clusterID:@(TypeInfo::GetClusterId())
- attributeID:@(TypeInfo::GetAttributeId())
- params:params
- queue:self.callbackQueue
- reportHandler:reportHandler
- subscriptionEstablished:subscriptionEstablished];
-}
-
-+ (void)readAttributeOnModeWithClusterStateCache:(MTRClusterStateCacheContainer *)clusterStateCacheContainer endpoint:(NSNumber *)endpoint queue:(dispatch_queue_t)queue completion:(void (^)(NSNumber * _Nullable value, NSError * _Nullable error))completion
-{
- using TypeInfo = DeviceEnergyManagementMode::Attributes::OnMode::TypeInfo;
- [clusterStateCacheContainer
- _readKnownCachedAttributeWithEndpointID:static_cast<chip::EndpointId>([endpoint unsignedShortValue])
- clusterID:TypeInfo::GetClusterId()
- attributeID:TypeInfo::GetAttributeId()
- queue:queue
- completion:completion];
-}
-
- (void)readAttributeGeneratedCommandListWithCompletion:(void (^)(NSArray * _Nullable value, NSError * _Nullable error))completion
{
using TypeInfo = DeviceEnergyManagementMode::Attributes::GeneratedCommandList::TypeInfo;
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h b/src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h
index 76d6ab3..6f9901c 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h
@@ -2662,8 +2662,6 @@
// Cluster EnergyEVSEMode attributes
MTRAttributeIDTypeClusterEnergyEVSEModeAttributeSupportedModesID MTR_PROVISIONALLY_AVAILABLE = 0x00000000,
MTRAttributeIDTypeClusterEnergyEVSEModeAttributeCurrentModeID MTR_PROVISIONALLY_AVAILABLE = 0x00000001,
- MTRAttributeIDTypeClusterEnergyEVSEModeAttributeStartUpModeID MTR_PROVISIONALLY_AVAILABLE = 0x00000002,
- MTRAttributeIDTypeClusterEnergyEVSEModeAttributeOnModeID MTR_PROVISIONALLY_AVAILABLE = 0x00000003,
MTRAttributeIDTypeClusterEnergyEVSEModeAttributeGeneratedCommandListID MTR_PROVISIONALLY_AVAILABLE = MTRAttributeIDTypeGlobalAttributeGeneratedCommandListID,
MTRAttributeIDTypeClusterEnergyEVSEModeAttributeAcceptedCommandListID MTR_PROVISIONALLY_AVAILABLE = MTRAttributeIDTypeGlobalAttributeAcceptedCommandListID,
MTRAttributeIDTypeClusterEnergyEVSEModeAttributeEventListID MTR_PROVISIONALLY_AVAILABLE = MTRAttributeIDTypeGlobalAttributeEventListID,
@@ -2674,8 +2672,6 @@
// Cluster WaterHeaterMode attributes
MTRAttributeIDTypeClusterWaterHeaterModeAttributeSupportedModesID MTR_PROVISIONALLY_AVAILABLE = 0x00000000,
MTRAttributeIDTypeClusterWaterHeaterModeAttributeCurrentModeID MTR_PROVISIONALLY_AVAILABLE = 0x00000001,
- MTRAttributeIDTypeClusterWaterHeaterModeAttributeStartUpModeID MTR_PROVISIONALLY_AVAILABLE = 0x00000002,
- MTRAttributeIDTypeClusterWaterHeaterModeAttributeOnModeID MTR_PROVISIONALLY_AVAILABLE = 0x00000003,
MTRAttributeIDTypeClusterWaterHeaterModeAttributeGeneratedCommandListID MTR_PROVISIONALLY_AVAILABLE = MTRAttributeIDTypeGlobalAttributeGeneratedCommandListID,
MTRAttributeIDTypeClusterWaterHeaterModeAttributeAcceptedCommandListID MTR_PROVISIONALLY_AVAILABLE = MTRAttributeIDTypeGlobalAttributeAcceptedCommandListID,
MTRAttributeIDTypeClusterWaterHeaterModeAttributeEventListID MTR_PROVISIONALLY_AVAILABLE = MTRAttributeIDTypeGlobalAttributeEventListID,
@@ -2686,8 +2682,6 @@
// Cluster DeviceEnergyManagementMode attributes
MTRAttributeIDTypeClusterDeviceEnergyManagementModeAttributeSupportedModesID MTR_PROVISIONALLY_AVAILABLE = 0x00000000,
MTRAttributeIDTypeClusterDeviceEnergyManagementModeAttributeCurrentModeID MTR_PROVISIONALLY_AVAILABLE = 0x00000001,
- MTRAttributeIDTypeClusterDeviceEnergyManagementModeAttributeStartUpModeID MTR_PROVISIONALLY_AVAILABLE = 0x00000002,
- MTRAttributeIDTypeClusterDeviceEnergyManagementModeAttributeOnModeID MTR_PROVISIONALLY_AVAILABLE = 0x00000003,
MTRAttributeIDTypeClusterDeviceEnergyManagementModeAttributeGeneratedCommandListID MTR_PROVISIONALLY_AVAILABLE = MTRAttributeIDTypeGlobalAttributeGeneratedCommandListID,
MTRAttributeIDTypeClusterDeviceEnergyManagementModeAttributeAcceptedCommandListID MTR_PROVISIONALLY_AVAILABLE = MTRAttributeIDTypeGlobalAttributeAcceptedCommandListID,
MTRAttributeIDTypeClusterDeviceEnergyManagementModeAttributeEventListID MTR_PROVISIONALLY_AVAILABLE = MTRAttributeIDTypeGlobalAttributeEventListID,
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRClusterNames.mm b/src/darwin/Framework/CHIP/zap-generated/MTRClusterNames.mm
index 04f3350..1d7ffd3 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRClusterNames.mm
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRClusterNames.mm
@@ -4785,14 +4785,6 @@
result = @"CurrentMode";
break;
- case MTRAttributeIDTypeClusterEnergyEVSEModeAttributeStartUpModeID:
- result = @"StartUpMode";
- break;
-
- case MTRAttributeIDTypeClusterEnergyEVSEModeAttributeOnModeID:
- result = @"OnMode";
- break;
-
case MTRAttributeIDTypeClusterEnergyEVSEModeAttributeGeneratedCommandListID:
result = @"GeneratedCommandList";
break;
@@ -4836,14 +4828,6 @@
result = @"CurrentMode";
break;
- case MTRAttributeIDTypeClusterWaterHeaterModeAttributeStartUpModeID:
- result = @"StartUpMode";
- break;
-
- case MTRAttributeIDTypeClusterWaterHeaterModeAttributeOnModeID:
- result = @"OnMode";
- break;
-
case MTRAttributeIDTypeClusterWaterHeaterModeAttributeGeneratedCommandListID:
result = @"GeneratedCommandList";
break;
@@ -4887,14 +4871,6 @@
result = @"CurrentMode";
break;
- case MTRAttributeIDTypeClusterDeviceEnergyManagementModeAttributeStartUpModeID:
- result = @"StartUpMode";
- break;
-
- case MTRAttributeIDTypeClusterDeviceEnergyManagementModeAttributeOnModeID:
- result = @"OnMode";
- break;
-
case MTRAttributeIDTypeClusterDeviceEnergyManagementModeAttributeGeneratedCommandListID:
result = @"GeneratedCommandList";
break;
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRClusters.h b/src/darwin/Framework/CHIP/zap-generated/MTRClusters.h
index 217fe6c..6ee9d3d 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRClusters.h
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRClusters.h
@@ -3899,14 +3899,6 @@
- (NSDictionary<NSString *, id> * _Nullable)readAttributeCurrentModeWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-- (NSDictionary<NSString *, id> * _Nullable)readAttributeStartUpModeWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeStartUpModeWithValue:(NSDictionary<NSString *, id> *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeStartUpModeWithValue:(NSDictionary<NSString *, id> *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-
-- (NSDictionary<NSString *, id> * _Nullable)readAttributeOnModeWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeOnModeWithValue:(NSDictionary<NSString *, id> *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeOnModeWithValue:(NSDictionary<NSString *, id> *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-
- (NSDictionary<NSString *, id> * _Nullable)readAttributeGeneratedCommandListWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
- (NSDictionary<NSString *, id> * _Nullable)readAttributeAcceptedCommandListWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
@@ -3949,14 +3941,6 @@
- (NSDictionary<NSString *, id> * _Nullable)readAttributeCurrentModeWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-- (NSDictionary<NSString *, id> * _Nullable)readAttributeStartUpModeWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeStartUpModeWithValue:(NSDictionary<NSString *, id> *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeStartUpModeWithValue:(NSDictionary<NSString *, id> *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-
-- (NSDictionary<NSString *, id> * _Nullable)readAttributeOnModeWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeOnModeWithValue:(NSDictionary<NSString *, id> *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeOnModeWithValue:(NSDictionary<NSString *, id> *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-
- (NSDictionary<NSString *, id> * _Nullable)readAttributeGeneratedCommandListWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
- (NSDictionary<NSString *, id> * _Nullable)readAttributeAcceptedCommandListWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
@@ -3999,14 +3983,6 @@
- (NSDictionary<NSString *, id> * _Nullable)readAttributeCurrentModeWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-- (NSDictionary<NSString *, id> * _Nullable)readAttributeStartUpModeWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeStartUpModeWithValue:(NSDictionary<NSString *, id> *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeStartUpModeWithValue:(NSDictionary<NSString *, id> *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-
-- (NSDictionary<NSString *, id> * _Nullable)readAttributeOnModeWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeOnModeWithValue:(NSDictionary<NSString *, id> *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs MTR_PROVISIONALLY_AVAILABLE;
-- (void)writeAttributeOnModeWithValue:(NSDictionary<NSString *, id> *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
-
- (NSDictionary<NSString *, id> * _Nullable)readAttributeGeneratedCommandListWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
- (NSDictionary<NSString *, id> * _Nullable)readAttributeAcceptedCommandListWithParams:(MTRReadParams * _Nullable)params MTR_PROVISIONALLY_AVAILABLE;
diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRClusters.mm b/src/darwin/Framework/CHIP/zap-generated/MTRClusters.mm
index 53d9aec..fbdc9bd 100644
--- a/src/darwin/Framework/CHIP/zap-generated/MTRClusters.mm
+++ b/src/darwin/Framework/CHIP/zap-generated/MTRClusters.mm
@@ -10522,38 +10522,6 @@
return [self.device readAttributeWithEndpointID:self.endpointID clusterID:@(MTRClusterIDTypeEnergyEVSEModeID) attributeID:@(MTRAttributeIDTypeClusterEnergyEVSEModeAttributeCurrentModeID) params:params];
}
-- (NSDictionary<NSString *, id> * _Nullable)readAttributeStartUpModeWithParams:(MTRReadParams * _Nullable)params
-{
- return [self.device readAttributeWithEndpointID:self.endpointID clusterID:@(MTRClusterIDTypeEnergyEVSEModeID) attributeID:@(MTRAttributeIDTypeClusterEnergyEVSEModeAttributeStartUpModeID) params:params];
-}
-
-- (void)writeAttributeStartUpModeWithValue:(NSDictionary<NSString *, id> *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs
-{
- [self writeAttributeStartUpModeWithValue:dataValueDictionary expectedValueInterval:expectedValueIntervalMs params:nil];
-}
-- (void)writeAttributeStartUpModeWithValue:(NSDictionary<NSString *, id> *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params
-{
- NSNumber * timedWriteTimeout = params.timedWriteTimeout;
-
- [self.device writeAttributeWithEndpointID:self.endpointID clusterID:@(MTRClusterIDTypeEnergyEVSEModeID) attributeID:@(MTRAttributeIDTypeClusterEnergyEVSEModeAttributeStartUpModeID) value:dataValueDictionary expectedValueInterval:expectedValueIntervalMs timedWriteTimeout:timedWriteTimeout];
-}
-
-- (NSDictionary<NSString *, id> * _Nullable)readAttributeOnModeWithParams:(MTRReadParams * _Nullable)params
-{
- return [self.device readAttributeWithEndpointID:self.endpointID clusterID:@(MTRClusterIDTypeEnergyEVSEModeID) attributeID:@(MTRAttributeIDTypeClusterEnergyEVSEModeAttributeOnModeID) params:params];
-}
-
-- (void)writeAttributeOnModeWithValue:(NSDictionary<NSString *, id> *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs
-{
- [self writeAttributeOnModeWithValue:dataValueDictionary expectedValueInterval:expectedValueIntervalMs params:nil];
-}
-- (void)writeAttributeOnModeWithValue:(NSDictionary<NSString *, id> *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params
-{
- NSNumber * timedWriteTimeout = params.timedWriteTimeout;
-
- [self.device writeAttributeWithEndpointID:self.endpointID clusterID:@(MTRClusterIDTypeEnergyEVSEModeID) attributeID:@(MTRAttributeIDTypeClusterEnergyEVSEModeAttributeOnModeID) value:dataValueDictionary expectedValueInterval:expectedValueIntervalMs timedWriteTimeout:timedWriteTimeout];
-}
-
- (NSDictionary<NSString *, id> * _Nullable)readAttributeGeneratedCommandListWithParams:(MTRReadParams * _Nullable)params
{
return [self.device readAttributeWithEndpointID:self.endpointID clusterID:@(MTRClusterIDTypeEnergyEVSEModeID) attributeID:@(MTRAttributeIDTypeClusterEnergyEVSEModeAttributeGeneratedCommandListID) params:params];
@@ -10625,38 +10593,6 @@
return [self.device readAttributeWithEndpointID:self.endpointID clusterID:@(MTRClusterIDTypeWaterHeaterModeID) attributeID:@(MTRAttributeIDTypeClusterWaterHeaterModeAttributeCurrentModeID) params:params];
}
-- (NSDictionary<NSString *, id> * _Nullable)readAttributeStartUpModeWithParams:(MTRReadParams * _Nullable)params
-{
- return [self.device readAttributeWithEndpointID:self.endpointID clusterID:@(MTRClusterIDTypeWaterHeaterModeID) attributeID:@(MTRAttributeIDTypeClusterWaterHeaterModeAttributeStartUpModeID) params:params];
-}
-
-- (void)writeAttributeStartUpModeWithValue:(NSDictionary<NSString *, id> *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs
-{
- [self writeAttributeStartUpModeWithValue:dataValueDictionary expectedValueInterval:expectedValueIntervalMs params:nil];
-}
-- (void)writeAttributeStartUpModeWithValue:(NSDictionary<NSString *, id> *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params
-{
- NSNumber * timedWriteTimeout = params.timedWriteTimeout;
-
- [self.device writeAttributeWithEndpointID:self.endpointID clusterID:@(MTRClusterIDTypeWaterHeaterModeID) attributeID:@(MTRAttributeIDTypeClusterWaterHeaterModeAttributeStartUpModeID) value:dataValueDictionary expectedValueInterval:expectedValueIntervalMs timedWriteTimeout:timedWriteTimeout];
-}
-
-- (NSDictionary<NSString *, id> * _Nullable)readAttributeOnModeWithParams:(MTRReadParams * _Nullable)params
-{
- return [self.device readAttributeWithEndpointID:self.endpointID clusterID:@(MTRClusterIDTypeWaterHeaterModeID) attributeID:@(MTRAttributeIDTypeClusterWaterHeaterModeAttributeOnModeID) params:params];
-}
-
-- (void)writeAttributeOnModeWithValue:(NSDictionary<NSString *, id> *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs
-{
- [self writeAttributeOnModeWithValue:dataValueDictionary expectedValueInterval:expectedValueIntervalMs params:nil];
-}
-- (void)writeAttributeOnModeWithValue:(NSDictionary<NSString *, id> *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params
-{
- NSNumber * timedWriteTimeout = params.timedWriteTimeout;
-
- [self.device writeAttributeWithEndpointID:self.endpointID clusterID:@(MTRClusterIDTypeWaterHeaterModeID) attributeID:@(MTRAttributeIDTypeClusterWaterHeaterModeAttributeOnModeID) value:dataValueDictionary expectedValueInterval:expectedValueIntervalMs timedWriteTimeout:timedWriteTimeout];
-}
-
- (NSDictionary<NSString *, id> * _Nullable)readAttributeGeneratedCommandListWithParams:(MTRReadParams * _Nullable)params
{
return [self.device readAttributeWithEndpointID:self.endpointID clusterID:@(MTRClusterIDTypeWaterHeaterModeID) attributeID:@(MTRAttributeIDTypeClusterWaterHeaterModeAttributeGeneratedCommandListID) params:params];
@@ -10728,38 +10664,6 @@
return [self.device readAttributeWithEndpointID:self.endpointID clusterID:@(MTRClusterIDTypeDeviceEnergyManagementModeID) attributeID:@(MTRAttributeIDTypeClusterDeviceEnergyManagementModeAttributeCurrentModeID) params:params];
}
-- (NSDictionary<NSString *, id> * _Nullable)readAttributeStartUpModeWithParams:(MTRReadParams * _Nullable)params
-{
- return [self.device readAttributeWithEndpointID:self.endpointID clusterID:@(MTRClusterIDTypeDeviceEnergyManagementModeID) attributeID:@(MTRAttributeIDTypeClusterDeviceEnergyManagementModeAttributeStartUpModeID) params:params];
-}
-
-- (void)writeAttributeStartUpModeWithValue:(NSDictionary<NSString *, id> *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs
-{
- [self writeAttributeStartUpModeWithValue:dataValueDictionary expectedValueInterval:expectedValueIntervalMs params:nil];
-}
-- (void)writeAttributeStartUpModeWithValue:(NSDictionary<NSString *, id> *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params
-{
- NSNumber * timedWriteTimeout = params.timedWriteTimeout;
-
- [self.device writeAttributeWithEndpointID:self.endpointID clusterID:@(MTRClusterIDTypeDeviceEnergyManagementModeID) attributeID:@(MTRAttributeIDTypeClusterDeviceEnergyManagementModeAttributeStartUpModeID) value:dataValueDictionary expectedValueInterval:expectedValueIntervalMs timedWriteTimeout:timedWriteTimeout];
-}
-
-- (NSDictionary<NSString *, id> * _Nullable)readAttributeOnModeWithParams:(MTRReadParams * _Nullable)params
-{
- return [self.device readAttributeWithEndpointID:self.endpointID clusterID:@(MTRClusterIDTypeDeviceEnergyManagementModeID) attributeID:@(MTRAttributeIDTypeClusterDeviceEnergyManagementModeAttributeOnModeID) params:params];
-}
-
-- (void)writeAttributeOnModeWithValue:(NSDictionary<NSString *, id> *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs
-{
- [self writeAttributeOnModeWithValue:dataValueDictionary expectedValueInterval:expectedValueIntervalMs params:nil];
-}
-- (void)writeAttributeOnModeWithValue:(NSDictionary<NSString *, id> *)dataValueDictionary expectedValueInterval:(NSNumber *)expectedValueIntervalMs params:(MTRWriteParams * _Nullable)params
-{
- NSNumber * timedWriteTimeout = params.timedWriteTimeout;
-
- [self.device writeAttributeWithEndpointID:self.endpointID clusterID:@(MTRClusterIDTypeDeviceEnergyManagementModeID) attributeID:@(MTRAttributeIDTypeClusterDeviceEnergyManagementModeAttributeOnModeID) value:dataValueDictionary expectedValueInterval:expectedValueIntervalMs timedWriteTimeout:timedWriteTimeout];
-}
-
- (NSDictionary<NSString *, id> * _Nullable)readAttributeGeneratedCommandListWithParams:(MTRReadParams * _Nullable)params
{
return [self.device readAttributeWithEndpointID:self.endpointID clusterID:@(MTRClusterIDTypeDeviceEnergyManagementModeID) attributeID:@(MTRAttributeIDTypeClusterDeviceEnergyManagementModeAttributeGeneratedCommandListID) params:params];
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 2caf4f3..382c808 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
@@ -16141,186 +16141,6 @@
namespace EnergyEvseMode {
namespace Attributes {
-namespace StartUpMode {
-
-Protocols::InteractionModel::Status Get(EndpointId endpoint, DataModel::Nullable<uint8_t> & value)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- Traits::StorageType temp;
- uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp);
- Protocols::InteractionModel::Status status =
- emberAfReadAttribute(endpoint, Clusters::EnergyEvseMode::Id, Id, readable, sizeof(temp));
- VerifyOrReturnError(Protocols::InteractionModel::Status::Success == status, status);
- if (Traits::IsNullValue(temp))
- {
- value.SetNull();
- }
- else
- {
- value.SetNonNull() = Traits::StorageToWorking(temp);
- }
- return status;
-}
-
-Protocols::InteractionModel::Status Set(EndpointId endpoint, uint8_t value, MarkAttributeDirty markDirty)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- if (!Traits::CanRepresentValue(/* isNullable = */ true, value))
- {
- return Protocols::InteractionModel::Status::ConstraintError;
- }
- Traits::StorageType storageValue;
- Traits::WorkingToStorage(value, storageValue);
- uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue);
- return emberAfWriteAttribute(ConcreteAttributePath(endpoint, Clusters::EnergyEvseMode::Id, Id),
- EmberAfWriteDataInput(writable, ZCL_INT8U_ATTRIBUTE_TYPE).SetMarkDirty(markDirty));
-}
-
-Protocols::InteractionModel::Status Set(EndpointId endpoint, uint8_t value)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- if (!Traits::CanRepresentValue(/* isNullable = */ true, value))
- {
- return Protocols::InteractionModel::Status::ConstraintError;
- }
- Traits::StorageType storageValue;
- Traits::WorkingToStorage(value, storageValue);
- uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue);
- return emberAfWriteAttribute(endpoint, Clusters::EnergyEvseMode::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE);
-}
-
-Protocols::InteractionModel::Status SetNull(EndpointId endpoint, MarkAttributeDirty markDirty)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- Traits::StorageType value;
- Traits::SetNull(value);
- uint8_t * writable = Traits::ToAttributeStoreRepresentation(value);
- return emberAfWriteAttribute(ConcreteAttributePath(endpoint, Clusters::EnergyEvseMode::Id, Id),
- EmberAfWriteDataInput(writable, ZCL_INT8U_ATTRIBUTE_TYPE).SetMarkDirty(markDirty));
-}
-
-Protocols::InteractionModel::Status SetNull(EndpointId endpoint)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- Traits::StorageType value;
- Traits::SetNull(value);
- uint8_t * writable = Traits::ToAttributeStoreRepresentation(value);
- return emberAfWriteAttribute(endpoint, Clusters::EnergyEvseMode::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE);
-}
-
-Protocols::InteractionModel::Status Set(EndpointId endpoint, const chip::app::DataModel::Nullable<uint8_t> & value,
- MarkAttributeDirty markDirty)
-{
- if (value.IsNull())
- {
- return SetNull(endpoint, markDirty);
- }
-
- return Set(endpoint, value.Value(), markDirty);
-}
-
-Protocols::InteractionModel::Status Set(EndpointId endpoint, const chip::app::DataModel::Nullable<uint8_t> & value)
-{
- if (value.IsNull())
- {
- return SetNull(endpoint);
- }
-
- return Set(endpoint, value.Value());
-}
-
-} // namespace StartUpMode
-
-namespace OnMode {
-
-Protocols::InteractionModel::Status Get(EndpointId endpoint, DataModel::Nullable<uint8_t> & value)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- Traits::StorageType temp;
- uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp);
- Protocols::InteractionModel::Status status =
- emberAfReadAttribute(endpoint, Clusters::EnergyEvseMode::Id, Id, readable, sizeof(temp));
- VerifyOrReturnError(Protocols::InteractionModel::Status::Success == status, status);
- if (Traits::IsNullValue(temp))
- {
- value.SetNull();
- }
- else
- {
- value.SetNonNull() = Traits::StorageToWorking(temp);
- }
- return status;
-}
-
-Protocols::InteractionModel::Status Set(EndpointId endpoint, uint8_t value, MarkAttributeDirty markDirty)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- if (!Traits::CanRepresentValue(/* isNullable = */ true, value))
- {
- return Protocols::InteractionModel::Status::ConstraintError;
- }
- Traits::StorageType storageValue;
- Traits::WorkingToStorage(value, storageValue);
- uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue);
- return emberAfWriteAttribute(ConcreteAttributePath(endpoint, Clusters::EnergyEvseMode::Id, Id),
- EmberAfWriteDataInput(writable, ZCL_INT8U_ATTRIBUTE_TYPE).SetMarkDirty(markDirty));
-}
-
-Protocols::InteractionModel::Status Set(EndpointId endpoint, uint8_t value)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- if (!Traits::CanRepresentValue(/* isNullable = */ true, value))
- {
- return Protocols::InteractionModel::Status::ConstraintError;
- }
- Traits::StorageType storageValue;
- Traits::WorkingToStorage(value, storageValue);
- uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue);
- return emberAfWriteAttribute(endpoint, Clusters::EnergyEvseMode::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE);
-}
-
-Protocols::InteractionModel::Status SetNull(EndpointId endpoint, MarkAttributeDirty markDirty)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- Traits::StorageType value;
- Traits::SetNull(value);
- uint8_t * writable = Traits::ToAttributeStoreRepresentation(value);
- return emberAfWriteAttribute(ConcreteAttributePath(endpoint, Clusters::EnergyEvseMode::Id, Id),
- EmberAfWriteDataInput(writable, ZCL_INT8U_ATTRIBUTE_TYPE).SetMarkDirty(markDirty));
-}
-
-Protocols::InteractionModel::Status SetNull(EndpointId endpoint)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- Traits::StorageType value;
- Traits::SetNull(value);
- uint8_t * writable = Traits::ToAttributeStoreRepresentation(value);
- return emberAfWriteAttribute(endpoint, Clusters::EnergyEvseMode::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE);
-}
-
-Protocols::InteractionModel::Status Set(EndpointId endpoint, const chip::app::DataModel::Nullable<uint8_t> & value,
- MarkAttributeDirty markDirty)
-{
- if (value.IsNull())
- {
- return SetNull(endpoint, markDirty);
- }
-
- return Set(endpoint, value.Value(), markDirty);
-}
-
-Protocols::InteractionModel::Status Set(EndpointId endpoint, const chip::app::DataModel::Nullable<uint8_t> & value)
-{
- if (value.IsNull())
- {
- return SetNull(endpoint);
- }
-
- return Set(endpoint, value.Value());
-}
-
-} // namespace OnMode
-
namespace ClusterRevision {
Protocols::InteractionModel::Status Get(EndpointId endpoint, uint16_t * value)
@@ -16374,186 +16194,6 @@
namespace WaterHeaterMode {
namespace Attributes {
-namespace StartUpMode {
-
-Protocols::InteractionModel::Status Get(EndpointId endpoint, DataModel::Nullable<uint8_t> & value)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- Traits::StorageType temp;
- uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp);
- Protocols::InteractionModel::Status status =
- emberAfReadAttribute(endpoint, Clusters::WaterHeaterMode::Id, Id, readable, sizeof(temp));
- VerifyOrReturnError(Protocols::InteractionModel::Status::Success == status, status);
- if (Traits::IsNullValue(temp))
- {
- value.SetNull();
- }
- else
- {
- value.SetNonNull() = Traits::StorageToWorking(temp);
- }
- return status;
-}
-
-Protocols::InteractionModel::Status Set(EndpointId endpoint, uint8_t value, MarkAttributeDirty markDirty)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- if (!Traits::CanRepresentValue(/* isNullable = */ true, value))
- {
- return Protocols::InteractionModel::Status::ConstraintError;
- }
- Traits::StorageType storageValue;
- Traits::WorkingToStorage(value, storageValue);
- uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue);
- return emberAfWriteAttribute(ConcreteAttributePath(endpoint, Clusters::WaterHeaterMode::Id, Id),
- EmberAfWriteDataInput(writable, ZCL_INT8U_ATTRIBUTE_TYPE).SetMarkDirty(markDirty));
-}
-
-Protocols::InteractionModel::Status Set(EndpointId endpoint, uint8_t value)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- if (!Traits::CanRepresentValue(/* isNullable = */ true, value))
- {
- return Protocols::InteractionModel::Status::ConstraintError;
- }
- Traits::StorageType storageValue;
- Traits::WorkingToStorage(value, storageValue);
- uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue);
- return emberAfWriteAttribute(endpoint, Clusters::WaterHeaterMode::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE);
-}
-
-Protocols::InteractionModel::Status SetNull(EndpointId endpoint, MarkAttributeDirty markDirty)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- Traits::StorageType value;
- Traits::SetNull(value);
- uint8_t * writable = Traits::ToAttributeStoreRepresentation(value);
- return emberAfWriteAttribute(ConcreteAttributePath(endpoint, Clusters::WaterHeaterMode::Id, Id),
- EmberAfWriteDataInput(writable, ZCL_INT8U_ATTRIBUTE_TYPE).SetMarkDirty(markDirty));
-}
-
-Protocols::InteractionModel::Status SetNull(EndpointId endpoint)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- Traits::StorageType value;
- Traits::SetNull(value);
- uint8_t * writable = Traits::ToAttributeStoreRepresentation(value);
- return emberAfWriteAttribute(endpoint, Clusters::WaterHeaterMode::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE);
-}
-
-Protocols::InteractionModel::Status Set(EndpointId endpoint, const chip::app::DataModel::Nullable<uint8_t> & value,
- MarkAttributeDirty markDirty)
-{
- if (value.IsNull())
- {
- return SetNull(endpoint, markDirty);
- }
-
- return Set(endpoint, value.Value(), markDirty);
-}
-
-Protocols::InteractionModel::Status Set(EndpointId endpoint, const chip::app::DataModel::Nullable<uint8_t> & value)
-{
- if (value.IsNull())
- {
- return SetNull(endpoint);
- }
-
- return Set(endpoint, value.Value());
-}
-
-} // namespace StartUpMode
-
-namespace OnMode {
-
-Protocols::InteractionModel::Status Get(EndpointId endpoint, DataModel::Nullable<uint8_t> & value)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- Traits::StorageType temp;
- uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp);
- Protocols::InteractionModel::Status status =
- emberAfReadAttribute(endpoint, Clusters::WaterHeaterMode::Id, Id, readable, sizeof(temp));
- VerifyOrReturnError(Protocols::InteractionModel::Status::Success == status, status);
- if (Traits::IsNullValue(temp))
- {
- value.SetNull();
- }
- else
- {
- value.SetNonNull() = Traits::StorageToWorking(temp);
- }
- return status;
-}
-
-Protocols::InteractionModel::Status Set(EndpointId endpoint, uint8_t value, MarkAttributeDirty markDirty)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- if (!Traits::CanRepresentValue(/* isNullable = */ true, value))
- {
- return Protocols::InteractionModel::Status::ConstraintError;
- }
- Traits::StorageType storageValue;
- Traits::WorkingToStorage(value, storageValue);
- uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue);
- return emberAfWriteAttribute(ConcreteAttributePath(endpoint, Clusters::WaterHeaterMode::Id, Id),
- EmberAfWriteDataInput(writable, ZCL_INT8U_ATTRIBUTE_TYPE).SetMarkDirty(markDirty));
-}
-
-Protocols::InteractionModel::Status Set(EndpointId endpoint, uint8_t value)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- if (!Traits::CanRepresentValue(/* isNullable = */ true, value))
- {
- return Protocols::InteractionModel::Status::ConstraintError;
- }
- Traits::StorageType storageValue;
- Traits::WorkingToStorage(value, storageValue);
- uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue);
- return emberAfWriteAttribute(endpoint, Clusters::WaterHeaterMode::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE);
-}
-
-Protocols::InteractionModel::Status SetNull(EndpointId endpoint, MarkAttributeDirty markDirty)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- Traits::StorageType value;
- Traits::SetNull(value);
- uint8_t * writable = Traits::ToAttributeStoreRepresentation(value);
- return emberAfWriteAttribute(ConcreteAttributePath(endpoint, Clusters::WaterHeaterMode::Id, Id),
- EmberAfWriteDataInput(writable, ZCL_INT8U_ATTRIBUTE_TYPE).SetMarkDirty(markDirty));
-}
-
-Protocols::InteractionModel::Status SetNull(EndpointId endpoint)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- Traits::StorageType value;
- Traits::SetNull(value);
- uint8_t * writable = Traits::ToAttributeStoreRepresentation(value);
- return emberAfWriteAttribute(endpoint, Clusters::WaterHeaterMode::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE);
-}
-
-Protocols::InteractionModel::Status Set(EndpointId endpoint, const chip::app::DataModel::Nullable<uint8_t> & value,
- MarkAttributeDirty markDirty)
-{
- if (value.IsNull())
- {
- return SetNull(endpoint, markDirty);
- }
-
- return Set(endpoint, value.Value(), markDirty);
-}
-
-Protocols::InteractionModel::Status Set(EndpointId endpoint, const chip::app::DataModel::Nullable<uint8_t> & value)
-{
- if (value.IsNull())
- {
- return SetNull(endpoint);
- }
-
- return Set(endpoint, value.Value());
-}
-
-} // namespace OnMode
-
namespace ClusterRevision {
Protocols::InteractionModel::Status Get(EndpointId endpoint, uint16_t * value)
@@ -16607,186 +16247,6 @@
namespace DeviceEnergyManagementMode {
namespace Attributes {
-namespace StartUpMode {
-
-Protocols::InteractionModel::Status Get(EndpointId endpoint, DataModel::Nullable<uint8_t> & value)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- Traits::StorageType temp;
- uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp);
- Protocols::InteractionModel::Status status =
- emberAfReadAttribute(endpoint, Clusters::DeviceEnergyManagementMode::Id, Id, readable, sizeof(temp));
- VerifyOrReturnError(Protocols::InteractionModel::Status::Success == status, status);
- if (Traits::IsNullValue(temp))
- {
- value.SetNull();
- }
- else
- {
- value.SetNonNull() = Traits::StorageToWorking(temp);
- }
- return status;
-}
-
-Protocols::InteractionModel::Status Set(EndpointId endpoint, uint8_t value, MarkAttributeDirty markDirty)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- if (!Traits::CanRepresentValue(/* isNullable = */ true, value))
- {
- return Protocols::InteractionModel::Status::ConstraintError;
- }
- Traits::StorageType storageValue;
- Traits::WorkingToStorage(value, storageValue);
- uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue);
- return emberAfWriteAttribute(ConcreteAttributePath(endpoint, Clusters::DeviceEnergyManagementMode::Id, Id),
- EmberAfWriteDataInput(writable, ZCL_INT8U_ATTRIBUTE_TYPE).SetMarkDirty(markDirty));
-}
-
-Protocols::InteractionModel::Status Set(EndpointId endpoint, uint8_t value)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- if (!Traits::CanRepresentValue(/* isNullable = */ true, value))
- {
- return Protocols::InteractionModel::Status::ConstraintError;
- }
- Traits::StorageType storageValue;
- Traits::WorkingToStorage(value, storageValue);
- uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue);
- return emberAfWriteAttribute(endpoint, Clusters::DeviceEnergyManagementMode::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE);
-}
-
-Protocols::InteractionModel::Status SetNull(EndpointId endpoint, MarkAttributeDirty markDirty)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- Traits::StorageType value;
- Traits::SetNull(value);
- uint8_t * writable = Traits::ToAttributeStoreRepresentation(value);
- return emberAfWriteAttribute(ConcreteAttributePath(endpoint, Clusters::DeviceEnergyManagementMode::Id, Id),
- EmberAfWriteDataInput(writable, ZCL_INT8U_ATTRIBUTE_TYPE).SetMarkDirty(markDirty));
-}
-
-Protocols::InteractionModel::Status SetNull(EndpointId endpoint)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- Traits::StorageType value;
- Traits::SetNull(value);
- uint8_t * writable = Traits::ToAttributeStoreRepresentation(value);
- return emberAfWriteAttribute(endpoint, Clusters::DeviceEnergyManagementMode::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE);
-}
-
-Protocols::InteractionModel::Status Set(EndpointId endpoint, const chip::app::DataModel::Nullable<uint8_t> & value,
- MarkAttributeDirty markDirty)
-{
- if (value.IsNull())
- {
- return SetNull(endpoint, markDirty);
- }
-
- return Set(endpoint, value.Value(), markDirty);
-}
-
-Protocols::InteractionModel::Status Set(EndpointId endpoint, const chip::app::DataModel::Nullable<uint8_t> & value)
-{
- if (value.IsNull())
- {
- return SetNull(endpoint);
- }
-
- return Set(endpoint, value.Value());
-}
-
-} // namespace StartUpMode
-
-namespace OnMode {
-
-Protocols::InteractionModel::Status Get(EndpointId endpoint, DataModel::Nullable<uint8_t> & value)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- Traits::StorageType temp;
- uint8_t * readable = Traits::ToAttributeStoreRepresentation(temp);
- Protocols::InteractionModel::Status status =
- emberAfReadAttribute(endpoint, Clusters::DeviceEnergyManagementMode::Id, Id, readable, sizeof(temp));
- VerifyOrReturnError(Protocols::InteractionModel::Status::Success == status, status);
- if (Traits::IsNullValue(temp))
- {
- value.SetNull();
- }
- else
- {
- value.SetNonNull() = Traits::StorageToWorking(temp);
- }
- return status;
-}
-
-Protocols::InteractionModel::Status Set(EndpointId endpoint, uint8_t value, MarkAttributeDirty markDirty)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- if (!Traits::CanRepresentValue(/* isNullable = */ true, value))
- {
- return Protocols::InteractionModel::Status::ConstraintError;
- }
- Traits::StorageType storageValue;
- Traits::WorkingToStorage(value, storageValue);
- uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue);
- return emberAfWriteAttribute(ConcreteAttributePath(endpoint, Clusters::DeviceEnergyManagementMode::Id, Id),
- EmberAfWriteDataInput(writable, ZCL_INT8U_ATTRIBUTE_TYPE).SetMarkDirty(markDirty));
-}
-
-Protocols::InteractionModel::Status Set(EndpointId endpoint, uint8_t value)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- if (!Traits::CanRepresentValue(/* isNullable = */ true, value))
- {
- return Protocols::InteractionModel::Status::ConstraintError;
- }
- Traits::StorageType storageValue;
- Traits::WorkingToStorage(value, storageValue);
- uint8_t * writable = Traits::ToAttributeStoreRepresentation(storageValue);
- return emberAfWriteAttribute(endpoint, Clusters::DeviceEnergyManagementMode::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE);
-}
-
-Protocols::InteractionModel::Status SetNull(EndpointId endpoint, MarkAttributeDirty markDirty)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- Traits::StorageType value;
- Traits::SetNull(value);
- uint8_t * writable = Traits::ToAttributeStoreRepresentation(value);
- return emberAfWriteAttribute(ConcreteAttributePath(endpoint, Clusters::DeviceEnergyManagementMode::Id, Id),
- EmberAfWriteDataInput(writable, ZCL_INT8U_ATTRIBUTE_TYPE).SetMarkDirty(markDirty));
-}
-
-Protocols::InteractionModel::Status SetNull(EndpointId endpoint)
-{
- using Traits = NumericAttributeTraits<uint8_t>;
- Traits::StorageType value;
- Traits::SetNull(value);
- uint8_t * writable = Traits::ToAttributeStoreRepresentation(value);
- return emberAfWriteAttribute(endpoint, Clusters::DeviceEnergyManagementMode::Id, Id, writable, ZCL_INT8U_ATTRIBUTE_TYPE);
-}
-
-Protocols::InteractionModel::Status Set(EndpointId endpoint, const chip::app::DataModel::Nullable<uint8_t> & value,
- MarkAttributeDirty markDirty)
-{
- if (value.IsNull())
- {
- return SetNull(endpoint, markDirty);
- }
-
- return Set(endpoint, value.Value(), markDirty);
-}
-
-Protocols::InteractionModel::Status Set(EndpointId endpoint, const chip::app::DataModel::Nullable<uint8_t> & value)
-{
- if (value.IsNull())
- {
- return SetNull(endpoint);
- }
-
- return Set(endpoint, value.Value());
-}
-
-} // namespace OnMode
-
namespace ClusterRevision {
Protocols::InteractionModel::Status Get(EndpointId endpoint, uint16_t * value)
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 50d01db..e0a965b 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
@@ -2586,28 +2586,6 @@
namespace EnergyEvseMode {
namespace Attributes {
-namespace StartUpMode {
-Protocols::InteractionModel::Status Get(EndpointId endpoint, DataModel::Nullable<uint8_t> & value); // int8u
-Protocols::InteractionModel::Status Set(EndpointId endpoint, uint8_t value);
-Protocols::InteractionModel::Status Set(EndpointId endpoint, uint8_t value, MarkAttributeDirty markDirty);
-Protocols::InteractionModel::Status SetNull(EndpointId endpoint);
-Protocols::InteractionModel::Status SetNull(EndpointId endpoint, MarkAttributeDirty markDirty);
-Protocols::InteractionModel::Status Set(EndpointId endpoint, const chip::app::DataModel::Nullable<uint8_t> & value);
-Protocols::InteractionModel::Status Set(EndpointId endpoint, const chip::app::DataModel::Nullable<uint8_t> & value,
- MarkAttributeDirty markDirty);
-} // namespace StartUpMode
-
-namespace OnMode {
-Protocols::InteractionModel::Status Get(EndpointId endpoint, DataModel::Nullable<uint8_t> & value); // int8u
-Protocols::InteractionModel::Status Set(EndpointId endpoint, uint8_t value);
-Protocols::InteractionModel::Status Set(EndpointId endpoint, uint8_t value, MarkAttributeDirty markDirty);
-Protocols::InteractionModel::Status SetNull(EndpointId endpoint);
-Protocols::InteractionModel::Status SetNull(EndpointId endpoint, MarkAttributeDirty markDirty);
-Protocols::InteractionModel::Status Set(EndpointId endpoint, const chip::app::DataModel::Nullable<uint8_t> & value);
-Protocols::InteractionModel::Status Set(EndpointId endpoint, const chip::app::DataModel::Nullable<uint8_t> & value,
- MarkAttributeDirty markDirty);
-} // namespace OnMode
-
namespace ClusterRevision {
Protocols::InteractionModel::Status Get(EndpointId endpoint, uint16_t * value); // int16u
Protocols::InteractionModel::Status Set(EndpointId endpoint, uint16_t value);
@@ -2620,28 +2598,6 @@
namespace WaterHeaterMode {
namespace Attributes {
-namespace StartUpMode {
-Protocols::InteractionModel::Status Get(EndpointId endpoint, DataModel::Nullable<uint8_t> & value); // int8u
-Protocols::InteractionModel::Status Set(EndpointId endpoint, uint8_t value);
-Protocols::InteractionModel::Status Set(EndpointId endpoint, uint8_t value, MarkAttributeDirty markDirty);
-Protocols::InteractionModel::Status SetNull(EndpointId endpoint);
-Protocols::InteractionModel::Status SetNull(EndpointId endpoint, MarkAttributeDirty markDirty);
-Protocols::InteractionModel::Status Set(EndpointId endpoint, const chip::app::DataModel::Nullable<uint8_t> & value);
-Protocols::InteractionModel::Status Set(EndpointId endpoint, const chip::app::DataModel::Nullable<uint8_t> & value,
- MarkAttributeDirty markDirty);
-} // namespace StartUpMode
-
-namespace OnMode {
-Protocols::InteractionModel::Status Get(EndpointId endpoint, DataModel::Nullable<uint8_t> & value); // int8u
-Protocols::InteractionModel::Status Set(EndpointId endpoint, uint8_t value);
-Protocols::InteractionModel::Status Set(EndpointId endpoint, uint8_t value, MarkAttributeDirty markDirty);
-Protocols::InteractionModel::Status SetNull(EndpointId endpoint);
-Protocols::InteractionModel::Status SetNull(EndpointId endpoint, MarkAttributeDirty markDirty);
-Protocols::InteractionModel::Status Set(EndpointId endpoint, const chip::app::DataModel::Nullable<uint8_t> & value);
-Protocols::InteractionModel::Status Set(EndpointId endpoint, const chip::app::DataModel::Nullable<uint8_t> & value,
- MarkAttributeDirty markDirty);
-} // namespace OnMode
-
namespace ClusterRevision {
Protocols::InteractionModel::Status Get(EndpointId endpoint, uint16_t * value); // int16u
Protocols::InteractionModel::Status Set(EndpointId endpoint, uint16_t value);
@@ -2654,28 +2610,6 @@
namespace DeviceEnergyManagementMode {
namespace Attributes {
-namespace StartUpMode {
-Protocols::InteractionModel::Status Get(EndpointId endpoint, DataModel::Nullable<uint8_t> & value); // int8u
-Protocols::InteractionModel::Status Set(EndpointId endpoint, uint8_t value);
-Protocols::InteractionModel::Status Set(EndpointId endpoint, uint8_t value, MarkAttributeDirty markDirty);
-Protocols::InteractionModel::Status SetNull(EndpointId endpoint);
-Protocols::InteractionModel::Status SetNull(EndpointId endpoint, MarkAttributeDirty markDirty);
-Protocols::InteractionModel::Status Set(EndpointId endpoint, const chip::app::DataModel::Nullable<uint8_t> & value);
-Protocols::InteractionModel::Status Set(EndpointId endpoint, const chip::app::DataModel::Nullable<uint8_t> & value,
- MarkAttributeDirty markDirty);
-} // namespace StartUpMode
-
-namespace OnMode {
-Protocols::InteractionModel::Status Get(EndpointId endpoint, DataModel::Nullable<uint8_t> & value); // int8u
-Protocols::InteractionModel::Status Set(EndpointId endpoint, uint8_t value);
-Protocols::InteractionModel::Status Set(EndpointId endpoint, uint8_t value, MarkAttributeDirty markDirty);
-Protocols::InteractionModel::Status SetNull(EndpointId endpoint);
-Protocols::InteractionModel::Status SetNull(EndpointId endpoint, MarkAttributeDirty markDirty);
-Protocols::InteractionModel::Status Set(EndpointId endpoint, const chip::app::DataModel::Nullable<uint8_t> & value);
-Protocols::InteractionModel::Status Set(EndpointId endpoint, const chip::app::DataModel::Nullable<uint8_t> & value,
- MarkAttributeDirty markDirty);
-} // namespace OnMode
-
namespace ClusterRevision {
Protocols::InteractionModel::Status Get(EndpointId endpoint, uint16_t * value); // int16u
Protocols::InteractionModel::Status Set(EndpointId endpoint, uint16_t value);
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 dd7986e..586eeb9 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
@@ -3255,6 +3255,7 @@
kManual = 0x4000,
kTimeOfUse = 0x4001,
kSolarCharging = 0x4002,
+ kV2x = 0x4003,
// kUnknownEnumValue intentionally not defined. This enum never goes
// through DataModel::Decode, likely because it is a part of a derived
// cluster. As a result having kUnknownEnumValue in this enum is error
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 c944864..6884315 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
@@ -18246,10 +18246,6 @@
return DataModel::Decode(reader, supportedModes);
case Attributes::CurrentMode::TypeInfo::GetAttributeId():
return DataModel::Decode(reader, currentMode);
- case Attributes::StartUpMode::TypeInfo::GetAttributeId():
- return DataModel::Decode(reader, startUpMode);
- case Attributes::OnMode::TypeInfo::GetAttributeId():
- return DataModel::Decode(reader, onMode);
case Attributes::GeneratedCommandList::TypeInfo::GetAttributeId():
return DataModel::Decode(reader, generatedCommandList);
case Attributes::AcceptedCommandList::TypeInfo::GetAttributeId():
@@ -18359,10 +18355,6 @@
return DataModel::Decode(reader, supportedModes);
case Attributes::CurrentMode::TypeInfo::GetAttributeId():
return DataModel::Decode(reader, currentMode);
- case Attributes::StartUpMode::TypeInfo::GetAttributeId():
- return DataModel::Decode(reader, startUpMode);
- case Attributes::OnMode::TypeInfo::GetAttributeId():
- return DataModel::Decode(reader, onMode);
case Attributes::GeneratedCommandList::TypeInfo::GetAttributeId():
return DataModel::Decode(reader, generatedCommandList);
case Attributes::AcceptedCommandList::TypeInfo::GetAttributeId():
@@ -18472,10 +18464,6 @@
return DataModel::Decode(reader, supportedModes);
case Attributes::CurrentMode::TypeInfo::GetAttributeId():
return DataModel::Decode(reader, currentMode);
- case Attributes::StartUpMode::TypeInfo::GetAttributeId():
- return DataModel::Decode(reader, startUpMode);
- case Attributes::OnMode::TypeInfo::GetAttributeId():
- return DataModel::Decode(reader, onMode);
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 dd701f8..f2671ad 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
@@ -24788,30 +24788,6 @@
static constexpr bool MustUseTimedWrite() { return false; }
};
} // namespace CurrentMode
-namespace StartUpMode {
-struct TypeInfo
-{
- using Type = chip::app::DataModel::Nullable<uint8_t>;
- using DecodableType = chip::app::DataModel::Nullable<uint8_t>;
- using DecodableArgType = const chip::app::DataModel::Nullable<uint8_t> &;
-
- static constexpr ClusterId GetClusterId() { return Clusters::EnergyEvseMode::Id; }
- static constexpr AttributeId GetAttributeId() { return Attributes::StartUpMode::Id; }
- static constexpr bool MustUseTimedWrite() { return false; }
-};
-} // namespace StartUpMode
-namespace OnMode {
-struct TypeInfo
-{
- using Type = chip::app::DataModel::Nullable<uint8_t>;
- using DecodableType = chip::app::DataModel::Nullable<uint8_t>;
- using DecodableArgType = const chip::app::DataModel::Nullable<uint8_t> &;
-
- static constexpr ClusterId GetClusterId() { return Clusters::EnergyEvseMode::Id; }
- static constexpr AttributeId GetAttributeId() { return Attributes::OnMode::Id; }
- static constexpr bool MustUseTimedWrite() { return false; }
-};
-} // namespace OnMode
namespace GeneratedCommandList {
struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo
{
@@ -24859,8 +24835,6 @@
Attributes::SupportedModes::TypeInfo::DecodableType supportedModes;
Attributes::CurrentMode::TypeInfo::DecodableType currentMode = static_cast<uint8_t>(0);
- Attributes::StartUpMode::TypeInfo::DecodableType startUpMode;
- Attributes::OnMode::TypeInfo::DecodableType onMode;
Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList;
Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList;
Attributes::EventList::TypeInfo::DecodableType eventList;
@@ -24990,30 +24964,6 @@
static constexpr bool MustUseTimedWrite() { return false; }
};
} // namespace CurrentMode
-namespace StartUpMode {
-struct TypeInfo
-{
- using Type = chip::app::DataModel::Nullable<uint8_t>;
- using DecodableType = chip::app::DataModel::Nullable<uint8_t>;
- using DecodableArgType = const chip::app::DataModel::Nullable<uint8_t> &;
-
- static constexpr ClusterId GetClusterId() { return Clusters::WaterHeaterMode::Id; }
- static constexpr AttributeId GetAttributeId() { return Attributes::StartUpMode::Id; }
- static constexpr bool MustUseTimedWrite() { return false; }
-};
-} // namespace StartUpMode
-namespace OnMode {
-struct TypeInfo
-{
- using Type = chip::app::DataModel::Nullable<uint8_t>;
- using DecodableType = chip::app::DataModel::Nullable<uint8_t>;
- using DecodableArgType = const chip::app::DataModel::Nullable<uint8_t> &;
-
- static constexpr ClusterId GetClusterId() { return Clusters::WaterHeaterMode::Id; }
- static constexpr AttributeId GetAttributeId() { return Attributes::OnMode::Id; }
- static constexpr bool MustUseTimedWrite() { return false; }
-};
-} // namespace OnMode
namespace GeneratedCommandList {
struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo
{
@@ -25061,8 +25011,6 @@
Attributes::SupportedModes::TypeInfo::DecodableType supportedModes;
Attributes::CurrentMode::TypeInfo::DecodableType currentMode = static_cast<uint8_t>(0);
- Attributes::StartUpMode::TypeInfo::DecodableType startUpMode;
- Attributes::OnMode::TypeInfo::DecodableType onMode;
Attributes::GeneratedCommandList::TypeInfo::DecodableType generatedCommandList;
Attributes::AcceptedCommandList::TypeInfo::DecodableType acceptedCommandList;
Attributes::EventList::TypeInfo::DecodableType eventList;
@@ -25192,30 +25140,6 @@
static constexpr bool MustUseTimedWrite() { return false; }
};
} // namespace CurrentMode
-namespace StartUpMode {
-struct TypeInfo
-{
- using Type = chip::app::DataModel::Nullable<uint8_t>;
- using DecodableType = chip::app::DataModel::Nullable<uint8_t>;
- using DecodableArgType = const chip::app::DataModel::Nullable<uint8_t> &;
-
- static constexpr ClusterId GetClusterId() { return Clusters::DeviceEnergyManagementMode::Id; }
- static constexpr AttributeId GetAttributeId() { return Attributes::StartUpMode::Id; }
- static constexpr bool MustUseTimedWrite() { return false; }
-};
-} // namespace StartUpMode
-namespace OnMode {
-struct TypeInfo
-{
- using Type = chip::app::DataModel::Nullable<uint8_t>;
- using DecodableType = chip::app::DataModel::Nullable<uint8_t>;
- using DecodableArgType = const chip::app::DataModel::Nullable<uint8_t> &;
-
- static constexpr ClusterId GetClusterId() { return Clusters::DeviceEnergyManagementMode::Id; }
- static constexpr AttributeId GetAttributeId() { return Attributes::OnMode::Id; }
- static constexpr bool MustUseTimedWrite() { return false; }
-};
-} // namespace OnMode
namespace GeneratedCommandList {
struct TypeInfo : public Clusters::Globals::Attributes::GeneratedCommandList::TypeInfo
{
@@ -25263,8 +25187,6 @@
Attributes::SupportedModes::TypeInfo::DecodableType supportedModes;
Attributes::CurrentMode::TypeInfo::DecodableType currentMode = static_cast<uint8_t>(0);
- Attributes::StartUpMode::TypeInfo::DecodableType startUpMode;
- Attributes::OnMode::TypeInfo::DecodableType onMode;
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 d3cd9ef..030d38c 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
@@ -4170,14 +4170,6 @@
static constexpr AttributeId Id = 0x00000001;
} // namespace CurrentMode
-namespace StartUpMode {
-static constexpr AttributeId Id = 0x00000002;
-} // namespace StartUpMode
-
-namespace OnMode {
-static constexpr AttributeId Id = 0x00000003;
-} // namespace OnMode
-
namespace GeneratedCommandList {
static constexpr AttributeId Id = Globals::Attributes::GeneratedCommandList::Id;
} // namespace GeneratedCommandList
@@ -4216,14 +4208,6 @@
static constexpr AttributeId Id = 0x00000001;
} // namespace CurrentMode
-namespace StartUpMode {
-static constexpr AttributeId Id = 0x00000002;
-} // namespace StartUpMode
-
-namespace OnMode {
-static constexpr AttributeId Id = 0x00000003;
-} // namespace OnMode
-
namespace GeneratedCommandList {
static constexpr AttributeId Id = Globals::Attributes::GeneratedCommandList::Id;
} // namespace GeneratedCommandList
@@ -4262,14 +4246,6 @@
static constexpr AttributeId Id = 0x00000001;
} // namespace CurrentMode
-namespace StartUpMode {
-static constexpr AttributeId Id = 0x00000002;
-} // namespace StartUpMode
-
-namespace OnMode {
-static constexpr AttributeId Id = 0x00000003;
-} // namespace OnMode
-
namespace GeneratedCommandList {
static constexpr AttributeId Id = Globals::Attributes::GeneratedCommandList::Id;
} // namespace GeneratedCommandList
diff --git a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h
index ddb336f..244bc72 100644
--- a/zzz_generated/chip-tool/zap-generated/cluster/Commands.h
+++ b/zzz_generated/chip-tool/zap-generated/cluster/Commands.h
@@ -7829,8 +7829,6 @@
| Attributes: | |
| * SupportedModes | 0x0000 |
| * CurrentMode | 0x0001 |
-| * StartUpMode | 0x0002 |
-| * OnMode | 0x0003 |
| * GeneratedCommandList | 0xFFF8 |
| * AcceptedCommandList | 0xFFF9 |
| * EventList | 0xFFFA |
@@ -7887,8 +7885,6 @@
| Attributes: | |
| * SupportedModes | 0x0000 |
| * CurrentMode | 0x0001 |
-| * StartUpMode | 0x0002 |
-| * OnMode | 0x0003 |
| * GeneratedCommandList | 0xFFF8 |
| * AcceptedCommandList | 0xFFF9 |
| * EventList | 0xFFFA |
@@ -7945,8 +7941,6 @@
| Attributes: | |
| * SupportedModes | 0x0000 |
| * CurrentMode | 0x0001 |
-| * StartUpMode | 0x0002 |
-| * OnMode | 0x0003 |
| * GeneratedCommandList | 0xFFF8 |
| * AcceptedCommandList | 0xFFF9 |
| * EventList | 0xFFFA |
@@ -22712,8 +22706,6 @@
make_unique<ReadAttribute>(Id, credsIssuerConfig), //
make_unique<ReadAttribute>(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), //
make_unique<ReadAttribute>(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), //
- make_unique<ReadAttribute>(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), //
- make_unique<ReadAttribute>(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), //
make_unique<ReadAttribute>(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), //
make_unique<ReadAttribute>(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), //
make_unique<ReadAttribute>(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), //
@@ -22726,10 +22718,6 @@
Id, "supported-modes", Attributes::SupportedModes::Id, WriteCommandType::kForceWrite, credsIssuerConfig), //
make_unique<WriteAttribute<uint8_t>>(Id, "current-mode", 0, UINT8_MAX, Attributes::CurrentMode::Id,
WriteCommandType::kForceWrite, credsIssuerConfig), //
- make_unique<WriteAttribute<chip::app::DataModel::Nullable<uint8_t>>>(
- Id, "start-up-mode", 0, UINT8_MAX, Attributes::StartUpMode::Id, WriteCommandType::kWrite, credsIssuerConfig), //
- make_unique<WriteAttribute<chip::app::DataModel::Nullable<uint8_t>>>(Id, "on-mode", 0, UINT8_MAX, Attributes::OnMode::Id,
- WriteCommandType::kWrite, credsIssuerConfig), //
make_unique<WriteAttributeAsComplex<chip::app::DataModel::List<const chip::CommandId>>>(
Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite,
credsIssuerConfig), //
@@ -22746,8 +22734,6 @@
make_unique<SubscribeAttribute>(Id, credsIssuerConfig), //
make_unique<SubscribeAttribute>(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), //
make_unique<SubscribeAttribute>(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), //
- make_unique<SubscribeAttribute>(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), //
- make_unique<SubscribeAttribute>(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), //
make_unique<SubscribeAttribute>(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), //
make_unique<SubscribeAttribute>(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), //
make_unique<SubscribeAttribute>(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), //
@@ -22781,8 +22767,6 @@
make_unique<ReadAttribute>(Id, credsIssuerConfig), //
make_unique<ReadAttribute>(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), //
make_unique<ReadAttribute>(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), //
- make_unique<ReadAttribute>(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), //
- make_unique<ReadAttribute>(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), //
make_unique<ReadAttribute>(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), //
make_unique<ReadAttribute>(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), //
make_unique<ReadAttribute>(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), //
@@ -22795,10 +22779,6 @@
Id, "supported-modes", Attributes::SupportedModes::Id, WriteCommandType::kForceWrite, credsIssuerConfig), //
make_unique<WriteAttribute<uint8_t>>(Id, "current-mode", 0, UINT8_MAX, Attributes::CurrentMode::Id,
WriteCommandType::kForceWrite, credsIssuerConfig), //
- make_unique<WriteAttribute<chip::app::DataModel::Nullable<uint8_t>>>(
- Id, "start-up-mode", 0, UINT8_MAX, Attributes::StartUpMode::Id, WriteCommandType::kWrite, credsIssuerConfig), //
- make_unique<WriteAttribute<chip::app::DataModel::Nullable<uint8_t>>>(Id, "on-mode", 0, UINT8_MAX, Attributes::OnMode::Id,
- WriteCommandType::kWrite, credsIssuerConfig), //
make_unique<WriteAttributeAsComplex<chip::app::DataModel::List<const chip::CommandId>>>(
Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite,
credsIssuerConfig), //
@@ -22815,8 +22795,6 @@
make_unique<SubscribeAttribute>(Id, credsIssuerConfig), //
make_unique<SubscribeAttribute>(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), //
make_unique<SubscribeAttribute>(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), //
- make_unique<SubscribeAttribute>(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), //
- make_unique<SubscribeAttribute>(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), //
make_unique<SubscribeAttribute>(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), //
make_unique<SubscribeAttribute>(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), //
make_unique<SubscribeAttribute>(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), //
@@ -22850,8 +22828,6 @@
make_unique<ReadAttribute>(Id, credsIssuerConfig), //
make_unique<ReadAttribute>(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), //
make_unique<ReadAttribute>(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), //
- make_unique<ReadAttribute>(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), //
- make_unique<ReadAttribute>(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), //
make_unique<ReadAttribute>(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), //
make_unique<ReadAttribute>(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), //
make_unique<ReadAttribute>(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), //
@@ -22864,10 +22840,6 @@
Id, "supported-modes", Attributes::SupportedModes::Id, WriteCommandType::kForceWrite, credsIssuerConfig), //
make_unique<WriteAttribute<uint8_t>>(Id, "current-mode", 0, UINT8_MAX, Attributes::CurrentMode::Id,
WriteCommandType::kForceWrite, credsIssuerConfig), //
- make_unique<WriteAttribute<chip::app::DataModel::Nullable<uint8_t>>>(
- Id, "start-up-mode", 0, UINT8_MAX, Attributes::StartUpMode::Id, WriteCommandType::kWrite, credsIssuerConfig), //
- make_unique<WriteAttribute<chip::app::DataModel::Nullable<uint8_t>>>(Id, "on-mode", 0, UINT8_MAX, Attributes::OnMode::Id,
- WriteCommandType::kWrite, credsIssuerConfig), //
make_unique<WriteAttributeAsComplex<chip::app::DataModel::List<const chip::CommandId>>>(
Id, "generated-command-list", Attributes::GeneratedCommandList::Id, WriteCommandType::kForceWrite,
credsIssuerConfig), //
@@ -22884,8 +22856,6 @@
make_unique<SubscribeAttribute>(Id, credsIssuerConfig), //
make_unique<SubscribeAttribute>(Id, "supported-modes", Attributes::SupportedModes::Id, credsIssuerConfig), //
make_unique<SubscribeAttribute>(Id, "current-mode", Attributes::CurrentMode::Id, credsIssuerConfig), //
- make_unique<SubscribeAttribute>(Id, "start-up-mode", Attributes::StartUpMode::Id, credsIssuerConfig), //
- make_unique<SubscribeAttribute>(Id, "on-mode", Attributes::OnMode::Id, credsIssuerConfig), //
make_unique<SubscribeAttribute>(Id, "generated-command-list", Attributes::GeneratedCommandList::Id, credsIssuerConfig), //
make_unique<SubscribeAttribute>(Id, "accepted-command-list", Attributes::AcceptedCommandList::Id, credsIssuerConfig), //
make_unique<SubscribeAttribute>(Id, "event-list", Attributes::EventList::Id, credsIssuerConfig), //
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 d49df9e..afd4cc6 100644
--- a/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp
+++ b/zzz_generated/chip-tool/zap-generated/cluster/logging/DataModelLogger.cpp
@@ -15147,16 +15147,6 @@
ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value));
return DataModelLogger::LogValue("CurrentMode", 1, value);
}
- case EnergyEvseMode::Attributes::StartUpMode::Id: {
- chip::app::DataModel::Nullable<uint8_t> value;
- ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value));
- return DataModelLogger::LogValue("StartUpMode", 1, value);
- }
- case EnergyEvseMode::Attributes::OnMode::Id: {
- chip::app::DataModel::Nullable<uint8_t> value;
- ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value));
- return DataModelLogger::LogValue("OnMode", 1, value);
- }
case EnergyEvseMode::Attributes::GeneratedCommandList::Id: {
chip::app::DataModel::DecodableList<chip::CommandId> value;
ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value));
@@ -15204,16 +15194,6 @@
ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value));
return DataModelLogger::LogValue("CurrentMode", 1, value);
}
- case WaterHeaterMode::Attributes::StartUpMode::Id: {
- chip::app::DataModel::Nullable<uint8_t> value;
- ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value));
- return DataModelLogger::LogValue("StartUpMode", 1, value);
- }
- case WaterHeaterMode::Attributes::OnMode::Id: {
- chip::app::DataModel::Nullable<uint8_t> value;
- ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value));
- return DataModelLogger::LogValue("OnMode", 1, value);
- }
case WaterHeaterMode::Attributes::GeneratedCommandList::Id: {
chip::app::DataModel::DecodableList<chip::CommandId> value;
ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value));
@@ -15262,16 +15242,6 @@
ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value));
return DataModelLogger::LogValue("CurrentMode", 1, value);
}
- case DeviceEnergyManagementMode::Attributes::StartUpMode::Id: {
- chip::app::DataModel::Nullable<uint8_t> value;
- ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value));
- return DataModelLogger::LogValue("StartUpMode", 1, value);
- }
- case DeviceEnergyManagementMode::Attributes::OnMode::Id: {
- chip::app::DataModel::Nullable<uint8_t> value;
- ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value));
- return DataModelLogger::LogValue("OnMode", 1, value);
- }
case DeviceEnergyManagementMode::Attributes::GeneratedCommandList::Id: {
chip::app::DataModel::DecodableList<chip::CommandId> value;
ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value));
diff --git a/zzz_generated/chip-tool/zap-generated/cluster/logging/EntryToText.cpp b/zzz_generated/chip-tool/zap-generated/cluster/logging/EntryToText.cpp
index 5aa0a78..faafa6d 100644
--- a/zzz_generated/chip-tool/zap-generated/cluster/logging/EntryToText.cpp
+++ b/zzz_generated/chip-tool/zap-generated/cluster/logging/EntryToText.cpp
@@ -2635,10 +2635,6 @@
return "SupportedModes";
case chip::app::Clusters::EnergyEvseMode::Attributes::CurrentMode::Id:
return "CurrentMode";
- case chip::app::Clusters::EnergyEvseMode::Attributes::StartUpMode::Id:
- return "StartUpMode";
- case chip::app::Clusters::EnergyEvseMode::Attributes::OnMode::Id:
- return "OnMode";
case chip::app::Clusters::EnergyEvseMode::Attributes::GeneratedCommandList::Id:
return "GeneratedCommandList";
case chip::app::Clusters::EnergyEvseMode::Attributes::AcceptedCommandList::Id:
@@ -2662,10 +2658,6 @@
return "SupportedModes";
case chip::app::Clusters::WaterHeaterMode::Attributes::CurrentMode::Id:
return "CurrentMode";
- case chip::app::Clusters::WaterHeaterMode::Attributes::StartUpMode::Id:
- return "StartUpMode";
- case chip::app::Clusters::WaterHeaterMode::Attributes::OnMode::Id:
- return "OnMode";
case chip::app::Clusters::WaterHeaterMode::Attributes::GeneratedCommandList::Id:
return "GeneratedCommandList";
case chip::app::Clusters::WaterHeaterMode::Attributes::AcceptedCommandList::Id:
@@ -2689,10 +2681,6 @@
return "SupportedModes";
case chip::app::Clusters::DeviceEnergyManagementMode::Attributes::CurrentMode::Id:
return "CurrentMode";
- case chip::app::Clusters::DeviceEnergyManagementMode::Attributes::StartUpMode::Id:
- return "StartUpMode";
- case chip::app::Clusters::DeviceEnergyManagementMode::Attributes::OnMode::Id:
- return "OnMode";
case chip::app::Clusters::DeviceEnergyManagementMode::Attributes::GeneratedCommandList::Id:
return "GeneratedCommandList";
case chip::app::Clusters::DeviceEnergyManagementMode::Attributes::AcceptedCommandList::Id:
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 ac56d68..cecd156 100644
--- a/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h
+++ b/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h
@@ -88045,8 +88045,6 @@
| Attributes: | |
| * SupportedModes | 0x0000 |
| * CurrentMode | 0x0001 |
-| * StartUpMode | 0x0002 |
-| * OnMode | 0x0003 |
| * GeneratedCommandList | 0xFFF8 |
| * AcceptedCommandList | 0xFFF9 |
| * EventList | 0xFFFA |
@@ -88290,264 +88288,6 @@
#if MTR_ENABLE_PROVISIONAL
/*
- * Attribute StartUpMode
- */
-class ReadEnergyEvseModeStartUpMode : public ReadAttribute {
-public:
- ReadEnergyEvseModeStartUpMode()
- : ReadAttribute("start-up-mode")
- {
- }
-
- ~ReadEnergyEvseModeStartUpMode()
- {
- }
-
- CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override
- {
- constexpr chip::ClusterId clusterId = chip::app::Clusters::EnergyEvseMode::Id;
- constexpr chip::AttributeId attributeId = chip::app::Clusters::EnergyEvseMode::Attributes::StartUpMode::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_WITH_AUTORELEASE_POOL);
- __auto_type * cluster = [[MTRBaseClusterEnergyEVSEMode alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue];
- [cluster readAttributeStartUpModeWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable error) {
- NSLog(@"EnergyEVSEMode.StartUpMode response %@", [value description]);
- if (error == nil) {
- RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value);
- } else {
- LogNSError("EnergyEVSEMode StartUpMode read Error", error);
- RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error);
- }
- SetCommandExitStatus(error);
- }];
- return CHIP_NO_ERROR;
- }
-};
-
-class WriteEnergyEvseModeStartUpMode : public WriteAttribute {
-public:
- WriteEnergyEvseModeStartUpMode()
- : WriteAttribute("start-up-mode")
- {
- AddArgument("attr-name", "start-up-mode");
- AddArgument("attr-value", 0, UINT8_MAX, &mValue);
- WriteAttribute::AddArguments();
- }
-
- ~WriteEnergyEvseModeStartUpMode()
- {
- }
-
- CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override
- {
- constexpr chip::ClusterId clusterId = chip::app::Clusters::EnergyEvseMode::Id;
- constexpr chip::AttributeId attributeId = chip::app::Clusters::EnergyEvseMode::Attributes::StartUpMode::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_WITH_AUTORELEASE_POOL);
- __auto_type * cluster = [[MTRBaseClusterEnergyEVSEMode 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 * _Nullable value = nil;
- if (!mValue.IsNull()) {
- value = [NSNumber numberWithUnsignedChar:mValue.Value()];
- }
-
- [cluster writeAttributeStartUpModeWithValue:value params:params completion:^(NSError * _Nullable error) {
- if (error != nil) {
- LogNSError("EnergyEVSEMode StartUpMode write Error", error);
- RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error);
- }
- SetCommandExitStatus(error);
- }];
- return CHIP_NO_ERROR;
- }
-
-private:
- chip::app::DataModel::Nullable<uint8_t> mValue;
-};
-
-class SubscribeAttributeEnergyEvseModeStartUpMode : public SubscribeAttribute {
-public:
- SubscribeAttributeEnergyEvseModeStartUpMode()
- : SubscribeAttribute("start-up-mode")
- {
- }
-
- ~SubscribeAttributeEnergyEvseModeStartUpMode()
- {
- }
-
- CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override
- {
- constexpr chip::ClusterId clusterId = chip::app::Clusters::EnergyEvseMode::Id;
- constexpr chip::CommandId attributeId = chip::app::Clusters::EnergyEvseMode::Attributes::StartUpMode::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_WITH_AUTORELEASE_POOL);
- __auto_type * cluster = [[MTRBaseClusterEnergyEVSEMode 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 subscribeAttributeStartUpModeWithParams:params
- subscriptionEstablished:^() { mSubscriptionEstablished = YES; }
- reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) {
- NSLog(@"EnergyEVSEMode.StartUpMode 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 OnMode
- */
-class ReadEnergyEvseModeOnMode : public ReadAttribute {
-public:
- ReadEnergyEvseModeOnMode()
- : ReadAttribute("on-mode")
- {
- }
-
- ~ReadEnergyEvseModeOnMode()
- {
- }
-
- CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override
- {
- constexpr chip::ClusterId clusterId = chip::app::Clusters::EnergyEvseMode::Id;
- constexpr chip::AttributeId attributeId = chip::app::Clusters::EnergyEvseMode::Attributes::OnMode::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_WITH_AUTORELEASE_POOL);
- __auto_type * cluster = [[MTRBaseClusterEnergyEVSEMode alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue];
- [cluster readAttributeOnModeWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable error) {
- NSLog(@"EnergyEVSEMode.OnMode response %@", [value description]);
- if (error == nil) {
- RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value);
- } else {
- LogNSError("EnergyEVSEMode OnMode read Error", error);
- RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error);
- }
- SetCommandExitStatus(error);
- }];
- return CHIP_NO_ERROR;
- }
-};
-
-class WriteEnergyEvseModeOnMode : public WriteAttribute {
-public:
- WriteEnergyEvseModeOnMode()
- : WriteAttribute("on-mode")
- {
- AddArgument("attr-name", "on-mode");
- AddArgument("attr-value", 0, UINT8_MAX, &mValue);
- WriteAttribute::AddArguments();
- }
-
- ~WriteEnergyEvseModeOnMode()
- {
- }
-
- CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override
- {
- constexpr chip::ClusterId clusterId = chip::app::Clusters::EnergyEvseMode::Id;
- constexpr chip::AttributeId attributeId = chip::app::Clusters::EnergyEvseMode::Attributes::OnMode::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_WITH_AUTORELEASE_POOL);
- __auto_type * cluster = [[MTRBaseClusterEnergyEVSEMode 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 * _Nullable value = nil;
- if (!mValue.IsNull()) {
- value = [NSNumber numberWithUnsignedChar:mValue.Value()];
- }
-
- [cluster writeAttributeOnModeWithValue:value params:params completion:^(NSError * _Nullable error) {
- if (error != nil) {
- LogNSError("EnergyEVSEMode OnMode write Error", error);
- RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error);
- }
- SetCommandExitStatus(error);
- }];
- return CHIP_NO_ERROR;
- }
-
-private:
- chip::app::DataModel::Nullable<uint8_t> mValue;
-};
-
-class SubscribeAttributeEnergyEvseModeOnMode : public SubscribeAttribute {
-public:
- SubscribeAttributeEnergyEvseModeOnMode()
- : SubscribeAttribute("on-mode")
- {
- }
-
- ~SubscribeAttributeEnergyEvseModeOnMode()
- {
- }
-
- CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override
- {
- constexpr chip::ClusterId clusterId = chip::app::Clusters::EnergyEvseMode::Id;
- constexpr chip::CommandId attributeId = chip::app::Clusters::EnergyEvseMode::Attributes::OnMode::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_WITH_AUTORELEASE_POOL);
- __auto_type * cluster = [[MTRBaseClusterEnergyEVSEMode 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 subscribeAttributeOnModeWithParams:params
- subscriptionEstablished:^() { mSubscriptionEstablished = YES; }
- reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) {
- NSLog(@"EnergyEVSEMode.OnMode 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 GeneratedCommandList
*/
class ReadEnergyEvseModeGeneratedCommandList : public ReadAttribute {
@@ -89066,8 +88806,6 @@
| Attributes: | |
| * SupportedModes | 0x0000 |
| * CurrentMode | 0x0001 |
-| * StartUpMode | 0x0002 |
-| * OnMode | 0x0003 |
| * GeneratedCommandList | 0xFFF8 |
| * AcceptedCommandList | 0xFFF9 |
| * EventList | 0xFFFA |
@@ -89311,264 +89049,6 @@
#if MTR_ENABLE_PROVISIONAL
/*
- * Attribute StartUpMode
- */
-class ReadWaterHeaterModeStartUpMode : public ReadAttribute {
-public:
- ReadWaterHeaterModeStartUpMode()
- : ReadAttribute("start-up-mode")
- {
- }
-
- ~ReadWaterHeaterModeStartUpMode()
- {
- }
-
- CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override
- {
- constexpr chip::ClusterId clusterId = chip::app::Clusters::WaterHeaterMode::Id;
- constexpr chip::AttributeId attributeId = chip::app::Clusters::WaterHeaterMode::Attributes::StartUpMode::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_WITH_AUTORELEASE_POOL);
- __auto_type * cluster = [[MTRBaseClusterWaterHeaterMode alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue];
- [cluster readAttributeStartUpModeWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable error) {
- NSLog(@"WaterHeaterMode.StartUpMode response %@", [value description]);
- if (error == nil) {
- RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value);
- } else {
- LogNSError("WaterHeaterMode StartUpMode read Error", error);
- RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error);
- }
- SetCommandExitStatus(error);
- }];
- return CHIP_NO_ERROR;
- }
-};
-
-class WriteWaterHeaterModeStartUpMode : public WriteAttribute {
-public:
- WriteWaterHeaterModeStartUpMode()
- : WriteAttribute("start-up-mode")
- {
- AddArgument("attr-name", "start-up-mode");
- AddArgument("attr-value", 0, UINT8_MAX, &mValue);
- WriteAttribute::AddArguments();
- }
-
- ~WriteWaterHeaterModeStartUpMode()
- {
- }
-
- CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override
- {
- constexpr chip::ClusterId clusterId = chip::app::Clusters::WaterHeaterMode::Id;
- constexpr chip::AttributeId attributeId = chip::app::Clusters::WaterHeaterMode::Attributes::StartUpMode::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_WITH_AUTORELEASE_POOL);
- __auto_type * cluster = [[MTRBaseClusterWaterHeaterMode 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 * _Nullable value = nil;
- if (!mValue.IsNull()) {
- value = [NSNumber numberWithUnsignedChar:mValue.Value()];
- }
-
- [cluster writeAttributeStartUpModeWithValue:value params:params completion:^(NSError * _Nullable error) {
- if (error != nil) {
- LogNSError("WaterHeaterMode StartUpMode write Error", error);
- RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error);
- }
- SetCommandExitStatus(error);
- }];
- return CHIP_NO_ERROR;
- }
-
-private:
- chip::app::DataModel::Nullable<uint8_t> mValue;
-};
-
-class SubscribeAttributeWaterHeaterModeStartUpMode : public SubscribeAttribute {
-public:
- SubscribeAttributeWaterHeaterModeStartUpMode()
- : SubscribeAttribute("start-up-mode")
- {
- }
-
- ~SubscribeAttributeWaterHeaterModeStartUpMode()
- {
- }
-
- CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override
- {
- constexpr chip::ClusterId clusterId = chip::app::Clusters::WaterHeaterMode::Id;
- constexpr chip::CommandId attributeId = chip::app::Clusters::WaterHeaterMode::Attributes::StartUpMode::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_WITH_AUTORELEASE_POOL);
- __auto_type * cluster = [[MTRBaseClusterWaterHeaterMode 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 subscribeAttributeStartUpModeWithParams:params
- subscriptionEstablished:^() { mSubscriptionEstablished = YES; }
- reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) {
- NSLog(@"WaterHeaterMode.StartUpMode 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 OnMode
- */
-class ReadWaterHeaterModeOnMode : public ReadAttribute {
-public:
- ReadWaterHeaterModeOnMode()
- : ReadAttribute("on-mode")
- {
- }
-
- ~ReadWaterHeaterModeOnMode()
- {
- }
-
- CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override
- {
- constexpr chip::ClusterId clusterId = chip::app::Clusters::WaterHeaterMode::Id;
- constexpr chip::AttributeId attributeId = chip::app::Clusters::WaterHeaterMode::Attributes::OnMode::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_WITH_AUTORELEASE_POOL);
- __auto_type * cluster = [[MTRBaseClusterWaterHeaterMode alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue];
- [cluster readAttributeOnModeWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable error) {
- NSLog(@"WaterHeaterMode.OnMode response %@", [value description]);
- if (error == nil) {
- RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value);
- } else {
- LogNSError("WaterHeaterMode OnMode read Error", error);
- RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error);
- }
- SetCommandExitStatus(error);
- }];
- return CHIP_NO_ERROR;
- }
-};
-
-class WriteWaterHeaterModeOnMode : public WriteAttribute {
-public:
- WriteWaterHeaterModeOnMode()
- : WriteAttribute("on-mode")
- {
- AddArgument("attr-name", "on-mode");
- AddArgument("attr-value", 0, UINT8_MAX, &mValue);
- WriteAttribute::AddArguments();
- }
-
- ~WriteWaterHeaterModeOnMode()
- {
- }
-
- CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override
- {
- constexpr chip::ClusterId clusterId = chip::app::Clusters::WaterHeaterMode::Id;
- constexpr chip::AttributeId attributeId = chip::app::Clusters::WaterHeaterMode::Attributes::OnMode::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_WITH_AUTORELEASE_POOL);
- __auto_type * cluster = [[MTRBaseClusterWaterHeaterMode 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 * _Nullable value = nil;
- if (!mValue.IsNull()) {
- value = [NSNumber numberWithUnsignedChar:mValue.Value()];
- }
-
- [cluster writeAttributeOnModeWithValue:value params:params completion:^(NSError * _Nullable error) {
- if (error != nil) {
- LogNSError("WaterHeaterMode OnMode write Error", error);
- RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error);
- }
- SetCommandExitStatus(error);
- }];
- return CHIP_NO_ERROR;
- }
-
-private:
- chip::app::DataModel::Nullable<uint8_t> mValue;
-};
-
-class SubscribeAttributeWaterHeaterModeOnMode : public SubscribeAttribute {
-public:
- SubscribeAttributeWaterHeaterModeOnMode()
- : SubscribeAttribute("on-mode")
- {
- }
-
- ~SubscribeAttributeWaterHeaterModeOnMode()
- {
- }
-
- CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override
- {
- constexpr chip::ClusterId clusterId = chip::app::Clusters::WaterHeaterMode::Id;
- constexpr chip::CommandId attributeId = chip::app::Clusters::WaterHeaterMode::Attributes::OnMode::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_WITH_AUTORELEASE_POOL);
- __auto_type * cluster = [[MTRBaseClusterWaterHeaterMode 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 subscribeAttributeOnModeWithParams:params
- subscriptionEstablished:^() { mSubscriptionEstablished = YES; }
- reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) {
- NSLog(@"WaterHeaterMode.OnMode 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 GeneratedCommandList
*/
class ReadWaterHeaterModeGeneratedCommandList : public ReadAttribute {
@@ -90087,8 +89567,6 @@
| Attributes: | |
| * SupportedModes | 0x0000 |
| * CurrentMode | 0x0001 |
-| * StartUpMode | 0x0002 |
-| * OnMode | 0x0003 |
| * GeneratedCommandList | 0xFFF8 |
| * AcceptedCommandList | 0xFFF9 |
| * EventList | 0xFFFA |
@@ -90332,264 +89810,6 @@
#if MTR_ENABLE_PROVISIONAL
/*
- * Attribute StartUpMode
- */
-class ReadDeviceEnergyManagementModeStartUpMode : public ReadAttribute {
-public:
- ReadDeviceEnergyManagementModeStartUpMode()
- : ReadAttribute("start-up-mode")
- {
- }
-
- ~ReadDeviceEnergyManagementModeStartUpMode()
- {
- }
-
- CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override
- {
- constexpr chip::ClusterId clusterId = chip::app::Clusters::DeviceEnergyManagementMode::Id;
- constexpr chip::AttributeId attributeId = chip::app::Clusters::DeviceEnergyManagementMode::Attributes::StartUpMode::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_WITH_AUTORELEASE_POOL);
- __auto_type * cluster = [[MTRBaseClusterDeviceEnergyManagementMode alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue];
- [cluster readAttributeStartUpModeWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable error) {
- NSLog(@"DeviceEnergyManagementMode.StartUpMode response %@", [value description]);
- if (error == nil) {
- RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value);
- } else {
- LogNSError("DeviceEnergyManagementMode StartUpMode read Error", error);
- RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error);
- }
- SetCommandExitStatus(error);
- }];
- return CHIP_NO_ERROR;
- }
-};
-
-class WriteDeviceEnergyManagementModeStartUpMode : public WriteAttribute {
-public:
- WriteDeviceEnergyManagementModeStartUpMode()
- : WriteAttribute("start-up-mode")
- {
- AddArgument("attr-name", "start-up-mode");
- AddArgument("attr-value", 0, UINT8_MAX, &mValue);
- WriteAttribute::AddArguments();
- }
-
- ~WriteDeviceEnergyManagementModeStartUpMode()
- {
- }
-
- CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override
- {
- constexpr chip::ClusterId clusterId = chip::app::Clusters::DeviceEnergyManagementMode::Id;
- constexpr chip::AttributeId attributeId = chip::app::Clusters::DeviceEnergyManagementMode::Attributes::StartUpMode::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_WITH_AUTORELEASE_POOL);
- __auto_type * cluster = [[MTRBaseClusterDeviceEnergyManagementMode 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 * _Nullable value = nil;
- if (!mValue.IsNull()) {
- value = [NSNumber numberWithUnsignedChar:mValue.Value()];
- }
-
- [cluster writeAttributeStartUpModeWithValue:value params:params completion:^(NSError * _Nullable error) {
- if (error != nil) {
- LogNSError("DeviceEnergyManagementMode StartUpMode write Error", error);
- RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error);
- }
- SetCommandExitStatus(error);
- }];
- return CHIP_NO_ERROR;
- }
-
-private:
- chip::app::DataModel::Nullable<uint8_t> mValue;
-};
-
-class SubscribeAttributeDeviceEnergyManagementModeStartUpMode : public SubscribeAttribute {
-public:
- SubscribeAttributeDeviceEnergyManagementModeStartUpMode()
- : SubscribeAttribute("start-up-mode")
- {
- }
-
- ~SubscribeAttributeDeviceEnergyManagementModeStartUpMode()
- {
- }
-
- CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override
- {
- constexpr chip::ClusterId clusterId = chip::app::Clusters::DeviceEnergyManagementMode::Id;
- constexpr chip::CommandId attributeId = chip::app::Clusters::DeviceEnergyManagementMode::Attributes::StartUpMode::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_WITH_AUTORELEASE_POOL);
- __auto_type * cluster = [[MTRBaseClusterDeviceEnergyManagementMode 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 subscribeAttributeStartUpModeWithParams:params
- subscriptionEstablished:^() { mSubscriptionEstablished = YES; }
- reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) {
- NSLog(@"DeviceEnergyManagementMode.StartUpMode 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 OnMode
- */
-class ReadDeviceEnergyManagementModeOnMode : public ReadAttribute {
-public:
- ReadDeviceEnergyManagementModeOnMode()
- : ReadAttribute("on-mode")
- {
- }
-
- ~ReadDeviceEnergyManagementModeOnMode()
- {
- }
-
- CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override
- {
- constexpr chip::ClusterId clusterId = chip::app::Clusters::DeviceEnergyManagementMode::Id;
- constexpr chip::AttributeId attributeId = chip::app::Clusters::DeviceEnergyManagementMode::Attributes::OnMode::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_WITH_AUTORELEASE_POOL);
- __auto_type * cluster = [[MTRBaseClusterDeviceEnergyManagementMode alloc] initWithDevice:device endpointID:@(endpointId) queue:callbackQueue];
- [cluster readAttributeOnModeWithCompletion:^(NSNumber * _Nullable value, NSError * _Nullable error) {
- NSLog(@"DeviceEnergyManagementMode.OnMode response %@", [value description]);
- if (error == nil) {
- RemoteDataModelLogger::LogAttributeAsJSON(@(endpointId), @(clusterId), @(attributeId), value);
- } else {
- LogNSError("DeviceEnergyManagementMode OnMode read Error", error);
- RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error);
- }
- SetCommandExitStatus(error);
- }];
- return CHIP_NO_ERROR;
- }
-};
-
-class WriteDeviceEnergyManagementModeOnMode : public WriteAttribute {
-public:
- WriteDeviceEnergyManagementModeOnMode()
- : WriteAttribute("on-mode")
- {
- AddArgument("attr-name", "on-mode");
- AddArgument("attr-value", 0, UINT8_MAX, &mValue);
- WriteAttribute::AddArguments();
- }
-
- ~WriteDeviceEnergyManagementModeOnMode()
- {
- }
-
- CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override
- {
- constexpr chip::ClusterId clusterId = chip::app::Clusters::DeviceEnergyManagementMode::Id;
- constexpr chip::AttributeId attributeId = chip::app::Clusters::DeviceEnergyManagementMode::Attributes::OnMode::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_WITH_AUTORELEASE_POOL);
- __auto_type * cluster = [[MTRBaseClusterDeviceEnergyManagementMode 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 * _Nullable value = nil;
- if (!mValue.IsNull()) {
- value = [NSNumber numberWithUnsignedChar:mValue.Value()];
- }
-
- [cluster writeAttributeOnModeWithValue:value params:params completion:^(NSError * _Nullable error) {
- if (error != nil) {
- LogNSError("DeviceEnergyManagementMode OnMode write Error", error);
- RemoteDataModelLogger::LogAttributeErrorAsJSON(@(endpointId), @(clusterId), @(attributeId), error);
- }
- SetCommandExitStatus(error);
- }];
- return CHIP_NO_ERROR;
- }
-
-private:
- chip::app::DataModel::Nullable<uint8_t> mValue;
-};
-
-class SubscribeAttributeDeviceEnergyManagementModeOnMode : public SubscribeAttribute {
-public:
- SubscribeAttributeDeviceEnergyManagementModeOnMode()
- : SubscribeAttribute("on-mode")
- {
- }
-
- ~SubscribeAttributeDeviceEnergyManagementModeOnMode()
- {
- }
-
- CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override
- {
- constexpr chip::ClusterId clusterId = chip::app::Clusters::DeviceEnergyManagementMode::Id;
- constexpr chip::CommandId attributeId = chip::app::Clusters::DeviceEnergyManagementMode::Attributes::OnMode::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_WITH_AUTORELEASE_POOL);
- __auto_type * cluster = [[MTRBaseClusterDeviceEnergyManagementMode 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 subscribeAttributeOnModeWithParams:params
- subscriptionEstablished:^() { mSubscriptionEstablished = YES; }
- reportHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) {
- NSLog(@"DeviceEnergyManagementMode.OnMode 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 GeneratedCommandList
*/
class ReadDeviceEnergyManagementModeGeneratedCommandList : public ReadAttribute {
@@ -191041,16 +190261,6 @@
make_unique<SubscribeAttributeEnergyEvseModeCurrentMode>(), //
#endif // MTR_ENABLE_PROVISIONAL
#if MTR_ENABLE_PROVISIONAL
- make_unique<ReadEnergyEvseModeStartUpMode>(), //
- make_unique<WriteEnergyEvseModeStartUpMode>(), //
- make_unique<SubscribeAttributeEnergyEvseModeStartUpMode>(), //
-#endif // MTR_ENABLE_PROVISIONAL
-#if MTR_ENABLE_PROVISIONAL
- make_unique<ReadEnergyEvseModeOnMode>(), //
- make_unique<WriteEnergyEvseModeOnMode>(), //
- make_unique<SubscribeAttributeEnergyEvseModeOnMode>(), //
-#endif // MTR_ENABLE_PROVISIONAL
-#if MTR_ENABLE_PROVISIONAL
make_unique<ReadEnergyEvseModeGeneratedCommandList>(), //
make_unique<SubscribeAttributeEnergyEvseModeGeneratedCommandList>(), //
#endif // MTR_ENABLE_PROVISIONAL
@@ -191103,16 +190313,6 @@
make_unique<SubscribeAttributeWaterHeaterModeCurrentMode>(), //
#endif // MTR_ENABLE_PROVISIONAL
#if MTR_ENABLE_PROVISIONAL
- make_unique<ReadWaterHeaterModeStartUpMode>(), //
- make_unique<WriteWaterHeaterModeStartUpMode>(), //
- make_unique<SubscribeAttributeWaterHeaterModeStartUpMode>(), //
-#endif // MTR_ENABLE_PROVISIONAL
-#if MTR_ENABLE_PROVISIONAL
- make_unique<ReadWaterHeaterModeOnMode>(), //
- make_unique<WriteWaterHeaterModeOnMode>(), //
- make_unique<SubscribeAttributeWaterHeaterModeOnMode>(), //
-#endif // MTR_ENABLE_PROVISIONAL
-#if MTR_ENABLE_PROVISIONAL
make_unique<ReadWaterHeaterModeGeneratedCommandList>(), //
make_unique<SubscribeAttributeWaterHeaterModeGeneratedCommandList>(), //
#endif // MTR_ENABLE_PROVISIONAL
@@ -191165,16 +190365,6 @@
make_unique<SubscribeAttributeDeviceEnergyManagementModeCurrentMode>(), //
#endif // MTR_ENABLE_PROVISIONAL
#if MTR_ENABLE_PROVISIONAL
- make_unique<ReadDeviceEnergyManagementModeStartUpMode>(), //
- make_unique<WriteDeviceEnergyManagementModeStartUpMode>(), //
- make_unique<SubscribeAttributeDeviceEnergyManagementModeStartUpMode>(), //
-#endif // MTR_ENABLE_PROVISIONAL
-#if MTR_ENABLE_PROVISIONAL
- make_unique<ReadDeviceEnergyManagementModeOnMode>(), //
- make_unique<WriteDeviceEnergyManagementModeOnMode>(), //
- make_unique<SubscribeAttributeDeviceEnergyManagementModeOnMode>(), //
-#endif // MTR_ENABLE_PROVISIONAL
-#if MTR_ENABLE_PROVISIONAL
make_unique<ReadDeviceEnergyManagementModeGeneratedCommandList>(), //
make_unique<SubscribeAttributeDeviceEnergyManagementModeGeneratedCommandList>(), //
#endif // MTR_ENABLE_PROVISIONAL