xaviml / controllerx

Create controller-based automations with ease to control your home devices and scenes.

Home Page:https://xaviml.github.io/controllerx/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[NEW DEVICE] Aqara E1 Smart Wireless Switch WXKG17LM

Bastian007 opened this issue ยท comments

New Device Support

Device Information

  • Device Model: WXKG17LM
  • Device Description: Wireless remote switch E1 (double rocker)
  • Device Manufacturer: Aqara

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

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?

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"