I think we did this with fireplace
type: custom:mushroom-template-card
icon: mdi:fireplace
icon_color: teal
primary: Living Room
card_mod:
style:
mushroom-shape-icon$: |
.shape:after {
content: "";
height: 11px;
width: 11.6px;
border-width: 0;
position: absolute;
margin-top:5px;
left:14px;
clip-path: polygon(71% 83%, 78% 73%, 81% 64%, 80% 55%, 76% 47%, 69% 41%, 63% 36%, 59% 30%, 56% 22%, 59% 13%, 59% 13%, 52% 15%, 45% 20%, 39% 28%, 35% 40%, 36% 49%, 38% 58%, 33% 57%, 30% 51%, 31% 35%, 24% 44%, 19% 58%, 22% 66%, 26% 76%, 35% 85%, 48% 88%, 61% 86%);
{% if states('light.living_room_lights') == 'on' %}
background: linear-gradient(to top left, #FFFF11 22%, #FF1A16 57%);
animation: fire 400ms ease-in-out infinite, drum 2s ease infinite;
{% endif %}
}
@keyframes fire {
0%, 100% { transform: translate(0, 0) rotate(0); }
20% { transform: translate(0.4px, -0.4px) rotate(4deg); }
40% { transform: translate(-0.4px, 0.4px) rotate(-4deg); }
60% { transform: translate(0.4px, 0.4px) rotate(4deg); }
}
.: |
ha-card{
--card-primary-font-size: 10px;
--card-primary-font-weight: bold;
width: 150px;
margin-left: 5px !important;
{% if states('light.living_room_lights') == 'on' %}
box-shadow: 0px 0px 5px 5px #CBC3E3 !important;
{% else %}
box-shadow: 5px 10px 5px -3px rgba(0,0,0,0.75);
{% endif %}
{% if is_state('light.living_room_lights','on') %}
background: rgba(255, 152, 0, 0.1) !important;
{% endif %}
} }
tap_action:
action: navigate
navigation_path: living-room-1
fill_container: true
layout: horizontal
multiline_secondary: false
And it’s one of my favorite animations.