Untitled

mail@pastecode.io avatar
unknown
plain_text
19 days ago
1.2 kB
8
Indexable
Never
alias: FRIGATE / Generative AI / Notification
description: ""
trigger:
  - platform: mqtt
    topic: frigate/events
condition: []
action:
  - metadata: {}
    data:
      filename: www/latest_front.jpg
    action: camera.snapshot
    target:
      entity_id: camera.front_doorbell_cam
  - metadata: {}
    data:
      image_filename: www/latest_front.jpg
      prompt: >-
        Very briefly describe what you see in this image, but only if the image
        has a person or a dog in it,  from my front gate security camera. Your
        message needs to be short to fit in a phone notification. Don't describe
        stationary objects or buildings or the black gate and black letterbox.
    response_variable: generated_content
    action: google_generative_ai_conversation.generate_content
  - data:
      message: " {{ generated_content.text }} "
      data:
        entity_id: camera.front_doorbell_cam
        push:
          category: camera
    action: notify.mobile_app_youriphone
    enabled: false
  - data:
      message: " {{ generated_content.text }} "
      data:
        image: local/latest_front.jpg
    action: notify.mobile_app_pixel_7
mode: single
Leave a Comment