Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion docs/user/configuration/temp-sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,36 @@ climate:
# ...
```

The sensor name as defined in ESPHome will also display in the Home Assistant UI for the temperature selector.
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`.
:::