Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cctv_ai_notification_script_UPDATE #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions cctv_ai_notification_script_UPDATE
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sequence:
- service: camera.snapshot
metadata: {}
data:
filename: ./www/snapshots/driveway1_snapshot1.jpg
filename: ./media/snapshots/driveway1_snapshot1.jpg
target:
device_id: ***YOUR_CAMERAS_DEVICE_ID***
enabled: true
Expand All @@ -16,7 +16,7 @@ sequence:
- service: camera.snapshot
metadata: {}
data:
filename: ./www/snapshots/driveway1_snapshot2.jpg
filename: ./media/snapshots/driveway1_snapshot2.jpg
target:
device_id: ***YOUR_CAMERAS_DEVICE_ID***
enabled: true
Expand All @@ -29,7 +29,7 @@ sequence:
- service: camera.snapshot
metadata: {}
data:
filename: ./www/snapshots/driveway1_snapshot3.jpg
filename: ./media/snapshots/driveway1_snapshot3.jpg
target:
device_id: ***YOUR_CAMERAS_DEVICE_ID***
enabled: true
Expand All @@ -45,9 +45,9 @@ sequence:
Obvious Motion Detected." Your message needs to be short enough to fit
in a phone notification.
image_filename:
- ./www/snapshots/driveway1_snapshot1.jpg
- ./www/snapshots/driveway1_snapshot2.jpg
- ./www/snapshots/driveway1_snapshot3.jpg
- ./media/snapshots/driveway1_snapshot1.jpg
- ./media/snapshots/driveway1_snapshot2.jpg
- ./media/snapshots/driveway1_snapshot3.jpg
response_variable: generated_content
- if:
- condition: template
Expand All @@ -61,5 +61,5 @@ sequence:
title: Driveway 1 Motion Detected
message: "{{generated_content['text'] }}"
data:
image: /local/snapshots/driveway1_snapshot2.jpg
image: /media/local/snapshots/driveway1_snapshot2.jpg
mode: single