Bumped version to v0.7.0-beta.5

This commit is contained in:
Arne 2019-09-22 22:30:29 +02:00
parent e49b4af85a
commit 73bc399d64
3 changed files with 12 additions and 10 deletions

View File

@ -11,18 +11,20 @@ module.exports = function (_Service, _Characteristic)
return NeatoVacuumRobotAccessory; return NeatoVacuumRobotAccessory;
}; };
function NeatoVacuumRobotAccessory(robotObject, platform, boundary = undefined) function NeatoVacuumRobotAccessory(platform, robotObject, boundary = undefined)
{ {
this.platform = platform; this.platform = platform;
this.boundary = boundary;
this.log = platform.log; this.log = platform.log;
this.refresh = platform.refresh; this.refresh = platform.refresh;
this.hiddenServices = platform.hiddenServices; this.hiddenServices = platform.hiddenServices;
this.robotObject = robotObject;
this.robot = robotObject.device; this.robot = robotObject.device;
this.mainAccessory = robotObject.mainAccessory;
this.nextRoom = null;
this.meta = robotObject.meta; this.meta = robotObject.meta;
this.boundary = boundary;
this.nextRoom = null;
if (typeof boundary === 'undefined') if (typeof boundary === 'undefined')
{ {
this.name = this.robot.name; this.name = this.robot.name;
@ -277,9 +279,9 @@ NeatoVacuumRobotAccessory.prototype = {
}, 60 * 1000); }, 60 * 1000);
} }
let eco = this.mainAccessory.vacuumRobotEcoService.getCharacteristic(Characteristic.On).value; let eco = this.robotObject.mainAccessory.vacuumRobotEcoService.getCharacteristic(Characteristic.On).value;
let extraCare = this.mainAccessory.vacuumRobotExtraCareService.getCharacteristic(Characteristic.On).value; let extraCare = this.robotObject.mainAccessory.vacuumRobotExtraCareService.getCharacteristic(Characteristic.On).value;
let nogoLines = this.mainAccessory.vacuumRobotNoGoLinesService.getCharacteristic(Characteristic.On).value; let nogoLines = this.robotObject.mainAccessory.vacuumRobotNoGoLinesService.getCharacteristic(Characteristic.On).value;
let room = (typeof boundary === 'undefined') ? '' : boundary.name; let room = (typeof boundary === 'undefined') ? '' : boundary.name;
debug(this.name + ": ## Start cleaning (" + room + " eco: " + eco + ", extraCare: " + extraCare + ", nogoLines: " + nogoLines + ")"); debug(this.name + ": ## Start cleaning (" + room + " eco: " + eco + ", extraCare: " + extraCare + ", nogoLines: " + nogoLines + ")");

View File

@ -61,7 +61,7 @@ NeatoVacuumRobotPlatform.prototype = {
this.updateRobotTimer(robot.device._serial); this.updateRobotTimer(robot.device._serial);
let NeatoVacuumRobotAccessory = require('./accessories/neatoVacuumRobot')(Service, Characteristic); let NeatoVacuumRobotAccessory = require('./accessories/neatoVacuumRobot')(Service, Characteristic);
let mainAccessory = new NeatoVacuumRobotAccessory(robot, this); let mainAccessory = new NeatoVacuumRobotAccessory(this, robot);
accessories.push(mainAccessory); accessories.push(mainAccessory);
robot.mainAccessory = mainAccessory; robot.mainAccessory = mainAccessory;
@ -77,7 +77,7 @@ NeatoVacuumRobotPlatform.prototype = {
{ {
if (boundary.type === "polygon") if (boundary.type === "polygon")
{ {
let roomAccessory = new NeatoVacuumRobotAccessory(robot, this, boundary); let roomAccessory = new NeatoVacuumRobotAccessory(this, robot, boundary);
accessories.push(roomAccessory); accessories.push(roomAccessory);
robot.roomAccessories.push(roomAccessory); robot.roomAccessories.push(roomAccessory);

View File

@ -1,6 +1,6 @@
{ {
"name": "homebridge-neato", "name": "homebridge-neato",
"version": "0.7.0-beta.4", "version": "0.7.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": [