✓ Verified
💻 Development
✓ Enhanced Data
Appletv
Control Apple TV via pyatv.
- Rating
- 4.4 (34 reviews)
- Downloads
- 511 downloads
- Version
- 1.0.0
Overview
Control Apple TV via pyatv.
Complete Documentation
View Source →
Apple TV Control
Control Apple TV via the pyatv library.
Requirements
bash
pipx install pyatv --python python3.11
Note: pyatv requires Python ≤3.13. Python 3.14+ has breaking asyncio changes. Use--python python3.11orpython3.13with pipx.
Configuration
Config file at ~/clawd/config/appletv.json:
json
{
"name": "Living Room",
"id": "DEVICE_ID",
"ip": "192.168.x.x",
"credentials": {
"companion": "...",
"airplay": "..."
}
}
First-Time Pairing
bash
# Find your Apple TV
atvremote scan
# Pair Companion protocol (required)
atvremote --id <DEVICE_ID> --protocol companion pair
# Pair AirPlay protocol (for media)
atvremote --id <DEVICE_ID> --protocol airplay pair
Save the credentials to the config file.
Quick Commands
Status & Playing
bash
scripts/appletv.py status # Full status with now playing
scripts/appletv.py playing # What's currently playing
Playback Control
bash
scripts/appletv.py play # Play/resume
scripts/appletv.py pause # Pause
scripts/appletv.py stop # Stop
scripts/appletv.py next # Next track/chapter
scripts/appletv.py prev # Previous
Navigation
bash
scripts/appletv.py up # Navigate up
scripts/appletv.py down # Navigate down
scripts/appletv.py left # Navigate left
scripts/appletv.py right # Navigate right
scripts/appletv.py select # Press select/OK
scripts/appletv.py menu # Menu button
scripts/appletv.py home # Home screen
Volume
bash
scripts/appletv.py volume_up
scripts/appletv.py volume_down
Power
bash
scripts/appletv.py turn_on # Wake from sleep
scripts/appletv.py turn_off # Put to sleep
scripts/appletv.py power # Toggle
Apps
bash
scripts/appletv.py apps # List installed apps
scripts/appletv.py app Netflix
scripts/appletv.py app YouTube
scripts/appletv.py app "Disney+"
Discovery
bash
scripts/appletv.py scan # Find Apple TVs on network
Example Interactions
- "What's playing on the TV?" →
scripts/appletv.py status - "Pause the TV" →
scripts/appletv.py pause - "Turn off the Apple TV" →
scripts/appletv.py turn_off - "Open Netflix on TV" →
scripts/appletv.py app Netflix
Installation
Terminal bash
openclaw install appletv
Copied!
💻Code Examples
pipx install pyatv --python python3.11
pipx-install-pyatv---python-python311.txt
> **Note:** pyatv requires Python ≤3.13. Python 3.14+ has breaking asyncio changes. Use `--python python3.11` or `python3.13` with pipx.
## Configuration
Config file at `~/clawd/config/appletv.json`:atvremote --id <DEVICE_ID> --protocol airplay pair
atvremote---id-deviceid---protocol-airplay-pair.txt
Save the credentials to the config file.
## Quick Commands
### Status & Playingexample.json
{
"name": "Living Room",
"id": "DEVICE_ID",
"ip": "192.168.x.x",
"credentials": {
"companion": "...",
"airplay": "..."
}
}example.sh
# Find your Apple TV
atvremote scan
# Pair Companion protocol (required)
atvremote --id <DEVICE_ID> --protocol companion pair
# Pair AirPlay protocol (for media)
atvremote --id <DEVICE_ID> --protocol airplay pairexample.sh
scripts/appletv.py play # Play/resume
scripts/appletv.py pause # Pause
scripts/appletv.py stop # Stop
scripts/appletv.py next # Next track/chapter
scripts/appletv.py prev # Previousexample.sh
scripts/appletv.py up # Navigate up
scripts/appletv.py down # Navigate down
scripts/appletv.py left # Navigate left
scripts/appletv.py right # Navigate right
scripts/appletv.py select # Press select/OK
scripts/appletv.py menu # Menu button
scripts/appletv.py home # Home screenexample.sh
scripts/appletv.py turn_on # Wake from sleep
scripts/appletv.py turn_off # Put to sleep
scripts/appletv.py power # Toggleexample.sh
scripts/appletv.py apps # List installed apps
scripts/appletv.py app Netflix
scripts/appletv.py app YouTube
scripts/appletv.py app "Disney+"Tags
#apple_apps-and-services
Quick Info
Category Development
Model Claude 3.5
Complexity One-Click
Author lucakaufmann
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
Ready to Install?
Get started with this skill in seconds
openclaw install appletv
Related Skills
✓ Verified
💻 Development
4claw
4claw — a moderated imageboard for AI agents.
🧠 Claude-Ready
)}
★ 4.4 (118)
↓ 4,990
v1.0.0
✓ Verified
💻 Development
Aap Passport
Agent Attestation Protocol - The Reverse Turing Test.
🧠 Claude-Ready
)}
★ 4.3 (89)
↓ 4,621
v1.0.0
✓ Verified
💻 Development
Acestep Lyrics Transcription
Transcribe audio to timestamped lyrics using OpenAI Whisper or ElevenLabs Scribe API.
⚡ GPT-Optimized
)}
★ 3.8 (274)
↓ 17,648
v1.0.0
✓ Verified
💻 Development
Adaptive Suite
A continuously adaptive skill suite that empowers Clawdbot.
🧠 Claude-Ready
)}
★ 4.7 (88)
↓ 1,625
v1.0.0