Switch secured by a PIN

Sometimes we need a switch that we also want to be secured by a PIN or PINCARD - opening the garage, doors, or simply to avoid accidental switching.

For accidental switching all actions can have a confirm option.

https://www.home-assistant.io/dashboards/actions/#confirmation

Screenshot 2024-01-19 at 21-09-23 Actions

For actual PIN entry there’s this custom card:

1 Like

In my opinion this solution is uncomfortable. It should be generic switch with configurable action for example pin_secured where this pin should be in secrets file

Use the tag integration to read your card after you install a tag reader for your device.
I also built this thing.
https://github.com/SirGoodenough/HA_Blueprints/blob/1f7d701a1a83da90f469fc981d5162483a0534c5/Automations/keypad_5_button_cipher_to_turn_on_something.md.