-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes for Busch-Jaeger devices #5299
Conversation
The BJ ZLL switches/relays/dimmers are currently exposed as switches with a non-prefixed endpoint. This causes two issues: - Dimming is not working for the dimmer modules - Both `state` and `state_relay` is published as an attribute, where only `state_relay` makes sense here. However the Z2M UI and Home Assistant auto-discovery were both using the "wrong" attribute. This commit addresses both issues, but will cause some changes for existing users: - Home Assistant auto-discovery will change (device changes from switch to light) - All BJ ZLL devices will have a brightness attribute (and brightness slider in the Z2M web UI), even if they do not support dimming. This is due to the fact that all devices are reported as the same model and Z2M cannot distinguish them. - The top rocker (endpoint 10) will not be bound to the coordinator any more if the module was installed on a relay or dimmer. This is just a clean-up, which won't have a practical effect.
We don't need to expose all Busch-Jaeger devices as lights, but only the ones which are actually connected to a relay or dimmer.
The scenes cluster workaround does not seem to be required for the battery-powered Busch-Jaeger wall switches. This will only affect freshly paired devices, existing devices will be kept es they are.
Let me know once this is ready for merge. |
I'll do more testing next week and I also want to push out some improvements to the documentation. I'll ping you as soon as I am ready ;) |
@Koenkk This is ready now. In the meantime I have done some testing with my Busch-Jaeger devices. I have the following combinations installed:
Everything has been working for me. I have also tested removing and re-pairing some of the devices. I have also updated the docs a little bit: Koenkk/zigbee2mqtt.io#1831 I have intentionally split up my changes across multiple commits, so it is easier to review/understand what I was trying to accomplish :) |
I think we can easily avoid this by keeping the Note to self; after this merge Koenkk/zigbee2mqtt.io#1831 |
The switch definition for these devices is actually wrong here, but let's keep it for compatibility reasons as it has been there first.
@Koenkk Of course, you are completely right. By just keeping Tetsted and works in my Home Assistant instance, so this is ready for merging from my side. The question is if you want to get rid of the (wrong) switch definition at any time or if you'd rather keep it forever. |
Thanks!
I've added a deprecated note, so this can be removed in e.g. Zigbee2MQTT 2.0. |
This PR adds a number of improvements and fixes for Busch-Jaeger ZLL devices:
relay
endpoint)This PR has a few implications:
Home Assistant auto-discovery will be changed as the device type changes from switch to light (in order to support dimming)Fixes Koenkk/zigbee2mqtt#7077