wake_on_lan:
webostv:
host: 192.168.1.31 # Address reserved on router over CAT6
name: Master Bedroom TV
turn_on_action:
service: wake_on_lan.send_magic_packet
data:
mac: 14:C9:13:XX:XX:XX
HA sends a notification that there is a “discovered” device that needs configuring but, when I press the “Start Pairing Request” button, nothing happens. I do get the error: 2021-04-13 02:19:38 ERROR (MainThread) [homeassistant.components.webostv] Unable to connect to host 192.168.1.31
I’ve tested the wake on LAN by calling the WOL from the developer’s tools UI and it works. My TV will turn on if i call:
service wake_on_lan.send_magic_packet
data:
mac: ‘14:c9:13:50:bb:43’
Nothing seems to work. MAC with single, double quotes, MAC with hyphens and with colons, restart, reload…
I did notice that there is a new file in config/webostv.conf. The file has the following text inside:
‘utf-8’ codec can’t decode byte 0xc1 in position 99: invalid start byte.
I’m all spent on this. I just got Amazon Rekognition working with my Ubiquiti cameras to detect people and now I want to send that image to my TV when a motion event is triggered. If this platform is no longer working, any other ideas? Maybe attach a $50 Chromecast to the TV and push an HTML5 notification?
Not sure if this will be helpful, but I have found this linux shell script implementation of the WebOS websocket functions to be very helpful in learning and debugging my LG TV as I build a ESP32 WebOS controller for my Home Assistant setup.
Good hunting, hope you find a work flow that is useful. It is a problem to filter out too many noise events and get only the useful data. bummer that the LG TV cannot be a useful part of your toolchest.
Did you enable the LG connect apps option in your tv? I had a similar issue. You don’t have much time to accept the pairing request on your tv after starting it on home assistant.
@JRock3000
in finally noticed that the internal file editor can not show the content of the webos.conf file. It is not a classic conf-file. It is a sqlite file. I found my tv is working and found the working entity (not a whole device). Maybe it is the same on your side.
Well this has beaten me. No matter what I try, i never get the “Pairing” screen to work. Always "Failure to connect, please turn on your TV or check ip address. I have tried
Wired and Wireless IP and MAC details
Turning on LG Connected Apps (and off just in case the switch was wrong) , absolutely nothing. I did notice did get a “Hello World” back when i use my browser for ports 3000 and 3001.