Skip to content

Generate GeneralCommissioning cluster with Alchemy #38970

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,12 @@ cluster GeneralCommissioning = 48 {
kTCMinVersionNotMet = 7;
}

enum NetworkRecoveryReasonEnum : enum8 {
kUnspecified = 0;
kAuth = 1;
kVisibility = 2;
}

enum RegulatoryLocationTypeEnum : enum8 {
kIndoor = 0;
kOutdoor = 1;
Expand All @@ -889,6 +895,7 @@ cluster GeneralCommissioning = 48 {

bitmap Feature : bitmap32 {
kTermsAndConditions = 0x1;
kNetworkRecovery = 0x2;
}

struct BasicCommissioningInfo {
Expand All @@ -906,6 +913,8 @@ cluster GeneralCommissioning = 48 {
provisional readonly attribute access(read: administer) optional bitmap16 TCAcknowledgements = 7;
provisional readonly attribute access(read: administer) optional boolean TCAcknowledgementsRequired = 8;
provisional readonly attribute access(read: administer) optional nullable int32u TCUpdateDeadline = 9;
provisional readonly attribute access(read: manage) optional octet_string<8> recoveryIdentifier = 10;
provisional readonly attribute access(read: manage) optional nullable NetworkRecoveryReasonEnum networkRecoveryReason = 11;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute attrib_id attributeList[] = 65531;
Expand Down Expand Up @@ -947,13 +956,13 @@ cluster GeneralCommissioning = 48 {
CommissioningErrorEnum errorCode = 0;
}

/** Arm the persistent fail-safe timer with an expiry time of now + ExpiryLengthSeconds using device clock */
/** This command is used to arm or disarm the fail-safe timer. */
command access(invoke: administer) ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0;
/** Set the regulatory configuration to be used during commissioning */
/** This command is used to set the regulatory configuration for the device. */
command access(invoke: administer) SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2;
/** Signals the Server that the Client has successfully completed all steps of Commissioning/Recofiguration needed during fail-safe period. */
/** This command is used to indicate that the commissioning process is complete. */
fabric command access(invoke: administer) CommissioningComplete(): CommissioningCompleteResponse = 4;
/** This command sets the user acknowledgements received in the Enhanced Setup Flow Terms and Conditions into the node. */
/** This command is used to set the user acknowledgements received in the Enhanced Setup Flow Terms & Conditions into the node. */
command access(invoke: administer) SetTCAcknowledgements(SetTCAcknowledgementsRequest): SetTCAcknowledgementsResponse = 6;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,12 @@ cluster GeneralCommissioning = 48 {
kTCMinVersionNotMet = 7;
}

enum NetworkRecoveryReasonEnum : enum8 {
kUnspecified = 0;
kAuth = 1;
kVisibility = 2;
}

enum RegulatoryLocationTypeEnum : enum8 {
kIndoor = 0;
kOutdoor = 1;
Expand All @@ -818,6 +824,7 @@ cluster GeneralCommissioning = 48 {

bitmap Feature : bitmap32 {
kTermsAndConditions = 0x1;
kNetworkRecovery = 0x2;
}

struct BasicCommissioningInfo {
Expand All @@ -835,6 +842,8 @@ cluster GeneralCommissioning = 48 {
provisional readonly attribute access(read: administer) optional bitmap16 TCAcknowledgements = 7;
provisional readonly attribute access(read: administer) optional boolean TCAcknowledgementsRequired = 8;
provisional readonly attribute access(read: administer) optional nullable int32u TCUpdateDeadline = 9;
provisional readonly attribute access(read: manage) optional octet_string<8> recoveryIdentifier = 10;
provisional readonly attribute access(read: manage) optional nullable NetworkRecoveryReasonEnum networkRecoveryReason = 11;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute attrib_id attributeList[] = 65531;
Expand Down Expand Up @@ -876,13 +885,13 @@ cluster GeneralCommissioning = 48 {
CommissioningErrorEnum errorCode = 0;
}

/** Arm the persistent fail-safe timer with an expiry time of now + ExpiryLengthSeconds using device clock */
/** This command is used to arm or disarm the fail-safe timer. */
command access(invoke: administer) ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0;
/** Set the regulatory configuration to be used during commissioning */
/** This command is used to set the regulatory configuration for the device. */
command access(invoke: administer) SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2;
/** Signals the Server that the Client has successfully completed all steps of Commissioning/Recofiguration needed during fail-safe period. */
/** This command is used to indicate that the commissioning process is complete. */
fabric command access(invoke: administer) CommissioningComplete(): CommissioningCompleteResponse = 4;
/** This command sets the user acknowledgements received in the Enhanced Setup Flow Terms and Conditions into the node. */
/** This command is used to set the user acknowledgements received in the Enhanced Setup Flow Terms & Conditions into the node. */
command access(invoke: administer) SetTCAcknowledgements(SetTCAcknowledgementsRequest): SetTCAcknowledgementsResponse = 6;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1703,6 +1703,12 @@ cluster GeneralCommissioning = 48 {
kTCMinVersionNotMet = 7;
}

enum NetworkRecoveryReasonEnum : enum8 {
kUnspecified = 0;
kAuth = 1;
kVisibility = 2;
}

enum RegulatoryLocationTypeEnum : enum8 {
kIndoor = 0;
kOutdoor = 1;
Expand All @@ -1711,6 +1717,7 @@ cluster GeneralCommissioning = 48 {

bitmap Feature : bitmap32 {
kTermsAndConditions = 0x1;
kNetworkRecovery = 0x2;
}

struct BasicCommissioningInfo {
Expand All @@ -1728,6 +1735,8 @@ cluster GeneralCommissioning = 48 {
provisional readonly attribute access(read: administer) optional bitmap16 TCAcknowledgements = 7;
provisional readonly attribute access(read: administer) optional boolean TCAcknowledgementsRequired = 8;
provisional readonly attribute access(read: administer) optional nullable int32u TCUpdateDeadline = 9;
provisional readonly attribute access(read: manage) optional octet_string<8> recoveryIdentifier = 10;
provisional readonly attribute access(read: manage) optional nullable NetworkRecoveryReasonEnum networkRecoveryReason = 11;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute attrib_id attributeList[] = 65531;
Expand Down Expand Up @@ -1769,13 +1778,13 @@ cluster GeneralCommissioning = 48 {
CommissioningErrorEnum errorCode = 0;
}

/** Arm the persistent fail-safe timer with an expiry time of now + ExpiryLengthSeconds using device clock */
/** This command is used to arm or disarm the fail-safe timer. */
command access(invoke: administer) ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0;
/** Set the regulatory configuration to be used during commissioning */
/** This command is used to set the regulatory configuration for the device. */
command access(invoke: administer) SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2;
/** Signals the Server that the Client has successfully completed all steps of Commissioning/Recofiguration needed during fail-safe period. */
/** This command is used to indicate that the commissioning process is complete. */
fabric command access(invoke: administer) CommissioningComplete(): CommissioningCompleteResponse = 4;
/** This command sets the user acknowledgements received in the Enhanced Setup Flow Terms and Conditions into the node. */
/** This command is used to set the user acknowledgements received in the Enhanced Setup Flow Terms & Conditions into the node. */
command access(invoke: administer) SetTCAcknowledgements(SetTCAcknowledgementsRequest): SetTCAcknowledgementsResponse = 6;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1703,6 +1703,12 @@ cluster GeneralCommissioning = 48 {
kTCMinVersionNotMet = 7;
}

enum NetworkRecoveryReasonEnum : enum8 {
kUnspecified = 0;
kAuth = 1;
kVisibility = 2;
}

enum RegulatoryLocationTypeEnum : enum8 {
kIndoor = 0;
kOutdoor = 1;
Expand All @@ -1711,6 +1717,7 @@ cluster GeneralCommissioning = 48 {

bitmap Feature : bitmap32 {
kTermsAndConditions = 0x1;
kNetworkRecovery = 0x2;
}

struct BasicCommissioningInfo {
Expand All @@ -1728,6 +1735,8 @@ cluster GeneralCommissioning = 48 {
provisional readonly attribute access(read: administer) optional bitmap16 TCAcknowledgements = 7;
provisional readonly attribute access(read: administer) optional boolean TCAcknowledgementsRequired = 8;
provisional readonly attribute access(read: administer) optional nullable int32u TCUpdateDeadline = 9;
provisional readonly attribute access(read: manage) optional octet_string<8> recoveryIdentifier = 10;
provisional readonly attribute access(read: manage) optional nullable NetworkRecoveryReasonEnum networkRecoveryReason = 11;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute attrib_id attributeList[] = 65531;
Expand Down Expand Up @@ -1769,13 +1778,13 @@ cluster GeneralCommissioning = 48 {
CommissioningErrorEnum errorCode = 0;
}

/** Arm the persistent fail-safe timer with an expiry time of now + ExpiryLengthSeconds using device clock */
/** This command is used to arm or disarm the fail-safe timer. */
command access(invoke: administer) ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0;
/** Set the regulatory configuration to be used during commissioning */
/** This command is used to set the regulatory configuration for the device. */
command access(invoke: administer) SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2;
/** Signals the Server that the Client has successfully completed all steps of Commissioning/Recofiguration needed during fail-safe period. */
/** This command is used to indicate that the commissioning process is complete. */
fabric command access(invoke: administer) CommissioningComplete(): CommissioningCompleteResponse = 4;
/** This command sets the user acknowledgements received in the Enhanced Setup Flow Terms and Conditions into the node. */
/** This command is used to set the user acknowledgements received in the Enhanced Setup Flow Terms & Conditions into the node. */
command access(invoke: administer) SetTCAcknowledgements(SetTCAcknowledgementsRequest): SetTCAcknowledgementsResponse = 6;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1620,6 +1620,12 @@ cluster GeneralCommissioning = 48 {
kTCMinVersionNotMet = 7;
}

enum NetworkRecoveryReasonEnum : enum8 {
kUnspecified = 0;
kAuth = 1;
kVisibility = 2;
}

enum RegulatoryLocationTypeEnum : enum8 {
kIndoor = 0;
kOutdoor = 1;
Expand All @@ -1628,6 +1634,7 @@ cluster GeneralCommissioning = 48 {

bitmap Feature : bitmap32 {
kTermsAndConditions = 0x1;
kNetworkRecovery = 0x2;
}

struct BasicCommissioningInfo {
Expand All @@ -1645,6 +1652,8 @@ cluster GeneralCommissioning = 48 {
provisional readonly attribute access(read: administer) optional bitmap16 TCAcknowledgements = 7;
provisional readonly attribute access(read: administer) optional boolean TCAcknowledgementsRequired = 8;
provisional readonly attribute access(read: administer) optional nullable int32u TCUpdateDeadline = 9;
provisional readonly attribute access(read: manage) optional octet_string<8> recoveryIdentifier = 10;
provisional readonly attribute access(read: manage) optional nullable NetworkRecoveryReasonEnum networkRecoveryReason = 11;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute attrib_id attributeList[] = 65531;
Expand Down Expand Up @@ -1686,13 +1695,13 @@ cluster GeneralCommissioning = 48 {
CommissioningErrorEnum errorCode = 0;
}

/** Arm the persistent fail-safe timer with an expiry time of now + ExpiryLengthSeconds using device clock */
/** This command is used to arm or disarm the fail-safe timer. */
command access(invoke: administer) ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0;
/** Set the regulatory configuration to be used during commissioning */
/** This command is used to set the regulatory configuration for the device. */
command access(invoke: administer) SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2;
/** Signals the Server that the Client has successfully completed all steps of Commissioning/Recofiguration needed during fail-safe period. */
/** This command is used to indicate that the commissioning process is complete. */
fabric command access(invoke: administer) CommissioningComplete(): CommissioningCompleteResponse = 4;
/** This command sets the user acknowledgements received in the Enhanced Setup Flow Terms and Conditions into the node. */
/** This command is used to set the user acknowledgements received in the Enhanced Setup Flow Terms & Conditions into the node. */
command access(invoke: administer) SetTCAcknowledgements(SetTCAcknowledgementsRequest): SetTCAcknowledgementsResponse = 6;
}

Expand Down
17 changes: 13 additions & 4 deletions examples/bridge-app/bridge-common/bridge-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1114,6 +1114,12 @@ cluster GeneralCommissioning = 48 {
kTCMinVersionNotMet = 7;
}

enum NetworkRecoveryReasonEnum : enum8 {
kUnspecified = 0;
kAuth = 1;
kVisibility = 2;
}

enum RegulatoryLocationTypeEnum : enum8 {
kIndoor = 0;
kOutdoor = 1;
Expand All @@ -1122,6 +1128,7 @@ cluster GeneralCommissioning = 48 {

bitmap Feature : bitmap32 {
kTermsAndConditions = 0x1;
kNetworkRecovery = 0x2;
}

struct BasicCommissioningInfo {
Expand All @@ -1139,6 +1146,8 @@ cluster GeneralCommissioning = 48 {
provisional readonly attribute access(read: administer) optional bitmap16 TCAcknowledgements = 7;
provisional readonly attribute access(read: administer) optional boolean TCAcknowledgementsRequired = 8;
provisional readonly attribute access(read: administer) optional nullable int32u TCUpdateDeadline = 9;
provisional readonly attribute access(read: manage) optional octet_string<8> recoveryIdentifier = 10;
provisional readonly attribute access(read: manage) optional nullable NetworkRecoveryReasonEnum networkRecoveryReason = 11;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute attrib_id attributeList[] = 65531;
Expand Down Expand Up @@ -1180,13 +1189,13 @@ cluster GeneralCommissioning = 48 {
CommissioningErrorEnum errorCode = 0;
}

/** Arm the persistent fail-safe timer with an expiry time of now + ExpiryLengthSeconds using device clock */
/** This command is used to arm or disarm the fail-safe timer. */
command access(invoke: administer) ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0;
/** Set the regulatory configuration to be used during commissioning */
/** This command is used to set the regulatory configuration for the device. */
command access(invoke: administer) SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2;
/** Signals the Server that the Client has successfully completed all steps of Commissioning/Recofiguration needed during fail-safe period. */
/** This command is used to indicate that the commissioning process is complete. */
fabric command access(invoke: administer) CommissioningComplete(): CommissioningCompleteResponse = 4;
/** This command sets the user acknowledgements received in the Enhanced Setup Flow Terms and Conditions into the node. */
/** This command is used to set the user acknowledgements received in the Enhanced Setup Flow Terms & Conditions into the node. */
command access(invoke: administer) SetTCAcknowledgements(SetTCAcknowledgementsRequest): SetTCAcknowledgementsResponse = 6;
}

Expand Down
17 changes: 13 additions & 4 deletions examples/camera-app/camera-common/camera-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,12 @@ cluster GeneralCommissioning = 48 {
kTCMinVersionNotMet = 7;
}

enum NetworkRecoveryReasonEnum : enum8 {
kUnspecified = 0;
kAuth = 1;
kVisibility = 2;
}

enum RegulatoryLocationTypeEnum : enum8 {
kIndoor = 0;
kOutdoor = 1;
Expand All @@ -930,6 +936,7 @@ cluster GeneralCommissioning = 48 {

bitmap Feature : bitmap32 {
kTermsAndConditions = 0x1;
kNetworkRecovery = 0x2;
}

struct BasicCommissioningInfo {
Expand All @@ -947,6 +954,8 @@ cluster GeneralCommissioning = 48 {
provisional readonly attribute access(read: administer) optional bitmap16 TCAcknowledgements = 7;
provisional readonly attribute access(read: administer) optional boolean TCAcknowledgementsRequired = 8;
provisional readonly attribute access(read: administer) optional nullable int32u TCUpdateDeadline = 9;
provisional readonly attribute access(read: manage) optional octet_string<8> recoveryIdentifier = 10;
provisional readonly attribute access(read: manage) optional nullable NetworkRecoveryReasonEnum networkRecoveryReason = 11;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute attrib_id attributeList[] = 65531;
Expand Down Expand Up @@ -988,13 +997,13 @@ cluster GeneralCommissioning = 48 {
CommissioningErrorEnum errorCode = 0;
}

/** Arm the persistent fail-safe timer with an expiry time of now + ExpiryLengthSeconds using device clock */
/** This command is used to arm or disarm the fail-safe timer. */
command access(invoke: administer) ArmFailSafe(ArmFailSafeRequest): ArmFailSafeResponse = 0;
/** Set the regulatory configuration to be used during commissioning */
/** This command is used to set the regulatory configuration for the device. */
command access(invoke: administer) SetRegulatoryConfig(SetRegulatoryConfigRequest): SetRegulatoryConfigResponse = 2;
/** Signals the Server that the Client has successfully completed all steps of Commissioning/Recofiguration needed during fail-safe period. */
/** This command is used to indicate that the commissioning process is complete. */
fabric command access(invoke: administer) CommissioningComplete(): CommissioningCompleteResponse = 4;
/** This command sets the user acknowledgements received in the Enhanced Setup Flow Terms and Conditions into the node. */
/** This command is used to set the user acknowledgements received in the Enhanced Setup Flow Terms & Conditions into the node. */
command access(invoke: administer) SetTCAcknowledgements(SetTCAcknowledgementsRequest): SetTCAcknowledgementsResponse = 6;
}

Expand Down
Loading
Loading