I agree with @neonturbo. You can combine most of your rules down to just a few. Some devices may need a couple of rules based on some weird outlier that is difficult but that shouldn't be the norm.
Here's a rule that turns off everything, locks the door, and sets the alarm once my wife and I are both in bed. There are about 200ish devices in this rule.