]> git.basschouten.com Git - openhab-addons.git/commitdiff
[mybmw] revert the changes for 16642 as BMW seems to have reverted the changes in...
authorMartin Grassl <martin.grassl@digital-filestore.de>
Sun, 28 Apr 2024 20:38:23 +0000 (22:38 +0200)
committerGitHub <noreply@github.com>
Sun, 28 Apr 2024 20:38:23 +0000 (22:38 +0200)
Signed-off-by: Martin Grassl <martin.grassl@digital-filestore.de>
bundles/org.openhab.binding.mybmw/README.md
bundles/org.openhab.binding.mybmw/src/main/java/org/openhab/binding/mybmw/internal/utils/ImageProperties.java
bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/i18n/mybmw.properties
bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/image-channel-types.xml
bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/thing-bev.xml
bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/thing-bev_rex.xml
bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/thing-conv.xml
bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/thing/thing-phev.xml
bundles/org.openhab.binding.mybmw/src/main/resources/OH-INF/update/thing-update.xml

index dd5d4339c00311991f908d0f9e7fb295ae3404e2..c1c1c30e9128fe1706baa907c59085d2c9c80265 100644 (file)
@@ -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
 
index 2de4712edc5c3800d97af03c9ee8fce4f7460a65..204123e00caeafb3812acc20e2a17cd9d631c789 100644 (file)
@@ -24,7 +24,7 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
 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;
index 290fb611dda63378cc9746761dfdbe17fad98371..e740934957759cbc05ec4404847b88a659c3d67f 100644 (file)
@@ -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
index d8961cfbcbcd3ba17b9c44fafc4f45d862e3a0b0..6caf17952e62b267182f66a84ae975c7dcee8613 100644 (file)
                <label>Image Viewport</label>
                <command>
                        <options>
-                               <option value="AngleSideViewForty">Left Side View</option>
+                               <option value="VehicleStatus">Front Side View</option>
+                               <option value="FrontView">Front View</option>
+                               <option value="FrontLeft">Left Side View</option>
+                               <option value="FrontRight">Right Side View</option>
+                               <option value="RearView">Rear View</option>
                        </options>
                </command>
        </channel-type>
index 236e6a77b46c11dfdd774faf5ac428ea59b073b3..a17146bef801cdb2c5d492fa8bc0de3186444242 100644 (file)
@@ -29,7 +29,7 @@
                </channel-groups>
 
                <properties>
-                       <property name="thingTypeVersion">3</property>
+                       <property name="thingTypeVersion">4</property>
                </properties>
 
                <representation-property>vin</representation-property>
index eee5be7c617bdcfa77eae98f9a98777bc6f24ee9..f455b9622fcf40b2790dff882ef6c4caa0286a80 100644 (file)
@@ -29,7 +29,7 @@
                </channel-groups>
 
                <properties>
-                       <property name="thingTypeVersion">3</property>
+                       <property name="thingTypeVersion">4</property>
                </properties>
 
                <representation-property>vin</representation-property>
index 29eec9e7039e37ccd97a638aa348c550073cae5b..d1a4a7b19694d1219ee3f1f90a1d1aa1e86e4963 100644 (file)
@@ -26,7 +26,7 @@
                </channel-groups>
 
                <properties>
-                       <property name="thingTypeVersion">3</property>
+                       <property name="thingTypeVersion">4</property>
                </properties>
 
                <representation-property>vin</representation-property>
index 09aad7ec006aafba351bdf1d690fdeb0d6ff8c85..44535733e718a56bbc89f31d3d80b95fab13f014 100644 (file)
@@ -29,7 +29,7 @@
                </channel-groups>
 
                <properties>
-                       <property name="thingTypeVersion">3</property>
+                       <property name="thingTypeVersion">4</property>
                </properties>
 
                <representation-property>vin</representation-property>
index c410099f32d74a7098f72bcb15ab3a307775acfb..3ba020b969ef189849993b7b38e387157fd1c878 100644 (file)
                                <label>Image Viewport</label>
                        </update-channel>
                </instruction-set>
+               <instruction-set targetVersion="4">
+                       <!-- channels to be removed -->
+                       <!-- channels to be added -->
+                       <!-- channels to be updated -->
+                       <update-channel id="view" groupIds="image">
+                               <type>mybmw:image-view-channel</type>
+                               <label>Image Viewport</label>
+                       </update-channel>
+               </instruction-set>
        </thing-type>
        <thing-type uid="mybmw:bev">
                <instruction-set targetVersion="1">
                                <label>Image Viewport</label>
                        </update-channel>
                </instruction-set>
+               <instruction-set targetVersion="4">
+                       <!-- channels to be removed -->
+                       <!-- channels to be added -->
+                       <!-- channels to be updated -->
+                       <update-channel id="view" groupIds="image">
+                               <type>mybmw:image-view-channel</type>
+                               <label>Image Viewport</label>
+                       </update-channel>
+               </instruction-set>
        </thing-type>
        <thing-type uid="mybmw:conv">
                <instruction-set targetVersion="1">
                                <label>Image Viewport</label>
                        </update-channel>
                </instruction-set>
+               <instruction-set targetVersion="4">
+                       <!-- channels to be removed -->
+                       <!-- channels to be added -->
+                       <!-- channels to be updated -->
+                       <update-channel id="view" groupIds="image">
+                               <type>mybmw:image-view-channel</type>
+                               <label>Image Viewport</label>
+                       </update-channel>
+               </instruction-set>
        </thing-type>
        <thing-type uid="mybmw:phev">
                <instruction-set targetVersion="1">
                                <label>Image Viewport</label>
                        </update-channel>
                </instruction-set>
+               <instruction-set targetVersion="4">
+                       <!-- channels to be removed -->
+                       <!-- channels to be added -->
+                       <!-- channels to be updated -->
+                       <update-channel id="view" groupIds="image">
+                               <type>mybmw:image-view-channel</type>
+                               <label>Image Viewport</label>
+                       </update-channel>
+               </instruction-set>
        </thing-type>
 
 </update:update-descriptions>