custom-cards / button-card

❇️ Lovelace button-card for home assistant
MIT License
1.91k stars 231 forks source link

new buttom entity action #531

Open Protoncek opened 2 years ago

Protoncek commented 2 years ago

Is your feature request related to a problem? Please describe. HA has new entity called "button". Currently "toggle" action of button card doesn't trigger/turn on this entity as it does in the case of "switch" entity.

Describe the solution you'd like Something like "default_action: press", or "trigger".... anything simple, i guess.

Describe alternatives you've considered A working solution/bypass is to call "button.press" service.

Additional context It would be nice if button trigger would be achieved similar as switch entity.

suneworld commented 2 years ago

Just about to FR the same issue and found out that Protoncek's workaround works great. Good job!