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.
| Sensor | Unit | Meaning |
|---|---|---|
| Minutes to setpoint | min | Time for the room to reach the threshold |
| Minutes to setpoint, low and high | min | The range around that time, from the uncertainty of the cooling rate |
| Energy to setpoint | kWh | AC energy for that time. An estimate when the AC has ac_rated_w and no power sensor. |
| Cost to setpoint | price unit | That energy priced slot by slot. Needs a price sensor with a forecast attribute. Empty when the price forecast does not cover the whole time: a cost over part of the time is not shown. The reason attribute of the Status sensor then reads reachable; cost unknown: the price sensor has no price for part of this time. |
| Status | text | The state of the forecast. See the next table. |
| Forecast error | min | Median error of the forecasts replayed against past cool-downs |
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#
| Status | Meaning | What to do |
|---|---|---|
learning | No room model yet. The reason attribute names the rule that is not met. | Let the AC run through on and off periods. |
no input | A room sensor, the outdoor sensor or the AC entity has no reading. | Check the entity in Developer tools > States. |
no running power yet | The AC draws under 0.2 kW and no stored reading holds a running power. | Run the AC once. |
at setpoint | The room is at or below the threshold. Minutes, energy and cost are 0. | Nothing. |
reachable | The forecast has minutes, energy and cost. | Nothing. |
unreachable | The room does not reach the threshold within 12 hours at the current power. | The AC is too small for the conditions, or the model is still coarse. |
How long learning takes#
HVAC Horizon takes a reading every 5 minutes. The first room model needs all of these:
- 36 readings with the AC on and 36 with it off: 3 hours of each.
- 3 separate AC runs.
- An outdoor minus room difference that varies by at least 1 K.
- 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.
| Attribute | Meaning |
|---|---|
fit_confidence | low, medium or high, from the standard errors of the fit |
k_per_h | Heat gain toward outdoors, per hour |
c_k_per_kw | Cooling per kW of AC power, in K per hour |
g_k_per_h | Constant gain from people and appliances, in K per hour |
c_stderr | Standard error of the cooling rate. It sets the low and high minutes. |
fit_residual_k_per_h | Typical error of the model on its own readings, in K per hour |
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.
forecast_mode | When | Minutes to setpoint counts down to |
|---|---|---|
cool | Every other time, including fan_only | The cool threshold |
heat | The mode is heat, or heat_cool with the room below the heat target | The heat target |
dry | The mode is dry | 3 points below the humidity target (57 % by default) |
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_win 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_forecastsfor 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:
Day: warm. Comfort 24.0 C. Next: cool: above comfort target.The Status sensor's investigation attribute explains the current action and lists the recent ones. Action texts lists every text.