forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 1
/
thing-types.xml
65 lines (56 loc) · 2.34 KB
/
thing-types.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="elerotransmitterstick"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:thing="https://openhab.org/schemas/thing-description/v1.0.0"
xsi:schemaLocation="https://openhab.org/schemas/thing-description/v1.0.0 https://openhab.org/schemas/thing-description-1.0.0.xsd">
<bridge-type id="elerostick">
<label>Elero Transmitter Stick</label>
<description>Thing for an Elero Transmitter Stick</description>
<config-description>
<parameter name="portName" type="text" required="true">
<label>Port Name</label>
<description>The name of the port to which the Elero Transmitter Stick is connected.</description>
<context>serial-port</context>
<limitToOptions>false</limitToOptions>
</parameter>
<parameter name="updateInterval" type="integer" min="5" max="3600" unit="s" step="5">
<label>Update Interval</label>
<description>The number of seconds to wait before requesting the status of the elero channels from the Elero
Transmitter Stick.</description>
<default>30</default>
</parameter>
</config-description>
</bridge-type>
<thing-type id="elerochannel">
<supported-bridge-type-refs>
<bridge-type-ref id="elerostick"/>
</supported-bridge-type-refs>
<label>Elero Channel</label>
<description>One of the 15 elero channels available on an Elero Transmitter Stick.</description>
<channels>
<channel id="control" typeId="control"/>
<channel id="status" typeId="status"/>
</channels>
<config-description>
<parameter name="channelId" type="integer" min="1" max="15" step="1" readOnly="true">
<label>Channel ID</label>
<description>The id of this channel.</description>
<required>true</required>
</parameter>
</config-description>
</thing-type>
<!-- Control Channel Type -->
<channel-type id="control">
<item-type>Rollershutter</item-type>
<label>Control</label>
<description>Allows to control the devices connected to this elero channel or group by sending UP, DOWN, STOP
commands.</description>
</channel-type>
<!-- Status Channel Type -->
<channel-type id="status">
<item-type>String</item-type>
<label>Status</label>
<description>Read only channel providing the current status of this elero channel or group.</description>
<state readOnly="true"/>
</channel-type>
</thing:thing-descriptions>