Skip to content

Commit

Permalink
feat(device): z2m support for RDM001 (Philips)
Browse files Browse the repository at this point in the history
related to #276
  • Loading branch information
xaviml committed May 3, 2021
1 parent 529786d commit 8e13089
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
12 changes: 12 additions & 0 deletions apps/controllerx/cx_devices/phillips.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,18 @@ def get_deconz_actions_mapping(self) -> DefaultActionsMapping:


class Philips929003017102LightController(LightController):
def get_z2m_actions_mapping(self) -> DefaultActionsMapping:
return {
"left_press": Light.TOGGLE,
# "left_press_release": "",
"left_hold": Light.HOLD_BRIGHTNESS_TOGGLE,
"left_hold_release": Light.RELEASE,
"right_press": Light.TOGGLE,
# "right_press_release": "",
"right_hold": Light.HOLD_BRIGHTNESS_TOGGLE,
"right_hold_release": Light.RELEASE,
}

def get_deconz_actions_mapping(self) -> DefaultActionsMapping:
return {
# 1000: "", # Initial press
Expand Down
11 changes: 11 additions & 0 deletions docs/_data/controllers/929003017102.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ device_support:
- "Click right release → Toggle"
- "Hold right → Brightness up/down with direction changes"
integrations:
- name: Zigbee2MQTT
codename: z2m
actions:
- "left_press → Click left"
- "left_hold → Hold left"
- "left_press_release → Click left release"
- "left_hold_release → Release left"
- "right_press → Click right"
- "right_hold → Hold right"
- "right_press_release → Click right release"
- "right_hold_release → Release right"
- name: deCONZ
codename: deconz
actions:
Expand Down

0 comments on commit 8e13089

Please sign in to comment.