mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[opengarage] Add vehicle status not available. (#15080)
Signed-off-by: Ken Seal <hunzinker@gmail.com>
This commit is contained in:
parent
14726013b1
commit
5e1c9e81f1
@ -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);
|
||||
}
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user