Detecting play/pause state of LG-WebOS TV

I’m having trouble getting WebOS to report on playing state, which perhaps is not possible. I’d like to have the lights dim up or down depending on various factors including whether the TV is playing video, say in a streaming app like Netflix etc. Trouble is, I can’t see a way of getting this info from the WebOS binding. I can get things like current channel or current app, and can even control playback using the mediaPlayer channel, but this channel is write only, and no others provide a report on playing state.

Seems like a simple task but I can’t see a way around it currently. If it helps, the TV is connected to a SONOS Beam with Alexa enabled, both of which are connected via their respecive bindings. I’ve explored using these to somehow detect the playing state of the connected TV to no avail. Wondering if anyone else has got something similar working.

Correct because not available.

Shame the mediaPlayer channel isn’t RW :frowning:

It looks like newer webos versions now expose the playstate so the binding could be updated to support this.

Apparently there is a foregroundAppInfo endpoint now which returns the needed information.

homeassistant people discussed it here: https://github.com/home-assistant/core/issues/91709
and added support here Report webOS media player state by rale · Pull Request #113774 · home-assistant/core · GitHub

1 Like

Hmm I checked the code of the binding in the repo and it’s already querying the foregroundAppInfo endpoint to get the currently running app.

We’d just need to also parse the playState attribute and expose it.

Would be great to allow automation like turn on/off lights when playing pausing etc.


`{'subscribed': False, 'returnValue': True, 'foregroundAppInfo': [{'appId': 'com.webos.app.mediadiscovery', 'playState': 'paused', 'type': 'media', 'mediaId': '_xxxxxxx', 'windowId': '_Window_Id_3'}]}`
  • Do you know what’s the oldest webos version that supports this?
  • Do you have a newer webos that might support this?

I tried this on my webos (version 6.4.0), unfortunately I got a 404 error. I don’t have a newer webos so I cannot test it, but if you’re willing to test, I can provide you with a jar.

Unfortunately mine’s even older at 5.50.45 so I’m no help :frowning:

Yeah, I’m very disappointed that this doesn’t work on mine :frowning: My TVs still work perfectly fine albeit slow but tolerable. Can’t justify buying new TVs to replace them. I wish there was a way to upgrade the webos version!

1 Like

@jimtng
a person in the home assistant discussion said:

On my C2 with the latest firmware (webOS 7.3.0-2402) it’s accessible remotely, but on my older tv running webOS 3.9.0, it just 404s.

Another person posted that webOS 4.5 also didn’t work

Personally I have the latest g4 series which run 23.20.42 - I can do tests anytime!

Are you using OH 4.3 or 5.0?

Here’s a jar for 5.0
org.openhab.binding.lgwebos-5.0.0-SNAPSHOT.jar.txt (126.1 KB)

And this one for 4.3.x
org.openhab.binding.lgwebos-4.3.3-SNAPSHOT.jar.txt (126.1 KB)

I am running 4.3 - thanks!
I’ll test the jar and report my findings by the end of the week

So good news is pressing play/pause triggers stuff and I am seeing the playState change in the debug output of the payload. The isEmpty() check throws an error tho.

Relevant log below (turning on tv, starting netflix, playing an episode, pausing it, exiting to home screen and turning tv off again) - tested with latest openhab 4.3.2 docker container

Thanks for looking into this!

2025-01-17 11:52:46.628 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'lgwebos:WebOSTV:83inch' changed from OFFLINE: TV is off to ONLINE: Registering - You may need to confirm pairing on TV.

2025-01-17 11:52:50.447 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'lgwebos:WebOSTV:83inch' changed from ONLINE: Registering - You may need to confirm pairing on TV. to ONLINE: Connected

2025-01-17 11:52:51.146 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscription":true}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.isEmpty()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getId()" is null

2025-01-17 11:52:51.148 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.isEmpty()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getId()" is null

2025-01-17 11:53:19.636 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[{"playState":"starting","type":"media","mediaId":"_0d9mx2raXMPSIP","windowId":""}]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.isEmpty()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getId()" is null

2025-01-17 11:53:19.669 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[{"appId":"netflix","playState":"starting","type":"media","mediaId":"_0d9mx2raXMPSIP","windowId":""}]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.isEmpty()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getId()" is null

2025-01-17 11:53:21.046 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[{"appId":"netflix","playState":"loaded","type":"media","mediaId":"_0d9mx2raXMPSIP","windowId":"_Window_Id_1"}]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.isEmpty()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getId()" is null

2025-01-17 11:53:21.180 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[{"appId":"netflix","playState":"playing","type":"media","mediaId":"_0d9mx2raXMPSIP","windowId":"_Window_Id_1"}]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.isEmpty()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getId()" is null

2025-01-17 11:53:24.759 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[{"appId":"netflix","playState":"paused","type":"media","mediaId":"_0d9mx2raXMPSIP","windowId":"_Window_Id_1"}]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.isEmpty()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getId()" is null

2025-01-17 11:53:27.129 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.isEmpty()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getId()" is null

