You can do this in the Event Engine app in a single instance, if you'd like to do that.
Below is a Event Engine cog description from a cog I created (using my devices, obviously) that does what you want. Either of two doors open, between sunset (-30)/sunrise (+30), light on. Both doors closed, after sunrise & before sunset, light off.
Event Engine - you can install it from Hubitat Package Manager app.