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
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] :