#Trigger Actionable notification issue

1 messages · Page 1 of 1 (latest)

foggy scarab
#

Hi all, I have this blueprint that sends a notification to my phone when a person shows up to the door. However I'm having trouble making the notification to my phone an actionable notification. Any help would be appreciated!

alias: Notification Doorbell Motion LLM
description: >-
  Send push notification to phones with an LLM description when a person is
  detected at front door doorbell camera
triggers:
  - entity_id:
      - binary_sensor.doorbell_person
    to: "on"
    trigger: state
actions:
  - delay:
      hours: 0
      minutes: 0
      seconds: 2
      milliseconds: 0
  - data:
      filename: /config/www/tmp/doorbell_image/doorbell.jpg
    target:
      entity_id: camera.doorbell
    action: camera.snapshot
  - action: llmvision.image_analyzer
    metadata: {}
    data:
      include_filename: false
      target_width: 1280
      detail: low
      max_tokens: 100
      temperature: 0.2
      expose_images: false
      provider: 01JMxxxxxxxxxxxx
      model: null
      message: >-
        Describe the image in one sentence. If you see a person, describe what
        they look like. If they look like a delivery person, say so. Make the
        description a bit cheeky.
      remember: false
      image_file: /config/www/tmp/doorbell_image/doorbell.jpg
    response_variable: response
  - data:
      message: >-
        {{response.response_text}} {{as_timestamp
        (states.binary_sensor.doorbell_person.last_changed) |
        timestamp_custom("%-I:%M %p (%m-%d-%y)")}}
      title: Front Door Motion
      data:
        image: >-
          https://MY IP ADDRESS/local/tmp/doorbell_image/doorbell.jpg?{{as_timestamp(now())}}
    action: notify.mobile_app_peter_s_fold_5
    enabled: true
mode: single
next spear
foggy scarab