EDIT: V2 now available - see below
Hi everyone!
Thought I would share this as haven’t seen much in the way of Siri Shortcut projects now that @robbiet480 has released the new iOS companion app and others may find these of use.
If you’re using the new app and are running iOS 13, you should be able to just download these shortcuts straight from the links and get going immediately!
At home I expose my devices through Homekit but I don’t own an Apple TV or iPad to act as a home hub so I can’t invoke devices with Siri away from home - these shortcuts fix this problem!
I have made three shortcuts so far - one for turning on devices, one for turning off devices, and one for checking the status of a device or sensor.
Once installed, all you need to do is edit the Dictionary for each shortcut, replacing the values with the entity ids of all the devices you want to control, and the name you want to use for each with Siri.
Siri shortcuts are case-sensitive - therefore it is essential that you capitalise the first letter of the device and use lowercase for the rest of the device name, otherwise you may find the shortcut doesn’t work properly - for example, “Kitchen lights” is fine, whereas “Kitchen Lights” may not work.
The ‘check device’ shortcut should identify plural devices and refer to them as ‘is’ or ‘are’ appropriately. Sensors should be reported with their units of measurement. I have also tweaked the way it reports alarm status - ‘armed_away’ should be reported as just ‘armed’.
These are just a first attempt and any refinements or improvements you can suggest, or would like to see, would be welcomed!
Thanks again to @robbiet480 for making all this possible.
"Hey Siri, check device": deleted - see v2
"Hey Siri, turn on device": deleted - see v2
"Hey Siri, turn off device": deleted - see v2
Things to improve:
Better handling of upper/lowercase text, possibly with regex
Improved feedback to verify that action has been completed succesfully
Expansion to better handle a wider variety of devices