Thanks, this entity contains information now.
Now I have to find out why excution time diifers from timestamp. Just for info, I understand that not everyone likes to investigate code like this 
this is my automation:
alias: 1.melding_voordeur_telegram_foscamcamera
description: ""
triggers:
- trigger: state
entity_id:
- binary_sensor.voordeur_person_occupancy
from: "off"
to: "on"
conditions: []
actions:
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- action: camera.snapshot
metadata: {}
data:
filename: /config/www/images/snapshots/snapshot_voordeur_foscam.jpg
target:
entity_id: camera.voordeur_2
- action: llmvision.image_analyzer
metadata: {}
data:
remember: false
include_filename: false
target_width: 1280
detail: low
max_tokens: 100
temperature: 0.2
expose_images: false
provider: 01JG3R7V7ZEX7MTPADFM9CXC78
model: gemini-1.5-pro
message: >-
Describe what you see in one sentence. If you see a person, describe
what they look like. Add current time. timezone is europe/amsterdam In
dutch
image_file: /config/www/images/snapshots/snapshot_voordeur_foscam.jpg
response_variable: response_voordeur_foscam
- action: notify.mobile_app_sm_a725f
metadata: {}
data:
message: "{{response_voordeur_foscam.response_text}}"
data:
image: >-
http://192.168.2.35:8123/local/images/snapshot_voordeur_camera/snapshot_foscam.jpg
enabled: false
- action: telegram_bot.send_message
metadata: {}
data:
message: Voordeur foscam {{response_voordeur_foscam.response_text}}
data:
image: /config/www/images/snapshots/snapshots/snapshot_voordeur_foscam.jpg
enabled: true
- action: telegram_bot.send_photo
metadata: {}
data:
authentication: digest
file: /config/www/images/snapshots/snapshot_voordeur_foscam.jpg
enabled: true
- action: input_text.set_value
metadata: {}
data:
value: "foscam_voordeur: {{response_voordeur_foscam.response_text}}"
target:
entity_id: input_text.beschrijving_foto_foscam
enabled: true
- action: input_text.set_value
metadata: {}
data:
value: "foscam_voordeur: {{response_voordeur_foscam.response_text}}"
target:
entity_id: input_text.beschrijving_fotolaatst
- action: notify.lg_webos_tv_oled55c8pla
metadata: {}
data:
message: "{{response_voordeur_foscam.response_text}}"
enabled: false
mode: single
This is the trace in json:
{
"trace": {
"last_step": "action/8",
"run_id": "82fa610efdcd78a008b32873fcb4a089",
"state": "stopped",
"script_execution": "finished",
"timestamp": {
"start": "2025-01-17T13:43:26.708404+00:00",
"finish": "2025-01-17T13:43:31.981164+00:00"
},
"domain": "automation",
"item_id": "1735562140161",
"trigger": null,
"trace": {
"trigger": [
{
"path": "trigger",
"timestamp": "2025-01-17T13:43:26.708673+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.melding_voordeur_telegram",
"state": "on",
"attributes": {
"id": "1735562140161",
"last_triggered": "2025-01-17T13:38:55.439410+00:00",
"mode": "single",
"current": 0,
"friendly_name": "1.melding_voordeur_telegram_foscamcamera"
},
"last_changed": "2025-01-17T13:43:22.811767+00:00",
"last_reported": "2025-01-17T13:43:22.811767+00:00",
"last_updated": "2025-01-17T13:43:22.811767+00:00",
"context": {
"id": "01JHT823XVJD08PW90ETCBD7YV",
"parent_id": null,
"user_id": null
}
},
"trigger": {
"platform": null
}
}
}
],
"action/0": [
{
"path": "action/0",
"timestamp": "2025-01-17T13:43:26.713679+00:00",
"changed_variables": {
"context": {
"id": "01JHT827QMG8Y6FCCS9HH1KPBW",
"parent_id": "01JHT827QH7CAC3EHJDNGRWPS6",
"user_id": null
}
},
"result": {
"delay": 1,
"done": true
}
}
],
"action/1": [
{
"path": "action/1",
"timestamp": "2025-01-17T13:43:27.735108+00:00",
"result": {
"params": {
"domain": "camera",
"service": "snapshot",
"service_data": {
"filename": "/config/www/images/snapshots/snapshot_voordeur_foscam.jpg",
"entity_id": [
"camera.voordeur_2"
]
},
"target": {
"entity_id": [
"camera.voordeur_2"
]
}
},
"running_script": false
}
}
],
"action/2": [
{
"path": "action/2",
"timestamp": "2025-01-17T13:43:27.976803+00:00",
"changed_variables": {
"response_voordeur_foscam": {
"response_text": "Ik zie een oprit met klinkers, een plantenbak, twee beeldjes en een deel van een auto. Het is momenteel 15:53 in Amsterdam.\n"
}
},
"result": {
"params": {
"domain": "llmvision",
"service": "image_analyzer",
"service_data": {
"remember": false,
"include_filename": false,
"target_width": 1280,
"detail": "low",
"max_tokens": 100,
"temperature": 0.2,
"expose_images": false,
"provider": "01JG3R7V7ZEX7MTPADFM9CXC78",
"model": "gemini-1.5-pro",
"message": "Describe what you see in one sentence. If you see a person, describe what they look like. Add current time. timezone is europe/amsterdam In dutch",
"image_file": "/config/www/images/snapshots/snapshot_voordeur_foscam.jpg"
},
"target": {}
},
"running_script": false
}
}
],
"action/3": [
{
"path": "action/3",
"timestamp": "2025-01-17T13:43:30.531390+00:00",
"result": {
"enabled": false
}
}
],
"action/4": [
{
"path": "action/4",
"timestamp": "2025-01-17T13:43:30.531609+00:00",
"result": {
"params": {
"domain": "telegram_bot",
"service": "send_message",
"service_data": {
"message": "Voordeur foscam Ik zie een oprit met klinkers, een plantenbak, twee beeldjes en een deel van een auto. Het is momenteel 15:53 in Amsterdam.",
"data": {
"image": "/config/www/images/snapshots/snapshots/snapshot_voordeur_foscam.jpg"
}
},
"target": {}
},
"running_script": false
}
}
],
"action/5": [
{
"path": "action/5",
"timestamp": "2025-01-17T13:43:30.995482+00:00",
"result": {
"params": {
"domain": "telegram_bot",
"service": "send_photo",
"service_data": {
"authentication": "digest",
"file": "/config/www/images/snapshots/snapshot_voordeur_foscam.jpg"
},
"target": {}
},
"running_script": false
}
}
],
"action/6": [
{
"path": "action/6",
"timestamp": "2025-01-17T13:43:31.936912+00:00",
"result": {
"params": {
"domain": "input_text",
"service": "set_value",
"service_data": {
"value": "foscam_voordeur: Ik zie een oprit met klinkers, een plantenbak, twee beeldjes en een deel van een auto. Het is momenteel 15:53 in Amsterdam.",
"entity_id": [
"input_text.beschrijving_foto_foscam"
]
},
"target": {
"entity_id": [
"input_text.beschrijving_foto_foscam"
]
}
},
"running_script": false
}
}
],
"action/7": [
{
"path": "action/7",
"timestamp": "2025-01-17T13:43:31.957142+00:00",
"result": {
"params": {
"domain": "input_text",
"service": "set_value",
"service_data": {
"value": "foscam_voordeur: Ik zie een oprit met klinkers, een plantenbak, twee beeldjes en een deel van een auto. Het is momenteel 15:53 in Amsterdam.",
"entity_id": [
"input_text.beschrijving_fotolaatst"
]
},
"target": {
"entity_id": [
"input_text.beschrijving_fotolaatst"
]
}
},
"running_script": false
}
}
],
"action/8": [
{
"path": "action/8",
"timestamp": "2025-01-17T13:43:31.978150+00:00",
"result": {
"enabled": false
}
}
]
},
"config": {
"id": "1735562140161",
"alias": "1.melding_voordeur_telegram_foscamcamera",
"description": "",
"triggers": [
{
"trigger": "state",
"entity_id": [
"binary_sensor.voordeur_person_occupancy"
],
"from": "off",
"to": "on"
}
],
"conditions": [],
"actions": [
{
"delay": {
"hours": 0,
"minutes": 0,
"seconds": 1,
"milliseconds": 0
}
},
{
"action": "camera.snapshot",
"metadata": {},
"data": {
"filename": "/config/www/images/snapshots/snapshot_voordeur_foscam.jpg"
},
"target": {
"entity_id": "camera.voordeur_2"
}
},
{
"action": "llmvision.image_analyzer",
"metadata": {},
"data": {
"remember": false,
"include_filename": false,
"target_width": 1280,
"detail": "low",
"max_tokens": 100,
"temperature": 0.2,
"expose_images": false,
"provider": "01JG3R7V7ZEX7MTPADFM9CXC78",
"model": "gemini-1.5-pro",
"message": "Describe what you see in one sentence. If you see a person, describe what they look like. Add current time. timezone is europe/amsterdam In dutch",
"image_file": "/config/www/images/snapshots/snapshot_voordeur_foscam.jpg"
},
"response_variable": "response_voordeur_foscam"
},
{
"action": "notify.mobile_app_sm_a725f",
"metadata": {},
"data": {
"message": "{{response_voordeur_foscam.response_text}}",
"data": {
"image": "http://192.168.2.35:8123/local/images/snapshot_voordeur_camera/snapshot_foscam.jpg"
}
},
"enabled": false
},
{
"action": "telegram_bot.send_message",
"metadata": {},
"data": {
"message": "Voordeur foscam {{response_voordeur_foscam.response_text}}",
"data": {
"image": "/config/www/images/snapshots/snapshots/snapshot_voordeur_foscam.jpg"
}
},
"enabled": true
},
{
"action": "telegram_bot.send_photo",
"metadata": {},
"data": {
"authentication": "digest",
"file": "/config/www/images/snapshots/snapshot_voordeur_foscam.jpg"
},
"enabled": true
},
{
"action": "input_text.set_value",
"metadata": {},
"data": {
"value": "foscam_voordeur: {{response_voordeur_foscam.response_text}}"
},
"target": {
"entity_id": "input_text.beschrijving_foto_foscam"
},
"enabled": true
},
{
"action": "input_text.set_value",
"metadata": {},
"data": {
"value": "foscam_voordeur: {{response_voordeur_foscam.response_text}}"
},
"target": {
"entity_id": "input_text.beschrijving_fotolaatst"
}
},
{
"action": "notify.lg_webos_tv_oled55c8pla",
"metadata": {},
"data": {
"message": "{{response_voordeur_foscam.response_text}}"
},
"enabled": false
}
],
"mode": "single"
},
"blueprint_inputs": null,
"context": {
"id": "01JHT827QMG8Y6FCCS9HH1KPBW",
"parent_id": "01JHT827QH7CAC3EHJDNGRWPS6",
"user_id": null
}
},
"logbookEntries": [
{
"name": "1.melding_voordeur_telegram_foscamcamera",
"message": "triggered",
"source": null,
"entity_id": "automation.melding_voordeur_telegram",
"context_id": "01JHT827QMG8Y6FCCS9HH1KPBW",
"domain": "automation",
"when": 1737121406.7087748
},
{
"state": "foscam_voordeur: Ik zie een oprit met klinkers, een plantenbak, twee beeldjes en een deel van een auto. Het is momenteel 15:53 in Amsterdam.",
"entity_id": "input_text.beschrijving_fotolaatst",
"when": 1737121411.9625032,
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "1.melding_voordeur_telegram_foscamcamera",
"context_message": "triggered",
"context_entity_id": "automation.melding_voordeur_telegram"
}
]
}