I am a long time HE user and found I had "rule sprawl" with switches and locks triggering off modes. Last summer I requested that a table like interface be created where you could simply check which switches turn on/off by mode and Bruce created Mode Switches. You can read about this app in this thread.
I improved upon it adding dimmer and lock capabilities and recently added a retry since I was also having a few switches not get set. It will loop through the switches and if it is not in the appropriate state it will try it again.
This works well especially for a good night type routine. I do wish however things were a bit more stable and an "off" that is sent was actually tracked to see if the light really turned off. AKA it might be nice if this were built into the driver somehow.
@ritchierich I am unclear about something. If I select a certain lock and click the mode boxes I am expecting the lock will be locked. What if I want the lock to be unlocked?
Correct the lock will lock when mode changes to that mode.
This isn’t currently implemented. I haven’t had a need to automatically unlock the locks for a mode as I use a switch instead where say Terminix or HVAC is coming over and needs access to my crawl space. I have a switch to take care of that.
Rule Machine can meter the on/off commands. I find that 50 milliseconds works well in my rules. If that's something you want to try, it can be found under Run Custom Actions. You set the metering but don't set any parameters.