How to create my own stateless Button entity?

I currently use a bunch of input_boolean entities to represent push buttons in Lovelace. When pressed they toggle their state to true and trigger an automation (actually Node Red flows in my case). This automation does its thing and also resets the input_boolean state to false.

I would now like to replace this convoluted construct with the new stateless button entities available since HA 2021.12. But I find myself unable to create such button entities through YAML or through Node Red’s HA entity node. It looks like they can currently only be created within integrations as described in the dev docs for Button Entities.

What I’m looking for is something like an input_button entity. But it’s non-existant.
Am I missing something here?
Or am I simply too fast, too early, too demanding? :stuck_out_tongue_winking_eye:

Nope. There is no template/generic button. At least not yet. The only option you have to create your own is MQTT.

1 Like

input_button will come in 2022.2

4 Likes