Request/idea for "button restrictions" (module?) #1740
Replies: 4 comments 1 reply
-
|
Your needs can be met using automation or scripts combined with the Visibility function. For example 3.Set the second sub-button to toggle the computer power. The contents of script.protect are:
This way, the first click will release the protection mode, and a real toggle will appear. |
Beta Was this translation helpful? Give feedback.
-
|
Yeah, that would work, I’ve done something similar in other places too. But I’d call that more of a workaround than a proper solution. I also don’t really want to clutter up my system with input_booleans/helpers. I’m more a fan of components being able to do that on their own especially since these locks/restrictions are only relevant in the UI and have no use at all in the backend (at least for me) |
Beta Was this translation helpful? Give feedback.
-
|
Hi! What you're looking for is the confirmation dialog, it displays a pop-up asking if you want to trigger an action or not. This feature is built-in and works with Bubble Card: https://www.home-assistant.io/dashboards/actions/#confirmation |
Beta Was this translation helpful? Give feedback.
-
|
Yeah, I know that too, but the point is actually to have a subtle solution. But hey, if that’s apparently not interesting enough, then we can just close this and I’ll have to think of something else |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I’ve used the Restriction Card in the past (which unfortunately has 2-3 issues and it’s no longer actively developed), and I’d like to have something similar for the Bubble Card.
Does anyone know if it’s easy to implement?
The background is that I have a couple of switches which definitely shouldn’t flip by accident. The main one I use is to turn my PC on and off. But I also have smart outlets like for my rack or pump.
One workaround is to go through the "more info" dialog, at least then you have to click again before you get to the switch. But visually, that’s not great and it’s also not user-friendly
Here’s my idea/desired implementation:
(I don’t know if there is a need for the PIN/password option, probably too complicated to implement anyway)
Beta Was this translation helpful? Give feedback.
All reactions