Wording and Bugfixes

* Fixed a bug that refresh is not disabled when set to 0
This commit is contained in:
naofireblade 2017-05-20 19:41:25 +02:00
parent d6dd94979b
commit 56e85c92e0
4 changed files with 8 additions and 4 deletions

View File

@ -26,4 +26,8 @@
## 0.3.1
* Added experimental support for newer Neato Botvac models
* Added support for Neato BotVac D5 Connected
## 0.3.2
* Fixed a bug that refresh is not disabled when set to 0

View File

@ -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.

View File

@ -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");

View File

@ -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": [