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

Hide and Move Lock Icon Card #120

Closed
N0edL opened this issue Dec 9, 2024 · 1 comment
Closed

Hide and Move Lock Icon Card #120

N0edL opened this issue Dec 9, 2024 · 1 comment

Comments

@N0edL
Copy link

N0edL commented Dec 9, 2024

Hey i want to only show the lock icon when its blocked and how can i move the icon to the right and add some more padding to it?

Card

type: custom:restriction-card
card:
  type: custom:button-card
  template: light_3
  entity: switch.sonoff_1001eb7762_1
  icon: mdi:ceiling-light
restrictions:
  block:
    condition:
      value: "off"
      entity: script.rolluiken_bediening

Picture
image

@ildar170975
Copy link
Collaborator

ildar170975 commented Dec 9, 2024

You are asking a question, not reporting a bug or proposing a feature request. Please ask all questions in the dedicated thread - https://community.home-assistant.io/t/lovelace-restriction-card-client-side-security/142889.

If you only need a "block" functionality - then use same condition for "lock":

    condition:
      entity: script.rolluiken_bediening
      value: "off"
    restrictions:
      block:
        condition:
          entity: script.rolluiken_bediening
          value: "off"

These vars described here - https://github.com/iantrich/restriction-card?tab=readme-ov-file#theme-variables.
Please ask all further questions about using these vars in the mentioned Community thread.

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