Skip to content

Commit

Permalink
Fix TemperatureLevelStruct to actually match the spec. (#26691)
Browse files Browse the repository at this point in the history
Also adds Darwin availability annotations for Temperature Control cluster.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Aug 16, 2023
1 parent 70dab0e commit cd7f341
Show file tree
Hide file tree
Showing 16 changed files with 166 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ limitations under the License.
<struct name="TemperatureLevelStruct">
<cluster code="0x0056"/>
<item fieldId="0" name="Label" type="char_string" length="64" isNullable="false" writable="false"/>
<item fieldId="1" name="TempLevel" type="int8u" isNullable="false" writable="false"/>
<item fieldId="1" name="TemperatureLevel" type="int8u" isNullable="false" writable="false"/>
</struct>

<cluster>
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 @@ -2781,7 +2781,7 @@ client cluster TemperatureControl = 86 {

struct TemperatureLevelStruct {
char_string<64> label = 0;
int8u tempLevel = 1;
int8u temperatureLevel = 1;
}

readonly attribute optional int16s temperatureSetpoint = 0;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions src/controller/java/zap-generated/CHIPReadCallbacks.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

90 changes: 90 additions & 0 deletions src/controller/python/chip/clusters/CHIPClusters.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/controller/python/chip/clusters/Objects.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions src/darwin/Framework/CHIP/templates/availability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7006,6 +7006,7 @@
- FuelTankMonitoring
- InkCartridgeMonitoring
- TonerCartridgeMonitoring
- TemperatureControl
- SmokeCOAlarm
attributes:
Scenes:
Expand Down Expand Up @@ -7292,6 +7293,19 @@
- EventList
- FeatureMap
- ClusterRevision
TemperatureControl:
- TemperatureSetpoint
- MinTemperature
- MaxTemperature
- Step
- CurrentTemperatureLevelIndex
- SupportedTemperatureLevels
- GeneratedCommandList
- AcceptedCommandList
- AttributeList
- EventList
- FeatureMap
- ClusterRevision
SmokeCOAlarm:
- ExpressedState
- SmokeState
Expand Down Expand Up @@ -7336,6 +7350,8 @@
- ResetCondition
TonerCartridgeMonitoring:
- ResetCondition
TemperatureControl:
- SetTemperature
DoorLock:
- UnboltDoor
SmokeCOAlarm:
Expand All @@ -7344,11 +7360,17 @@
DoorLock:
UnboltDoor:
- pinCode
TemperatureControl:
SetTemperature:
- targetTemperature
- targetTemperatureLevel
structs:
BasicInformation:
- ProductAppearanceStruct
BridgedDeviceBasicInformation:
- ProductAppearanceStruct
TemperatureControl:
- TemperatureLevelStruct
struct fields:
BasicInformation:
ProductAppearanceStruct:
Expand All @@ -7358,6 +7380,10 @@
ProductAppearanceStruct:
- finish
- primaryColor
TemperatureControl:
TemperatureLevelStruct:
- label
- temperatureLevel
events:
SmokeCOAlarm:
- SmokeAlarm
Expand Down Expand Up @@ -7665,6 +7691,8 @@
- Feature
TonerCartridgeMonitoring:
- Feature
TemperatureControl:
- Feature
SmokeCOAlarm:
- Feature
bitmap values:
Expand Down Expand Up @@ -7746,6 +7774,10 @@
# here.
Feature:
- Unbolt
TemperatureControl:
Feature:
- TemperatureNumber
- TemperatureLevel
SmokeCOAlarm:
Feature:
- SmokeAlarm
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.mm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cd7f341

Please sign in to comment.