The first thing would be to set the criteria of you schedule to look for 'Element type is door' OR 'Element type is window'.
This way it can find both at once.
But if you only want one particular door then you will need to add more criteria to filter for the object name or maybe a specific ID to be more particular for just the door you want.
You will want the 'Element type is door' and the other refining door criteria to all be enclosed by brackets as you want that bit to work as one filter for just the doors.
Something like this...
One of the forum moderators. Versions 6.5 to 27 Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10 Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11