Closed cbarreholm closed 1 year ago
By setting the state_class="measurement" in accordance with https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics we can leverage the long term statistics of Home Assistant.
state_class="measurement"
Here is an example where I have configured three Xiamo Mi Flora devices and plotting the temperature over time. Before making the change in this change I was not able to pick those entities, due to the missing state_class.
state_class
Agree, this is a needed change :) Thanks for the PR!!
By setting the
state_class="measurement"
in accordance with https://developers.home-assistant.io/docs/core/entity/sensor/#long-term-statistics we can leverage the long term statistics of Home Assistant.Here is an example where I have configured three Xiamo Mi Flora devices and plotting the temperature over time.
Before making the change in this change I was not able to pick those entities, due to the missing
state_class
.