New functionality
- Added random_cateogry method. Which lets the user provid a playlist category and Spotcast will return a random playlist from the category to play. See https://developer.spotify.com/console/get-browse-categories/ for a list of categories. Credit to @maxenced
- Market localisation is now possible in Spotcast. A new parameter
country
was added. This parameter can be provided at the service call or added to the configuration file directly. In order for the sensor to be localised, the parameter must be added in the sensor section as well in the configuration file.
Main configuration exemple
spotcast:
sp_dc: !secret felix_sp_dc
sp_key: !secret felix_sp_key
country: CA
accounts:
felix:
sp_dc: !secret felix_sp_dc
sp_key: !secret felix_sp_key
mellissa:
sp_dc: !secret mellissa_sp_dc
sp_key: !secret mellissa_sp_key
Sensor configuration exemple
sensors:
- platform: spotcast
country: CA
Bug fix and improvement
- Spotcast will now validate the uri provided to make sure it is a valid URI before sending it to spotify API. If the URI is invalid a clear error message will be sent to the log explaining the problem in the URI.