Location of camera sensor picture

Hi,
I’ve successfully integrated my Eufy cameras in HA using Eufy Integration and I have created a script to update the image of the camera sensor. By using the following script the image showed for the camera sensor is updating. I want to send this updated image in notification, but I can’t figure out what to put in the “image” section of the notification. Can you help me? Thanks!

Screenshot from 2024-05-02 10-57-25

alias: Eufy Lungo generate image
sequence:
  - service: eufy_security.start_rtsp_livestream
    metadata: {}
    data: {}
    target:
      entity_id: camera.balcone_lungo
  - delay:
      hours: 0
      minutes: 0
      seconds: 20
      milliseconds: 0
  - service: eufy_security.generate_image
    metadata: {}
    data: {}
    enabled: true
    target:
      entity_id: camera.balcone_lungo
  - service: eufy_security.stop_rtsp_livestream
    metadata: {}
    data: {}
    target:
      entity_id: camera.balcone_lungo
  - device_id: d09a3a29ed927e0407e4a229ebcbbe4b
    domain: mobile_app
    type: notify
    message: Notifica Lungo
    data:
      image: ???
mode: single

I found a workaround by adding the camera also with the Generic Camera integration (using RTSP) and using the Generic Camera service to take the picture:

action:
  - service: button.press
    metadata: {}
    data: {}
    target:
      entity_id: button.balcone_corto_start_rtsp_stream
  - delay:
      hours: 0
      minutes: 0
      seconds: 20
      milliseconds: 0
  - service: camera.snapshot
    data:
      filename: /media/corto_snapshot.jpg
    target:
      entity_id: camera.rtspcorto
  - service: button.press
    metadata: {}
    data: {}
    target:
      entity_id: button.balcone_corto_stop_rtsp_stream
  - device_id: xxxxxxxxxx
    domain: mobile_app
    type: notify
    message: >-
      Allarme scattato sul Balcone Corto da: {% set triggered_sensors =
      expand('binary_sensor.security') | selectattr('state', 'eq', 'on') | list
      %} {% for sensor in triggered_sensors[:2] %}
        - {{ sensor.attributes.friendly_name }}
      {% endfor %}
    data:
      image: /media/local/corto_snapshot.jpg
      push:
        sound:
          name: default
          critical: 1
          volume: 1
      actions:
        - action: disarm_alarm
          title: Ignora notifica
        - action: trigger_alarm
          title: Suona allarme
        - action: snooze_alarm
          title: Snooze per 10 minuti
        - action: URI
          title: Apri Home
          uri: com.apple.home://
1 Like