core
core copied to clipboard
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
webostv documentation webostv source (message by IssueLinks)
Hey there @bendavid, @thecode, mind taking a look at this issue as it has been labeled with an integration (webostv) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
I don't see any problem in this log, at start of the log the integration is working and sending commands / getting responses from the TV
At 2022-05-26 23:12:45 the TV is turning off and reporting it is off and notify HA for this event:
2022-05-26 23:12:45 DEBUG (MainThread) [aiowebostv] recv(192.168.178.62): {"type":"response","id":4,"payload":{"returnValue":true,"state":"Suspend"}}
The errors after are caused by the library try to reconnect to the TV.
At 2022-05-27 08:38:0 the TV is on again and the integration reconnects to the TV:
2022-05-27 08:38:07 DEBUG (MainThread) [aiowebostv] send(192.168.178.62): hello
This pattern repeats itself several times.
Can you specify a time that the connection between the TV and HA did not work? Can you confirm that the problem is NOT due to the TV not turning on from HA (this is a known issue)? (meaning the TV is on but HA does not detect it is on)
Thanks for your quick reply.
I can say for certain that where the log stops, so at 2022-05-28 in the evening the TV was on but the integration did not work.
The turn-on action for the TV is WOL, defined in HA via blueprint (this one to be exact: https://gist.github.com/cvroque/6780ca0869ef781e9de3b506fd501f78). Turning on the TV works reliably with this.
You're saying the TV could be on but HA does not recognize it being on. That might be the case, I will check next time the issue arises.
The issue just resurfaced and I can confirm that the integration showed the TV as off in HA. The TV was previously turned on via the remote. Trying to turn the TV on via HA while it is already on in order to make the integration notice it is on did not have any effect.
Interestingly, the HomeKit integration is seeing the device as online correctly and is able to control the TV without issues.
I don't know why restarting HA resolves this, but it does. Keeping the TV on, after restarting HA it will be recognized as on properly.
So yeah, seems to be the known issue you mentioned. Feel free to close this issue then and I hope the root of this issue comes to light soon. Thanks for your work!
According to your description it is not the same issue. The issue I mentioned is turning on the TV via HA. The integration should show the status of the TV correctly. Try to reproduce it with a log with the exact time you see the TV off in HA but it is on.
Find attached a log of the issue.
2022-07-18 15:49:44 TV turned on successfully via HA integration
2022-07-18 15:49:54 Successfully switched to HDMI_1 input via HA integration
(in the meantime, TV was not turned off.)
Sometime around 17:00 - 17:45 TV was switched to Live TV input via the remote control.
2022-07-18 18:07:26 Trying to lower TV volume via HA integration -> not working. In HA the TV is shown as off. (Note: HomeKit integration is showing TV as on)
I have the same behavior. Much like what Sab44 appears to be doing, I use an automation to turn on the TV with a WOL packet and swap to a certain input using the api. After a while, the TV will only respond to the WOL packet. The on/off status in HA will show off and the TV won't respond to any commands. Restarting HA fixes the issue.
I have the same behavior. Much like what Sab44 appears to be doing, I use an automation to turn on the TV with a WOL packet and swap to a certain input using the api. After a while, the TV will only respond to the WOL packet. The on/off status in HA will show off and the TV won't respond to any commands. Restarting HA fixes the issue.
Please add the following to configuration.yaml, restart home assistant, and attach the log when this problem occurs, provide the exact time it stopped responding.
logger:
default: info
logs:
homeassistant.components.webostv: debug
aiowebostv: debug
Note: it is better to drag the log into the comment (which will add it as an attachment) and not copy paste as it is hard to read logs in GitHub.
Thanks
I haven't had a chance to grab the debug log, but I can say this:
I have auto-updates turned on the LG C1. It's on firmware version 03.33.11. However, it seems like the last time HA saw it successfully, it thought it was running Firmware: 03.30.20.
Is this as simple as a firmware update that breaks backward-compatibility with the webostv integration?
I have the same issue - the tv integration stop working after few hours/days. Not just turning on and off but also volume control and source control. What I'm doing to fix it is clicking on configure in the integration and it returning to work again.
Can
Ich habe das gleiche Verhalten. Ähnlich wie Sab44 zu tun scheint, verwende ich eine Automatisierung, um den Fernseher mit einem WOL-Paket einzuschalten und über die API zu einem bestimmten Eingang zu wechseln. Nach einer Weile reagiert der Fernseher nur noch auf das WOL-Paket. Der Ein-/Aus-Status in HA wird angezeigt und der Fernseher reagiert nicht auf Befehle. Ein Neustart von HA behebt das Problem.
Fügen Sie Folgendes hinzu, starten Sie den Heimassistenten neu, hängen Sie das Protokoll an, wenn dieses Problem auftritt, und geben Sie den genauen Zeitpunkt an, zu dem die Antwort nicht mehr reagiert hat.
configuration.yamllogger: default: info logs: homeassistant.components.webostv: debug aiowebostv: debugHinweis: Es ist besser, das Protokoll in den Kommentar zu ziehen (wodurch es als Anhang hinzugefügt wird) und nicht das Einfügen zu kopieren, da es schwierig ist, Protokolle in GitHub zu lesen.
Danke
On start Update Media Player error. The error occurs from 19:48
If I completely restart my LG TV and home assistant, then it works for a few minutes.
I use wake on lan, wifi is off, source for automations. I've seen the integration crash when he updates the channel list. Or what exactly he did before that. See log.
A little info. I always turn off the TV power via a smart socket. When I'm not at home or going to bed. When I get up, the electricity is on.
Edit: I deleted the filter lists at adguard home for Smart TV. No change. It continues to crash. Media Player from Home assistant then also crashes with update For 10 seconds.
I have same issue with my LG C1. Integration will stay alive for 2-3 days and then it crashes. I didn't find helpful to click "configure" / "reload" on integration. I have also tried to reboot HA frequently by automation with no success.
Only thing what can fix this is reboot HA when TV is on. After that HA will find integration and everything works. I have LG on LAN connection, Wifi is set ot off.
I have probably the same issue. Integration just stops working for some reason (nothing interesting in logs), but after reloading add-on (that's possible to do in HA settings) starts working again.
I have the same problem... OLED55CX9LA with Firmware: 04.40.10
Same issue on OLED55B8. Worked fine on Home Assistant (2022.6.4), but after upgrading to Home Assistant (2022.8.7) after some time the connection to the Webos dropped and can be restored only by restarting HA while the TV is ON
Same issue on OLED55CX5LB with Firmware: 04.40.10
Same issue on OLED65CX with firmware: 04.40.10 running Home assistant 2022.10.5. Pressing "Configure" on the integration solves the issue temporary.
Mine is working well at this time.
Is there any update?
Mine worked so far with some disconnections now and then and restarting HA or the integration solved the issue, but with one of the latest updates it started working very bad. I get disconnections every day and the "turn on" automation also stops working (I stop seeing the turn on button in the UI).
Just came here to say that I have the same issue with LG 65NANO906NA, with firmware: 04.40.18 running Home assistant 2022.11.5
It was working a few months before. So this is either the particular LG firmware issue, either HA. Both were updating few times recently.
Same problem here, restarting the integration works for me. I do that manually when I notice it is not working properly, which is annoying because the way I notice it is that the whole house goes into Night mode if the TV isn't on (or detected to be on in this case...) shutting down all the lights, locking the door, turning of the power to the LG TV/Nvidia shield/amplifier etc... Would be greatful for a fix or a workaround that automatically reloads the integration somehow (interval or by detecting that it's not working).
Cheers!
So, I've come to this dirty trick - restarting Webos integration every 10 min if the TV seems to be off. Since there is no way to determine is it really turned off or it's just an integration issue.
alias: "Гостиная: перезапуск LG"
description: ""
trigger:
- platform: time_pattern
minutes: /10
enabled: true
condition:
- condition: state
entity_id: media_player.living_room_tv
state: "off"
enabled: true
action:
- service: homeassistant.reload_config_entry
data: {}
target:
entity_id: media_player.living_room_tv
mode: single
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!
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/
Hi, I have the same issue unfortunately, I did 3 things at the same time. PUtting TV on a smart socket, upgraded home assistant and upgraded LG WebOS. I can exclude the smart socket now as leaving things on doesn't make a difference. From comments I think, it's not Home Assistant and therefore most likely WebOS version... I will see if there is a way to downgrade to confirm. In the meantime I enabled debug logging in the integration.. where can I find these logs though? part of core?
That was in the core log after restarting the integration: Logger: homeassistant.components.media_player Source: helpers/entity_platform.py:797 Integration: Media Player (documentation, issues) First occurred: 10 February 2023 at 18:38:38 (34686 occurrences) Last logged: 19:05:04
Updating webostv media_player took longer than the scheduled update interval 0:00:10
Similar issues here with a C2 . I'll turn the TV off with the remote, then come back later and turn the TV back on with the remote. HA thinks the TV is still off, and the only way to get HA to see that the TV is on, is to restart HA.
Hi. Same here. I use it only for shutting down the TV when pressing an all-off command (scene on KNX). Worked great for about 5 days and then one evening it suddenly stopped working. Shows the TV is powered off while it's on. Only restarting HA helps.
I too have this problem, the TV appears off in home assistant even though it is turned on. Trying to send commands does not work. Reloading the integration does not fix the problem. Is there any workaround until a fix comes along?
In hass system logs i get
Logger: homeassistant.helpers.entity
Source: helpers/entity.py:550
First occurred: 10:39:06 PM (1 occurrences)
Last logged: 10:39:06 PM
Update of media_player.living_room_tv is taking over 10 seconds