Roborock S7 dans jeedom

Bonjour,

je viens d acheter le S7 avec le module jeedom xiaomi home, mais impossible de trouver le token en recherche d’information, comme indiqué.
j ai fait un debug et il ne trouve pas le robot bien que le reobot fonctionne bien avec adresse IP valide et l application roborock sur mon smartphone

[2021-11-17 15:10:00.443][DEBUG] : http://127.0.0.1:80 "GET /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=xtBDjqdCdEOQ0ksJUcY3wDtNFKw7lLlW HTTP/1.1" 200 0
[2021-11-17 15:10:00.446][DEBUG] : Socket interface started
[2021-11-17 15:10:00.447][DEBUG] : LoopNetServer Thread started
[2021-11-17 15:10:00.448][INFO] : Start listening...
[2021-11-17 15:10:00.448][DEBUG] : Listening on: [127.0.0.1:55019]
[2021-11-17 15:10:00.454][DEBUG] : Read Socket Thread Launched
[2021-11-17 15:10:00.457][DEBUG] : Aquara Thread Launched
[2021-11-17 15:10:12.405][DEBUG] : Client connected to [127.0.0.1:33102]
[2021-11-17 15:10:12.406][DEBUG] : Message read from socket: b'{"apikey":"xtBDjqdCdEOQ0ksJUcY3wDtNFKw7lLlW","type":"wifi","cmd":"discover","dest":"192.168.1.36","token":"","model":"vacuum2"}'
[2021-11-17 15:10:12.406][DEBUG] : Client disconnected from [127.0.0.1:33102]
[2021-11-17 15:10:12.527][DEBUG] : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2021-11-17 15:10:12.527][DEBUG] : SOCKET-READ------Received command from jeedom : discover
[2021-11-17 15:10:12.528][DEBUG] : SOCKET-READ------Discovering : vacuum2
[2021-11-17 15:10:17.533][DEBUG] : Timeout
[2021-11-17 15:10:17.533][DEBUG] : Did not find the device try again
[2021-11-17 15:10:17.534][DEBUG] : Send to jeedom :  {'devices': {'wifi': {'ip': '192.168.1.36', 'notfound': 1}}}
[2021-11-17 15:10:17.534][ERROR] : SOCKET-READ------Exception on socket : 'NoneType' object has no attribute 'devicetype'
[2021-11-17 15:10:17.537][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2021-11-17 15:10:17.555][DEBUG] : http://127.0.0.1:80 "POST /plugins/xiaomihome/core/php/jeeXiaomiHome.php?apikey=xtBDjqdCdEOQ0ksJUcY3wDtNFKw7lLlW HTTP/1.1" 200 0
[2021-11-17 15:10:25][DEBUG] : Rafraîchissement de XiaomiWifi : Aspirateur Bas
[2021-11-17 15:10:25][DEBUG] : Envoi : {"apikey":"xtBDjqdCdEOQ0ksJUcY3wDtNFKw7lLlW","type":"wifi","cmd":"refresh","model":"vacuum2","dest":"192.168.1.36","token":"","devtype":"","serial":""}
[2021-11-17 15:10:25.975][DEBUG] : Client connected to [127.0.0.1:33154]
[2021-11-17 15:10:25.975][DEBUG] : Message read from socket: b'{"apikey":"xtBDjqdCdEOQ0ksJUcY3wDtNFKw7lLlW","type":"wifi","cmd":"refresh","model":"vacuum2","dest":"192.168.1.36","token":"","devtype":"","serial":""}'
[2021-11-17 15:10:25.976][DEBUG] : Client disconnected from [127.0.0.1:33154]
[2021-11-17 15:10:26.252][DEBUG] : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2021-11-17 15:10:26.252][DEBUG] : SOCKET-READ------Received command from jeedom : refresh
[2021-11-17 15:10:26.252][DEBUG] : SOCKET-READ------Refreshing : vacuum2
[2021-11-17 15:10:26.252][DEBUG] : refreshing {'apikey': 'xtBDjqdCdEOQ0ksJUcY3wDtNFKw7lLlW', 'type': 'wifi', 'cmd': 'refresh', 'model': 'vacuum2', 'dest': '192.168.1.36', 'token': '', 'devtype': '', 'serial': ''}
[2021-11-17 15:10:31.256][DEBUG] : Timeout

