Fixed to spot cleaning options
This commit is contained in:
parent
d9b5c7f572
commit
44f550fe92
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "homebridge-neato",
|
"name": "homebridge-neato",
|
||||||
"displayName": "Homebridge Neato",
|
"displayName": "Homebridge Neato",
|
||||||
"version": "1.0.0-beta.4",
|
"version": "1.0.0-beta.5",
|
||||||
"description": "A Neato vacuum robot plugin for homebridge.",
|
"description": "A Neato vacuum robot plugin for homebridge.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
@ -108,6 +108,11 @@ export class NeatoVacuumRobotAccessory
|
|||||||
|
|
||||||
// Start background update
|
// Start background update
|
||||||
this.updateRobotPeriodically().then(() => {
|
this.updateRobotPeriodically().then(() => {
|
||||||
|
// Add special characteristics to set spot cleaning options
|
||||||
|
this.spotPlusFeatures = ((typeof this.robot.availableServices.spotCleaning !== 'undefined') && this.robot.availableServices.spotCleaning.includes("basic"));
|
||||||
|
this.addSpotCleanCharacteristics();
|
||||||
|
|
||||||
|
// Save/Load options
|
||||||
if (!accessory.context.options)
|
if (!accessory.context.options)
|
||||||
{
|
{
|
||||||
this.options.eco = this.robot.eco;
|
this.options.eco = this.robot.eco;
|
||||||
@ -115,10 +120,6 @@ export class NeatoVacuumRobotAccessory
|
|||||||
this.options.extraCare = this.robot.navigationMode == 2;
|
this.options.extraCare = this.robot.navigationMode == 2;
|
||||||
this.debug(DebugType.INFO, "Options initially set to eco: " + this.options.eco + ", noGoLines: " + this.options.noGoLines + ", extraCare: " + this.options.extraCare);
|
this.debug(DebugType.INFO, "Options initially set to eco: " + this.options.eco + ", noGoLines: " + this.options.noGoLines + ", extraCare: " + this.options.extraCare);
|
||||||
accessory.context.options = this.options;
|
accessory.context.options = this.options;
|
||||||
|
|
||||||
// Add special characteristics to set spot cleaning options
|
|
||||||
this.spotPlusFeatures = ((typeof this.robot.availableServices.spotCleaning !== 'undefined') && this.robot.availableServices.spotCleaning.includes("basic"));
|
|
||||||
this.addSpotCleanCharacteristics();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user