forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 1
/
thing-types.xml
155 lines (134 loc) · 5.17 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="phc" 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 -->
<bridge-type id="bridge">
<label>PHC Bridge</label>
<description>The serial bridge to the PHC modules. Max 32 modules per model group(thing type) per Bridge, equates one
STM.</description>
<config-description>
<parameter name="port" type="text">
<label>Serial Port</label>
<description>Serial Port the PHC modules are connected to</description>
<required>true</required>
<context>serial-port</context>
<limitToOptions>false</limitToOptions>
</parameter>
</config-description>
</bridge-type>
<!-- Thing Types -->
<thing-type id="AM">
<supported-bridge-type-refs>
<bridge-type-ref id="bridge"/>
</supported-bridge-type-refs>
<label>PHC AM</label>
<description>Thing for an output/relay module (AM).</description>
<channel-groups>
<channel-group id="am" typeId="amChannels"/>
</channel-groups>
<config-description>
<parameter name="address" type="text" pattern="[0-1]{5}" min="5" max="5">
<label>Address</label>
<description>Address of the module as binary, like the DIP switches.</description>
<required>true</required>
</parameter>
</config-description>
</thing-type>
<thing-type id="EM">
<supported-bridge-type-refs>
<bridge-type-ref id="bridge"/>
</supported-bridge-type-refs>
<label>PHC EM</label>
<description>Thing for an input/switch module (EM).</description>
<channel-groups>
<channel-group id="em" typeId="emChannels"/>
<channel-group id="emLed" typeId="amChannels"/>
</channel-groups>
<config-description>
<parameter name="address" type="text" pattern="[0-1]{5}" min="5" max="5">
<label>Address</label>
<description>Address of the module as binary, like the DIP switches.</description>
<required>true</required>
</parameter>
</config-description>
</thing-type>
<thing-type id="JRM">
<supported-bridge-type-refs>
<bridge-type-ref id="bridge"/>
</supported-bridge-type-refs>
<label>PHC JRM</label>
<description>Thing for an shutter module (JRM).</description>
<channels>
<channel id="00" typeId="jrm-channel"/>
<channel id="01" typeId="jrm-channel"/>
<channel id="02" typeId="jrm-channel"/>
<channel id="03" typeId="jrm-channel"/>
<channel id="00" typeId="jrmTime-channel"/>
<channel id="01" typeId="jrmTime-channel"/>
<channel id="02" typeId="jrmTime-channel"/>
<channel id="03" typeId="jrmTime-channel"/>
</channels>
<config-description>
<parameter name="address" type="text" pattern="[0-1]{5}" min="5" max="5">
<label>Address</label>
<description>Address of the module as binary, like the DIP switches.</description>
<required>true</required>
</parameter>
<parameter name="upDownTime1" type="integer" min="1" max="65535">
<advanced>true</advanced>
<label>Time Shutter 1</label>
<description>The Time which the first shutter needs to move up/down.</description>
<default>30</default>
</parameter>
<parameter name="upDownTime2" type="integer" min="1" max="65535">
<advanced>true</advanced>
<label>Time Shutter 2</label>
<description>The Time which the second shutter needs to move up/down.</description>
<default>30</default>
</parameter>
<parameter name="upDownTime3" type="integer" min="1" max="65535">
<advanced>true</advanced>
<label>Time Shutter 3</label>
<description>The Time which the third shutter needs to move up/down.</description>
<default>30</default>
</parameter>
<parameter name="upDownTime4" type="integer" min="1" max="65535">
<advanced>true</advanced>
<label>Time Shutter 4</label>
<description>The Time which the fourth shutter needs to move up/down.</description>
<default>30</default>
</parameter>
</config-description>
</thing-type>
<thing-type id="DIM">
<supported-bridge-type-refs>
<bridge-type-ref id="bridge"/>
</supported-bridge-type-refs>
<label>PHC DIM</label>
<description>Thing for a dimmer module (DM).</description>
<channels>
<channel id="00" typeId="dim-channel"/>
<channel id="01" typeId="dim-channel"/>
</channels>
<config-description>
<parameter name="address" type="text" pattern="[0-1]{5}" min="5" max="5">
<label>Address</label>
<description>Address of the module as binary, like the DIP switches.</description>
<required>true</required>
</parameter>
<parameter name="dimTime1" type="integer" min="1" max="255">
<advanced>true</advanced>
<label>Time Dimmer 1</label>
<description>The time (in seconds) in which the first dimmer should dim 100%.</description>
<default>2</default>
</parameter>
<parameter name="dimTime2" type="integer" min="1" max="255">
<advanced>true</advanced>
<label>Time Dimmer 2</label>
<description>The time (in seconds) in which the second dimmer should dim 100%.</description>
<default>2</default>
</parameter>
</config-description>
</thing-type>
</thing:thing-descriptions>