Skip to content

Commit e4a576b

Browse files
author
valentinfrlch
committed
Merge branch 'v1.6.0-beta' of https://github.com/valentinfrlch/ha-llmvision into v1.6.0-beta
2 parents 2de6b2e + bc0d17f commit e4a576b

File tree

3 files changed

+33
-38
lines changed

3 files changed

+33
-38
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
buy_me_a_coffee: valentinfrlch
1+
buy_me_a_coffee: llmvision

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,4 @@ For technical questions see the discussions tab.
105105
## Support
106106
You can support this project by starring this GitHub repository. If you want, you can also buy me a coffee here:
107107
<br>
108-
<img alt="Static Badge" src="https://img.shields.io/badge/support-buymeacoffee?logo=buymeacoffee&logoColor=black&color=%23FFDD00&link=https%3A%2F%2Fbuymeacoffee.com%2Fllmvision">
108+
<img alt="Static Badge" src="https://img.shields.io/badge/support-buymeacoffee?logo=buymeacoffee&logoColor=black&color=%23FFDD00&link=https%3A%2F%2Fbuymeacoffee.com%2Fllmvision">

blueprints/event_summary_beta.yaml

Lines changed: 31 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Snooze blueprint or notifications
12
blueprint:
23
name: AI Event Summary (v1.6.0)
34
author: valentinfrlch
@@ -355,16 +356,17 @@ blueprint:
355356
notification_channel:
356357
name: Custom Notification Channel or Alarm Mode - Android Only
357358
description: Create a new channel for notifications to allow custom notification
358-
sounds, vibration patterns, and override Do Not Disturb mode. Camera Name
359-
uses first Camera Entity if using multiple cameras. Configured directly
360-
on the Android device -> Home Assistant App Setting -> Notifications.
361-
Use `Alarm` to use the device's loud alarm notification sound. You can
362-
also type in your own channel name. [Learn More](https://companion.home-assistant.io/docs/notifications/notification-commands/#volume-level)
363-
(default = Camera Name == {{ camera_entity_snapshot }} Snapshot).
364-
default: '{{ camera }} Snapshot'
359+
sounds, vibration patterns, and override Do Not Disturb mode. Camera Name uses first Camera Entity if using multiple cameras. Configured
360+
directly on the Android device -> Home Assistant App Setting -> Notifications.
361+
Use `Alarm` to use the device's loud alarm notification sound. You can also type in your own channel name.
362+
[Learn More](https://companion.home-assistant.io/docs/notifications/notification-commands/#volume-level)
363+
(default = 'LLM Vision Snapshot').
364+
default: 'LLM Vision Snapshot'
365365
selector:
366366
select:
367367
options:
368+
- label: LLM Vision Snapshot
369+
value: 'LLM Vision Snapshot'
368370
- label: Camera Name
369371
value: '{{ camera }} Snapshot'
370372
- label: Alarm
@@ -449,14 +451,21 @@ blueprint:
449451
input:
450452
important:
451453
name: Important (Experimental)
452-
description: 'Use AI to classify events as Critical, Normal or Low. Notifications
454+
description: >
455+
'Use AI to classify events as Critical, Normal or Low. Notifications
453456
are sent only for events classified as Normal or higher. Critical events
454-
override ''Do Not Disturb'' settings. Use with caution: AI can make mistakes.
455-
456-
'
457+
override ''Do Not Disturb'' settings. Use with caution: AI can make mistakes.'
457458
default: false
458459
selector:
459-
boolean: {}
460+
boolean:
461+
importance_prompt:
462+
name: Importance Prompt (Experimental)
463+
description: Customize the prompt used to classify events as Critical, Normal or Low importance.
464+
default: "Classify the security event based on this image. Choose from the following options: 'passive' for unimportant events, 'time-sensitive' for notable but non-critical events such as a person at the front door, and 'critical' only for potential burglaries or highly suspicious activity. Respond with one of these options exactly, without additional explanation."
465+
selector:
466+
text:
467+
multiline: true
468+
# Add Customized Actions
460469
additional_actions:
461470
name: Additional Actions (Experimental)
462471
description: Additional actions to run after the AI analysis and notification.
@@ -501,31 +510,17 @@ variables:
501510
else camera_entities_list[0] }}\n{% elif trigger is defined and trigger.entity_id
502511
is defined %}\n {{ trigger.entity_id }}\n{% else %}\n {{ camera_entities_list[0]
503512
if camera_entities_list else '' }}\n{% endif %}\n"
504-
tag: '{{ camera_entity + int(as_timestamp(now()))|string }}
505-
506-
'
513+
tag: "{{ camera_entity + int(as_timestamp(now()))|string }}"
507514
label: Motion detected
508-
camera_message: '{{ camera_entity.replace("camera.", "").replace("_", " ")|capitalize
509-
}}
510-
511-
'
512-
camera: '{{ camera_entities_list[0].replace("camera.", "").replace("_", " ") | title
513-
}}
514-
515-
'
516-
importance_prompt: 'Classify the security event based on this image. Choose from
517-
the following options: "passive" for unimportant events, "time-sensitive" for
518-
notable but non-critical events such as a person at the front door, and "critical"
519-
only for potential burglaries or highly suspicious activity. Respond with one
520-
of these options exactly, without additional explanation.
521-
522-
'
523-
camera_entity_snapshot: '{{ camera_entities_list[0] }}
524-
525-
'
526-
camera_file_path: '{{ camera_entity_snapshot.replace("camera.", "")}}
527-
528-
'
515+
camera_message: >
516+
{{ camera_entity.replace("camera.", "").replace("_", " ")|capitalize }}
517+
camera: >
518+
{{ camera_entities_list[0].replace("camera.", "").replace("_", " ") | title }}
519+
importance_prompt: !input importance_prompt
520+
camera_entity_snapshot: >
521+
{{ camera_entities_list[0] }}
522+
camera_file_path: >
523+
{{ camera_entity_snapshot.replace("camera.", "")}}
529524
file_path: !input file_path
530525
snapshot_access_file_path: '{{ file_path | replace(''/config/www'', ''/local'')
531526
| replace(''/media'', ''/media/local'') }}'

0 commit comments

Comments
 (0)