lovelace-mushroom
lovelace-mushroom copied to clipboard
[mushroom-lock-card]: Confirmation on unleash button
Requirements
- [X] I have updated Mushroom to the latest available version
- [X] I did a search to see if there is a similar issue or if a pull request is open.
Is your feature request related to a problem?
No
Describe the solution you'd like
When clicking on the unleash icon, the door is triggered for opening without any confirmation. If you're connected remotely, then you're not able to do anything, and the door stays open. It would be great to have to ability to enable a confirmation for such button, so it avoid opening remotely by mistake while scrolling in the interface.
Describe alternatives you've considered
I tried to see if I could do it myself in the code, but I didn't manage. An alternative is to totally remove the button.
Additional context
No response
I encountered the same problem when I once unlocked my external gate which can only be locked again manually/physically.
You can add a confirmation text requiring you to press another button again to confirm the action.
Here is how I did it with a mushroom entity card:
type: custom:mushroom-entity-card
tap_action:
action: call-service
confirmation:
text: Are you sure?
service: automation.trigger
target:
entity_id: automation.A.unlocked_external_door
Hope that helps!
+1. tap_action
is very limited workaround for the lock card, it's much easier to use the icons.
Even just adding a vibration on press would help with this, but that would only help on mobile devices.