I tried this with Pushcut and it works... well kinda... I mean, Pushcut
can run an action that does exactly what we need. I was able to play a
din-dong file on my HomePod Mini.
I used this request message:
{"id":1,"method":"slim.request","params":["<mac address
player>",["playlist","play","/mnt/music/Geluiden/Ding-dong-sound.mp3"]]}
Success... or maybe not... Only problem is that the action needs to be
triggered by human interaction. That's not what I want...
That's not my understanding. Any system which can call a URL should be
able to trigger the action: in the Pushcut action definition, there's a
button to copy the action's URL (bottom left). You could open that URL
in a browser, or using your automation system, and it would trigger the
action. That of course would only be useful as long as you were at home
(or near your LMS).
Now I turned my attention back to Homekit itself. There is a way to do
this with a Homekit Shortcut. Things here is that the Homekit user
interface strips the message down into keys. To illustrate what I mean,
here's a screenshot:
Oh, I've never tried that...
Question is: how do I fill in the rest? I guess I need to break the
message up into different keys (?). so "id" would be a key and "method"
would be a key and "params" would be a key?
I'd say so. But then can you create a value which would be another
object (array) for the params?
I tried a few things like that but when I run the shortcut it says "An
SSL error has occurred and a secure connection to the server cannot be
made".
Well, that, too: LMS doesn't support https/SSL. I don't know about
Homekit, but is it limited to SSL protected URLs? Or did you
accidentally use https instead of http in the base URL?
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins