Run iOS Shortcut

Hi there,

how to trigger an iOS Shortcut using homey? I want to set my alarm etc. when pressing a hue tap button.

With a virtual device:
In Homey when hue tap is tapped (on) set virtual device on
In homekit when virtual device is on do ios shortcut.

So I have to use HomeKit? Do I need a homebridge?

No, look here…

I want to do it the other way around. Triggering a shortcut from homey. Not triggering homey from shortcut

Any ideas?

I use the Email Sender app to send an email in my flow to my own email address. In Apple Shortcuts, I set up a personal automation to start a shortcut when I receive an email.

Thanks for this idea. I tried it and the test worked well but using the app in flows no mail arrives. Even a restart didn’t work. Tried also different mails and settings

Can you send a screenshot of the flow? I have no problems with it.

Interesting method! I was looking into starting iOS shortcuts from homey too, to be able to launch a specific Apple TV app + light scene set in homey upon talking to my google home hub (yes, its a bit of a process; google home triggers homey flow, homey flow triggers iOS shortcut that activates an Apple TV app) since I don’t have an apple HomePod. This method adds an email to that flow, but it sounds like it should manage exactly what I need it to!
Thanks!

@Hamzty, maybe this thread has some tips for you.
It has similarities with your question and maybe a few solutions you can adopt.
Please read the whole thread to understand what solution they’re trying to solve.

For anyone else finding this thread looking for inspiration, I have yet another approach working. It relies on having an iOS device permanently powered and unlocked at home but I have an old iPad mini I use as a dashboard which fits the bill.

I have the charger of the iPad plugged in via a smart plug which is left switched on. When I want to trigger a shortcut from Homey I power the smart plug off and on again a second later. Then I can use a personal automation on the iPad triggered by the phone being taken off the charger.

Since this allows one shortcut to be run, I then have that shortcut call back to Homey via a local API call using the Local API app to request the name of the shortcut to run. This is passed back on response to the API call and the first shortcut then launched the ‘target’ one as instructed.

It sounds like a lot but the whole process takes well under 2 seconds so is perfectly fine for many use cases. It also has the advantage of no cloud dependency, no extra app etc which in my experience were the two biggest causes of failures when I used to use Pushcut.io to achieve the same thing.

i use a separate email inbox which triggers a shortcut. i have several older ipads 8th gen, running ios 26 (ios27 might not be possible) which are used as dashboard on different locations. the ipad is running and unlocked. after investigations:

-homekit does not work , as these automations run on a homekit hub, so it has no access to local ipad shortcuts

-charging on/off trigger does work, but you can only control 2 shortcuts

-message does work, but with ipad you cannot send sms (which homey has a good app for), but only imessage. no app for that

-pushcut. it works, but only if younhave the automation server option which also need a pro option which linked to a subscription (not exactly cheap)

-email. now that works but not with all email providers. yahoo and icloud does not work, no shortcut is triggered when using these. i did not test gmail. what works is outlook.com. on the ipad, set mailbox in push mode as well

for all my dashboard ipads, a separate icloud account is created using this outlook mailbox . not required but i would like these in a separate security domain, especially as they are always running and unlocked. when the charge cable is disconnected or it gets a secure command from homey, a shortcut is executed to go to lock screen.

now when an email is send to this mailbox, the subject field contains a code for the selected ipad and command : like. ip1-openhomey. ->the shortcut automation on ipad1 then opens the homeyapp in kiosk mode. ip2-openhass. will open home assistant on ipad2. etc. i use mqtt,ha and homey dashboards which can be opened by sending the correct email.

there are 2 security layers, the outlook account only accepts emails from 1 source else it becomes junk, the shortcut automation only triggers on a certain ‘from’ account.

this all works. with an older ipad8, it takes 5 seconds between sending the email and executing the shortcut.

i am looking now at the email handler shortcut, this reads the email body for additional data to pass on to a shortcut, like message text, audio to play etc

sending emails from homey

there is only 1 app, but i did not get it to work yet. i use mailgun free account. it accepts smtp and api (useful in homeyscript). for now i use ha to send email upon webhook trigger from homey.