Even well-built automations can have issues. Here's how to diagnose and fix the most common problems.