Skip to content

Commit

Permalink
ICTCG1Controller zha update
Browse files Browse the repository at this point in the history
- Use same mapping definitions as z2m for ON/OFF functions
- Use medium speed right turn for Light.ON to mimic native behaviour of directly bound controller
  • Loading branch information
sreknob authored Feb 5, 2020
1 parent 750a80c commit c81d7a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/controllerx/devices/ikea.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ def get_zha_actions_mapping(self):
return {
"move_1_70": Light.HOLD_BRIGHTNESS_DOWN,
"move_1_195": Light.HOLD_BRIGHTNESS_DOWN,
"move_to_level_with_on_off_0_1": Light.OFF,
"move_to_level_with_on_off_0_1": "rotate_left_quick",
"move_with_on_off_0_70": Light.HOLD_BRIGHTNESS_UP,
"move_with_on_off_0_195": Light.HOLD_BRIGHTNESS_UP,
"move_to_level_with_on_off_255_1": Light.ON_FULL_BRIGHTNESS,
"move_with_on_off_0_195": Light.ON,
"move_to_level_with_on_off_255_1": "rotate_right_quick",
"stop": Light.RELEASE,
}

Expand Down

0 comments on commit c81d7a2

Please sign in to comment.