Skip to content

Commit

Permalink
Add support for new status codes (openhab#13034)
Browse files Browse the repository at this point in the history
Fixes openhab#13033

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
  • Loading branch information
jlaur authored and psmedley committed Feb 23, 2023
1 parent baedc1b commit 11791bb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bundles/org.openhab.binding.boschindego/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand Down

0 comments on commit 11791bb

Please sign in to comment.