Problems with LG webostv integration

I’ve been trying to use the webostv integration with my OLED65C24LA (HA 2023.2.2). It’s visible as a media player in the HA console, and I can see a list of attributes for it (e.g. source_list, volume_level, etc), but when I try to send a notification to it I get this error:

ERROR (MainThread) [homeassistant.components.webostv.notify] TV unreachable

This is the code that I’m using:

  - service: notify.lg_webos_smart_tv
    data:
      message: Someone at front door
      data:
        icon: /local/doorbell_snapshot.jpg

Any idea why I might be getting this error?

Also, I also notice that only “HDMI 1” is listed in the source list. Is there any way of making HDMI 2/3/4 accessible as well?

Make sure your TV related media_player entity is called media_player.lg_webos_smart_tv.
I managed to show a notification (toast) message when data/icon was not provided.
When data/icon was specified (regardless to an png image with relative (e.g. /local/myimage.png) or absolute path or with an mdi: icon), the text message didn’t appear at all.

Your error comes from: core/notify.py at f41bec6ba9ae1734db1a3572d9bad18a0c383bb3 · home-assistant/core · GitHub

Yes that is the name of my media_player entity.
I just tried the notification without the icon data and got exactly the same error

Strange, I set this up ages ago and I thought it had been working but when I try it, the message works but get an error in the logs about can’t find the icon, it works fine with my mobile notifications though so the icons are reachable.

You can see and enable the sources by selecting Settings - Integrations and clicking “Configure” on the LG webOS Smart TV integration.

Yes I found that list of sources, but it only contains one HDMI source - “HDMI 1”. There’s no HDMI 2/3/4lg-sources

1 Like

Are you sure you haven’t renamed the HDMIs ? maybe PC, AV Receiver, SHIELD ?

My HDMIs show the name set on the TV

It might also be that the TV actually remove HDMI ports without a detected connection.

Hmmm…that’s interesting…all four HDMI ports have something connected to them, but I haven’t renamed anything on the TV. However, if I press the button on the TV to change the input source, it attempts to show the description of each connected device. So it shows the following descriptions:

  • HDMI 1 - Unknown (I have a Humax HDR-Fox-T2 connected)
  • HDMI 2 - Unknown (this is connected back to my Onkyo AV receiver)
  • HDMI 3 - SHIELD Game Console (this is connected to my NVidia Shield)
  • HDMI 4 - PC (this is connected to a Windows 10 PC).

If I have recently viewed the Chromecast (which is connected to an HDMI input on the Onkyo Receiver), then the TV will show a description of “Chromecast” under HDMI2.

So it seems as if the TV is attempting to detect what is connected to each HDMI port and generating a description for it.
???

Are you sure those HDMI ports aren’t just listed with their detected names? For example, I have a Chromecast plugged into HDMI1, and it shows as Chromecast in the webostv integration. There’s nothing in HDMI2, and my Onkyo AVR is plugged into HDMI3.

Yours shows an “AV Receiver” and a Shield Game Console.

So it seems as if the TV is attempting to detect what is connected to each HDMI port and generating a description for it.
???

Yes. On my LG TV I can change the names for the sources and there’s also an option to delete something that was connected in the past.

Yes it looks like the sources are listed with their detected names. This creates the possibility of the source names changing from one minute to the next, for devices which are connected via the AV receiver. So in my case HDMI2 will be listed as “Chromecast” if that was the last device selected from the AV receiver, or “Unknown” or maybe “AV Receiver” if it couldn’t identify the last selected device.
So I can’t write a script to select HDMI2 from the TV because I can’t be sure what the source name will be at the time it runs.

I bet you can select some settings in the TV menu to disable this feature. :slight_smile:

Hmmm…I just scanned through all of the settings and I couldn’t find an option to disable the feature :0(

i have the same problem with the notification, dosnt work at all, with icon or no icon, i search on web about this but nothing…

1 Like

Has anyone found an answer for the HDMI ports?
On my LG TV only when I select HDMI 1 input with TV, on Homeassistant LGWebOS I see the HDMI 1 input. As soon as I select another input HDMI 1 goes away on HA integration.

facing the same issue. Tried with and without data.

EDIT: Notifications are working, but only without data. Unable to display the image from the camera

Did you try it in dev tools > services ? Does it work from there is you select the LG TV notify entity ?

EDIT: I see it does work for you for notify. I tried the icon and it will not work for me either

Ok, just checked the git for the webos integration. Looks like LG removed support for icons and images in notifications…