Shelly type `toggle` and confirmation pop-up?

Hello everyone,
I am using a Shelly 1 as a garage door opener.

Of course HA thinks of it as a switch. But it it really a toggle device. So it must not be left on or off but only be toggled. Appliance type toggle does not seem to exist. Is there a different solution?

In addition, as I do not want anybody to mistakenly open the garage door (as I have no sensor to report that the door is open), is it possible to have a confirmation screen when toggling? Kind of like an “are you sure you want to open the garage door” confirmation pop-up?

Thank you all
Alex :slight_smile:

@tom_l : Thank you, that’s a nice read, but unfortunately not what I was looking for. Is it not possible to define the Shelly as a toggle device rather than a switch? I would like to do without the auto-off timer.

You can use a script to turn it on and off. To open the garage call the script.

But I don’t really need or want a script.

The Shelly is already setup as a toggle device. So if I open the WebUI I can toggle the door.

But instead of the on-off-switch in Lovelace I would like a simple “toggle” button that will toggle and not turn on-off.

If that is not possible, then I could of course use a http command to send a toggle command, but that again is unnecessarily “complicated”. Code should be simple.

If all fails, I will use the auto-off timer of the Shelly, but it is not a clean setup.

Scripts integrate into Lovelace. You can “push” it. Or use a button card.

I am aware, but I wanted to work without a script this time. It is not really a “script-worthy” task :wink:

Is there a way to protect a switch from accidental switching?
It would be nice to make that switch triggerable only after confirmation.

I was going for a global setting.

Problem with lovelace card solutions is that they won’t work dir the automatically created dashboard or cards that use auto entities.

The entities themselves need the protection setting.

So, @AleXSR7001, I understand it has been a while but did you find anything in the end? Or any workaround?