Support for basic-2 services

This commit is contained in:
naofireblade 2017-05-18 18:59:14 +02:00
parent 9a5c3f942c
commit 5eb5b9934d
4 changed files with 13 additions and 7 deletions

View File

@ -22,4 +22,8 @@
* Added error messages when cant login or get robot * Added error messages when cant login or get robot
* Improved go to dock switch to be enabled as soon as possible without manual refresh * Improved go to dock switch to be enabled as soon as possible without manual refresh
* Improved switches to indicate the time an action needs to complete * Improved switches to indicate the time an action needs to complete
* Improved eco mode to not be overwritten by robot state update * Improved eco mode to not be overwritten by robot state update
## 0.3.1
* Added experimental support for newer Neato Botvac models

View File

@ -29,7 +29,7 @@ Feel free to leave any feedback [here](https://github.com/naofireblade/homebridg
Add the following information to your config file. Change the values for name, email and password. Add the following information to your config file. Change the values for name, email and password.
The parameter **refresh** is optional (default 0=off) and adjusts in what interval changes the robot state will be pushed to homekit. The minimum refresh time is 60 seconds. You need this only when you set up rules based on the robot state and start him outside of homekit (e.g. with the Neato app). The parameter **refresh** is optional (default 0=off) and adjusts in what interval (seconds) changes of the robot state will be pushed to homekit. The minimum refresh time is 60 seconds. You need this only when you set up rules based on the robot state and start him outside of homekit (e.g. with the Neato app).
```json ```json
"accessories": [ "accessories": [
@ -38,7 +38,7 @@ The parameter **refresh** is optional (default 0=off) and adjusts in what interv
"name": "YourRobot", "name": "YourRobot",
"email": "YourEmail", "email": "YourEmail",
"password": "YourPassword", "password": "YourPassword",
"refresh": "120" "refresh": "0"
} }
] ]
``` ```

View File

@ -97,7 +97,7 @@ NeatoVacuumRobot.prototype = {
} }
else { else {
debug("Start cleaning"); debug("Start cleaning");
that.robot.startCleaning(that.robot.eco, callback); that.robot.startCleaning(that.robot.eco, 2, callback);
} }
} }
else { else {
@ -310,7 +310,9 @@ NeatoVacuumRobot.prototype = {
else { else {
that.robot = robots[0]; that.robot = robots[0];
that.log("Found robot: " + that.robot.name); that.log("Found robot: " + that.robot.name);
debug(that.robot); that.getState(function (error, result) {
debug(that.robot);
})
if (robots.length > 1){ if (robots.length > 1){
that.log.warn("Found more then one robot in your account. This plugin currently just supports one. First one found will be used.") that.log.warn("Found more then one robot in your account. This plugin currently just supports one. First one found will be used.")
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "homebridge-neato", "name": "homebridge-neato",
"version": "0.3.0", "version": "0.3.1",
"description": "A Neato vacuum robot plugin for homebridge.", "description": "A Neato vacuum robot plugin for homebridge.",
"license": "MIT", "license": "MIT",
"keywords": [ "keywords": [
@ -20,7 +20,7 @@
"url": "git://github.com/naofireblade/homebridge-neato.git" "url": "git://github.com/naofireblade/homebridge-neato.git"
}, },
"dependencies": { "dependencies": {
"node-botvac": "^0.1.4", "node-botvac": "^0.1.5",
"debug": "^2.2.0" "debug": "^2.2.0"
} }
} }