WTH IOS companion use alarm and focus for automations

Why is there no way in IOS companion to get alarm as sensor and focus name active? I would like to start automation when alarm is active or a special focus is activated or disabled. Or use it as conditions also.

You can use the Apple Shortcuts app for that

@Pippyn how do you write them? I tried creating a personal automation and run a service in home assistant. But I can not get it working. Looks like this

It’s all in the docs:

Hook your alarm clock to HA. (iOS only for now) free & paid might be a good start