Make it clear from a sensor's properties if it represents measurements #557
-
Proposal:Make it clear from a sensor's properties if its state represents a present time measurement:
If there is a need in the future, additional state classes may be added to also distinguish between sensors representing aggregated historical data, future predictions, or other types of data.
Initial proposal: Background:Device classes such as
Differentiating between those sensors which represent a measurement and those which don't will be highly useful in order to automatically make a reasonable selection of sensors to include in long-term statistics. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Current device classes documentation I agree. The goal of a device class is that given a state of a certain device class, we know how to interpreted the data. Limit the existing sensor device classes to represent the current value except for the following two:
|
Beta Was this translation helpful? Give feedback.
-
|
This solution is implemented in home-assistant/core#50063:
|
Beta Was this translation helpful? Give feedback.
This solution is implemented in home-assistant/core#50063: