Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[opengarage] Add support for vehicle status not available #15080

Merged
merged 1 commit into from Jun 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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