DDF for IKEA TRADFRI wireless dimmer #7242
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New DDF, in line with DDFs for other IKEA controllers.
This is the cursed, old, round wireless dimmer. It insists on sending multiple groupcasts from Level Control when turning it, completely flooding the Zigbee network. It won't honour any unicast binding for Level Control (even though it does for Power Configuration). When you delete the group binding, it continues to send groupcasts to group 0x0000.
I think the device should have been exposed with only a ZHARelativeRotary resource, since it only supports turning and has no buttons. This might be challenging to do in JSON and Javascript, as it sends three different commands, Move, Move (with On/Off), and Move to Level (with On/Off), that need to be considered for rotary events. For now it's still exposed as ZHASwitch, as I doubt the change would be worth the effort, since the device is hardly usable anyways. The main benefit of this DDF is to be able to get rid of whitelisting IKEA devices in the C++ code.