From 5ae0870bcb04f40678b6a13758eb11f6812e48c6 Mon Sep 17 00:00:00 2001 From: Jacob Laursen Date: Thu, 30 Jun 2022 09:02:34 +0200 Subject: [PATCH] Add support for new status codes (#13034) Fixes #13033 Signed-off-by: Jacob Laursen --- bundles/org.openhab.binding.boschindego/README.md | 2 ++ .../org/openhab/binding/boschindego/internal/DeviceStatus.java | 2 ++ .../src/main/resources/OH-INF/i18n/boschindego.properties | 2 ++ .../src/main/resources/OH-INF/thing/thing-types.xml | 2 ++ 4 files changed, 8 insertions(+) diff --git a/bundles/org.openhab.binding.boschindego/README.md b/bundles/org.openhab.binding.boschindego/README.md index a3aa3889eb..e4df403b86 100644 --- a/bundles/org.openhab.binding.boschindego/README.md +++ b/bundles/org.openhab.binding.boschindego/README.md @@ -37,6 +37,7 @@ Currently the binding supports ***indego*** mowers as a thing type with these | 261 | Docked | | 262 | Docked - Loading map | | 263 | Docked - Saving map | +| 266 | Leaving dock | | 513 | Mowing | | 514 | Relocalising | | 515 | Loading map | @@ -55,6 +56,7 @@ Currently the binding supports ***indego*** mowers as a thing type with these | 1025 | Diagnostic mode | | 1026 | End of life | | 1281 | Software update | +| 1537 | Energy save mode | | 64513 | Docked | ## Full Example 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 2000ae8b51..7adf332e9d 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 @@ -41,6 +41,7 @@ public class DeviceStatus { entry(261, new DeviceStatus("docked", true, DeviceCommand.RETURN)), entry(262, new DeviceStatus("docked-loading-map", false, DeviceCommand.MOW)), entry(263, new DeviceStatus("docked-saving-map", false, DeviceCommand.RETURN)), + entry(266, new DeviceStatus("leaving-dock", false, DeviceCommand.MOW)), entry(513, new DeviceStatus("mowing", false, DeviceCommand.MOW)), entry(514, new DeviceStatus("relocalising", false, DeviceCommand.MOW)), entry(515, new DeviceStatus("loading-map", false, DeviceCommand.MOW)), @@ -59,6 +60,7 @@ public class DeviceStatus { entry(1025, new DeviceStatus("diagnostic-mode", false, null)), entry(1026, new DeviceStatus("end-of-life", false, null)), entry(1281, new DeviceStatus("software-update", false, null)), + entry(1537, new DeviceStatus("energy-save-mode", true, DeviceCommand.RETURN)), entry(64513, new DeviceStatus("docked", true, DeviceCommand.RETURN))); private String textKey; 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 7522b02800..ee095e6a69 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 @@ -49,6 +49,7 @@ indego.state.docked = Docked indego.state.docked-software-update = Docked - Software update indego.state.docked-loading-map = Docked - Loading map indego.state.docked-saving-map = Docked - Saving map +indego.state.leaving-dock = Leaving dock indego.state.mowing = Mowing indego.state.relocalising = Relocalising indego.state.loading-map = Loading map @@ -65,3 +66,4 @@ indego.state.returning-to-dock-relocalising = Returning to Dock - Relocalising indego.state.diagnostic-mode = Diagnostic mode indego.state.end-of-life = End of life indego.state.software-update = Software update +indego.state.energy-save-mode = Energy save mode 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 487884378a..192792b4c2 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 @@ -64,6 +64,7 @@ + @@ -82,6 +83,7 @@ + -- 2.47.3