Skip to content

Conversation

@mxr
Copy link
Contributor

@mxr mxr commented Jan 3, 2026

Resolves #181

This implements turn_on and adds a "Last HVAC Mode" sensor with restore support and a lightweight in-memory store shared with the climate entity. The climate entity now persists the last active (non‑off) HVAC mode whenever the device mode updates, and turn_on uses that cached value (falling back to the first supported non‑off mode if none is known).

@dlarrick
Copy link
Owner

dlarrick commented Jan 4, 2026

Thanks! Looks like a nice clean approch, using a separate sensor. I'm doing something similar in my own climate automation (storing the last setpoint for use by the automation logic) but using an unrelated external input_text sensor.

My priority right now is repairing the setup steps in light of dlarrick/pykumo#58 (comment) and I will take a look at this once I have that done.

@mxr
Copy link
Contributor Author

mxr commented Jan 4, 2026

Sounds good thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support ClimateEntityFeature.TURN_ON

2 participants