DeLorean
(Loryan Strant)
July 30, 2026, 10:49pm
1
If you have an LG TV, you might have noticed that it now shows as unavailable rather than off when it’s in standby. That’s because LG TVs close their network connection when you turn them off, and the official integration changed how it handles that in PR #155164:
dev ← thecode:webostv-availability
opened 07:15PM - 25 Oct 25 UTC
## Breaking change
The state of LG webOS TV media player entities that do not… have an automation trigger to turn on the device will set to `unavailable` instead of `off`.
## Proposed change
LG webOS TV was reporting the TV state as `off` when there is no connection to the TV, this is due to the way LG TVs are designed, they close the network connection when in standby.
In the past it was not defined clearly how this state should be reported, [architecture#1251](https://github.com/home-assistant/developers.home-assistant/pull/2728 (https://github.com/home-assistant/architecture/discussions/1251)) addressed this with the following:
"If a device is in a standby state and can be turned on by Home Assistant (regardless of the media/protocol used), it should be shown as `off` - even if the main channel used to control the device once it's on is currently unavailable.
If Home Assistant has no way to turn on the device (i.e., the only available control method is not working), it should be shown as `unavailable`."
This was documented under [entity-unavailable/#exceptions](https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/entity-unavailable/#exceptions).
This PR adjust the entity behavior to comply with [entity-unavailable](https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/entity-unavailable/) and [log-when-unavailable](https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/log-when-unavailable).
**Note:** This change should not be a breaking-change for most users, It is marked as a breaking-change since I have seen situations that users do not setup an automation to turn on the device and instead using a community Lovelace resource that has a turn on button which directly runs a Wake On LAN action, this behavior is not recommended since the media player `turn_on` action will not work.
## Type of change
- [ ] Dependency upgrade
- [ ] Bugfix (non-breaking change which fixes an issue)
- [ ] New integration (thank you!)
- [ ] New feature (which adds functionality to an existing integration)
- [ ] Deprecation (breaking change to happen in the future)
- [x] Breaking change (fix/feature causing existing functionality to break)
- [ ] Code quality improvements to existing code or addition of tests
## Additional information
- This PR fixes or closes issue: fixes #
- This PR is related to issue:
- Link to documentation pull request:
- Link to developer documentation pull request:
- Link to frontend pull request:
## Checklist
- [x] I understand the code I am submitting and can explain how it works.
- [x] The code change is tested and works locally.
- [x] Local tests pass. **Your PR cannot be merged unless tests pass**
- [x] There is no commented out code in this PR.
- [x] I have followed the [development checklist][dev-checklist]
- [x] I have followed the [perfect PR recommendations][perfect-pr]
- [x] The code has been formatted using Ruff (`ruff format homeassistant tests`)
- [x] Tests have been added to verify that the new code works.
- [x] Any generated code has been carefully reviewed for correctness and compliance with project standards.
If user exposed functionality or configuration variables are added/changed:
- [ ] Documentation added/updated for [www.home-assistant.io][docs-repository]
If the code communicates with devices, web services, or third-party tools:
- [ ] The [manifest file][manifest-docs] has all fields filled out correctly.
Updated and included derived files by running: `python3 -m script.hassfest`.
- [ ] New or updated dependencies have been added to `requirements_all.txt`.
Updated by running `python3 -m script.gen_requirements_all`.
- [ ] For the updated dependencies - a link to the changelog, or at minimum a diff between library versions is added to the PR description.
To help with the load of incoming pull requests:
- [ ] I have reviewed two other [open pull requests][prs] in this repository.
[prs]: https://github.com/home-assistant/core/pulls?q=is%3Aopen+is%3Apr+-author%3A%40me+-draft%3Atrue+-label%3Awaiting-for-upstream+sort%3Acreated-desc+review%3Anone+-status%3Afailure
[dev-checklist]: https://developers.home-assistant.io/docs/development_checklist/
[manifest-docs]: https://developers.home-assistant.io/docs/creating_integration_manifest/
[quality-scale]: https://developers.home-assistant.io/docs/integration_quality_scale_index/
[docs-repository]: https://github.com/home-assistant/home-assistant.io
[perfect-pr]: https://developers.home-assistant.io/docs/review-process/#creating-the-perfect-pr
It broke a bunch of my automations and made my dashboards look wrong.
And I didn’t like the fact that you needed to create an automation that did nothing, purely to make it work as we expected. It was a bit of a silly workaround IMHO.
So, I created a different workaround!
This is an alternative implementation that restores the classic behaviour — standby shows as off, like it used to.
I’m waiting on it to be added to the HACS repo, but for now you can install it from here: GitHub - loryanstrant/HA-LG-webOSTV: An alternative implementation of the LG webOS TV integration for Home Assistant · GitHub
5 Likes
So you’re telling me that you’d rather have an entire custom integration (which you’ll have to maintain) running rather than a single automation? I don’t get it.
DeLorean
(Loryan Strant)
August 1, 2026, 6:11am
3
Yep, as do the other people who are using it (and have been for a while).
1 Like
I’m using LG webOS TV and I see:
DeLorean
(Loryan Strant)
August 1, 2026, 8:25am
5
It isn’t Unavailable it is Off. Look at the status at the top left under Controls and the latest entry in the Activity.
My post was not supporting your theory.
DeLorean
(Loryan Strant)
August 1, 2026, 10:33am
7
It was unavailable, most likely when you turned it off:
The 10 second difference between states.
That is the problem.
1 Like
wgumaa
(Waleed)
August 2, 2026, 6:06pm
8
I like the idea only if it works! I installed the hacs add on and restarted. I added the integration and it asks for host which i assume is the ip address of the TV. Click submit and it just keeps spinning and does nothing. Yes the TV is on at the time. Am I missing something?
DeLorean
(Loryan Strant)
August 2, 2026, 9:26pm
9
I don’t know. Have you checked the logs?