Add support for new status codes (#13034)

Fixes #13033

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
Jacob Laursen 2022-06-30 09:02:34 +02:00 committed by GitHub
parent f203b3f202
commit 5ae0870bcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 0 deletions

View 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

View 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;

View 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

View 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>