LG webOS TV — bringing back the classic availability behaviour

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:

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.

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:

That’s the point: “Unavailable”. Before a change last year, the TV was simply Off or On.
See this thread: LG webOS TV automations fails after updating to 2025.11; entities are now ‘unavailable’ (they were ‘off’ in previous HA versions) · Issue #155884 · home-assistant/core

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.

It was unavailable, most likely when you turned it off:

The 10 second difference between states.

That is the problem.

1 Like

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?

I don’t know. Have you checked the logs?