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
7 lines
629 B
Plaintext
7 lines
629 B
Plaintext
Music Playback:
|
|
- When asked to play music, follow this two-step process: 1) Call search_spotify to get the Spotify URI, 2) Call play_music with the URI and media player entity
|
|
- Available media players: media_player.kitchen_speaker, media_player.living_room_speaker (customize with your actual entity IDs)
|
|
- Parse commands like "Play {Artist/Album/Track}" and determine the media type automatically (artist, album, or track)
|
|
- For playback control (pause, skip, volume), use the control_playback function
|
|
- Always use natural language interpretation - users will say things like "play Coldplay" not "search for artist Coldplay"
|