From 56b1b7ab6fadff2407c8e818534b2bebb3a73f6e Mon Sep 17 00:00:00 2001 From: Jacob Laursen Date: Sat, 2 Jul 2022 15:23:23 +0200 Subject: [PATCH] Add support for SpotMow status code (#13065) Fixes #13033 Signed-off-by: Jacob Laursen --- bundles/org.openhab.binding.boschindego/README.md | 1 + .../org/openhab/binding/boschindego/internal/DeviceStatus.java | 1 + .../src/main/resources/OH-INF/i18n/boschindego.properties | 1 + .../src/main/resources/OH-INF/thing/thing-types.xml | 1 + 4 files changed, 4 insertions(+) diff --git a/bundles/org.openhab.binding.boschindego/README.md b/bundles/org.openhab.binding.boschindego/README.md index c4578670b7735..37c66a9257551 100644 --- a/bundles/org.openhab.binding.boschindego/README.md +++ b/bundles/org.openhab.binding.boschindego/README.md @@ -54,6 +54,7 @@ Currently the binding supports ***indego*** mowers as a thing type with these | 517 | Paused | | 518 | Border cut | | 519 | Idle in lawn | +| 523 | SpotMow | | 769 | Returning to dock | | 770 | Returning to dock | | 771 | Returning to dock - Battery low | diff --git a/bundles/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/DeviceStatus.java b/bundles/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/DeviceStatus.java index 7adf332e9dce8..fbba18e2d8506 100644 --- a/bundles/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/DeviceStatus.java +++ b/bundles/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/DeviceStatus.java @@ -49,6 +49,7 @@ public class DeviceStatus { entry(517, new DeviceStatus("paused", true, DeviceCommand.PAUSE)), entry(518, new DeviceStatus("border-cut", false, DeviceCommand.MOW)), entry(519, new DeviceStatus("idle-in-lawn", true, DeviceCommand.MOW)), + entry(523, new DeviceStatus("spotmow", false, DeviceCommand.MOW)), entry(769, new DeviceStatus("returning-to-dock", false, DeviceCommand.RETURN)), entry(770, new DeviceStatus("returning-to-dock", false, DeviceCommand.RETURN)), entry(771, new DeviceStatus("returning-to-dock-battery-low", false, DeviceCommand.RETURN)), diff --git a/bundles/org.openhab.binding.boschindego/src/main/resources/OH-INF/i18n/boschindego.properties b/bundles/org.openhab.binding.boschindego/src/main/resources/OH-INF/i18n/boschindego.properties index 0cdf3ef844d4e..0d79b191f21e8 100644 --- a/bundles/org.openhab.binding.boschindego/src/main/resources/OH-INF/i18n/boschindego.properties +++ b/bundles/org.openhab.binding.boschindego/src/main/resources/OH-INF/i18n/boschindego.properties @@ -73,6 +73,7 @@ indego.state.learning-lawn = Learning lawn indego.state.paused = Paused indego.state.border-cut = Border cut indego.state.idle-in-lawn = Idle in lawn +indego.state.spotmow = SpotMow indego.state.returning-to-dock = Returning to Dock indego.state.returning-to-dock-battery-low = Returning to Dock - Battery low indego.state.returning-to-dock-calendar-timeslot-ended = Calendar timeslot ended diff --git a/bundles/org.openhab.binding.boschindego/src/main/resources/OH-INF/thing/thing-types.xml b/bundles/org.openhab.binding.boschindego/src/main/resources/OH-INF/thing/thing-types.xml index 7e108f0b4bb0e..29da1879e2b6f 100644 --- a/bundles/org.openhab.binding.boschindego/src/main/resources/OH-INF/thing/thing-types.xml +++ b/bundles/org.openhab.binding.boschindego/src/main/resources/OH-INF/thing/thing-types.xml @@ -86,6 +86,7 @@ +