Skip to content

Commit

Permalink
Fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
rbultman committed Jun 16, 2023
2 parents c00a0ec + 3be88f8 commit 5a288b7
Show file tree
Hide file tree
Showing 275 changed files with 45,295 additions and 7,857 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/examples-ameba.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
if: github.actor != 'restyled-io[bot]'

container:
image: connectedhomeip/chip-build-ameba:0.7.3
image: connectedhomeip/chip-build-ameba:0.7.14
options: --user root

steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/examples-efr32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
timeout-minutes: 30
run: |
scripts/examples/gn_silabs_example.sh examples/lighting-app/silabs ./out/light-app BRD4187C --slc_generate --docker
scripts/examples/gn_silabs_example.sh examples/lighting-app/silabs ./out/light-app BRD4164A --slc_generate --docker
rm -rf ./out/
- name: Build some BRD4187C variants
timeout-minutes: 90
Expand Down
13 changes: 8 additions & 5 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ jobs:
src/app/zap-templates/zcl/data-model/chip/descriptor-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/diagnostic-logs-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/dishwasher-alarm-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/dishwasher-mode-select-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/dishwasher-mode-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/door-lock-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/ethernet-network-diagnostics-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/fan-control-cluster.xml \
Expand All @@ -156,18 +156,20 @@ jobs:
src/app/zap-templates/zcl/data-model/chip/identify-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/illuminance-measurement-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/keypad-input-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/laundry-washer-mode-select-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/laundry-washer-mode-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/level-control-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/localization-configuration-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/low-power-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/media-input-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/media-playback-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/mode-base-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/mode-select-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/network-commissioning-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/occupancy-sensing-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/onoff-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/operational-credentials-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/operational-state-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/operational-state-rvc-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/pressure-measurement-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/power-source-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/power-source-configuration-cluster.xml \
Expand All @@ -176,11 +178,11 @@ jobs:
src/app/zap-templates/zcl/data-model/chip/proxy-valid-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/pump-configuration-and-control-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/pwm-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/refrigerator-and-temperature-controlled-cabinet-mode-select-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/refrigerator-and-temperature-controlled-cabinet-mode-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/refrigerator-alarm.xml \
src/app/zap-templates/zcl/data-model/chip/relative-humidity-measurement-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/rvc-clean-mode-select-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/rvc-run-mode-select-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/rvc-clean-mode-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/rvc-run-mode-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/scene.xml \
src/app/zap-templates/zcl/data-model/chip/software-diagnostics-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/switch-cluster.xml \
Expand Down Expand Up @@ -510,6 +512,7 @@ jobs:
run: |
scripts/run_in_build_env.sh './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --script-args "--log-level INFO -t 3600 --disable-test ClusterObjectTests.TestTimedRequestTimeout"'
scripts/run_in_build_env.sh './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace_decode 1" --script "src/python_testing/TC_RR_1_1.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021"'
scripts/run_in_build_env.sh './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace_decode 1" --script "src/python_testing/TC_DeviceBasicComposition.py" --script-args "--storage-path admin_storage.json --manual-code 10054912339"'
scripts/run_in_build_env.sh './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace_decode 1" --script "src/python_testing/TC_SC_3_6.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021"'
scripts/run_in_build_env.sh './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace_decode 1" --script "src/python_testing/TC_DA_1_7.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --bool-arg allow_sdk_dac:true"'
scripts/run_in_build_env.sh './scripts/tests/run_python_test.py --app out/linux-x64-all-clusters-ipv6only-no-ble-no-wifi-tsan-clang-test/chip-all-clusters-app --factoryreset --app-args "--discriminator 1234 --KVS kvs1 --trace_decode 1 --enable-key 000102030405060708090a0b0c0d0e0f" --script "src/python_testing/TC_TestEventTrigger.py" --script-args "--storage-path admin_storage.json --commissioning-method on-network --discriminator 1234 --passcode 20202021 --bool-arg allow_sdk_dac:true"'
Expand Down
3 changes: 3 additions & 0 deletions .restyled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ restylers:
- name: prettier-yaml
image: restyled/restyler-prettier:v1.19.1-2
enabled: true
command:
- prettier
- "--write"
include:
- "**/*.yml"
- "**/*.yaml"
Expand Down
123 changes: 90 additions & 33 deletions examples/all-clusters-app/all-clusters-common/all-clusters-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
struct ModeTagStruct {
optional vendor_id mfgCode = 0;
enum16 value = 1;
optional char_string<64> tagName = 2;
}

