From b9e6fb935bae77b526350ba67802dd32d0e0d8ff Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Tue, 29 Sep 2020 18:29:50 +0200 Subject: [PATCH] Minor improvements to Away Mode Engine. --- packages/away_mode/away_mode_engine.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/away_mode/away_mode_engine.yaml b/packages/away_mode/away_mode_engine.yaml index 7455053c..d748ab65 100644 --- a/packages/away_mode/away_mode_engine.yaml +++ b/packages/away_mode/away_mode_engine.yaml @@ -36,8 +36,8 @@ automation: entity_id: group.residents to: 'home' # End of Away Period - - 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)) }}" + - platform: time + at: input_datetime.away_mode_end condition: condition: or @@ -54,9 +54,9 @@ automation: state: 'on' action: - - service: script.notify_voice - data_template: - message: "Modalità vacanza disabilitata" - service: input_boolean.turn_off data: entity_id: input_boolean.home_mode_away + - service: script.notify_voice + data_template: + message: "Modalità vacanza disabilitata" -- 2.47.3