Settings: Learning features

The Learning features page

The page Learning features under Settings.

The learning features turn the behaviour of your devices into suggestions for chains and into learned values for rules. They never change a rule or a chain on their own. Each feature has its own switch, and the page has four cards.

Chains

Suggestions searches the power values for devices that measure the same thing and suggests chains. Learn values learns the normal loss of each measurement chain, see Efficiency. When you switch it off, the values learned so far stay, and the warnings rely on them alone.

Automations

Learn patterns learns the switching times, the run times, the use per role and the energy flows. When you switch it off, the learned values stay at their last state, so a rule falls back to its default value after 7 days.

Location missing appears on this page while Learn patterns is on and no location is set. Without a location the patterns have no sun times. Enter location opens the automation settings. Meanwhile the node learns neither the best PV curve nor the PV reserve, the remaining surplus or shade. For a plant with a PV role the Monitoring page asks for the location too.

Outdoor temperature takes a temperature sensor. The node stores its value in the daily profiles and uses it for the heating season, see Outdoor temperature and heating season.

Under Fine-tuning, two switches sit above Exclude devices. They only appear while Learn patterns is on, and each works on its own.

  • Habits turns the suggestions for switching times, run times and devices that follow another device on or off.
  • Reliability turns the reliability checks of the rule check on or off: flapping, no effect, overridden, runs while offline, feedback and competition.

Exclude devices opens a picker for the devices that the learning leaves out. Allow all removes every exclusion. The trigger and value checks of the rule check always run. They only read the trigger history and write nothing new, so they have no switch.

Recording

The Recording card of the learning features

Keep profiles sets how many days of daily profiles stay, from 14 to 365 days. The default is 56 days. Chains and automations share one recording, and each value is written only once. The card shows the memory in use and how much is written per day.

Seasonal data for a whole year keeps the PV sun course for a year, also when the profiles are kept for a shorter time. The rule check needs it to tell from which calendar week a PV threshold is reached again. When it is off, the sun course stays as long as the profiles. In the first year, while the summer sun is still missing, a PV threshold is never reported as Never triggers.

Record minute values is on by default. The node keeps the power of each device and the grid balance for every minute. The chain suggestions use this record. After a restart they catch up on the minutes they missed, if the record is kept on the drive or the system drive. Switch it off and the node stops recording minutes.

The recording has three modes. Always records every minute. Pause while Home Assistant delivers stops the own recording as long as the companion offers minute values from Home Assistant, and starts it again within a minute when the companion disconnects. It needs a paired companion, so the row stays greyed out without one. Off records nothing. With an extra drive the node records always. Without a drive but with a paired companion it pauses while Home Assistant delivers. A mode you choose yourself is never changed.

Reconcile with Home Assistant is on by default and shows only with a paired companion. Before the heavy nightly calculations the node asks Home Assistant for the last days that its own recording does not cover without a gap. These values live in memory for the calculation and are never written to a drive. A result that rests on five minute values from Home Assistant counts as an estimate at most.

Where minute values are kept chooses the place:

  • Memory keeps the minutes in RAM, for up to 3 days on the economical level and up to 14 days on the full level. They are lost on restart, so the node cannot catch up from memory.
  • Extra drive keeps the minutes on the drive. It is the recommended place once a drive is set up. The row shows the free space of the drive.
  • System drive keeps the minutes on the SD card of the node. It writes about the amount shown on the row each day, so it is never the default.

Without an extra drive the node records in memory. With a drive, the node records on the drive. When you set up a drive while the place is on automatic, the recording moves there by itself, and the page shows the note An extra drive is set up. Minute values are now kept there. with the button Keep. A place you chose yourself is never changed.

If the drive fails, the recording goes on in memory and the row says Drive not available, still recording in memory. When the drive comes back, the missing minutes are added, so the day has no gap and no minute twice.

Keep minute values sets how many days stay on the drive or the system drive, from 1 to 365 days. The default is 60 days. Minute values are large and the node can learn them again, so they are not part of a backup. Delete learned data removes them too.

Delete learned data asks for confirmation first. It deletes the learned values and the data behind them, the day profiles and the minute values among them. Dismissed suggestions, ignored hints and the counters of the rule check stay. The full list is in Deleting the learned data.

New features

When an update switches a learning feature on for the first time, the page shows a hint with the new features, and the menu entry and each new feature carry the pill newly on. On a fresh installation the hint says that the node learns from the start. Keep all confirms the features and removes the pills. Single features can still be switched off on the page.

Written for Energy Node v0.12.0.

Edit on GitHub