I know this isn’t exactly what you’re looking for, but I’ve used the File Notifications platform to create an ongoing log of things for future use.
I added the notify sensor to my configuration.yaml:
notify:
- name: Enviro Data
platform: file
filename: Enviro_Data
timestamp: true
Then I created an automation that wrote the data I wanted to that file every five minutes.
- alias: Check sensor value and show notification
trigger:
platform: time
minutes: '/5'
seconds: 00
action:
service: notify.enviro_data
data_template:
message: ",{{ states('sensor.dark_sky_temperature') }},{{ states('sensor.lr_temperature') }},{{ states('sensor.br_temperature') }},{{ states('sensor.ki_temperature') }},{{ states('sensor.dark_sky_humidity') }},{{ states('sensor.lr_humidity') }},{{ states('sensor.br_humidity') }},{{ states('sensor.ki_humidity') }}"
The result is a file with a new line created every five minutes that looks like this:
2018-09-22T05:35:00.925038+00:00 ,63.9,73.6,67.1,73.6,67.0,49.7,58.9,49.7
I can open a copy as a CSV file in Excel and clean up the data pretty easily. It isn’t ideal if you’re looking for something that updates statistics live. Although I’m sure there are ways to do that. Also, the timestamp is in GMT, so you have to adjust for that.
p.s. To convert that timestamp to a simpler date & time in Excel, I use the functions:
=LEFT(A2,10)
=MID(A2,12,8)