Robot viomi.vacuum.v7?

Bonjour à tous, bonjour ToMiToMaS !

Je me demandais s’il était envisageable d’intégrer le viomi.vacuum.v7 au plugin :slight_smile:
Quand je lance la detection auto, le plugin me remonte bien le vacuum qui est sur mon compte Xiaomi Home comme suit :
2024-06-27_16h01_57

Le plugin me remonte bien son ip, son Token et son Id ainsi que le type du modèle.
Il me crée un objet de type « générique », sans commande.

Dans le log, lors de la détéction, je vois bien le nouvel équipement ainsi qu’une erreur :

[2024-06-27 16:06:43] DEBUG  : Nouvel Equipement, ajout en cours.
[2024-06-27 16:06:43] DEBUG  : ============================ CREATING CMD ============================
[2024-06-27 16:06:43] DEBUG  : GENERATE CMD FROM CONFIG FILE : /var/www/html/plugins/mirobot/core/class/../conf/genericmiot.json
[2024-06-27 16:06:43] DEBUG  : CMD BY genericmiot => sudo  /var/www/html/plugins/mirobot/core/class/../../resources/venv/bin/miiocli -o json_pretty genericmiot --ip 192.168.1.*xx* --token *xx* status  >&1 2>/var/www/html/plugins/mirobot/core/class/../../data/exec/error_905.txt

Le document d’erreur 905.txt contient ceci comme premières lignes, ce qui est assez parlant même si je n’arrive pas à en définir l’origine bien entendu ^^

ERROR:miio.miioprotocol:Got error when receiving: timed out
ERROR:miio.click_common:Exception: No response from the device

merci beaucoup pour votre retour !
Flal

SAlut

Ton jeedom a aussi une IP de ce type ?
ie : sur le meme reseau que ton robot

yes sir :wink:

Humm…

Je vais pas savoir quoi te dire … le msg d erreur parle de lui meme, le robot n est pas accessible ou met trop de temps a repondre :confused:

malheureusement, j’avais compris mais me disait que, si par chance le robot n’avait pas été integré au plugin, y’aurait peut etre quelque chose à faire ^^
le robot répond cependant bien au ping, aux commandes depuis l’appli et aux commandes depuis le plugin xiaomi home.
donc j’avais espoir de plutôt le faire passer par ton plugin :wink: mais visiblement, y’a un probleme de communication que je ne peux pas comprendre.

ca reste quand même bizarre parce que quand je le passe en type viomi et que je recrée les commandes j’ai ces messages dans le log :

