@Tobbo,
There are a number of plugin developments going on in this area, all seem to be taking slightly different approaches (which is great because someone may create the perfect solution
).
My (early dev version) might help because it allows you to select Spotify from a Domoticz script or 'Source' device but I have yet to add being able to trigger a specific playlist although I understand how that could be done.
Have a look at
https://github.com/dnpwwo/Domoticz-Goog ... /plugin.py, line 354 starts Spotify if you pass in 'CC32E753' which is defined on line 52 or invoke 'Audio' from Blockly or Lua you can switch to Spotify.
The Chromecast API (from Balloob) would suggest that once the application has been selected all you need is the URL of the media (or playlist)
Code: Select all
def play_media(self, url, content_type, title=None, thumb=None,
current_time=0, autoplay=True,
stream_type=STREAM_TYPE_BUFFERED,
metadata=None, subtitles=None, subtitles_lang='en-US',
subtitles_mime='text/vtt', subtitle_id=1):
I plan to match this with the 'Trigger' script command if I can. I'm assuming the URL can be found be triggering the URL through the Spotify App itself then looking in the 'Messages.log' to see what the URL actually is (TBC).