thomasloven / lovelace-state-switch

🔹Dynamically replace lovelace cards depending on occasion
MIT License
382 stars 27 forks source link

Unknown type encountered: icon #84

Open nnhhuu opened 2 years ago

nnhhuu commented 2 years ago

first of all thank you for all the work around your Lovelace resources. I'm using most of them

i have picture element with my house floorplan, I'm trying to show the cameras only for the administrators. but seems that the element ICON is not supported. I have review the documentation and there is no "documented" restriction of the type of cards that can be nested in the "state-switch" (at least that I found) .

my code looks like this

type: picture-elements elements:

i receiving the error "Unknown type encountered: icon"

Any suggestions?

Thank you

ildar170975 commented 2 years ago

Any suggestions?

Hard to suggest anything when the code is unformatted. Use triple "`".

but seems that the element ICON is not supported.

Only CARD may be inserted into state-switch. Use a conventional picture-element's conditional element instead.