From 40feb234d1043582b90544c357d6bd8ad2328fdd Mon Sep 17 00:00:00 2001 From: Michael Ruhl Date: Mon, 25 Jan 2021 17:28:54 +0100 Subject: [PATCH] Fix filterMaintenance service was not published --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 8015ded..ed9033f 100755 --- a/index.js +++ b/index.js @@ -385,6 +385,7 @@ roombaAccessory.prototype = { this.filterMaintenance .getCharacteristic(Characteristic.FilterChangeIndication) .on("get", this.getFilterStatus.bind(this)); + services.push(this.filterMaintenance); if (this.showDockAsContactSensor) { this.dockService @@ -437,7 +438,7 @@ roombaAccessory.prototype = { this.batteryService .getCharacteristic(Characteristic.StatusLowBattery) .updateValue(status.batteryStatus); - this.filterMaintenance + this.filterMaintenance .getCharacteristic(Characteristic.FilterChangeIndication) .updateValue(status.binStatus); if (this.showDockAsContactSensor) {