Troublshooting responsiveness issues

I finally set up my home assistant automation on a Raspberry Pi 3 with WiFi tasmota switches. Everything works nicely but I am noticing inconsistent response times. For example, if I switch a light it might take up sometimes up to 5 seconds to respond, but if I switch it again repeatedly eventually the switch becomes immediate. I am wondering what could be the cause of this delay. Is there a way to troubleshoot it?

On an related note, where can I find time-stamped detailed logs of all actions/events taken/observed by Home Assistant?

Just signed up to post a very similar issue :slight_smile:

Pi3 with Hue and Shelly integrations here and both systems respond significantly more inconsistent when compared with a direct connection / native app. Disabling the recorder improves the overall response time for me but there still are some weird outliers.