Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (42 sloc) 1.18 KB
---
alias: His driving input_select - Arriving Soon
trigger:
- platform: state
entity_id: input_select.family_stuart_drive_dest_template
to: 'is not far from %DEST%'
condition:
- condition: state
entity_id: sensor.family_stuart_drive_dest
state: 'Home'
action:
- service: script.notify_tts_zone_everywhere
data_template:
room: "everywhere"
value1: !include ../../../../entities/templates/driving_him.yaml
- service: script.notify_join
data_template:
who: "stuart"
title: 'His Driving Alerts'
notification_id: "driving-alert-he"
value1: !include ../../../../entities/templates/driving_him.yaml
- service: persistent_notification.create
data_template:
title: 'His Driving Alerts'
message: !include ../../../../entities/templates/driving_him.yaml
notification_id: driving-alert-he
- service: input_select.select_option
data:
entity_id: input_select.family_almost_home
option: "Yes"
- service: nest.set_away_mode
data:
away_mode: home
- condition: numeric_state
entity_id: sensor.family_family_state_raw
below: '4'
- service: mqtt.publish
data:
topic: iot/scene/house
payload: 'Coming Home'
qos: 2
retain: true
You can’t perform that action at this time.