[opengarage] Add vehicle status not available. (#15080)

Signed-off-by: Ken Seal <hunzinker@gmail.com>
This commit is contained in:
Ken Seal 2023-06-11 03:16:13 -07:00 committed by GitHub
parent 14726013b1
commit 5e1c9e81f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -174,6 +174,10 @@ public class OpenGarageHandler extends BaseThingHandler {
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);
}

View File

@ -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)

View File

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