jimz011 / homekit-infused

Homekit Infused 5 2023
https://jimz011.github.io/homekit-infused/
Other
873 stars 137 forks source link

Feature request: Add passcode option to a button that supports a lock #202

Open GerdBlomb opened 1 year ago

GerdBlomb commented 1 year ago

I'am trying for days to have a button or a section which is protected by a simple passcode. No high security area. Just a simple protection.

One approach could be:

Have a button with

            lock:
              enabled: true

and add

            lock:
              enabled: true
              passcode: 1234554321

In case of passcode has been set: button will only be unlocked when the user enters the code for that button. The input box could be the same panel as for the alarm panel. Code could only be numbers. That's sufficent.

It should also be possible to reference the code in the secrets.yaml

This could be a great feature because HA lacks the possibilty to have a password locked section. There are two custom cards for such a feature but they can not be used with hki because one can not place an addon on a custom card.

Best regards!