core icon indicating copy to clipboard operation
core copied to clipboard

Sony Bravia Entity Power Cycling

Open beasthouse-au opened this issue 1 year ago • 21 comments

The problem

Whilst the TV is on, the media_player entity keeps turning off for 10 seconds then turns back on. The TV itself does not power cycle, just the media_player entity. This was noticed because of a media bias light that is stuck to the rear of the TV which runs on an automation triggered by the media_player state provided by the integration. Has been ongoing for a approximately 2 months now.

No option to download diagnostics for this integration.

What version of Home Assistant Core has the issue?

core-2023.8.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Sony Bravia TV

Link to integration documentation on our website

https://www.home-assistant.io/integrations/braviatv/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

image

beasthouse-au avatar Aug 22 '23 12:08 beasthouse-au

Hey there @bieniu, @drafteed, mind taking a look at this issue as it has been labeled with an integration (braviatv) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of braviatv can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign braviatv Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


braviatv documentation braviatv source (message by IssueLinks)

home-assistant[bot] avatar Aug 22 '23 12:08 home-assistant[bot]

Please enable debug logging for a few hours and after that attach here the log file.

obraz

bieniu avatar Aug 22 '23 13:08 bieniu

Thanks - have done that, do you want the entire homeassistant.log file?

beasthouse-au avatar Aug 22 '23 13:08 beasthouse-au

Yes, please.

bieniu avatar Aug 22 '23 13:08 bieniu

home-assistant.log.1.zip

Here you go, if you go to line 207150-207197 you will see an occurrence of it, time starting at 2023-08-22 21:45:10.210

beasthouse-au avatar Aug 22 '23 13:08 beasthouse-au

2023-08-22 21:45:11.447 DEBUG (MainThread) [pybravia.client] Request error [Errno 104] Connection reset by peer

Your TV didn't respond. Due to the limitations of some BraviaTV model we treat a connection error as off state. The question is why your TV doesn't respond. Did you use a PIN or PSK to configure the integration?

I see in the log that you are using PSK.

bieniu avatar Aug 22 '23 14:08 bieniu


2023-08-22 21:45:11.447 DEBUG (MainThread) [pybravia.client] Request error [Errno 104] Connection reset by peer

Your TV didn't respond. Due to the limitations of some BraviaTV model we treat a connection error as off state. The question is why your TV doesn't respond. Did you use a PIN or PSK to configure the integration?

I see in the log that you are using PSK.

Should I be doing it a different way?

Now I'm wondering if I was using PIN earlier as I had to reconfigure the integration when I moved the TV to a different VLAN.

beasthouse-au avatar Aug 22 '23 14:08 beasthouse-au

PSK is the best option. What about connection type? WiFi or eth?

bieniu avatar Aug 22 '23 16:08 bieniu

PSK is the best option. What about connection type? WiFi or eth?

Using WiFi as it is the fastest option, the NIC in these TV's is only 100Mbps. Had checked the WiFi history in my router too and there has been no drop outs with something like a 20 day continuous uptime.

beasthouse-au avatar Aug 22 '23 20:08 beasthouse-au

same problem after ha update, i think after 23.8.2 Sony KD-65XG8577, eth connection

bisquit2003 avatar Aug 23 '23 17:08 bisquit2003

Using WiFi as it is the fastest option

I think it’s worth to check if the problem exists when you use eth.

i think after 23.8.2

Last change related to this took place in September 2022. Debug log please.

bieniu avatar Aug 23 '23 17:08 bieniu

Last change related to this took place in September 2022. Debug log please.

Im turned on debug

PS: I don’t know if this is related, but 2 hours ago I turned on downloading a large file from the network and at that moment the TV turned on and off in integration almost every minute, as soon as the download was over, everything returned to normal

bisquit2003 avatar Aug 23 '23 18:08 bisquit2003

So all of a sudden after a few months of this occurring, it's stopped the entity changing from on to off and back on as my original post mentioned. Only started playing nicely yesterday.

beasthouse-au avatar Aug 27 '23 12:08 beasthouse-au

So all of a sudden after a few months of this occurring, it's stopped the entity changing from on to off and back on as my original post mentioned. Only started playing nicely yesterday.

Have you changed something to stop this problem? I have the same problem. Not always but sometimes the tv turns off after 10-12s and then on again. Have changed my automation to "when tv switched to off FOR 12s", but I don't really like this solution.

sinowine avatar Sep 18 '23 11:09 sinowine

So all of a sudden after a few months of this occurring, it's stopped the entity changing from on to off and back on as my original post mentioned. Only started playing nicely yesterday.

Have you changed something to stop this problem? I have the same problem. Not always but sometimes the tv turns off after 10-12s and then on again. Have changed my automation to "when tv switched to off FOR 12s", but I don't really like this solution.

Hey bud, no I have not changed a thing. I'm not sure what could have been causing it. Haven't had an issue with it since. Just to be clear, the tv itself did not turn off and on, just the entity.

beasthouse-au avatar Sep 18 '23 13:09 beasthouse-au

So all of a sudden after a few months of this occurring, it's stopped the entity changing from on to off and back on as my original post mentioned. Only started playing nicely yesterday.

Have you changed something to stop this problem? I have the same problem. Not always but sometimes the tv turns off after 10-12s and then on again. Have changed my automation to "when tv switched to off FOR 12s", but I don't really like this solution.

Hey bud, no I have not changed a thing. I'm not sure what could have been causing it. Haven't had an issue with it since. Just to be clear, the tv itself did not turn off and on, just the entity.

Hmm okay, thank you anyway. Yes, only the entity is switching. I will observe this.

sinowine avatar Sep 18 '23 13:09 sinowine

I too am having this exact same issue for a while. Any updates to the cause?

lennysh avatar Nov 25 '23 22:11 lennysh

I too am having this exact same issue for a while. Any updates to the cause?

I have had it happen once since, but the regular/ constant issue seems to be resolved

beasthouse-au avatar Nov 26 '23 10:11 beasthouse-au

I have the exact same issue. The media_player entity as well as the remote entity both turn off for 10 seconds.

This is particularly annoying for me because my lights go to full brightness and my speakers turn off when this happens 😂

RobertClarke64 avatar Dec 02 '23 20:12 RobertClarke64

I just created a PR (#104924) that will retry the power status command up to three times on failure. This should hopefully mean that if one request fails, it will try again before setting the power status to off, hopefully reducing false negatives.

RobertClarke64 avatar Dec 02 '23 23:12 RobertClarke64

I am also suffering from this from time to time but more so since I updated to the latest HA 2023.12.3.

I have a DreamView backlight relying on the status of the Sony TV to turn the lights on and off and they are going off and then going back on at totally random intervals.

Also using ethernet, as the WIFI causes audio glitches on some streaming apps , which seems to be a bug Sony won't fix.

inertia666 avatar Dec 26 '23 09:12 inertia666

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.