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

Multiple PIN codes #67

Open
kalhimeo opened this issue Dec 5, 2021 · 1 comment
Open

Multiple PIN codes #67

kalhimeo opened this issue Dec 5, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@kalhimeo
Copy link

kalhimeo commented Dec 5, 2021

Is your feature request related to a problem? Please describe.
Not related to a problem, just that at the moment we can only specify one unique pin code per card

Describe the solution you'd like
Change the code section to make it a list of strings instead of just a string

Describe alternatives you've considered
N.A.

Additional context
When multiple users are using the wall tablet, it's nice that that everyone can have his own PIN code (ie. to disable the alarm system).

Thank you very much for considering the feature request :-)

@Fusseldieb
Copy link

Fusseldieb commented Nov 8, 2023

A workaround is to create conditional entities based on the logged user.

Let's say you have three users. Create a card with three alarm entities (the same one three times). Then, using the YAML code editor, conditionally show only the one for the logged user. Do that for all three. Done that, I think you can just assign a pin to each one and done.
As a "bonus" you'll see that just the right pin for the right user works, as with an array all codes would be valid for all users (which increases the "risk*").

* Protecting something in the frontend isn't really a protection anyways. Someone with a little experience with JS can click right through, regardless of which pin you set.

@ildar170975 ildar170975 added the enhancement New feature or request label Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants
@Fusseldieb @kalhimeo @ildar170975 and others