Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No devices found under this Xiaomi account #1956

Closed
auanasgheps opened this issue Nov 18, 2024 · 23 comments
Closed

No devices found under this Xiaomi account #1956

auanasgheps opened this issue Nov 18, 2024 · 23 comments

Comments

@auanasgheps
Copy link

Device model / 设备型号

dreame.vacuum.p2029

Component version / 插件版本

1.0.0b3

HA core version / HA版本

2024.11.2

Integrated mode / 集成方式

Local (本地模式)

The problem / 问题详情

Hi,
I've been using this integration for a long time but now I'm facing an issue: my vacuum is not available.
However, I think there's an issue with the login/account part because that's what I get If I try to reconfigure the integration.

immagine
immagine

I usually set it to "Local", I also tried Automatic and Cloud but no change.

I have 3 devices on my accout on such server, just verified by re-authenticating the app on my phone.

The integration has stopped working since the 16th november.

I was using the latest stable. I just updated to the beta, no difference.

I tried loggin in with email and user ID, no difference.

Entity attributes / 实体属性

"unavailable"

Home Assistant Logs / 系统日志

2024-11-18 12:23:48.947 WARNING (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Got xiaomi devices for failed: {'code': 0, 'message': 'SERVICETOKEN_EXPIRED'}
2024-11-18 12:23:51.232 ERROR (SyncWorker_7) [miio.miioprotocol] Got error when receiving: {'code': -9999, 'message': 'user ack timeout'}

@auanasgheps auanasgheps changed the title No devices in my account No devices foun under this Xiaomi account Nov 18, 2024
@al-one
Copy link
Owner

al-one commented Nov 18, 2024

Try master branch.

@auanasgheps
Copy link
Author

Apologies, how do I try the master branch? I can't select it from HACS

@rasasak
Copy link

rasasak commented Nov 18, 2024

same issue on 0.7.22 version

xiaomi connected devices stop working ... when I try reset with force .option = no device found ...

on xiaomi home app .. is device conected and working ... but in this integration suddenly stop responsing

@auanasgheps auanasgheps changed the title No devices foun under this Xiaomi account No devices found under this Xiaomi account Nov 18, 2024
@al-one
Copy link
Owner

al-one commented Nov 18, 2024

wget -O - https://get.hacs.vip | DOMAIN=xiaomi_miot ARCHIVE_TAG=master bash -

@auanasgheps
Copy link
Author

Thanks. I've ran this command and rebooted HA, but the version installed seems to be: 0.7.23

immagine

By the way, no difference, the setup errors out and I still get the exact same error.

@TheSnowfield
Copy link

same issue here, v0.7.23 still have this problem
image

@al-one
Copy link
Owner

al-one commented Nov 18, 2024

@TheSnowfield
Copy link

It complains {"code":0,"message":"invalid signature"}

2024-11-18 22:27:54.745 WARNING (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Error while executing request to https://api.io.mi.com/app/v2/message/v2/typelist: {"code":0,"message":"invalid signature"}
2024-11-18 22:27:54.748 WARNING (MainThread) [custom_components.xiaomi_miot.sensor] Get xiaomi message for xx failed: {'code': 0, 'message': 'invalid signature'}
2024-11-18 22:27:55.030 WARNING (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Error while executing request to https://api.io.mi.com/app/v2/homeroom/gethome_merged: {"code":0,"message":"invalid signature"}
2024-11-18 22:27:55.102 WARNING (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Error while executing request to https://api.io.mi.com/app/home/device_list: {"code":0,"message":"invalid signature"}
2024-11-18 22:27:55.103 WARNING (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Got xiaomi devices for [email protected] failed: {'code': 0, 'message': 'invalid signature'}
2024-11-18 22:27:55.177 WARNING (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Error while executing request to https://api.io.mi.com/app/scene/history: {"code":0,"message":"invalid signature"}
2024-11-18 22:27:55.178 WARNING (MainThread) [custom_components.xiaomi_miot.sensor] Get xiaomi scene history for xx xx failed: {'code': 0, 'message': 'invalid signature'}
2024-11-18 22:27:55.196 WARNING (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Error while executing request to https://api.io.mi.com/app/scene/history: {"code":0,"message":"invalid signature"}
2024-11-18 22:27:55.197 WARNING (MainThread) [custom_components.xiaomi_miot.sensor] Get xiaomi scene history for xx xx failed: {'code': 0, 'message': 'invalid signature'}
2024-11-18 22:27:55.422 WARNING (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Error while executing request to https://api.io.mi.com/app/scene/history: {"code":0,"message":"invalid signature"}
2024-11-18 22:27:55.424 WARNING (MainThread) [custom_components.xiaomi_miot.sensor] Get xiaomi scene history for xx xx failed: {'code': 0, 'message': 'invalid signature'}

@al-one
Copy link
Owner

al-one commented Nov 18, 2024

Relogin

@auanasgheps
Copy link
Author

Here's what I get.
I tried multiple times to update the current configuration and to create a new one.

2024-11-18 15:49:02.853 DEBUG (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Request miot api: v2/message/v2/typelist {} result: {"code":0,"message":"SERVICETOKEN_EXPIRED"}
2024-11-18 15:49:02.853 DEBUG (MainThread) [custom_components.xiaomi_miot.sensor] Finished fetching xiaomi_miot-mihome-message-<REDACTED> data in 0.035 seconds (success: True)
2024-11-18 15:49:12.323 DEBUG (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Request miot api: v2/message/v2/check_new_msg {'begin_at': 1731941292} result: {"code":0,"message":"SERVICETOKEN_EXPIRED"}
2024-11-18 15:49:12.394 WARNING (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Got xiaomi devices for <REDACTED> failed: {'code': 0, 'message': 'SERVICETOKEN_EXPIRED'}
2024-11-18 15:49:17.854 DEBUG (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Request miot api: v2/message/v2/typelist {} result: {"code":0,"message":"SERVICETOKEN_EXPIRED"}
2024-11-18 15:49:17.855 DEBUG (MainThread) [custom_components.xiaomi_miot.sensor] Finished fetching xiaomi_miot-mihome-message-<REDACTED> data in 0.036 seconds (success: True)
2024-11-18 15:49:32.853 DEBUG (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Request miot api: v2/message/v2/typelist {} result: {"code":0,"message":"SERVICETOKEN_EXPIRED"}
2024-11-18 15:49:32.854 DEBUG (MainThread) [custom_components.xiaomi_miot.sensor] Finished fetching xiaomi_miot-mihome-message-<REDACTED> data in 0.036 seconds (success: True)
2024-11-18 15:49:47.853 DEBUG (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Request miot api: v2/message/v2/typelist {} result: {"code":0,"message":"SERVICETOKEN_EXPIRED"}
2024-11-18 15:49:47.853 DEBUG (MainThread) [custom_components.xiaomi_miot.sensor] Finished fetching xiaomi_miot-mihome-message-<REDACTED> data in 0.034 seconds (success: True)
2024-11-18 15:50:00.324 DEBUG (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Request miot api: v2/message/v2/check_new_msg {'begin_at': 1731941340} result: {"code":0,"message":"SERVICETOKEN_EXPIRED"}
2024-11-18 15:50:00.401 WARNING (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Got xiaomi devices for <REDACTED> failed: {'code': 0, 'message': 'SERVICETOKEN_EXPIRED'}
2024-11-18 15:50:02.855 DEBUG (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Request miot api: v2/message/v2/typelist {} result: {"code":0,"message":"SERVICETOKEN_EXPIRED"}
2024-11-18 15:50:02.855 DEBUG (MainThread) [custom_components.xiaomi_miot.sensor] Finished fetching xiaomi_miot-mihome-message-<REDACTED> data in 0.036 seconds (success: True)
2024-11-18 15:50:17.853 DEBUG (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Request miot api: v2/message/v2/typelist {} result: {"code":0,"message":"SERVICETOKEN_EXPIRED"}
2024-11-18 15:50:17.854 DEBUG (MainThread) [custom_components.xiaomi_miot.sensor] Finished fetching xiaomi_miot-mihome-message-<REDACTED> data in 0.036 seconds (success: True)
2024-11-18 15:50:22.871 DEBUG (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Request miot api: v2/message/v2/check_new_msg {'begin_at': 1731941362} result: {"code":0,"message":"SERVICETOKEN_EXPIRED"}
2024-11-18 15:50:22.944 WARNING (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Got xiaomi devices for <REDACTED> failed: {'code': 0, 'message': 'SERVICETOKEN_EXPIRED'}
2024-11-18 15:50:24.385 INFO (MainThread) [custom_components.xiaomi_miot.core.miot_spec] Renew miot spec instances: xiaomi_miot/instances.json, count: 37237, model: xiaomi.miot.auto
2024-11-18 15:50:32.853 DEBUG (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Request miot api: v2/message/v2/typelist {} result: {"code":0,"message":"SERVICETOKEN_EXPIRED"}
2024-11-18 15:50:32.853 DEBUG (MainThread) [custom_components.xiaomi_miot.sensor] Finished fetching xiaomi_miot-mihome-message-<REDACTED> data in 0.035 seconds (success: True)
2024-11-18 15:50:47.853 DEBUG (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Request miot api: v2/message/v2/typelist {} result: {"code":0,"message":"SERVICETOKEN_EXPIRED"}
2024-11-18 15:50:47.854 DEBUG (MainThread) [custom_components.xiaomi_miot.sensor] Finished fetching xiaomi_miot-mihome-message-<REDACTED> data in 0.034 seconds (success: True)
2024-11-18 15:50:48.435 DEBUG (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Request miot api: v2/message/v2/check_new_msg {'begin_at': 1731941388} result: {"code":0,"message":"SERVICETOKEN_EXPIRED"}
2024-11-18 15:50:48.506 WARNING (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Got xiaomi devices for <REDACTED> failed: {'code': 0, 'message': 'SERVICETOKEN_EXPIRED'}
2024-11-18 15:50:49.248 INFO (MainThread) [custom_components.xiaomi_miot.core.miot_spec] Renew miot spec instances: xiaomi_miot/instances.json, count: 37237, model: xiaomi.miot.auto
2024-11-18 15:51:02.854 DEBUG (MainThread) [custom_components.xiaomi_miot.core.xiaomi_cloud] Request miot api: v2/message/v2/typelist {} result: {"code":0,"message":"SERVICETOKEN_EXPIRED"}
2024-11-18 15:51:02.855 DEBUG (MainThread) [custom_components.xiaomi_miot.sensor] Finished fetching xiaomi_miot-mihome-message-<REDACTED> data in 0.037 seconds (success: True)

@TheSnowfield
Copy link

TheSnowfield commented Nov 18, 2024

Relogin

I selected Auto Mode and 更新设备列表 and submitted the login request, then got this log.

Update 2024/11/19
I tried to add the same account to the integration, and then selected the checkbox I had never seen,
image

image
This way got my devices to work again, but the ID of these devices has been added a _2 tail, This should be caused by the conflict device IDs between the same account.

Update 2
I tried re-config the new account, the same problem happened again, devices became unavailable,
The log continues to complain {"code":0,"message":"invalid signature"}.

Update 3
I restored to v0.7.21, everything is working like before.

@auanasgheps
Copy link
Author

auanasgheps commented Nov 18, 2024

Update: now it's working, I don't know why it didn't just after the update. But good for me!

EDIT: Thanks to the maintainer for being super responsive.

@zhangyanrui
Copy link

Same problem!

al-one added a commit that referenced this issue Nov 19, 2024
@al-one
Copy link
Owner

al-one commented Nov 19, 2024

Try master branch.

wget -O - https://get.hacs.vip | DOMAIN=xiaomi_miot ARCHIVE_TAG=master bash -

@nelsongraca
Copy link

same issue here, tried master branch but it's asking for a captcha, REMOVED is because I removed the actual code

⚠️ Login to xiaomi error: &&&START&&&{"code":87001,"desc":"验证码输入错误","captchaUrl":"/pass/getCode?icodeType=login&0.REMOVED","type":"manMachine"}

@domonkos11
Copy link

Same problem. api.io.mi.com says 404 when doing curl, could that be a problem?

@wespen
Copy link

wespen commented Nov 20, 2024

Same issue with updated version 0.7.23

{'code': 0, 'message': 'SERVICETOKEN_EXPIRED'}

@Pixelw
Copy link

Pixelw commented Nov 20, 2024

Same issue with updated version 0.7.23
Got xiaomi devices for XXXX failed: {'code': 0, 'message': 'SERVICETOKEN_EXPIRED'}

@al-one
Copy link
Owner

al-one commented Nov 20, 2024

master branch ...

@wespen
Copy link

wespen commented Nov 20, 2024

Can you bump the version so it pulls update in HACS

@baskinsy
Copy link

Removing and re-adding the account worked for me.

@wespen
Copy link

wespen commented Nov 21, 2024

I tried it...and it worked.
I deleted the old account and re-added it and now it works.

@javierbrea
Copy link

Automatically solved when installing v0.7.24. Thank you!

@al-one al-one closed this as completed Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests