From: Giorgio Ravera Date: Tue, 29 Sep 2020 16:47:21 +0000 (+0200) Subject: Improved speech automation with wait_for_trigger X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=54e6d680c94a76a106c9aadbcd9ab30909f49d99;p=homeassistant.git Improved speech automation with wait_for_trigger --- 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