Skip to content
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

entity_picture doesnt work #939

Open
rmxs opened this issue Nov 18, 2024 · 4 comments
Open

entity_picture doesnt work #939

rmxs opened this issue Nov 18, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@rmxs
Copy link

rmxs commented Nov 18, 2024

Describe the bug
I have set in configuration file a custom image for my entity but doesnt work on Climate card.

To Reproduce
Steps to reproduce the behavior:
Set a custom entity image .png
create a climate card and select the entity
the entity icon is the default icon set and not the image from the configuration file.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image

Code in configuration

homeassistant:

  customize:
    # Add an entry for each entity that you want to overwrite.
    climate.ac_livingroom:
      entity_picture: /local/icons/air-conditioner.png
    climate.ac_bedroom:

Code for the card

type: custom:bubble-card
card_type: climate
entity: climate.ac_livingroom
sub_button:
  - name: ""
    select_attribute: hvac_modes
    show_arrow: false
    show_attribute: false
    show_state: false
    show_background: true
    show_icon: true
    state_background: true
    show_name: false
  - entity: climate.ac_livingroom
    show_icon: true
    select_attribute: fan_modes
    show_arrow: false
    show_name: false
    show_state: false
force_icon: false
show_icon: true
show_attribute: true
attribute: current_temperature
card_layout: large
scrolling_effect: true
show_last_changed: false
show_state: false
icon: ""
show_name: true

Informations (please complete the following information):

  • OS: Latest 11
  • Browser/App:Chrome
  • Bubble Card version: 2.3.0 B7
  • Home Assistant version: 2024.11.2

Using other climate card the custom image as icon works without any issue
image

Thank you! 🍻

@rmxs rmxs added the bug Something isn't working label Nov 18, 2024
@Clooos
Copy link
Owner

Clooos commented Nov 18, 2024

Hi and thank you for the feedback, I will take a look at this.

Clooos added a commit that referenced this issue Nov 21, 2024
- [x] Reverted a breaking change from a previous beta, where the pop-up blurred backdrop was disabled by default. But this is still a breaking change, now the default backdrop is darker without any blur. This can be changed in the editor, just go to your first pop-up on your view, then go to Styling options > Pop-up styling then change `Optional - Backdrop blur` to 10 (it was the previous value). In YAML just add `backdrop_blur: 10`. If you missed it, I changed that because the blur can slow down pop-ups on some older devices.

- [x] Changing temperature values in a climate card is now correctly synched if there was a change elsewhere. #942
- [x] New toggle in the climate card editor for users who wants to have a constant background color when the entity is `on`. #933
- [x] Buttons with a white light (or without RGB) are now more visible on bright/light themes. I also improved the overall color system for better color handling. It is also possible to change the color with the `--bubble-light-color` variable. #692
- [x] The climate card now correctly support `entity_picture` for the icon. #939
- [x] Actions now have a new toggle in the editor when set to Call service, this way it will automatically match the card/sub-button entity if defined. This is a breaking change for users of the previous beta who removed the entity_id completely, I had to change this because it was causing an issue in #935.
@Clooos
Copy link
Owner

Clooos commented Nov 21, 2024

The new beta is here and everything should works as expected now 🙂

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

@rmxs
Copy link
Author

rmxs commented Nov 21, 2024

It works but now when entity_picture is selected tap actions on icon doesnt work.

if i priotarize icon (Optional - Prioritize icon over entity picture) it works.

Thanks

@Clooos
Copy link
Owner

Clooos commented Nov 21, 2024

Oh indeed I forgot to handle that 😅 Sorry for that! This will be fixed in the next release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants