You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When using video analyzer there isn't a way to use the video snapshots from Unifi Protect.
Describe the solution you'd like
It would be amazing for more than 14,636 users of Unifi Protect to be able to use the video snapshots from recording events such as motion detections, veichle detections and etc togetter with LLM Vision.
Describe alternatives you've considered
I've tried to do some workaround using the API URL provided by Unifi Integration like /api/unifiprotect/thumbnail/{{ config_entry_id(trigger.entity_id) }}/{{ trigger.from_state.attributes.event_id }} but seems that some authentication is required and the video snapshot is not accessible for LLM Vision preventing me to use those videos on a Vídeo Analysis automation.
The text was updated successfully, but these errors were encountered:
I worked around it by capturing the video to the www folder, then passing it to Video Analyzer:
alias: Unifi LLM Vision
description: Sends a notification with video upon motion detection.
triggers:
- entity_id:
- binary_sensor.g5_bullet_motion
trigger: state
from: "on"
to: "off"
enabled: true
conditions: []
actions:
- action: camera.record
metadata: {}
data:
filename: www/g5.mp4
duration: 3
target:
entity_id: camera.g5_bullet_low
- action: camera.snapshot
metadata: {}
data:
filename: www/g5.jpg
target:
entity_id: camera.g5_bullet_low
enabled: true
- action: llmvision.video_analyzer
metadata: {}
data:
remember: false
max_frames: 1
include_filename: false
max_tokens: 100
temperature: 0.2
generate_title: false
expose_images: true
expose_images_persist: false
provider:
model: llava-1.6-vicuna
video_file: www/g5.mp4
message: >-
You are an AI model analyzing security camera footage. Your task is to
generate a concise, plain-text notification describing the most relevant
activity in the scene.
Instructions:
1. Analyze the input footage
2. Identify the most important motion or activity (e.g., people,
animals, objects, or actions).
3. Respond with one sentence in plain text, formatted as a concise
notification. Do not include any tags, symbols, or extra formatting.
Output should only contain the notification text. Do not repeat any part
of the prompt in your output.
4. Do not prefix the sentence with any text
5. Ignore the text in the top left corner of the frame.
target_width: 1280
response_variable: response
enabled: true
- action: notify.iphone
metadata: {}
data:
title: Tool Room Motion
message: "{{ response.response_text | replace('</s>', '') }}"
data:
image: /local/g5.jpg
video: /local/g5.mp4
enabled: true
mode: single
max_exceeded: silent
Is your feature request related to a problem? Please describe.
When using video analyzer there isn't a way to use the video snapshots from Unifi Protect.
Describe the solution you'd like
It would be amazing for more than 14,636 users of Unifi Protect to be able to use the video snapshots from recording events such as motion detections, veichle detections and etc togetter with LLM Vision.
Describe alternatives you've considered
I've tried to do some workaround using the API URL provided by Unifi Integration like
/api/unifiprotect/thumbnail/{{ config_entry_id(trigger.entity_id) }}/{{ trigger.from_state.attributes.event_id }}
but seems that some authentication is required and the video snapshot is not accessible for LLM Vision preventing me to use those videos on a Vídeo Analysis automation.The text was updated successfully, but these errors were encountered: