Clooos / Bubble-Card

Bubble Card is a minimalist card collection for Home Assistant with a nice pop-up touch.
MIT License
2k stars 58 forks source link

v2.3.0-beta.7 Climate card background no change between off and heat #933

Closed nzottmann closed 45 minutes ago

nzottmann commented 4 days ago

My thermostat only support the modes off and heat. In beta.6 the card looks like expected when in mode heat: image

In beta.7 the background color does not change between off and heat: off: image heat: image

Clooos commented 4 days ago

Hi, since beta 7 the climate card is changing its color only when the climate entity is actually heating or cooling to provide a more useful feedback.

But if it is really heating in your case and that the color is not changing, you can check this post here:

https://github.com/Clooos/Bubble-Card/issues/923#issuecomment-2481424064

nzottmann commented 4 days ago

Thank you for the reply. I removed the HACS-installed bubble card and used the downloaded .js from the link. Unfortunately, this does not change the behavior, the card is still not colored. Current temperature is 20°, target 23°:

image

Here is the developer info, in case this helps:

hvac_modes:
  - "off"
  - heat
min_temp: 8
max_temp: 28
preset_modes:
  - none
  - Energy heat
  - Full power
  - Manufacturer specific
current_temperature: 20
temperature: 23
preset_mode: none
friendly_name: "Bad Heizung "
supported_features: 401
Clooos commented 4 days ago

Oh your entity does not have the hvac_action attribute, this is how I know if an entity is really heating or not.

I will had an exception for climate entities without that attribute and based on temperatures then.

Thanks for details!

nzottmann commented 4 days ago

Thank you! Actually, I would prefer the card to be always colored in mode heating, no matter if the current temperature is higher or lower than the setpoint.

These are thermostats installed on radiators, which are quite common in germany. I don't care if they are heating at the moment, but I do care if they are set to heating or off, when I leave the house, when I go to bed, when I open the windows.

When they are set to heat and a target temperature, the color would toggle between black and orange every few minutes but there is nothing I can do with this information. I just have to see at a glance if it is set to heat and I know it cares about reaching the target temperature.

So if you like to implement background color based on current/target temperature comparison, I would be very happy to have this optional, as it would be even worse than having no colored background.

Clooos commented 4 days ago

Ok good to know, I will add these as an option in the editor, damn this beta will never end 🫠 But this makes sense in your case indeed.

nzottmann commented 4 days ago

I'm sorry 😔 I followed some discussions, climate entities seem to be really hard as there are so many different behaving devices in the world. But on the other side, the climate card seems to be really long awaited by lots of people (including me). Thank you very much for your great work!

Clooos commented 4 days ago

Don't be sorry! I really want it to be perfect for everyone, and your case is the last one that I need to handle in my code, so it's all good!

I will send you a test version once I've added this option in the editor 🙂

Clooos commented 19 hours ago

The new beta is here, take a look at the changelog first 🙂

Everything should works as you want now:

https://github.com/Clooos/Bubble-Card/releases/tag/v2.3.0-beta.8

nzottmann commented 45 minutes ago

Wow, very nice, this is perfect! I installed the new beta.8 and it works as expected, the option is a very good solution.

Clooos commented 43 minutes ago

I'm glad that it's working for you now! The stable release is getting really close! Finally! 🎉