]> git.basschouten.com Git - openhab-addons.git/commitdiff
Add support for new status codes (#13034)
authorJacob Laursen <jacob-github@vindvejr.dk>
Thu, 30 Jun 2022 07:02:34 +0000 (09:02 +0200)
committerGitHub <noreply@github.com>
Thu, 30 Jun 2022 07:02:34 +0000 (09:02 +0200)
Fixes #13033

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
bundles/org.openhab.binding.boschindego/README.md
bundles/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/DeviceStatus.java
bundles/org.openhab.binding.boschindego/src/main/resources/OH-INF/i18n/boschindego.properties
bundles/org.openhab.binding.boschindego/src/main/resources/OH-INF/thing/thing-types.xml

index a3aa3889eb517e54fbf79dac2ee256acb3bc6c3c..e4df403b8687c40128acc0458c2a0f567c2ca656 100644 (file)
@@ -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
index 2000ae8b51b63dcb140bf0c253b113e60d3cea64..7adf332e9dce86f7b1ed89ddb5371efdaa414c63 100644 (file)
@@ -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;
index 7522b02800611d23ee8ecd8de97f31984c043d50..ee095e6a690fc675f5e9528dbe5b4460958bfbcd 100644 (file)
@@ -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
index 487884378a9e616415e438dda2f41499e49fe5d5..192792b4c21d3024912852bcd6adda6b3abee9c2 100644 (file)
@@ -64,6 +64,7 @@
                                <option value="261">@text/indego.state.docked</option>
                                <option value="262">@text/indego.state.docked-loading-map</option>
                                <option value="263">@text/indego.state.docked-saving-map</option>
+                               <option value="266">@text/indego.state.leaving-dock</option>
                                <option value="512">@text/indego.state.mowing</option>
                                <option value="514">@text/indego.state.relocalising</option>
                                <option value="515">@text/indego.state.loading-map</option>
@@ -82,6 +83,7 @@
                                <option value="1025">@text/indego.state.diagnostic-mode</option>
                                <option value="1026">@text/indego.state.end-of-life</option>
                                <option value="1281">@text/indego.state.software-update</option>
+                               <option value="1537">@text/indego.state.energy-save-mode</option>
                                <option value="64513">@text/indego.state.docked</option>
                        </options>
                </state>