v1.4.1: The Automation & Reliability Update
This point release addresses a critical bug in local timer validation and significantly expands the MQTT event system for better automation control.
🚀 New Features
- Expanded MQTT Events: The card now publishes specific events for cancelled, paused, resumed, and snoozed (in addition to started and expired). This allows for precise automation triggers based on any user interaction with the timer.
- Enhanced Event Payloads: MQTT event payloads now include remaining time and duration (in milliseconds) at the time of the event, enabling more complex logic in Home Assistant.
🐛 Bug Fixes
- Fixed Local Storage Timers: Resolved a logic error in the validation engine (_validateStoredTimerData) that was incorrectly rejecting valid timer IDs. This fix restores the ability to start timers using browser storage, presets, and the custom selector.
- State Sync Fix: Improved UI responsiveness by triggering immediate state updates when timers are paused, resumed, or cancelled, ensuring the visual state stays in sync with the underlying storage.
✨ Improvements
- MQTT Consistency: Optimized the event publishing logic to ensure events are sent regardless of whether the storage is set to local or mqtt, provided a default MQTT entity is configured.