Automations: Rule check

The rule check reads all rules and reports findings where a rule cannot work as you probably intend. It runs on the dashboard and never changes a rule by itself. Only you change a rule, in the editor, and it takes effect when you save the document as usual.
What is checked
The check reports eleven kinds of findings. Each one names the rules involved.
| Finding | What it means | Based on |
|---|---|---|
| Competes with a regulator | The rule publishes to the topic of an enabled scenario regulator, so the device gets two commands in turn. | Rules and scenarios |
| Contradicts another rule | Two rules send different commands to the same topic, and their conditions are the same or can apply at the same time. | Rules |
| Duplicate | Two rules do exactly the same. One of the two is enough. | Rules |
| Can never be met | The conditions rule each other out, for example above 500 W and below 300 W on the same value. | Rules |
| Device missing | The rule uses an entity that is no longer in the device registry. | Rules and registry |
| Triggers very often | The rule fired at least 12 times within one hour of the last 24 hours. | Observed triggers |
| Never triggers | An enabled rule known for 14 days did not fire in that time, and its value, seen on at least 7 days, never reached the threshold. | Observed triggers and values |
| Flapping | Two rules switch the same device back and forth faster than the device tolerates. | Rules and observed switching |
| No effect | A rule sends its command, but the device does not change in several cases. | Rules and observed switching |
| Often overridden | The device is switched back by hand or from outside soon after the rule switched it. | Rules and observed switching |
| Runs while offline | The start of the rule’s time window falls into the usual offline time of the device. | Rules and observed switching |
A contradiction between rules with the same conditions is a fault. When the rules only overlap, it is a warning, because they may never actually meet there. The check compares thresholds on the same value and time windows with their weekdays. All other conditions count as open. Rules with a learned value are not compared.
Never triggers suggests the value that was reached on three of the last 14 days. Thresholds on the energy balance are rounded to 50 W, all other thresholds to two significant digits.
A threshold that was reached in earlier months of the last year does not count as a fault. Such a rule gets the note Resting for the season instead, which is only information and has no fix.
The observed checks need data. A new installation has no history yet, so Triggers very often, Never triggers and the reliability checks stay silent until enough is recorded. The reliability checks need:
- Flapping: three changes between the two rules, over at least one day.
- No effect: three commands without effect.
- Often overridden: five switches set back within the time limit.
- Runs while offline: 14 days of data.
The check lists at most 20 findings, the most severe first.
Fixes of the reliability findings
The four reliability findings follow the Reliability switch in the learning settings. With the switch off they do not appear.
- Flapping offers Set a minimum runtime. It sets the hold time of the first condition of the rule that switches the device off. The hold time is the longer of the device’s minimum runtime and three times the switching period. The minimum runtime is 10 minutes for a heat pump, 3 minutes for a wallbox, 2 minutes for other switchable devices and none for lights.
- No effect reads the cause from the failed commands. When the device could not be reached at those times, or the failures bunch up at one time of day, only Open rule is offered. When the failures are spread over the day, Merge as a repeat sets a repeat every 60 seconds, so the command is sent again while the rule’s conditions hold.
- Often overridden offers Add a condition when a time of day, a day type, the house load or the surplus separates the switches that were set back from the accepted ones. Otherwise it offers Shift the time window, which moves the start of the window to the usual time of the switch back.
- Runs while offline offers Move before the outage. It moves the start of the time window 5 minutes before the usual offline time of the device.
Each fix changes only the draft in the browser, as described above.
Energy findings
These findings use the operating power of a device and the learned values of the house. They are shown as soon as the data is there. None of them adds a load.
- Feedback: A rule switches on a load whose own power pushes the surplus below the switch-off threshold, so the rule turns itself off again. The finding shows the thresholds as a scale and offers Widen the thresholds for both rules in one step. It needs the learned operating power of the device and follows the Reliability switch. Flapping names feedback as the cause when the changes coincide with the power step of the load.
- Competition: Two or more rules start in the same quarter hour on the same surplus, and the grid supplies power afterwards. The finding shows a staircase of thresholds, one step per rule. A step that is rarely reached in the recent weeks is marked as resting. Stagger the thresholds applies the staircase to all rules at once.
- Resting for the season until week n: A PV threshold that the learned PV curve reaches again in a later calendar week shows that week. A threshold the plant never reaches stays Never triggers.
- Base load rises: The night load of the house stays higher than expected for several weeks. With an outdoor temperature sensor the expectation follows the temperature when the night load depends on it, so the start of the heating season is not reported. A real rise that comes together with falling temperatures can then stay hidden. The finding names a device that explains at least half of the rise and, for a switchable device, offers the template Off at night. Without a switchable device the finding appears as a notice on the Monitoring page.
- Battery full early: The battery reaches 97 % before the sun is highest, on most of the last days. This is information only and appears as a notice on the Monitoring page.
- Battery empty before morning: The battery is empty before sunrise, and it was not just as empty in the same weeks of the year before. The finding names the devices that use most of the missing night energy. It needs a record of the year before and stays silent until the node has collected it. With a switchable device it offers Off at night, without one it appears as a notice on the Monitoring page.
The template Off at night switches a device off from the usual night rest to the usual start of the day. Without learned values it uses 23:00 to 06:00.
The mark and the popover

A rule with open findings shows a mark at its head, labelled Show the finding for this rule. A click opens a popover with:
- the cause, as a title and a sentence, with the facts behind it,
- a before and after graphic that shows the recorded triggers or values next to the threshold, where the finding has such evidence,
- one or two prepared fixes as buttons, for example Hysteresis 100 W, Cooldown 10 minutes, Threshold to 350 or Turn this rule off. A finding without a prepared fix offers Open rule only.
A fix changes only the draft in the browser. It opens the rule in the editor, and the change reaches the device when you save the document, as with any other edit. The system never saves a fix on its own.
Ignoring a finding
Ignore hides a finding. The page then shows Finding hidden with an undo button, which shows the finding again. Hidden findings stay hidden after a reload. A finding of a rule that no longer exists is removed from the list of hidden findings automatically. Ignoring needs the automations role.
The dot on the Automations tab
While findings are open, the Automations tab shows a dot. The dot goes away when no open finding is left, either because you fixed the rules or because you ignored the findings.
Where the data is stored
The check keeps its observations in <dataDir>/autolearn/checks.json and the
hidden findings in <dataDir>/autolearn/ignored.json. Both files belong to the
history part of a backup. The endpoints are described in the
dashboard API.