New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't connect to WebOS TV #102259
Comments
Hey there @thecode, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) webostv documentation |
I have the exact same issue, however on the newest HA release (I guess it's 2023.12.2 - I'm trying to configure it for the first time, so don't know if it works on other versions). I've tried the same options as mentioned in the main post. Pinging the IP works fine, however HA doesn't even detect my TV, neither does LG ThinQ app (I'll try to contact with support about that). I've tried adding different configurations to configuration.yaml file and also using LG's integration creator, but none of this options worked. TV is connected via LAN/WLAN. HA is working on HAOS which is setup up on QNAP's virtual machine. |
I would suggest set fixed ip address on LG tv, turn-on pairing and then add via the LG integration the TV by ip-address. I have 3 LG (webos) tv's and they are all working fine ( must say since i ensured fixed ip-address ) |
@b00tsie I don't have an option to specify static IP in TV settings, however, I made it static in router settings. So my TV always gets the same IP address. Still, no difference. |
Same issue with Home Assistant 2023.12 and a LG G3 TV. It looks like the 2023 models need special handling. |
Please add the following to logger:
default: info
logs:
homeassistant.components.webostv: debug
aiowebostv: debug Note: it is better to drag the log into the comment (which will add it as an attachment) and not copy paste as it is hard to read logs in GitHub. Thanks |
@thecode here's what I've got in logs after doing that (attached) Also, WebOS was updated since my initial message, so currently I see this:
|
Now I have made a few observations regarding this. There are a couple of open source control tools out there for WebOS and I have tried quite a few of them. None of them were able to connect to my LG G3! So I looked at the source and it seems like most tools try to connect to port 3000. So I tried to connect to the port through IPv4:
Connection refused. Bam! This obviously cannot work. This means it's not the integration's fault as the integration obviously cannot connect to port 3000. After this I have messed with the settings on my TV and did a few things (unfortunately I did multiple things at once):
Guess what? ThinQ was able to find my TV and could control it remotely. And what's even stranger: After pairing my TV with my phone through ThinQ the TV accepted connections on port 3000:
Yay. So the TV finally does not refuse connections any more. Now I am also able to connect to the TV through Home Assistant. 🎉 In order to get this sorted out (and maybe fix the docs) it would be nice if someone could try things more methodically (one step at a time). Before doing anything, could you please state the following:
Now go ahead and do one thing at a time (I did it wrong because I was desperate):
If the telnet command still gives you a
Note: Don't forget to enable IPv6 again as you don't want to stick with legacy IP only. |
LG ThinQ always worked fine
it was off already
Doesn't make any difference since the IP address was made static on a router side, but tried that too. No difference.
Nope :( HA logs has the same:
|
If TCP connection to port 3000/3001 cannot be established then that's the problem. As I said I was also facing this until I messed around with the TV's network settings and the ThinQ app. If Telnet gives you a connection refused then my guess is that the Home Assistant integration cannot do anything about it. You may try bscpylgtv and check if the connection to your WebOS TV succeeds with it. If not, then that's the issue.
Yeah, aiowebostv uses TCP. AFAIK UDP is for WebRTC. The Python Since we are both using the same TV (with slightly different FW) I think you should somehow be able to work this out. Maybe reset/reinstall the ThinQ app again, pair again and check the status of TCP port 3000 directly after pairing with ThinQ. You may also try to toggle the IP control setting. As a last resort you could also try to factory reset your TV. I was about to do that with my TV before I got this to work. |
There was WebOS upgrade today (0.30.71) and finally tcp connection succeeds
So maybe there was a problem with the previous version. However, HA still cannot connect with the same error 🤔
UPD: I solved the problem. HA and TV were in different subnetworks 192.168.AAA.xxx and 192.168.BBB.yyy. There's no routing problem, both networks have full access to each other, but apparently, TV banned connection from "non-native" subnetwork. I changed HA's IP and it finally works. |
The problem
Cannot setup LG WebOS integration. Device is auto-discovered, but when I try to proceed it says "Failed to connect" and also that i should ensure the TV is on and IP address is entered correctly. TV is on. IP address was auto-discovered, but manual entering doesn't help either.
What version of Home Assistant Core has the issue?
core-2023.10.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
webostv
Link to integration documentation on our website
https://www.home-assistant.io/integrations/webostv
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
I use a clean setup of HAOS 11.0 (using VMWare ova image).
It sees a number of devices and some of them do connect (e.g. a printer or an AV receiver)
However, I can't connect to my LG TV.
webOS TV Version is 8.2.0-705
Software Version is 03.20.14
TV model is OLED77G3
I heard about "LG Connected Apps" feature, but I don't see such option. However, in Support -> IP Control Settings I enabled SDDP, WOL, and Network IP Control feature. Btw, the latter generates some code (see a photo) which I think I should enter somewhere, but webostv integration doesn't offer a field for that. So... maybe this is unrelated. However, I tried switching this off too. No difference.
The text was updated successfully, but these errors were encountered: