I've tried to make a mod for this myself for a while now, however the usual way of making modlets doesn't allow this and the way I used wasn't the best.
Essentially what I'm running into with builds is that if I want to have a powered door it can only be activated with one switch or motion...