I have got this up and running but whenever the song changes I get this error:
2020-02-23 00:35:43.690485 WARNING music_lights: ------------------------------------------------------------
2020-02-23 00:35:43.691937 WARNING music_lights: Unexpected error in worker for App music_lights:
2020-02-23 00:35:43.693276 WARNING music_lights: Worker Ags: {'id': 'b72dbb3f476a4f1ba29553df06f027f8', 'name': 'music_lights', 'objectid': 'f9612abb240f46368e34cbf3dacda62c', 'type': 'state', 'function': <bound method music_lights.change_led_color of <music_lights.music_lights object at 0x75436cd0>>, 'attribute': 'entity_picture', 'entity': 'media_player.ted_s_bedroom_tv', 'new_state': 'https://i.scdn.co/image/ab67616d00001e027dea0aa103144aa9740835fd', 'old_state': 'https://i.scdn.co/image/ab67616d00001e02bc200956ba9de7303d8bd068', 'pin_app': True, 'pin_thread': 0, 'kwargs': {'attribute': 'entity_picture', '__thread_id': 'thread-0'}}
2020-02-23 00:35:43.694866 WARNING music_lights: ------------------------------------------------------------
2020-02-23 00:35:43.697234 WARNING music_lights: Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/appdaemon/threading.py", line 777, in worker
funcref(entity, attr, old_state, new_state,
File "/config/appdaemon/apps/music_lights.py", line 20, in change_led_color
rgb_color = self.get_color(self.args["ha_url"] + new)
File "/config/appdaemon/apps/music_lights.py", line 24, in get_color
fd = urlopen(url)
File "/usr/lib/python3.8/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.8/urllib/request.py", line 531, in open
response = meth(req, response)
File "/usr/lib/python3.8/urllib/request.py", line 640, in http_response
response = self.parent.error(
File "/usr/lib/python3.8/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/usr/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/usr/lib/python3.8/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 401: Unauthorized
2020-02-23 00:35:43.698932 WARNING music_lights: ------------------------------------------------------------
Anyone have any ideas why it is not authorised to change the light colour?