diff --git a/bundles/org.openhab.binding.mybmw/README.md b/bundles/org.openhab.binding.mybmw/README.md index dd5d4339c003..c1c1c30e9128 100644 --- a/bundles/org.openhab.binding.mybmw/README.md +++ b/bundles/org.openhab.binding.mybmw/README.md @@ -492,9 +492,13 @@ Image representation of the vehicle. | png | Image | Read | The image as png | | view | String | Write | The view port of the car | -Possible view ports (currently only one is available, which is automatically set as default): +Possible view ports: -- _AngleSideViewForty_ Front Left Side View +- _VehicleStatus_ Front Left Side View +- _FrontView_ Front View +- _FrontLeft_ Front Left Side View +- _FrontRight_ Front Right Side View +- _RearView_ Rear View ## Further Descriptions diff --git a/bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/utils/ImageProperties.java b/bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/utils/ImageProperties.java index 2de4712edc5c..204123e00cae 100644 --- a/bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/utils/ImageProperties.java +++ b/bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/utils/ImageProperties.java @@ -24,7 +24,7 @@ public class ImageProperties { public static final int RETRY_COUNTER = 5; public int failCounter = 0; - public String viewport = "AngleSideViewForty"; // default view + public String viewport = "VehicleStatus"; // default view public ImageProperties(String viewport) { this.viewport = viewport; diff --git a/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/i18n/mybmw.properties b/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/i18n/mybmw.properties index 290fb611dda6..e74093495775 100644 --- a/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/i18n/mybmw.properties +++ b/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/i18n/mybmw.properties @@ -98,7 +98,11 @@ channel-type.mybmw.home-distance-channel.label = Distance From Home channel-type.mybmw.hood-channel.label = Hood channel-type.mybmw.image-update-channel.label = Force update of the image -channel-type.mybmw.image-view-channel.command.option.AngleSideViewForty = Left Side View +channel-type.mybmw.image-view-channel.command.option.FrontLeft = Left Side View +channel-type.mybmw.image-view-channel.command.option.FrontRight = Right Side View +channel-type.mybmw.image-view-channel.command.option.FrontView = Front View +channel-type.mybmw.image-view-channel.command.option.RearView = Rear View +channel-type.mybmw.image-view-channel.command.option.VehicleStatus = Front Side View channel-type.mybmw.image-view-channel.label = Image Viewport channel-type.mybmw.last-fetched-channel.label = Last Openhab Update Timestamp channel-type.mybmw.last-update-channel.label = Last Car Status Timestamp diff --git a/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/image-channel-types.xml b/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/image-channel-types.xml index d8961cfbcbcd..6caf17952e62 100644 --- a/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/image-channel-types.xml +++ b/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/image-channel-types.xml @@ -13,7 +13,11 @@ - + + + + + diff --git a/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/thing-bev.xml b/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/thing-bev.xml index 236e6a77b46c..a17146bef801 100644 --- a/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/thing-bev.xml +++ b/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/thing-bev.xml @@ -29,7 +29,7 @@ - 3 + 4 vin diff --git a/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/thing-bev_rex.xml b/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/thing-bev_rex.xml index eee5be7c617b..f455b9622fcf 100644 --- a/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/thing-bev_rex.xml +++ b/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/thing-bev_rex.xml @@ -29,7 +29,7 @@ - 3 + 4 vin diff --git a/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/thing-conv.xml b/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/thing-conv.xml index 29eec9e7039e..d1a4a7b19694 100644 --- a/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/thing-conv.xml +++ b/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/thing-conv.xml @@ -26,7 +26,7 @@ - 3 + 4 vin diff --git a/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/thing-phev.xml b/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/thing-phev.xml index 09aad7ec006a..44535733e718 100644 --- a/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/thing-phev.xml +++ b/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/thing-phev.xml @@ -29,7 +29,7 @@ - 3 + 4 vin diff --git a/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/update/thing-update.xml b/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/update/thing-update.xml index c410099f32d7..3ba020b969ef 100644 --- a/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/update/thing-update.xml +++ b/bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/update/thing-update.xml @@ -53,6 +53,15 @@ + + + + + + mybmw:image-view-channel + + + @@ -96,6 +105,15 @@ + + + + + + mybmw:image-view-channel + + + @@ -137,6 +155,15 @@ + + + + + + mybmw:image-view-channel + + + @@ -188,6 +215,15 @@ + + + + + + mybmw:image-view-channel + + +