Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc: Hass.Agent on Windows does not display image? #278

Open
digitaldias opened this issue Feb 24, 2023 · 2 comments
Open

Misc: Hass.Agent on Windows does not display image? #278

digitaldias opened this issue Feb 24, 2023 · 2 comments

Comments

@digitaldias
Copy link

Hello.
This is probably more me than the product, but I've set up a shared folder in my NAS where I store snapshots from my webcamera.
I would like to display these snapshots in a notification.
The image URL that I am sending is a file url:
file://<my NAS>/docker/ha/snapshots/<mycamera>_latest.jpg

The script that I am testing this with looks like:

service: notify.<my computer>
data:
  message: Oh noes, lookie here!
  title: Spooky times!
  data:
    image: file://<my computer>/docker/ha/snapshots/<my camera>_latest.jpg

The URL checks out fine in the browser but does not show in the windows notification. I only get the title and the text.
I would love some hints as to what might be wrong, I searched through the documentation and issues here, but I couldn't find the answer. I am betting that it is something really silly though :)

@amadeo-alex
Copy link

amadeo-alex commented Jul 24, 2023

Hello,
By default HASS.Agent treats the image resources as a http/s resources, this is why URI "file://..." fails.
Would you please check your logs for following: "[NOTIFIER] Image download failed, dropping"?

I'll think about adding this as an additional feature for LAB02-Research/HASS.Agent.Staging#18, need to do some tests before though.

@amadeo-alex
Copy link

Done :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants