No more image notifications outside the network?

Hi!

Something strange it is happening from the last 1-2 updates, I don’t know.
I have a camera and an automation which triggers everytime when motion occure, that sends a notification to my phone with a snapshot and text.
Till 1-2 updates, everything was perfect, now… If i’m not in the same network with home assistant, I won’t receive the snapshot, only the text. If i’m in the same network, it’s all good.

My certificate it is not expired, I use duckdns and NGINX Home Assistant SSL proxy

Anyone knows something?

Thank you!

How are you sending the image?

Share the configuration you use.

alias: Notify+ - Door Camera Motion (PIR & Last State)
description: ""
trigger:
  - platform: mqtt
    topic: frigate/events
    payload: new
    value_template: "{{ value_json.type }}"
condition:
  - condition: template
    value_template: "{{ trigger.payload_json[\"after\"][\"label\"] == \"person\" }}"
  - condition: template
    value_template: "{{ trigger.payload_json[\"after\"][\"top_score\"] > 0.60 }}"
  - condition: template
    value_template: "{{ trigger.payload_json[\"after\"][\"camera\"] == \"camera_door_frigate\" }}"
action:
  - service: notify.mobile_app_vog_l29
    data:
      message: A person was detected.
      title: Door Camera
      data:
        clickAction: app://com.mcu.hilook
        image: >-
          http://192.168.0.102:8123/api/frigate/notifications/{{trigger.payload_json["after"]["id"]}}/snapshot.jpg
mode: parallel
max: 5

Could be the fault of the usability of local ip and not the external one? Still, till 1-2 weeks ago, was working perfectly like this… More than that, it is just an image which HA is taking from local and sending as notification, I don’t think this could be the problem…

192.168.0.102 it is non a non routable ip address and thus not accessible outside your network. As it was working that means it was due to your reverse proxy.

Do you have this in your configuration.yaml file:

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - XXX.XXX.XXX.XXX # IP address of the reverese proxy server

This is what I have as config

  use_x_forwarded_for: true
  trusted_proxies:
    - 172.30.33.0/24

The strange thing is that till few days ago, all was good :frowning:

Did you update nginx?

If so, check the release change log for breaking changes.

I can’t really help with nginx as I’ve never used it. Someone else may be able to.

There is no update for nginx for more than 4 months… :frowning: I only made HA updates in the last 2 weeks… I will still check. Thank you

This is very very VERY strange :smiley:
I did not done anything, but now it is working ok again. No update, not even HA restart, nothing…