First off I’m very new to Home assistant. I’m currently just trying to put together some basic elements of a simple dashboard.
I’m running Home Assistant on a HA Green:
- Core 2025.4.1
- Supervisor 2025.03.4
- Operating System 15.1
- Frontend 20250404.0
Up to date as of now for what I can tell:
I’ve used Hubitat for a couple years and recently added HA to give me access to more integrate-able resources. Most of my entities have been brought into HA via the Hubitat integration.
For this issue, I’m adding a horizontal stack-in-card to a very simple existing HA dashboard. Added my first Mushroom Template card to this stack, while closely following a video tutorial. I placed some really simple template logic in the icon and icon color fields based on the state of a open/close sensor on my garage door.
‘’’
- type: custom:mushroom-template-card
primary: " "
secondary: " "
icon: |-
{% if is_state(‘binary_sensor.garage_door_status_contact’, ‘on’ %}
mdi:garage-open
{% else %}
mdi:garage
{% endif %}
entity: light.office_dimmer
icon_color: |-
{% if is_state(‘binary_sensor.garage_door_status_contact’, ‘on’ %}
red
{% else %}
blue
{% endif %}
‘’’
In further testing, I added four basic static mushroom template cards.
‘’’
- type: custom:mushroom-template-card
primary: Hello, {{user}}
secondary: How are you?
icon: mdi:garage
‘’’
The card with template logic doesn’t display any icon.
The other four work.
Full stack config:
‘’’
type: custom:stack-in-card
mode: horizontal
cards:
- type: custom:mushroom-template-card
primary: " "
secondary: " "
icon: |-
{% if is_state(‘binary_sensor.garage_door_status_contact’, ‘on’ %}
mdi:garage-open
{% else %}
mdi:garage
{% endif %}
entity: light.office_dimmer
icon_color: |-
{% if is_state(‘binary_sensor.garage_door_status_contact’, ‘on’ %}
red
{% else %}
blue
{% endif %} - type: custom:mushroom-template-card
primary: Hello, {{user}}
secondary: How are you?
icon: mdi:garage - type: custom:mushroom-template-card
primary: Hello, {{user}}
secondary: How are you?
icon: mdi:home - type: custom:mushroom-template-card
primary: Hello, {{user}}
secondary: How are you?
icon: mdi:home - type: custom:mushroom-template-card
primary: Hello, {{user}}
secondary: How are you?
icon: mdi:home
‘’’
I imagine that I’m missing something obvious, and I’m sure that I left out some relevant info. Been searching through posts and messing with this pretty much all day. I appreciate your patience with what is probably a newb question.
Thanks again.