-
-
Notifications
You must be signed in to change notification settings - Fork 668
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
Camera widget fails to load snapshot with mTLS setup #4909
Comments
The background is meant to be transparent that's as designed. Based on the logs the image was retrieved successfully. Is the image not loading? |
Hmm can you try another camera? I don't see any issues on my end. Does the camera provide a snapshot image or just a steam? |
Ive tried every camera entity I own. I dont really know if it provides a snapshot image by default. It has something called snapshot but i dont know if it counts as just a snapshot. The image i am referring to is called image.babycam-[cat] in this case cuase it was "detecting" a cat in the last snapahot. So i dont think that one counts as a real snapshot. I donno. |
Can you share the attributes for the camera so we can see what it has? |
Thank you for taking your time to help me. Other than that this is the state
|
If I browse to the url posted in the last comment i do see an image of the actual feed. |
does it load in a browser from the same device? |
Yes |
hopefully not the same issue as #4469 anythng else to know about your device? are you using the stock launcher? |
i would also check HA core errors too there may be something there |
Hm looks like exactly that. Im using the stock launcher. If you are refering to "non rooted" |
Nothing in core logs. Completly empty after I cleared it and tried again. |
I saw there was a discussion about notifications aswell. |
the fact that the
not quite the same as loading the mage in a widget just tells us the URL works there and we can get the image have you tried checking for updates and/or restarting the device? |
as your camera is not providing an SVG image its not related to the other issue |
Ah okey, there is an updare actually for my phone. I will update my phone will come back to you. |
Unfortunately that did not work. |
cant really think of anything else asides from trying a debug build which adds more logging to see if there is another issue at play here. to do that you can extract the APK from the following github action and sideload the debug build then replicate the issue and get the app logs, you can use the full or minimal version here. The app will install side by side production and wont interfere, i recommend giving a unique name so you can remove it later easily . The app will have a red icon to help distinguish it. https://github.com/home-assistant/android/actions/runs/12323221681 given the logs show the image was fetched successfully have my doubts this will yield different results.
|
EDIT |
looks like its failing there
based on
can you check the proxy config maybe something is not setup properly there? as far as the app is concerned we should not have anything blocked. Although it is strange its working elsewhere 🤔 https://companion.home-assistant.io/docs/troubleshooting/networking#addendum-reverse-proxy-via-nginx you dont see any auth errors in HA? a 400 error points to auth but here the token should be good enough 🤷 |
Hi, i just discovered something similar to the issue I was having with the assist function that my AI cannot talk back to me through the phone because the app does not send the client certificate in the request.
This might be the same kind of issue.
Old issue
|
Hi, it works if I go around the nginx proxy and directly to the HA host (without MTLS) EDIT: nginx.conf
ssl-verify.conf
ssl-withoutcert.conf
common_location.conf
|
This means whatever fix needs to happens either needs to happen on the server or with the MTLS setup. The app can't help with that. |
No? The issue appears to be that Picasso (for the widget) isn't using the client certificate correctly, which is something the app should try to fix as it claims to support client certificates. |
Good call 🙏 did not consider that 🤦 Based on a brief Google I can see: https://stackoverflow.com/questions/42166667/is-there-a-way-to-enable-tls-1-2-in-picasso-library-on-older-devices I personally do not have a TLS setup so may not be the best to test this but I think we should probably also log the error if possible so we dont have to jump through hoops to get a proper log :) |
I was thinking the same. I think I will test with nginx proxy manager just to make sure my config is not the culprit. |
Would you be able to log a separate bug for this with corresponding logs? This particular issue is related to a library we use to load images into the widget. Assist uses completely different stuff :) For clarity if you use other features of the app that integrate with Android features like a entity state widget or device controls they still work right? |
Yeah absolutely sorry my bad. |
@Palleri Would you be willing and able to test if the changes from #4911 resolve your issue? You can get an apk from the artifacts file here: https://github.com/home-assistant/android/actions/runs/12360564443?pr=4911, similar to when you used a debug build. |
Good job, that worked! |
Android version: 2024.12.1-full
Device: Samsung s23 Android 14
Home assistant version: 2024.12.2
When I try to add a camera widget the widget becomes transparent.
Log; Me spamming the widget window.
The text was updated successfully, but these errors were encountered: