Complete Smart Home Device Troubleshooting and Optimization