Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Enhanced integrations

Input select

Offers a selection of the finest options.

The Home Assistant input select icon



The input select helper in Home Assistant allows the user to define a list of options that can be controlled via the frontend and can be used within conditions of an automation. The frontend can display a dropdown or a list of buttons. Changes to the dropdown or list of buttons generate state events. These state events can be utilized as automation triggers as well.

Spook adds some new actions to the input select integration, which allow one to create and delete input selects, to select a random option, and to shuffle or sort the list of options in the input select.

Screenshot of the Actions tool, listing the new actions for input select.

Figureย 1:Spook adds a bunch of new actions to the input select helper integrations.

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 selectยถ

Creates a new input select (dropdown) helper, the same as adding one on the helpers page. Great for a script that needs a choice only for itself: it can make one, and delete it again when it is done.

Action properties

Action

Input select: Create an input select ๐Ÿ‘ป

Action name

input_select.create

Action targets

No targets

Action response

Optional, the entity_id of the new input select

Spook's influence

Newly added action

Tools

Try this action Open your Home Assistant instance and show the Actions tool with a specific action selected.

Action data parameters

Attribute

Type

Required

Default / Example

name

string

Yes

Movie night

input_select_id

string

No

movie_night

options

list of strings

Yes

["Comedy", "Horror", "Drama"]

initial

string

No

Horror

icon

string

No

mdi:movie-open

The options need at least one entry, and each option can only be in it once. An initial option has to be one of the options; one that is not is refused.

Without an input_select_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_select_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.

Delete an input selectยถ

Deletes one or more input select helpers made in the UI or with the action above, disabled ones included. Input selects 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

Action

Input select: Delete an input select ๐Ÿ‘ป

Action name

input_select.delete

Action targets

No targets

Action response

No response

Spook's influence

Newly added action

Tools

Try this action Open your Home Assistant instance and show the Actions tool with a specific action selected.

Action data parameters

Attribute

Type

Required

Default / Example

entity_id

string | list of strings

Yes

input_select.movie_night

Select random optionยถ

Select a random option from the list of options in the input select.

Screenshot of the input select random action on the Tools page.

Action properties

Action

Input select: Select random option ๐Ÿ‘ป

Action name

input_select.random

Action targets

Yes, input_select entities

Action response

No response

Spook's influence

Newly added action

Tools

Try this action Open your Home Assistant instance and show the Actions tool with a specific action selected.

Action data parameters

Attribute

Type

Required

Default / Example

options

list of strings

No

Defaults to all available options

The options attribute is a list of strings, containing the options to select a random one from. If not provided, all available options configured in the input select are used.

Reverse optionsยถ

Reverses the order of the available options in the input select, back to front, and keeps the current option selected.

This is not a sort: the options keep the order they were in, turned around. A list that grows at the end, like a play history, then has its newest entry at the top.

Action properties

Action

Input select: Reverse options ๐Ÿ‘ป

Action name

input_select.reverse

Action targets

Yes, input_select entities

Action response

No response

Spook's influence

Newly added action

Tools

Try this action Open your Home Assistant instance and show the Actions tool with a specific action selected.

Shuffle optionsยถ

Shuffles the list of available options in the input select and keeps the current select options selected.

Screenshot of the input select shuffle action on the Tools page.

Action properties

Action

Input select: Shuffle options ๐Ÿ‘ป

Action name

input_select.shuffle

Action targets

Yes, input_select entities

Action response

No response

Spook's influence

Newly added action

Tools

Try this action Open your Home Assistant instance and show the Actions tool with a specific action selected.

Sort optionsยถ

Sorts the list of available options in the input select and keeps the current select options selected.

Screenshot of the input select sort action on the Tools page.

Action properties

Action

Input select: Sort options ๐Ÿ‘ป

Action name

input_select.sort

Action targets

Yes, input_select entities

Action response

No response

Spook's influence

Newly added action

Tools

Try this action Open your Home Assistant instance and show the Actions tool with a specific action selected.

Repairsยถ

Spook has no repair detections for this integration.

Use casesยถ

Some use cases for the enhancements Spook provides for this integration:

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.