From c8474814870766996ea28fd17040152d9d4bdf99 Mon Sep 17 00:00:00 2001 From: Luis Riegger Date: Sun, 7 Feb 2021 15:27:57 +0100 Subject: [PATCH] Include Include Robot name in Homekit battery service name --- CHANGELOG.md | 5 ++++- README.md | 20 ++++++++++---------- accessories/koboldVacuumRobot.js | 2 +- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e090516..b8fcf5b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -120,4 +120,7 @@ ## 0.8.0 * Add German plugin language (for example, this gives you a "Sauge Küche" Siri command for a zone called "Küche") -* Added possibility to toggle between languages (English/German) in Homebridge UI Plugin Settings \ No newline at end of file +* Added possibility to toggle between languages (English/German) in Homebridge UI Plugin Settings + +## 0.8.1 +* Include Robot name in Homekit battery service name \ No newline at end of file diff --git a/README.md b/README.md index 93d2b1c..cb2594a 100644 --- a/README.md +++ b/README.md @@ -49,11 +49,11 @@ Add the following information to your config file. Change the values for email a ```json "platforms": [ - { - "platform": "KoboldVacuumRobot", - "token": "YourToken", + { + "platform": "KoboldVacuumRobot", + "token": "YourToken", "language": "de" - } + } ] ``` @@ -112,13 +112,13 @@ List of plugin features that you don't want to use in homekit (e.g. `dock`, `doc ```json "platforms": [ - { - "platform": "KoboldVacuumRobot", - "token": "YourToken", - "refresh": "120", - "hidden": ["dock", "dockstate", "eco", "nogolines", "extracare", "schedule", "find", "spot"], + { + "platform": "KoboldVacuumRobot", + "token": "YourToken", + "refresh": "120", + "hidden": ["dock", "dockstate", "eco", "nogolines", "extracare", "schedule", "find", "spot"], "language": "de" - } + } ] ``` diff --git a/accessories/koboldVacuumRobot.js b/accessories/koboldVacuumRobot.js index 99995b9..0be1c3d 100644 --- a/accessories/koboldVacuumRobot.js +++ b/accessories/koboldVacuumRobot.js @@ -93,7 +93,7 @@ function KoboldVacuumRobotAccessory(platform, robotObject) this.name = this.robot.name + ' - ' + this.boundary.name; } - this.batteryService = new Service.BatteryService(this.dict["battery"], "battery"); + this.batteryService = new Service.BatteryService(this.name + " " + this.dict["battery"], "battery"); if (this.boundary == null) {