Switch "require confirmation" flag

Would be nice if it were possible to add an optional config setting to switches whereby you must confirm turning on/off when pressing in the HA dashboard. Potentially configured via lovelace rather than on the switch itself.

There have been a couple of (silly) occasions where i have accidentally flipped the wrong switch in the dash for one or two devices and not noticed i’d hit it for a little while (for example… accidentally hitting the switch for the power socket connected to the washing machine half way through a cycle…)

1 Like

Agreed - this would be very handy. Interesting to see there’s something similar for Lovelace, but HADashboard on a tablet is where this would be very useful.

I guess one option, if you can cope with a short delay, would be to use an input_boolean.

You could switch it on with a dashboard button, at which point it would turn red, but you could change your mind and switch it off again quickly. Only if you left it on for, say, 10 seconds, would an automation kick in that actually performed the action.

Mmm. I might do something like that myself. Not as good as asking for proper confirmation, but still…

just like to bump this. maybe OP could rename it to Add Toggle Lock, which would fit the bill more precisely.

We have 2 custom cards, (The one listed above by Thomas, which is now deprecated) and Ian’s Restriction card

Still, if one would want a pure core HA instance, we’d need this to be added to the core options for the entities that can be toggled/switched.

Please consider adding to core, since this is not only for ‘silly’ mistakes, it would be of fundamental added value to the core toolbox.