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

Failed to control devices when forcing micloud control globally, may be Xiaomi changed how their API works? #655

Open
Debbie-Yuan opened this issue Jan 15, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@Debbie-Yuan
Copy link

Debbie-Yuan commented Jan 15, 2025

Describe the bug
Connected to MiColoud, but unable to fetch information.

Expected behavior
Successfully fetch device info from miot protocol.

Your config.json
{ "name": "dev", "ip": "172.16.20.132", "token": "07c34............6d70e4", "deviceId": "269.......40", "model": "cuco.plug.cp1", "pollingInterval": 10, "deepDebugLog": false, "silentLog": false, "deviceEnabled": true, "buzzerControl": true, "ledControl": true, "childLockControl": true, "modeControl": true },

Debug log
[1/15/2025, 2:21:51 PM] [miot] [dev] Successfully connected to MiCloud! Setting up miot device from MiCloud connection! [1/15/2025, 2:21:51 PM] [miot] [dev] Fetching device info from the MiCloud! [1/15/2025, 2:21:56 PM] [miot] [dev] Connection to MiCloud device failed! [1/15/2025, 2:21:56 PM] [miot] [dev] FetchError: network timeout at: https://api.io.mi.com/app/home/device_list [1/15/2025, 2:21:56 PM] [miot] [dev] Error during connection! Retrying in 60 seconds! [1/15/2025, 2:21:56 PM] [miot] [dev] (MiCloud) Logout from MiCloud for username <my-account> [1/15/2025, 2:21:56 PM] [miot] [dev] Device diconnected!

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
The device's info is directly imported from the functionality "DISCOVER ALL DEVICES VIA MICLOUD", and I set "force connections via micloud" globally. The log I showed just repeated endlessly. Can I do something to test the API "https://api.io.mi.com/app/home/device_list" and try to see what the hell are they doing.

@Debbie-Yuan Debbie-Yuan added the bug Something isn't working label Jan 15, 2025
@Debbie-Yuan
Copy link
Author

I'm in a hurry, sorry for missing detailed debug info. Once I am slightly relieved from work, I will study and catch up. It would be even better if you could provide some guidance

@merdok
Copy link
Owner

merdok commented Jan 16, 2025

Maybe the server is currently down? Maybe planned downtime for maintenance? I do not think that the api would change...

@Debbie-Yuan
Copy link
Author

Thx! I'll keep observing and try using another IP, and do more debugging this weekend!🥰

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants