Files
spotify-voice-assistant/custom_components/spotify_search/services.yaml
T
Chad Auld bd221b80e8 Initial release v1.0.0
Voice-controlled Spotify playback integration for Home Assistant

Features:
- Natural language music control via Extended OpenAI Conversation
- Exact match artist search (finds Coldplay when you ask for Coldplay)
- Support for artist, album, track, and playlist searches
- Smart caching for 15-50x performance improvement
- Works with any Spotify Connect device
- Zero additional authentication (reuses HA Spotify OAuth)
- Enterprise-grade code quality with defensive programming

Technical improvements:
- Client caching with automatic validation
- Input validation and error handling
- Defensive attribute checks
- Lazy logging for performance
- Clear error messages for users
2025-11-09 19:45:14 -07:00

29 lines
1.2 KiB
YAML

search:
name: Search Spotify
description: Search Spotify for artists, albums, tracks, or playlists and return the Spotify URI. Uses exact match when available for artist searches. Leverages your existing Home Assistant Spotify integration - no additional authentication needed.
fields:
query:
name: Query
description: Search query (artist, album, track, or playlist name)
required: true
example: "Coldplay"
selector:
text:
type:
name: Type
description: Type of content to search for. Artist search uses exact name matching to avoid personalized recommendations.
required: false
default: "artist"
example: "artist"
selector:
select:
options:
- "artist"
- "album"
- "track"
- "playlist"
clear_cache:
name: Clear Cache
description: Clear the cached Spotify client. The integration caches the Spotify client reference for performance (15-50x faster searches). Use this service if you experience issues after removing or re-adding the Spotify integration. The cache automatically invalidates when the Spotify integration is reloaded.