Historical data in home assistant is purged after 10 days unless a sensor has defined the attribute state_class. At present ism7mqtt only treads temperatures and percentages as valuable for the home assistant long term statistics. Only for "°C" and "%" the state_class will be send.
I think nearly all values are important to have them long term to be able to compare certain situations. So I added a few more units in this PR: #126
Other user might think different and do not want to have the data long term. So it should maybe even be configurable per unit.
THE CHANGE IS NOT TESTED YET as due to my other long running test which I do not want to stop at present (#115 ). So the PR cannot be merged. Would be good if someone could test whether it works or whether it at least do no harm. ;-)
Historical data in home assistant is purged after 10 days unless a sensor has defined the attribute
state_class. At present ism7mqtt only treads temperatures and percentages as valuable for the home assistant long term statistics. Only for "°C" and "%" thestate_classwill be send.I think nearly all values are important to have them long term to be able to compare certain situations. So I added a few more units in this PR: #126
Other user might think different and do not want to have the data long term. So it should maybe even be configurable per unit.
THE CHANGE IS NOT TESTED YET as due to my other long running test which I do not want to stop at present (#115 ). So the PR cannot be merged. Would be good if someone could test whether it works or whether it at least do no harm. ;-)