struct ModeOptionStruct {
Expand All @@ -18,11 +17,22 @@ struct ApplicationStruct {
char_string applicationID = 1;
}

struct ErrorStateStruct {
enum8 errorStateID = 0;
optional char_string<64> errorStateLabel = 1;
optional char_string<64> errorStateDetails = 2;
}

struct LabelStruct {
char_string<16> label = 0;
char_string<16> value = 1;
}

struct OperationalStateStruct {
enum8 operationalStateID = 0;
optional char_string<64> operationalStateLabel = 1;
}

/** Attributes and commands for putting a device into Identification mode (e.g. flashing a light). */
server cluster Identify = 3 {
enum EffectIdentifierEnum : ENUM8 {
Expand Down Expand Up @@ -2304,40 +2314,19 @@ server cluster IcdManagement = 70 {

/** Attributes and commands for selecting a mode from a list of supported options. */
server cluster ModeSelect = 80 {
enum ModeTag : ENUM16 {
kAuto = 0;
kQuick = 1;
kQuiet = 2;
kLowNoise = 3;
kLowEnergy = 4;
kVacation = 5;
kMin = 6;
kMax = 7;
kNight = 8;
kDay = 9;
}

enum StatusCode : ENUM8 {
kSuccess = 0;
kUnsupportedMode = 1;
kGenericFailure = 2;
}

bitmap Feature : BITMAP32 {
kOnOff = 0x1;
kExtendedStatus = 0x2;
}

struct ModeTagStruct {
optional vendor_id mfgCode = 0;
struct SemanticTagStruct {
vendor_id mfgCode = 0;
enum16 value = 1;
optional char_string<64> tagName = 2;
}

struct ModeOptionStruct {
char_string<64> label = 0;
int8u mode = 1;
ModeTagStruct modeTags[] = 2;
SemanticTagStruct semanticTags[] = 2;
}

readonly attribute char_string<64> description = 0;
Expand Down Expand Up @@ -4355,9 +4344,14 @@ server cluster NitrogenDioxideConcentrationMeasurement = 1043 {
readonly attribute nullable single measuredValue = 0;
readonly attribute nullable single minMeasuredValue = 1;
readonly attribute nullable single maxMeasuredValue = 2;
readonly attribute nullable single peakMeasuredValue = 3;
readonly attribute elapsed_s peakMeasuredValueWindow = 4;
readonly attribute nullable single averageMeasuredValue = 5;
readonly attribute elapsed_s averageMeasuredValueWindow = 6;
readonly attribute single uncertainty = 7;
readonly attribute MeasurementUnitEnum measurementUnit = 8;
readonly attribute MeasurementMediumEnum measurementMedium = 9;
readonly attribute LevelValueEnum levelValue = 10;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
Expand Down Expand Up @@ -4402,6 +4396,15 @@ server cluster OzoneConcentrationMeasurement = 1045 {
kAverageMeasurement = 0x20;
}

readonly attribute nullable single measuredValue = 0;
readonly attribute nullable single minMeasuredValue = 1;
readonly attribute nullable single maxMeasuredValue = 2;
readonly attribute nullable single peakMeasuredValue = 3;
readonly attribute elapsed_s peakMeasuredValueWindow = 4;
readonly attribute nullable single averageMeasuredValue = 5;
readonly attribute elapsed_s averageMeasuredValueWindow = 6;
readonly attribute single uncertainty = 7;
readonly attribute MeasurementUnitEnum measurementUnit = 8;
readonly attribute MeasurementMediumEnum measurementMedium = 9;
readonly attribute LevelValueEnum levelValue = 10;
readonly attribute command_id generatedCommandList[] = 65528;
Expand Down Expand Up @@ -4503,6 +4506,16 @@ server cluster FormaldehydeConcentrationMeasurement = 1067 {
kAverageMeasurement = 0x20;
}

readonly attribute nullable single measuredValue = 0;
readonly attribute nullable single minMeasuredValue = 1;
readonly attribute nullable single maxMeasuredValue = 2;
readonly attribute nullable single peakMeasuredValue = 3;
readonly attribute elapsed_s peakMeasuredValueWindow = 4;
readonly attribute nullable single averageMeasuredValue = 5;
readonly attribute elapsed_s averageMeasuredValueWindow = 6;
readonly attribute single uncertainty = 7;
readonly attribute MeasurementUnitEnum measurementUnit = 8;
readonly attribute MeasurementMediumEnum measurementMedium = 9;
readonly attribute LevelValueEnum levelValue = 10;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
Expand Down Expand Up @@ -4668,6 +4681,7 @@ server cluster TotalVolatileOrganicCompoundsConcentrationMeasurement = 1070 {
readonly attribute single uncertainty = 7;
readonly attribute MeasurementUnitEnum measurementUnit = 8;
readonly attribute MeasurementMediumEnum measurementMedium = 9;
readonly attribute LevelValueEnum levelValue = 10;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
Expand Down Expand Up @@ -4712,6 +4726,15 @@ server cluster RadonConcentrationMeasurement = 1071 {
kAverageMeasurement = 0x20;
}

readonly attribute nullable single measuredValue = 0;
readonly attribute nullable single minMeasuredValue = 1;
readonly attribute nullable single maxMeasuredValue = 2;
readonly attribute nullable single peakMeasuredValue = 3;
readonly attribute elapsed_s peakMeasuredValueWindow = 4;
readonly attribute nullable single averageMeasuredValue = 5;
readonly attribute elapsed_s averageMeasuredValueWindow = 6;
readonly attribute single uncertainty = 7;
readonly attribute MeasurementUnitEnum measurementUnit = 8;
readonly attribute MeasurementMediumEnum measurementMedium = 9;
readonly attribute LevelValueEnum levelValue = 10;
readonly attribute command_id generatedCommandList[] = 65528;
Expand Down Expand Up @@ -6606,25 +6629,39 @@ endpoint 1 {
ram attribute measuredValue default = 3;
ram attribute minMeasuredValue default = 1;
ram attribute maxMeasuredValue default = 150;
ram attribute peakMeasuredValue default = 3;
ram attribute peakMeasuredValueWindow default = 120;
ram attribute averageMeasuredValue default = 3;
ram attribute averageMeasuredValueWindow default = 120;
ram attribute uncertainty default = 1;
ram attribute measurementUnit default = 1;
ram attribute measurementMedium default = 0;
ram attribute levelValue default = 1;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
callback attribute attributeList;
ram attribute featureMap default = 1;
ram attribute featureMap default = 63;
ram attribute clusterRevision default = 1;
}

server cluster OzoneConcentrationMeasurement {
ram attribute measuredValue default = 10;
ram attribute minMeasuredValue default = 3;
ram attribute maxMeasuredValue default = 300;
ram attribute peakMeasuredValue default = 50;
ram attribute peakMeasuredValueWindow default = 3600;
ram attribute averageMeasuredValue default = 20;
ram attribute averageMeasuredValueWindow default = 3600;
ram attribute uncertainty default = 0;
ram attribute measurementUnit default = 0;
ram attribute measurementMedium default = 0;
ram attribute levelValue default = 1;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
callback attribute attributeList;
ram attribute featureMap default = 14;
ram attribute featureMap default = 63;
ram attribute clusterRevision default = 1;
}

Expand All @@ -6649,12 +6686,22 @@ endpoint 1 {
}

server cluster FormaldehydeConcentrationMeasurement {
ram attribute levelValue default = 3;
ram attribute measuredValue default = 10;
ram attribute minMeasuredValue default = 0;
ram attribute maxMeasuredValue default = 200;
ram attribute peakMeasuredValue default = 10;
ram attribute peakMeasuredValueWindow default = 7200;
ram attribute averageMeasuredValue default = 2;
ram attribute averageMeasuredValueWindow default = 7200;
ram attribute uncertainty default = 0;
ram attribute measurementUnit default = 3;
ram attribute measurementMedium default = 0;
ram attribute levelValue default = 2;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
callback attribute attributeList;
ram attribute featureMap default = 2;
ram attribute featureMap default = 63;
ram attribute clusterRevision default = 1;
}

Expand All @@ -6679,7 +6726,7 @@ endpoint 1 {
}

server cluster Pm10ConcentrationMeasurement {
ram attribute measuredValue;
ram attribute measuredValue default = 7;
ram attribute minMeasuredValue default = 2;
ram attribute maxMeasuredValue default = 400;
ram attribute peakMeasuredValue default = 49;
Expand Down Expand Up @@ -6709,22 +6756,32 @@ endpoint 1 {
ram attribute uncertainty default = 1;
ram attribute measurementUnit default = 1;
ram attribute measurementMedium default = 0;
ram attribute levelValue default = 1;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
callback attribute attributeList;
ram attribute featureMap default = 49;
ram attribute featureMap default = 63;
ram attribute clusterRevision default = 1;
}

server cluster RadonConcentrationMeasurement {
ram attribute measuredValue default = 10;
ram attribute minMeasuredValue default = 5;
ram attribute maxMeasuredValue default = 100;
ram attribute peakMeasuredValue default = 36;
ram attribute peakMeasuredValueWindow default = 3600;
ram attribute averageMeasuredValue default = 20;
ram attribute averageMeasuredValueWindow default = 3600;
ram attribute uncertainty default = 0;
ram attribute measurementUnit default = 0;
ram attribute measurementMedium default = 0;
ram attribute levelValue default = 4;
ram attribute levelValue default = 3;
callback attribute generatedCommandList;
callback attribute acceptedCommandList;
callback attribute eventList;
callback attribute attributeList;
ram attribute featureMap default = 14;
ram attribute featureMap default = 63;
ram attribute clusterRevision default = 1;
}

Expand Down
Loading

0 comments on commit 5a288b7

Please sign in to comment.