Help needed: Collecting current weather data as long term statistics

Hi all,

I’m quite new to home assistant, so my apologies if this should be obvious.

I’d like to collect data that is present in the tomorrow.io or met.no weather integrations as long term statistics. Notably current weather (which does seem to be stored) along with current temp, air pressure, humidity and wind speed

The internal statsd hourly collation is perfectly sufficient for my needs - however my understanding is that this data needs to be sensors that are compatible with that, and these devices do not seem to be exposing that data as individual sensors?

Is there a way to do that? Is there a better weather integration to use to achieve this? (UK based for region specific ones)

Thanks all

Hi Simona42,

It is a bad idea to store heavy long term data in the database that you want to be fast and agile to react moment to moment in your automations and such.
Look at influxDB to store things like that fed from your HA data.

I believe the internal default is to now store 1 hour resolution aggregate data indefinitely from compatible sensors

The 10 day limit is at the resolution the sensor provides.

I did look at influx but it’s overkill for my needs. Hour average is plenty

However either way I still have the same problem: how do I get the data that this device displays on the card to be saved? Do I need to fork the code and write my own device? Surely there is a better way

Solved this with a crude fork of the met.no integration

Probably won’t update/maintain this much but left for reference if anyone else is on the same issue