Closed auanasgheps closed 3 days ago
Try master branch.
Apologies, how do I try the master branch? I can't select it from HACS
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
wget -O - https://get.hacs.vip | DOMAIN=xiaomi_miot ARCHIVE_TAG=master bash -
Thanks. I've ran this command and rebooted HA, but the version installed seems to be: 0.7.23
By the way, no difference, the setup errors out and I still get the exact same error.
same issue here, v0.7.23 still have this problem
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 my@example.com 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'}
Relogin
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)
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,
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.
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.
Same problem!
Try master branch.
wget -O - https://get.hacs.vip | DOMAIN=xiaomi_miot ARCHIVE_TAG=master bash -
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"}
Same problem. api.io.mi.com says 404 when doing curl, could that be a problem?
Same issue with updated version 0.7.23
{'code': 0, 'message': 'SERVICETOKEN_EXPIRED'}
Same issue with updated version 0.7.23 Got xiaomi devices for XXXX failed: {'code': 0, 'message': 'SERVICETOKEN_EXPIRED'}
master branch ...
Can you bump the version so it pulls update in HACS
Removing and re-adding the account worked for me.
I tried it...and it worked. I deleted the old account and re-added it and now it works.
Automatically solved when installing v0.7.24. Thank you!
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.
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 / 实体属性
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'}