Integrations

Input button

Spook adds actions to create and delete input button helpers in Home Assistant from your automations and scripts, without a trip to the helper settings.

The input button helper in Home Assistant is a button to press, from a dashboard or from automations. It has no on or off, only the moment it was last pressed, which makes it a trigger you can put on a dashboard.

Spook adds actions to the input button integration to create and delete these helpers from automations and scripts.

Actions

Spook adds two actions for input buttons. You find them wherever you add an action, marked with a 👻.

Create an input button

Creates a new input button helper, the same as adding one on the helpers page.

Some buttons are only needed for a while. A "the guests have left" button during a party, a "done" button for a chore that only exists this week. Made by hand, it stays on the helpers page forever. Made with this action, the script makes it when it is needed, and deletes it when it is done.

How to use it

  1. Open the automation or script that should make the button, and select Add action.
  2. Search for create an input button, and select Input button: Create an input button 👻.
  3. Fill in Name, like Doorbell.
  4. Optionally, set Input button entity ID to pick the entity ID yourself, and Icon.
  5. Select Save.

Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.

The Actions tool with Create an input button 👻 picked and filled in with an example.
What Try this action opens, filled in with an example.

Delete an input button

Deletes one or more input button helpers.

The other half of Create an input button: the script that made a button cleans it up again. It works on any input button made in the UI as well, disabled ones included.

How to use it

  1. Open the automation or script that should do the cleaning up, and select Add action.
  2. Search for delete an input button, and select Input button: Delete an input button 👻.
  3. Under Entity ID, choose the input buttons to delete.
  4. Select Save.

Just want to see it work? Try this action opens it in your Home Assistant, ready to run once. Mind that it really deletes.

The Actions tool with Delete an input button 👻 picked and filled in with an example.
What Try this action opens, filled in with an example.

Use cases

What people use this for:

  • Let a script make the button it needs, and clean it up again afterwards, so the helpers page only has buttons you actually use.

Missing something here?

An action, an entity or a repair this integration should have? Say so. Stuck, or found a bug? There is help.