From 54e6d680c94a76a106c9aadbcd9ab30909f49d99 Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Tue, 29 Sep 2020 18:47:21 +0200 Subject: [PATCH] Improved speech automation with wait_for_trigger --- automations/speech.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/automations/speech.yaml b/automations/speech.yaml index 9a4833d3..258df584 100644 --- a/automations/speech.yaml +++ b/automations/speech.yaml @@ -60,8 +60,12 @@ # timeout: '00:30:00' # continue_on_timeout: 'false' - - wait_template: "{{ is_state('binary_sensor.main_door_contact', 'on') }}" - timeout: '00:30:00' + - wait_for_trigger: + - platform: state + entity_id: binary_sensor.main_door_contact + to: "on" + timeout: + minutes: 30 continue_on_timeout: 'false' - delay: 00:00:05 -- 2.47.3