Skip to content

Instantly share code, notes, and snippets.

@trilorian
Created May 7, 2024 11:43
Show Gist options
  • Save trilorian/32cd9702553970561a1614206628c488 to your computer and use it in GitHub Desktop.
Save trilorian/32cd9702553970561a1614206628c488 to your computer and use it in GitHub Desktop.
- conditions:
# - condition: trigger
# id:
# - hold-on-zha
# sequence:
# - repeat:
# count: !input helper_max_loops
# sequence:
# - parallel:
# - sequence: !input on_hold_action
# - sequence:
# - choose:
# - conditions:
# - condition: trigger
# id:
# - hold-on-zha
# sequence:
# - wait_for_trigger:
# - platform: event
# event_type: zha_event
# event_data:
# device_id: "{{ zha_remote }}"
# command: "stop_with_on_off"
# cluster_id: 8
# endpoint_id: 1
# timeout:
# milliseconds: !input helper_hold_delay
# continue_on_timeout: true
# - if:
# - condition: template
# value_template: "{{ wait.trigger.idx is defined }}"
# then:
# - stop: button released
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment