🔧 Critical Fix: v0.3.3 - Instant Switch Updates
Fixes the annoying issue where toggling switches didn't update the UI!
🐛 Bug Fixed
Problem: Toggling AC/DC switches sent the command successfully, but the UI still showed the old state until the next scheduled refresh (up to 10 minutes later).
Solution: Implemented optimistic UI updates for instant feedback.
✨ How It Works Now
- You toggle a switch → UI updates instantly ⚡
- Command sent to device → Happens in background
- If successful → Coordinator refreshes to confirm actual state
- If failed → UI automatically reverts + shows error notification
🎯 User Experience
Before:
- Toggle switch
- UI shows old state
- Wait up to 10 minutes for UI to update 😤
After:
- Toggle switch
- UI updates immediately ✨
- Confirmed by device within seconds
- Auto-reverts if command fails
📦 Upgrade
This is a critical UX fix - highly recommended!
Via HACS:
- Update to v0.3.3
- Reload integration
Via Manual:
- Download and extract
- Copy to
custom_components/pecron - Restart Home Assistant
Full Changelog: https://github.com/jsight/ha-pecron/blob/main/CHANGELOG.md
Enjoy responsive switches! 🎉