26 lines
1.2 KiB
JSON
26 lines
1.2 KiB
JSON
[
|
|
{
|
|
"id": "'Security: Camera Motion Notification'",
|
|
"automation": "- alias: 'Security: Camera Motion Notification'\n description: Sends a notification with video upon motion detection.\n triggers:\n - entity_id:\n - binary_sensor.g5_bullet_motion\n trigger: state\n from: 'on'\n to: 'off'\n actions:\n - data:\n message: Motion detected at Camera XXX\n data:\n image: /api/unifiprotect/thumbnail/{{ config_entry_id(trigger.entity_id) }}/{{\n trigger.from_state.attributes.event_id }}\n video: /api/unifiprotect/video/{{ config_entry_id(trigger.entity_id) }}/{{\n trigger.from_state.attributes.event_id }}\n action: notify.mobile_app_your_device\n mode: single\n max_exceeded: silent",
|
|
"config": [
|
|
{
|
|
"name": "G5 bullet motion sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.g5_bullet_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mobile app your device",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.mobile_app_your_device",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |