سجل إصدارات Dibby Wemo Manager
كل الإصدارات المتابعة من المصدر الرسمي مع سجل التغييرات والملفات.
إصدارات 2026
-
## Fix: countdown rules ignored their day-of-week selection **Symptom:** a countdown rule configured for specific days (e.g. weekdays only) started its countdown on *every* day. The day chips in the rule editor were saved correctly and displayed correctly — the scheduler simply never read them for countdown rules. ### The bug The countdown evaluator gated on exactly two things: whether the device was in the configured trigger state (`on_to_off` / `off_to_on`), and the optional active window. The `rule.days` array — already honoured by the Schedule and Away paths — was never consulted. All three scheduler implementations carried the same omission, and all three are fixed: | Surface | File | |---|---| | Homebridge plugin / Docker / Synology | `packages/homebridge-plugin/lib/scheduler.js` | | Desktop app (Windows / macOS / Linux) | `apps/desktop/src/main/scheduler.js` | | Home Assistant integration | `custom_components/dibby_wemo/scheduler.py` | ### The fix - Each evaluator now computes the effective day and requires it to be present in `rule.days`, converting through the existing `jsToWemoDayId()` (JS) / `_py_to_wemo_day()` (Python) helpers. - The midnight-crossing flag is hoisted out of the window block so the day check can use it. - **A window that crosses midnight is attributed to the day it started on.** For a 22:00 → 06:00 window, an evaluation at 01:30 rolls back to the previous weekday before the day test. A "Friday" rule therefore covers Fri 22:00 → Sat 06:00, which is what the rule editor implies and what the Schedule path already did. - A day miss is handled identically to a window miss: any pending countdown timer for that rule is cleared and the rule is skipped. ### Not changed Rules with **no days selected** keep running every day. The rule editor deliberately exempts Countdown from the "select at least one day" requirement, so an empty `days` array means *every day* — existing all-days countdown rules behave exactly as before. Schedule, Away, AlwaysOn and Trigger rules are untouched. ### Affected packages All monorepo packages bumped to **2.0.41** in unified versioning. ### Upgrade - **Homebridge:** `npm install -g homebridge-dibby-wemo@2.0.41` → restart Homebridge. - **Desktop:** download the 2.0.41 installer for your platform. - **Home Assistant:** HACS → update Dibby Wemo to 2.0.41 → restart Home Assistant. - **Synology Container Manager / Docker:** Stop → Build → Start (`:latest` now points at 2.0.41). - **Synology `.spk`:** download the new `.spk` for your arch → Package Center → Manual Install.