Automations: Suggestions

The Automations page with an open suggestion

The node watches how you use your devices and how your rules behave. From that it makes suggestions for rules, measures what an adopted suggestion changed, and keeps learned values that rules can use. This page gives the overview. The details of single rules are in Single rules, the settings are in Learning features.

What the node never does

The node never changes a rule by itself. A suggestion opens the assistant or the editor, and the change only reaches a rule when you save it. Learned values are only used by a rule that you have set up to use them.

Learned values are published on MQTT as retained messages, so other systems can read them. The rule check always runs. It only reads the trigger history and writes nothing new.

The suggestions band

The suggestions band with an open suggestion

The band sits above the list on the Automations page.

  • It shows up to three suggestions side by side. +N counts the rest, up to 20 in total. Use Less to fold the list back.
  • Tap a suggestion to open it under the band. The open card shows the full evidence, the facts behind it and the buttons.
  • The small label above the title names the group: Habit, Energy, Reliability, Rule check or Effect.
  • The tag Sure means the pattern is clear. Estimate means it is likely, but the data is still thin, or it uses a borrowed value, such as last year.
  • A pill shows the season the suggestion applies to: Applies all year, the weeks from and to, or Heating below a temperature.
  • Open in assistant opens the assistant with a matching template filled in.
  • Later hides the suggestion for seven days.
  • Do not suggest again hides it for good. It does not ask first.
  • After Later or Do not suggest again, the band shows Suggestion hidden with Undo for six seconds.
  • A suggestion you adopted does not come back while its rule exists.

Until the first pattern is reliable on at least 10 days, the band reads Learning for N days from M devices and shows no suggestions. When Learn patterns is off, the band is hidden.

A rule with open findings shows a mark in its header. The popover, the fixes and Ignore are described in The mark and the popover.

Kinds of suggestions and findings

The tables give the minimum data each kind needs before it can appear.

Habits

Kind What it says Minimum data
Switch time You switch a device by hand at about the same time 10 days
Run time A device stays on much longer than usual 10 runs, two of them far too long
Follows A device is almost always switched shortly after another one 10 cases
Away standby A device keeps drawing power while nobody is home 2 days with nobody home

Energy

Kind What it says Minimum data
Base load The house needs noticeably more or less power at night 35 nights, or 14 nights with earlier years known
Battery The battery is full too early or empty at night 10 days
Surplus window The surplus covers a device on most days in a fixed window 10 days
Threshold A start threshold is too high or too low 14 days replayed
Outdoor temperature A device only heats below a certain outdoor temperature 21 days with an outdoor temperature
Run energy Duration and energy of one run of a device 8 runs
Load shift A device runs from the grid although the day had enough surplus 8 runs
Regulator The regulator of a zero feed-in scenario does not fit the plant 200 changes of the regulator
Shade A fixed shadow pulls PV power down at the same spot in the sky 5 clear days

Reliability

These kinds are switched by the Reliability switch.

Kind What it says Minimum data
Flapping Two rules keep switching a device back and forth 3 changes over at least one day
No effect A rule sends commands that change nothing 3 failed actions
Offline window A device is usually unreachable at the same time of day 14 days
Overridden You switch a device back by hand shortly after a rule did 5 cases
Competition Several rules switch on at the same surplus 3 days with a competing quarter hour
Feedback A rule switches a load that pulls the surplus below its own switch-off limit 3 days of minute values

Rule check

These checks always run.

Kind What it says Minimum data
Never triggers A rule known for 14 days has not fired in that time, and its threshold lies outside every value measured on at least 7 days 14 days, values on 7 days
Triggers very often A rule fires at least 12 times within one hour of the last 24 hours 12 triggers in one hour
Contradicts, duplicate, can never be met, device missing Problems that the rule text alone shows None, shown at once

More on learning

Performance levels

Learning costs computing time and memory. The learning level decides how much the node does and how many minute values it keeps in memory. The levels are Automatic, Economical, Balanced and Full. The minute values kept in memory cover 3 days at the economical level, 7 days at the balanced level and 14 days at the full level. The performance page describes the levels.

The Monitoring page shows the same learned values again, under Learned values.

Written for Energy Node v0.12.0.

Edit on GitHub