-
Notifications
You must be signed in to change notification settings - Fork 95
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
Fix for ON states for climate entities #278 #283
Conversation
States are determined here look at "Humidifier" |
Yes, but isn't state to display determined there? And my issue is with lighting the button up as if the entity is ON. Unless you suggest to override the display state (currently the mode) as well and show there current state from hvac_action? That would make sense and I can do that. |
Assuming we override the display state as well - HA already has translations for all hvac_action states except ( # CLIMATE
f"{COMPONENTS}/climate/translations/",
[
...
("climate_action_heating", ["entity_component", "_", "state_attributes", "hvac_action", "state", "heating"]),
("climate_action_preheating", ["entity_component", "_", "state_attributes", "hvac_astion", "state", "preheating"]),
.... |
Hmm, but what is the state of you climate entity? I think you're right that eg |
The climate entity state is always the mode, so in my case |
Does these changes work for you? |
Yes, thanks 👍🏻 |
Fixes #278
I left all the
heat
,dry
,cool
in onStates for now as I'm not sure if they are not used for something else to determine state.Now only
hvac_action
is taken for climate state and then it shows as I would expect it to: