Why can’t I do this?
alias: 1e badkamer ventilator aan en uit
description: ''
trigger:
- platform: state
entity_id: binary_sensor.1e_badkamer_warm_water
id: warm_water
- device_id: 9c05bef1cd794483a2fd923ad772d2aa
domain: deconz
platform: device
type: remote_button_long_press
subtype: turn_off
id: button_press
condition: []
action:
- type: turn_on
device_id: b3e8ea8642f0619b4bc2073a52b4107c
entity_id: switch.1e_badkamer_ventilator
domain: switch
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.1e_badkamer_warm_water
state: 'on'
sequence:
- service: timer.start
data:
duration: '00:05:00'
target:
entity_id: timer.badkamer_ventilator_timer
- wait_for_trigger:
- platform: state
entity_id: timer.badkamer_ventilator_timer
to: idle
- type: turn_off
device_id: b3e8ea8642f0619b4bc2073a52b4107c
entity_id: switch.1e_badkamer_ventilator
domain: switch
default: []
mode: restart
traces:
stored_traces: 10