Friends of Hue Battery buttons
New Device Support
Device Information
- Device Model: friends_of_hue_switch
- Device Description: FUGA style button with 4 buttons, battery driven
- Device Manufacturer: smartkontakten.dk
Integrations
Integration: deconz
Actions
The button numbers are distributed like this
1 3 2 4
The number is put in below to get the actions :-)
Bt x Click x000 release after short click x002 Hold x000 holding x001 release x003
Notes
An event from HA
{
"event_type": "deconz_event",
"data": {
"id": "friends_of_hue_switch",
"unique_id": "00:00:00:00:01:71:7f:b8",
"event": 2002,
"device_id": "cc8b2b102fce1d045a50c22aa1c297ae"
},
"origin": "LOCAL",
"time_fired": "2022-07-12T18:12:09.629459+00:00",
"context": {
"id": "01G7SSS0RXKTPM1VPRPRGEBYG2",
"parent_id": null,
"user_id": null
}
}
I think I made it work with these mappings:
office_sofa_hue:
module: controllerx
class: E1743Controller
controller: office_sofa_multi_control
integration: deconz
light: light.office_sofa
mapping:
1002: "on"
1001: hold_brightness_up
1003: release
3002: "off"
3001: hold_brightness_down
3003: release
office_ceiling_hue:
module: controllerx
class: E1743Controller
controller: office_sofa_multi_control
integration: deconz
light: light.office_ceiling
mapping:
2002: "on"
2001: hold_brightness_up
2003: release
4002: "off"
4001: hold_brightness_down
4003: release
Hi @fribse ,
Thank you for opening this issue. The mapping you provided will be enough for the implementation, and thank you for the working configuration as example, it will definitely help.
It might take me some time to have this done, but I will keep you updated.
Regards, Xavi M.
The support for this device has been added to a new beta version, ControllerX v4.23.0b0. You can now download it from HACS by enabling the beta versions.
Great, I hope it's supported in z2m integration as well, as I'm moving there currently :-) How do I reference the four buttons in z2m?
Ah, I found the code in the debug. press_1-4 release_1-4 Now I just need to find the 'hold', or find out how that is accomplished :-)
I'm not sure I'm doing it right with z2m:
office-sofa_cover:
module: controllerx
class: E1743CoverController
controller: sensor.sofa_control_action
integration: z2m
cover: cover.office_window_blind
mapping:
press_2: open
hold_2: toggle_open
release_2: stop
If I press 2 and release it, it should go all the way, but instead it reacts with just moving a slight bit. I have to hold it, to make it go all the way to the end. I guess there is no 'hold_2', and it's the 'open' that's wrong???
Hi @fribse ,
Could you send me the device page from Zigbee2MQTT documentation?
Regards, Xavi M.
It's detected as this one: https://www.zigbee2mqtt.io/devices/PTM_215Z.html I'm pretty sure it's correct, the pairing method is the same, and the button numbering is the same.
Thanks!
This controller is supported by ControllerX: https://xaviml.github.io/controllerx/controllers/PTM215X/
As you discovered, Zigbee2MQTT does not support the hold actions, only deCONZ. Not sure what is the context on not supporting it.
Regards, Xavi M.
Ok, gotcha. Weird that it doesn't, oh well, I'll live with it. Thankyou very much for all your help, and before I moved it to z2m, the beta version worked fine in deconz for this button set :-)