iantrich / restriction-card

🔒 Apply restrictions to Lovelace cards
MIT License
254 stars 22 forks source link

Not Work #105

Closed milandzuris closed 4 months ago

milandzuris commented 5 months ago

Checklist:

Browser and Operating System: W10 Chrome, Edge.

Description of problem: https://imgur.com/a/M5h2uxs52

ildar170975 commented 5 months ago
  1. Change the issue title to reflect the actual issue.
  2. Add a clear test description of the issue.
  3. No code provided. Provide a properly formatted code for the problem card only.
  4. The posted link follows to a GIF which is rather unclear; also, it contains plenty of other UI elements. Suggest to create a separate view to demonstrate the issue clearly.

Just a warning: such issues - seemingly made in a haste - will be closed if not fixed correspondingly.

ildar170975 commented 4 months ago

No feedback from OP, closing.

milandzuris commented 4 months ago
  1. Change the issue title to reflect the actual issue.
  2. Add a clear test description of the issue.
  3. No code provided. Provide a properly formatted code for the problem card only.
  4. The posted link follows to a GIF which is rather unclear; also, it contains plenty of other UI elements. Suggest to create a separate view to demonstrate the issue clearly.

Just a warning: such issues - seemingly made in a haste - will be closed if not fixed correspondingly.

OO sorry

if I write the password, it won't unlock

Cfg:

      - type: custom:restriction-card
        duration: 0
        locked_icon: ''
        unlocked_icon: ''
        restrictions:
          pin:
            code: test
        card:
          type: tile
          entity: input_button.node_red_restart
          name: Reboot
          icon: mdi:restart
          color: orange
ildar170975 commented 4 months ago

This means that the card is immediately locked:

duration: 0

Change this to any other positive value.

ildar170975 commented 4 months ago

Close the issue if solved.

milandzuris commented 4 months ago

This means that the card is immediately locked:

duration: 0

Change this to any other positive value.

it works thx