Skip to content

Commit

Permalink
[mercedesme] Fix trip channel type id (openhab#17267)
Browse files Browse the repository at this point in the history
* bugfix trip channel naming

Signed-off-by: Bernd Weymann <bernd.weymann@gmail.com>
  • Loading branch information
weymann authored and joni1993 committed Oct 15, 2024
1 parent 7952e78 commit 4def4d4
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@
<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>
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
<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>
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit 4def4d4

Please sign in to comment.