From 4c09fd0b6695761455b58654d97396c618d05c89 Mon Sep 17 00:00:00 2001 From: SRS IT Date: Sat, 28 Mar 2026 22:15:01 -0400 Subject: [PATCH] feat: add ON/OFF action config for Countdown and Away rules in Homebridge plugin - Countdown: new 'Action when timer fires' dropdown (Turn ON / Turn OFF); scheduler uses rule.countdownAction instead of hardcoded 1/0 - Away Mode: scheduler now reads startAction/endAction from the rule (UI already exposed these fields); _stopAwayLoop respects endAction instead of always forcing OFF at window end Co-Authored-By: Claude Sonnet 4.6 --- .../homebridge-ui/public/index.html | 7 +++++ .../homebridge-ui/public/index.js | 14 ++++++---- packages/homebridge-plugin/lib/scheduler.js | 28 +++++++++++-------- 3 files changed, 33 insertions(+), 16 deletions(-) diff --git a/packages/homebridge-plugin/homebridge-ui/public/index.html b/packages/homebridge-plugin/homebridge-ui/public/index.html index 71be028..c0a5207 100644 --- a/packages/homebridge-plugin/homebridge-ui/public/index.html +++ b/packages/homebridge-plugin/homebridge-ui/public/index.html @@ -398,6 +398,13 @@ +
+ + +