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

[QUESTION] Failing Philips RDM002 controller with hold_brightness_toggle #861

Open
robsonke opened this issue Jul 2, 2023 · 0 comments
Open
Assignees
Labels
question Further information is requested

Comments

@robsonke
Copy link

robsonke commented Jul 2, 2023

Question

First of all, great tool! I've implemented several working controllers but struggling with the Philips Hue Tap Dial Switch (RDM002). I want to use this to control multiple lights, so I mapped one button to one light. I'll describe my settings first. It works for button 1 but not for button 2, while my settings are all identical.

Additional information

  • Devices involved:
    • Model: Philips RDM002 as Controller
    • Light: normal zigbee dimmer
  • Integration: z2m
  • AppDaemon version: v4.4.2
  • ControllerX version: v4.26.2
  • HACS version (if installed from there): 1.32.1
  • Home Assistant Core version: 2023.6.3

AppDaemon app configuration

# WORKING:
masterbedroom_light_closetbath:
  module: controllerx
  class: PhilipsRDM002Z2MLightController
  controller: hue_tap_switch_master
  integration:
    name: z2m
    listen_to: mqtt
  actions:
    - button_1_press_release
    - button_1_hold
    - button_1_hold_release
  light: 
    name: dimmer_master_closetbath
    mode: mqtt
  merge_mapping:
    button_1_press_release: toggle
    button_1_hold: hold_brightness_toggle

# NOT WORKING
masterbedroom_light_bed:
  module: controllerx
  class: PhilipsRDM002Z2MLightController
  controller: hue_tap_switch_master
  integration:
    name: z2m
    listen_to: mqtt
  actions:
    - button_2_press_release
    - button_2_hold
    - button_2_hold_release
  light: 
    name: dimmer_masterbed
    mode: mqtt
  mapping:
    button_2_press_release: toggle
    button_2_hold: hold_brightness_toggle

Logs


Success log:
2023-07-02 10:15:13.631521 INFO masterbedroom_light_closetbath: 🎮 Button event triggered: `button_1_hold_release`
2023-07-02 10:15:12.966593 INFO masterbedroom_light_closetbath: 🏃 Running `Predefined (hold_brightness_toggle)` now
2023-07-02 10:15:12.956426 INFO masterbedroom_light_closetbath: 🎮 Button event triggered: `button_1_hold`
2023-07-02 10:15:12.192218 INFO masterbedroom_light_closetbath: 🤖 Service: �[1mmqtt.publish�[0m - topic: zigbee2mqtt/dimmer_master_closetbath/set - payload: {"brightness_move": 70} - namespace: mqtt
2023-07-02 10:15:12.185712 INFO masterbedroom_light_closetbath: 🏃 Running `Predefined (hold_brightness_toggle)` now
2023-07-02 10:15:12.171443 INFO masterbedroom_light_closetbath: 🎮 Button event triggered: `button_1_hold`

Failing log (first two entries are to turn off the light after trying, which does result in an mqtt pub):
2023-07-02 10:29:13.816442 INFO masterbedroom_light_bed: 🤖 Service: �[1mmqtt.publish�[0m - topic: zigbee2mqtt/dimmer_masterbed/set - payload: {"state": "TOGGLE"} - namespace: mqtt
--
2023-07-02 10:29:13.810896 INFO masterbedroom_light_bed: 🏃 Running `Predefined (toggle)` now
2023-07-02 10:29:13.801248 INFO masterbedroom_light_bed: 🎮 Button event triggered: `button_2_press_release`
2023-07-02 10:29:12.649236 INFO masterbedroom_light_bed: 🏃 Running `Predefined (hold_brightness_toggle)` now
2023-07-02 10:29:12.630686 INFO masterbedroom_light_bed: 🎮 Button event triggered: `button_2_hold`

Additional Context

The toggle button works all fine. The hold event seems fired as well, but it doesn't result in any action. While this does seems to work for button 1. I must be overlooking something somehow.
If I can help you debug something, let me know. I have coding skills, not superb ones with Python though.

@robsonke robsonke added the question Further information is requested label Jul 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants