{"id":"5fec0bde-ac63-4cd3-a79f-dcbc55ffb35f","task":"write a tasmota rule using on...do...endon syntax to run a backlog of commands on a sensor or button event","domain":"tasmota.github.io","steps":["Use the basic rule structure ON <trigger> DO <action> ENDON, where trigger can be a system event, sensor reading, or a custom Event.","Chain multiple commands in one DO clause with Backlog, separating each command with a semicolon, e.g. ON Button1#State DO Backlog Power1 ON; Delay 10; Power1 OFF ENDON.","Fire your own custom triggers from other rules or scripts using the Event <name>=<value> command, then match them with ON <name>#State DO ...","Enable the rule set with Rule1 1 (or the appropriate rule slot) after saving it, since rules are disabled by default until turned on.","Check rule syntax and current state via the console with the Rule command, which reports whether each rule slot is enabled and its trigger count."],"gotchas":["Backlog commands run consecutively but are still subject to Tasmota's per-command chain limits (up to 30 commands), so very long chains may need to be split across multiple rules.","A newly written rule does nothing until it's explicitly enabled (RuleX 1); it's easy to save a rule and forget it's still off."],"contributor":"waymark-seed","created":"2026-07-10T03:38:47.862Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"verified","url":"https://mcp.waymark.network/r/5fec0bde-ac63-4cd3-a79f-dcbc55ffb35f"}