forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bridge.xml
192 lines (173 loc) · 5.85 KB
/
bridge.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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="digiplex"
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="bridge">
<label>Digiplex PRT3 Module</label>
<description>Digiplex PRT3 module with Serial Interface</description>
<channel-groups>
<channel-group typeId="statistics" id="statistics"/>
<channel-group typeId="troubles" id="troubles"/>
</channel-groups>
<config-description>
<parameter-group name="port">
<context>communication</context>
<label>Port Configuration</label>
<description></description>
</parameter-group>
<parameter name="port" type="text" required="true" groupName="port">
<label>Serial Port</label>
<context>serial-port</context>
<limitToOptions>false</limitToOptions>
<description>Set the serial port used to access PRT3 device</description>
<default></default>
</parameter>
<parameter name="baudrate" type="integer" required="true" groupName="port">
<label>Baud Rate</label>
<context>serial-port</context>
<description>Set the serial port baud rate</description>
<default>2400</default>
<limitToOptions>true</limitToOptions>
<options>
<option value="2400">2400</option>
<option value="9600">9600</option>
<option value="19200">19200</option>
<option value="57600">57600</option>
</options>
</parameter>
</config-description>
</bridge-type>
<channel-group-type id="statistics">
<label>Statistics</label>
<description>Statistics of PRT3 communication</description>
<channels>
<channel typeId="messages_sent" id="messages_sent"/>
<channel typeId="responses_received" id="responses_received"/>
<channel typeId="events_received" id="events_received"/>
</channels>
</channel-group-type>
<channel-group-type id="troubles">
<label>Troubles</label>
<description>Problems reported by the alarm system</description>
<channels>
<channel typeId="tlm_trouble" id="tlm_trouble"/>
<channel typeId="ac_failure" id="ac_failure"/>
<channel typeId="battery_failure" id="battery_failure"/>
<channel typeId="aux_current_limit" id="aux_current_limit"/>
<channel typeId="bell_current_limit" id="bell_current_limit"/>
<channel typeId="bell_absent" id="bell_absent"/>
<channel typeId="clock_trouble" id="clock_trouble"/>
<channel typeId="global_fire_loop" id="global_fire_loop"/>
</channels>
</channel-group-type>
<channel-type id="messages_sent">
<item-type>Number</item-type>
<label>Messages Sent</label>
<description>Counts messages sent to the alarm system</description>
</channel-type>
<channel-type id="responses_received">
<item-type>Number</item-type>
<label>Responses Received</label>
<description>Counts responses received from the alarm system</description>
</channel-type>
<channel-type id="events_received">
<item-type>Number</item-type>
<label>Events Received</label>
<description>Counts events received from the alarm system</description>
</channel-type>
<channel-type id="tlm_trouble">
<item-type>Switch</item-type>
<label>Telephone Line</label>
<description>Reports telephone line failure</description>
<state readOnly="true">
<options>
<option value="ON">Failure</option>
<option value="OFF">OK</option>
</options>
</state>
</channel-type>
<channel-type id="ac_failure">
<item-type>Switch</item-type>
<label>AC Line</label>
<description>Reports power line failure</description>
<category>Energy</category>
<state readOnly="true">
<options>
<option value="ON">Failure</option>
<option value="OFF">OK</option>
</options>
</state>
</channel-type>
<channel-type id="battery_failure">
<item-type>Switch</item-type>
<label>Battery</label>
<description>Reports battery failure</description>
<category>LowBattery</category>
<state readOnly="true">
<options>
<option value="ON">Failure</option>
<option value="OFF">OK</option>
</options>
</state>
</channel-type>
<channel-type id="aux_current_limit">
<item-type>Switch</item-type>
<label>AUX Current Limit</label>
<description>Auxiliary Outputs have exceeded their current limits</description>
<category>Energy</category>
<state readOnly="true">
<options>
<option value="ON">Exceeded</option>
<option value="OFF">OK</option>
</options>
</state>
</channel-type>
<channel-type id="bell_current_limit">
<item-type>Switch</item-type>
<label>Bell Current Limit</label>
<description>Bell Output has exceeded its current limit</description>
<category>Energy</category>
<state readOnly="true">
<options>
<option value="ON">Exceeded</option>
<option value="OFF">OK</option>
</options>
</state>
</channel-type>
<channel-type id="bell_absent">
<item-type>Switch</item-type>
<label>Bell Status</label>
<description>Reports if bell is absent</description>
<state readOnly="true">
<options>
<option value="ON">Absent</option>
<option value="OFF">OK</option>
</options>
</state>
</channel-type>
<channel-type id="clock_trouble">
<item-type>Switch</item-type>
<label>Clock</label>
<description>Reports if clock is not malfunctioning</description>
<category>Time</category>
<state readOnly="true">
<options>
<option value="ON">Failure</option>
<option value="OFF">OK</option>
</options>
</state>
</channel-type>
<channel-type id="global_fire_loop">
<item-type>Switch</item-type>
<label>Global Fire Loop</label>
<description>Reports if fire loop has been triggered</description>
<category>Smoke</category>
<state readOnly="true">
<options>
<option value="ON">Fire!</option>
<option value="OFF">OK</option>
</options>
</state>
</channel-type>
</thing:thing-descriptions>