]> git.basschouten.com Git - openhab-addons.git/commitdiff
[opengarage] Add vehicle status not available. (#15080)
authorKen Seal <ken.seal@hunzinker.com>
Sun, 11 Jun 2023 10:16:13 +0000 (03:16 -0700)
committerGitHub <noreply@github.com>
Sun, 11 Jun 2023 10:16:13 +0000 (12:16 +0200)
Signed-off-by: Ken Seal <hunzinker@gmail.com>
bundles/org.openhab.binding.opengarage/src/main/java/org/openhab/binding/opengarage/internal/OpenGarageHandler.java
bundles/org.openhab.binding.opengarage/src/main/resources/OH-INF/i18n/opengarage.properties
bundles/org.openhab.binding.opengarage/src/main/resources/OH-INF/thing/thing-types.xml

index 05350d27bedd729e6b3c1fa79cdff9bd1a22997d..ce0ca8752cb9d9d8c58489b185b5e8489c7c754a 100644 (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);
             }
index 6ca7c0dca7ba61656ec79614ed9e9b4cc3351481..a83666c9ce9a74452637d1c5f619c76dfe06776a 100644 (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)
 
index b8f877d28f0440d3f0e5611088e16e7623b6ca87..9395f6f0cdb08dec2e6b0378d4e01afc6b8e3363 100644 (file)
                                <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>