Je n’avais pas activé le log de debug de Kroomba, mais maintenant j’ai un peu plus d’info.
Je suis arrivé a contourner le problème en ajoutant la commande de demarrage du Roomba et en mettant une tempo de 10s entre les deux:
Pour ce qui est du log du scenario:
[2020-06-28 09:50:06][SCENARIO] Start : Scenario execute automatiquement sur evenement venant de : [Gestion][Domicile IPhone][Presence].
[2020-06-28 09:50:06][SCENARIO] Exécution du sous-élément de type [condition] : if
[2020-06-28 09:50:06][SCENARIO] Evaluation de la condition : [0 == 0 ET 0 == 0] = Vrai
[2020-06-28 09:50:06][SCENARIO] Exécution du sous-élément de type [action] : then
[2020-06-28 09:50:06][SCENARIO] Exécution d'un bloc élément : 254
[2020-06-28 09:50:06][SCENARIO] Exécution du sous-élément de type [condition] : if
[2020-06-28 09:50:06][SCENARIO] Evaluation de la condition : [950 > 700 ET 950 < 1800 ET 0 != 3] = Vrai
[2020-06-28 09:50:06][SCENARIO] Exécution du sous-élément de type [action] : then
[2020-06-28 09:50:06][SCENARIO] Exécution d'un bloc élément : 255
[2020-06-28 09:50:06][SCENARIO] Exécution de la commande [Appartement][Carson][Démarrer]
[2020-06-28 09:50:19][SCENARIO] Pause de 10 seconde(s)
[2020-06-28 09:50:29][SCENARIO] Exécution d'un bloc élément : 260
[2020-06-28 09:50:29][SCENARIO] Exécution du sous-élément de type [condition] : if
[2020-06-28 09:50:29][SCENARIO] Evaluation de la condition : ["charge" != "run"] = Vrai
[2020-06-28 09:50:29][SCENARIO] Exécution du sous-élément de type [action] : then
[2020-06-28 09:50:29][SCENARIO] Exécution de la commande [Appartement][Carson][Démarrer]
[2020-06-28 09:50:43][SCENARIO] Fin correcte du scénario
On peut voir dans le log que après 10s le Roomba n’a pas le statut « run ». En le lançant une deuxième fois alors il démarre. C’est comme s’il était endormi la première fois…
Maintenant du coté du log de Kroomba:
[2020-06-28 09:50:05][DEBUG] : Mission command : cd /var/www/html/plugins/kroomba/resources && python3 roombaStatus.py "192.168.0.17" "3108872000743680" "****"
[2020-06-28 09:50:06][DEBUG] : Send command : cd /var/www/html/plugins/kroomba/resources && python3 roombaCmd.py start "192.168.0.17" "3108872000743680" "****"
[2020-06-28 09:50:10][DEBUG] : Send command result : Array ( [0] => Error: [Errno 111] Connection refused [1] => Attempting new Connection# 1 [2] => Error: [Errno 111] Connection refused [3] => Attempting new Connection# 2 [4] => Error: [Errno 111] Connection refused [5] => Attempting new Connection# 3 [6] => Error: [Errno 111] Connection refused [7] => Unable to connect [8] => CV or numpy module not found, falling back to PIL [9] => PIL module not found, maps are disabled )
[2020-06-28 09:50:10][DEBUG] : Mission raw result : Array ( [0] => CV or numpy module not found, falling back to PIL [1] => PIL module not found, maps are disabled [2] => {"state": {"reported": {"netinfo": {"dhcp": true, "addr": 3232235537, "mask": 4294967040, "gw": 3232235521, "dns1": 3232235521, "dns2": 0, "bssid": "a8:5e:45:96:eb:f0", "sec": 4}, "wifistat": {"wifi": 1, "uap": false, "cloud": 1}, "wlcfg": {"sec": 7, "ssid": "506F6E6579436C75623234"}, "mac": "74:c6:3b:96:c1:ef", "country": "CA", "cloudEnv": "prod", "svcEndpoints": {"svcDeplId": "v011"}, "mapUploadAllowed": false, "localtimeoffset": -240, "utctime": 1593352209, "pose": {"theta": 85, "point": {"x": 281, "y": 15}}, "batPct": 100, "dock": {"known": false}, "bin": {"present": true, "full": false}, "audio": {"active": false}, "cleanMissionStatus": {"cycle": "none", "phase": "charge", "expireM": 0, "rechrgM": 0, "error": 0, "notReady": 0, "mssnM": 46, "sqft": 298, "initiator": "localApp", "nMssn": 607}, "language": 1, "noAutoPasses": false, "noPP": false, "ecoCharge": false, "vacHigh": false, "binPause": true, "carpetBoost": true, "openOnly": false, "twoPass": false, "schedHold": false, "lastCommand": {"command": "start", "time": 1593275921, "initiator": "localApp"}, "langs": [{"en-US": 0}, {"fr-FR": 1}, {"es-ES": 2}, {"de-DE": 3}, {"it-IT": 4}], "bbnav": {"aMtrack": 70, "nGoodLmrks": 16, "aGain": 36, "aExpo": 104}, "bbpanic": {"panics": [8, 8, 8, 1, 8]}, "bbpause": {"pauses": [13, 5, 16, 6, 6, 0, 5, 0, 0, 2]}, "bbmssn": {"nMssn": 607, "nMssnOk": 358, "nMssnC": 191, "nMssnF": 44, "aMssnM": 42, "aCycleM": 42}, "bbrstinfo": {"nNavRst": 181, "nMobRst": 1, "causes": "0000"}, "cap": {"pose": 1, "ota": 2, "multiPass": 2, "pp": 1, "binFullDetect": 1, "langOta": 1, "maps": 1, "edge": 1, "eco": 1, "svcConf": 1}, "hardwareRev": 2, "sku": "R960020", "batteryType": "li26", "soundVer": "31", "uiSwVer": "4582", "navSwVer": "01.12.01#1"}}} )
[2020-06-28 09:50:10][DEBUG] : Roomba state : {"state": {"reported": {"netinfo": {"dhcp": true, "addr": 3232235537, "mask": 4294967040, "gw": 3232235521, "dns1": 3232235521, "dns2": 0, "bssid": "a8:5e:45:96:eb:f0", "sec": 4}, "wifistat": {"wifi": 1, "uap": false, "cloud": 1}, "wlcfg": {"sec": 7, "ssid": "506F6E6579436C75623234"}, "mac": "74:c6:3b:96:c1:ef", "country": "CA", "cloudEnv": "prod", "svcEndpoints": {"svcDeplId": "v011"}, "mapUploadAllowed": false, "localtimeoffset": -240, "utctime": 1593352209, "pose": {"theta": 85, "point": {"x": 281, "y": 15}}, "batPct": 100, "dock": {"known": false}, "bin": {"present": true, "full": false}, "audio": {"active": false}, "cleanMissionStatus": {"cycle": "none", "phase": "charge", "expireM": 0, "rechrgM": 0, "error": 0, "notReady": 0, "mssnM": 46, "sqft": 298, "initiator": "localApp", "nMssn": 607}, "language": 1, "noAutoPasses": false, "noPP": false, "ecoCharge": false, "vacHigh": false, "binPause": true, "carpetBoost": true, "openOnly": false, "twoPass": false, "schedHold": false, "lastCommand": {"command": "start", "time": 1593275921, "initiator": "localApp"}, "langs": [{"en-US": 0}, {"fr-FR": 1}, {"es-ES": 2}, {"de-DE": 3}, {"it-IT": 4}], "bbnav": {"aMtrack": 70, "nGoodLmrks": 16, "aGain": 36, "aExpo": 104}, "bbpanic": {"panics": [8, 8, 8, 1, 8]}, "bbpause": {"pauses": [13, 5, 16, 6, 6, 0, 5, 0, 0, 2]}, "bbmssn": {"nMssn": 607, "nMssnOk": 358, "nMssnC": 191, "nMssnF": 44, "aMssnM": 42, "aCycleM": 42}, "bbrstinfo": {"nNavRst": 181, "nMobRst": 1, "causes": "0000"}, "cap": {"pose": 1, "ota": 2, "multiPass": 2, "pp": 1, "binFullDetect": 1, "langOta": 1, "maps": 1, "edge": 1, "eco": 1, "svcConf": 1}, "hardwareRev": 2, "sku": "R960020", "batteryType": "li26", "soundVer": "31", "uiSwVer": "4582", "navSwVer": "01.12.01#1"}}}
[2020-06-28 09:50:10][DEBUG] : phase : charge
[2020-06-28 09:50:10][DEBUG] : battery : 100
[2020-06-28 09:50:10][DEBUG] : binfull : false
[2020-06-28 09:50:14][DEBUG] : Mission command : cd /var/www/html/plugins/kroomba/resources && python3 roombaStatus.py "192.168.0.17" "3108872000743680" "****"
[2020-06-28 09:50:19][DEBUG] : Mission raw result : Array ( [0] => CV or numpy module not found, falling back to PIL [1] => PIL module not found, maps are disabled [2] => {"state": {"reported": {"netinfo": {"dhcp": true, "addr": 3232235537, "mask": 4294967040, "gw": 3232235521, "dns1": 3232235521, "dns2": 0, "bssid": "a8:5e:45:96:eb:f0", "sec": 4}, "wifistat": {"wifi": 1, "uap": false, "cloud": 1}, "wlcfg": {"sec": 7, "ssid": "506F6E6579436C75623234"}, "mac": "74:c6:3b:96:c1:ef", "country": "CA", "cloudEnv": "prod", "svcEndpoints": {"svcDeplId": "v011"}, "mapUploadAllowed": false, "localtimeoffset": -240, "utctime": 1593352218, "pose": {"theta": 85, "point": {"x": 281, "y": 15}}, "batPct": 100, "dock": {"known": false}, "bin": {"present": true, "full": false}, "audio": {"active": false}, "cleanMissionStatus": {"cycle": "none", "phase": "charge", "expireM": 0, "rechrgM": 0, "error": 0, "notReady": 0, "mssnM": 46, "sqft": 298, "initiator": "localApp", "nMssn": 607}, "language": 1, "noAutoPasses": false, "noPP": false, "ecoCharge": false, "vacHigh": false, "binPause": true, "carpetBoost": true, "openOnly": false, "twoPass": false, "schedHold": false, "lastCommand": {"command": "start", "time": 1593275921, "initiator": "localApp"}, "langs": [{"en-US": 0}, {"fr-FR": 1}, {"es-ES": 2}, {"de-DE": 3}, {"it-IT": 4}], "bbnav": {"aMtrack": 70, "nGoodLmrks": 16, "aGain": 36, "aExpo": 104}, "bbpanic": {"panics": [8, 8, 8, 1, 8]}, "bbpause": {"pauses": [13, 5, 16, 6, 6, 0, 5, 0, 0, 2]}, "bbmssn": {"nMssn": 607, "nMssnOk": 358, "nMssnC": 191, "nMssnF": 44, "aMssnM": 42, "aCycleM": 42}, "bbrstinfo": {"nNavRst": 181, "nMobRst": 1, "causes": "0000"}, "cap": {"pose": 1, "ota": 2, "multiPass": 2, "pp": 1, "binFullDetect": 1, "langOta": 1, "maps": 1, "edge": 1, "eco": 1, "svcConf": 1}, "hardwareRev": 2, "sku": "R960020", "batteryType": "li26", "soundVer": "31", "uiSwVer": "4582", "navSwVer": "01.12.01#1"}}} )
[2020-06-28 09:50:19][DEBUG] : Roomba state : {"state": {"reported": {"netinfo": {"dhcp": true, "addr": 3232235537, "mask": 4294967040, "gw": 3232235521, "dns1": 3232235521, "dns2": 0, "bssid": "a8:5e:45:96:eb:f0", "sec": 4}, "wifistat": {"wifi": 1, "uap": false, "cloud": 1}, "wlcfg": {"sec": 7, "ssid": "506F6E6579436C75623234"}, "mac": "74:c6:3b:96:c1:ef", "country": "CA", "cloudEnv": "prod", "svcEndpoints": {"svcDeplId": "v011"}, "mapUploadAllowed": false, "localtimeoffset": -240, "utctime": 1593352218, "pose": {"theta": 85, "point": {"x": 281, "y": 15}}, "batPct": 100, "dock": {"known": false}, "bin": {"present": true, "full": false}, "audio": {"active": false}, "cleanMissionStatus": {"cycle": "none", "phase": "charge", "expireM": 0, "rechrgM": 0, "error": 0, "notReady": 0, "mssnM": 46, "sqft": 298, "initiator": "localApp", "nMssn": 607}, "language": 1, "noAutoPasses": false, "noPP": false, "ecoCharge": false, "vacHigh": false, "binPause": true, "carpetBoost": true, "openOnly": false, "twoPass": false, "schedHold": false, "lastCommand": {"command": "start", "time": 1593275921, "initiator": "localApp"}, "langs": [{"en-US": 0}, {"fr-FR": 1}, {"es-ES": 2}, {"de-DE": 3}, {"it-IT": 4}], "bbnav": {"aMtrack": 70, "nGoodLmrks": 16, "aGain": 36, "aExpo": 104}, "bbpanic": {"panics": [8, 8, 8, 1, 8]}, "bbpause": {"pauses": [13, 5, 16, 6, 6, 0, 5, 0, 0, 2]}, "bbmssn": {"nMssn": 607, "nMssnOk": 358, "nMssnC": 191, "nMssnF": 44, "aMssnM": 42, "aCycleM": 42}, "bbrstinfo": {"nNavRst": 181, "nMobRst": 1, "causes": "0000"}, "cap": {"pose": 1, "ota": 2, "multiPass": 2, "pp": 1, "binFullDetect": 1, "langOta": 1, "maps": 1, "edge": 1, "eco": 1, "svcConf": 1}, "hardwareRev": 2, "sku": "R960020", "batteryType": "li26", "soundVer": "31", "uiSwVer": "4582", "navSwVer": "01.12.01#1"}}}
[2020-06-28 09:50:19][DEBUG] : phase : charge
[2020-06-28 09:50:19][DEBUG] : battery : 100
[2020-06-28 09:50:19][DEBUG] : binfull : false
[2020-06-28 09:50:29][DEBUG] : Send command : cd /var/www/html/plugins/kroomba/resources && python3 roombaCmd.py start "192.168.0.17" "3108872000743680" "****"
[2020-06-28 09:50:34][DEBUG] : Send command result : Array ( [0] => CV or numpy module not found, falling back to PIL [1] => PIL module not found, maps are disabled )
[2020-06-28 09:50:36][DEBUG] : toHtml status : charge
[2020-06-28 09:50:38][DEBUG] : Mission command : cd /var/www/html/plugins/kroomba/resources && python3 roombaStatus.py "192.168.0.17" "3108872000743680" "****"
[2020-06-28 09:50:43][DEBUG] : Mission raw result : Array ( [0] => CV or numpy module not found, falling back to PIL [1] => PIL module not found, maps are disabled [2] => {"state": {"reported": {"netinfo": {"dhcp": true, "addr": 3232235537, "mask": 4294967040, "gw": 3232235521, "dns1": 3232235521, "dns2": 0, "bssid": "a8:5e:45:96:eb:f0", "sec": 4}, "wifistat": {"wifi": 1, "uap": false, "cloud": 1}, "wlcfg": {"sec": 7, "ssid": "506F6E6579436C75623234"}, "mac": "74:c6:3b:96:c1:ef", "country": "CA", "cloudEnv": "prod", "svcEndpoints": {"svcDeplId": "v011"}, "audio": {"active": false}, "mapUploadAllowed": false, "localtimeoffset": -240, "utctime": 1593352242, "pose": {"theta": -2, "point": {"x": -9, "y": 0}}, "batPct": 100, "dock": {"known": true}, "bin": {"present": true, "full": false}, "cleanMissionStatus": {"cycle": "quick", "phase": "run", "expireM": 0, "rechrgM": 0, "error": 0, "notReady": 0, "mssnM": 0, "sqft": 298, "initiator": "localApp", "nMssn": 607}, "language": 1, "noAutoPasses": false, "noPP": false, "ecoCharge": false, "vacHigh": false, "binPause": true, "carpetBoost": true, "openOnly": false, "twoPass": false, "schedHold": false, "lastCommand": {"command": "start", "time": 1593337833, "initiator": "localApp"}}}} )
[2020-06-28 09:50:43][DEBUG] : Roomba state : {"state": {"reported": {"netinfo": {"dhcp": true, "addr": 3232235537, "mask": 4294967040, "gw": 3232235521, "dns1": 3232235521, "dns2": 0, "bssid": "a8:5e:45:96:eb:f0", "sec": 4}, "wifistat": {"wifi": 1, "uap": false, "cloud": 1}, "wlcfg": {"sec": 7, "ssid": "506F6E6579436C75623234"}, "mac": "74:c6:3b:96:c1:ef", "country": "CA", "cloudEnv": "prod", "svcEndpoints": {"svcDeplId": "v011"}, "audio": {"active": false}, "mapUploadAllowed": false, "localtimeoffset": -240, "utctime": 1593352242, "pose": {"theta": -2, "point": {"x": -9, "y": 0}}, "batPct": 100, "dock": {"known": true}, "bin": {"present": true, "full": false}, "cleanMissionStatus": {"cycle": "quick", "phase": "run", "expireM": 0, "rechrgM": 0, "error": 0, "notReady": 0, "mssnM": 0, "sqft": 298, "initiator": "localApp", "nMssn": 607}, "language": 1, "noAutoPasses": false, "noPP": false, "ecoCharge": false, "vacHigh": false, "binPause": true, "carpetBoost": true, "openOnly": false, "twoPass": false, "schedHold": false, "lastCommand": {"command": "start", "time": 1593337833, "initiator": "localApp"}}}}
[2020-06-28 09:50:43][DEBUG] : phase : run
[2020-06-28 09:50:43][DEBUG] : battery : 100
[2020-06-28 09:50:43][DEBUG] : binfull : false
[2020-06-28 09:50:44][DEBUG] : toHtml status : run
De ce je comprends la première fois le Roomba n’est pas vu sur le reseau malgré plusieurs tentatives…
Votre avis?