2025-01-17 11:53:31.781 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'lgwebos:WebOSTV:83inch' changed from ONLINE: Connected to OFFLINE: TV is off

Thanks for testing. Please try this jar:

(older) org.openhab.binding.lgwebos-4.3.3-SNAPSHOT.jar.txt (126.1 KB)

EDIT: I made a slight change - if it returns other than playing / paused, set the channel to UNDEF
org.openhab.binding.lgwebos-4.3.3-SNAPSHOT.jar.txt (126.1 KB)

Thanks you!

However both the older and the latest version gave me the same String.isEmpty() errors:

2025-01-17 12:39:55.964 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'lgwebos:WebOSTV:83inch' changed from ONLINE: Registering - You may need to confirm pairing on TV. to ONLINE: Connected

2025-01-17 12:39:56.333 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscription":true}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.isEmpty()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getId()" is null

2025-01-17 12:39:56.336 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.isEmpty()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getId()" is null

2025-01-17 12:40:13.003 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[{"playState":"starting","type":"media","mediaId":"_fdTzfnKG7ndZ6C","windowId":""}]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.isEmpty()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getId()" is null

2025-01-17 12:40:13.016 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[{"appId":"netflix","playState":"starting","type":"media","mediaId":"_fdTzfnKG7ndZ6C","windowId":""}]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.isEmpty()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getId()" is null

2025-01-17 12:40:13.959 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[{"appId":"netflix","playState":"loaded","type":"media","mediaId":"_fdTzfnKG7ndZ6C","windowId":"_Window_Id_1"}]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.isEmpty()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getId()" is null

2025-01-17 12:40:14.150 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[{"appId":"netflix","playState":"playing","type":"media","mediaId":"_fdTzfnKG7ndZ6C","windowId":"_Window_Id_1"}]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.isEmpty()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getId()" is null

2025-01-17 12:40:16.071 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[{"appId":"netflix","playState":"paused","type":"media","mediaId":"_fdTzfnKG7ndZ6C","windowId":"_Window_Id_1"}]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.isEmpty()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getId()" is null

2025-01-17 12:40:17.335 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[{"appId":"netflix","playState":"playing","type":"media","mediaId":"_fdTzfnKG7ndZ6C","windowId":"_Window_Id_1"}]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.isEmpty()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getId()" is null

2025-01-17 12:40:18.136 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[{"appId":"netflix","playState":"paused","type":"media","mediaId":"_fdTzfnKG7ndZ6C","windowId":"_Window_Id_1"}]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.isEmpty()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getId()" is null

2025-01-17 12:40:19.680 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.isEmpty()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getId()" is null

Thanks, I missed that one.
Please try this one. Also I added an INFO log to show the Appid that got received. Please post that log for me.

EDIT: will post it in the next one

There you go:

2025-01-17 13:19:59.007 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'lgwebos:WebOSTV:83inch' changed from ONLINE: Registering - You may need to confirm pairing on TV. to ONLINE: Connected

2025-01-17 13:19:59.283 [INFO ] [bos.internal.handler.LGWebOSTVSocket] - Media state: AppInfo [id=null, name=null, playState=null]

2025-01-17 13:19:59.287 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscription":true}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.hashCode()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getPlayState()" is null

2025-01-17 13:19:59.289 [INFO ] [bos.internal.handler.LGWebOSTVSocket] - Media state: AppInfo [id=null, name=null, playState=null]

2025-01-17 13:19:59.290 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.hashCode()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getPlayState()" is null

2025-01-17 13:20:33.064 [INFO ] [bos.internal.handler.LGWebOSTVSocket] - Media state: AppInfo [id=null, name=null, playState=null]

2025-01-17 13:20:33.066 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[{"playState":"starting","type":"media","mediaId":"_LoEl91oQpnqiJr","windowId":""}]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.hashCode()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getPlayState()" is null

2025-01-17 13:20:33.078 [INFO ] [bos.internal.handler.LGWebOSTVSocket] - Media state: AppInfo [id=null, name=null, playState=null]

2025-01-17 13:20:33.080 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[{"appId":"netflix","playState":"starting","type":"media","mediaId":"_LoEl91oQpnqiJr","windowId":""}]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.hashCode()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getPlayState()" is null

2025-01-17 13:20:33.449 [INFO ] [bos.internal.handler.LGWebOSTVSocket] - Media state: AppInfo [id=null, name=null, playState=null]

2025-01-17 13:20:33.451 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[{"appId":"netflix","playState":"loaded","type":"media","mediaId":"_LoEl91oQpnqiJr","windowId":"_Window_Id_1"}]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.hashCode()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getPlayState()" is null

2025-01-17 13:20:33.983 [INFO ] [bos.internal.handler.LGWebOSTVSocket] - Media state: AppInfo [id=null, name=null, playState=null]

2025-01-17 13:20:33.985 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[{"appId":"netflix","playState":"playing","type":"media","mediaId":"_LoEl91oQpnqiJr","windowId":"_Window_Id_1"}]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.hashCode()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getPlayState()" is null

