Integrations

Input text

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

The input text helper in Home Assistant holds a piece of text that can be changed from a dashboard or from automations, optionally kept to a length or a pattern, or hidden like a password.

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

Actions

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

Create an input text

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

Some text only matters for a while. The last message a script sent, the name of the guest staying this weekend, a note for whoever comes home first. Made by hand, that helper stays on the helpers page long after. Made with this action, the script makes it when it needs it, and deletes it when it is done.

How to use it

  1. Open the automation or script that should make the helper, and select Add action.
  2. Search for create an input text, and select Input text: Create an input text 👻.
  3. Fill in Name, like Last message.
  4. Optionally, set Input text entity ID to pick the entity ID yourself, and any of Initial value, Minimum length, Maximum length, Pattern, Mode, Icon and Unit of measurement.
  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 text 👻 picked and filled in with an example.
What Try this action opens, filled in with an example.

Delete an input text

Deletes one or more input text helpers.

The other half of Create an input text: the script that made a helper cleans it up again. It works on any input text 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 text, and select Input text: Delete an input text 👻.
  3. Under Entity ID, choose the input texts 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 text 👻 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 text helper it needs, and clean it up again afterwards, so the helpers page only has input texts 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.