Answer is.... possibly, but need to think about how to do it properly. The code doesn't currently need an on-tick handler, which means great performance with no UPS hit, but I think we'd need on-tick to check the circuit network...
Not sure if the circuit network code for lamps is in lua or in the game engine, but if it's in lua you could probably mostly copy that, it'd be pretty similar functionality.