Long-term statistics on Bluetooth Xiaomi sensors

Hi!
Is there any way to have long-term statistics on my xiaomi temperature and humidity sensors?
I’m using the native bluetooth integration to see and read the device.
I get the data perfectly, but they don´t store with the long-term feature.
Is It possible to add it?
Thanks

i got the ble sensors connected via tasmota/mqtt but i guess that doesnt matter.
for long term statistics i read one has to install an addition database, which i did.
so far my statistics are stored fine.