|
| 1 | +# Snooze blueprint or notifications |
1 | 2 | blueprint: |
2 | 3 | name: AI Event Summary (v1.6.0) |
3 | 4 | author: valentinfrlch |
@@ -355,16 +356,17 @@ blueprint: |
355 | 356 | notification_channel: |
356 | 357 | name: Custom Notification Channel or Alarm Mode - Android Only |
357 | 358 | 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' |
365 | 365 | selector: |
366 | 366 | select: |
367 | 367 | options: |
| 368 | + - label: LLM Vision Snapshot |
| 369 | + value: 'LLM Vision Snapshot' |
368 | 370 | - label: Camera Name |
369 | 371 | value: '{{ camera }} Snapshot' |
370 | 372 | - label: Alarm |
@@ -449,14 +451,21 @@ blueprint: |
449 | 451 | input: |
450 | 452 | important: |
451 | 453 | 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 |
453 | 456 | 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.' |
457 | 458 | default: false |
458 | 459 | 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 |
460 | 469 | additional_actions: |
461 | 470 | name: Additional Actions (Experimental) |
462 | 471 | description: Additional actions to run after the AI analysis and notification. |
@@ -501,31 +510,17 @@ variables: |
501 | 510 | else camera_entities_list[0] }}\n{% elif trigger is defined and trigger.entity_id |
502 | 511 | is defined %}\n {{ trigger.entity_id }}\n{% else %}\n {{ camera_entities_list[0] |
503 | 512 | 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 }}" |
507 | 514 | 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.", "")}} |
529 | 524 | file_path: !input file_path |
530 | 525 | snapshot_access_file_path: '{{ file_path | replace(''/config/www'', ''/local'') |
531 | 526 | | replace(''/media'', ''/media/local'') }}' |
|
0 commit comments