From 7170cf04f25d52e12e2406e8f7c671c77fa165da Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Thu, 24 Sep 2020 16:30:23 +0200 Subject: [PATCH] Fixed away mode off --- packages/away_mode/away_mode_engine.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/away_mode/away_mode_engine.yaml b/packages/away_mode/away_mode_engine.yaml index 47b2b7e0..7455053c 100644 --- a/packages/away_mode/away_mode_engine.yaml +++ b/packages/away_mode/away_mode_engine.yaml @@ -39,6 +39,20 @@ automation: - platform: template value_template: "{{ states('sensor.time_date') == (state_attr('input_datetime.away_mode_end', 'timestamp') | int | timestamp_custom('%H:%M, %Y-%m-%d', true)) }}" + condition: + condition: or + conditions: + - condition: template + value_template: >- + {% if trigger.entity_id == 'input_boolean.home_mode_away' %} + true + {% else %} + false + {% endif %} + - condition: state + entity_id: input_boolean.home_mode_away + state: 'on' + action: - service: script.notify_voice data_template: -- 2.47.3