]> git.basschouten.com Git - openhab-addons.git/commitdiff
[mercedesme] Fix trip channel type id (#17267)
authorBernd Weymann <bernd.weymann@gmail.com>
Wed, 28 Aug 2024 18:12:07 +0000 (20:12 +0200)
committerGitHub <noreply@github.com>
Wed, 28 Aug 2024 18:12:07 +0000 (20:12 +0200)
* bugfix trip channel naming

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
bundles/org.openhab.binding.mercedesme/src/main/resources/OH-INF/thing/thing-combustion.xml
bundles/org.openhab.binding.mercedesme/src/main/resources/OH-INF/thing/thing-hybrid.xml
bundles/org.openhab.binding.mercedesme/src/main/resources/OH-INF/thing/trip-conv-group.xml
bundles/org.openhab.binding.mercedesme/src/main/resources/OH-INF/thing/trip-hybrid-group.xml
bundles/org.openhab.binding.mercedesme/src/main/resources/OH-INF/update/instructions.xml [new file with mode: 0644]

index e05ce90a9b748fada3bde58b4c49b85d28d24b10..977dd7af64264a000cead352d29904f33dbe1b16 100644 (file)
                        <channel-group id="hvac" typeId="hvac-values"/>
                        <channel-group id="service" typeId="service-values"/>
                        <channel-group id="range" typeId="range-conv-values"/>
-                       <channel-group id="trip" typeId="trip-values"/>
+                       <channel-group id="trip" typeId="trip-conv-values"/>
                        <channel-group id="position" typeId="position-values"/>
                        <channel-group id="tires" typeId="tires-values"/>
                        <channel-group id="command" typeId="command-values"/>
                </channel-groups>
 
+               <properties>
+                       <property name="thingTypeVersion">1</property>
+               </properties>
+
                <config-description-ref uri="thing-type:mercedesme:conv"/>
        </thing-type>
 </thing:thing-descriptions>
index 30abc16d1f9f80e8a899d7415d35498672b65a92..e55fa8d1c07de08e028f8a2d868a9fa49436369f 100644 (file)
                        <channel-group id="command" typeId="command-values"/>
                </channel-groups>
 
+               <properties>
+                       <property name="thingTypeVersion">1</property>
+               </properties>
+
                <config-description-ref uri="thing-type:mercedesme:hybrid"/>
        </thing-type>
 </thing:thing-descriptions>
index 3eab344bcfd3f2ccf56f671c4a20e1a11e9cd60a..2de660073f29b868e9aadb2b075b170ae8d39321 100644 (file)
@@ -13,7 +13,7 @@
                        <channel id="distance-reset" typeId="distance-reset"/>
                        <channel id="time-reset" typeId="driven-time-reset"/>
                        <channel id="avg-speed-reset" typeId="avg-speed-reset"/>
-                       <channel id="cons-conv-reset" typeId="consumption-conv-resetchannel"/>
+                       <channel id="cons-conv-reset" typeId="consumption-conv-reset"/>
                        <channel id="cons-conv-unit" typeId="consumption-conv-unit"/>
                </channels>
        </channel-group-type>
index 78cd171e1097bb532add383402c4af317d89f21a..a7501cde2cbeb211115c0aa0ea60d0e793b72db6 100644 (file)
@@ -15,7 +15,7 @@
                        <channel id="time-reset" typeId="driven-time-reset"/>
                        <channel id="avg-speed-reset" typeId="avg-speed-reset"/>
                        <channel id="cons-ev-reset" typeId="consumption-ev-reset"/>
-                       <channel id="cons-conv-reset" typeId="consumption-conv-resetchannel"/>
+                       <channel id="cons-conv-reset" typeId="consumption-conv-reset"/>
                        <channel id="cons-ev-unit" typeId="consumption-ev-unit"/>
                        <channel id="cons-conv-unit" typeId="consumption-conv-unit"/>
                </channels>
diff --git a/bundles/org.openhab.binding.mercedesme/src/main/resources/OH-INF/update/instructions.xml b/bundles/org.openhab.binding.mercedesme/src/main/resources/OH-INF/update/instructions.xml
new file mode 100644 (file)
index 0000000..744a253
--- /dev/null
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<update:update-descriptions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:update="https://openhab.org/schemas/update-description/v1.0.0"
+       xsi:schemaLocation="https://openhab.org/schemas/update-description/v1.0.0 https://openhab.org/schemas/update-description-1.0.0.xsd">
+
+       <thing-type uid="mercedesme:hybrid">
+               <instruction-set targetVersion="1">
+                       <update-channel id="cons-conv-reset" groupIds="trip">
+                               <type>mercedesme:consumption-conv-reset</type>
+                       </update-channel>
+               </instruction-set>
+       </thing-type>
+
+       <thing-type uid="mercedesme:combustion">
+               <instruction-set targetVersion="1">
+                       <update-channel id="distance" groupIds="trip">
+                               <type>mercedesme:distance</type>
+                       </update-channel>
+                       <update-channel id="time" groupIds="trip">
+                               <type>mercedesme:driven-time</type>
+                       </update-channel>
+                       <update-channel id="avg-speed" groupIds="trip">
+                               <type>mercedesme:avg-speed</type>
+                       </update-channel>
+                       <update-channel id="cons-conv" groupIds="trip">
+                               <type>mercedesme:consumption-conv</type>
+                       </update-channel>
+                       <update-channel id="distance-reset" groupIds="trip">
+                               <type>mercedesme:distance-reset</type>
+                       </update-channel>
+                       <update-channel id="time-reset" groupIds="trip">
+                               <type>mercedesme:driven-time-reset</type>
+                       </update-channel>
+                       <update-channel id="avg-speed-reset" groupIds="trip">
+                               <type>mercedesme:avg-speed-reset</type>
+                       </update-channel>
+                       <update-channel id="cons-conv-reset" groupIds="trip">
+                               <type>mercedesme:consumption-conv-reset</type>
+                       </update-channel>
+                       <update-channel id="cons-conv-unit" groupIds="trip">
+                               <type>mercedesme:consumption-conv-unit</type>
+                       </update-channel>
+               </instruction-set>
+       </thing-type>
+
+</update:update-descriptions>