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

Could not connect to device, token might be wrong" #35

Open
Fastigit opened this issue Aug 15, 2021 · 3 comments
Open

Could not connect to device, token might be wrong" #35

Fastigit opened this issue Aug 15, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Fastigit
Copy link

I'm shure that the Token I'm using is correct as it works with FHEM. I can control my RoborockS5max from FHEM using exactly this token. But in NodeRed, if I look at the debug window, the serve node of this contrib says:
"Miio Roborock Error: Could not connect to device, token might be wrong"
A nebug node at the output of the Roborock: command node says:
"TypeError: Cannot read property 'call' of undefined"

@Fastigit Fastigit added the bug Something isn't working label Aug 15, 2021
@jerome83136
Copy link

Hello,
I have the same problem with my Roborock S5
The retrieved token from node red is the same as the one I get from this tool: https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor/releases/latest/download/token_extractor.exe
The robot is registered on the "de" server.

By using this token in node red; I cannot interact with the robot (event and actions KO)
Node red error: TypeError: Cannot read properties of undefined (reading 'call')
But using the same token on another home automation solution (Jeedom + Xiaomi home plugin) it works.

Could be usefull for the diag:

  • My other robot "Roborock S7 pro ultra" works with node red
  • The Roborock S5 worked with Node Red until I did a wifi reset and tried to enroll it with the "Roborock APP" (not the legacy Xiaomi Home APP)
  • I tried deleting the robot from my profil and enrolling it again from Xiaomi Home APP; but still not working

What can I do ?
Thank you for your help
Best regards

@jerome83136
Copy link

UPDATE: restarting Node Red fixed the problem for me.
Regards

@LokiMidgard
Copy link

I have the same problem with a Roborock S7 Max Ultra. Sometimes the system will start working again, but most of the time, I need to restart the server, so it will work for a few hours…

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

4 participants