Files
N22/include/scripts/overvaagning.yaml
T
2026-03-15 15:46:44 +01:00

73 lines
2.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
overvaagning:
alias: AI indkorsel
sequence:
- metadata: {}
data:
filename: /config/www/indkorsel_snapshot.jpg
target:
device_id: cf4f218aae515c84aea9f37f190dcfd5
enabled: true
action: camera.snapshot
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
enabled: true
- metadata: {}
data:
filename: /config/www/indkorsel_snapshot_1.jpg
target:
device_id: cf4f218aae515c84aea9f37f190dcfd5
enabled: true
action: camera.snapshot
- delay:
hours: 0
minutes: 0
seconds: 0
milliseconds: 500
enabled: true
- metadata: {}
data:
filename: /config/www/indkorsel_snapshot_2.jpg
target:
device_id: cf4f218aae515c84aea9f37f190dcfd5
enabled: true
action: camera.snapshot
- metadata: {}
data:
prompt: >-
Bevægelse er blevet opdaget hvad ser du på billedet? Hvis du ser en
person eller en bil, giv en kort beskrivelse af dem. Forsøg at inkludere
detaljer som tøj eller nummerplade, hvis muligt. Beskriv ikke bygninger
eller stationære objekter. Hvis der ikke er nogen synlig årsag til
bevægelsen, svar blot med 'Ingen åbenlys bevægelse detekteret.' Hold
beskeden kort og underholdende som en notifikation på Apple!
filenames:
- /config/www/indkorsel_snapshot.jpg
response_variable: generated_content
action: google_generative_ai_conversation.generate_content
- if:
- condition: template
value_template: "{{ 'No Obvious Motion Detected.' in generated_content.text }}"
then:
- stop: ""
else:
- metadata: {}
data:
title: Bevægelse i indkørsel
message: >-
{{ generated_content['text'] }} - Tid: {{ now().strftime('%Y-%m-%d
%H:%M:%S') }}
data:
image: /local/indkorsel_snapshot.jpg
action: notify.mobile_app_clausiphone15
- data:
entity_id: input_text.last_notification_message
value: >-
{{ generated_content['text'] }} - Tid: {{ now().strftime('%Y-%m-%d
%H:%M:%S') }}
action: input_text.set_value
mode: single
description: ""