Select entity: add state (#34792)

This commit is contained in:
c0ffeeca7 2024-09-18 09:03:11 +02:00 committed by GitHub
parent c7b7f88555
commit 506dcd4221
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 3 deletions

View File

@ -11,16 +11,25 @@ ha_codeowners:
ha_integration_type: entity
---
Keeps track on `select` entities in your environment, their state, and allows
The **Select** {% term integration %} keeps track of the `select` {% term entities %} in your environment, their state, and allows
you to control them. This integration allows other integrations to offer
a limited set of selectable options for the entity.
{% include integrations/building_block_integration.md %}
## The state of a select entity
The state of a select entity is the value of the currently selected option.
<p class='img'>
<img src='/images/integrations/select/state_select.png' alt='Screenshot showing the state of a select entity in the developer tools' />
Screenshot showing the state of a select entity in the developer tools.
</p>
## Actions
The select entity exposes additional actions to control the entity in, for example,
automation or scripts. These actions can be created via the UI, but are
The select {% term entity %} exposes additional {% term actions %} to control the entity in, for example,
{% term automation %} or {% term scripts %}. These actions can be created via the UI, but are
also available in YAML (for which examples are provided below).
### Action `select.select_first`

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB