Some sensors keep long term data, some don't, how to configure this?

Hi,
thank you for the reply.

I found this
Template Weather Provider - Home Assistant and I am totally stuck and overwelmed. No idea what to change.

I try this

but this seems to use the same wrong strategy.

Than I found this

but the “add integration” HomeAssistant configuration does not work.

Than I found

and it says “during the installation you are asked”, … but I wasn’t.

I asked there for help.

thanks
Juergen