35 lines
1.3 KiB
JSON
35 lines
1.3 KiB
JSON
[
|
|
{
|
|
"id": "Request Location from Akio Toyoda While Driving",
|
|
"automation": "- alias: Request Location from Akio Toyoda While Driving\n description: ''\n mode: single\n triggers:\n - minutes: /2\n trigger: time_pattern\n conditions:\n - condition: state\n entity_id: sensor.akio_toyoda_mode_of_transit\n state: driving\n actions:\n - if:\n - condition: template\n value_template: \"{{\\n states.sensor.akio_toyoda_distance_updates.last_changed\\\n \\ <\\n now() - timedelta(minutes=2)\\n}}\\n\"\n then:\n - action: notify.mobile_app_akio_toyodas_phonne\n data:\n message: request_location_update",
|
|
"config": [
|
|
{
|
|
"name": "akio toyoda mode of transit",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.akio_toyoda_mode_of_transit",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "akio toyoda distance updates",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.akio_toyoda_distance_updates",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "akio toyoda phone",
|
|
"room": null,
|
|
"type": "mobile_app",
|
|
"id": {
|
|
"entity_id": "notify.mobile_app_akio_toyodas_phonne",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |