Wording and Bugfixes
* Fixed a bug that refresh is not disabled when set to 0
This commit is contained in:
parent
d6dd94979b
commit
56e85c92e0
@ -26,4 +26,8 @@
|
|||||||
|
|
||||||
## 0.3.1
|
## 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
|
@ -14,7 +14,7 @@ Feel free to leave any feedback [here](https://github.com/naofireblade/homebridg
|
|||||||
- Get dock info
|
- Get dock info
|
||||||
- Periodic refresh of robot state
|
- 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.
|
**Hint:** To control the robot with your own commands just set up a scene with the name of your choice.
|
||||||
|
|
||||||
|
2
index.js
2
index.js
@ -32,7 +32,7 @@ function NeatoVacuumRobot(log, config) {
|
|||||||
// must be integer and positive
|
// must be integer and positive
|
||||||
this.refresh = (typeof this.refresh !=='number' || (this.refresh%1)!==0 || this.refresh < 0) ? 0 : this.refresh;
|
this.refresh = (typeof this.refresh !=='number' || (this.refresh%1)!==0 || this.refresh < 0) ? 0 : this.refresh;
|
||||||
// minimum 60s
|
// 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.vacuumRobotCleanService = new Service.Switch(this.name + " Clean", "clean");
|
||||||
this.vacuumRobotGoToDockService = new Service.Switch(this.name + " Go to Dock", "goToDock");
|
this.vacuumRobotGoToDockService = new Service.Switch(this.name + " Go to Dock", "goToDock");
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "homebridge-neato",
|
"name": "homebridge-neato",
|
||||||
"version": "0.3.1",
|
"version": "0.3.2",
|
||||||
"description": "A Neato vacuum robot plugin for homebridge.",
|
"description": "A Neato vacuum robot plugin for homebridge.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
Loading…
Reference in New Issue
Block a user