I'm sure I'm missing something simple here - I'm trying to do a simple emulated double click event but the second button press does not ever trigger.
alias: Test double click
description: ""
triggers:
- trigger: state
entity_id: event.test_rodrig_action
not_from: unavailable
not_to: unavailable
actions:
- choose:
- conditions:
- condition: template
value_template: "{{trigger.to_state.attributes.event_type == 'on'}}"
sequence:
- action: switch.turn_on
target:
entity_id: switch.christmas_tree
enabled: false
- conditions:
- condition: template
value_template: "{{trigger.to_state.attributes.event_type == 'off'}}"
sequence:
- wait_for_trigger:
- trigger: state
entity_id: event.test_rodrig_action
timeout:
seconds: 3
- choose:
- conditions:
- condition: template
value_template: "{{ wait.completed }}"
sequence:
- action: light.turn_off
target:
entity_id: light.main_bedroom_pots
enabled: false
default:
- action: switch.turn_off
target:
entity_id: switch.christmas_tree
enabled: false
mode: queued
max_exceeded: silent