Skip to content

Commit

Permalink
rename the Robotic Vacuum Operational State cluster (#27273)
Browse files Browse the repository at this point in the history
* rename the Robotic Vacuum Operational State cluster

* remove whitespace from json files

* style changes

* fix a build file
  • Loading branch information
plauric authored and pull[bot] committed Nov 20, 2023
1 parent fbd3088 commit 2294780
Show file tree
Hide file tree
Showing 56 changed files with 1,287 additions and 1,379 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,3 @@ examples/thermostat/ameba/build
# https://github.com/espressif/idf-component-manager#using-with-a-project
examples/*/esp32/managed_components
examples/*/esp32/dependencies.lock
examples/all-clusters-app/all-clusters-common/all-clusters-app.zap.old
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ limitations under the License.

<cluster>
<domain>Robots</domain>
<name>Robotic Vacuum Operational State</name>
<name>RVC Operational State</name>
<code>0x0061</code>
<define>OPERATIONAL_STATE_RVC_CLUSTER</define>
<client init="false" tick="false">true</client>
Expand Down
5 changes: 1 addition & 4 deletions src/app/zap-templates/zcl/zcl-with-test-extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,7 @@
],
"Temperature Control": ["SupportedTemperatureLevels"],
"Operational State": ["OperationalState", "OperationalError"],
"Robotic Vacuum Operational State": [
"OperationalState",
"OperationalError"
]
"RVC Operational State": ["OperationalState", "OperationalError"]
},
"defaultReportingPolicy": "mandatory",
"ZCLDataTypes": ["ARRAY", "BITMAP", "ENUM", "NUMBER", "STRING", "STRUCT"],
Expand Down
5 changes: 1 addition & 4 deletions src/app/zap-templates/zcl/zcl.json
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,7 @@
],
"Temperature Control": ["SupportedTemperatureLevels"],
"Operational State": ["OperationalState", "OperationalError"],
"Robotic Vacuum Operational State": [
"OperationalState",
"OperationalError"
]
"RVC Operational State": ["OperationalState", "OperationalError"]
},
"defaultReportingPolicy": "mandatory",
"ZCLDataTypes": ["ARRAY", "BITMAP", "ENUM", "NUMBER", "STRING", "STRUCT"],
Expand Down
4 changes: 2 additions & 2 deletions src/controller/data_model/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ if (current_os == "android" || matter_enable_java_compilation) {
"jni/RefrigeratorAndTemperatureControlledCabinetModeSelectClient-ReadImpl.cpp",
"jni/RelativeHumidityMeasurementClient-InvokeSubscribeImpl.cpp",
"jni/RelativeHumidityMeasurementClient-ReadImpl.cpp",
"jni/RoboticVacuumOperationalStateClient-InvokeSubscribeImpl.cpp",
"jni/RoboticVacuumOperationalStateClient-ReadImpl.cpp",
"jni/RvcOperationalStateClient-InvokeSubscribeImpl.cpp",
"jni/RvcOperationalStateClient-ReadImpl.cpp",
"jni/RvcCleanModeSelectClient-InvokeSubscribeImpl.cpp",
"jni/RvcCleanModeSelectClient-ReadImpl.cpp",
"jni/RvcRunModeSelectClient-InvokeSubscribeImpl.cpp",
Expand Down
2 changes: 1 addition & 1 deletion src/controller/data_model/controller-clusters.matter
Original file line number Diff line number Diff line change
Expand Up @@ -3416,7 +3416,7 @@ client cluster OperationalState = 96 {
}

/** This cluster supports remotely monitoring and, where supported, changing the operational state of a Robotic Vacuum. */
client cluster RoboticVacuumOperationalState = 97 {
client cluster RvcOperationalState = 97 {
enum ErrorStateEnum : ENUM8 {
kFailedToFindChargingDock = 64;
kStuck = 65;
Expand Down
16 changes: 8 additions & 8 deletions src/controller/data_model/controller-clusters.zap
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@
}
],
"package": [
{
"pathRelativity": "relativeToZap",
"path": "../../app/zap-templates/app-templates.json",
"type": "gen-templates-json",
"version": "chip-v1"
},
{
"pathRelativity": "relativeToZap",
"path": "../../app/zap-templates/zcl/zcl.json",
"type": "zcl-properties",
"category": "matter",
"version": 1,
"description": "Matter SDK ZCL data"
},
{
"pathRelativity": "relativeToZap",
"path": "../../app/zap-templates/app-templates.json",
"type": "gen-templates-json",
"version": "chip-v1"
}
],
"endpointTypes": [
Expand Down Expand Up @@ -13154,7 +13154,7 @@
]
},
{
"name": "Robotic Vacuum Operational State",
"name": "RVC Operational State",
"code": 97,
"mfgCode": null,
"define": "OPERATIONAL_STATE_RVC_CLUSTER",
Expand Down Expand Up @@ -13230,7 +13230,7 @@
]
},
{
"name": "Robotic Vacuum Operational State",
"name": "RVC Operational State",
"code": 97,
"mfgCode": null,
"define": "OPERATIONAL_STATE_RVC_CLUSTER",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ public static BaseCluster getCluster(long clusterId) {
if (clusterId == OperationalState.ID) {
return new OperationalState();
}
if (clusterId == RoboticVacuumOperationalState.ID) {
return new RoboticVacuumOperationalState();
if (clusterId == RvcOperationalState.ID) {
return new RvcOperationalState();
}
if (clusterId == HepaFilterMonitoring.ID) {
return new HepaFilterMonitoring();
Expand Down Expand Up @@ -7709,7 +7709,7 @@ public long getCommandID(String name) throws IllegalArgumentException {
return Command.valueOf(name).getID();
}
}
public static class RoboticVacuumOperationalState implements BaseCluster {
public static class RvcOperationalState implements BaseCluster {
public static final long ID = 97L;
public long getID() {
return ID;
Expand Down
Loading

0 comments on commit 2294780

Please sign in to comment.