From 5a1daa252eb59aa27e5880e2bab7bd3d4e06e113 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Sun, 25 Jun 2023 17:08:35 +0200 Subject: [PATCH] [boschindego] Add support for random mowing status code (#15135) * Add Bosch Indego 'Mowing randomly' state code 524 Signed-off-by: Tom Laermans --- 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 95e617acd..78a1cde28 100644 --- a/bundles/org.openhab.binding.boschindego/README.md +++ b/bundles/org.openhab.binding.boschindego/README.md @@ -80,6 +80,7 @@ To authorize, please follow these steps: | 518 | Border cut | | 519 | Idle in lawn | | 523 | SpotMow | +| 524 | Mowing randomly | | 768 | Returning to dock | | 769 | Returning to dock | | 770 | Returning to dock | 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 2550af311..f8ace9c57 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,7 @@ 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(524, new DeviceStatus("mowing-randomly", EnumSet.of(DeviceStateAttribute.ACTIVE), DeviceCommand.MOW)), entry(768, new DeviceStatus("returning-to-dock", EnumSet.of(DeviceStateAttribute.ACTIVE), 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 079403e7a..97e25ac11 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 @@ -78,6 +78,7 @@ indego.state.paused = Paused indego.state.border-cut = Border cut indego.state.idle-in-lawn = Idle in lawn indego.state.spotmow = SpotMow +indego.state.mowing-randomly = Mowing randomly 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 2fc4705ed..c5e583047 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 @@ -105,6 +105,7 @@ +