Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Climate components: separate callback on configuration changes? #2136

Closed
nwf opened this issue Feb 26, 2023 · 0 comments · Fixed by esphome/esphome#4511
Closed

Climate components: separate callback on configuration changes? #2136

nwf opened this issue Feb 26, 2023 · 0 comments · Fixed by esphome/esphome#4511

Comments

@nwf
Copy link

nwf commented Feb 26, 2023

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

I would like to have a callback for (climate) components that changes only when control parameters, not world state, changes. on_config or such.

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

I am currently writing (yet another) thermostat using esphome. I've got a character LCD with controllable backlight and a local touch sensor, and I would like the following backlight policy: turn on either when HA changes some part of the Climate configuration or the user touches a button, and turn off 10 seconds after the last reason to be on.

Almost all of that is possible right now, but attempting to use the on_state trigger to watch for HA changes also catches every single sample from the temperature sensor, which means the backlight is constantly flashing. :(

Additional context

nwf added a commit to nwf/esphome that referenced this issue Mar 5, 2023
This lets downstream components respond to climate configuration
changes, which take place through ClimateCall objects, without also
being notified every time the state changes, which happens every time
the input sensor announces a new value.

FIXES esphome/feature-requests#2136
nwf added a commit to nwf/esphome-docs that referenced this issue Mar 5, 2023
nwf added a commit to nwf/esphome that referenced this issue Mar 5, 2023
This lets downstream components respond to climate configuration
changes, which take place through ClimateCall objects, without also
being notified every time the state changes, which happens every time
the input sensor announces a new value.

FIXES esphome/feature-requests#2136
jesserockz pushed a commit to esphome/esphome that referenced this issue Mar 7, 2023
This lets downstream components respond to climate configuration
changes, which take place through ClimateCall objects, without also
being notified every time the state changes, which happens every time
the input sensor announces a new value.

FIXES esphome/feature-requests#2136
jfparis pushed a commit to jfparis/esphome that referenced this issue Apr 15, 2023
This lets downstream components respond to climate configuration
changes, which take place through ClimateCall objects, without also
being notified every time the state changes, which happens every time
the input sensor announces a new value.

FIXES esphome/feature-requests#2136
@github-actions github-actions bot locked and limited conversation to collaborators Jul 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant