[mybmw] revert the changes for 16642 as BMW seems to have reverted the changes in the API (#16687)

Signed-off-by: Martin Grassl <martin.grassl@digital-filestore.de>
This commit is contained in:
Martin Grassl
2024-04-28 22:38:23 +02:00
committed by GitHub
parent 1a727f87bd
commit bc136527bc
9 changed files with 57 additions and 9 deletions
+6 -2
View 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
@@ -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;
@@ -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
@@ -13,7 +13,11 @@
<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>
@@ -29,7 +29,7 @@
</channel-groups>
<properties>
<property name="thingTypeVersion">3</property>
<property name="thingTypeVersion">4</property>
</properties>
<representation-property>vin</representation-property>
@@ -29,7 +29,7 @@
</channel-groups>
<properties>
<property name="thingTypeVersion">3</property>
<property name="thingTypeVersion">4</property>
</properties>
<representation-property>vin</representation-property>
@@ -26,7 +26,7 @@
</channel-groups>
<properties>
<property name="thingTypeVersion">3</property>
<property name="thingTypeVersion">4</property>
</properties>
<representation-property>vin</representation-property>
@@ -29,7 +29,7 @@
</channel-groups>
<properties>
<property name="thingTypeVersion">3</property>
<property name="thingTypeVersion">4</property>
</properties>
<representation-property>vin</representation-property>
@@ -53,6 +53,15 @@
<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">
@@ -96,6 +105,15 @@
<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">
@@ -137,6 +155,15 @@
<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">
@@ -188,6 +215,15 @@
<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>