esphome / esphome/feature-requests

Thermostat: preset option to store changed aspects and restore them when switching

Open
#1,787 2 comments 2 reactions 0 assignees View on GitHub
component: climate component: thermostat
Dominant language
No language data
Stars
450
Forks
29
PR merge metrics
No merged PRs in 30d

Description

**Describe the problem you have/What new integration you would like**

https://github.com/esphome/esphome/pull/3298 will bring the possibility of default and custom presets to the thermostat component.
This request is meant to be the follow up for https://github.com/esphome/feature-requests/issues/918.
As discussed in this request there is a need in certain use-cases to have presets which remember changes to their aspects and restore those changed values when they are re-activated in contrast to the normal behavior of setting the default values.

Regarding the questions in https://github.com/esphome/feature-requests/issues/918#issuecomment-1175052433 I am not really sure how to handle this and what this means for other aspects than temperature because I am just using a it for heating, no cooling and no fans and other stuff.
Using it with a 'heating_action' the config requires me to set a 'default_target_temperature_low' in the default config for the component and in any preset.
For the moment I think an option for the preset might solve this, a "storing" preset could store all the aspects for which it has a default value and disregard any other so switching to it will keep the current value for that aspect and restore the values of all stored.
But this would not work with the current logic of the config as I am not able to configure a preset without a 'default_target_temperature_low' so this check would have to be weakened.

**Please describe your use case for this integration and alternatives you've tried:**

I need this for a heater control where I want to switch to a preset when anyone is at home and switch back. But I don't want to have the default values restored when switching back.

**Additional context**

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the thermostat component and the preset behavior introduced by esphome/esphome#3298, then read the linked feature request #918 and its referenced comment. Clarify how storing presets should treat each thermostat aspect and how configuration validation should behave. Done means the requested preset can retain selected changed values and restore them when reactivated.

Written by the indexing model from the issue text.

Assessment

Domain
embedded-iot
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.