Version 0.4.5

* Fixed compatibility with homebridge 0.4.23 (occupancy sensor not
working)
This commit is contained in:
naofireblade 2017-09-04 00:13:44 +02:00
parent 2fec762498
commit 88f217e2b1
3 changed files with 8 additions and 4 deletions

View File

@ -49,4 +49,8 @@
## 0.4.4
* Fixed config parameter to disable switches/sensors not optional
* Fixed config parameter to disable switches/sensors not optional
## 0.4.5
* Fixed compatibility with homebridge 0.4.23 (occupancy sensor not working)

View File

@ -260,7 +260,7 @@ NeatoVacuumRobotAccessory.prototype = {
let that = this;
this.updateRobot(function (error, result) {
debug(that.name + ": Is docked: " + that.robot.isDocked);
callback(false, that.robot.isDocked);
callback(false, that.robot.isDocked ? 1 : 0);
});
},
@ -328,7 +328,7 @@ NeatoVacuumRobotAccessory.prototype = {
}
// no commands here, values can be updated without problems
that.vacuumRobotDockStateService.setCharacteristic(Characteristic.OccupancyDetected, that.robot.isDocked);
that.vacuumRobotDockStateService.setCharacteristic(Characteristic.OccupancyDetected, that.robot.isDocked ? 1 : 0);
that.vacuumRobotBatteryService.setCharacteristic(Characteristic.BatteryLevel, that.robot.charge);
that.vacuumRobotBatteryService.setCharacteristic(Characteristic.ChargingState, that.robot.isCharging);

View File

@ -1,6 +1,6 @@
{
"name": "homebridge-neato",
"version": "0.4.4",
"version": "0.4.5",
"description": "A Neato vacuum robot plugin for homebridge.",
"license": "MIT",
"keywords": [