2018-01-02 00:00:45 +00:00
|
|
|
######################################################################
|
2018-01-29 22:11:33 +00:00
|
|
|
## Door Open Announcements
|
2018-01-02 00:00:45 +00:00
|
|
|
######################################################################
|
|
|
|
- alias: 'Door Opened'
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id:
|
2018-01-29 22:11:33 +00:00
|
|
|
- binary_sensor.mcu1_gpio5 # Front door #
|
|
|
|
- binary_sensor.mcu2_gpio5 # Back door #
|
2018-01-02 00:00:45 +00:00
|
|
|
- binary_sensor.MCU2_GPIO12 # Main Slider
|
|
|
|
- binary_sensor.MCU1_GPIO12 # Interior Garage Door #
|
2018-01-29 22:11:33 +00:00
|
|
|
from: 'off'
|
|
|
|
|
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: binary_sensor.sleepnumber_carlo_carlo_is_in_bed
|
|
|
|
state: 'on'
|
|
|
|
- condition: state
|
|
|
|
entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed
|
|
|
|
state: 'on'
|
2018-01-02 00:00:45 +00:00
|
|
|
|
|
|
|
action:
|
|
|
|
- service: script.notify_engine
|
|
|
|
data_template:
|
2018-01-31 03:58:36 +00:00
|
|
|
who: 'parents'
|
2018-01-02 00:00:45 +00:00
|
|
|
value1: "The {{ trigger.to_state.attributes.friendly_name }} has been {{ (trigger.to_state.state)|replace('_', ' ') }}."
|
|
|
|
|
|
|
|
- service: input_boolean.turn_on
|
|
|
|
entity_id: input_boolean.alert_mode
|
|
|
|
|
|
|
|
- service: script.speech_engine
|
|
|
|
data_template:
|
|
|
|
call_window_check: 1
|
|
|
|
call_inside_weather: 1
|