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...
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11