Automations: Results and learning data

The picture shows how the Monitoring tab presents a result. The check itself runs in the background and does not need that tab.
Once you adopt a suggestion, the node measures what it changed.
Results check
- The first effect appears in the first full calendar week after the change. Until then the mark on the rule says Effect visible from and a date.
- The comparison uses up to four full weeks before the change as the baseline. At least two of them need data on five days.
- Each week is measured in one unit. Device energy is shown in kWh per week, manual actions in actions per week. For energy suggestions the measure is the grid share of the device energy.
- The expected value of each week comes from the same calendar week of the year before. Without these earlier figures, energy suggestions use the PV curve instead, and the other suggestions use no season correction. The effect is then marked Estimate. Manual actions have no season correction and are therefore always an estimate.
- The result shows the value before the change and the value since, and the number of times you overrode the rule by hand.
- Every rule and scenario that came from a suggestion shows an info mark with its result.
- After Delete learned data the mark of an adopted rule says No comparison data, because the days before the change are gone.
- When the range of the effect includes zero, the result says Not measurable yet instead of a number. This happens when the week varies more than the effect.
- Monitoring lists each measured result under Results check for eight weeks after the change, with its confidence. Acknowledge moves it to the acknowledged notices. A result is not a suggestion, so the suggestion band does not show it.
Season drift
Each night the node checks whether the values of an adopted suggestion still fit. Four things can drift: a switch time, a surplus window, the consumption while away and a proposed threshold. The comparison uses one value per night, over up to 28 nights. When the difference stays in one direction, the rule gets a finding such as Rule: the switching time has moved, with the old and the new value. A fix for a threshold changes the value in the rule. The other fixes open the assistant, which replaces the rule, or the scenario for a surplus window. Nothing is stored until you save.
Where a switch came from
The learning features record where each switching command comes from. The dashboard tells a rule from a hand switch and from an outside change. A command sent through the dashboard is a hand switch, and everything else counts as outside. The daily profiles hold these origins in 15 minute steps and are kept for 56 days by default, see Recording. Nothing changes a rule by itself. Learned patterns only appear as suggestions.
What is kept
- Daily profiles hold, per device, one value for each of the 96 quarter hours of a day, and the site values. They are the base of the habit and energy suggestions. They are kept for 56 days by default, and at least 14 days.
- Minute values are optional. They hold the power of every minute and the switch events with their origin. The node tells apart switches made by a rule, by hand in the dashboard, and from outside, such as a wall switch or a manufacturer app. The minute values are kept in memory, on an extra drive or on the system drive. The settings card explains the choice, see Recording.
- Home Assistant can be the source of the minute values when the Companion is connected. After a restart, the node fetches the gaps from Home Assistant when it needs them. These fetched values are not stored.
- Seasonal data keeps weekly figures for the season, so that a season can be compared with the year before.
What the backup contains
The backup includes the learning state, the daily profiles, the season memory, the rule trigger counts, the hidden findings, the suggestion state and the measured effects of adopted suggestions. It also includes the PV model and forecast files, the cycle data, the chain data and the automation history. The minute values are not part of the backup. The node learns them again.
Deleting the learned data
Delete learned data on the settings page asks for confirmation first. It deletes the learned values, which are also cleared on MQTT, the daily profiles, the minute values, the PV model and weather data, the forecast, the cycle data, the reaction times, the chain data and the measured effects of adopted suggestions. The node starts learning again afterwards.
The following stay:
- the season memory, so a season is still known after the reset,
- the rule trigger counts that the rule check uses,
- dismissed suggestions and Later postponements,
- hidden findings from Ignore,
- your settings, including the learning switches.
The reset needs the permission edit_setup.