Skip to content
Jupiter documentation
Menu

Read the forecast

Read the minutes, energy and cost to the target, the forecast status, and how long the room model takes to learn.

Forecast sensors#

The forecast answers one question: with the AC running at its usual power, when does the room reach the cool threshold? While the room heats or dries, the same sensors show the heating or the drying forecast. See Heating and drying.

With control off, the forecast aims at the AC's own setpoint. With control on, it aims at the cool threshold of the preset in use.

Status values#

How long learning takes#

HVAC Horizon takes a reading every 5 minutes. The first room model needs all of these:

  1. 36 readings with the AC on and 36 with it off: 3 hours of each.
  2. 3 separate AC runs.
  3. An outdoor minus room difference that varies by at least 1 K.
  4. AC power that varies by at least 0.05 kW.

The model refits every 12 readings, about once an hour. The store keeps 8640 readings, 30 days. After setup the integration also reads up to 10 days of recorder history in the background, so a room with history can have a model on the first day. When a device stays off for more than 30 days its last model is kept and the Kept models sensor gives its age. See Models kept through an idle season.

Readings taken while the AC heats, dries or runs its fan only stay out of the cooling model. Readings taken while the outdoor sensor is stalled are not stored.

How good the model is#

The Status sensor carries the fit quality in its attributes.

A new room reads low because it has few readings with the AC on. The confidence rises as the AC runs.

The Forecast error sensor comes from a backtest. For each past cool-down, the backtest fits a model on the readings before it and compares the predicted minutes with the measured minutes. The accuracy_pairs attribute lists the last 20 runs. The range_coverage_pct attribute is the percentage of range_runs runs whose measured minutes fell inside the forecast range of that run. A range of one standard error holds about 68 % of runs when the model fits the room. A lower value means the range is too narrow for this room. A run needs 60 readings, 5 hours, before its cool-down.

Heating and drying#

The Forecast mode sensor names what the forecast sensors show.

In observe-only the mode is the AC's own mode. The forecast_target sensor holds the target of the forecast shown.

  • Heater switch. The minutes come from the learned heat rate. Set heater_power_w in Heater to get the energy and the cost. Without it both are empty.
  • AC heat mode. The minutes, the energy and the cost come from heat-mode intervals of the AC. The low and high minutes come from the standard error of that rate.
  • Dry mode. It needs a room humidity sensor. The energy uses the mean AC power of the dry intervals.

The status reads learning until 12 intervals of that kind exist. The reason attribute names what is missing.

What the weather entity adds#

Set weather in the Occupancy and windows section to give the forecast an outdoor temperature that changes over time.

  • The integration calls weather.get_forecasts for the daily and hourly forecast, at most every 30 minutes. It keeps the last good result when a call fails.
  • The hourly forecast becomes a temperature series that starts at the outdoor sensor's reading. The offset between the sensor and the forecast fades out over 3 hours.
  • The integration learns the difference between your outdoor sensor and the forecast for each hour of the day, and applies it to the series.
  • When the outdoor sensor stalls and the hourly forecast is under 2 hours old, the forecast temperature stands in. The Outdoor source sensor then reads forecast.

Without a weather entity, the forecast holds the outdoor temperature at its current value.

Why the AC runs or not#

The Daily briefing sensor shows the next action in one line:

The Status sensor's investigation attribute explains the current action and lists the recent ones. Action texts lists every text.

Source: belikh/hvac-horizon v0.8.0