His driving input_select - On The Way

View All Rules

alias: His driving input_select - On The Way
trigger:
- platform: state
  entity_id: input_select.family_stuart_drive_dest_template
  to: 'is on the way %DEST% 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
- 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

© 2020. Some rights reserved. The contents of this site is released under a Creative Commons Attribution-Share Alike license.