Good point, show_icon: false
also works, I’ll add that to the template
@KNetGIT @Seppel @malleman8 @henkkeumus @sbienia
Apparently a github bug. It should work now if you update to button-card 3.4.2 using hacs
clearing cache should work
https://community.home-assistant.io/t/a-different-take-on-designing-a-lovelace-ui/162594/1507
else try hui-element
https://community.home-assistant.io/t/a-different-take-on-designing-a-lovelace-ui/162594/2149
Yes, this and adding it as a template fixed it for me. Thanks!
I am looking for a way to put the header at the bottom and not at the top.
Custom_header is not supported anymore, so I won’t use it.
How do you see it?
I have added these to tilt_options
under the base
template and removed && !ignore.match(/Android/i)
from the tilt
template…
No dice yet, am I missing something obvious?
I would like to dynamically change the color of the circle and the value inside it, depending on the counter.
0-1 white
2-3 yellow
4-…red
Also how is it possible to change the state from on ( motion detected ) to “in use” ?
Could anybody assist me here or does anybody of you have already a cat litterbox button in use?
Thanks in advance cat people <3
type: custom:button-card
entity: binary_sensor.bewegungsmelder_katzenklo
name: Katzenklo
tap_action:
action: toggle
hold_action:
action: more-info
template:
- base
- loader
custom_fields:
icon: >
<ha-icon icon="phu:litterbox"
style="color:var(--button-card-light-color);"></ha-icon>
circle: |
[[[
{
const input = states['counter.katzenklo_besuche'].state;
const radius = 20.5;
const circumference = radius * 2 * Math.PI;
return `
<svg viewBox="0 0 50 50">
<style>
circle {
transform: rotate(-90deg);
transform-origin: 50% 50%;
stroke-dasharray: ${circumference};
stroke-dashoffset: ${circumference - input / 8 * circumference};
}
tspan {
font-size: 10px;
}
</style>
<circle cx="25" cy="25" r="${radius}" stroke="#b2b2b2" stroke-width="1.5" fill="none" />
<text x="50%" y="54%" fill="#8d8e90" font-size="14" text-anchor="middle" alignment-baseline="middle" dominant-baseline="middle">${input}<tspan font-size="10"></tspan></text>
</svg>
`;
}
]]]
have the same problem like you.
do solved this problem?
Hi @nkxol I had so many problems that I don’t know what you mean lol. My problem today is the text that is rotated in the middle card. When it’s bigger it exceeds the limits
Awesome theme!
I’ve installed step by step on new HomeAssistant. And I have a this error:
could you help me?
u need to add grid-layout.js resource
Unable to read file /config/.youtube_token.txt
- download latest button_card_templates.yaml
Secret apexcharts_tibber not defined
- read updated installation notes
A different take on designing a Lovelace UI - #1717 by Mattias_Persson
Custom element doesn't exist: grid-layout
- clear browser cache
idk, that sounds right?
https://caniuse.com/?search=deviceorientation
https://github.com/micku7zu/vanilla-tilt.js/issues?q=gyroscope
I clear browser cache, checked from 3 browsers. And the problem is still…
where is this file?