Document statistic selector (#39604)

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
karwosts 2025-06-19 11:05:31 -07:00 committed by GitHub
parent 1beb5a06ac
commit eb1bc80b1b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 21 additions and 0 deletions

View File

@ -45,6 +45,7 @@ The following selectors are currently available:
- [RGB color selector](#rgb-color-selector)
- [Select selector](#select-selector)
- [State selector](#state-selector)
- [Statistic selector](#statistic-selector)
- [Target selector](#target-selector)
- [Template selector](#template-selector)
- [Text selector](#text-selector)
@ -1313,6 +1314,26 @@ prettified name shown in the frontend).
For example: `heat_cool`.
## Statistic selector
The statistic selector selects the statistic ID of an entity that records
long-term statistics. It may resemble an entity ID (like `sensor.temperature`),
or an external statistic ID (like `external:temperature`).
![Screenshot of a statistic selector](/images/blueprints/selector-statistic.png)
{% configuration statistic %}
multiple:
description: >
If set to true, the selector returns a list of statistic IDs.
type: boolean
default: false
required: false
{% endconfiguration %}
The output of this selector is a string representing a statistic ID, or
a list of statistic IDs if `multiple` is set to `true`.
## Target selector
The target selector is a rather special selector, allowing the user to select

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB