Added retrying mechanism

This commit is contained in:
Arne Blumentritt
2021-05-06 10:15:53 +02:00
parent 94b3cc143f
commit 7a0758f883
5 changed files with 27 additions and 13 deletions

View File

@@ -67,6 +67,8 @@ export class NeatoVacuumRobotAccessory
// Identify
this.accessory.on(PlatformAccessoryEvent.IDENTIFY, () => {
this.robot.findMe();
this.robot.getState((error, result) => {
this.log.info("[" + this.robot.name + "] Identified");
if (error)
@@ -329,7 +331,7 @@ export class NeatoVacuumRobotAccessory
{
this.goToDockService.updateCharacteristic(this.platform.Characteristic.On, false);
}
}, 1000);
}, 10000);
try
{