Apologies, I hate it when you stumble upon a thread where someone has the same issue as you and they sign off with “it’s ok, I got it working”, whilst giving no explanation!
Here’s what I’ve been using instead:
Ensure you read the thread in full as the user mate2002 has an a link to their github repo where it’s tidied up a bit.
Pros are that you can provide more than one light and it’ll provide each one with a colour from what’s playing, cons are that it requires appdaemon and it isn’t as straight forward as an automation.
In order to get the script to run properly, I had to use the following config in the AppDaemon addon:
{
"disable_auto_token": false,
"system_packages": [
"libcurl",
"zlib-dev",
"libjpeg-turbo-dev",
"libwebp",
"tk",
"openjpeg",
"python3-dev",
"curl-dev",
"gcc",
"g++"
],
"python_packages": [
"pip==19.0.3",
"pycurl",
"Pillow"
]
}
There are probably a few components there that are no longer required, worth a bit of a play.
Let us know if you have any trouble getting this working.