Automations: What the node learns

The picture shows how the Monitoring tab presents the learned values. Rules and the learning itself do not depend on that tab.
What the node learns from your devices and your house, and where the values come from. How rules use them is on Learned values.
What is learned
- the usual switch on time, the usual switch off time and the usual runtime of each device,
- the start of the day and the night rest of the house, without the power of devices that a rule switched on,
- the house state, House is active or House is quiet, from the consumption of the last hours,
- the typical operating power and the typical cycle energy of a device, once it has run at least 8 cycles,
- the PV reserve and the surplus left today, from the solar system.
The learned values follow the Learn patterns switch and the Habits switch in the learning settings. With Learn patterns off, the values stay at their last state, and rules that use them fall back to their fallback after 7 days.
Seasons and the sun
The node keeps a season memory. It holds weekly figures per calendar week for three years, in the data directory and in the backup. When the memory is empty, for example after an update to this version, the node fills the past weeks once from the energy statistics. A week with fewer than four days of data does not count.
The sun needs a location in the automation settings. Without one, the node learns neither the best PV curve nor the PV reserve, the remaining surplus or shade. While Learn patterns is on, it shows the hint Location missing on the learning features page, and for a plant with a PV role also on the Monitoring page. The sun times are then not used, and every switching time stays a clock time.
Switch times can follow the clock or the sun. A habit that follows sunset or sunrise is suggested as a sun habit. Its time window starts at the event plus the offset and lasts 5 minutes. When the sun times barely moved over the learning period, around the solstices for example, the two cannot be told apart, and the clock applies. The season check runs again later and then decides. Clock habits use local time, so the change to summer time does not move them.
Overridden shows two sun features, the sun elevation and the minutes to sunset, when they explain why a rule was overridden. The suggested fix adds a sun time condition to the rule.
Outdoor temperature and heating season
Set the outdoor temperature on the learning features page. Only temperature sensors can be chosen. The node writes the average of each 15 minutes into the daily profiles. Days without a value are left out of the temperature model.
When the energy use of a device rises as the outdoor temperature falls, the node finds the temperature below which the rise starts. This is the knee. If the knee is found, the season Heating season, below X °C applies to the findings that depend on it. Such a finding rests while the average outdoor temperature of the last 3 days stays above the knee.
The suggestion only below X °C adds an outdoor temperature condition to a rule. It only runs when the outdoor temperature is below the knee. The suggestion appears when the device uses clearly more energy in cold weeks than in warm ones.
Energy learned values
The node also learns from the energy side of your house. These values are numbers with a unit, and they can be used wherever a number takes a learned value.
- Typical operating power of a device, in W. The node watches when a device runs a cycle, for example a washing machine. A cycle starts when the power stays above a limit for two minutes and ends after a pause. The value is the usual power while the device works, rounded to 10 W.
- Typical cycle energy of a device, in Wh, rounded to 10 Wh. A device with several programs gets the value of the program it runs most often. The other programs are listed in the origin line of the value.
- PV reserve, in W. It is the power the solar system could deliver right now and does not, for example because a regulator holds it back. The node learns what the system can deliver on a clear sky from the few moments when it ran unthrottled, and scales that with the weather of the day. A load that switches on and is covered by the solar power counts as a measurement too. Without a recent measurement the weather factor returns to a usual value. Once 60 measured minutes exist within 28 days, that is their median. The value prefers to promise too little. Without an unthrottled moment for two hours it is halved and marked Estimate.
- Surplus left today, in Wh. It is the solar energy that the house will not use for the rest of the day. The node looks for the days that behaved like today so far and reports an amount that was reached on three of four of them. A nightly check compares the forecast with what happened. When the forecast is not better than a plain seasonal median over 14 days, the median is published and marked Estimate.
A value marked Estimate is a guess, not a measurement. The rule editor shows the mark next to the current value.
The assistants use the typical operating power too. When you choose a device in the template for surplus switching or surplus charging, the switch on threshold starts at the operating power plus 100 W, rounded up to 100 W.
Shade on the PV curve
If the solar system is shaded by a tree or a building at the same place in the sky on many clear days, the node reports A fixed shadow is pulling down PV power. The note names the time of day, the weeks of the year and a rough yearly loss in kWh, and it draws the day curve with the best possible curve dashed. It is only information and has no fix. In the shaded part of the sky the best possible curve follows the measured power, so the PV reserve and the surplus values leave the shade out. When the shade disappears, the next check removes it again.
The learned PV model needs the location of the house, see the learning features.
Away suggestion
The suggestions band can suggest switching off a device while the house is away. It only suggests switchable devices whose mean energy on the absence days is above 0.2 kWh and below half of their mean on the other days. Devices that run all the time, such as fridges, are left out, because switching them off would do harm.