Skip to content

Commit

Permalink
add zha support for HG06323 (Lidl/Livarno) (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas55555 authored Apr 9, 2021
1 parent 99ce4af commit 5ee7f2b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions apps/controllerx/cx_devices/livarno.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,14 @@ def get_z2m_actions_mapping(self) -> DefaultActionsMapping:
"brightness_move_down": Light.HOLD_BRIGHTNESS_DOWN,
"off": Light.OFF,
}

def get_zha_actions_mapping(self) -> DefaultActionsMapping:
return {
"on": Light.ON,
"step_0_51_10": Light.CLICK_BRIGHTNESS_UP,
"move_0_51": Light.HOLD_BRIGHTNESS_UP,
"stop": Light.RELEASE,
"step_1_51_10": Light.CLICK_BRIGHTNESS_DOWN,
"move_1_51": Light.HOLD_BRIGHTNESS_DOWN,
"off": Light.OFF,
}
10 changes: 10 additions & 0 deletions docs/_data/controllers/HG06323.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,13 @@ integrations:
- "brightness_move_down → Hold 🔅"
- "brightness_stop → Release 🔆 or 🔅"
- '"off" → Click "O"'
- name: ZHA
codename: zha
actions:
- '"on" → Click "I"'
- "step_0_51_10 → Click 🔆"
- "move_0_51 → Hold 🔆"
- "stop → Click 🔅"
- "step_1_51_10 → Hold 🔅"
- "move_1_51 → Release 🔆 or 🔅"
- '"off" → Click "O"'

0 comments on commit 5ee7f2b

Please sign in to comment.