From 0ad83f5367fa320b513e9e619f2c2107a73d212b Mon Sep 17 00:00:00 2001 From: Kevin Eifinger Date: Fri, 14 May 2021 12:25:01 +0200 Subject: [PATCH] Add input_boolean.verona_home --- input_boolean.yaml | 3 +++ packages/away_mode.yaml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/input_boolean.yaml b/input_boolean.yaml index 050d74f0..ab29d10b 100644 --- a/input_boolean.yaml +++ b/input_boolean.yaml @@ -11,6 +11,9 @@ user_one_home: user_two_home: name: Is user two home icon: mdi:home +verona_home: + name: Is Verona home + icon: mdi:home heading_home_notifier_user_one: icon: mdi:telegram dishwasher: diff --git a/packages/away_mode.yaml b/packages/away_mode.yaml index f9eb8db0..a8ce6a61 100644 --- a/packages/away_mode.yaml +++ b/packages/away_mode.yaml @@ -192,10 +192,12 @@ automation: entity_id: - input_boolean.user_one_home - input_boolean.user_two_home + - input_boolean.verona_home condition: - condition: state entity_id: input_boolean.notifier_alexa state: "on" + - condition: - condition: template value_template: "{{ trigger.from_state.state == 'off' and trigger.to_state.state == 'on' }}" action: @@ -209,6 +211,8 @@ automation: {% set name = "Kevin" %} {% elif trigger.entity_id == "input_boolean.user_two_home" %} {% set name = "Sina" %} + {% elif trigger.entity_id == "input_boolean.verona_home" %} + {% set name = "Verona" %} {% endif %} Willkommen zu Hause {{ name }}