Authentication failure / Unable to access device data even after re-login.
Just got a new Winix T800. Setup in the app was succesfull and I can control the device with the Winix app. I succesfully created a 2nd account in the app and shared the device. from my primary account.
Setting up the Winix module, I get an error "Unable to access device data even after re-login.". There is an option to reconfigure, and after the password a reauth_succesfull message appears. But the error remains:
What I tried was using my first account, where I first logged out of the winix application as the "Winix does not support simultaneous login from multiple devices" as stated in the notes of the addon. No luck, same error.
Debug log: 2026-03-12 17:55:10.451 DEBUG (SyncWorker_0) [custom_components.winix] Login successful, token expires 1773338110 2026-03-12 17:55:10.867 INFO (MainThread) [custom_components.winix] Failed to get device list (code=400, message=The user is not valid. - validateMobileInfo), reauthenticating with stored credentials 2026-03-12 17:55:12.523 DEBUG (SyncWorker_4) [custom_components.winix] Login successful, token expires 1773338112 2026-03-12 17:55:12.524 INFO (MainThread) [custom_components.winix] Reauthenticating successful, getting device list again 2026-03-12 17:55:12.626 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Winix Purifier' for winix integration could not authenticate: Unable to access device data even after re-login.
I'm having the same issue. Anyone find a solution. This integration has been working fine for months with no issues until today.
Same issue here. Thought I was doing something wrong.
Same issue here, just stopped auth
Logger: homeassistant.config_entries Source: config_entries.py:795 First occurred: 4:52:32 AM (11 occurrences) Last logged: 8:42:30 AM
Config entry 'Winix Purifier' for winix integration could not authenticate: Unable to access device data even after re-login.
Same issue here Winix c610 It keeps asking for the password and after entering it, I get reauth_successful.
The user authentication is successful but accessing device list fails with invalid user. I don't know why, it could be some change at their end. I will post when I have some meaningful update.
I’m having the same problem today
hi @iprak.
i tested the winix package used in this integration and the issue seems to be there. I was just experimenting on my own. I pulled the Winix api wrapper source into my fork just to simplify testing, so my fork of this repo is a big mess and likely violates some licensing.
My fork is functional currently. If anyone really needs it working right now, you can add my repo in HACS. https://github.com/thearyadev/winix
here is the patch to the winix api wrapper for reference. (i dont plan on opening a pr, but feel free to copy this. no attribution needed.) https://github.com/hfern/winix/compare/master...thearyadev:winix2:master
seems to be working. only briefly tested.
hi @thearyadev I tested your changes in my setup but seems that they do not fully solve the problem.
It does feels like they are 'improving security' on their end and creating problems for 3rd party integrations...
hi @iprak.
i tested the winix package used in this integration and the issue seems to be there. I was just experimenting on my own. I pulled the Winix api wrapper source into my fork just to simplify testing, so my fork of this repo is a big mess and likely violates some licensing.
My fork is functional currently. If anyone really needs it working right now, you can add my repo in HACS. https://github.com/thearyadev/winix
here is the patch to the winix api wrapper for reference. (i dont plan on opening a pr, but feel free to copy this. no attribution needed.) hfern/[email protected]:winix2:master
seems to be working. only briefly tested.
I gave your repo a try and its failing the same way.
same issues on c610 relogin not working
I've been debugging this issue systematically and found the root cause. Here's what's happening and how to fix it.
Root Cause
Winix's server-side validateMobileInfo check now requires deviceName, manufacturer, and appVersion parameters in the registerUser API call. Previously these were optional — now they're mandatory.
The registerUser endpoint returns HTTP 200 even when it fails (with resultCode: 400 in the body), so the existing code treats this as success. But the device registration silently fails, and subsequent getDeviceInfoList calls return "The user is not valid. - validateMobileInfo".
Evidence
I wrote a diagnostic script that calls the Winix API directly with different parameter combinations:
| Endpoint | Without device params | With device params |
|---|---|---|
registerUser |
HTTP 200, resultCode 400 FAIL | HTTP 200, resultCode 200 SUCCESS |
checkAccessToken |
N/A (already has params) | HTTP 200, SUCCESS |
getDeviceInfoList |
HTTP 400, validateMobileInfo | HTTP 200, SUCCESS — 3 devices found |
The key finding: registerUser must include deviceName, manufacturer, and appVersion for the subsequent getDeviceInfoList to work. The current code in the winix pip library's register_user() only sends osType, osVersion, and mobileLang.
The Fix
In winix/driver.py, add three parameters to register_user():
def register_user(self, email: str):
from . import auth
resp = requests.post(
"https://us.mobile.winix-iot.com/registerUser",
json={
"cognitoClientSecretKey": auth.COGNITO_CLIENT_SECRET_KEY,
"accessToken": self.access_token,
"uuid": self.get_uuid(),
"email": email,
"osType": "android",
"osVersion": "29",
"mobileLang": "en",
"deviceName": "SM-G988B", # <-- ADD
"manufacturer": "samsung", # <-- ADD
"appVersion": "1.0.8", # <-- ADD
},
)
I'd also recommend checking the response body's resultCode, not just the HTTP status:
if resp.status_code != 200:
raise Exception(...)
body = resp.json()
if body.get("resultCode") != "200":
raise Exception(f"registerUser failed: {body.get('resultMessage')}")
Why @thearyadev's fork works for some but not others
The fork correctly vendored the library and fixed imports, but didn't add device params to register_user(). It worked for the fork author because they likely had a pre-existing valid device registration from before the server change. New registrations (or re-auths) fail without the params.
Confirmed working
After applying this fix, my integration immediately recovered — all 3 purifiers came back online on the first startup.
cc @iprak @thearyadev
@jsnyder , I can confirm this works! Thank you!
I am not seeing this consistently work. Sometimes the devices appear and sometimes the list is empty. There are no failures or invalid resultCode.
Also it looks like a non-empty email is also needed. I will keep testing.
@jsnyder Can I know how to access the Winix/driver.py file from file editor? I tried to find /config/custom_components/winix but looks like this Winix folder is not the pip library one. Where can I find in my HASS? Thanks in advance!
@jsnyder The relevant section of register_user py code does not appear at all in this fork of winix. The code you refer to is in a different older fork (hfern /winix) that has not been updated since 2021. Not quite sure how to proceed with this fix.
I reproduced this on March 13, 2026 with a Winix AM90 on Home Assistant 2026.2.3.
I traced the mobile API calls and found that the current workaround direction is only partially sufficient for my account/device.
What I observed:
checkAccessTokenwith updated Android client metadata returnsSUCCESSgetDeviceInfoListstill returns400: "The user is not valid. - validateMobileInfo"registerUserwith the old payload returns400: FAILregisterUserwith updated Android client metadata +emailreturns200: SUCCESS- after that,
getDeviceInfoListwith updated Android client metadata returns200: SUCCESS
So on my system the working sequence is:
registerUserwith updated Android metadata +emailcheckAccessTokenwith updated Android metadatagetDeviceInfoListwith updated Android metadata
This differs from thearyadev’s workaround because removing registerUser was not enough in my case. I had to keep registerUser, but update its payload to match the current mobile app format.
I opened a PR for this here: https://github.com/iprak/winix/pull/130
I used AI assistance during part of the investigation and drafting, validated and tested the fix on my own Home Assistant setup.
@rostar99 Yeah, sorry. I’m also not sure what the best way would be to make this into a permanent fix.
The issue is upstream and this solution is a little ugly so I kind of understand why the original suggested workaround wasn’t offered as a fix. It would be nice to find something cleaner and I’m not sure if we now have to pretend to be the android client permanently. I had to patch and vendor that library in locally to test.
On Sat, Mar 14, 2026 at 12:25 AM rostar99 @.***> wrote:
rostar99 left a comment (iprak/winix#129) https://github.com/iprak/winix/issues/129#issuecomment-4059606805
@jsnyder https://github.com/jsnyder The relevant section of register_user py code does not appear at all in source code in this fork of winix. The code you refer to is a different fork (hfern /winix) that has not been updated since 2021. Not quite sure how to proceed with this fix.
— Reply to this email directly, view it on GitHub https://github.com/iprak/winix/issues/129#issuecomment-4059606805, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAACGYDMJSB5UBV43VNSHNT4QTUOFAVCNFSM6AAAAACWP5ZZEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DANJZGYYDMOBQGU . You are receiving this because you were mentioned.Message ID: @.***>
I reproduced this on March 13, 2026 with a Winix AM90 on Home Assistant 2026.2.3.
I traced the mobile API calls and found that the current workaround direction is only partially sufficient for my account/device.
What I observed:
checkAccessTokenwith updated Android client metadata returnsSUCCESSgetDeviceInfoListstill returns400: "The user is not valid. - validateMobileInfo"registerUserwith the old payload returns400: FAILregisterUserwith updated Android client metadata +200: SUCCESS- after that,
getDeviceInfoListwith updated Android client metadata returns200: SUCCESSSo on my system the working sequence is:
registerUserwith updated Android metadata +checkAccessTokenwith updated Android metadatagetDeviceInfoListwith updated Android metadataThis differs from thearyadev’s workaround because removing
registerUserwas not enough in my case. I had to keepregisterUser, but update its payload to match the current mobile app format.I opened a PR for this here: https://github.com/iprak/winix/pull/130
I used AI assistance during part of the investigation and drafting, validated and tested the fix on my own Home Assistant setup.
Thanks for working this into a PR :-)
I reproduced this on March 13, 2026 with a Winix AM90 on Home Assistant 2026.2.3.
I traced the mobile API calls and found that the current workaround direction is only partially sufficient for my account/device.
What I observed:
checkAccessTokenwith updated Android client metadata returnsSUCCESSgetDeviceInfoListstill returns400: "The user is not valid. - validateMobileInfo"registerUserwith the old payload returns400: FAILregisterUserwith updated Android client metadata +200: SUCCESS- after that,
getDeviceInfoListwith updated Android client metadata returns200: SUCCESSSo on my system the working sequence is:
registerUserwith updated Android metadata +checkAccessTokenwith updated Android metadatagetDeviceInfoListwith updated Android metadataThis differs from thearyadev’s workaround because removing
registerUserwas not enough in my case. I had to keepregisterUser, but update its payload to match the current mobile app format.I opened a PR for this here: #130
I used AI assistance during part of the investigation and drafting, validated and tested the fix on my own Home Assistant setup.
Thanks for your PR. It works!
I ran Codex with GPT-5.4 extra-high to reverse-engineer the iOS binary the other night.
Codex debugged Winix Smart v1.5.7 on iOS. The latest Android APK is v1.5.6. The current flow claims v1.0.8.
Codex found a slightly different auth flow and updated the README as follows:
Winix sessions are sensitive to the client identity used during
registerUser. Home Assistant still uses the older mobile flow, while the standalone TUI now mirrors the official app's persisted iOS identity when it is available.
This README update might be related to how it's persisting the token, however.
Its updated registerUser payload is:
payload = {
"cognitoClientSecretKey": auth.COGNITO_CLIENT_SECRET_KEY,
"accessToken": self._access_token,
"uuid": self._profile.uuid,
"email": self.username,
"mobileLang": self._profile.mobile_lang,
"osType": self._profile.os_type,
"osVersion": self._profile.os_version,
"appVersion": self._profile.app_version,
"mobileModel": self._profile.mobile_model,
}
@jsnyder Note the lack of deviceName and manufacturer.
Whether that's all true, haven't investigated. Wonder what actually changed. I'm not familiar with Cognito either.
@iprak Let me know if you want me to try to put together a minimal PR. That might avoid future issues.