Performance Improvement: Query both devices simultaneously
Changes:
- Added ThreadPoolExecutor to device_diff.py compare_devices()
- Both devices are now queried in parallel (max 2 workers)
- Each device queries ~150+ SetOptions independently
- Roughly 2x faster than sequential queries
Before: ~30 seconds (sequential)
After: ~15 seconds (parallel)
The parallel approach significantly improves user experience when comparing
devices, especially when querying all SetOptions (0-150) and Rules.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
New Feature: Device configuration comparison tool for diagnostics
Usage:
python TasmotaManager.py --diff DEVICE1 DEVICE2
Features:
- Queries all SetOptions (0-150) from both devices
- Compares firmware versions, network config, MQTT settings
- Shows Rule configurations and status
- Displays all differences in human-readable format
- Helps diagnose configuration issues between working/non-working devices
Files Added:
- device_diff.py: New DeviceComparison class with full status queries
Files Modified:
- TasmotaManager.py: Added --diff argument and comparison mode handler
Example:
python TasmotaManager.py --diff KitchenMain KitchenBar
This tool revealed that KitchenMain (working) and KitchenBar (problematic)
have significant SetOption differences including SetOption32, SetOption40,
and others that may affect button press behavior.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>