A welcome colour flashes for a moment, then disappears
Symptom: a None rule sets the colour light at power-on, but you barely see it.
Cause: a stronger rule, often a Timer or Forever rule, uses the same light and takes it over.
Fix: give the one-off rule a part nobody else uses, such as the screen, or move the stronger rule's colour step later.
Two rules make an output flicker
Symptom: the buzzer or light switches on and off in a random-looking pattern.
Cause: two rules of the same loop mode drive the same part. Same-mode rules have no winner, so each one writes in turn.
Fix: give each part one owner per mode, or merge the two rules into one rule with more steps. Lesson 22 shows how one rule can drive several outputs in order.
The fan stays on after the room cools down
Symptom: the Condition rule stopped, but the relay is still on.
Cause: when a Condition turns false, the rule finishes its round and stops. It leaves every output the way its last step set it. It does not undo anything.
Fix: add an off step at the end of the rule, or add a second Condition rule, like Cool again in the worked example.
A rule reacts late, or misses a quick event
Symptom: you wave at the distance sensor and nothing happens.
Cause: rules read the once-a-second sensor snapshot, and a Condition must stay true for 0.3 seconds before the rule starts. An event shorter than that can slip between readings.
Fix: design for slow changes, such as light, temperature or soil, or hold the test for longer. For fast events, write your own sketch.
If you teach this in a classroom, the flow is the same as in the free lessons: plan the logic as a flowchart in Lesson 20, meet the rule engine in Lesson 21, then build up from one rule to several. The MakerBuddy page for teachers shows how the kit and the free lessons fit a class. More guides like this one are on the MakerBuddy blog, and our upcoming explainer on how IoT works, from sensors to dashboards and rules puts the rule engine into the bigger picture.