Is it possible to Inhibit auto lock if door sensor detects that the door is open?

Please seach the forum. There are several discussions around this and a feature request which you should vote for if you want to increase its priority: