core: Missing New Values in the thethingsnetwork Integration Pull

The problem

Issue: The pull operation in the thethingsnetwork integration does not retrieve new values automatically. Workaround: A manual restart of Home Assistant is required to fetch the updated values. Debug Information: In debug mode, logs indicate a new line is added every minute, yet the script fails to detect the new value. No error messages are reported. Additional Detail: When calling the storage REST API, the last updated value is present, confirming that the data exists. and the message from my device has been received by TTN. The issue happens randomly and can miss multiple updates before fetching a new value. To information my TTN device send data every 30 minutes. Some other devices from the same TTN application are fetched

What version of Home Assistant Core has the issue?

core-2025.2.5

What was the last working version of Home Assistant Core?

core-2024.8.0

What type of installation are you running?

Home Assistant OS

Integration causing the issue

thethingsnetwork

Link to integration documentation on our website

https://www.home-assistant.io/integrations/thethingsnetwork

Diagnostics information

home-assistant_thethingsnetwork_2025-02-23T16-54-58.862Z.log

Example YAML snippet


Anything in the logs that might be useful for us?

No error message found in the debug file

Additional information

While no data is fetched from home assistant, I can get the date using this command: curl -s -G “https://eu1.cloud.thethings.network/api/v3/as/applications/$APP_ID/devices/$DEV_ID/packages/storage/uplink_message”
-H “Authorization: Bearer $API_KEY”
-H “Accept: text/event-stream”
-d “limit=400”
-d “after=2024-06-20T00:00:00Z”
-o $OUTPUT_FILE

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 1
  • Comments: 16 (4 by maintainers)

Most upvoted comments

Hi @angelnu , In my case, the device sends only one update every 30 minutes (it’s a meter sensor). However, when an update is missed, it can happen more than once—I sometimes experience multiple consecutive misses, up to 4 or 5 times in a row before a new value is finally fetched or after reloading the integration.