Skip to content

Commit

Permalink
fix(device): change deconz maaping for Niko91004LightController
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviml committed Jun 27, 2020
1 parent eecbaf2 commit 80c1fc9
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions apps/controllerx/devices/philips.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,28 +55,28 @@ def get_zha_actions_mapping(self) -> TypeActionsMapping:
class Niko91004LightController(LightController):
def get_deconz_actions_mapping(self) -> TypeActionsMapping:
return {
1000: Light.ON, # button_1_press
1002: Light.ON, # button_1_release
1001: Light.SYNC, # button_1_hold
# 1002: "", # button_1_release
# 1000: "", # button_1_press
# 1003: "", # button_1_release_after_hold
2000: Light.OFF, # button_2_press
2002: Light.OFF, # button_2_release
2001: Light.SYNC, # button_2_hold
# 2002: "", # button_2_release
# 2000: "", # button_2_press
# 2003: "", # button_2_release_after_hold
3000: Light.ON_FULL_BRIGHTNESS, # button_3_press
3002: Light.ON_FULL_BRIGHTNESS, # button_3_release
3001: Light.HOLD_BRIGHTNESS_UP, # button_3_hold
# 3002: "", # button_3_release
# 3000: "", # button_3_press
3003: Light.RELEASE, # button_3_release_after_hold
4000: Light.ON_MIN_BRIGHTNESS, # button_4_press
4002: Light.ON_MIN_BRIGHTNESS, # button_4_release
4001: Light.HOLD_BRIGHTNESS_DOWN, # button_4_hold
# 4002: "", # button_4_release
# 4000: "", # button_4_press
4003: Light.RELEASE, # button_4_release_after_hold
5000: Light.ON_FULL_COLOR_TEMP, # button_1_3_press
5002: Light.ON_FULL_COLOR_TEMP, # button_1_3_release
5001: Light.HOLD_COLOR_UP, # button_1_3_hold
# 5002: "", # button_1_3_release
# 5000: "", # button_1_3_press
5003: Light.RELEASE, # button_1_3_release_after_hold
6000: Light.ON_MIN_COLOR_TEMP, # button_2_4_press
6002: Light.ON_MIN_COLOR_TEMP, # button_2_4_release
6001: Light.HOLD_COLOR_DOWN, # button_2_4_hold
# 6002: "", # button_2_4_release
# 6000: "", # button_2_4_press
6003: Light.RELEASE, # button_2_4_release_after_hold
}

0 comments on commit 80c1fc9

Please sign in to comment.