- alias: 'Security: Camera Motion Notification' description: Sends a notification with video upon motion detection. triggers: - entity_id: - binary_sensor.g5_bullet_motion trigger: state from: 'on' to: 'off' actions: - data: message: Motion detected at Camera XXX data: image: /api/unifiprotect/thumbnail/{{ config_entry_id(trigger.entity_id) }}/{{ trigger.from_state.attributes.event_id }} video: /api/unifiprotect/video/{{ config_entry_id(trigger.entity_id) }}/{{ trigger.from_state.attributes.event_id }} action: notify.mobile_app_your_device mode: single max_exceeded: silent