Triggers sometimes slow to respond, how to track down the issue?

I’m using appdaemon for pretty much everything and sometimes I’ll trigger it (like, bedtime routine) and things take a while (seconds, 2-10) to actually happen. I’m not sure if it’s AppDaemon, HA, or Zwave but it seems random and it’s a pain. I did notice that some things are instance while others (again, random) take longer. Am I putting too many things on the stack at once when I try to shut 10 things off? What’s the best way to try and debug this?