[opengarage] Add vehicle status not available. (#15080)
Signed-off-by: Ken Seal <hunzinker@gmail.com>
This commit is contained in:
@@ -174,6 +174,10 @@ public class OpenGarageHandler extends BaseThingHandler {
|
|||||||
updateState(OpenGarageBindingConstants.CHANNEL_OG_VEHICLE,
|
updateState(OpenGarageBindingConstants.CHANNEL_OG_VEHICLE,
|
||||||
new StringType("Vehicle status unknown"));
|
new StringType("Vehicle status unknown"));
|
||||||
break;
|
break;
|
||||||
|
case 3:
|
||||||
|
updateState(OpenGarageBindingConstants.CHANNEL_OG_VEHICLE,
|
||||||
|
new StringType("Vehicle status not available"));
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
logger.warn("Received unknown vehicle value: {}", controllerVariables.vehicle);
|
logger.warn("Received unknown vehicle value: {}", controllerVariables.vehicle);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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.0 = No vehicle detected
|
||||||
channel-type.opengarage.opengarage-vehicle-status.state.option.1 = 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.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.label = Vehicle Presence
|
||||||
channel-type.opengarage.opengarage-vehicle.description = Is a vehicle present or not (now deprecated, use vehicle-status instead)
|
channel-type.opengarage.opengarage-vehicle.description = Is a vehicle present or not (now deprecated, use vehicle-status instead)
|
||||||
|
|
||||||
|
|||||||
@@ -109,6 +109,7 @@
|
|||||||
<option value="0">No vehicle detected</option>
|
<option value="0">No vehicle detected</option>
|
||||||
<option value="1">Vehicle detected</option>
|
<option value="1">Vehicle detected</option>
|
||||||
<option value="2">Vehicle status unknown</option>
|
<option value="2">Vehicle status unknown</option>
|
||||||
|
<option value="3">Vehicle status not available</option>
|
||||||
</options>
|
</options>
|
||||||
</state>
|
</state>
|
||||||
</channel-type>
|
</channel-type>
|
||||||
|
|||||||
Reference in New Issue
Block a user