Usage
Learn how to use LLM Vision
Available Actions
LLM Vision exposes five actions:
image_analyzer: Analyzes image files, image and camera entitiesvideo_analyzer: Analyzes video files and Frigate eventsstream_analyzer: Records and analyzes camera entitiesdata_analyzer: Updates a sensor value based on imagescreate_event: Add a custom event to the LLM Vision Timeline
Response
image, video, stream and data analyzers will return a response value:
title: White SUV seen
response_text: >-
The image shows a white SUV parked on a driveway.
key_frame: /config/media/llmvision/snapshots/0b9ff287-0.jpgAccessing the response
To access it, set response_variable in your automation or script to e.g. response.
To get e.g. the generated title use {{response.title}}.
Using Snapshots in your own Automations
In your own automations use the following template for snapshot paths:
Where response is the response variable of an analyzer action with expose_images enabled.
Structured Responses
When response_format is enabled and structure is provided, some providers can generate a valid JSON object according to the specified JSON schema.
Structure Example
Schema Properties
type
string
Yes
"object"
Specifies the JSON data type the schema describes. In this case, the schema validates a JSON object.
properties
object
Yes
Key-value pairs where each key is a field name and each value is a nested schema definition
Defines the allowed fields of the object and the validation rules for each field.
required
array of strings
No (but commonly used)
Array of property names defined in properties
Lists which properties must be present in the JSON object for it to be valid.
additionalProperties
boolean (or schema)
No
true, false, or a schema object
Controls whether properties not listed in properties are allowed. false means no extra fields are permitted.
Last updated