iantrich / restriction-card

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

Restriction bypassed by clicking above locked entity #66

Open sparkydave1981 opened 2 years ago

sparkydave1981 commented 2 years ago

Checklist:

Release with the issue: HA 2021.11.2 Last working release (if known):

Browser and Operating System: Chrome, Windows 8

Description of problem:

If the mouse is clicked / tap is done above the locked entity then the restriction is bypassed and the entity can still be controlled.

image

Javascript errors shown in the web inspector (if applicable):

Additional information:

tomlut commented 2 years ago

A clearer image of where to click to bypass the restriction, just on the radius of the grey circle:

Untitled

type: entities
entities:
  - card:
      entity: switch.lounge_dehumidifier
      name: Lounge Dehumidifier Power Monitor
    condition:
      entity: input_boolean.unlock_restrictions
      value: 'off'
    restrictions:
      pin:
        code: 3141
    row: true
    type: custom:restriction-card
    name: Lounge Dehumidifier Plug
ildar170975 commented 1 year ago

Seems to be same - https://github.com/iantrich/restriction-card/issues/71

lsaadeh commented 1 year ago

I am also having this issue.. came to report it.. seems like its been a while since its been reported.. is this card still maintained?

ildar170975 commented 5 months ago

HA 2024.1 1.2.9 The behaviour does not appear anymore. Closed.

FALSE ALARM. Managed to reproduce. Reopened.

изображение

type: entities
entities:
  - entity: input_boolean.test_boolean
  - type: custom:restriction-card
    card:
      entity: input_boolean.test_boolean
    row: true