Salut,
C’est ces options qui faut éditer.
func
Options
Name |
Since |
Description |
raw |
v1.0.0 |
Displays all the state history as known by Home Assistant |
avg |
v1.0.0 |
Will return the average of all the states in each bucket |
min |
v1.0.0 |
Will return the smallest state of each bucket |
max |
v1.0.0 |
Will return the biggest state of each bucket |
last |
v1.0.0 |
Will return the last state of each bucket |
first |
v1.0.0 |
Will return the first state of each bucket |
sum |
v1.0.0 |
Will return the sum of all the states in each bucket |
median |
v1.0.0 |
Will return the median of all the states in each bucket |
delta |
v1.0.0 |
Will return the delta between the biggest and smallest state in each bucket |
diff |
v1.4.0 |
Will return the difference between the last and the first entry in the bucket |
group_by
Options
Name |
Type |
Default |
Since |
Description |
func |
string |
raw |
v1.0.0 |
See func |
duration |
string |
1h |
v1.0.0 |
If func is not raw only. It builds buckets of states over duration period of time. Doesn’t work for months. Eg of valid values: 2h , 1d , 10s , 25min , 1h30 , … |