Skip to content

Set (Eco) Temperature before turning off climate underlying #642

Answered by andrexp
andrexp asked this question in Q&A
Discussion options

You must be logged in to vote

After more research I found a solution for me. Adding the following to line 2524 of base_thermostat.py seems to do the trick:

            else:  # default is to turn_off
                # send eco-temperature before turn off climate
                for under in self._underlyings:
                    await under.set_temperature(
                        self.find_preset_temp(PRESET_ECO),
                        self._attr_max_temp,
                        self._attr_min_temp,
                    )
                self.set_hvac_off_reason(HVAC_OFF_REASON_WINDOW_DETECTION)
                await self.async_set_hvac_mode(HVACMode.OFF)

I simply want to send the (eco-)temperature (this is only t…

Replies: 6 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by andrexp
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jmcollin78
Comment options

Comment options

You must be logged in to vote
1 reply
@jmcollin78
Comment options

Comment options

You must be logged in to vote
1 reply
@jmcollin78
Comment options

Comment options

You must be logged in to vote
1 reply
@jmcollin78
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants