mherger wrote: > >> 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? > > BTW: I just stumbled across this document: > > https://support.apple.com/de-ch/guide/shortcuts/apd0f2e057df/ios
Thanks again Michael !! Appreciate your help. I tried like a million combinations with those keys but no luck. But I found a way around it. I selected "file" for "Request Body" of the "Get contents of" command and selected a variable for the "file". Prior to the "Get contents of" command I lookup a text file on my local http server which contains the string "{"id":1,"method":"slim.request","params":["aa:aa:45:03:00:73",["playlist","play","/mnt/music/Geluiden/Ding-dong-sound.mp3"]]}". And I assigned it to the variable that I then pass onto "file" for "Request Body". Okay, this is not the most elegant solution but it works! In regards to Pushcut: it lets you create an action that executes the post message. But the action is represented by a button that the user has to push on the notification Pushcut sends out. The copy url thing is indeed what you need to do. but this url is pasted in a "Get contents of" command in a HomeKit shortcut. That triggers the PushCut notification. When the notification appears on your phone, you need to pull it down and that reveals the action button of the action created in Pushcut. When the user presses the button it will then send the post message. And that is not what I want. Anyway, I found a way that works. It is a pity how Apple treats HomeKit. HomeKit supports shortcuts but this is a subset of the Shortcuts app from Apple. I was able to create a working shortcut in the Shortcuts app. But due to the poor shortcuts implementation in HomeKit I couldn't get it to work in HomeKit. There are some things I really don't understand in Apple's way of reasoning. Why just not integrate the Shortcuts app into HomeKit; that would make HomeKit a hell of a lot more powerful... 'Yamaha A-S3000' (https://uk.yamaha.com/en/products/audio_visual/hifi_components/a-s3000/index.html) (sliver) -> 'Focal Electra 1028 Be' (http://www.focal.com/en/electra-1000-be-2/209-electra-1028-be-3544053695099.html) 1 x SB Boom, 1 x SB Radio, 1 x SB Touch and 2 x RPI 2B 1 x SB3 and 1 x SB Touch in storage ReadyNAS NVX for storage piCorePlayer on RPI 4B as LMS server iPeng on iPhone, SqueezePad & iPeng on iPad, Material Skin http://www.last.fm/user/phibon ------------------------------------------------------------------------ Pascal Hibon's Profile: http://forums.slimdevices.com/member.php?userid=7969 View this thread: http://forums.slimdevices.com/showthread.php?t=113721 _______________________________________________ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins