{# R14 (Hani #1 2026-10-24): the log rules that watch this device or ecosystem, and what they did here. #} {% set R = scoped_rules %}

Log rules

If-then rules on the logs that watch {{ rules_scope_label }}: the rules made for it here, and the rules for {{ 'its ecosystem and ' if rules_scope == 'device' else '' }}all devices. Each rule acts by itself (a notice, an e-mail, watching or blocking an address) when its condition is met.

{% if rules_can_edit %}New rule for {{ rules_scope_label }}{% endif %}
{% if rule_done %}
{{ rule_done }}
{% endif %} {% if R.rules %}
{% for r in R.rules %}{% endfor %}
RuleWatchesIf … thenStateFired here
{% if rules_can_edit %}{{ r.name }}{% else %}{{ r.name }}{% endif %}{{ r.applies }}{{ r.describe.if }}
→ {{ r.describe.then or 'nothing' }}
{{ 'On' if r.enabled else 'Off' }}{{ r.here }}{% if r.here_last %} last {{ r.here_last[:16]|replace('T', ' ') }}{% endif %}
{% else %}

No log rule watches {{ rules_scope_label }} yet.

{% endif %} {% if R.events %}
What the rules did here ({{ R.events|length }} most recent)
{% endif %}