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="mileage-channel">
7 <item-type>Number:Length</item-type>
8 <label>Total Distance Driven</label>
9 <state pattern="%d %unit%" readOnly="true"/>
11 <channel-type id="range-electric-channel">
12 <item-type>Number:Length</item-type>
13 <label>Electric Range</label>
14 <state pattern="%d %unit%" readOnly="true"/>
16 <channel-type id="range-electric-max-channel">
17 <item-type>Number:Length</item-type>
18 <label>Electric Range if Fully Charged</label>
19 <state pattern="%d %unit%" readOnly="true"/>
21 <channel-type id="range-fuel-channel">
22 <item-type>Number:Length</item-type>
23 <label>Fuel Range</label>
24 <state pattern="%d %unit%" readOnly="true"/>
26 <channel-type id="range-hybrid-channel">
27 <item-type>Number:Length</item-type>
28 <label>Hybrid Range</label>
29 <state pattern="%d %unit%" readOnly="true"/>
31 <channel-type id="range-hybrid-max-channel">
32 <item-type>Number:Length</item-type>
33 <label>Hybrid Range if Fully Charged</label>
34 <state pattern="%d %unit%" readOnly="true"/>
36 <channel-type id="soc-channel">
37 <item-type>Number:Dimensionless</item-type>
38 <label>Battery Charge Level</label>
39 <state pattern="%d %unit%" readOnly="true"/>
41 <channel-type id="soc-max-channel">
42 <item-type>Number:Power</item-type>
43 <label>Max Battery Capacity</label>
44 <state pattern="%.1f %unit%" readOnly="true"/>
46 <channel-type id="remaining-fuel-channel">
47 <item-type>Number:Volume</item-type>
48 <label>Remaining Fuel</label>
49 <state pattern="%d %unit%" readOnly="true"/>
51 <channel-type id="range-radius-electric-channel">
52 <item-type>Number:Length</item-type>
53 <label>Electric Range Radius if Fully Charged</label>
54 <state pattern="%.0f %unit%" readOnly="true"/>
56 <channel-type id="range-radius-electric-max-channel">
57 <item-type>Number:Length</item-type>
58 <label>Electric Range Radius</label>
59 <state pattern="%.0f %unit%" readOnly="true"/>
61 <channel-type id="range-radius-fuel-channel">
62 <item-type>Number:Length</item-type>
63 <label>Fuel Range Radius</label>
64 <state pattern="%.0f %unit%" readOnly="true"/>
66 <channel-type id="range-radius-hybrid-channel">
67 <item-type>Number:Length</item-type>
68 <label>Hybrid Range Radius</label>
69 <state pattern="%.0f %unit%" readOnly="true"/>
71 <channel-type id="range-radius-hybrid-max-channel">
72 <item-type>Number:Length</item-type>
73 <label>Hybrid Range Radius if Fully Charged</label>
74 <state pattern="%.0f %unit%" readOnly="true"/>
76 </thing:thing-descriptions>