-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Preheating support in History Chart #23878
Conversation
… that history chart correctly shows preheating and defrosting as heat
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Thank you for your contribution! 🥇 |
I somehow forgot to reply to this, if you feel comfortable, we're open to pull requests changing or opening this to discuss further in an issue/pull request. |
Hi, thanks for the invitation, but I don't have any devices (a heat pump?) that make use of defrosting, so I'm not sure I'm the right person to make changes when I won't be able to test it and I don't have experience of how it is used in the real world. The change I would propose is to change the |
Proposed change
PREHEATING
was added as anHVACAction
a while ago, but the history charts do not shade the area under the current temperature which they do if theHVACAction
isHEATING
.Original architecture discussion: home-assistant/architecture#710
Original Core PR: home-assistant/core#94677
Original Frontend PR: #16922
Issue: #23876
This PR uses
CLIMATE_HVAC_ACTION_TO_MODE
to map theHVACAction
to a mode in the same way that the thermostat card does to colour the background when heating or cooling. It does mean thatHVACAction.DEFROSTING
is also captured by this change.As a side note, I don't understand why
defrosting
is mapped toheat
, the architectural discussion for defrost specifically says the system is not currently generating heat. In my view,defrosting
should be mapped tooff
, but that would be the topic of a separate discussion.As second side note, on the defrosting discussion there seemed to be some confusion about what preheating means. When a device is heating, it is heating up to a set temperature. When preheating, it is heating to a future set temperature. See the images on the linked issue.
This is my first PR to Home Assistant Core or Frontend, so if I have missed anything let me know.
Type of change
Example configuration
Additional information
hvac_action
ofpreheating
not shown #23876Checklist
If user exposed functionality or configuration variables are added/changed: