Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed a bug preventing long pressing actions to be triggered. #620

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions blueprints/controllers/ikea_e2001_e2002/ikea_e2001_e2002.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -310,16 +310,16 @@ variables:
zha:
button_left_short: [press_257_13_0]
button_left_long: [hold_3329_0]
button_left_release: [release_1365]
button_left_release: [release] # second parameter is number of ms button is held
button_right_short: [press_256_13_0]
button_right_long: [hold_3328_0]
button_right_release: [release_-27903]
button_right_release: [release] # second parameter is number of ms button is held
button_up_short: ['on']
button_up_long: [move_with_on_off_0_83]
button_up_release: [stop]
button_up_long: [move_with_on_off_0_83,move_with_on_off_MoveMode.Up_83]
button_up_release: [stop, stop_with_on_off] # Kept first parameter for potential backwards compatibility of previous firmware versions
button_down_short: ['off']
button_down_long: [move_1_83]
button_down_release: [stop]
button_down_long: [move_1_83, move_MoveMode.Down_83_0_0]
button_down_release: [stop, stop_with_on_off] # Kept first parameter for potential backwards compatibility of previous firmware versions
zigbee2mqtt:
button_left_short: [arrow_left_click]
button_left_long: [arrow_left_hold]
Expand Down Expand Up @@ -482,7 +482,7 @@ action:
# if looping is not enabled run the custom action only once
default: !input action_button_left_long
- conditions:
- '{{ trigger_action | string in button_left_release }}'
- '{{ trigger_action.split("_")[0] in button_left_release }}'
# for integrations which need to store the last controller event, need to check the previous button event, stored in the provided input_text
- '{{ not integration_id in integrations_with_prev_event_storage or last_controller_event | string in button_left_long }}'
sequence:
Expand Down Expand Up @@ -565,7 +565,7 @@ action:
# if looping is not enabled run the custom action only once
default: !input action_button_right_long
- conditions:
- '{{ trigger_action | string in button_right_release }}'
- '{{ trigger_action.split("_")[0]in button_right_release }}'
# for integrations which need to store the last controller event, need to check the previous button event, stored in the provided input_text
- '{{ not integration_id in integrations_with_prev_event_storage or last_controller_event | string in button_right_long }}'
sequence:
Expand Down
Loading