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.
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.
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.
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.
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.