Control your LG TV and Chromecast with Google TV using natural language through Claude Code.
This simple automation project wrangles together three tools to help you control your TV and Chromecast and uses a Claude Code skill to orchestrate the commands using natural language.
The three tools are:
lgtvremote-clifor LG TV control (power, volume, apps)adbfor Google TV control (app launching and search)go-chromecastfor Chromecast control (media playback)
All commands require the tv prefix.
| Say this | What happens |
|---|---|
tv music |
Searches YouTube for a time-appropriate playlist, sets low volume |
tv off / tv on |
Power the TV off or on |
tv yt |
Launch YouTube |
tv yt lofi hip hop |
Search YouTube for "lofi hip hop" |
tv stremio |
Launch Stremio |
tv stremio severance |
Search Stremio for "severance" |
tv pause / tv resume |
Pause or resume playback |
tv next / tv previous |
Skip to next or previous in playlist |
tv mute |
Mute the TV |
tv volume up / tv volume down |
Adjust volume |
App launching: Say tv <app name> to launch it: tv netflix, tv disney+, tv prime, tv plex, tv stan, tv binge, tv kayo, tv tubi, tv spotify, tv steam.
You can also ask Claude to do things like:
- "set volume to 15"
- "switch to HDMI 2"
- "skip forward"
- "rewind 30 seconds"
- "what's playing?"
- "turn the screen off but keep audio"
The skill orchestrates three CLI tools behind the scenes:
| Tool | Purpose |
|---|---|
lgtv |
LG TV control (power, volume, apps) |
adb |
Google TV app launching and search |
go-chromecast |
Chromecast media playback |
npm run install # symlinks the skill into ~/.claude/skills/chromecast
npm run uninstall # removes the symlinkpip install lgtvremote-cli
# or
pipx install lgtvremote-cli# macOS
brew install android-platform-tools
# Ubuntu/Debian
sudo apt install adbAfter installing, connect to your Google TV:
adb connect <tv-ip> # Approve on TV screen
adb -s <tv-ip>:5555 shell echo ok # Verifybrew install go-chromecast- Your computer and TV must be on the same local network
- Port 3001 (WSS) for LG TV control
- Port 5555 (TCP) for ADB
MIT