Skip to content

Commit 5cc8191

Browse files
committed
UIC-3275: Regen zapfiles for Application status
Relate-to: SiliconLabsSoftware/z-wave-protocol-controller#147 Signed-off-by: Philippe Coval <philippe.coval@silabs.com>
1 parent 76d2bcc commit 5cc8191

File tree

9 files changed

+501
-0
lines changed

9 files changed

+501
-0
lines changed

applications/examples/applications/emulated_end_device/components/eed_attribute_store/zap-generated/src/eed_attribute_store_clusters.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2791,6 +2791,18 @@ sl_status_t eed_attribute_store_clusters_init()
27912791
&on_zcl_desired_value_update,
27922792
DOTDOT_ATTRIBUTE_ID_UNIFY_HUMIDITY_CONTROL_AUTO_SETPOINT_PRECISION,
27932793
DESIRED_ATTRIBUTE);
2794+
attribute_store_register_callback_by_type_and_state(
2795+
&on_zcl_desired_value_update,
2796+
DOTDOT_ATTRIBUTE_ID_APPLICATION_STATUS_BUSY_STATUS,
2797+
DESIRED_ATTRIBUTE);
2798+
attribute_store_register_callback_by_type_and_state(
2799+
&on_zcl_desired_value_update,
2800+
DOTDOT_ATTRIBUTE_ID_APPLICATION_STATUS_WAIT_TIME,
2801+
DESIRED_ATTRIBUTE);
2802+
attribute_store_register_callback_by_type_and_state(
2803+
&on_zcl_desired_value_update,
2804+
DOTDOT_ATTRIBUTE_ID_APPLICATION_STATUS_REJECT_STATUS,
2805+
DESIRED_ATTRIBUTE);
27942806
// clang-format on
27952807
return SL_STATUS_OK;
27962808
}

applications/examples/applications/emulated_end_device/components/eed_attribute_store/zap-generated/src/eed_dotdot_create_clusters.cpp

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4157,6 +4157,27 @@ void dotdot_create_unify_humidity_control_wrapper(const dotdot_unid_t unid, cons
41574157

41584158
}
41594159

4160+
void dotdot_create_application_status_wrapper(const dotdot_unid_t unid, const dotdot_endpoint_id_t endpoint_id){
4161+
// Create and set a default value if undefined.
4162+
dotdot_create_application_status_busy_status(unid,endpoint_id);
4163+
if (false == dotdot_application_status_busy_status_is_reported_defined(unid,endpoint_id)){
4164+
dotdot_set_application_status_busy_status(unid,endpoint_id,REPORTED_ATTRIBUTE, static_cast<uint8_t>(0));
4165+
}
4166+
4167+
// Create and set a default value if undefined.
4168+
dotdot_create_application_status_wait_time(unid,endpoint_id);
4169+
if (false == dotdot_application_status_wait_time_is_reported_defined(unid,endpoint_id)){
4170+
dotdot_set_application_status_wait_time(unid,endpoint_id,REPORTED_ATTRIBUTE, static_cast<uint8_t>(0));
4171+
}
4172+
4173+
// Create and set a default value if undefined.
4174+
dotdot_create_application_status_reject_status(unid,endpoint_id);
4175+
if (false == dotdot_application_status_reject_status_is_reported_defined(unid,endpoint_id)){
4176+
dotdot_set_application_status_reject_status(unid,endpoint_id,REPORTED_ATTRIBUTE, static_cast<bool>(0));
4177+
}
4178+
4179+
}
4180+
41604181

