nymea / nymea-zigbee

Zigbee library and tools for the nymea IoT stack.
GNU Lesser General Public License v3.0
3 stars 4 forks source link

More work on OnOff, LevelControl and ScenesCluster #26

Closed mzanetti closed 2 years ago

mzanetti commented 2 years ago

This alignes the OnOff cluster with the LevelControl cluster in terms of signal behavior: Previously, the OnOff cluster would fire a generic commandSent() signal for some commands and specific signals for others. Effectively forcing the user to connect multiple signals even if only the command would be of interest.

The LevelControl cluster instead always fired a generic commandSent() signal and additionally more specific signals for parsed parameters.

This changes the OnOff cluster to be in line with the LevelCluster as and making the API a bit simpler to use when parameters are not of interest.

Also it completes the specific parsing for all 3 clusters.