Fix and activate the start_cleaning call
This commit is contained in:
parent
2b07c19315
commit
93574d9693
@ -178,9 +178,6 @@ def pollService():
|
|||||||
|
|
||||||
def executeAction(info):
|
def executeAction(info):
|
||||||
if info.actionTypeId == robotStartCleaningActionTypeId:
|
if info.actionTypeId == robotStartCleaningActionTypeId:
|
||||||
zone = info.paramValue(robotStartCleaningActionZoneParamTypeId)
|
|
||||||
logger.log("zone", zone)
|
|
||||||
|
|
||||||
refreshRobot(info.thing)
|
refreshRobot(info.thing)
|
||||||
if info.thing.stateValue(robotRobotStateStateTypeId) == "paused":
|
if info.thing.stateValue(robotRobotStateStateTypeId) == "paused":
|
||||||
thingsAndRobots[info.thing].resume_cleaning()
|
thingsAndRobots[info.thing].resume_cleaning()
|
||||||
@ -234,7 +231,7 @@ def cleanWithRobot(robotThing, mapID, boundaryID):
|
|||||||
else:
|
else:
|
||||||
intNogo = 4
|
intNogo = 4
|
||||||
logger.log("Settings: Eco:", boolEco, "Care:", boolCare, "Enable nogo:", boolNogo, "mapID:", mapID, "boundaryID:", boundaryID)
|
logger.log("Settings: Eco:", boolEco, "Care:", boolCare, "Enable nogo:", boolNogo, "mapID:", mapID, "boundaryID:", boundaryID)
|
||||||
# thingsAndRobots[robotThing].start_cleaning(mode=intEco, navigation_mode=intCare, category=intNogo, boundary_id=boundaryID, map_id=mapID)
|
thingsAndRobots[robotThing].start_cleaning(mode=intEco, navigation_mode=intCare, category=intNogo, boundary_id=boundaryID, map_id=mapID)
|
||||||
|
|
||||||
|
|
||||||
def browseThing(browseResult):
|
def browseThing(browseResult):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user