Hi, I'd like to set the alarm state of a minimal power configuration cluster that only has the attributes "remaining battery percentage" and "battery alarm id".
However the function I'd normally use zb_zcl_set_attr_val is only working on uint8_t datatypes, the alarm state is uint32_t.
I'd prefer to not use the threshold registers since the evaluation of battery low is done in another part of the system and I'd like the reports to be consistent, triggering at the same time.
Here is my power config cluster definition, I have put it as a part of the door lock cluster list.
#define ZB_ZCL_POWER_CONFIG_BATTERY_ATTRIB_LIST_MIN(bat_num, \ remaining, alarm_state) \ ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_POWER_CONFIG_BATTERY_PERCENTAGE_REMAINING_ID(remaining, bat_num), \ ZB_SET_ATTR_DESCR_WITH_ZB_ZCL_ATTR_POWER_CONFIG_BATTERY_ALARM_STATE_ID(alarm_state, bat_num), \ #define ZB_ZCL_DECLARE_POWER_CONFIG_BATTERY_ATTRIB_LIST_MIN(attr_list, \ remaining, alarm_state) \ ZB_ZCL_START_DECLARE_ATTRIB_LIST(attr_list) \ ZB_ZCL_POWER_CONFIG_BATTERY_ATTRIB_LIST_MIN(, \ remaining, alarm_state) \ ZB_ZCL_FINISH_DECLARE_ATTRIB_LIST