Skip to content

Commit

Permalink
[opengarage] Add vehicle status not available. (openhab#15080)
Browse files Browse the repository at this point in the history
Signed-off-by: Ken Seal <hunzinker@gmail.com>
Signed-off-by: Thomas Burri <thomas.burri@alstomgroup.com>
  • Loading branch information
hunzinker authored and tburri-alstom committed Jun 19, 2023
1 parent 8df7508 commit c016114
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ private void pollStatus() throws IOException {
updateState(OpenGarageBindingConstants.CHANNEL_OG_VEHICLE,
new StringType("Vehicle status unknown"));
break;
case 3:
updateState(OpenGarageBindingConstants.CHANNEL_OG_VEHICLE,
new StringType("Vehicle status not available"));
break;
default:
logger.warn("Received unknown vehicle value: {}", controllerVariables.vehicle);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ channel-type.opengarage.opengarage-vehicle-status.description = Vehicle presence
channel-type.opengarage.opengarage-vehicle-status.state.option.0 = No vehicle detected
channel-type.opengarage.opengarage-vehicle-status.state.option.1 = Vehicle detected
channel-type.opengarage.opengarage-vehicle-status.state.option.2 = Vehicle status unknown
channel-type.opengarage.opengarage-vehicle-status.state.option.3 = Vehicle status not available
channel-type.opengarage.opengarage-vehicle.label = Vehicle Presence
channel-type.opengarage.opengarage-vehicle.description = Is a vehicle present or not (now deprecated, use vehicle-status instead)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
<option value="0">No vehicle detected</option>
<option value="1">Vehicle detected</option>
<option value="2">Vehicle status unknown</option>
<option value="3">Vehicle status not available</option>
</options>
</state>
</channel-type>
Expand Down

0 comments on commit c016114

Please sign in to comment.