-
Notifications
You must be signed in to change notification settings - Fork 18
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
Bug: Image notification not displaying image #209
Comments
Just noticed that the file size of the image in the cache folder is only 5.36kb while original image is 397kb. |
Hello If it is one of the forked ones, could you please enable extended logging and try to show the notification again? (and then paste the logs here of course :D) |
It's this fork, https://github.com/hass-agent/HASS.Agent latest version 2.1.0 Log:
Opening the link in a private window requires a HA login with authentication, then when logged in the image isn't shown, just a blank screen in the HA interface - no error message. I'm using Firefox. The image is viewable in Windows photos from this pc. |
Ok, it properly recognizes the URL and provides the bearer token but
if the image is not shown in the logged in browser, HASS.Agent won't be able to retrieve it also.
If the image is stored in the HAOS then how do you open it on the pc? Network mount or I'm missing something? |
Yes, Samba share in HA, opening it via file explorer in Windows. I'm at work now so can't check locally, but accessing HA remotely (through Nginx) and using the Filebrowser add-on in HA I can browse to the www folder and open the image in HA (in A Firefox window). Will need to check on local when I get home tonight. |
Uninstalled everything Cleared browser cache. Rebooted Win PC an HA PC (reboot not just restart). Reinstalled Win app and HA Integration, doubled checking it was the right versions. Still nothing. Can't even send a message notification now, much less an image notification. Would really like this to work but it's wasting too much time, will use telegram notifications or something instead. |
In general we need to achieve a situation where opening the URL in the same browser where you're logged in to HA will properly open the image. Then, if it can be opened in the browser but HASS.Agent cannot display it we can look for fault on HASS.Agent side. Let's try to get back to the original state before you reinstalled everything:
If not, we'll go deeper - do you have MQTT.Explorer installed by any chance? |
HAOS on bare metal
Core 2024.12.5
Supervisor 2024.12.0
Operating System 14.1
Frontend 20241127.8
Hass.agent integration 2.1.0-beta1 installed via HACS.
Hass. Agent installed on Win11 PC.
Show test notification works fine, displays image of the kitten.
Set up automation to display image from security camera:
Notification works with message but no image.
The image appears to be being copied to the cache folder (default to "C:\Users\myusername\AppData\Local\HASS.Agent\Client\cache\images\20241226145810_64abcece.jpg"
But when viewing this image it is not viewable in Win11. The image at config/www/ is viewable in Win11, so it seems the file is being corrupted when it is copied to the cache folder. Image is jpg 1280x720, 397kb, 96dpi 24 bit. Tried png version, same problem.
The text was updated successfully, but these errors were encountered: