diff --git a/input_boolean.yaml b/input_boolean.yaml index 050d74f..ab29d10 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 f9eb8db..c4eefc5 100644 --- a/packages/away_mode.yaml +++ b/packages/away_mode.yaml @@ -77,6 +77,13 @@ automation: person: person.sina mobile_app: notify.mobile_app_oneplus_a3003 input_boolean: input_boolean.user_two_home + - service: script.turn_on + entity_id: script.is_user_home_determiner + data: + variables: + person: person.verona + mobile_app: notify.mobile_app_sm_g975f # Reuse until own mobile app + input_boolean: input_boolean.verona_home - id: 4f8dd19f-0d78-4614-bce1-77fd7bc31214 alias: Is Home Determiner @@ -87,6 +94,7 @@ automation: entity_id: - input_boolean.user_one_home - input_boolean.user_two_home + - input_boolean.verona_home action: - choose: - conditions: @@ -102,6 +110,7 @@ automation: entity_id: - input_boolean.user_one_home - input_boolean.user_two_home + - input_boolean.verona_home state: "off" - service: input_boolean.turn_off entity_id: input_boolean.is_home @@ -192,10 +201,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 +220,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 }} diff --git a/packages/coffeemachine.yaml b/packages/coffeemachine.yaml index 0552064..a29f143 100644 --- a/packages/coffeemachine.yaml +++ b/packages/coffeemachine.yaml @@ -5,4 +5,4 @@ binary_sensor: coffeemachine: friendly_name: "Kaffeemaschine ist an" value_template: >- - {{ states("sensor.blitzwolf_shp6_15a_1_wattage") | float > 5 }} \ No newline at end of file + {{ states("sensor.blitzwolf_shp6_15a_1_wattage") | float > 5 }} diff --git a/packages/weenect.yaml b/packages/weenect.yaml index 64e9f21..6bc6780 100644 --- a/packages/weenect.yaml +++ b/packages/weenect.yaml @@ -29,4 +29,4 @@ automation: - service: weenect.set_update_interval data: tracker_id: !secret naya_tracker_id - update_interval: "60M" \ No newline at end of file + update_interval: "60M"