Simple automation rules doesn't work properly when controlling large number of devices

Sure, no problem. I'm baking a bunch of stuff for the holiday weekend today; I'll do the debug tracing when I have some free time and clean hands!