Open jgoerzen opened 3 weeks ago
A lot of this may be due to behavior of your custom component. My thermostats don't do this.
E.g. when they are in cool mode, only a single cool temp is displayed. (same for heat mode). Your component is probably publishing target_temp_low and high when it's in cool mode, where other themotats might only publish an attribute for the current mode they are in.
While it's possible the card could be made more robust to handle different combinations of behaviors this way, it's probably not a high priority as other climate entities don't have this problem due to behaving in a different way. You could try reaching out to the developer of your component.
OK, that makes sense. Perhaps we can reduce the scope of this then to:
Thanks!
If you have thermostats that publish both low and high regardless of state (like Crestron thermostats), this is how I got it to only display the active mode of the thermostat:
- type: thermostat
entity: climate.kitchen_thermostat
name: ' '
show_current_as_primary: false
features:
- type: climate-hvac-modes
card_mod:
style:
"ha-state-control-climate-temperature $ ha-control-circular-slider $": |
svg > g > g:nth-child(4) {
{% if is_state('climate.kitchen_thermostat', 'cool') %}
display: none;
{% else %}
display: block;
{% endif %}
}
svg > g > g:nth-child(5) {
{% if is_state('climate.kitchen_thermostat', 'heat') %}
display: none;
{% else %}
display: block;
{% endif %}
}
If anyone has a better solution that would be great.
Checklist
Describe the issue you are experiencing
There are a number of things that could be improved with the thermostat card. I have seen these issues separately on various devices, but see them all when controlling https://github.com/ccutrer/waterfurnace_aurora .
I am attaching a screenshot of the display after clicking the three-dot menu to illustrate the issues, but they also all persist on the dashboard directly.
Thanks!
Describe the behavior you expected
Steps to reproduce the issue
Already described above
What version of Home Assistant Core has the issue?
2024.6.2
What was the last working version of Home Assistant Core?
No response
In which browser are you experiencing the issue with?
Every one, from Firefox to Android app
Which operating system are you using to run this browser?
Linux, Android
State of relevant entities
No response
Problem-relevant frontend configuration
No response
Javascript errors shown in your browser console/inspector
No response
Additional information
No response