The select integration provides a way to select a value from a list of options. It differs from the input select helper in that the user does not directly create it but rather by other integrations.
Spook extends the select integration with an option to select a random option from the options offered by the select entity.
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:
Select random optionΒΆ
Select a random option from the list of options in the input select.
Action properties | |
---|---|
Action | Select: Select random option π» |
Action name | select.random |
Action targets | Yes, select entities |
Action response | No response |
Spook's influence | Newly added action |
Developer tools | Try this action |
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.
Example actions in YAML
1 2 3
action: select.random target: entity_id: select.effect
1 2 3 4 5 6 7 8
action: select.random target: entity_id: select.color data: options: - red - green - blue
RepairsΒΆ
Spook has no repair detections for this integration.
Uses casesΒΆ
Some use cases for the enhancements Spook provides for this integration:
- The random select can be useful, for example, choosing a random preset or playlist from a list of options. This can add some surprise factor to some automations.
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.
Features 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.