I know a day/night sensor, but is for vanila, and is enormus... And we want to use mods and compact-ness
So no idea, sorry.
Edit: maybe use a solar panel conected to a batbox that outputs redstone signal when has power (and connect the batbox to... I dont know, maybe a mass fabricator?)