I think what I really want is I a helper sensor that will give me the maximum value of my power generation within the last 15 minutes. That will even out my solar generation for any intermittent cloud cover.
And then I want something to take the above helper and plot the trend as it goes up and down during the day.
Leave the attribute field blank to track the state value.
That’s not what a Trend sensor is… A Trend sensor essentially performs a trend line analysis of the values from your sensor, then checks if the slope of that line is >= or < your specified gradient. If greater than or equal too, the binary sensor returns the state “on”, otherwise it returns the state “off”.
You want a Statistics sensor using value_max for the state_characteristic.