diff --git a/CHANGELOG.md b/CHANGELOG.md index 175a559..112d68c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,4 +26,8 @@ ## 0.3.1 -* Added experimental support for newer Neato Botvac models \ No newline at end of file +* Added support for Neato BotVac D5 Connected + +## 0.3.2 + +* Fixed a bug that refresh is not disabled when set to 0 \ No newline at end of file diff --git a/README.md b/README.md index 6b65629..b106e6c 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Feel free to leave any feedback [here](https://github.com/naofireblade/homebridg - Get dock info - Periodic refresh of robot state -\* The robot needs to clean for some seconds before he knows where his dock is. After this time the switch to send him home will be automatically available. +\* Available after some seconds of cleaning. **Hint:** To control the robot with your own commands just set up a scene with the name of your choice. diff --git a/index.js b/index.js index cbf65b4..c9d6fd3 100644 --- a/index.js +++ b/index.js @@ -32,7 +32,7 @@ function NeatoVacuumRobot(log, config) { // must be integer and positive this.refresh = (typeof this.refresh !=='number' || (this.refresh%1)!==0 || this.refresh < 0) ? 0 : this.refresh; // minimum 60s - this.refresh = (0 < this.refresh < 60) ? 60 : this.refresh; + this.refresh = (this.refresh > 0 && this.refresh < 60) ? 60 : this.refresh; this.vacuumRobotCleanService = new Service.Switch(this.name + " Clean", "clean"); this.vacuumRobotGoToDockService = new Service.Switch(this.name + " Go to Dock", "goToDock"); diff --git a/package.json b/package.json index 2aec387..7aedcc5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homebridge-neato", - "version": "0.3.1", + "version": "0.3.2", "description": "A Neato vacuum robot plugin for homebridge.", "license": "MIT", "keywords": [