Skip to content
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

Friends of Hue Battery buttons #528

Closed
fribse opened this issue Jul 12, 2022 · 9 comments
Closed

Friends of Hue Battery buttons #528

fribse opened this issue Jul 12, 2022 · 9 comments
Assignees
Labels
new-device New device

Comments

@fribse
Copy link

fribse commented Jul 12, 2022

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
    }
}

20220712_202216
20220712_202210

@fribse fribse added the new-device New device label Jul 12, 2022
@fribse
Copy link
Author

fribse commented Jul 12, 2022

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

@xaviml
Copy link
Owner

xaviml commented Jul 17, 2022

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.

@xaviml
Copy link
Owner

xaviml commented Aug 29, 2022

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.

@fribse
Copy link
Author

fribse commented Aug 31, 2022

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?

@fribse
Copy link
Author

fribse commented Sep 1, 2022

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???

@xaviml
Copy link
Owner

xaviml commented Sep 1, 2022

Hi @fribse ,

Could you send me the device page from Zigbee2MQTT documentation?

Regards,
Xavi M.

@fribse
Copy link
Author

fribse commented Sep 1, 2022

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.

@xaviml
Copy link
Owner

xaviml commented Sep 1, 2022

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.

@fribse
Copy link
Author

fribse commented Sep 1, 2022

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 :-)

@fribse fribse closed this as completed Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-device New device
Projects
None yet
Development

No branches or pull requests

2 participants