From ad41c1679de9a3e7939826ccb3df3752e8aff80f Mon Sep 17 00:00:00 2001 From: naofireblade Date: Sun, 10 Dec 2017 13:14:12 +0100 Subject: [PATCH] Version 0.4.6 * Added error log while refreshing robot state * Fixed a rare bug where the robot stops after some seconds of cleaning --- CHANGELOG.md | 7 ++++++- README.md | 2 +- index.js | 5 +++-- package.json | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b3f63e..4517e05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,4 +53,9 @@ ## 0.4.5 -* Fixed compatibility with homebridge 0.4.23 (occupancy sensor not working) \ No newline at end of file +* Fixed compatibility with homebridge 0.4.23 (occupancy sensor not working) + +## 0.4.6 + +* Added error log while refreshing robot state +* Fixed a rare bug where the robot stops after some seconds of cleaning \ No newline at end of file diff --git a/README.md b/README.md index 5e00b75..81ac82f 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,6 @@ The parameter **disabled** accepts a list of switches/sensors that can be disabl - BotVac Connected (Firmware 2.2.0) - BotVac D3 Connected -- BotVac D5 Connected +- BotVac D5 Connected (Firmware 3.2.0-305) If you have another connected neato robot, please [tell me](https://github.com/naofireblade/homebridge-neato/issues) about your experience with this plugin. \ No newline at end of file diff --git a/index.js b/index.js index 50874ac..9f837eb 100644 --- a/index.js +++ b/index.js @@ -323,8 +323,9 @@ NeatoVacuumRobotAccessory.prototype = { that.vacuumRobotCleanService.setCharacteristic(Characteristic.On, that.robot.canPause); } - if (that.vacuumRobotGoToDockService.getCharacteristic(Characteristic.On).value !== !that.robot.dockHasBeenSeen) { - that.vacuumRobotGoToDockService.setCharacteristic(Characteristic.On, !that.robot.dockHasBeenSeen); + // dock switch is on (dock not seen before) and dock has just been seen -> turn switch off + if (that.vacuumRobotGoToDockService.getCharacteristic(Characteristic.On).value == true && that.robot.dockHasBeenSeen) { + that.vacuumRobotGoToDockService.setCharacteristic(Characteristic.On, false); } if (that.vacuumRobotScheduleService.getCharacteristic(Characteristic.On).value !== that.robot.isScheduleEnabled) { diff --git a/package.json b/package.json index fb7592f..db9e66a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homebridge-neato", - "version": "0.4.5", + "version": "0.4.6", "description": "A Neato vacuum robot plugin for homebridge.", "license": "MIT", "keywords": [