Notification Problem - Attached Image not showing outside Wifi

Hello fellas,

I recently bought a Reolink Video Doorbell which I really like so far. I integrated it’s Entitys using the official Reolink Integration on my Home Assistant Server. I went on and made an simple Automation, that will play a doorbell Sound on my Google Nest Mini’s and sends a actionable Notification with a Screenshot of the Personen who rang the bell. This works fine - unless - I dare to leave the House and disconnect from my home Network. In this case a Notification will still be sent to my Phone, but the attached Image isn’t shown at all. I don’t understand how that plays a role, because my Home Assistant App connects via a DuckDns Url. I tested it with my Android Device and the Iphone of my Girlfriend. Same behaviour. Maybe someone has a hint for me. Thank you kindly :slight_smile:

Here is the Automation:

alias: Tuerklingel
description: ""
trigger:
  - type: turned_on
    platform: device
    device_id: 026d9974c73536bd827ac80e0b932aef
    entity_id: binary_sensor.reolink_video_doorbell_poe_visitor
    domain: binary_sensor
    enabled: true
condition: []
action:
  - service: media_player.volume_set
    data:
      volume_level: 0.5
    target:
      entity_id:
        - media_player.nestmini4241
        - media_player.wohnzimmer
    enabled: false
  - service: media_player.play_media
    data:
      media_content_id: /local/doorbell/Beethovens-5th-doorbell-chime-sound-effect.mp3
      enqueue: play
      media_content_type: music
    target:
      entity_id:
        - media_player.nestmini4241
        - media_player.wohnzimmer
    enabled: false
  - service: notify.mobile_app_sm_g973f
    data:
      message: Es hat GEKLINGELT!
      data:
        notification_icon: mdi:bell
        image: >-
          http://192.168.0.137/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=wuuPhkmUCeI9WG7A&user=SecretUser&password=SecretPassword
        entity_id: camera.192_168_0_137
        actions:
          - action: URI
            title: Öffne Kamera
            uri: app://com.mcu.reolink
    enabled: false
  - service: notify.mobile_app_iphone_von_lisa
    data:
      data:
        notification_icon: mdi:bell
        image: >-
          http://192.168.0.137/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=wuuPhkmUCeI9WG7A&user=SecretUser&password=SecretPassword
        entity_id: camera.192_168_0_137
      message: Es hat GEKLINGELT!
    enabled: true
mode: single

The android app actually downloads the image, you need to supply the correct URL that is public facing.

Hello and thank you for investing your time to help me.

I don’t fully understand. When I’m outside of my home Network, the app automaticaly connects over the adress I configured under “Home Assistant - URL” and not the “Intern Connection - URL”. And the “Home Assistant - URL” is my DuckDns Adress, or else I couldn’t Connect to Home Assistant when I’m not at home.

this is a local URL that gets sent to the app to process, thats the issue.

Edit: here are the docs that also explain some things

https://companion.home-assistant.io/docs/notifications/notification-attachments

1 Like

Ah okay, there is the buried dog (as we say in German).

Thank you very much for your help, I should have considered that to be a Problem, but somehow I didn’t :man_facepalming:

1 Like