Add blog post about new sensor state classes#1023
Add blog post about new sensor state classes#1023emontnemery merged 8 commits intohome-assistant:masterfrom
Conversation
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com> Co-authored-by: Tom Brien <TomBrien@users.noreply.github.com>
blog/2021-08-12-state_class_total.md
Outdated
| If the sensor's state class is `STATE_CLASS_TOTAL`, the last_reset attribute can | ||
| optionally be set to gain manual control of meter cycles; each time last_reset changes | ||
| the corresponding value is used as the zero-point when calculating `sum` statistics. | ||
| If last_reset is not set, the sensor's value when it was first added is used as the |
There was a problem hiding this comment.
"first added" -> when looking at the examples it looks like it uses the last state as the zero-point, not the first state.
blog/2021-08-12-state_class_total.md
Outdated
| If last_reset is not set, the sensor's value when it was first added is used as the | ||
| zero-point when calculating `sum` statistics. | ||
|
|
||
| Example of `STATE_CLASS_TOTAL` without last_reset: |
There was a problem hiding this comment.
These are great examples and shouldn't be in a blog post but in the docs instead.
There was a problem hiding this comment.
I think they can be both here and in the docs?
Co-authored-by: Franck Nijhof <git@frenck.dev>
|
This page needs an update as well: |
|
Isn't this merged to early as it's not part of a official release yet. And it Doesn't tell that's available as of version 2021.9.0 |
|
Everything on the dev documentation site should reflect the current state of the development branches. |
Proposed change
Add blog post about new sensor state classes
Background in home-assistant/core#54523
Type of change
Additional information