IOS 15 focus sensor


I read in the IOS app changelog about a new sensor: focus.binary.
It does not work, only states false or off on my phone.
I gave all permissions, but still not updating iphone focus status to the HA app.

Anyone noticed this?

Can you confirm that Focus Permission is enabled in the App Configuration > Sensors? This will not be prompted automatically until 2021.11 (didn’t have time to get this part done) so you’ll need to manually get permission there.

If that doesn’t work, can you confirm that Home Assistant is not in the “Allowed Apps” list for notifications? This is noted in the docs but it’s not the most obvious limitation. The system will not report focus status to the app if it is in that list. You can work around this by sending notifications that you care about as ‘time sensitive’ interruption level.

Is it possible for a future version to include the name of the focus mode which is active, even as an attribute on the existing binary sensor?

I’d like to automate my driveway gate opening/closing when I leave but it would need to know that it is in the driving focus specifically to work. I don’t want it to open when I’m walking home for instance.


Unfortunately Apple does not make accessible to the app which focus status is active.

Bummer. I was afraid of that. Hopefully that changes in the future…

You can create a Shortcuts Automation that triggers on a mode’s turning on/off and use that to call an input_boolean service to track the mode… it risks desynchronization but it seems pretty reliable so far.

1 Like

Yeah I may have to do that until a better solution reveals itself

1 Like

With iOS 16 Focus Filters, maybe something has changed here.

Relevant Apple docs: Apple Developer Documentation

Some related questions on the Apple Developer forums: Where is the Focus Status API | Apple Developer Forums

In case anyone else is trying to find a way to make this work.


Hopefully this will be allowed soon. Being able to read focus status is BIG for automations.

1 Like