I want to run a Home Assistant script AND run an iOS shortcut when this button is pressed. I’ve searched the forums and it looks like this was something someone was working on but never finished. One often suggested solution is to run it as a script, but I don’t think a HA script car trigger an iOS shortcut.
Here is what I want to do:
Run the HA script.
Run the iOS shortcut, which is on the device that tapped the button.
Any way I can do both? Or some clever workaround? I’m trying to improve the Wife Approval Factor here, so I really want this to work!
But how can a Home Assistant automation trigger an iOS shortcut? I think that’s the main problem I’m dealing with, I’m wanting to trigger two different systems, in one sense. Unless an automation can open an URL on a Home Assistant device?
Actually, I should probably look into making the iOS shortcut trigger the script in Home Assistant.
Just thinking through that helped. Here is the solution, if anyone finds this later:
Make an iOS shortcut that looks like the following. Important note: the data after action can’t have spaces and may need to be all caps. The spaces screwed me up for awhile.
Like the YAML? Here is mine, I have it has part of a vertical and horizontal stack with some speakers for the whole-house audio. This is only the first horizontal stack of buttons.