[2024-06-27 16:28:35] DEBUG  : CMD BY viomivacuum => sudo  /var/www/html/plugins/mirobot/core/class/../../resources/venv/bin/miiocli -o json_pretty viomivacuum --ip 192.168.1.33 --token 5756314931324954336956646c6c716d status  >&1 2>/var/www/html/plugins/mirobot/core/class/../../data/exec/error_905.txt
[2024-06-27 16:28:43] DEBUG  : CMD result {"battary_life":100,"box_type":1,"cur_mapid":1585557974,"err_state":2105,"has_map":1,"has_newmap":0,"hw_info":"1.0.3","is_charge":0,"is_mop":0,"is_work":1,"light_state":1,"map_num":2,"mode":0,"mop_route":1,"mop_type":0,"remember_map":0,"repeat_state":0,"run_state":5,"s_area":1.63,"s_time":1,"suction_grade":0,"v_state":5,"water_grade":12,"order_time":"0","start_time":0,"water_percent":0,"zone_data":"0","sw_info":"3.5.3_0047","main_brush_hours":252,"main_brush_life":70,"side_brush_hours":72,"side_brush_life":40,"mop_hours":165,"mop_life":91,"hypa_hours":72,"hypa_life":40}
[2024-06-27 16:28:43] DEBUG  :   -- creating cmd Batterie
[2024-06-27 16:28:43] DEBUG  :   -- creating cmd En Charge
[2024-06-27 16:28:43] DEBUG  :   -- creating cmd Erreur
[2024-06-27 16:28:43]WARNING :   -- skipping cmd Equipement en erreur
[2024-06-27 16:28:43]WARNING :   -- skipping cmd Etat
[2024-06-27 16:28:43] DEBUG  :   -- creating cmd Statut
[2024-06-27 16:28:43] DEBUG  :   -- creating cmd Temps de nettoyage
[2024-06-27 16:28:43] DEBUG  :   -- creating cmd Surface Nettoyée
[2024-06-27 16:28:43] DEBUG  :   -- creating cmd Vitesse Mode
[2024-06-27 16:28:43] DEBUG  :   -- creating cmd Arreter
[2024-06-27 16:28:43] DEBUG  :   -- creating cmd Démarrer
[2024-06-27 16:28:43] DEBUG  :   -- creating cmd Maison
[2024-06-27 16:28:43] DEBUG  :   -- creating cmd Cherche Moi
[2024-06-27 16:28:43] DEBUG  :   -- creating cmd Rafraichir
[2024-06-27 16:28:43] DEBUG  :   -- creating cmd Vitesse
[2024-06-27 16:28:43] DEBUG  :   -- creating cmd Commande perso
[2024-06-27 16:28:43] DEBUG  : CMD BY viomivacuum => sudo  /var/www/html/plugins/mirobot/core/class/../../resources/venv/bin/miiocli -o json_pretty viomivacuum --ip 192.168.1.33 --token 5756314931324954336956646c6c716d get_rooms  >&1 2>/var/www/html/plugins/mirobot/core/class/../../data/exec/error_905.txt
[2024-06-27 16:29:02] DEBUG  : ============================ UPDATING CMD ============================
[2024-06-27 16:29:02] DEBUG  : GENERATE CMD FROM CONFIG FILE : /var/www/html/plugins/mirobot/core/class/../conf/viomivacuum.json
[2024-06-27 16:29:02] DEBUG  : CMD BY viomivacuum => sudo  /var/www/html/plugins/mirobot/core/class/../../resources/venv/bin/miiocli -o json_pretty viomivacuum --ip 192.168.1.33 --token 5756314931324954336956646c6c716d status  >&1 2>/var/www/html/plugins/mirobot/core/class/../../data/exec/error_905.txt
[2024-06-27 16:29:05] DEBUG  : CMD result null
[2024-06-27 16:29:05]WARNING : ERROR:miio.click_common:Exception: Fake schedule not found. Please create a scheduled cleanup with the following properties:
[2024-06-27 16:29:05] DEBUG  : ============================ UPDATING CMD ============================
[2024-06-27 16:29:05] DEBUG  : GENERATE CMD FROM CONFIG FILE : /var/www/html/plugins/mirobot/core/class/../conf/viomivacuum.json
[2024-06-27 16:29:05] DEBUG  : JSON {"battary_life":100,"box_type":1,"cur_mapid":1585557974,"err_state":2105,"has_map":1,"has_newmap":0,"hw_info":"1.0.3","is_charge":0,"is_mop":0,"is_work":1,"light_state":1,"map_num":2,"mode":0,"mop_route":1,"mop_type":0,"remember_map":0,"repeat_state":0,"run_state":5,"s_area":1.63,"s_time":1,"suction_grade":0,"v_state":5,"water_grade":12,"order_time":"0","start_time":0,"water_percent":0,"zone_data":"0","sw_info":"3.5.3_0047","main_brush_hours":252,"main_brush_life":70,"side_brush_hours":72,"side_brush_life":40,"mop_hours":165,"mop_life":91,"hypa_hours":72,"hypa_life":40}
[2024-06-27 16:29:05] DEBUG  : Updating [battary_life] with value [100]
[2024-06-27 16:29:05] DEBUG  : Updating [err_state] with value [2105]
[2024-06-27 16:29:05] DEBUG  : Updating [is_charge] with value [0]
[2024-06-27 16:29:05] DEBUG  : Updating [run_state] with value [5]
[2024-06-27 16:29:05] DEBUG  : Updating [s_area] with value [1.63]
[2024-06-27 16:29:05] DEBUG  : Updating [s_time] with value [1]
[2024-06-27 16:29:05] DEBUG  : Updating [suction_grade] with value [0]
[2024-06-27 16:29:41] DEBUG  : CMD result {"battary_life":100,"box_type":1,"cur_mapid":1585557974,"err_state":2105,"has_map":1,"has_newmap":0,"hw_info":"1.0.3","is_charge":0,"is_mop":0,"is_work":1,"light_state":1,"map_num":2,"mode":0,"mop_route":1,"mop_type":0,"remember_map":0,"repeat_state":0,"run_state":5,"s_area":1.63,"s_time":1,"suction_grade":0,"v_state":5,"water_grade":12,"order_time":"0","start_time":0,"water_percent":0,"zone_data":"0","sw_info":"3.5.3_0047","main_brush_hours":252,"main_brush_life":70,"side_brush_hours":72,"side_brush_life":40,"mop_hours":165,"mop_life":91,"hypa_hours":72,"hypa_life":40}
[2024-06-27 16:29:41] DEBUG  : JSON {"battary_life":100,"box_type":1,"cur_mapid":1585557974,"err_state":2105,"has_map":1,"has_newmap":0,"hw_info":"1.0.3","is_charge":0,"is_mop":0,"is_work":1,"light_state":1,"map_num":2,"mode":0,"mop_route":1,"mop_type":0,"remember_map":0,"repeat_state":0,"run_state":5,"s_area":1.63,"s_time":1,"suction_grade":0,"v_state":5,"water_grade":12,"order_time":"0","start_time":0,"water_percent":0,"zone_data":"0","sw_info":"3.5.3_0047","main_brush_hours":252,"main_brush_life":70,"side_brush_hours":72,"side_brush_life":40,"mop_hours":165,"mop_life":91,"hypa_hours":72,"hypa_life":40}
[2024-06-27 16:29:41] DEBUG  : Updating [battary_life] with value [100]
[2024-06-27 16:29:41] DEBUG  : Updating [err_state] with value [2105]
[2024-06-27 16:29:41] DEBUG  : Updating [is_charge] with value [0]
[2024-06-27 16:29:41] DEBUG  : Updating [run_state] with value [5]
[2024-06-27 16:29:41] DEBUG  : Updating [s_area] with value [1.63]
[2024-06-27 16:29:41] DEBUG  : Updating [s_time] with value [1]
[2024-06-27 16:29:41] DEBUG  : Updating [suction_grade] with value [0]
[2024-06-27 16:30:08] DEBUG  : ============================ UPDATING CMD ============================
[2024-06-27 16:30:08] DEBUG  : GENERATE CMD FROM CONFIG FILE : /var/www/html/plugins/mirobot/core/class/../conf/viomivacuum.json
[2024-06-27 16:30:08] DEBUG  : CMD BY viomivacuum => sudo  /var/www/html/plugins/mirobot/core/class/../../resources/venv/bin/miiocli -o json_pretty viomivacuum --ip 192.168.1.33 --token 5756314931324954336956646c6c716d status  >&1 2>/var/www/html/plugins/mirobot/core/class/../../data/exec/error_905.txt
[2024-06-27 16:30:11] DEBUG  : CMD result {"battary_life":100,"box_type":1,"cur_mapid":1585557974,"err_state":2105,"has_map":1,"has_newmap":0,"hw_info":"1.0.3","is_charge":0,"is_mop":0,"is_work":1,"light_state":1,"map_num":2,"mode":0,"mop_route":1,"mop_type":0,"remember_map":0,"repeat_state":0,"run_state":5,"s_area":1.63,"s_time":1,"suction_grade":0,"v_state":5,"water_grade":12,"order_time":"0","start_time":0,"water_percent":0,"zone_data":"0","sw_info":"3.5.3_0047","main_brush_hours":252,"main_brush_life":70,"side_brush_hours":72,"side_brush_life":40,"mop_hours":165,"mop_life":91,"hypa_hours":72,"hypa_life":40}
[2024-06-27 16:30:11] DEBUG  : JSON {"battary_life":100,"box_type":1,"cur_mapid":1585557974,"err_state":2105,"has_map":1,"has_newmap":0,"hw_info":"1.0.3","is_charge":0,"is_mop":0,"is_work":1,"light_state":1,"map_num":2,"mode":0,"mop_route":1,"mop_type":0,"remember_map":0,"repeat_state":0,"run_state":5,"s_area":1.63,"s_time":1,"suction_grade":0,"v_state":5,"water_grade":12,"order_time":"0","start_time":0,"water_percent":0,"zone_data":"0","sw_info":"3.5.3_0047","main_brush_hours":252,"main_brush_life":70,"side_brush_hours":72,"side_brush_life":40,"mop_hours":165,"mop_life":91,"hypa_hours":72,"hypa_life":40}
[2024-06-27 16:30:11] DEBUG  : Updating [battary_life] with value [100]
[2024-06-27 16:30:11] DEBUG  : Updating [err_state] with value [2105]
[2024-06-27 16:30:11] DEBUG  : Updating [is_charge] with value [0]
[2024-06-27 16:30:11] DEBUG  : Updating [run_state] with value [5]
[2024-06-27 16:30:11] DEBUG  : Updating [s_area] with value [1.63]
[2024-06-27 16:30:11] DEBUG  : Updating [s_time] with value [1]
[2024-06-27 16:30:11] DEBUG  : Updating [suction_grade] with value [0]

et … bon, je comprends pas ça m’a bien créé les commandes -_-
elles ont l’air de bien réagir, mais m’envoie systematiquement une erreur :

[2024-06-27 16:31:21] DEBUG  : running : start - request: start
[2024-06-27 16:31:21] DEBUG  : CMD BY viomivacuum => sudo  /var/www/html/plugins/mirobot/core/class/../../resources/venv/bin/miiocli -o json_pretty viomivacuum --ip 192.168.1.*xx* --token *xxx* start  >&1 2>/var/www/html/plugins/mirobot/core/class/../../data/exec/error_905.txt
[2024-06-27 16:31:29] DEBUG  : CMD result null
[2024-06-27 16:31:29] ERROR  : Erreur exécution de la commande [xx][xx][Démarrer] :