
The input text helper in Home Assistant holds a piece of text that can be changed from the frontend 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.
Devices & entitiesΒΆ
Spook does not provide any new devices or entities for this integration.
ActionsΒΆ
Spook adds the following new actions to your Home Assistant instance:
Create an input textΒΆ
Creates a new input text helper, the same as adding one on the helpers page. Great for a script that needs to hold on to some text only for itself: it can make one, and delete it again when it is done.
Action properties | |
|---|---|
Input text: Create an input text π» | |
| |
No targets | |
Optional, the | |
Newly added action | |
The minimum length has to stay below the maximum, and an initial value has to fit between them; a call that does not is refused.
Without an input_text_id, the entity ID follows the name, as it does in the UI, and gets a number at the end if that name is already taken. With an input_text_id, you get exactly that entity ID or an error: one that is already taken is refused, rather than quietly given a number at the end.
1 2 3 4 5 6action: input_text.create data: name: "Last message" input_text_id: last_message max: 255 response_variable: created
The new input textβs entity ID is then in {{ created.entity_id }}.
Delete an input textΒΆ
Deletes one or more input text helpers made in the UI or with the action above, disabled ones included. Input texts set up in YAML can only be removed from the YAML.
Everything in the list is checked first: if one of them cannot be deleted, none of them are.
Action properties | |
|---|---|
Input text: Delete an input text π» | |
| |
No targets | |
No response | |
Newly added action | |
Action data parameters | |||
|---|---|---|---|
Attribute | Type | Required | Default / Example |
| Yes |
|
RepairsΒΆ
Spook has no repair detections for this integration.
Use casesΒΆ
Some use cases for the enhancements Spook provides for this integration:
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.
Blueprints & tutorialsΒΆ
There are currently no known blueprints or tutorials for the enhancements Spook provides for this integration. If you created one or stumbled upon one, please let us know in our discussion forums.
Feature requests, ideas, and supportΒΆ
If you have an idea on how to further enhance this integration, for example, by adding a new action, entity, or repairs detection; feel free to let us know in our discussion forums.
Are you stuck using these new features? Or maybe youβve run into a bug? Please check the Support page on where to go for help.