Taking action based on native Home Assistant Notification (not mobile app notifications)

Is there a method to evaluate the in-app notifications Home Assistant generates and take action based on the result? My Subaru lock command fails pretty regularly. This is not a Home Assistant issue, it fails regularly with the MySubaru native app, Apple Shortcuts, etc. What I would like to do is evaluate the negative response and then send the lock command again. Is this possible?

See attached screenshot.

**This is not a question about actionable notifications on iOS or Android devices.
Screenshot 2024-10-02 at 10.43.12 AM