Post

Replies

Boosts

Views

Activity

Reply to HomeKit and Siri Shortcuts integration
Actually, this cannot be done today in either the Shortcuts app, or the Home app. I do not believe there is a way to tie a HomeKit-oriented trigger (such as motion, or pressing a HomeKit button) to a Siri Extension. This is how I'm seeing this: Open the Home app, and go to the Automation tab Tap '+' to create a new automation Tap 'A Sensor Detects Something', choose a sensor such as 'Motion', and hit 'Next' twice, to get the list of scenes and accessories Scroll to the bottom of this page, and tap 'Convert To Shortcut' Now that I'm in shortcuts, I do not have the option to choose any 3rd party Siri Shortcuts, only a smaller sub-set of options This appears to be the same on both iOS 13 and the 14 beta. If there is a way to get my app into the list of options here, I welcome that!
Jun ’20
Reply to NavigationLink Clears my 'selection'
The only functional difference I can see in the code above is to ensure that the enclosing NavigationView (which was not in my example, but is a layer up) has a second View inside it, representing the 'Default' view that is shown, prior to taping one of the NavigationLink. It didn't work. The observed behavior is still that each time I tap one of the NavigationLinks in the sidebar the sidebar is refreshed twice -- once with the selectedHomeId populated properly, and again with the selectedHomeId set to nil. Visually, everything looks fine -- the second refresh of the side bar does not clear out the detail view.
Jul ’20
Reply to HomeKit and Siri Shortcuts integration
@LVS8Barrs Developer, I'm seeing now that my original question may have been confusing -- what I'm looking for is not to have the ability to trigger a HomeKit Scene via a Shortcut automation, but (kind of) the other way around. I want to have a HomeKit trigger (such as motion detected) be able to trigger the Siri Intent of a 3rd party app. The 'Intruder' scene that I mention above (flashing a light) can be achieved in the Shortcuts app, but this requires the user to program it themselves, which is obviously not the majority of users. I have an app in the AppStore that can be manipulate the HomeKit lights in the home for communication purposes (flash the kids lights with "Hey Siri, Dinner Time", etc), and my #1 most requested feature is to trigger the shortcut on motion detection and button presses, but today (and in iOS 14, currently), it can't be done. The other aspect with my app is for accessibility purposes. Light manipulation can be used by those with a hearing disability, and a large percentage of this audience is older - I would like to allow this integration to be made as simply as possible, but today, it's not possible. My father is in this audience, and doesn't even know what the Shortcuts app is, much less have the patience to figure out how to flash a light with it.
Jul ’20