Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown type encountered: icon #84

Open
nnhhuu opened this issue Jun 25, 2022 · 1 comment
Open

Unknown type encountered: icon #84

nnhhuu opened this issue Jun 25, 2022 · 1 comment

Comments

@nnhhuu
Copy link

nnhhuu commented Jun 25, 2022

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:

  • type: custom:state-switch
    entity: group
    states:
    admin:
    type: icon
    entity: camera.garage_2
    icon: mdi:cctv
    style:
    left: 6%
    top: 28%
    user:
    type: icon
    entity: camera.whatever
    icon: mdi:cctv
    style:
    left: 6%
    top: 28%
    image: /local/floorplan/4853-1.svg

i receiving the error "Unknown type encountered: icon"

Any suggestions?

Thank you

@ildar170975
Copy link

ildar170975 commented Jun 25, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants