🐛 Critical Bug Fix
Fixed HVAC Mode Oscillation and Rapid State Changes
- ISSUE: Climate entity constantly switching between OFF/Auto/Heat modes
- ROOT CAUSE: Device state fluctuating rapidly causing HVAC mode to change every few seconds
- FIX: Added stability mechanism to prevent rapid HVAC mode changes
🔧 Stability Improvements
- Debouncing: Require 3 consecutive stable readings before mode change
- Time-based: Allow mode change after 30 seconds even if not fully stable
- User Actions: Reset stability counters after user temperature changes
- Enhanced Logging: Added stability count to debug logging
📊 What This Fixes
- ✅ Stable HVAC Mode: No more rapid switching between OFF/Auto/Heat
- ✅ User Experience: Climate entity stays in correct mode after temperature changes
- ✅ Reduced Logging: Fewer unnecessary state change logs
- ✅ Better Debugging: Enhanced logging shows stability information
🔍 Technical Details
- HVAC mode changes now require stability confirmation
- User actions reset stability counters for immediate response
- Time-based fallback prevents permanent mode lock
- Enhanced debug logging helps diagnose remaining issues
Breaking Changes: None
Migration: No action required - existing installations will automatically benefit from this fix