From: Giorgio Ravera Date: Thu, 24 Sep 2020 14:30:23 +0000 (+0200) Subject: Fixed away mode off X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=7170cf04f25d52e12e2406e8f7c671c77fa165da;p=homeassistant.git Fixed away mode off --- 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: