Chromecast With Google Tv
by @antgly
Cast YouTube videos, Tubi TV show episodes, and TV show episodes from other video streaming apps via ADB to Chromecast with Android TV (Chromecast 4K supported, Google TV Streamer support is unknown)
clawhub install chromecast-with-google-tvπ About This Skill
name: chromecast-with-google-tv description: Cast YouTube videos, Tubi TV show episodes, and TV show episodes from other video streaming apps via ADB to Chromecast with Android TV (Chromecast 4K supported, Google TV Streamer support is unknown) metadata: {"openclaw":{"os":["darwin","linux"],"requires":{"bins":["adb","scrcpy","uv","yt-api"]},"install":[{"id":"brew-adb","kind":"brew","cask":"android-platform-tools","bins":["adb"],"label":"Install adb (android-platform-tools)"},{"id":"brew-scrcpy","kind":"brew","formula":"scrcpy","bins":["scrcpy"],"label":"Install scrcpy"},{"id":"brew-uv","kind":"brew","formula":"uv","bins":["uv"],"label":"Install uv"},{"id":"go-yt-api","kind":"go","module":"github.com/nerveband/youtube-api-cli/cmd/yt-api@latest","bins":["yt-api"],"label":"Install yt-api (go)"}]}}
Chromecast with Google TV control
Use this skill when I ask to cast YouTube or Tubi video content, play or pause Chromecast media playback, check if the Chromecast is online, launch episodic content in another streaming app via global search fallback, or pair with a Chromecast device for the first time.
Setup
This skill runs with uv, adb, yt-api, and scrcpy in the PATH. No venv required.
uv, adb, yt-api, and scrcpy are available in the PATH../run as a convenience wrapper around uv run google_tv_skill.py.First-time pairing
Before using this skill, you must pair your Chromecast with ADB wireless debugging:
1. Enable Developer Options on the Chromecast (Settings > System > About > tap "Android TV OS build" 7 times)
2. Enable USB debugging and Wireless debugging in Developer options
3. Use the pair command to pair with the pairing code shown on screen:
- ./run pair --show-instructions - Display detailed pairing instructions
- ./run pair --pairing-ip - Perform pairing
After pairing once, you can use the connection port shown on the Wireless debugging screen for all other commands.
Capabilities
This skill provides a small CLI wrapper around ADB to control a Google TV device. It exposes the following subcommands:
Usage examples
./run pair --show-instructions
./run pair --pairing-ip 192.168.1.100 --pairing-port 12345 --pairing-code 123456
./run status --device 192.168.4.64 --port 5555
./run play "7m714Ls29ZA" --device 192.168.4.64 --port 5555
./run play "family guy" --app hulu --season 3 --episode 4 --device 192.168.4.64 --port 5555
./run pause --device 192.168.4.64 --port 5555
Device selection and env overrides
.last_device.json in the skill folder and will use that cache if no explicit device is provided.YouTube handling
yt-api CLI (in the PATH). If ID resolution fails, the skill will report failure.YOUTUBE_PACKAGE (default com.google.android.youtube.tv).Tubi handling
TUBI_PACKAGE (default com.tubitv).Global-search fallback for non-YouTube/Tubi
--app with another provider (for example hulu, max, disney+), the skill uses a Google TV global-search fallback.--app, --season, and --episode.scrcpy must be installed and available in the PATH for this flow.android.search.action.GLOBAL_SEARCH, waits for the Series Overview UI, opens Seasons, picks season/episode, then confirms Open in when available.Pause / Resume
./run pause
./run resume
Dependencies
uv to avoid PEP 668/system package constraints.adb, scrcpy, uv, and yt-api to be installed and available in the PATH.Caching and non-destructive defaults
.last_device.json in the skill folder.Troubleshooting
adb connect IP:PORT manually from your host to verify the current port..last_device.json on success../run pair --show-instructions for detailed setup stepsImplementation notes
google_tv_skill.py in this folder. It uses subprocess calls to adb, scrcpy, and yt-api, plus an internal global-search helper for fallback playback.βοΈ Configuration
This skill runs with uv, adb, yt-api, and scrcpy in the PATH. No venv required.
uv, adb, yt-api, and scrcpy are available in the PATH../run as a convenience wrapper around uv run google_tv_skill.py.First-time pairing
Before using this skill, you must pair your Chromecast with ADB wireless debugging:
1. Enable Developer Options on the Chromecast (Settings > System > About > tap "Android TV OS build" 7 times)
2. Enable USB debugging and Wireless debugging in Developer options
3. Use the pair command to pair with the pairing code shown on screen:
- ./run pair --show-instructions - Display detailed pairing instructions
- ./run pair --pairing-ip - Perform pairing
After pairing once, you can use the connection port shown on the Wireless debugging screen for all other commands.
π Tips & Best Practices
adb connect IP:PORT manually from your host to verify the current port..last_device.json on success../run pair --show-instructions for detailed setup steps