Feature Request - Button/Switch Safety

Hello,

I think that we need to have an ability to add some safety to some of the switches and toggles. For instance, I have a switch that is controlling power to my small server stack (NAS, Servers, routers etc.) and the other night I accidently hit the toggle and it turned everything off. Having a flag to signal:

  • Switch/toggle needs to have a double confirmation to change the state,
  • Exclude from automation systems,
  • Remove the switch toggle option and only display other information
    etc.

I would still like to have this switch as it shows electrical draw/consumption, voltage etc.

you could hide the switch from your frontend, then just use automations to switch the switch.

That way you can do things like wait 1 minute before actually switching off

There’s a custom UI Lovelace confirmable switch control: https://github.com/andrey-git/home-assistant-custom-ui/blob/master/docs/features.md#confirmable-controls

@tom_l, the link you provided is for custom-ui, for LL you can use

2 Likes

Thank you for the suggestions, but I was thinking something more along the lines of adding the “safety” aspect of it when you define the devices IP address: i.e. in this case with inside my switch.yaml:

  - platform: tplink
      host: 192.168.2.105
      safety_lock: true

Or creating a new config/yaml file that I would store in such as safety.yaml file where it lists out all the device names that I want/need to add some additional safety around.

The UI ways seems to be likely to break more easily in future updates, but I can defiantly use this for the time being. I will look more deeply into @VDRainer link for the Love Lace UI thank you for the suggestions.

1 Like

i would like this feature as well :slight_smile: