The current “thingsnetwork” implementation statically polls the server
“https://{app_id}.data.thethingsnetwork.org/{endpoint}/{device_id}”
The things network is actually made up of a large number of global servers and as far as I can tell the storage information is not synchronised between the servers.
This means if you use a things network server in say Australia then you cannot retrieve the data off it via the current home assistant implementation.
All we need to do is allow “TTN_DATA_STORAGE_URL” to be supplied as part of the config. (I recommend we default to the current URL if its not provided.)
eg I use the Australian server so would use the URL
“https://{app_id}.data.thethings.meshed.com.au/{endpoint}/{device_id}”
Maybe we can get a bit smarter and just provide “data.thethings.meshed.com.au”
Regards
Ben