Securing Switch Buttons: Password Protection and Warnings?

Hello everyone!

I would like to inquire if there is a method to secure a switch button in Home Assistant with a password. Specifically, I want to protect a device on the dashboard from accidental toggling. For instance, I have a 3D printer in operation, and I wish to prevent unintended interruptions. Is there a way to add password protection or a warning before turning off the button?

Best Regards

Have a look at the custom restriction card in HACS:

Thank you very much, that was exactly what I was looking for.