librelink icon indicating copy to clipboard operation
librelink copied to clipboard

Integration stopped working since yesterday

Open Pleister023 opened this issue 2 months ago • 34 comments

Hi, Happy user here. But, since yesterday the integration stopped working. I think either a) something changed on their side, or b) my credentials in HA are expired (how to change??) or c) the integration does not play nice with HA Core 2025.10.1 a/o OS 16.2. This is what the logs reveal:

Error setting up entry ****** (via @.nl) for librelink Traceback (most recent call last): File "/config/custom_components/librelink/api.py", line 187, in _call_api response.raise_for_status() ~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "/usr/local/lib/python3.13/site-packages/aiohttp/client_reqrep.py", line 629, in raise_for_status raise ClientResponseError( ...<5 lines>... ) aiohttp.client_exceptions.ClientResponseError: 430, message='', url='https://api-eu.libreview.io/llu/auth/login'

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 761, in __async_setup_with_context result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/librelink/init.py", line 41, in async_setup_entry await api.async_login(username=username, password=password) File "/config/custom_components/librelink/api.py", line 147, in async_login response = await self._call_api( ^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "/config/custom_components/librelink/api.py", line 192, in _call_api raise LibreLinkAPIConnectionError() from e custom_components.librelink.api.LibreLinkAPIConnectionError: Connection error

Suggestions anyone?

Thanks, Remco.

Pleister023 avatar Oct 09 '25 13:10 Pleister023

The same thing happened to me. I tried logging in from Postman, and it seems to require new headers.

{ "error": { "message": "missingProductVersionHeaders" }, "status": 919 }

romanepdev avatar Oct 09 '25 14:10 romanepdev

Mine stopped yesterday too

awtx-jeffjohnson avatar Oct 09 '25 17:10 awtx-jeffjohnson

Same problem (I think):

Logger: homeassistant.config_entries Source: config_entries.py:761 First occurred: October 8, 2025 at 3:13:55 PM (1 occurrence) Last logged: October 8, 2025 at 3:13:55 PM

