forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
thing-types.xml
26 lines (22 loc) · 896 Bytes
/
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
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="serialbutton"
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">
<thing-type id="button">
<label>Push Button</label>
<description>A simple push button</description>
<channels>
<channel id="button" typeId="system.rawbutton"/>
</channels>
<config-description>
<parameter name="port" type="text">
<label>Serial Port</label>
<context>serial-port</context>
<limitToOptions>false</limitToOptions>
<required>true</required>
<description>The serial port that the button is connected to</description>
</parameter>
</config-description>
</thing-type>
</thing:thing-descriptions>