Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Friends of Hue switches from Vimar, Busch-Jaeger, Niko
This is incompatible to the Hue API since instead of raw ZGP commands the usual 1000, 1001, 1002, 1003, etc button events will be emitted. Buttons: 1000 top left 2000 bottom left 3000 top right 4000 bottom right 5000 top left + right 6000 bottom left + right All buttons support the events: * initial press * short release * hold * long release
- Loading branch information
Showing
2 changed files
with
116 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5a3767b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While I appreciate the increased functionality, this is a pain for software like homebridge-hue that supports both deCONZ and the Hue bridge.
5a3767b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can still provide the original ZGP command values next to the derived ones.
The easiest would be just to fire multiple events, or as alternative to use two separate attributes?
5a3767b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy with the "usual"
buttonevent
values, but I do wish there's some hint in the/sensors
resource as to what values to expect. Looks like the switchcapabilities
as exposed by the Hue API since v1.30.0 would do the trick. See #974 (comment).5a3767b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, can anybody help me with joining a friends of hue switch?
Since I don´t have a Busch-Jaeger / Vimar / Niko switch but one from Opus (https://www.opusgreen.net/produkte/einzelprodukte/opus-55-zigbee-wandsender/) I´m not sure how to join the switch to deconz within the phoscon app. In the user manual of my switch it is not mentioned how to join it to a network, it is only stated to see the manual of the gaateway :-)
As far as I understood all the switches share the same module from enocean (https://www.enocean.com/de/enocean-module-24ghz/details/ptm-215ze/), right? So joining a network should be the same for all switches!?
I saw a video of how to join a vimar switch to philips hue gateway (10s the upper left switch, then the upper right and lower left at the same time) and found the steps for the "ptm 215ze" module how to send telegrams to join a network (all steps at the same button: >7s, short press, >7s).
Both ways don´t work out for me when trying to join my switch as a generic switch within phoscon.
Any suggestions?
5a3767b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it is the same module you may try to join the switch with the description from Vimar:
https://download.vimar.com/irj/go/km/docs/z_catalogo/DOCUMENT/03906IEN.82882.pdf
The important part is that the initial long button press selects the channel 11, 15, 20 or 25 to operate on. Therefore the right button needs to be pressed for the actual Zigbee channel which the gateway uses.
This can also be tried by trial and error :) just press a button for 7 seconds and see if the switch search gets "green" and shows success.
5a3767b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the link @manup. Seems like the VIMAR switch uses the PTM 215Z module.
Can anybody confirm if Busch-Jaeger / Niko are using the same?
This way of learn-in the switches is also indicating that all friends of hue switches are using the PTM 215Z module, since it corresponds with the manual of the module.
The module PTM 216Z is very similar though.....
https://www.enocean.com/de/enocean-module-24ghz/details/ptm-216z/
I knew that my conbee II is running on Channel 15. So I tried to switch the Channel to 15 on my Opus 55 switch and then tried to learn-in the switch again. And yeah IT WORKED.
The downside is: it was recognized as a hue tap. This is probably why I get only short press events from deconz!?
As I understood from the code within this commit the hold / long press function doesn´t come from the switch itself but from the code. Am I write? Woudl this mean it could be implemented for my switch as well?
What would you need for implementing it?
This is what I get in HA as events (Button: press / release)
A0: 34 / 35
A1: 24 / 25
B0: 20 / 21
B1: 18 / 19