Last week I dismantled my lawnmower. Now I wand to hide the related button in a Lovelace dashboard till next year, when I need it again.
I tried to go wie conditional cards. I can now hide the button card (name: Rasenmäher) from the layout, but it never shows. It doesn’t matter if light.eg_arbeiten_steckdosen_prasenz is in state on or off.
We may need someone smarter than me to assist then… I’m out of answers. Sorry.
Is the entity actually a light? Maybe it’s a switch?
Or maybe the state is actually “On” with a capital ‘O’ ?
Does the state update instantly for that entity when you use it normally? (I have a ZWave plug that sometimes takes 30-60 seconds to update it’s state if I use the physical button.)
Have you tried using a different entity for the condition just to make sure it’s not entity related?
Thank a lot! Indeed you are right, the indentation was wrong. But there was no warning, because somehow the editor put a “null” behind tap_action. Without null, which was obviously wrong, the indentation error was shown. I corrected it and it was working again.