xaviml / controllerx

Create controller-based automations with ease to control your home devices and scenes.
https://xaviml.github.io/controllerx/
MIT License
326 stars 68 forks source link

[NEW DEVICE] Aqara E1 Smart Wireless Switch WXKG17LM #891

Open Bastian007 opened 4 months ago

Bastian007 commented 4 months ago

New Device Support

Device Information

Integrations

Zigbee2MQTT - Predefined actions single_both, single_left, single_right - toggle double_left, double_right - click_brightness_up hold_left, hold_right - click_brightness_down

Integration: z2m

Actions

Notes

https://www.zigbee2mqtt.io/devices/WXKG17LM.html https://zigbee.blakadder.com/Aqara_WXKG17LM.html

xaviml commented 4 months ago

Hi @Bastian007 ,

Sorry for the late reply. This controller is just a new version of WXKG02LM, which is already supported:

https://xaviml.github.io/controllerx/controllers/WXKG02LM/

I see the actions are the same as you specified. Would this work for you?

Bastian007 commented 2 months ago

Hi @xaviml , I've tried with WXKG02LM but it seems only the action toggle is fired, even if I double press or hold.

Log of AppDaemon

🤖 Service: mqtt.publish
  - topic: zigbee2mqtt/Hue Iris - Schlafzimmer/set
  - payload: {"state": "TOGGLE"}
2024-04-20 14:02:50.156055 INFO E1_Bastian_Schlafzimmer_Schalter3+4: 🎮 Button event triggered: `single_right`
2024-04-20 14:02:50.166638 INFO E1_Bastian_Schlafzimmer_Schalter3+4: 🏃 Running `Predefined (toggle)` now
2024-04-20 14:02:50.182851 INFO E1_Bastian_Schlafzimmer_Schalter3+4:

My config:

E1_Bastian_Schlafzimmer_Schalter1+2:
  module: controllerx
  class: WXKG02LMZ2MLightController
  integration: z2m
  controller: sensor.aqara_e1_schlafzimmer_nachttisch_bastian_action
  light: Hue Iris - Schlafzimmer
  mapping:
    single_left: "toggle"
    double_left: "click_brightness_up"
    hold_left: "click_brightness_down"

E1_Bastian_Schlafzimmer_Schalter3+4:
  module: controllerx
  class: WXKG02LMZ2MLightController
  integration: z2m
  controller: sensor.aqara_e1_schlafzimmer_nachttisch_bastian_action
  light: Hue white and color ambiance - Schlafzimmer
  mapping:
    single_right: "toggle"
    double_right: "click_brightness_up"
    hold_right: "click_brightness_down"