I have a need to export data from ha sensors into a script that spits out data in a format i need. I would like to do this automatically instead of opening history, selecting the whole month and download .csv for 10 different sensors. Is there a way i can pull history data to convinietly process this data and send the text out to a telegram group / discord / email.