2025-01-17 13:20:36.454 [INFO ] [bos.internal.handler.LGWebOSTVSocket] - Media state: AppInfo [id=null, name=null, playState=null]

2025-01-17 13:20:36.456 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[{"appId":"netflix","playState":"paused","type":"media","mediaId":"_LoEl91oQpnqiJr","windowId":"_Window_Id_1"}]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.hashCode()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getPlayState()" is null

2025-01-17 13:20:37.351 [INFO ] [bos.internal.handler.LGWebOSTVSocket] - Media state: AppInfo [id=null, name=null, playState=null]

2025-01-17 13:20:37.353 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[{"appId":"netflix","playState":"playing","type":"media","mediaId":"_LoEl91oQpnqiJr","windowId":"_Window_Id_1"}]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.hashCode()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getPlayState()" is null

2025-01-17 13:20:37.810 [INFO ] [bos.internal.handler.LGWebOSTVSocket] - Media state: AppInfo [id=null, name=null, playState=null]

2025-01-17 13:20:37.812 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[{"appId":"netflix","playState":"paused","type":"media","mediaId":"_LoEl91oQpnqiJr","windowId":"_Window_Id_1"}]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.hashCode()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getPlayState()" is null

2025-01-17 13:20:39.556 [INFO ] [bos.internal.handler.LGWebOSTVSocket] - Media state: AppInfo [id=null, name=null, playState=null]

2025-01-17 13:20:39.558 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":5,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.hashCode()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getPlayState()" is null

2025-01-17 13:20:41.738 [INFO ] [bos.internal.handler.LGWebOSTVSocket] - Media state: AppInfo [id=null, name=null, playState=null]

2025-01-17 13:20:41.740 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":11,"payload":{"subscription":true}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.hashCode()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getPlayState()" is null

2025-01-17 13:20:41.741 [INFO ] [bos.internal.handler.LGWebOSTVSocket] - Media state: AppInfo [id=null, name=null, playState=null]

2025-01-17 13:20:41.743 [WARN ] [bos.internal.handler.LGWebOSTVSocket] - Error while processing message: {"type":"response","id":11,"payload":{"subscribed":true,"returnValue":true,"foregroundAppInfo":[]}} - in response to request: ServiceCommand [type=subscribe, target=ssap://com.webos.media/getForegroundAppInfo, payload=null] - Error Message: Cannot invoke "String.hashCode()" because the return value of "org.openhab.binding.lgwebos.internal.handler.core.AppInfo.getPlayState()" is null

2025-01-17 13:20:44.233 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'lgwebos:WebOSTV:83inch' changed from ONLINE: Connected to OFFLINE: TV is off
1 Like

Another test, still with info log.Sorry this is the first time I worked on this binding, still getting to know my way around it.

org.openhab.binding.lgwebos-4.3.3-SNAPSHOT.jar.txt (124.9 KB)

No need to be sorry at all, I appreciate you looking into this!

2025-01-17 13:32:20.775 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'lgwebos:WebOSTV:83inch' changed from ONLINE: Registering - You may need to confirm pairing on TV. to ONLINE: Connected

2025-01-17 13:32:21.207 [INFO ] [.lgwebos.internal.MediaControlPlayer] - Received app info: AppInfo [id=null, name=null, playState=null].

2025-01-17 13:32:21.209 [INFO ] [.lgwebos.internal.MediaControlPlayer] - Received app info: AppInfo [id=null, name=null, playState=null].

2025-01-17 13:32:40.251 [INFO ] [.lgwebos.internal.MediaControlPlayer] - Received app info: AppInfo [id=null, name=null, playState=null].

2025-01-17 13:32:40.262 [INFO ] [.lgwebos.internal.MediaControlPlayer] - Received app info: AppInfo [id=null, name=null, playState=null].

2025-01-17 13:32:41.372 [INFO ] [.lgwebos.internal.MediaControlPlayer] - Received app info: AppInfo [id=null, name=null, playState=null].

2025-01-17 13:32:41.436 [INFO ] [.lgwebos.internal.MediaControlPlayer] - Received app info: AppInfo [id=null, name=null, playState=null].

2025-01-17 13:32:45.647 [INFO ] [.lgwebos.internal.MediaControlPlayer] - Received app info: AppInfo [id=null, name=null, playState=null].

2025-01-17 13:32:46.366 [INFO ] [.lgwebos.internal.MediaControlPlayer] - Received app info: AppInfo [id=null, name=null, playState=null].

2025-01-17 13:32:47.832 [INFO ] [.lgwebos.internal.MediaControlPlayer] - Received app info: AppInfo [id=null, name=null, playState=null].

2025-01-17 13:32:50.849 [INFO ] [.lgwebos.internal.MediaControlPlayer] - Received app info: AppInfo [id=null, name=null, playState=null].

2025-01-17 13:32:56.186 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'lgwebos:WebOSTV:83inch' changed from ONLINE: Connected to OFFLINE: TV is off

Did you try playing / pausing the TV within the above log?

yes I did
It triggers one [INFO] line every time I press the button