From a2e0d232973810a615aab1ce48dfefbd2d5a71a7 Mon Sep 17 00:00:00 2001 From: Jacob Laursen Date: Tue, 30 Aug 2022 16:45:30 +0200 Subject: [PATCH] [boschindego] Add another status code for returning to dock (#13335) Signed-off-by: Jacob Laursen Signed-off-by: Jacob Laursen --- bundles/org.openhab.binding.boschindego/README.md | 1 + .../org/openhab/binding/boschindego/internal/DeviceStatus.java | 3 +++ .../src/main/resources/OH-INF/thing/thing-types.xml | 1 + 3 files changed, 5 insertions(+) diff --git a/bundles/org.openhab.binding.boschindego/README.md b/bundles/org.openhab.binding.boschindego/README.md index 0a403976a82..5feb093134a 100644 --- a/bundles/org.openhab.binding.boschindego/README.md +++ b/bundles/org.openhab.binding.boschindego/README.md @@ -60,6 +60,7 @@ Currently the binding supports ***indego*** mowers as a thing type with these | 518 | Border cut | | 519 | Idle in lawn | | 523 | SpotMow | +| 768 | Returning to dock | | 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 4a89da90bb5..18b5f3c7763 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 @@ -65,6 +65,9 @@ public class DeviceStatus { entry(519, new DeviceStatus("idle-in-lawn", EnumSet.of(DeviceStateAttribute.READY_TO_MOW), DeviceCommand.MOW)), entry(523, new DeviceStatus("spotmow", EnumSet.of(DeviceStateAttribute.ACTIVE), DeviceCommand.MOW)), + entry(768, + new DeviceStatus("returning-to-dock", EnumSet.of(DeviceStateAttribute.ACTIVE), + DeviceCommand.RETURN)), entry(769, new DeviceStatus("returning-to-dock", EnumSet.of(DeviceStateAttribute.ACTIVE), DeviceCommand.RETURN)), 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 61386647aac..89cf71f5177 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 @@ -93,6 +93,7 @@ +