Okay so here is my Siri Shortcut that provides an all in one solution to get my iOS alarm synced to home assistant.
https://www.icloud.com/shortcuts/587916c45580406f976f69f02012ebd5
You’ll need to set two helpers in Home Assistant:
- An input_boolean entity that keeps track of the on/off state of your alarm. Called ‘input_boolean.wekker_jannick_status’ in my case
- An input_datetime entity that keeps track of the time of your alarm. Called ‘input_datetime. wekker_jannick’ in my case. See the docs only_time example
Then you’ll need to make sure that the names match with the ones in the Shortcut.
Lastly, I have configured some ‘Personal Automations’ in the iOS shortcut app. One that turns off the alarm status input_boolean when the alarm on the iOS device is stopped after it rang. And two personal automations that just run the ‘Alarm in HA’ shortcut whenever I close the alarm clock app or turn on don’t disturb mode (Usually when I’m going to sleep).
Here’s a demo video of the personal automations and the working of the shortcut.
If you have any questions, something is unclear or any suggestions, let me know.