je tombe en timeout

1 « J'aime »

bonjour,
Question bête tu a bien ajouter sur ton tel dans l’apli mi-home pas dans l’apli roborock ?

edit en faite je vois que non de ton 1er message
donc install mi-home et ré associe le dans cette apli !
puis relance la procédure de recherche du token

pour info les 2 aplications sont identique (dans le tel)!
exception faite du token et vue par jeedom

1 « J'aime »

Y a déjà un autre sujet qui parle.de cela
Il faut utiliser l’application mihome

Et non on ne peut utiliser les 2 applis a la fois. C l’une ou l’autre

2 « J'aime »

Et bonnus, ta patinette avec ton aspirateur Mi fonctionnera dans mihome et pas dans roborock :stuck_out_tongue_closed_eyes:

2 « J'aime »

Merci j ai vu après, effectivement, j ai mis mihome,

le token est trouvé mai sil est bizarrre que des ffffffffffffffffffff

et quand j envois des commandes tjrs timeout, l adresse IP et ok et je ping bien depuis mon raspi

[2021-11-17 16:21:22.993][DEBUG] : Client connected to [127.0.0.1:41842]
[2021-11-17 16:21:22.993][DEBUG] : Message read from socket: b'{"apikey":"xtBDjqdCdEOQ0ksJUcY3wDtNFKw7lLlW","type":"wifi","cmd":"send","model":"vacuum2","dest":"192.168.1.36","token":"ffffffffffffffffffffffffffffffff","devtype":"1cc7","serial":"4d61","method":"set_custom_mode","param":"[75]"}'
[2021-11-17 16:21:22.993][DEBUG] : Client disconnected from [127.0.0.1:41842]
[2021-11-17 16:21:24.083][DEBUG] : 'timeout' object is not subscriptable
[2021-11-17 16:21:24.384][DEBUG] : SOCKET-READ------Message received in socket JEEDOM_SOCKET_MESSAGE
[2021-11-17 16:21:24.384][DEBUG] : SOCKET-READ------Received command from jeedom : send
[2021-11-17 16:21:24.385][DEBUG] : SOCKET-READ------Executing action on : vacuum2
[2021-11-17 16:21:24.385][DEBUG] : executing {'apikey': 'xtBDjqdCdEOQ0ksJUcY3wDtNFKw7lLlW', 'type': 'wifi', 'cmd': 'send', 'model': 'vacuum2', 'dest': '192.168.1.36', 'token': 'ffffffffffffffffffffffffffffffff', 'devtype': '1cc7', 'serial': '4d61', 'method': 'set_custom_mode', 'param': '[75]'}
[2021-11-17 16:21:24.516][DEBUG] : {"id":54669,"method":"set_custom_mode","params":[75]}
[2021-11-17 16:21:29.520][DEBUG] : 'timeout' object is not subscriptable

A tu bien resynchronisé le wifi avec l’application ?
ton aspi fonctionne t’il dans xiaomihome ?

Bonjour bien synchronisé et nickel dans xiaomi home.
Du coup j ai bien token qui remonte, mais les commandes tombe en timeout
il est vu aussi dans jeedom au niveau des etats…

j ai redemarrer jeedom mais rien non plus

Une idée du pourquoi ?

Bonjour,

Là je doute que ce soit le bon :wink:
Commencer par récupérer le bon Token vous devez

Et comment du coup ?

Regarder le lien fournit par @olive l’avez vous fait?
Plusieurs méthode de récupérer le Token il existe soit ici soit avec google :slight_smile:

Ok merci j ai utilise une methode via un soft ici Releases · Maxmudjon/Get_MiHome_devices_token · GitHub

et j ai pu avoir le token et c bon maintenant

merci de votre aide et soutien

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.