family_stuart_car_park

View All Rules

alias: family_stuart_car_park
trigger:
- platform: state
  entity_id: sensor.family_stuart_drive_ignition
  from:  'True'
  to:  'False'
action:
  - service: device_tracker.see
    data_template:
      dev_id: stuart_car_parked
      gps:
      - '{{ state_attr("device_tracker.stuart", "latitude") }}'
      - '{{ state_attr("device_tracker.stuart", "longitude") }}'
      gps_accuracy: 1
      host_name: "Stuart's Car Parked"
      source_type: gps


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