]> git.basschouten.com Git - openhab-addons.git/commitdiff
[boschindego] Add another status code for returning to dock (#13335)
authorJacob Laursen <jacob-github@vindvejr.dk>
Tue, 30 Aug 2022 14:45:30 +0000 (16:45 +0200)
committerGitHub <noreply@github.com>
Tue, 30 Aug 2022 14:45:30 +0000 (16:45 +0200)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
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/thing/thing-types.xml

index 0a403976a82dbd44dc84950fd1e4ee58f7a57e61..5feb093134a8edff1e3311d213aaef4acc3dcba4 100644 (file)
@@ -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             |
index 4a89da90bb5372400e4c18cb386f95d9a03fa210..18b5f3c776383c1fa19739527dabf29c50ff0dd0 100644 (file)
@@ -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)),
index 61386647aacd587a4378b6414873389d9cc2f93c..89cf71f5177bc9183dada84da9900f8bcc5880e1 100644 (file)
@@ -93,6 +93,7 @@
                                <option value="518">@text/indego.state.border-cut</option>
                                <option value="519">@text/indego.state.idle-in-lawn</option>
                                <option value="523">@text/indego.state.spotmow</option>
+                               <option value="768">@text/indego.state.returning-to-dock</option>
                                <option value="769">@text/indego.state.returning-to-dock</option>
                                <option value="770">@text/indego.state.returning-to-dock</option>
                                <option value="771">@text/indego.state.returning-to-dock-battery-low</option>