Merge branch 'master' into feature/lang-fr
This commit is contained in:
commit
6c7d669a43
19
.github/workflows/npm.yml
vendored
Normal file
19
.github/workflows/npm.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
name: npm
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
release:
|
||||||
|
types: [created]
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
# Setup .npmrc file to publish to npm
|
||||||
|
- uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '12.x'
|
||||||
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
- run: npm install
|
||||||
|
- run: npm publish
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
@ -126,4 +126,7 @@
|
|||||||
* Include Robot name in Homekit battery service name
|
* Include Robot name in Homekit battery service name
|
||||||
|
|
||||||
## 0.8.2
|
## 0.8.2
|
||||||
|
* Eliminate warnings on Homebridge >= 1.3.0 (77945f8 and 877c3d7 on `naofireblade/homebridge-neato`)
|
||||||
|
|
||||||
|
## 0.8.3
|
||||||
* Add French plugin language (for example, this gives you a "Aspirer la cuisine" Siri command for a zone called "La cuisine")
|
* Add French plugin language (for example, this gives you a "Aspirer la cuisine" Siri command for a zone called "La cuisine")
|
||||||
|
@ -273,7 +273,10 @@ KoboldVacuumRobotAccessory.prototype = {
|
|||||||
if (this.robot.canResume)
|
if (this.robot.canResume)
|
||||||
{
|
{
|
||||||
debug(this.name + ": ## Resume cleaning");
|
debug(this.name + ": ## Resume cleaning");
|
||||||
this.robot.resumeCleaning(callback);
|
this.robot.resumeCleaning((error) =>
|
||||||
|
{
|
||||||
|
callback(error);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
// Start cleaning
|
// Start cleaning
|
||||||
else if (this.robot.canStart)
|
else if (this.robot.canStart)
|
||||||
@ -315,7 +318,10 @@ KoboldVacuumRobotAccessory.prototype = {
|
|||||||
if (this.robot.canPause)
|
if (this.robot.canPause)
|
||||||
{
|
{
|
||||||
debug(this.name + ": ## Pause cleaning");
|
debug(this.name + ": ## Pause cleaning");
|
||||||
this.robot.pauseCleaning(callback);
|
this.robot.pauseCleaning((error) =>
|
||||||
|
{
|
||||||
|
callback(error);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -351,12 +357,8 @@ KoboldVacuumRobotAccessory.prototype = {
|
|||||||
if (error)
|
if (error)
|
||||||
{
|
{
|
||||||
this.log.error("Cannot start cleaning. " + error + ": " + JSON.stringify(result));
|
this.log.error("Cannot start cleaning. " + error + ": " + JSON.stringify(result));
|
||||||
callback(true);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
callback();
|
|
||||||
}
|
}
|
||||||
|
callback(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// Room cleaning
|
// Room cleaning
|
||||||
@ -367,12 +369,8 @@ KoboldVacuumRobotAccessory.prototype = {
|
|||||||
if (error)
|
if (error)
|
||||||
{
|
{
|
||||||
this.log.error("Cannot start room cleaning. " + error + ": " + JSON.stringify(result));
|
this.log.error("Cannot start room cleaning. " + error + ": " + JSON.stringify(result));
|
||||||
callback(true);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
callback();
|
|
||||||
}
|
}
|
||||||
|
callback(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// Spot cleaning
|
// Spot cleaning
|
||||||
@ -383,12 +381,8 @@ KoboldVacuumRobotAccessory.prototype = {
|
|||||||
if (error)
|
if (error)
|
||||||
{
|
{
|
||||||
this.log.error("Cannot start spot cleaning. " + error + ": " + JSON.stringify(result));
|
this.log.error("Cannot start spot cleaning. " + error + ": " + JSON.stringify(result));
|
||||||
callback(true);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
callback();
|
|
||||||
}
|
}
|
||||||
|
callback(error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -412,14 +406,20 @@ KoboldVacuumRobotAccessory.prototype = {
|
|||||||
setTimeout(() =>
|
setTimeout(() =>
|
||||||
{
|
{
|
||||||
debug(this.name + ": ## Go to dock");
|
debug(this.name + ": ## Go to dock");
|
||||||
this.robot.sendToBase(callback);
|
this.robot.sendToBase(() =>
|
||||||
|
{
|
||||||
|
callback();
|
||||||
|
});
|
||||||
}, 1000);
|
}, 1000);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else if (this.robot.canGoToBase)
|
else if (this.robot.canGoToBase)
|
||||||
{
|
{
|
||||||
debug(this.name + ": ## Go to dock");
|
debug(this.name + ": ## Go to dock");
|
||||||
this.robot.sendToBase(callback);
|
this.robot.sendToBase(() =>
|
||||||
|
{
|
||||||
|
callback();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -498,12 +498,18 @@ KoboldVacuumRobotAccessory.prototype = {
|
|||||||
if (on)
|
if (on)
|
||||||
{
|
{
|
||||||
debug(this.name + ": " + "Enabled".brightGreen + " Schedule");
|
debug(this.name + ": " + "Enabled".brightGreen + " Schedule");
|
||||||
this.robot.enableSchedule(callback);
|
this.robot.enableSchedule((error) =>
|
||||||
|
{
|
||||||
|
callback(error);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
debug(this.name + ": " + "Disabled".red + " Schedule");
|
debug(this.name + ": " + "Disabled".red + " Schedule");
|
||||||
this.robot.disableSchedule(callback);
|
this.robot.disableSchedule((error) =>
|
||||||
|
{
|
||||||
|
callback(error);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@ -523,13 +529,16 @@ KoboldVacuumRobotAccessory.prototype = {
|
|||||||
this.findMeService.setCharacteristic(Characteristic.On, false);
|
this.findMeService.setCharacteristic(Characteristic.On, false);
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
||||||
this.robot.findMe(callback);
|
this.robot.findMe((error) =>
|
||||||
|
{
|
||||||
|
callback(error);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
getSpotClean: function (callback)
|
getSpotClean: function (callback)
|
||||||
{
|
{
|
||||||
callback();
|
callback(false, this.spotCleanService.getCharacteristic(Characteristic.On).value);
|
||||||
},
|
},
|
||||||
|
|
||||||
setSpotClean: function (on, callback)
|
setSpotClean: function (on, callback)
|
||||||
@ -569,7 +578,10 @@ KoboldVacuumRobotAccessory.prototype = {
|
|||||||
if (this.robot.canPause)
|
if (this.robot.canPause)
|
||||||
{
|
{
|
||||||
debug(this.name + ": ## Pause cleaning");
|
debug(this.name + ": ## Pause cleaning");
|
||||||
this.robot.pauseCleaning(callback);
|
this.robot.pauseCleaning((error) =>
|
||||||
|
{
|
||||||
|
callback(error);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -687,8 +699,13 @@ KoboldVacuumRobotAccessory.prototype = {
|
|||||||
|
|
||||||
if (this.spotPlusFeatures)
|
if (this.spotPlusFeatures)
|
||||||
{
|
{
|
||||||
this.spotCleanService.setCharacteristic(SpotWidthCharacteristic, this.robot.spotWidth);
|
let widthProps = this.spotCleanService.getCharacteristic(SpotWidthCharacteristic).props;
|
||||||
this.spotCleanService.setCharacteristic(SpotHeightCharacteristic, this.robot.spotHeight);
|
let heightProps = this.spotCleanService.getCharacteristic(SpotHeightCharacteristic).props;
|
||||||
|
|
||||||
|
this.spotCleanService.setCharacteristic(SpotWidthCharacteristic,
|
||||||
|
this.robot.spotWidth >= widthProps.minValue && this.robot.spotWidth <= widthProps.maxValue ? this.robot.spotWidth : widthProps.minValue);
|
||||||
|
this.spotCleanService.setCharacteristic(SpotHeightCharacteristic,
|
||||||
|
this.robot.spotHeight >= heightProps.minValue && this.robot.spotHeight <= heightProps.maxValue ? this.robot.spotHeight : heightProps.minValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user