Notify with camera snapshot, but its sending me the cached version (chrome)

Guys, i have a html5 notification setup with a working image
but the notiifcation is aways sending me the cached version of the jpeg file, while the file is actually new

how can i resolve this?

  action:
  - service: camera.snapshot
    data_template:
      entity_id: camera.buiten
      filename: /config/www/images/snapshot.jpg   
  - service: notify.html5
    data:
      message: "Alarm ON"
      data:
        tag: alert
        image: https://xxxx.ui.nabu.casa/local/images/snapshot.jpg

I am also having the same issue would be nice to have a solution to this

this works

I had the same problem. I created a counter in HA and appended the value of the counter to the filename of the snapshot. A weekly cron job deletes the old snapshots so they don’t fill up the disk.
This is the action part of the automation that takes the snapshot and sends the push notification

action:
  - data:
      entity_id: counter.snapshots
    service: counter.increment
  - data:
      entity_id: camera.xxxx
      filename: /home/homeassistant/.homeassistant/www/images/snapshot{{ states('counter.snapshots')
        }}.jpg
    service: camera.snapshot
  - data_template:
      data:
        image: https://externalurl.com:8123/local/images/snapshots{{ states('counter.snapshots')
          }}.jpg
      message: Text of the message {{ now().strftime('%d-%m-%y %H:%M')}}
    service: notify.push_notification

Yeah , I managed also, but eventually stopped using chrome notification, not reliable at all!!! Not for a doorbell system… Now using pushover, much better

1 Like

Could you share the automation. I’m struggling. Can get a image to show but only the cache version
Thanks

Use this url…

https://xxxxx.ui.nabu.casa/local/images/snapshot_camxx.jpg?{{ states.automation.your_automation_here.last_triggered }}