core: Re-opened: webOS TV stops working and requires HA restart
The problem
This issue re-opens issue #70079. The proposed solution of turning off Wi-Fi connection on the TV is not resolving the issue, as other users also reported in the original issue after it was closed.
The webOS TV integration stops working after some time. It can be hours or days, I have not been able to pinpoint the exact trigger that causes it to crash. Restarting Home Assistant temporarily resolves the issue.
Attached is a FULL uncencored log of the issue, recorded with the log settings:
logger:
default: info
logs:
homeassistant.components.webostv: debug
aiowebostv: debug
Please let me know if there’s anything else I can provide to help resolve this issue.
[log removed]
What version of Home Assistant Core has the issue?
2022.6.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
webostv
Link to integration documentation on our website
https://www.home-assistant.io/integrations/webostv/
Diagnostics information
My LG TV is the following model: 65nano917na
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 12
- Comments: 68 (18 by maintainers)
I have the same issue doesn’t contribute anything, eventually it does the opposite, for other integrations I sometime try to help and when the issue is bumped to many time due to “I have the same issue” I unsubscribe from the issue. Since I am a codeowner here I did not do that.
It is enough to put 👍 on the main post to know you are watching this issue.
Many time the issue is not the same, so you may end up waiting for something that will not be resolved. Instead it would be better to provide logs during the problem so the issue can be identified better.
Until now only two participants provided logs, one log did not show anything and the other showed that the issue is not in a direct code used by this integration (making it almost impossible to identify the root cause), other issues which are closed showed different problems, WIFI is known to create problems with LG TVs.
I am still trying to work on something that might include better logging to identify the issue, when I have something I will post here.
To everyone responding suffering from the same issue: let’s try and get more logs for the developers to take a look at so this issue might finally be resolved.
Instructions for providing a log file can be found in this post: https://github.com/home-assistant/core/issues/74888#issuecomment-1189964284
I have provided my log in the original post, but more logs will surely help finding patterns and narrowing down a potential cause of the issue. Thanks!
So I have done the same changes with regards to the home promotion and auto launch. I think auto launch is the culprit here, as I have still seen issues with this, if I use any apps on the TV, however if I don’t then the integration tends to continue to work.
Testing this for a couple of days so far and seems to be working well. I’ll report if I find otherwise.
I already had Home Promotion turned off, but not the Home Auto Launch option. Not only does it seem to fix the issue, but the TV now turns on faster.
On Thu, Feb 29, 2024 at 18:16 vumaddibly @.***> wrote:
This appears to fix the issue for me. LG CX on WiFi, been running without issue for the last week. Thank you!
Not sure if my issue is the same as everyone else’s but I’ve just started having problems with an LG TV using this integration. The integration has been working fine for at least a year and is connected by ethernet. I recently got a PS5 and have observed that the LG TV (which is in a different room) shows as Off in the integration as soon as I start playing an online game or downloading data. Doesn’t do this if I’m playing an offline game so must be linked to networking somehow. Reloading this integration sets the device status back to On but it doesn’t last long before it goes back to Off.
It did not for me. I have one LG C1 and two LG C2s. All set to static IPs in pfsense. The C1 doesn’t stop responding, but the C2s both do, intermittently.
Home Assistant logs don’t show anything. I may need to increase the log verbosity.
that works for me as well
I have attached a log from when my modified aiowebostv example hung while reconnecting to the TV. Debug logging was enabled. I added a few notes to the log. The modified loop tries to reconnect every 3 seconds, I figured more reconnects means higher chance of failure. My Home Assistant instance has not lost connection to the TV during the same time I’ve been running this code.
aiowebostv_connect_hanging.log
As seen in the log the connect call hung just after the TV was turned off by its timer (2 hours with no user input). The previous time that I got the same code to hang but without debug logging turned on was also after an automatic suspend. Maybe the TV behaves slightly different during the automatic suspend than it does when turned off with the remote? It doesn’t happen every time it’s turned off by the timer though.
I have one more datapoint to add on the firmware side. I’ve kept my OLED65CXPUA on the
03.21.18
firmware and haven’t had any problems with the Home Assistant integration since I set it up a year or two ago. I’d try upgrading, but it sounds like downgrading the firmware is difficult at best and recorded in permanent storage in case of a future need for warranty or service.https://www.avsforum.com/threads/guide-lg-webos-tvs-firmware-downgrade-advanced-users-only.3217168/