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 dd90453d1f8dfe..142425b99b6b43 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 @@ -3461,7 +3461,7 @@ server cluster PumpConfigurationAndControl = 512 { bitmap PumpStatusBitmap : bitmap16 { kDeviceFault = 0x1; - kSupplyfault = 0x2; + kSupplyFault = 0x2; kSpeedLow = 0x4; kSpeedHigh = 0x8; kLocalOverride = 0x10; diff --git a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter index ba7a202c7392e1..95549c2832922b 100644 --- a/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter +++ b/examples/all-clusters-minimal-app/all-clusters-common/all-clusters-minimal-app.matter @@ -2662,7 +2662,7 @@ server cluster PumpConfigurationAndControl = 512 { bitmap PumpStatusBitmap : bitmap16 { kDeviceFault = 0x1; - kSupplyfault = 0x2; + kSupplyFault = 0x2; kSpeedLow = 0x4; kSpeedHigh = 0x8; kLocalOverride = 0x10; diff --git a/examples/chef/devices/rootnode_pump_5f904818cc.matter b/examples/chef/devices/rootnode_pump_5f904818cc.matter index 5192a981b7f760..784aa192b139bf 100644 --- a/examples/chef/devices/rootnode_pump_5f904818cc.matter +++ b/examples/chef/devices/rootnode_pump_5f904818cc.matter @@ -923,7 +923,7 @@ server cluster PumpConfigurationAndControl = 512 { bitmap PumpStatusBitmap : bitmap16 { kDeviceFault = 0x1; - kSupplyfault = 0x2; + kSupplyFault = 0x2; kSpeedLow = 0x4; kSpeedHigh = 0x8; kLocalOverride = 0x10; diff --git a/examples/chef/devices/rootnode_pump_a811bb33a0.matter b/examples/chef/devices/rootnode_pump_a811bb33a0.matter index 16c99afb1776e4..4b3c22b7a981c9 100644 --- a/examples/chef/devices/rootnode_pump_a811bb33a0.matter +++ b/examples/chef/devices/rootnode_pump_a811bb33a0.matter @@ -923,7 +923,7 @@ server cluster PumpConfigurationAndControl = 512 { bitmap PumpStatusBitmap : bitmap16 { kDeviceFault = 0x1; - kSupplyfault = 0x2; + kSupplyFault = 0x2; kSpeedLow = 0x4; kSpeedHigh = 0x8; kLocalOverride = 0x10; diff --git a/examples/placeholder/linux/apps/app1/config.matter b/examples/placeholder/linux/apps/app1/config.matter index bd3e6875f6d605..a45f45c5e8f916 100644 --- a/examples/placeholder/linux/apps/app1/config.matter +++ b/examples/placeholder/linux/apps/app1/config.matter @@ -4129,7 +4129,7 @@ server cluster PumpConfigurationAndControl = 512 { bitmap PumpStatusBitmap : bitmap16 { kDeviceFault = 0x1; - kSupplyfault = 0x2; + kSupplyFault = 0x2; kSpeedLow = 0x4; kSpeedHigh = 0x8; kLocalOverride = 0x10; diff --git a/examples/placeholder/linux/apps/app2/config.matter b/examples/placeholder/linux/apps/app2/config.matter index 541decce5be349..70fc68ea072344 100644 --- a/examples/placeholder/linux/apps/app2/config.matter +++ b/examples/placeholder/linux/apps/app2/config.matter @@ -4088,7 +4088,7 @@ server cluster PumpConfigurationAndControl = 512 { bitmap PumpStatusBitmap : bitmap16 { kDeviceFault = 0x1; - kSupplyfault = 0x2; + kSupplyFault = 0x2; kSpeedLow = 0x4; kSpeedHigh = 0x8; kLocalOverride = 0x10; diff --git a/examples/pump-app/pump-common/pump-app.matter b/examples/pump-app/pump-common/pump-app.matter index cd8295cf194ec5..85f730645b3813 100644 --- a/examples/pump-app/pump-common/pump-app.matter +++ b/examples/pump-app/pump-common/pump-app.matter @@ -1223,7 +1223,7 @@ server cluster PumpConfigurationAndControl = 512 { bitmap PumpStatusBitmap : bitmap16 { kDeviceFault = 0x1; - kSupplyfault = 0x2; + kSupplyFault = 0x2; kSpeedLow = 0x4; kSpeedHigh = 0x8; kLocalOverride = 0x10; diff --git a/examples/pump-app/silabs/data_model/pump-thread-app.matter b/examples/pump-app/silabs/data_model/pump-thread-app.matter index 5aabe7e24f54e4..c89f79622c8262 100644 --- a/examples/pump-app/silabs/data_model/pump-thread-app.matter +++ b/examples/pump-app/silabs/data_model/pump-thread-app.matter @@ -1223,7 +1223,7 @@ server cluster PumpConfigurationAndControl = 512 { bitmap PumpStatusBitmap : bitmap16 { kDeviceFault = 0x1; - kSupplyfault = 0x2; + kSupplyFault = 0x2; kSpeedLow = 0x4; kSpeedHigh = 0x8; kLocalOverride = 0x10; diff --git a/examples/pump-app/silabs/data_model/pump-wifi-app.matter b/examples/pump-app/silabs/data_model/pump-wifi-app.matter index 5aabe7e24f54e4..c89f79622c8262 100644 --- a/examples/pump-app/silabs/data_model/pump-wifi-app.matter +++ b/examples/pump-app/silabs/data_model/pump-wifi-app.matter @@ -1223,7 +1223,7 @@ server cluster PumpConfigurationAndControl = 512 { bitmap PumpStatusBitmap : bitmap16 { kDeviceFault = 0x1; - kSupplyfault = 0x2; + kSupplyFault = 0x2; kSpeedLow = 0x4; kSpeedHigh = 0x8; kLocalOverride = 0x10; diff --git a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter index 9b7c433dc7028f..574e9c36ffa1b0 100644 --- a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter +++ b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter @@ -1148,7 +1148,7 @@ client cluster PumpConfigurationAndControl = 512 { bitmap PumpStatusBitmap : bitmap16 { kDeviceFault = 0x1; - kSupplyfault = 0x2; + kSupplyFault = 0x2; kSpeedLow = 0x4; kSpeedHigh = 0x8; kLocalOverride = 0x10; diff --git a/src/app/zap-templates/zcl/data-model/chip/pump-configuration-and-control-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/pump-configuration-and-control-cluster.xml index 9d2ef812ac609d..7aa34bc6554b68 100644 --- a/src/app/zap-templates/zcl/data-model/chip/pump-configuration-and-control-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/pump-configuration-and-control-cluster.xml @@ -121,7 +121,7 @@ limitations under the License. - + diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter index c9cccf0f94db2c..9091ce552ad854 100644 --- a/src/controller/data_model/controller-clusters.matter +++ b/src/controller/data_model/controller-clusters.matter @@ -4393,7 +4393,7 @@ client cluster PumpConfigurationAndControl = 512 { bitmap PumpStatusBitmap : bitmap16 { kDeviceFault = 0x1; - kSupplyfault = 0x2; + kSupplyFault = 0x2; kSpeedLow = 0x4; kSpeedHigh = 0x8; kLocalOverride = 0x10; diff --git a/src/controller/python/chip/clusters/Objects.py b/src/controller/python/chip/clusters/Objects.py index 5be9d131387cd6..4f3af5d426ca85 100644 --- a/src/controller/python/chip/clusters/Objects.py +++ b/src/controller/python/chip/clusters/Objects.py @@ -22799,7 +22799,7 @@ class Feature(IntFlag): class PumpStatusBitmap(IntFlag): kDeviceFault = 0x1 - kSupplyfault = 0x2 + kSupplyFault = 0x2 kSpeedLow = 0x4 kSpeedHigh = 0x8 kLocalOverride = 0x10 diff --git a/src/darwin/Framework/CHIP/templates/MTRBaseClusters.zapt b/src/darwin/Framework/CHIP/templates/MTRBaseClusters.zapt index 7cafe765538483..71a37db8356c94 100644 --- a/src/darwin/Framework/CHIP/templates/MTRBaseClusters.zapt +++ b/src/darwin/Framework/CHIP/templates/MTRBaseClusters.zapt @@ -159,7 +159,12 @@ typedef NS_OPTIONS({{asUnderlyingZclType name}}, {{objCEnumName clusterName bitm {{/if}} {{/if}} {{/inline}} - {{> oldNameItemDecl oldItemName=(oldName ../clusterName bitmap=../bitmapName bitmapValue=(asUpperCamelCase label preserveAcronyms=true))}} + {{! The cluster or the bitmap or the value could have been renamed, so this is a bit of a pain... Just cover the cases that matter to us for now }} + {{#if (hasOldName ../clusterName bitmap=../bitmapName bitmapValue=(asUpperCamelCase label preserveAcronyms=true))}} + {{> oldNameItemDecl oldItemName=(oldName ../clusterName bitmap=../bitmapName bitmapValue=(asUpperCamelCase label preserveAcronyms=true))}} + {{else if (hasOldName (asUpperCamelCase ../../name preserveAcronyms=true) bitmap=(asUpperCamelCase ../name preserveAcronyms=true) bitmapValue=(asUpperCamelCase label preserveAcronyms=true))}} + {{> oldNameItemDecl oldItemName=(oldName (asUpperCamelCase ../../name preserveAcronyms=true) bitmap=(asUpperCamelCase ../name preserveAcronyms=true) bitmapValue=(asUpperCamelCase label preserveAcronyms=true))}} + {{/if}} {{/zcl_bitmap_items}} } {{/inline}} diff --git a/src/darwin/Framework/CHIP/templates/availability.yaml b/src/darwin/Framework/CHIP/templates/availability.yaml index 563f58e9858ee2..05d280d165687f 100644 --- a/src/darwin/Framework/CHIP/templates/availability.yaml +++ b/src/darwin/Framework/CHIP/templates/availability.yaml @@ -7728,3 +7728,18 @@ - release: "Future" versions: "future" + introduced: + bitmap values: + PumpConfigurationAndControl: + PumpStatusBitmap: + - SupplyFault + deprecated: + bitmap values: + PumpConfigurationAndControl: + PumpStatusBitmap: + - Supplyfault + renames: + bitmap values: + PumpConfigurationAndControl: + PumpStatusBitmap: + SupplyFault: Supplyfault diff --git a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h index f0b0d0fdba6b4c..b7b48b02f0f7c0 100644 --- a/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h +++ b/src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h @@ -15117,7 +15117,10 @@ typedef NS_OPTIONS(uint32_t, MTRPumpConfigurationAndControlPumpFeature) { typedef NS_OPTIONS(uint16_t, MTRPumpConfigurationAndControlPumpStatusBitmap) { MTRPumpConfigurationAndControlPumpStatusBitmapDeviceFault MTR_AVAILABLE(ios(16.5), macos(13.4), watchos(9.5), tvos(16.5)) = 0x1, - MTRPumpConfigurationAndControlPumpStatusBitmapSupplyfault MTR_AVAILABLE(ios(16.5), macos(13.4), watchos(9.5), tvos(16.5)) = 0x2, + MTRPumpConfigurationAndControlPumpStatusBitmapSupplyFault MTR_NEWLY_AVAILABLE = 0x2, + MTRPumpConfigurationAndControlPumpStatusBitmapSupplyfault MTR_AVAILABLE(ios(16.5), macos(13.4), watchos(9.5), tvos(16.5)) + MTR_NEWLY_DEPRECATED("Please use MTRPumpConfigurationAndControlPumpStatusBitmapSupplyFault") + = 0x2, MTRPumpConfigurationAndControlPumpStatusBitmapSpeedLow MTR_AVAILABLE(ios(16.5), macos(13.4), watchos(9.5), tvos(16.5)) = 0x4, MTRPumpConfigurationAndControlPumpStatusBitmapSpeedHigh MTR_AVAILABLE(ios(16.5), macos(13.4), watchos(9.5), tvos(16.5)) = 0x8, MTRPumpConfigurationAndControlPumpStatusBitmapLocalOverride MTR_AVAILABLE(ios(16.5), macos(13.4), watchos(9.5), tvos(16.5)) = 0x10, @@ -15129,7 +15132,7 @@ typedef NS_OPTIONS(uint16_t, MTRPumpConfigurationAndControlPumpStatusBitmap) { typedef NS_OPTIONS(uint16_t, MTRPumpConfigurationAndControlPumpStatus) { MTRPumpConfigurationAndControlPumpStatusDeviceFault MTR_DEPRECATED("Please use MTRPumpConfigurationAndControlPumpStatusBitmapDeviceFault", ios(16.1, 16.5), macos(13.0, 13.4), watchos(9.1, 9.5), tvos(16.1, 16.5)) = 0x1, - MTRPumpConfigurationAndControlPumpStatusSupplyfault MTR_DEPRECATED("Please use MTRPumpConfigurationAndControlPumpStatusBitmapSupplyfault", ios(16.1, 16.5), macos(13.0, 13.4), watchos(9.1, 9.5), tvos(16.1, 16.5)) = 0x2, + MTRPumpConfigurationAndControlPumpStatusSupplyfault MTR_DEPRECATED("Please use MTRPumpConfigurationAndControlPumpStatusBitmapSupplyFault", ios(16.1, 16.5), macos(13.0, 13.4), watchos(9.1, 9.5), tvos(16.1, 16.5)) = 0x2, MTRPumpConfigurationAndControlPumpStatusSpeedLow MTR_DEPRECATED("Please use MTRPumpConfigurationAndControlPumpStatusBitmapSpeedLow", ios(16.1, 16.5), macos(13.0, 13.4), watchos(9.1, 9.5), tvos(16.1, 16.5)) = 0x4, MTRPumpConfigurationAndControlPumpStatusSpeedHigh MTR_DEPRECATED("Please use MTRPumpConfigurationAndControlPumpStatusBitmapSpeedHigh", ios(16.1, 16.5), macos(13.0, 13.4), watchos(9.1, 9.5), tvos(16.1, 16.5)) = 0x8, MTRPumpConfigurationAndControlPumpStatusLocalOverride MTR_DEPRECATED("Please use MTRPumpConfigurationAndControlPumpStatusBitmapLocalOverride", ios(16.1, 16.5), macos(13.0, 13.4), watchos(9.1, 9.5), tvos(16.1, 16.5)) = 0x10, 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 1a527cccb060bc..9ed4ea9b572645 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 @@ -2676,7 +2676,7 @@ enum class Feature : uint32_t enum class PumpStatusBitmap : uint16_t { kDeviceFault = 0x1, - kSupplyfault = 0x2, + kSupplyFault = 0x2, kSpeedLow = 0x4, kSpeedHigh = 0x8, kLocalOverride = 0x10,