Is it possible to create a home automation or a shortcut that pushes Siri to announce if a door i...

Is it possible to create a home automation or a shortcut that pushes Siri to announce if a door is left unlocked for more than 10 minutes on HomePods?