Error setting up entry [email protected] for librelink Traceback (most recent call last): File "/config/custom_components/librelink/api.py", line 189, in api_wrapper response = await session.request( ^^^^^^^^^^^^^^^^^^^^^^ ...<4 lines>... ) ^ File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 770, in _request resp = await handler(req) ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/aiohttp/client.py", line 725, in _connect_and_send_request conn = await self._connector.connect( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ req, traces=traces, timeout=real_timeout ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 642, in connect proto = await self._create_connection(req, traces, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1209, in _create_connection _, proto = await self._create_direct_connection(req, traces, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1550, in _create_direct_connection transp, proto = await self._wrap_create_connection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<7 lines>... ) ^ File "/usr/local/lib/python3.13/site-packages/aiohttp/connector.py", line 1283, in _wrap_create_connection return await self._loop.create_connection(*args, **kwargs, sock=sock) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/asyncio/base_events.py", line 1201, in create_connection transport, protocol = await self._create_connection_transport( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<2 lines>... ssl_shutdown_timeout=ssl_shutdown_timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/asyncio/base_events.py", line 1234, in _create_connection_transport await waiter asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/config/custom_components/librelink/api.py", line 188, in api_wrapper async with asyncio.timeout(API_TIME_OUT_SECONDS): ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/asyncio/timeouts.py", line 116, in aexit raise TimeoutError from exc_val TimeoutError

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 761, in __async_setup_with_context result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/librelink/init.py", line 48, in async_setup_entry sessionToken = await myLibrelinkLogin.async_get_token() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/librelink/api.py", line 148, in async_get_token reponseLogin = await api_wrapper( ^^^^^^^^^^^^^^^^^^ ...<9 lines>... ) ^ File "/config/custom_components/librelink/api.py", line 205, in api_wrapper raise LibreLinkApiCommunicationError( "Timeout error fetching information", ) from exception custom_components.librelink.api.LibreLinkApiCommunicationError: Timeout error fetching information

jterfehr2000 avatar Oct 09 '25 17:10 jterfehr2000

Mine went offline/disconnected Oct 8th around 1PM central time

jeffjohnson14 avatar Oct 09 '25 18:10 jeffjohnson14

Mine broke too, i tried delete and create again and it fails to add now. not sure where the fault is.

balajeek avatar Oct 09 '25 19:10 balajeek

Might have something to do with the email warning they keep broadcasting via email?

"Starting October 8, 2025, LibreLinkUp app versions prior to 4.16 will no longer receive glucose data from your connected devices. Your app version will then no longer be supported. To continue receiving glucose data, update to version 4.16 of the app today."

mijnham avatar Oct 09 '25 21:10 mijnham

I have 4.16 and the problem persists. I didn't bt think it's that.

jterfehr2000 avatar Oct 09 '25 23:10 jterfehr2000

same here 430 error since 7:05 pm gmt yesterday i posted on the Home Assistant Discord also, but no replies as far

jamied90 avatar Oct 09 '25 23:10 jamied90

Same issue for me in HA since yesterday (10/08/25).

  • Installation method: HAOS
  • Core: 2025.10.1
  • Supervisor: 2025.10.0
  • Operating System: 16.2
  • Frontend: 20251001.0

I also use the GlucoDataHandler app (not in HA) and it also pulls data from librelinkup for displaying as a phone widget and on my Samsung Galaxy Watch 7. It's still working with no issues, so it's not likely on Abbotts side.

I sure hope this gets fixed quickly as I rely on it heavily.

Many thanks to the dev on this project! 🙏

criterion67 avatar Oct 09 '25 23:10 criterion67

I found that others with 3rd party apps were having issues since yesterday. I found this on a redit. https://www.reddit.com/r/Freestylelibre/comments/1o1j5gq/comment/niksa3s/?force-legacy-sct=1

Here is a comment that I found that might be of some use.

Yea, figured it. Im so happy about that.

LibreLink/LibreView API broke after the Oct 2025 update

Abbott changed the LinkUp (LLU) API used by apps like LibreView.

Old scripts started failing with 403 Forbidden or 400 RequiredHeaderMissing.

What changed

New required HTTP header:

Account-Id = SHA-256 hash of your user.id (returned from /llu/auth/login)

Old version headers (< 4.16.0) are now

How to fix

Update request headers:

product: llu.android

version: 4.16.0

  1. After login, compute:

account_id = hashlib.sha256(user_id.encode()).hexdigest()

and include it in all requests as

Account-Id: <that_hash>.

Keep Authorization: Bearer as before.

Once added, /llu/connections and /llu/connections/{id}/graph work again.

gjgeary avatar Oct 09 '25 23:10 gjgeary

i have emailed Giles directly, but i have just come across his latest update in the readme, which states "# Not maintained because a lack of access to a Librelink sensor" so it doesn't look good for the future of this integration but this integration has litrally saved the life of my partner when his glucose dropped to dangerous levels but due to the automations i have set up with it as im a heavy sleeper and i just sleep through the notifications from the librelink app i have the house wake me up with lights and alexa notifications so i can deal with his glucose

I have no idea how to code, but if anyone knows of another solution, please let me know

jamied90 avatar Oct 10 '25 00:10 jamied90

Mine also stopped working... Tried updating the VERSION_APP from 4.7 to 4.16.0 in the const.py file for librelink, but still getting the below after a HA machine reboot

2025-10-10 06:10:46.920 DEBUG (MainThread) [custom_components.librelink] Appel de async_setup_entry entry: entry_id= 123, data= {'Country': 'Global', 'password': '123', 'unit_of_measurement': 'mmol/L', 'username': 'abc'}, user = abc BaseUrl = https://api.libreview.io 2025-10-10 06:10:47.139 DEBUG (MainThread) [custom_components.librelink.api] response.status: 200 2025-10-10 06:10:47.141 DEBUG (MainThread) [custom_components.librelink.api] Login status : 0 2025-10-10 06:10:47.207 DEBUG (MainThread) [custom_components.librelink.api] response.status: 400 2025-10-10 06:10:47.207 DEBUG (MainThread) [custom_components.librelink.coordinator] Exception: general API error during coordinator update 2025-10-10 06:10:47.207 DEBUG (MainThread) [custom_components.librelink] Finished fetching librelink data in 0.059 seconds (success: False) 2025-10-10 06:10:59.452 ERROR (MainThread) [custom_components.libreview] 403 Client Error: Forbidden for url: https://api.libreview.io/llu/connections

File "/config/custom_components/librelink/api.py", line 200, in api_wrapper aiohttp.client_exceptions.ClientResponseError: 430, message='', url='https://api.libreview.io/llu/auth/login' File "/config/custom_components/librelink/init.py", line 48, in async_setup_entry sessionToken = await myLibrelinkLogin.async_get_token() File "/config/custom_components/librelink/api.py", line 148, in async_get_token File "/config/custom_components/librelink/api.py", line 209, in api_wrapper raise LibreLinkApiCommunicationError( custom_components.librelink.api.LibreLinkApiCommunicationError: Error fetching information

peggleg avatar Oct 10 '25 05:10 peggleg

Mine also stopped working... Tried updating the VERSION_APP from 4.7 to 4.16.0 in the const.py file for librelink, but still getting the below after a HA machine reboot

Try updating with the PR that has been pending since April, with the VERSION_APP updated to 4.16.0 as well

HASH Table PR

this will be my try as well later today

Mnementh avatar Oct 10 '25 05:10 Mnementh

Mine also stopped working... Tried updating the VERSION_APP from 4.7 to 4.16.0 in the const.py file for librelink, but still getting the below after a HA machine reboot

Try updating with the PR that has been pending since April, with the VERSION_APP updated to 4.16.0 as well

HASH Table PR

this will be my try as well later today

Amazing, thank you very much. I removed the old integration, added this repo and installed. Before restarting HA, I updated the version to 4.16. Restarted HA and added my credentails using Global server and my reading is back in HA. I did obviously lose my historic data

Image

peggleg avatar Oct 10 '25 05:10 peggleg

Mine also stopped working... Tried updating the VERSION_APP from 4.7 to 4.16.0 in the const.py file for librelink, but still getting the below after a HA machine reboot

Try updating with the PR that has been pending since April, with the VERSION_APP updated to 4.16.0 as well HASH Table PR this will be my try as well later today

Amazing, thank you very much. I removed the old integration, added this repo and installed. Before restarting HA, I updated the version to 4.16. Restarted HA and added my credentails using Global server and my reading is back in HA. I did obviously lose my historic data

I am so glad! Takes a community sometimes! What I love about opensource projects!

Mnementh avatar Oct 10 '25 06:10 Mnementh

I just changed to https://github.com/dodog/librelink, which works! Thanks @dodog!

jhthorsen avatar Oct 10 '25 10:10 jhthorsen

Switching to https://github.com/dodog/librelink worked for me. Thanks

awtx-jeffjohnson avatar Oct 10 '25 14:10 awtx-jeffjohnson

Woo hoo .. I finally got it working again!

I had to completely remove the old integration using the File Editor* as every time I would try to redownload, it would keep reverting to the old gilesvs version.

BACK UP HOME ASSISTANT BEFORE PROCEEDING

  1. Go to File Editor: honeassistant/custom_components/librelink and delete each of the subfolders 1 by 1 until everything is gone.
  2. Next, go to Developer Tools/Check Configuration, to make sure everything is okay. You'll see "Configuration will not prevent Home Assistant from starting!" if everything's okay.
  3. Restart HA
  4. Add the new custom repository link (https://github.com/dodog/librelink) via HACS.

One thing to note is that mine displayed two version options in HACS. I downloaded the one that showed "updated 2 days ago".

  1. Check via the File Editor to make sure that it shows the 4.16.0 version
  2. Restart Home Assistant once again
  3. Add it through Settings/Devices & Services/Integrations
  4. Log in with your LibreLinkUp credentials and everything should be back to normal again!

Sorry for the long post, but I wanted to try to be detailed in the steps that I took, in case it may help someone else.

Very thankful for this community! 🙏

  • You can also use Studio Code Server.

criterion67 avatar Oct 10 '25 15:10 criterion67

Oh! Finally, this is awesome, I did the same and got it working now. Thank you so much.

On Oct 10, 2025, at 11:05 AM, Tech Home @.***> wrote:

criterion67 left a comment (gillesvs/librelink#56) https://github.com/gillesvs/librelink/issues/56#issuecomment-3390657041 Woo hoo .. I finally got it working again!

I had to completely remove the old integration using the File Editor* as every time I would try to redownload, it would keep reverting to the old gilesvs version.

BACK UP HOME ASSISTANT BEFORE PROCEEDING

Go to File Editor: honeassistant/custom_components/librelink and deleted each of the subfolders 1 by 1 until everything is gone. Next, go to Developer Tools/Check Configuration, to make sure everything is okay. You'll see "Configuration will not prevent Home Assistant from starting!" if everything's okay. Restart HA Add the new custom repository link (https://github.com/dodog/librelink) via HACS. One thing to note is that mine displayed two version options in HACS. I downloaded the one that showed "updated 2 days ago".

Check via the File Editor to make sure that it shows the 4.16.0 version Restart Home Assistant once again Add it through Settings/Devices & Services/Integrations Log in with your LibreLinkUp credentials and everything should be back to normal again! Sorry for the long post, but I wanted to try to be detailed in the steps that I took, in case it may help someone else.

Very thankful for this community! 🙏

You can also use Studio Code Server. — Reply to this email directly, view it on GitHub https://github.com/gillesvs/librelink/issues/56#issuecomment-3390657041, or unsubscribe https://github.com/notifications/unsubscribe-auth/AESSWIF24E2L6ONFYGY6D6D3W7DKRAVCNFSM6AAAAACIXQ4EO6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGOJQGY2TOMBUGE. You are receiving this because you commented.

balajeek avatar Oct 10 '25 16:10 balajeek

You're most welcome. Glad my method was repeatable. 🙏

criterion67 avatar Oct 10 '25 18:10 criterion67

Criterion67's instructions (with a little trial and error) worked for me! I am back up and running.

jterfehr2000 avatar Oct 11 '25 15:10 jterfehr2000

Glad it's back up and running for you! 👍

criterion67 avatar Oct 11 '25 15:10 criterion67

There seem to be two versions around, the latest being a dodog fork from gillesvs, which is confusing. However, for me at least, the dodog fork issues an error when the integration is enabled (Unknown error has occurred). TL;DR both are broken for me.

realcodfish avatar Oct 12 '25 09:10 realcodfish

@realcodfish I just changed the version as I wrote in comment to make it compatible with latest librelink. But not everybody was able to do it, so I made a fork and published it to maintain the history of measured data. The original author is gillesvs, but he does not maintain his repository. Some major updates were done by @kubasaw fork.

What version were you using? Can you check the logs in HA what exactly is the reason for your error?

dodog avatar Oct 12 '25 10:10 dodog

@dodog It may have been my issue...apologies for that. I was authenticating with 'Europe' but it seems only to work with 'Global' for me. Up and running, thank you!.

realcodfish avatar Oct 12 '25 15:10 realcodfish

@realcodfish, I'm glad that's been resolved.

dodog avatar Oct 12 '25 17:10 dodog

I've followed the steps to remove gillesvs's version - including file manasger - but when I add the @dodog one HACS still shows gillesvs's. Thank you for your hard work on this.

timswfsby avatar Oct 13 '25 10:10 timswfsby

@timswfsby Yes, because the author is gillesvs. I can't take credit for his code. Just check, if the version of Librelink integration in HACS shows v1.2.4. If yes, everything is ok.

dodog avatar Oct 13 '25 11:10 dodog

Perfect thank you all working again now

timswfsby avatar Oct 14 '25 06:10 timswfsby

Criterion67's instructions work! Back up and running. Awesome work, where is the right @dodog Buy me a Coffee link? 👏

Stu333 avatar Oct 14 '25 10:10 Stu333