His driving input_select - Arriving
View All Rules
alias: His driving input_select - Arriving
trigger:
- platform: state
entity_id: input_select.family_stuart_drive_dest_template
to: 'is about to arrive %DEST% any minute now'
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_engine
data_template:
channel: "visitorlog"
value1: !include ../../../../entities/templates/driving_him.yaml
- 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