1 <?xml version="1.0" encoding="UTF-8"?>
2 <thing:thing-descriptions bindingId="bmwconnecteddrive"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xmlns:thing="https://openhab.org/schemas/thing-description/v1.0.0"
5 xsi:schemaLocation="https://openhab.org/schemas/thing-description/v1.0.0 https://openhab.org/schemas/thing-description-1.0.0.xsd">
6 <channel-type id="trip-date-time-channel">
7 <item-type>DateTime</item-type>
8 <label>Date and Time</label>
9 <state pattern="%1$tA, %1$td.%1$tm. %1$tH:%1$tM" readOnly="true"/>
11 <channel-type id="trip-duration-channel">
12 <item-type>Number:Time</item-type>
13 <label>Last Trip Duration</label>
14 <state pattern="%d %unit%" readOnly="true"/>
16 <channel-type id="distance-channel">
17 <item-type>Number:Length</item-type>
18 <label>Last Trip Distance</label>
19 <state pattern="%d %unit%" readOnly="true"/>
21 <channel-type id="distance-since-charging-channel">
22 <item-type>Number:Length</item-type>
23 <label>Distance since Charge</label>
24 <description>Total distance driven since last charging</description>
25 <state pattern="%d %unit%" readOnly="true"/>
27 <channel-type id="average-consumption-channel">
28 <item-type>Number:Energy</item-type>
29 <label>Avg. Power Consumption</label>
30 <description>Average electric power consumption per 100 km/mi</description>
31 <state pattern="%.1f %unit%" readOnly="true"/>
33 <channel-type id="average-combined-consumption-channel">
34 <item-type>Number:Volume</item-type>
35 <label>Avg. Combined Consumption</label>
36 <description>Average combined consumption in liter per 100 km/mi</description>
37 <state pattern="%.1f %unit%" readOnly="true"/>
39 <channel-type id="average-recuperation-channel">
40 <item-type>Number:Energy</item-type>
41 <label>Avg. Recuperation</label>
42 <description>Average electric recuperation per 100 km/mi</description>
43 <state pattern="%.1f %unit%" readOnly="true"/>
45 </thing:thing-descriptions>