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

Cannot change icon in custom_esh_room card #1526

Open
AlexanderStavrop opened this issue Jul 26, 2024 · 1 comment
Open

Cannot change icon in custom_esh_room card #1526

AlexanderStavrop opened this issue Jul 26, 2024 · 1 comment
Labels

Comments

@AlexanderStavrop
Copy link

Describe the bug
I am trying to use the custom esh room card, and according to the documentations by using ulm_card_esh_room_light_icon_on and ulm_card_esh_room_light_icon_off, to change the icon that appears on the card for each state, but this is not working.

To Reproduce
Add the esh room card to your dashboard, following the documentation https://ui-lovelace-minimalist.github.io/UI/usage/custom_cards/custom_card_esh_room/#template-code

Expected behavior
The icon should be a door but it is a bulb

Screenshots
image

Additional context

Related Card Config

---
button_card_templates: !include_dir_merge_named "../../custom_components/ui_lovelace_minimalist/__ui_minimalist__/ulm_templates/"

title: "Minimalist dashboard"
background: "var(--background-image)"
# views: !include_dir_merge_list "views/"
views:
  - !include views/home.yaml
  - !include views/entrance.yaml
  - !include views/bathroom.yaml
  - !include views/office.yaml
  - !include views/livingroom.yaml
     - type: "custom:button-card"
       template:
           - card_esh_room
           - yellow_on
       name: Bathroom
       entity: light.tradfri_1
       icon: mdi:bathtub
       tap_action:
           action: navigate
       navigation_path: "bathroom"
       variables:
           ulm_card_esh_room_light_icon_off: mdi:door
           ulm_card_esh_room_light_icon_on: mdi:door
       label: '[[[ return states["sensor.temperature_humidity_1_temperature"].state + "°C" ]]]'
@joe-winter
Copy link

If you change the default icon in entity settings for the entity that you are using in the card.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants