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:
parent
929fe7c916
commit
e2a4d94fa7
@ -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)")
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user