I have noticed an error in my log around my Rainforest Eagle that stopped the collection of long term stats. The full error is:
WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.eagle_200_total_meter_energy_delivered_cost (AUD) does not match the unit of already compiled statistics (EUR). Generation of long term statistics will be suppressed unless the unit changes back to EUR
The way I fixed this was using phpMyAdmin and changed the UoM to from EUR to AUD in the database and that seems to have fixed the issue for me.
Below is a pic shows 1 row changed and the other yet to change.
Hope this helps.