Skip to content

Commit

Permalink
chore: tweaks to water tank status
Browse files Browse the repository at this point in the history
  • Loading branch information
karlvr committed Jan 18, 2025
1 parent ec65654 commit 9bb671e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .changeset/gentle-rules-begin.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"homebridge-roomba2": minor
---

Add support for Braava m6 water tank status as contact sensor
Add support for Braava m6 water tank status as a filter maintenance indicator
4 changes: 2 additions & 2 deletions src/accessory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export default class RoombaAccessory implements AccessoryPlugin {
const showBinStatusAsContactSensor = config.binContactSensor;
const showDockingAsContactSensor = config.dockingContactSensor;
const showHomeSwitch = config.homeSwitch;
const showTankAsContactSensor = config.tankContactSensor;
const showTankAsFilterMaintenance = config.tankContactSensor;

const Service = api.hap.Service;

Expand All @@ -184,7 +184,7 @@ export default class RoombaAccessory implements AccessoryPlugin {
if (showDockingAsContactSensor) {
this.dockingService = new Service.ContactSensor(this.name + " Docking", "docking");
}
if (showTankAsContactSensor) {
if (showTankAsFilterMaintenance) {
this.tankService = new Service.FilterMaintenance(this.name + " Water Tank Empty", "Empty");
}
if (showHomeSwitch) {
Expand Down

0 comments on commit 9bb671e

Please sign in to comment.