mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-08-28 08:50:34 +00:00
Moved some automations to automations.yaml to edit via UI
This commit is contained in:
@@ -275,73 +275,92 @@ automation:
|
||||
initial_state: true
|
||||
|
||||
#########################################################
|
||||
- id: family_has_arrived
|
||||
alias: Family Has arrived
|
||||
trigger:
|
||||
- platform: webhook
|
||||
webhook_id: home_webhook
|
||||
- entity_id: sensor.family_status
|
||||
from: Away
|
||||
platform: state
|
||||
to: Home
|
||||
- entity_id: group.family
|
||||
from: not_home
|
||||
platform: state
|
||||
to: home
|
||||
- entity_id: device_tracker.mal
|
||||
from: not_home
|
||||
platform: state
|
||||
to: home
|
||||
mode: single
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: sensor.family_status
|
||||
state: Away
|
||||
action:
|
||||
- service: script.family_is_home
|
||||
initial_state: true
|
||||
# - id: family_has_arrived
|
||||
# alias: Family Has arrived
|
||||
# trigger:
|
||||
# - platform: webhook
|
||||
# webhook_id: home_webhook
|
||||
# - entity_id: sensor.family_status
|
||||
# from: Away
|
||||
# platform: state
|
||||
# to: Home
|
||||
# - entity_id: group.family
|
||||
# from: not_home
|
||||
# platform: state
|
||||
# to: home
|
||||
# - entity_id: device_tracker.mal
|
||||
# from: not_home
|
||||
# platform: state
|
||||
# to: home
|
||||
# mode: single
|
||||
# condition:
|
||||
# - condition: state
|
||||
# entity_id: sensor.family_status
|
||||
# state: Away
|
||||
# action:
|
||||
# - service: script.family_is_home
|
||||
# initial_state: true
|
||||
|
||||
- id: family_has_left
|
||||
alias: Family Has Left
|
||||
initial_state: true
|
||||
trigger:
|
||||
- entity_id: sensor.family_status
|
||||
from: Home
|
||||
platform: state
|
||||
to: Away
|
||||
- platform: webhook
|
||||
webhook_id: away_webhook
|
||||
- entity_id: group.family
|
||||
from: home
|
||||
platform: state
|
||||
to: not_home
|
||||
mode: single
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.guest_mode
|
||||
state: 'off'
|
||||
action:
|
||||
- service: script.family_is_away
|
||||
# - id: family_has_left
|
||||
# alias: Family Has Left
|
||||
# initial_state: true
|
||||
# trigger:
|
||||
# - entity_id: sensor.family_status
|
||||
# from: Home
|
||||
# platform: state
|
||||
# to: Away
|
||||
# - platform: webhook
|
||||
# webhook_id: away_webhook
|
||||
# - entity_id: group.family
|
||||
# from: home
|
||||
# platform: state
|
||||
# to: not_home
|
||||
# mode: single
|
||||
# condition:
|
||||
# - condition: state
|
||||
# entity_id: input_boolean.guest_mode
|
||||
# state: 'off'
|
||||
# action:
|
||||
# - service: script.family_is_away
|
||||
|
||||
#########################################################
|
||||
#########################################################
|
||||
|
||||
- id: jeff_is_home
|
||||
alias: Jeff is Home
|
||||
initial_state: true
|
||||
trigger:
|
||||
- entity_id: person.jeffrey
|
||||
event: enter
|
||||
platform: zone
|
||||
zone: zone.home
|
||||
mode: single
|
||||
action:
|
||||
- service: script.family_is_home
|
||||
- service: script.jeff_destination_na
|
||||
- service: script.driveway_on
|
||||
- entity_id: input_boolean.jeff_travel_monitor
|
||||
service: input_boolean.turn_off
|
||||
- delay:
|
||||
minutes: 2
|
||||
# - id: jeff_is_home
|
||||
# alias: Jeff is Home
|
||||
# initial_state: true
|
||||
# trigger:
|
||||
# - entity_id: person.jeffrey
|
||||
# event: enter
|
||||
# platform: zone
|
||||
# zone: zone.home
|
||||
# mode: single
|
||||
# action:
|
||||
# - service: script.family_is_home
|
||||
# - service: script.jeff_destination_na
|
||||
# - service: script.driveway_on
|
||||
# - entity_id: input_boolean.jeff_travel_monitor
|
||||
# service: input_boolean.turn_off
|
||||
# - delay:
|
||||
# minutes: 2
|
||||
|
||||
# - id: kat_is_home
|
||||
# alias: Kat is Home
|
||||
# initial_state: true
|
||||
# trigger:
|
||||
# - entity_id: person.katherine
|
||||
# event: enter
|
||||
# platform: zone
|
||||
# zone: zone.home
|
||||
# mode: single
|
||||
# action:
|
||||
# - service: script.family_is_home
|
||||
# - service: script.driveway_on
|
||||
# - service: input_boolean.turn_off
|
||||
# entity_id: input_boolean.kat_travel_monitor
|
||||
# - delay:
|
||||
# minutes: 2
|
||||
|
||||
########################################################
|
||||
|
||||
- id: jeff_arrives_summit
|
||||
alias: Jeff Arrives At Summit
|
||||
@@ -380,26 +399,12 @@ automation:
|
||||
- service: input_boolean.turn_off
|
||||
entity_id: input_boolean.jeff_traffic_alert_home
|
||||
|
||||
- id: kat_is_home
|
||||
alias: Kat is Home
|
||||
initial_state: true
|
||||
trigger:
|
||||
- entity_id: person.katherine
|
||||
event: enter
|
||||
platform: zone
|
||||
zone: zone.home
|
||||
mode: single
|
||||
action:
|
||||
- service: script.family_is_home
|
||||
- service: script.driveway_on
|
||||
- service: input_boolean.turn_off
|
||||
entity_id: input_boolean.kat_travel_monitor
|
||||
- delay:
|
||||
minutes: 2
|
||||
|
||||
|
||||
- id: welcome_home
|
||||
alias: Welcome Home
|
||||
mode: queued
|
||||
max: 4
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id:
|
||||
@@ -414,10 +419,10 @@ automation:
|
||||
entity_id: sensor.family_status
|
||||
state: Home
|
||||
action:
|
||||
# - service: script.family_is_home
|
||||
# - wait_template: >-
|
||||
# {{ states.binary_sensor.laundry_room_door.state == 'on' }}
|
||||
- delay: 00:01:30
|
||||
- service: script.family_is_home
|
||||
# - wait_template: >-
|
||||
# {{ states.binary_sensor.laundry_room_door.state == 'on' }}
|
||||
- delay: 00:02:00
|
||||
- service: script.ah_report
|
||||
data_template:
|
||||
call_interuption: 1
|
||||
|
Reference in New Issue
Block a user