lovelace-mushroom icon indicating copy to clipboard operation
lovelace-mushroom copied to clipboard

[mushroom-lock-card]: Confirmation on unleash button

Open lpercetti opened this issue 1 year ago • 3 comments

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

lpercetti avatar Apr 05 '23 19:04 lpercetti

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!

SpaceFahad avatar Apr 17 '23 13:04 SpaceFahad

+1. tap_action is very limited workaround for the lock card, it's much easier to use the icons.

chatziko avatar Jun 26 '23 12:06 chatziko

Even just adding a vibration on press would help with this, but that would only help on mobile devices.

jasii avatar Nov 04 '23 03:11 jasii