What type of widget to use for momentary button?

I have a momentary button (via Konnected.io) in HA that pushes the open/close button of my overhead door. In Lovelace (and whatever the old UI was called) it seems to respect the fact that its momentary and automatically turns itself off after the configured 500ms.

In HADashboard I can manipulate the switch just fine but I have to push the button twice (on, off) for each momentary press.

Is there a different widget type I should be using, or is there a way to add a momentary option to the ‘switch’ widget type?

overhead_door_button:
widget_type: switch
entity: switch.overhead_door_button
title: Overhead Door Button
icon_on: mdi-radiobox-marked
icon_off: mdi-radiobox-blank

You could try a scene widget - its basically the same as a awitch except it expects to be momentary. It doesn’t work based on the state of the entity, but it does automatically tuen itself off after a short configurable interval.

or just use the momentary setting on the switch widget :wink:

momentary - after the set amount of milliseconds the old state returns (momentary button)

Which page is that on in the documentation?
I looked here:
https://appdaemon.readthedocs.io/en/stable/DASHBOARD_CREATION.html#switch
but came up empty

its not in the latest doc, but in the dev docs.
but the option was already there just not documented.

Okay so for anyone else looking at this in the future that is:
https://appdaemon.readthedocs.io/en/dev/DASHBOARD_CREATION.html#switch

So is that a yes/no, true/false, 1/0 kinda thing?
I assume
momentary: 1

Is how it should go.

no its

momentary: 100 # ms till it shuts off again

Under the covers that’s exactly what the scene widget is doing - using the momentary argument.

1 Like