At the moment, the history_stats senor has an attribute value
that shows days, hours, minutes.
This ‘value’ will be removed in the upcoming 2022.5 release to avoid to many attribute records in the database.
The device_class ‘duration’ shows the state in a human readable format in the frontend.
