button-card icon indicating copy to clipboard operation
button-card copied to clipboard

Multiple Actions on Tap

Open maniscalcojohn opened this issue 3 years ago • 4 comments

Is it possible to have multiple actions on a tap? I'd like to be able to navigate and switch an input_select on a button press.

maniscalcojohn avatar Jun 13 '21 23:06 maniscalcojohn

You should find a way to do this in this comment: https://github.com/custom-cards/button-card/issues/314#issuecomment-616258963

RomRider avatar Jun 14 '21 05:06 RomRider

Will that work to navigate? I'm trying to call a service and navigate on a single button

maniscalcojohn avatar Jun 16 '21 05:06 maniscalcojohn

Yes, use navigate as the action and call your service like in the example linked in any other yaml key.

RomRider avatar Jun 16 '21 05:06 RomRider

Whilst that works, could the tap_action be an object list rather than an object. I'm wanting a button to toggle multiple automations at once. Yes I know I can do it another way, but being able to just define multiple entities inside a button would be great. 😄

borpin avatar Mar 25 '22 11:03 borpin