@ -123,6 +123,45 @@ automation:
## Send a notification to anyone coming home asking if they want to open the garage door.
######################################################################
automation:
######################################################################
## Automation: Auto-open Large Garage Door when someone comes home
######################################################################
- alias : 'Auto Open Large Garage Door On Arrival'
id : 7e2b1c3a-4b1e-4b2a-9c1a-automated_garage_door
mode : single
trigger:
- platform : state
entity_id:
- person.carlo
- person.stacey
from : 'not_home'
to : 'home'
condition:
# Only if the person has been away for at least 60 minutes
- condition : template
value_template : >
{{ (as_timestamp(now()) - as_timestamp(trigger.from_state.last_changed)) > 3600 }}
# Garage door must be closed
- condition : state
entity_id : cover.large_garage_door
state : 'closed'
- condition : state
entity_id : group.bed
state : 'off'
action:
- service : cover.open_cover
target:
entity_id : cover.large_garage_door
- service : script.notify_engine
data:
who : 'parents'
value1 : "Large Garage has been auto-opened for {{ states('input_text.last_person_home') }}."
title : 'Garage Auto-Opened'
group : 'Welcome_Home'
camera_entity : camera.frontdoorbell
- alias : 'Garage Helper'
id : 365adc21-5e96-4e78-9e94-089901a29430
mode : parallel
@ -436,3 +475,61 @@ automation:
- service : script.garage_lights_off
- alias : 'Garage Camera on Alexa Shows'
id : 4373df2a-77f2-4e19-be7c-46c7b27ca583
mode : single
trigger:
- platform : state
entity_id:
- cover.large_garage_door
- cover.small_garage_door
from : 'closed'
to : 'open'
- platform : state
entity_id : binary_sensor.mcu1_gpio12 #interior Garage Doors
from : 'off'
to : 'on'
- platform : state
entity_id:
- person.carlo
- person.stacey
- person.paige
- person.justin
to : 'not_home'
from : 'home'
action:
- choose:
- conditions : "{{ is_state('binary_sensor.sleepnumber_carlo_stacey_is_in_bed','on') }}"
sequence:
- service : media_player.play_media
data:
entity_id : media_player.stacey_bedroom
media_content_id : 'show garage camera from home assistant'
media_content_type : custom
- delay : '00:10:00'
- service : media_player.play_media
data:
entity_id : media_player.stacey_bedroom
media_content_id : 'hide garage camera'
media_content_type : custom
default:
- service : media_player.play_media
target:
entity_id : media_player.kitchen
data:
media_content_id : 'show garage camera from home assistant'
media_content_type : custom
- delay : '00:20:00'
- service : media_player.play_media
target:
entity_id : media_player.kitchen
data:
media_content_id : 'hide garage camera'
media_content_type : custom
- service : script.garage_lights_off