but if you increase the icon size, the battery indicator ring doesnt resize.
Try something like this:
type: custom:mushroom-person-card
entity: person.rhys
icon_type: entity-picture
card_mod:
style:
mushroom-shape-avatar$: |
.container:before {
content: "";
height: 100%;
width: 100%;
background: radial-gradient(rgb(var(--rgb-white)) 60%, transparent calc(60% + 1px)), conic-gradient(rgb(var(--rgb-green)) {{ states('sensor.rhys_phone_battery_level') }}% 0%, transparent 0% 100%);
border-radius: var(--icon-border-radius);
position: absolute;
-webkit-mask-image: radial-gradient(circle calc(var(--icon-size) / 2 - 0.3em) at 50% 50%, transparent 100%, black 0);
}
.: |
ha-card {
--icon-size: 72px;
}
Brilliantā¦THX.
Exactly what i searched for .
Thanks.
Hi,
iĀ“m a bit confused why the borders of the cards are visible:
Can anyone let me know how to remove them?
change the theme to Mushroom Shadow and that will fix it on the device
Many thanks for your help
is it possible to share the SVG files you use as part of this? Thanks in advance and awesome work!!!
/local/weather_icons/anim/{{ condition }}.svg
Is there something like a āblankā card with the dimensions of a mushroom card that can be used as a āfillerā guys?
Knew I would forget something .
Added.
Whats the full path to put the files?
Use the Gap card from Layout Card.
You can put them anywhere in \config\www
. I put theme here \config\www\weather_icons\anim
.
I have put them in that path you have, and in the yaml this ā/local/weather_icons/anim/{{ condition }}.svgā but nothings shows up.
But its amazing what you have made
What does it say for the weather condition? Currently āPartly Cloudyā for me.
It say sunny
Does this work for you?
type: custom:mushroom-template-card
primary: '{{ state_attr(entity, ''temperature'') | round(1) }} Ā°C'
secondary: '{{ states(entity) | title }}'
icon: none
entity: weather.weatherflow_hourly_based_forecast
picture: >-
{% set condition = states(entity) %} {% if condition == 'partlycloudy' and
is_state('sun.sun', 'below_horizon') %}
{% set condition = condition + '-night' %}
{% endif %} /local/weather_icons/anim/{{ condition }}.svg
card_mod:
style: |
ha-card {
--icon-border-radius: 0;
}
tried that, but it actually is an empty space. What I amlooking for is an empty button I guess?
"
So same as this but without icon, withoud mushback without primary text and without state.
it works for me, I read somewhere that HA has to be restarted in order to recognize icons not sure if that is your case
Could you add - somewhere - a screenshot of your current setup and not just the cards you have? I am looking for some inspiration to finish up my dashboard since it is a mess