LG OLED switching on and off

Hello all,

managed to get most of my integrations to work, but i have an annoying issue. I have the sequence for switching on an off as per below. On works well, but the off has the odd behavior of switching the TV off, but then switching it on again.

I am using the LG integration and the other components are an nVidia shield, Hue light strip, miniDSP SHD

Any ideas?

1 Like

Are your activities in the same activity group?

1 Like

no, in fact i have no activity groups, only the default one and its empty. my activities are and activity group:

Activity groups prevent entities from switching off when switching between activities (that include these entities) within that group

You have to create at least one activity group and place your activities in there. I’d say for most people one activity group should be enough

1 Like

My problem is the opposite one though - i switch an activity OFF and the LG OLED switches back on. I understand the concept of activity groups, but in my use case, I dont seem to be needing it.

Would an activity group somehow solve the LG OLED switching on after i switch the activity off? I dont seem to see the logic, but its likely i am missing something.

I don’t know, it wouldn’t hurt to try I guess.

But as far as I understand activity groups, if you have entities in multiple activities that have to remain their power status between the activities they’re in, the only way to accomplish that is through activity groups

1 Like

Yeah, i get that, eg. my MiniDSP is my pre-amplifier for Watch TV, Digital Music and Analogue music and the idea is to “bundle” all three activities into one activity group to prevent the MiniDSP from powering off when switching between them.

But for me, its the opposite: the LG TV turns off, but then, for some odd reason, turn on again on its own.

That is weird indeed. Check logs maybe?

Do you have CEC enabled anywhere?

2 Likes

CEC is disabled on the TV, on the nVidia Shield and on the Hue Play HDMI Sync-Box

Can you check the core service logs to see if the command is actually sent by the remote or maybe just a side effect?

1 Like

Hm, stupid question, how / where do I check the logs?

Go to settings/development/logs and select core service from the services dropdown and click on download.

1 Like

I tried playing with the settings, but still, cannot get the TV to switch off. this is the log in the past hour or so

2026-03-22 09:09:40.329638 +00:00 core NOTICE Setting rgb button backlight to: (0, 0, 0)
2026-03-22 09:09:40.327474 +00:00 core NOTICE Enter idle mode: standby in 173s
2026-03-22 09:08:51.867284 +00:00 core NOTICE [uc.main.f34de9ad-6783-4e84-81ce-d0b95de2e61b] activity ‘Watch TV’ is running and preventing device standby
2026-03-22 09:08:51.866795 +00:00 core NOTICE [Watch TV] activity finished
2026-03-22 09:08:51.858142 +00:00 core NOTICE [Watch TV] activity command: uc_bt.main.profile1:CONSUMER_AC_HOME
2026-03-22 09:08:51.690824 +00:00 core NOTICE [Watch TV] activity command: uc.main.4f9d3ec4-f0ae-4ac3-9aa2-b474ac760471:HDMI4
2026-03-22 09:08:51.524166 +00:00 core NOTICE [Watch TV] activity command: uc.main.4f9d3ec4-f0ae-4ac3-9aa2-b474ac760471:Ptoggle
2026-03-22 09:08:51.395777 +00:00 core NOTICE [Watch TV] activity command: uc.main.94236788-b630-4aba-9d9d-25049c836b49:toslink
2026-03-22 09:08:51.389353 +00:00 core NOTICE [Watch TV] activity command: lgwebos_driver.main.media_player.b4:b2:91:55:ea:14:media_player.on
2026-03-22 09:08:51.388773 +00:00 core NOTICE Added standby inhibitor: Active activity ‘Watch TV’
2026-03-22 09:08:51.387094 +00:00 core NOTICE Started activity ‘Watch TV’ (uc.main.f34de9ad-6783-4e84-81ce-d0b95de2e61b) with timeout of 300s
2026-03-22 09:08:49.010908 +00:00 core NOTICE Setting rgb button backlight to: (125, 125, 125)
2026-03-22 09:08:49.009067 +00:00 core NOTICE Enter normal mode: standby in 180s
2026-03-22 09:08:48.324785 +00:00 core NOTICE Setting rgb button backlight to: (0, 0, 0)
2026-03-22 09:08:48.322784 +00:00 core NOTICE Enter idle mode: standby in 173s
2026-03-22 09:08:42.309320 +00:00 core NOTICE Removed standby inhibitor: activity ‘Watch TV’ (off) (max 305s)
2026-03-22 09:08:42.308616 +00:00 core NOTICE [Watch TV] activity finished
2026-03-22 09:08:42.186842 +00:00 core NOTICE [Watch TV] activity command: uc.main.4f9d3ec4-f0ae-4ac3-9aa2-b474ac760471:Ptoggle
2026-03-22 09:08:42.171661 +00:00 core NOTICE [Watch TV] activity command: uc_bt.main.profile1:CONSUMER_STOP
2026-03-22 09:08:38.155186 +00:00 core NOTICE [Watch TV] activity command: lgwebos_driver.main.media_player.b4:b2:91:55:ea:14:media_player.off
2026-03-22 09:08:38.154685 +00:00 core NOTICE Added standby inhibitor: activity ‘Watch TV’ (off) (max 305s)
2026-03-22 09:08:38.152938 +00:00 core NOTICE Started activity ‘Watch TV’ (uc.main.f34de9ad-6783-4e84-81ce-d0b95de2e61b) with timeout of 300s
2026-03-22 09:08:33.056005 +00:00 core NOTICE Setting rgb button backlight to: (125, 125, 125)
2026-03-22 09:08:33.054046 +00:00 core NOTICE Enter normal mode: standby in 180s
2026-03-22 09:08:32.322694 +00:00 core NOTICE Standby mode is inhibited by: [Active activity ‘Watch TV’, Web configurator]

According to the log the same activity is started multiple times although I don’t see any activity stop command. I don’t know how you did that but that may be the problem. How to you stop the activity? Usually you press the power button that is not mapped to any command. Also try to move all your activities to the default activity group even if you don’t use them.

1 Like

Im probably an idiot. So i removed the LG entity and reinstalled it again, re-configured the watch TV activity and finally added all 3 activities into the default activity group and voilla - all works.

Thanks!