decluttering_templates:
<template_name>
default: # This is optional
- <variable_name>: <variable_value>
- <variable_name>: <variable_value>
[...]
element: # This is where you put your element config
type: icon
[...]
i wanted to use decluttering card,
but dont know how to start
i would like to use it for remote control and i want to add it with raw configure or ui editor.
someone please guide me
thanks
I can make the text red with the style, I want to change the color of the text based on a sensor state, but for test I only what to make it red. This does not apply the color.
I have a horizontal-stack of five conditional button cards, one of which is always hidden. Prior to implementing decluttering-card, the row showed only four buttons. After creating a template, it now shows four buttons and a blank space (for the fifth button). I completely understand why this is happening, the contents of the decluttering card are hidden, not the decluttering card itself. Is there a way I adjust my template to remedy this or am I better just not using the decluttering card for this?
conditional-card sets it’s own CSS display attribute to none, which in this case doesn’t take space in the horizontal-stack. But the decluttering-card is still taking the space. For the space to not be taken, decluttering-card would have to set it’s own display to none
I’ll release a new version that can handle this (hopefully)