Push Notifications now available!

This still not a valid URL. Pick a real image URL like: https://upload.wikimedia.org/wikipedia/commons/3/3a/Cat03.jpg

your indentation of image looks off and make sure you are using data_template before message and topic

data_template:
  message: MESSAGE
  topic: TOPIC
  data:
    image: URL

:rofl: :rofl: :rofl: :rofl:

Still…nothing. same Error.

Logger: homeassistant.components.websocket_api.http.connection.1234567890
Source: core.py:1210
Integration: websocket_api

:man_shrugging:

:man_facepalming: you keep forgetting to follow all the steps lol

see the format I gave you 21 hours ago?

Try this service data

message: test
data:
  image: https://upload.wikimedia.org/wikipedia/commons/3/3a/Cat03.jpg

How, Why, What…How? My poor brain.

Thanks for hanging in there with me! Now just to figure out why the doorbell.jpg file in my www folder is not public.

Many Thanks!

Check the third paragraph here, it explains in detail what is expected with a few different options to try: https://companion.home-assistant.io/docs/notifications/notification-attachments

/api/camera_proxy/camera.name finally worked.

unbelievable. thanks for you help!

1 Like

HI is it possible to use a camera entity to show live video in a notification on android as you can do on iOS
like below

data:
  attachment:
    content-type: jpg
    hide-thumbnail: false
  entity_id: camera.foscam_camera
  push:
    badge: 0
    category: camera
message: Someone is at the front door

This shows live video in a notification for iOS

HI trying to sue the below url to see camera feed but get an unauthorised error

http://192.168.#.#:8123/api/camera_proxy_stream/camera.foscam_camera?token=long live token

Can anyone assist

see: Push Notifications now available!

Thanks but that is what I am trying to use

/api/camera_proxy/camera.name

With no luck

Correct but your previous post was not the same as this. Make sure that your base_url is defined or if you use nabu casa turn on remote

Thanks, sorry for the possible dumb question.
what do you mean by base_url defined. I am not using Nabu Casa

thanks

Thanks yes confirmed all set
Just trying to use the below but get unauthorised. not sure why.
I have created the long live token

http://#######:8123/api/camera_proxy_stream/camera.foscam_camera?token=long live token

Why are you using this now when previously you said you tried to use /api/camera_proxy/camera.name These are not the same thing. The reason why you use /api/camera_proxy/camera.name is because the app uses the base_url and applies authentication itself. Also the API you have in that URL is not correct.

Got it sorted thanks

I can’t seem to get clickaction nor action: URI working. I tried the following 2 scenarios:

data:
  actions:
    - action: URI
      title: View Live
      uri: /live-cameras/front-porch
  image: 'https://homeassistant.local:8123/local/doorbellpress.jpg'
  tag: doorbell
message: Doorbell Press


data:
  clickAction: /live-cameras/front-porch
  image: 'https://homeassistant.local:8123/local/doorbellpress.jpg'
  tag: doorbell
message: Doorbell Press

Those are the correct paths – it does not have “/lovelace” at the beginning because I’m using a non-default dashboard in 0.108. I’m able to see the image in the notification, but if I click on the image or click on the action, it just takes me to the default home assistant page, not the one specified in the code. Any ideas?

Hi I was able to get to work by using the url ie

  clickAction: 'http://####.co.nz:8123/lovelace-front_door/default_view'

you need to link to /lovelace like the docs highlight: https://companion.home-assistant.io/docs/notifications/notifications-basic/#notification-click-action

Edit: also lovelace dashboards are new and I don’t think are supported yet only views are.