ZUNO_SETUP_ASSOCIATIONS()This macro defines association groups in Z-Uno. Association groups are used to control other devices in Z-Wave network.
In terms of Z-Wave protocol this macro instructs Sketch bootloader to create additional Association groups in the Z-Uno board exposed using Association Command Class.
Each group should have it's own dedicated function. ZUNO_SETUP_ASSOCIATIONS(ControlGroupType_1, ControlGroupType_2,...) ControlGroupType_n Type of group defines which commands will be sent to distant devices in the network. There is only three possible types available:
- ZUNO_ASSOCIATION_GROUP_SET_VALUE — send switch on/off commands (using Basic Command Class) to devices in Z-Wave network by calling zunoSendToGroupSetValueCommand()
- ZUNO_ASSOCIATION_GROUP_SET_VALUE_AND_DIM — send dimming commands (using Switch Multilevel Command Class) to devices in Z-Wave network by calling zunoSendToGroupDimmingCommand(). You can also use zunoSendToGroupSetValueCommand() for devices in this group to send switch on/off commands (using Basic Command Class).
- ZUNO_ASSOCIATION_GROUP_SCENE_CONTROL — send scene activation commands (using Scene Activation Command Class) to devices in Z-Wave network by calling zunoSendToGroupScene()
Get more information about Z-Wave.