Hi
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?
Hi
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.
Yeah I may have to do that until a better solution reveals itself
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.
Any updates on being able to get the Focus mode name? Anything in the upcoming 2023 OS releases that enable this?
Also really hoping we get focus mode names
I donāt know if itās still an issue for you, but I found a way to get the focus status updated.
In the iOS settings under Focus ā Focus Status you have to activate the sharing of the status and (thatās what made it work for me) the sharing of āDo not Disturbā.
Now home assistant updates the focus status normally.
I have found that the only focus mode that reports to the HA app focus sensor is the do not disturb focus non of the custom ones or sleep focus report in a way that triggers the sensor
Where do I go in the Home Assistant app to see the focus mode status and name?
When any of the focus modes is activated, HA focus sensor goes on. Iāve tested it on my iPhone 14, and this sensor goes on even when Iām driving.
It would be nice if HA developers add mode name as an attribute to this sensor, for example binary_sensor.iphone_14_edison_focus: on attr_mode: driving, sleeping, working or whatever name of a custom focus mode.
Only status, currently there is no āmode nameā attribute for this sensor