Home-AssistantConfig/config/packages/aurahome.yaml

101 lines
2.8 KiB
YAML
Raw Normal View History

#-------------------------------------------
# @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
#-------------------------------------------
# homeassistant:
# customize_glob:
# "sensor.carlo_6*":
#
# "sensor.staceys_iphone_*":
###################################
## Uses IFTTT to trigger scenes for Aura
###################################
automation:
- alias: Aura Scene Nighttime
hide_entity: True
trigger:
- platform: state
entity_id: input_boolean.good_night
to: 'on'
from: 'off'
- platform: state
entity_id:
- binary_sensor.sleepnumber_carlo_carlo_is_in_bed
- binary_sensor.sleepnumber_carlo_stacey_is_in_bed
to: 'on'
condition:
- condition: state
entity_id: input_boolean.guest_mode
state: 'off'
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.sleepnumber_carlo_carlo_is_in_bed
state: 'on'
- condition: state
entity_id: device_tracker.carlo
state: 'not_home'
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed
state: 'on'
- condition: state
entity_id: device_tracker.stacey
state: 'not_home'
2018-06-08 21:59:47 +00:00
action:
- service: ifttt.trigger
data_template: {"event":"aura_night_mode"}
- alias: Aura Scene away
hide_entity: True
trigger:
- platform: state
entity_id:
- group.family
from: 'home'
to: 'not_home'
for: '00:03:00'
condition:
- condition: state
entity_id: input_boolean.guest_mode
state: 'off'
action:
- service: ifttt.trigger
data_template: {"event":"aura_pet_mode"}
2018-06-08 21:59:47 +00:00
- alias: Aura Scene Home
hide_entity: True
trigger:
- platform: state
entity_id:
- binary_sensor.sleepnumber_carlo_carlo_is_in_bed
- binary_sensor.sleepnumber_carlo_stacey_is_in_bed
to: 'off'
- platform: state
entity_id:
- group.family
from: 'not_home'
to: 'home'
condition:
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.sleepnumber_carlo_carlo_is_in_bed
state: 'off'
- condition: state
entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed
state: 'off'
- condition: state
entity_id: device_tracker.carlo
state: 'home'
- condition: state
entity_id: device_tracker.stacey
state: 'home'
action:
- service: ifttt.trigger
data_template: {"event":"aura_home_mode"}