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

custom icons states bugging #134

Open
jouster1974 opened this issue Nov 14, 2024 · 2 comments
Open

custom icons states bugging #134

jouster1974 opened this issue Nov 14, 2024 · 2 comments

Comments

@jouster1974
Copy link

I am able to create a template entity row to change the color and icon for an entity depending on its on/off state with the following

  • type: custom:template-entity-row
    entity: switch.plug_bambu
    toggle: true
    name: X1C
    color: >-
    {% if is_state('switch.plug_bambu', 'on')%} green {% else %} rgb(85,
    120, 155) {% endif %}
    icon: >-
    {% if is_state('switch.plug_bambu', 'on')%} phu:bambulab-alt {% else %}
    phu:p1s {% endif %}

but the icon doesn't display at all when using two PHU icons

image
image

if I change the second phu icon to a standard mdi icon, both icons display

image
image

if I try to change the first icon to an mdi and the second to a phu again it works fine

image
image

custom icons are all set and work in all other locations

@ildar170975
Copy link

Duplicate of #93

@jouster1974
Copy link
Author

jouster1974 commented Nov 15, 2024

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

No branches or pull requests

2 participants