Climate - Adjust Styling of Button based on Climate Mode & State #984
-
I currently have 3 AC / Heat Pump HVAC Systems.
Ideally, when the first one that is 67 changes from IDLE > HEAT then I'd like to have that entire card change to color ORANGE to indicate that it's heating and not when its sitting Idle but in 'heat' mode. I looked through some of the 'style' settings but don't know if this is possible to set adaptive coloring based on the state of the entity itself. Does anyone else have ideas on this? |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 6 replies
-
To add to the example of the above, the Kitchen is now heating, thinks its 78 degrees, but according to my Ecowitt temp sensor (on the other side of the room) is actually only 70.2 which is why I disable the built-in Thermostart for this HVAC and instead setup Home Assisstant to do Automations based on a range of temperature (Turn on when Ecowitt says its below 68, heat to 72, then turn off). Bubble Card: Ecowitt Temp Sensor: Right now I have the Ecowitt sensor right below the Bubble Card, and can click into it to see the temp range / history chart, but Ideally I can add this entity into the Bubble Card on the same line so I can see 1. Ecowitt Temp 2. 'Current Temp that HVAC believes' and 3. Target Temp, all in one line, that color codes if the system is running or not. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if this is an issue with the card itself, or the backend data, but I am finding that the 'Last Status Change' is not correct either. For example, the Second Floor shows '4 hours ago' yet it just was in Heat - HEATING about about 5-15 minutes ago: Once I drill into the charts it shows this, but the bubble card is showing 4 hours. I noticed this the other day when it said "Yesterday" yet it had multiple heating cycles that same day. |
Beta Was this translation helpful? Give feedback.
-
@ChipSkylark37 For me the climate car only shows orange when the card is heating (so in heat mode |
Beta Was this translation helpful? Give feedback.
-
You probably can make something like
|
Beta Was this translation helpful? Give feedback.
-
After changing to the entity name (sensor.temperature_3) #Place all DOM changing elements on the bottom of the style section Then adding that into the Custom Styles, it previews as the following: And after saving: The states of that system are the following: |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
set |
Beta Was this translation helpful? Give feedback.
-
That does work, but will it change back to orange when the system is actually heating? or can I do the color based on the attribute of: hvac_action: idle changing to 'heating' instead? |
Beta Was this translation helpful? Give feedback.
set
state_color: false