Did you ever work out a way to do this? I’m still trying to work out how to create a sensor that accesses time series data.