Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TV Remote - Claude Code Skill

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-cli for LG TV control (power, volume, apps)
  • adb for Google TV control (app launching and search)
  • go-chromecast for Chromecast control (media playback)

Quick commands

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.

Other controls

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"

How it works

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

Getting started

Claude Code skill

npm run install    # symlinks the skill into ~/.claude/skills/chromecast
npm run uninstall  # removes the symlink

lgtv (LG TV control)

pip install lgtvremote-cli
# or
pipx install lgtvremote-cli

ADB (Google TV / Chromecast control)

# macOS
brew install android-platform-tools

# Ubuntu/Debian
sudo apt install adb

After installing, connect to your Google TV:

adb connect <tv-ip>                      # Approve on TV screen
adb -s <tv-ip>:5555 shell echo ok        # Verify

go-chromecast (media casting)

brew install go-chromecast

Network requirements

  • Your computer and TV must be on the same local network
  • Port 3001 (WSS) for LG TV control
  • Port 5555 (TCP) for ADB

License

MIT

About

Claude Code skill + token saving scripts to control your Chromecast connected to a LG TV.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages