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
This commit is contained in:
Mike Geppert 2026-01-07 22:09:59 -06:00
parent 929fe7c916
commit e2a4d94fa7

View File

@ -210,10 +210,9 @@ class ConsoleSettingsManager:
# Wait for device to process the rule before enabling # Wait for device to process the rule before enabling
time.sleep(0.5) time.sleep(0.5)
# Use Rule{N} 4 to enable without setting Once flag # Enable the rule with ON command
# Rule 1 = Enable + Once ON (WRONG - causes single-fire issue) # Note: Rule{N} 4 doesn't work reliably, use ON instead
# Rule 4 = Enable only (CORRECT - allows repeated firing) enable_command = f"Rule{rule_number}%20ON"
enable_command = f"Rule{rule_number}%204"
self.logger.debug(f"{device_name}: Enabling rule{rule_number} (Once=OFF)") self.logger.debug(f"{device_name}: Enabling rule{rule_number} (Once=OFF)")