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: Matt Myers <mmyers75@icloud.com>
  • Loading branch information
hunzinker authored and matchews committed Aug 9, 2023
1 parent f9c1e34 commit 8d89fd9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
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
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
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 8d89fd9

Please sign in to comment.