From: Giorgio Ravera Date: Tue, 29 Sep 2020 16:29:50 +0000 (+0200) Subject: Minor improvements to Away Mode Engine. X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=b9e6fb935bae77b526350ba67802dd32d0e0d8ff;p=homeassistant.git Minor improvements to Away Mode Engine. --- 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"