forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
thing-types.xml
84 lines (71 loc) · 2.69 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="cm11a"
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 which is the cm11a device -->
<bridge-type id="cm11a">
<label>CM11a Controller for X10 Devices</label>
<description>CM11 is a device that allows control of X10 devices for a computer. </description>
<config-description>
<parameter name="serialPort" type="text" required="true">
<label>Serial Port</label>
<context>serial-port</context>
<limitToOptions>false</limitToOptions>
<description>Serial port used to communicate with the CM11a</description>
</parameter>
<parameter name="refresh" type="integer" min="1">
<label>Refresh Interval</label>
<description>Specifies the refresh interval in seconds.</description>
<default>60</default>
</parameter>
</config-description>
</bridge-type>
<!-- For dimable X10 devices attached to the cm11a -->
<thing-type id="dimmer">
<supported-bridge-type-refs>
<bridge-type-ref id="cm11a"/>
</supported-bridge-type-refs>
<label>X10 Dimmer</label>
<description>Controls dimmable loads</description>
<channels>
<channel id="lightlevel" typeId="lightDimmer"/>
</channels>
<config-description>
<parameter name="houseUnitCode" type="text" required="true">
<label>X10 House and Unit Code</label>
<description>Address of dimmer in the X10 system</description>
</parameter>
</config-description>
</thing-type>
<!-- For non-dimable X10 devices attached to the cm11a -->
<thing-type id="switch">
<supported-bridge-type-refs>
<bridge-type-ref id="cm11a"/>
</supported-bridge-type-refs>
<label>X10 Switch</label>
<description>On/off switch</description>
<channels>
<channel id="switchstatus" typeId="switchState"/>
</channels>
<config-description>
<parameter name="houseUnitCode" type="text" required="true">
<label>X10 House and Unit Code</label>
<description>Address of switch in the X10 system</description>
</parameter>
</config-description>
</thing-type>
<channel-type id="lightDimmer">
<item-type>Dimmer</item-type>
<label>Light Level</label>
<description>Increase/decrease the light level</description>
<category>DimmableLight</category>
<state min="0" max="100" pattern="%.0f %%"/>
</channel-type>
<channel-type id="switchState">
<item-type>Switch</item-type>
<label>Switch State</label>
<description>On/off status of the switch</description>
<category>Switch</category>
</channel-type>
</thing:thing-descriptions>