-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
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
Issue with Sony Bravia Integration after upgrade #123310
Comments
Hey there @bieniu, @Drafteed, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) braviatv documentation |
I am seeing the exact same issue. Went back to 2024.7.4, and problem is gone. So something is broken on the authentication part in 2024.8. Hope it is sorted soon |
Same problem here. Updated to 2024.8, restarted and i'm unable to authenticate anymore. |
I got the authentication failure message too. As mentioned on the reauthentication page psk auth should be more stable than pin and this did the trick for me. |
Same problem here, since the update it won't work anymore. Removing and adding did not help. @sonyboypatrick Where can you set the PSK auth key? Looked in all menus on the TV but found nothing. I'd appreciate if you let me know how you did it, so that I can learn something 😄 Thanks in advance! |
Yep. Got the exact same thing. Also curious about the PSK. I have found it in the menu on the TV (it's under local network settings), but I am just not savy enough to now where to get such a key. If I can provide anything to help fix this... let me know |
To me, using PSK has never worked with my XR55X90JAEP. Theoretically all you need to do is this:
Unfortunately, after setting [Normal and Pre-Shared Key], the option to set [Pre-Shared Key] is grayed out and cannot be accessed. In addition, after restarting the TV [Authentication] is set to empty. |
Same Problem. |
Can confirm that this indeed does work and I switched over. However still worth checking the PIN authentication logic as there does appear to be a bug since the update. |
Hi all! Add this to configuration.yaml: logger:
logs:
homeassistant.components.braviatv: debug
pybravia: debug Then restart HA and share the logs here please. |
I already restored the VM with the previous version of HA and wanted to wait with the installation of the new version until the problem is solved. If someone can collect these logs who is on the new version it would be great. |
First one failed at TV and HA |
Already included mine with the initial issue creation ;) |
Hi. I was afraid to install 2024.8.1. Anyone knows if sony bravia integration is working now? În 8.0 ver it was broken. Thx |
It's working only with PSK authentification |
Somehow it is working with PSK. My automations do not work as with PSK authentication it's very slow and dropping commands while with PIN it was working well so with 2024.8.1 integration is still broken |
@RobDemandt, @banan77 @bmdadu What language is set on the TV? |
Polish in my case |
Polish too |
Dutch in my case |
So, it seems that workaround with non-RFC cookie stop working after some aiohttp update. In the meantime, I recommend everyone to switch to PSK auth. |
Is this PRO mode something every model has? I cannot seem to activate it on my KD-65X85J. |
I believe Sony removed Pro Mode access from Android TV 10 or higher. |
I see, so I guess I'm out of luck then, no PSK auth for Android TV 10? |
aiohttp 3.10 and more specifically aio-libs/aiohttp#7944 changed the way cookies are handled. Previously, the domain did not have to be part of the cookie jar for a cookie to be used. As this was changed in 3.10, we now need to pass in the response URL when updating the cookie jar, otherwise the domain will not be part of the stored cookie, and consequently will not be used for the next request. Fixes home-assistant/core#123310.
@Drafteed I digged into it a bit, and I think Drafteed/pybravia#28 fixes it. |
Yes.... Seems to work now with 2024.8.2. Just updated my testlab-system which skipped 2024.8.0 and 2024.8.1 for the bravia/Sony issue discribed here. Authentication now works with the old PIN setup! :-) |
Thanks for the confirmation @TorbjornMohn! And just to make it clear: the fix I linked to is not part of 2024.8.2, it has to be manually applied until we get |
What ever changed from 2024.8.0 to 2024.8.2 has fixed the problem here, without any manually applied updated "pybravia"? |
Huh, that's interesting. Nice that it works, but that's unexpected. I didn't actually test this in HA, but with my TV, pybravia before my fix, aiohttp 3.10.3 (same version as HA 2024.8.2) and a test script, I had a 100% failure rate yesterday. With aiohttp 3.9.5 it worked (same version as HA 2024.7). |
2024.8.3 is released. Can someone confirm that PIN auth is working properly? |
Works fine for me. |
Works for me too |
The problem
After the upgrade, the integrations with 2 of my Sony TVs have been broken (requiring reauthentication). I am however not able to reauthenticate any more. I have removed existing connections from both TVs.
When attempting to authenticate, both TVs show a PIN. Upon entering the PIN in HA, I get a success message on the TVs, but a failure in HA and the integration does not work.
What version of Home Assistant Core has the issue?
core-2024.8.0
What was the last working version of Home Assistant Core?
Previous version
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Bravia TV
Link to integration documentation on our website
https://www.home-assistant.io/integrations/braviatv
Diagnostics information
home-assistant_braviatv_2024-08-07T21-34-40.117Z.log
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: