From 579de1a218a736afe9720a2b895ae9bd248487e6 Mon Sep 17 00:00:00 2001 From: keithajmani <15757266+keithajmani@users.noreply.github.com> Date: Sat, 28 Nov 2026 16:43:34 -0500 Subject: [PATCH] Temperature sources: document restore_on_boot and restore_timeout (pending esphome-components#80) Co-Authored-By: Claude Opus 5.5 --- docs/user/configuration/temp-sources.md | 34 ++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/docs/user/configuration/temp-sources.md b/docs/user/configuration/temp-sources.md index b479cc0..7ed128f 100644 --- a/docs/user/configuration/temp-sources.md +++ b/docs/user/configuration/temp-sources.md @@ -37,4 +37,36 @@ climate: # ... ``` -The sensor name as defined in ESPHome will also display in the Home Assistant UI for the temperature selector. \ No newline at end of file +The sensor name as defined in ESPHome will also display in the Home Assistant UI for the temperature selector. + +## Keeping the temperature source after a restart + +After an ESP restart (firmware update, restart, power blip) there is no remote temperature to send until the selected +source reports again. A connected MHK2 needs about a minute to reconnect, and a Home Assistant sensor only arrives once +the API reconnects. Units that revert quickly may fall back to their internal sensor in the meantime. + +Set `restore_on_boot` to have MITP save the last temperature it sent to the heat pump, and re-send it as soon as the heat +pump reconnects after a restart (every 20 seconds) until the selected source reports again: + +```yml +select: + - platform: mitsubishi_itp + temperature_source: + name: "Temperature Source" + sources: + - office_temperature + echo_interval: 20s + restore_on_boot: true + restore_timeout: 3min +``` + +| Option | Default | Description | +|---|---|---| +| `restore_on_boot` | `false` | Save the last remote temperature and re-send it after a restart until the selected source reports. Not used when "Internal" is selected. | +| `restore_timeout` | `3min` | The longest time the saved temperature is used if the selected source never reports (20 s to 60 min, and no longer than `timeout`). After that, the normal timeout applies and the unit returns to its internal sensor. | + +:::note +The value is saved on every clean restart, and while running only when it changes by at least 0.5 °C (at most every +10 minutes), so flash wear is minimal. After a long power outage the saved value may be out of date. It's only used +until the selected source reports, and never longer than `restore_timeout`. +:::