I have several template sensor created to work with the energy dashboard, work without problems and looks like it still works. But on the energy configuration page I get this info
measurement, the state represents a measurement in present time, for example a temperature, electric power, the value of a stock portfolio, etc. For supported sensors, statistics of hourly min, max and average sensor readings or of the accumulated growth or decline of the sensor’s value since it was first added is updated hourly.
total_increasing, a monotonically increasing total, e.g. an amount of consumed gas, water or energy. When supported, the accumulated growth of the sensor’s value since it was first added is updated hourly.
For sensors with state_class STATE_CLASS_TOTAL_INCREASING, a decreasing value is interpreted as the start of a new meter cycle or the replacement of the meter. It is important that the integration ensures that the value cannot erroneously decrease in the case of calculating a value from a sensor with measurement noise present. This state class is useful for gas meters, electricity meters, water meters etc.
The sensor’s state when it’s first added to Home Assistant is used as an initial zero-point. When a new meter cycle is detected the zero-point will be set to 0. Please refer to the tables below for how this affects the statistics.
To eliminate the warning message " Unsupported status class. The following objects do not have the expected 'total_increasing’state class: "
You need to specify total_increasing instead of measurement. This is done via customize. We specify the sensor we need for which we received a warning and specify state_class: total_increasing
Чтобы устранить предупреждающее сообщение “Неподдерживаемый класс состояния Следующие объекты не имеют ожидаемого класса состояния ‘total_increasing’:”
Нужно вместо measurement указать total_increasing. Делается это через customize. Указываем нужный нам сенсор для которого мы получили предупреждение и указываем state_class: total_increasing
For core integrations, other than template sensors, you should open an issue on github to get this corrected for the integration rather than using customize.
Same for me. When I set the state_class for a template sensor value, in my case a sum o several sensor values, the state_class just disappears after I set it. Am I doing something wrong?