Skip to content

Commit

Permalink
fix(device): add missing events for HM-Sen-MDIR-WM55
Browse files Browse the repository at this point in the history
related to #421
  • Loading branch information
xaviml committed Apr 15, 2022
1 parent 6433a1f commit 5b6ab6a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions apps/controllerx/cx_devices/homematic.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ class HMSenMDIRWM55LightController(LightController):
def get_homematic_actions_mapping(self) -> DefaultActionsMapping:
return {
"PRESS_SHORT_1": Light.OFF,
"PRESS_LONG_1": Light.CLICK_BRIGHTNESS_DOWN,
"PRESS_LONG_1": Light.HOLD_BRIGHTNESS_DOWN,
# "PRESS_CONT_1": "",
"PRESS_LONG_RELEASE_1": Light.RELEASE,
"PRESS_SHORT_2": Light.ON,
"PRESS_LONG_2": Light.CLICK_BRIGHTNESS_UP,
"PRESS_LONG_2": Light.HOLD_BRIGHTNESS_UP,
# "PRESS_CONT_2": "",
"PRESS_LONG_RELEASE_2": Light.RELEASE,
}
8 changes: 6 additions & 2 deletions docs/_data/controllers/HM-Sen-MDIR-WM55.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@ device_support:
delay: 350
mapping:
- Click button 1 → Turn off
- Hold button 1 → Dim down (1 step)
- Hold button 1 → Dim down
- Click button 2 → Turn on
- Hold button 2 → Brighten up (1 step)
- Hold button 2 → Brighten up
integrations:
- name: Homematic
codename: homematic
actions:
- PRESS_SHORT_1 → Click button 1
- PRESS_LONG_1 → Hold button 1
- PRESS_CONT_1 → Periodically fired when button 1 is held
- PRESS_LONG_RELEASE_1 → Release button 1
- PRESS_SHORT_2 → Click button 2
- PRESS_LONG_2 → Hold button 2
- PRESS_CONT_2 → Periodically fired when button 2 is held
- PRESS_LONG_RELEASE_2 → Release button 2

0 comments on commit 5b6ab6a

Please sign in to comment.