Using HA Alarm panel to control access to non-Alarm entities?

I’ve been scratching around to find a suitable solution to solve a entities card-access problem. Basically, I have an entity card where all the automation status’ are listed, with the ability to toggle them off and on, as needed. While I could perhaps use different user profiles to hide or reveal this card, it would be nice to be able to select the icon, then be prompted with a keypad to enter a PIN to access the page.

I see HA has a sexy alarm panel card, but it needs a specific type of entity. I was wondering if it would be possible to create some kind of helper flag that ‘looks’ like a security entity? (If so, I could simply enable the automation-control page using the flag to either display it or hide it as appropriate.)

Just kicking the idea around, and would not be offended if I was told it was completely out of the question and I was an idiot for even asking.

Check a custom:restriction-card as a possible alternative

3 Likes

I was thinking the same as IIdar, but was also going to suggest combining the restriction card with a browser_mod popup

tap_action:
  action: fire-dom-event
  browser_mod:
    service: browser_mod.popup
    data:
      content: 
       type: custom:restriction-card
1 Like

Thanks, guys.

Actually, displaying (or not displaying) the ‘automation control’ card, based on some kind of boolean toggle isn’t the real problem. I already do that on my main dashboard - I hide the ability to see things if neither of us are ‘at home’, so that pet-sitters and guests can’t see certain things if we’re not in the house.

However, I was just wondering if I could leave the option there, but clicking on the option would take you to a keypad first. Once you enter the pin, a toggle is set and then the card would be displayed. (Basically, I don’t want my wife accidentally turning off automations, and then claiming the system doesn’t work! :grinning:.)