On/Off Switch Configuration cluster has no cluster-specific command support. Cluster attributes can be queried with common commands.
Sample switch config cluster attributes data
◆ ZB_ZCL_DECLARE_ON_OFF_SWITCH_CONFIGURATION_ATTRIB_LIST
#define ZB_ZCL_DECLARE_ON_OFF_SWITCH_CONFIGURATION_ATTRIB_LIST |
( |
|
attr_list, |
|
|
|
switch_type, |
|
|
|
switch_actions |
|
) |
| |
Value: ZB_ZCL_START_DECLARE_ATTRIB_LIST_CLUSTER_REVISION(attr_list, ZB_ZCL_ON_OFF_SWITCH_CONFIGURATION) \
ZB_ZCL_FINISH_DECLARE_ATTRIB_LIST
Declare attribute list for ON/OFF Switch configuration cluster.
- Parameters
-
attr_list | - attribute list name |
switch_type | - pointer to variable to store switch type attribute value |
switch_actions | - pointer to variable to store switch action attribute value |
◆ zb_zcl_on_off_switch_configuration_attr_e
On/off switch configuration cluster attribute identifiers.
- See also
- ZCL spec, subclause 3.9.2.2
Enumerator |
---|
ZB_ZCL_ATTR_ON_OFF_SWITCH_CONFIGURATION_SWITCH_TYPE_ID | Switch type attribute identifier (switch information)
|
ZB_ZCL_ATTR_ON_OFF_SWITCH_CONFIGURATION_SWITCH_ACTIONS_ID | Switch actions attribute identifier (switch settings)
|
◆ zb_zcl_on_off_switch_configuration_switch_actions_e
Permissible values for switch actions attribute.
- See also
- ZCL spec, subclause 3.9.2.2.3.1
Enumerator |
---|
ZB_ZCL_ON_OFF_SWITCH_CONFIGURATION_SWITCH_ACTIONS_TYPE1 | First type command pattern.
- Send "On" on arriving to State2 from State1;
- Send "Off" on arriving to State1 from State2.
|
ZB_ZCL_ON_OFF_SWITCH_CONFIGURATION_SWITCH_ACTIONS_TYPE2 | Second type command pattern.
- Send "On" on arriving to State1 from State2;
- Send "Off" on arriving to State2 from State1.
|
ZB_ZCL_ON_OFF_SWITCH_CONFIGURATION_SWITCH_ACTIONS_TOGGLE | Toggle command pattern.
Send "Toggle" on state change
|
◆ zb_zcl_on_off_switch_configuration_switch_type_e
Permissible values for switch type attribute.
- See also
- ZCL spec, subclause 3.9.2.2.2
Enumerator |
---|
ZB_ZCL_ON_OFF_SWITCH_CONFIGURATION_SWITCH_TYPE_TOGGLE | Toggle switch
|
ZB_ZCL_ON_OFF_SWITCH_CONFIGURATION_SWITCH_TYPE_MOMENTARY | Momentary switch
|
ZB_ZCL_ON_OFF_SWITCH_CONFIGURATION_SWITCH_TYPE_MULTIFUNCTION | Multifunction switch
|