Event or state for when iOS device is unlocked

Is there a way using the companion app integration to determine if an iOS device is unlocked? I would like to incorporate that event or state into an automation. I read something close to this in the Actionable Notifications documentation with the “authenticationRequired:” parameter. But that also requires a button to be pressed.

The example is a somewhat more secure automation which only opens the garage door when the iOS device_tracker state changes from “not_home” to “home” when it is also “unlocked”.


Any ideas on some other way to achieve this? Seems like it would be valuable to also know if the phone is unlocked besides just in a particular zone.