41614182
void dotdot_unretain_basic_wrapper(const dotdot_unid_t unid, const dotdot_endpoint_id_t endpoint_id){
41624183
char base_topic[256];
@@ -6633,6 +6654,25 @@ void dotdot_unretain_unify_humidity_control_wrapper(const dotdot_unid_t unid, co
66336654
uic_mqtt_dotdot_unify_humidity_control_publish_empty_supported_commands(unid, endpoint_id);
66346655
}
66356656

6657+
void dotdot_unretain_application_status_wrapper(const dotdot_unid_t unid, const dotdot_endpoint_id_t endpoint_id){
6658+
char base_topic[256];
6659+
snprintf(base_topic, sizeof(base_topic), "ucl/by-unid/%s/ep%d", unid, endpoint_id);
6660+
attribute_store::attribute ep_node = eed_attribute_store_get_endpoint_node(unid, endpoint_id);
6661+
6662+
uic_mqtt_dotdot_application_status_busy_status_unretain(base_topic,UCL_MQTT_PUBLISH_TYPE_ALL);
6663+
ep_node.child_by_type(DOTDOT_ATTRIBUTE_ID_APPLICATION_STATUS_BUSY_STATUS).delete_node();
6664+
6665+
uic_mqtt_dotdot_application_status_wait_time_unretain(base_topic,UCL_MQTT_PUBLISH_TYPE_ALL);
6666+
ep_node.child_by_type(DOTDOT_ATTRIBUTE_ID_APPLICATION_STATUS_WAIT_TIME).delete_node();
6667+
6668+
uic_mqtt_dotdot_application_status_reject_status_unretain(base_topic,UCL_MQTT_PUBLISH_TYPE_ALL);
6669+
ep_node.child_by_type(DOTDOT_ATTRIBUTE_ID_APPLICATION_STATUS_REJECT_STATUS).delete_node();
6670+
6671+
6672+
uic_mqtt_dotdot_application_status_unretain_cluster_revision(base_topic);
6673+
uic_mqtt_dotdot_application_status_publish_empty_supported_commands(unid, endpoint_id);
6674+
}
6675+
66366676

66376677
void eed_dotdot_create_clusters(const dotdot_unid_t unid, const dotdot_endpoint_id_t endpoint_id) {
66386678
for (auto& pair : CreateClusterMap) {
@@ -6711,6 +6751,7 @@ std::map<std::string, eed_cluster_attribute_wrapper> CreateClusterMap = {
67116751
{ "UnifyFanControl", dotdot_create_unify_fan_control_wrapper },
67126752
{ "UnifyThermostat", dotdot_create_unify_thermostat_wrapper },
67136753
{ "UnifyHumidityControl", dotdot_create_unify_humidity_control_wrapper },
6754+
{ "ApplicationStatus", dotdot_create_application_status_wrapper },
67146755
};
67156756

67166757
std::map<std::string, eed_cluster_attribute_wrapper> CreateUnretainMap = {
@@ -6762,4 +6803,5 @@ std::map<std::string, eed_cluster_attribute_wrapper> CreateUnretainMap = {
67626803
{ "UnifyFanControl", dotdot_unretain_unify_fan_control_wrapper },
67636804
{ "UnifyThermostat", dotdot_unretain_unify_thermostat_wrapper },
67646805
{ "UnifyHumidityControl", dotdot_unretain_unify_humidity_control_wrapper },
6806+
{ "ApplicationStatus", dotdot_unretain_application_status_wrapper },
67656807
};

components/uic_dotdot/zap-generated/include/dotdot_attribute_id_definitions.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,10 @@ typedef enum {
884884
#define DOTDOT_UNIFY_HUMIDITY_CONTROL_AUTO_SETPOINT_ATTRIBUTE_ID ((dotdot_attribute_id_t)0x11)
885885
#define DOTDOT_UNIFY_HUMIDITY_CONTROL_AUTO_SETPOINT_SCALE_ATTRIBUTE_ID ((dotdot_attribute_id_t)0x12)
886886
#define DOTDOT_UNIFY_HUMIDITY_CONTROL_AUTO_SETPOINT_PRECISION_ATTRIBUTE_ID ((dotdot_attribute_id_t)0x13)
887+
// Definitions for cluster: ApplicationStatus
888+
#define DOTDOT_APPLICATION_STATUS_BUSY_STATUS_ATTRIBUTE_ID ((dotdot_attribute_id_t)0x0)
889+
#define DOTDOT_APPLICATION_STATUS_WAIT_TIME_ATTRIBUTE_ID ((dotdot_attribute_id_t)0x1)
890+
#define DOTDOT_APPLICATION_STATUS_REJECT_STATUS_ATTRIBUTE_ID ((dotdot_attribute_id_t)0x2)
887891

888892
// clang-format on
889893

components/uic_dotdot/zap-generated/include/dotdot_cluster_command_id_definitions.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,8 @@
375375
#define DOTDOT_UNIFY_HUMIDITY_CONTROL_MODE_SET_COMMAND_ID (0x1)
376376
#define DOTDOT_UNIFY_HUMIDITY_CONTROL_SETPOINT_SET_COMMAND_ID (0x2)
377377

378+
// Commands for cluster: ApplicationStatus
379+
378380
#ifdef __cplusplus
379381
extern "C" {
380382
#endif

components/uic_dotdot/zap-generated/include/dotdot_cluster_id_definitions.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,10 @@
266266
#define DOTDOT_UNIFY_HUMIDITY_CONTROL_CLUSTER_ID ((dotdot_cluster_id_t)0xFDA0)
267267

268268

269+
// Definitions for cluster: ApplicationStatus
270+
#define DOTDOT_APPLICATION_STATUS_CLUSTER_ID ((dotdot_cluster_id_t)0xFFA2)
271+
272+
269273
#ifdef __cplusplus
270274
extern "C" {
271275
#endif

components/uic_dotdot/zap-generated/include/zap-types.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,13 @@ typedef enum {
201201
ZCL_AO_X_LOCATOR_REPORTING_MODE_ANGLE_REPORT = 1,
202202
} AoXLocatorReportingMode;
203203

204+
// Enum for ApplicationStatusBusyStatus
205+
typedef enum {
206+
ZCL_APPLICATION_STATUS_BUSY_STATUS_TRY_AGAIN_LATER = 0,
207+
ZCL_APPLICATION_STATUS_BUSY_STATUS_TRY_AGAIN_IN_WAIT_TIME_SECONDS = 1,
208+
ZCL_APPLICATION_STATUS_BUSY_STATUS_REQUEST_QUEUED = 2,
209+
} ApplicationStatusBusyStatus;
210+
204211
// Enum for ArmArmMode
205212
typedef enum {
206213
ZCL_ARM_ARM_MODE_DISARM = 0,

0 commit comments

Comments
 (0)