#State class for template sensor that tracks the counter

1 messages · Page 1 of 1 (latest)

cold nexus
#

Every time my washing machine completes, I want to increase a counter. However the counter doesn't support the state class so I added a new template sensor that tracks the counter value.

What state class shall such sensor have? TOTAL or TOTAL_INCREASING?

According to the docs I'd assume it is more in the TOTAL_INCREASING mode. Its value will never go lower than before.

The ultimate target is to be able to show the graph from the long term statistics number of washing machine cycles per month for period of past 12 months. So somewhat max of the month - max of the previous month

subtle bear
#

If it never resets or decreases, it makes no difference.
The only difference between the two is how they behave when the value drops.

#

might as well go for total_increasing.