Skip to content

custom:stack-in-card #7

@tunavis

Description

@tunavis

Good day gents and ladies,

I want to find out why is my icon not appearing with the following code(Icond should change depending on state)

  • type: custom:mushroom-entity-card
    card_mod:
    style: |
    ha-card{
    box-shadow: none;
    }

          icon: |-
            {% if is_state("switch.garage_door", 'on') %}
              mdi:garage-open
            {% else %}
              mdi:garage
            {% endif %}
          entity: switch.garage_door
          icon_color: |-
            {% if is_state("switch.garage_door", 'off') %}
              grey
            {% else %}
              orange
            {% endif %}
          double_tap_action:
            action: none
          hold_action:
            action: none
          tap_action:
            action: toggle
          layout: vertical
          primary_info: none
          secondary_info: name
          name: Garage
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions