From e2a4d94fa7650d15e969eac5a66132342103486b Mon Sep 17 00:00:00 2001 From: Mike Geppert Date: Wed, 7 Jan 2026 22:09:59 -0600 Subject: [PATCH] Fix rule enabling to use ON instead of numeric code 4 - Rule{N} 4 command doesn't work reliably to enable rules - Changed to use Rule{N} ON which works consistently - Tested on firmware 15.0.1.3 - Rule1 ON successfully enables rule - Fixes issue where rules were set but not enabled after script run --- console_settings.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/console_settings.py b/console_settings.py index 9ab28af..e146b4f 100644 --- a/console_settings.py +++ b/console_settings.py @@ -210,10 +210,9 @@ class ConsoleSettingsManager: # Wait for device to process the rule before enabling time.sleep(0.5) - # Use Rule{N} 4 to enable without setting Once flag - # Rule 1 = Enable + Once ON (WRONG - causes single-fire issue) - # Rule 4 = Enable only (CORRECT - allows repeated firing) - enable_command = f"Rule{rule_number}%204" + # Enable the rule with ON command + # Note: Rule{N} 4 doesn't work reliably, use ON instead + enable_command = f"Rule{rule_number}%20ON" self.logger.debug(f"{device_name}: Enabling rule{rule_number} (Once=OFF)")