Skip to content

Commit

Permalink
Merge branch 'master' of github.com:eifinger/homeassistant-config
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger committed May 14, 2021
2 parents 91eaa72 + f7a2834 commit 0486181
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
3 changes: 3 additions & 0 deletions input_boolean.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
13 changes: 13 additions & 0 deletions packages/away_mode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -87,6 +94,7 @@ automation:
entity_id:
- input_boolean.user_one_home
- input_boolean.user_two_home
- input_boolean.verona_home
action:
- choose:
- conditions:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion packages/coffeemachine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ binary_sensor:
coffeemachine:
friendly_name: "Kaffeemaschine ist an"
value_template: >-
{{ states("sensor.blitzwolf_shp6_15a_1_wattage") | float > 5 }}
{{ states("sensor.blitzwolf_shp6_15a_1_wattage") | float > 5 }}
2 changes: 1 addition & 1 deletion packages/weenect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ automation:
- service: weenect.set_update_interval
data:
tracker_id: !secret naya_tracker_id
update_interval: "60M"
update_interval: "60M"

0 comments on commit 0486181

Please sign in to comment.