Skip to content

Commit

Permalink
1.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoduj committed Feb 20, 2021
1 parent ab23523 commit 5511a82
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 15 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ You can also use the [PACKAGES](https://github.com/oznu/docker-homebridge#option

All notable changes to this project will be documented in this file.

## 1.4.4

- [NEW] bump dep
- [FIX] wrnings on homebridge 1.3.X
-

## 1.4.3

- [NEW] bump dep
Expand Down
1 change: 1 addition & 0 deletions deebotEcovacsAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ DeebotEcovacsAPI.prototype = {
'INFO - updating sensor for ' + deebotAccessory.name + ' : %s ',
isOnError
);

deebotAccessory.HKMotionService.getCharacteristic(
Characteristic.MotionDetected
).updateValue(isOnError);
Expand Down
27 changes: 14 additions & 13 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,24 +230,25 @@ myDeebotEcovacsPlatform.prototype = {

if (!myDeebotEcovacsAccessory) {
myDeebotEcovacsAccessory = new Accessory(deebotName, uuid);
myDeebotEcovacsAccessory.name = deebotName;
myDeebotEcovacsAccessory.manufacturer = vacBot.vacuum.company;
myDeebotEcovacsAccessory.serialNumber = vacBot.vacuum.did;

myDeebotEcovacsAccessory
.getService(Service.AccessoryInformation)
.setCharacteristic(Characteristic.Manufacturer, myDeebotEcovacsAccessory.manufacturer)
.setCharacteristic(Characteristic.Model, myDeebotEcovacsAccessory.model)
.setCharacteristic(Characteristic.SerialNumber, myDeebotEcovacsAccessory.serialNumber);

this.api.registerPlatformAccessories('homebridge-deebotecovacs', 'DeebotEcovacs', [
myDeebotEcovacsAccessory,
]);
this.foundAccessories.push(myDeebotEcovacsAccessory);
}

myDeebotEcovacsAccessory.name = deebotName;
myDeebotEcovacsAccessory.manufacturer = vacBot.vacuum.company;
myDeebotEcovacsAccessory.serialNumber = vacBot.vacuum.did;
myDeebotEcovacsAccessory.model = vacBot.deviceModel;
myDeebotEcovacsAccessory.vacBot = vacBot;
myDeebotEcovacsAccessory.name = deebotName;

myDeebotEcovacsAccessory
.getService(Service.AccessoryInformation)
.setCharacteristic(Characteristic.Manufacturer, myDeebotEcovacsAccessory.manufacturer)
.setCharacteristic(Characteristic.Model, myDeebotEcovacsAccessory.model)
.setCharacteristic(Characteristic.SerialNumber, myDeebotEcovacsAccessory.serialNumber);

let HKBatteryService = myDeebotEcovacsAccessory.getServiceByUUIDAndSubType(
deebotName,
'BatteryService' + deebotName
Expand Down Expand Up @@ -789,7 +790,7 @@ myDeebotEcovacsPlatform.prototype = {
.on(
'get',
function (callback) {
callback(false);
callback(null, false);
}.bind(this)
)
.on(
Expand All @@ -811,7 +812,7 @@ myDeebotEcovacsPlatform.prototype = {
.on(
'get',
function (callback) {
callback(false);
callback(null, false);
}.bind(this)
)
.on(
Expand All @@ -826,7 +827,7 @@ myDeebotEcovacsPlatform.prototype = {
service.getCharacteristic(Characteristic.MotionDetected).on(
'get',
function (callback) {
callback(false);
callback(null, false);
}.bind(this)
);
},
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "homebridge-deebotecovacs",
"version": "1.4.3",
"version": "1.4.4",
"author": "Nicolas Dujardin",
"description": "Publish your deebot ecovacs as an homekit accessory",
"main": "index.js",
Expand All @@ -25,7 +25,7 @@
"homekit"
],
"dependencies": {
"ecovacs-deebot": "^0.5.5",
"ecovacs-deebot": "^0.5.6",
"node-machine-id": "^1.1.12"
},
"bugs": {
Expand Down

0 comments on commit 5511a82

Please sign in to comment.