core: LG WebOS source doesn't get updated in home assistant after switching to Live TV
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)
https://user-images.githubusercontent.com/475334/115350421-c327fa00-a1bd-11eb-9b88-2a661502b4e2.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
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 43 (25 by maintainers)
@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
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
Live TV
feature due differences and workarounds needed for it to work in different models.