| Developer: | Korey's Plugins |
| Category: | A/V and IR Equipment |
| Github: | Github Repo |
| Assistance: | Get help! |
| Plugin ID: | com.sherwinsound.applemusic |
| Latest release: | v1.0.8 released on Nov. 14, 2026 |
| Release downloaded: | 18 times |
| Requires: | Indigo v2022.1.0 or higher |
| Download latest release |
A comprehensive Indigo plugin for controlling Apple Music and monitoring all playback data in real-time.
Fixed: Actions now properly appear in Action Groups. Changed deviceFilter="self" to deviceFilter="self.appleMusicPlayer" for better action registration.
To use actions: In Action Groups, select "Device Actions" → Choose your Apple Music Player device → Actions will appear!
The plugin tracks and updates the following Apple Music information:
AppleMusic.indigoPlugin packageChoose how often the plugin checks Apple Music status: - 0.5 seconds: Smoothest updates, higher CPU usage - 1 second: Recommended for most uses - 2-5 seconds: Good for background monitoring - 10 seconds: Minimal CPU usage
If enabled, the plugin will create and update Indigo variables with all Apple Music data:
- Variables are named: {Prefix}{StateName} (e.g., AppleMusicTrackName)
- Useful for Control Pages and other integrations
- Variables are created automatically if they don't exist
IMPORTANT: To use Apple Music actions in Action Groups:
-- In Indigo Actions
Execute Action "Apple Music Player - Play"
Execute Action "Apple Music Player - Pause"
Execute Action "Apple Music Player - Next Track"
-- Set volume to 50%
Execute Action "Apple Music Player - Set Volume" with value "50"
-- Increase volume by 10
Execute Action "Apple Music Player - Volume Up" with value "10"
-- Mute/Unmute
Execute Action "Apple Music Player - Mute"
Execute Action "Apple Music Player - Unmute"
-- Play a playlist
Execute Action "Apple Music Player - Play Playlist"
Playlist Name: "My Favorites"
-- Play an album
Execute Action "Apple Music Player - Play Album"
Album Name: "Abbey Road"
Artist Name: "The Beatles"
-- Search and play
Execute Action "Apple Music Player - Search and Play"
Search Query: "Bohemian Rhapsody"
-- Rate current track 5 stars
Execute Action "Apple Music Player - Set Rating"
Rating: "100"
Create triggers based on device state changes:
- Trigger when playback starts: isPlaying becomes true
- Trigger when specific artist plays: artist contains "The Beatles"
- Trigger when volume changes: soundVolume changes
- Trigger when shuffle enabled: shuffleEnabled becomes true
- Trigger when specific genre plays: genre contains "Classical"
Add Apple Music controls to your Control Pages:
- Display current track: Use status state
- Display progress: Use playerPositionFormatted and durationFormatted
- Volume slider: Control via Set Volume action
- Play/Pause button: Use Play/Pause Toggle action
- Show genre/rating: Use genre and rating states
# Get current track info
applemusic_dev = indigo.devices[12345] # Your device ID
track = applemusic_dev.states['trackName']
artist = applemusic_dev.states['artist']
genre = applemusic_dev.states['genre']
indigo.server.log(f"Now playing: {artist} - {track} ({genre})")
# Control playback
indigo.device.execute("Apple Music Player", action="play")
indigo.device.execute("Apple Music Player", action="nextTrack")
# Rate current track
indigo.device.execute("Apple Music Player", action="setRating", props={"rating": "100"})
tell application "IndigoServer"
-- Get current track
set trackName to value of variable "AppleMusicTrackName"
-- Execute actions
execute action "Play/Pause Toggle" of device "Apple Music Player"
-- Check if playing
set isPlaying to value of state "isPlaying" of device "Apple Music Player"
end tell
# Morning energetic music
if time is 7:00 AM:
play playlist "Morning Energy"
set volume to 50
# Evening calm music
if time is 8:00 PM:
play playlist "Evening Chill"
set volume to 30
genre changesSolution: Use "Device Actions" (not "Plugin Actions") and select your Apple Music Player device first. This is the correct Indigo workflow for device-specific actions.
The plugin uses AppleScript to communicate with Music: - Music must be the native macOS Music app - macOS may prompt for accessibility permissions - Grant permissions in System Preferences → Security & Privacy
For issues or feature requests: 1. Check Indigo plugin log for errors 2. Verify Music app is working 3. Test with different update frequencies 4. Report issues with log excerpts
| Feature | Apple Music | Spotify |
|---|---|---|
| Track Info | ✓ | ✓ |
| Playback Control | ✓ | ✓ |
| Volume Control | ✓ | ✓ |
| Position Control | ✓ | ✓ |
| Shuffle/Repeat | ✓ | ✓ |
| Ratings | ✓ (5-star) | ✗ |
| Popularity | ✗ | ✓ |
| Genre/Composer | ✓ | ✗ |
| Play by URI | ✗ | ✓ |
| Library Search | ✓ | ✗ |
| Artwork URL | ✗ | ✓ |
This plugin is provided as-is for use with Indigo home automation.
Note: This plugin controls the macOS Music application on the Mac running Indigo. It works with your local music library and Apple Music subscription content. For controlling music on other devices, use AirPlay features within the Music app itself.
| Released on: | Nov. 14, 2026 |
| Requires: | Indigo v2022.1.0+ |
| Downloaded: | 18 times |
| Download this release | |
Version 1.0.8 - UTF-8-safe AppleScript execution and metadata handling
Fixed: Actions now properly appear in Action Groups. Changed deviceFilter="self" to deviceFilter="self.appleMusicPlayer" for better action registration.