mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Document energy_date_selection
feature of Statistic card (#37650)
* Update statistic.markdown * Update statistic.markdown * Update statistic.markdown
This commit is contained in:
parent
03ccb08e96
commit
1aa8a7436f
@ -64,6 +64,10 @@ footer:
|
||||
required: false
|
||||
description: Footer widget to render. See [footer documentation](/dashboards/header-footer/).
|
||||
type: map
|
||||
collection_key:
|
||||
required: false
|
||||
description: "If using `period: energy_date_selection`, you can set a custom key to match the optional key of an `energy-date-selection` card. This is not typically required, but can be useful if multiple date selection cards are used on the same view. See [energy documentation](/dashboards/energy/#using-multiple-collections)."
|
||||
type: string
|
||||
{% endconfiguration %}
|
||||
|
||||
## Example
|
||||
@ -81,7 +85,7 @@ stat_type: change
|
||||
|
||||
## Options for period
|
||||
|
||||
Periods can be configured in 3 different ways:
|
||||
Periods can be configured in 4 different ways:
|
||||
|
||||
### Calendar
|
||||
|
||||
@ -177,3 +181,16 @@ period:
|
||||
seconds: -10
|
||||
stat_type: change
|
||||
```
|
||||
|
||||
### Dynamic date selection
|
||||
|
||||
When placed on a view with an Energy date selection card, the statistic card can be linked to show data from the period selected on the date selection card.
|
||||
|
||||
Example of a period from the date selector:
|
||||
|
||||
```yaml
|
||||
type: statistic
|
||||
entity: sensor.energy_consumption
|
||||
period: energy_date_selection
|
||||
stat_type: change
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user