Skip to content

Commit

Permalink
fix(device): fix mapping for WXKG01LMLightController for deCONZ
Browse files Browse the repository at this point in the history
Mapping was incorrect for hold and release actions

related to #245
  • Loading branch information
xaviml committed Feb 6, 2021
1 parent d05215d commit 3ef0544
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/controllerx/cx_devices/aqara.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ def get_deconz_actions_mapping(self) -> DefaultActionsMapping:
1005: Light.ON_MIN_BRIGHTNESS, # triple
1006: Light.SET_HALF_BRIGHTNESS, # quadruple
# 1010: "", # many
1003: Light.HOLD_BRIGHTNESS_TOGGLE, # hold the button
1000: Light.RELEASE, # release the button
1001: Light.HOLD_BRIGHTNESS_TOGGLE, # hold the button
1003: Light.RELEASE, # release the button
}

def get_zha_actions_mapping(self) -> DefaultActionsMapping:
Expand Down
4 changes: 2 additions & 2 deletions docs/_data/controllers/WXKG01LM.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ integrations:
- "1005 → 3 clicks"
- "1006 → 4 clicks"
- "1010 → More than 4 clicks"
- "1003 → Hold the button"
- "1000 → Release the button"
- "1001 → Hold the button"
- "1003 → Release the button"
- name: ZHA
codename: zha
actions:
Expand Down

0 comments on commit 3ef0544

Please sign in to comment.