Lately I’ve been busy figuring out how to make Siri work for activating Homey flows. I think that’s the quickest way for me to activate flows. For me as a total noob it was quite hard to figure it out, so I thought maybe a tutorial would help other people to make it work.
Create a Shortcut on your Shortcuts App, using https://123456789.connect.athom.com/api/app/com.internet/testbericht/12345 in which 123456789 is your CloudId, testbericht is the link to the Flow in your Homey and 12345 are the variables (not necessary to use).
You can use the sliders at the right to record a phrase for Siri. For example: “Time to go to bed” (or whatever). You can give the Shortcut a title at your desire.
Create a Flow which starts with the following (If) and executes your desired flow (Then):
Thanks for the tutorial!
I’m also trying to get this to work since I’m on 2.0.
If I try everything the same as you describe I get the following message:
This is a very interesting tutorial and it works like charm. Thanks for sharing this. I learn a lot this way as homey newbie.
Just a small concern.
Disabling AUTHORIZATION ON API is not something I like to do because I cannot oversee the implications of possible unauthorized calls.
Unfortunately the whitelist functionality does not work in R2.0.
Or maybe I am just to paranoid.
What are your thoughts on this?
I’m a newbie as well so unfortunately I can’t help you with that question.
I was lucky to get it working so I thought it might prove helpful for others. Unfortunately I can’t comment with possible arguments regarding the whitelist feature, because I don’t know what it does exactly…
I assume that the whitelist does the following: unauthorized calls are possible from listed, trusted IP addresses while the “require authorization checkbox from API” remains checked. The setting will block all other calls from other IP addresses.
This whitelist option sounds safer than unchecking “require authorization” although I have no idea how unsafe it is to possibly accept calls from others without authorization.
I will leave the checkbox unchecked for now because I really like the Siri Shortcuts functionality but I hope the whitelist functionality will be restored in the near future.
It is. However, v2.0 removed the functionality to access the origin IP-address of requests, which is what’s required to implement the whitelisting feature.
Now I wonder if it is also possible to start a timer on the iPhone from a flow in Homey. Have already tried a few things but do not get out of it yet?!
I don’t think it’s possible: automations in Homekit can be created based on the state of a device changing (“lamp X turned on”), but you can’t create timers from Homekit automations (from what I can see).
You can create timers from the Shortcuts app, but you can’t base those on Homekit “triggers” (like the above-mentioned “lamp X turned on”). And I can’t find any other possible triggers for Shortcuts that are useful (although possibly, there might be third-party apps that can provide such triggers, will have to search for those).
Just starting a timer might can be worked around by creating virtual devices and using timers; then pushing that VD to HomeKit and create a Siri-Shortcut for it.
Didn’t have the time yet to create all flows in v2 reliable as the export to Homekit just makes sense to do it at the end, but then I’ll be setting up Siri phrases for flows (already works btw with Heimdall, when I tell Siri “Hey Siri, pass aufs Haus auf” she activates the surveillance mode. If she wants to.)
Well Joep, I was trying to get everything like you did explain above. Thanks for that. However now I found this HomeyKit app…and everything works with Siri and Apples Home App. This is a lot easier (for me). Thanks for your tutorial anyway. https://apps.athom.com/app/com.swttt.homekit