-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
LG WebOS source doesn't get updated in home assistant after switching to Live TV #49453
LG WebOS source doesn't get updated in home assistant after switching to Live TV #49453
Comments
Are you sure you're running the latest version (2021.4)? This exact problem should be fixed in the newest version while it was present in the previous versions (<=2021.3). |
yes, i'm on 2021.4.6 if there's anything i can provide like logs or such, let me know |
just updated to 2021.5.0 - the issue is still present |
I am facing the same issue on version 2021.5.5. Only solution is to restart HA completely, turning on/off the TV do not help and cannot see any relevant info in HA logs. |
I had the same problem when i switched my HAS container network to bridged, after switching it back to host it works without a problem. |
I'm also running the container in host mode (and have the issue). I don't see how running in host/bridged mode would affect the functionality in this particular way - meaning it works all good until you switch to live tv |
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. |
This comment has been minimized.
This comment has been minimized.
This issue is still occurring. Does anyone know if this is a bug in the integration or webOS? |
must be in the integration since it works after a hass restart (and breaks again once you reproduce the steps) |
I added the sources manually in the config file and this somehow resolved the issue for me. Not sure if it will last but so far I can no longer reproduce this issue whereas before it happened every single time I switched to Live TV. |
Just ran across this same issue on my LG TV with Home Assistant OS, Core 2021.12.8. |
Same issue here and with the same behaviour. Home Assistant stops reporting the correct TV source for my LG TV after switching to Live TV, and the issue is fixed after restarting Home Assistant. |
It might be related to #43492 one nice folk made a branch where referenced bug is supposedly fixed. You might also give it at try. |
just tested this now in 2022.2.0 - unfortunately it behaves the same |
I never had this problem - until I upgraded to 2022.2. Now the source is stuck on There are some errors in the log from the integration. That's also new with the upgrade to 2022.2. Maybe related:
|
Hello together, Greetings |
@UserQuaark unfortunately after removing the integration from my configuration.yaml the issue of the entity stuck after switching to Live TV is still happening, so the issue is still there in 2022.2.0 |
When importing from YAML the configuration will stay even after you remove the YAML configuration. If you want to start with a clean configuration you can remove the device from the integration page use the "CONFIGURE" option and select different sources, this will cause the integration to reload the available sources from the TV. I will add additional logging in future releases in order to find the root cause for this. The code is already complicated around the |
Beta for core 2022.3 has started with this version I have added detailed logging to the low level communication to help identify the issue. Those who willing to help please add the following to 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. Please try to write the time the error happens. |
@thecode I have tested it and this is the log (I have extracted the lines containing webostv, let me know if you need the full log):
The issue happened at 18:26:40 when I selected Live TV as source for the TV, after that, even the logs keep showing the correct source selected, the media_player entity is stuck in the last source I had selected before changing to Live TV. EDIT: one hour after the latest change of source and while being in HDMI 4, the media_player entity has changed to Live TV. Logs updated |
@heisenberg2980 Thanks for the test, good news is that the TV update the states after switching to Live TV so the communication is not broken (which would be harder to fix), your log is missing the initial communication with the TV, should look like this:
Can you also check the state of the entity in the developer tools before and after switching to Live TV (if you possible include a capture like this): I think we are close to pinpoint this problem, with some more logging and testing it should be fixed soon :-) |
@thecode I have updated my previous comment. I will restart HA and do another test |
After restarting HA, this is a new log the from the beginning: LG.txt I have a template sensor that is updated every time media_player source changes, this is the history ("cameras" is HDMI 1): I changed the source to Live TV at 19:53:18, but the media_player source keeps showing HDMI 4, and it doesn´t change anymore regardless of how many times I change to other sources |
@heisenberg2980 can you add the output from developer tools (as described in #49453 (comment)) |
The interesting part is that the 3rd picture is missing |
@thecode that might be a different issue, because I recently changed the name of the channel to "HDMI 4", and from that moment "HDMI 4" is disappearing from the source_list every time I select another source (so basically after selecting a different source I cannot come back to HDMI 4 from HA) Anyway let me know if you need any other testing to help pinpoint this issue. |
I actually think it is related. Your TV doesn't have Can you configure sources again, make sure to change something so the configuration will be updated (go to the device page and select configure when the TV is on) and test again? Thanks |
@thecode actually my TV have Live TV in the source list (you can see it in the 3 screenshots), but when you mentioned it I realised the HDMI 4 was not selected in the list: I have selected it now as well as Roku, and and after restarting HA (to ensure a clean test) and performing new test, the same issue has happened: after changing the source to Live TV with the TV remote control, source is stuck in the last source selected before changing to Live TV, which is HDMI 4 in this case: |
@thecode do you have any update about this issue? please let me know if you need any other test, happy to help and find the root cause of this annoying issue |
I was hopping that with the release of core 2022.3 out of beta some more users will jump in and with additional logs maybe I have better understanding for the root cause, anyhow I was thinking adding detailed logging on the integration side and publishing it on my repo to be used as a custom component (to prevent need to wait for HA releases and to allow adding extra logging which can't be permanent on a released code). If you are willing to test it as a custom integration let me know, your current configuration will not be changed and once you remove the custom component the core integration will work as before. I am also available on discord which will be much easier to have faster feedback and response so hopefully this can be resolved. |
I’m willing to test as well via custom integration as I cannot update right now due to breaking changes.
On Wednesday, March 9, 2022, 4:33 PM, Shay Levy ***@***.***> wrote:
@thecode do you have any update about this issue? please let me know if you need any other test, happy to help and find the root cause of this annoying issue
I was hopping that with the release of core 2022.3 out of beta some more users will jump in and with additional logs maybe I have better understanding for the root cause, anyhow I was thinking adding detailed logging on the integration side and publishing it on my repo to be used as a custom component (to prevent need to wait for HA releases and to allow adding extra logging which can't be permanent on a released code).
If you are willing to test it as a custom integration let me know, your current configuration will not be changed and once you remove the custom component the core integration will work as before.
I am also available on discord which will be much easier to have faster feedback and response so hopefully this can be resolved.
Thanks for helping.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
@thecode yes I am happy to install your version as a custom component, just share your repo once you have added the additional logging and I will test it |
This version has detailed logging to be used as a custom component: Add this to home assistant config folder, enable logging by adding the following to logger:
default: info
logs:
custom_components.webostv: debug
aiowebostv: debug Reproduce the problem and attach the log. Notes:
Thanks |
@thecode I can´t open that repo, can you add me as collaborator or make it public? |
Sorry, forgot to make it public, changed now |
Tested with the custom integration. After changing the source to Live TV at 10:43:04, the entity is stuck on "Cameras" (HDMI1), this is the log: |
The log is missing the data from the media player component, did you add |
You are right, I still had homeassistant.components.webostv: debug. New log sent in discord |
I'm still experiencing this issue on the following system; Anything I can do to help contribute to logging this? It's a minor inconvenience, I guess I could just change to my Live TV input by using a Broadlink adapters and some IR commands, but I'd rather avoid that where possible. |
@lucifudge this issue should be fixed in 2022.4.0, what exactly are you experiencing? Is your HA entity stuck after you switch to Live TV? EDIT: I just updated my HA to 2022.4.0 and it is working as expected, with the TV entity changing to Live TV and then changing back to the correct source without any issue. |
The problem
If i switch between sources using the tv remote or hass, everthing runs fine, UNTIL i switch to Live TV, and after that, the source stops getting updated even if i switch it from hass. Turning off/on the tv doesn't seem to fix it. The only workaround i found was to restart home assistant, but after switching to live tv again, the issue appears.
I don't see any errors in the logs
My TV is an LG CX (latest firmware)
The commands to switch sources do still work, i'm only talking about querying the state of the selected source (so in the video below, when i'm changing sources, the tv is indeed changing them, but they stop updating in hass)
Kapture.2021-04-20.at.09.48.31.mp4
Environment
Home Assistant Core release with the issue:
2021.4.6
Last working Home Assistant Core release (if known):
Operating environment (OS/Container/Supervised/Core):
docker container
Integration causing this issue:
webos
Link to integration documentation on our website:
https://www.home-assistant.io/integrations/webostv/
Problem-relevant
configuration.yaml
Traceback/Error logs
Additional information
The text was updated successfully, but these errors were encountered: