Hi,
I am trying to create a card that conditionally shows if ‘my_device’ is home. I’ve created the below however I get the error ‘duplicated mapping key (22:1)’.
What is the correct way to have a conditional card?
Well, you have alot of other issues with spacing on your conditional card. Take a look at the examples in the documentation and pare back until you don’t see errors.
Conditions for the conditional card can’t be ‘or’. It’s a large design flaw. The only way around it is to make a template binary sensor with that logic and use that for your conditional card.