LG TV (powered by LGWebOSRemote)
Manage your LG TV with the collection of scripts that execute the LGWebOSRemote commands via Raycast.
-
(Optional) Assign a static IP address to the TV.
This step is optional, but highly recommended to avoid re-authentication when the IP changes. The instruction depends on the router model, but the phrase you are looking for is
DHCP
:- Asus: https://www.asus.com/support/FAQ/114068/
- TP-Link: https://www.tp-link.com/us/support/faq/560/
- etc.
-
Install the
LGWebOSRemote
library system-wide.The recommended way is to use pipx:
pipx install git+https://github.com/klattimer/LGWebOSRemote
-
Run the
Scan
command.Remember the TV has to be turned on.
-
Copy the TV IP address from the output.
{"result": "ok", "count": 1, "list": [{"uuid": "some-long-id", "model": "OLED55C11LB", "address": "192.168.1.200"}]}
-
Run the
Authenticate
command with the obtained IP.Remember the TV has to be turned on and you have to accept the connection on the TV.
-
Voilà, now you can control the TV!
All the scripts with their descriptions can be found here.
- Commands' outputs are quite messy, e.g. always include
DEBUG
messages (bug in the library). - Only one TV configuration at a time is supported (bug in the library).
Execute Command
command doesn't work (bug in the library).Send Notification With Icon
command doesn't work (bug in the library).Open Youtube (URL)
andOpen Youtube (ID)
commands don't seem to work (but try them yourself).Show Config
command runs forever - you have to cancel the process withControl+C
(bug in the library).- Commands are not documented, so some of them are not obvious to use, e.g.
Open App With Payload
.
If you find out any more issues related to the library, not the Raycast scripts, please report them in the LGWebOSRemote repository or... just contribute to the library by fixing them 🙂