home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.66k stars 28.82k forks source link

LG webOS Smart TV does not always change state to OFF from IDLE #119284

Open Baylor opened 2 weeks ago

Baylor commented 2 weeks ago

The problem

Certain applications (reproduced with Plex and Twitch on LG G2) fails to change from Idle to Off when TV is turned off via remote (works if turning off via HASSIO integration).

To reproduce:

  1. Open Twitch or Plex
  2. Play any content
  3. Exit playing (via back button or stop)
  4. Turn TV off with remote

HASSIO still shows TV as Idle, reloading integration resets TV to Off. Turning on via remote brieffly sets status to Off and then to On.

What version of Home Assistant Core has the issue?

core-2024.6.1

What was the last working version of Home Assistant Core?

core-2024.5.5

What type of installation are you running?

Home Assistant OS

Integration causing the issue

LG webOS Smart TV

Link to integration documentation on our website

https://www.home-assistant.io/integrations/webostv

Diagnostics information

home-assistant_webostv_2024-06-10T10-53-25.797Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

I would assume that there was a bug with https://github.com/home-assistant/core/commit/a6fdd4e1e23f02f375841329eaec1360ad19a29b

home-assistant[bot] commented 2 weeks ago

Hey there @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!

Code owner commands Code owners of `webostv` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign webostv` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


webostv documentation webostv source (message by IssueLinks)

rigwig commented 2 weeks ago

Same issue here. Noticed it when a youtube video completes, TV goes to idle state. Hitting power on the remote does not update the status to off.

lmgveerhoek commented 2 weeks ago

I have a similar issue with my LG C3 on version 2024.6.2. I can see in the logbook that the TV is switching from Idle to Turned On, instead of Playing. This causes my automations to become active whilst they shouldn't.

Downgrading back to 2024.5.5 using the following command fixed it for me:

ha core update --version 2024.5.5
ZuluWhiskey commented 1 week ago

I have a similar issue with my LG C3 on version 2024.6.2. I can see in the logbook that the TV is switching from Idle to Turned On, instead of Playing. This causes my automations to become active whilst they shouldn't.

Downgrading back to 2024.5.5 using the following command fixed it for me:


ha core update --version 2024.5.5

I'm having the same experience - I have an automation that is regularly triggered now when the TV is already on when it wasn't previously due to the state becoming "turned on"

thecode commented 1 week ago

There is no need to comment "I have the same issue", it is enough to put 👍 on the first post.