feat: event-trigger run logs live value on no-change
Diagnosis aid: when a rule evaluates but doesn't fire, run now prints 'OK: <cmd> = <value> (no change)' so a rule that silently never crosses its threshold (e.g. wrong sensor in the check command) is visible instead of just 'evaluated N rule(s)'.
This commit is contained in:
@@ -94,6 +94,8 @@ run_rules() {
|
||||
fi
|
||||
elif [ "$DRY_RUN" -eq 1 ]; then
|
||||
log "(dry-run) OK: $RULE_CMD = $VALUE_DISPLAY (no change)"
|
||||
else
|
||||
log "OK: $RULE_CMD = $VALUE_DISPLAY (no change)"
|
||||
fi
|
||||
done
|
||||
if [ "$skipped" -gt 0 ]; then
|
||||
|
||||
Reference in New Issue
Block a user