added migrated 2.x add-ons
Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<thing:thing-descriptions bindingId="onewiregpio"
|
||||
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="sensor">
|
||||
<label>Temperature Sensor</label>
|
||||
<description>OneWire GPIO Temperature sensor</description>
|
||||
|
||||
<channels>
|
||||
<channel id="temperature" typeId="temperature"/>
|
||||
</channels>
|
||||
<config-description>
|
||||
<parameter name="gpio_bus_file" type="text" required="true">
|
||||
<label>Device Path</label>
|
||||
<description>device id in format: /sys/bus/w1/devices/DEVICE_ID_TO_SET/w1_slave</description>
|
||||
</parameter>
|
||||
|
||||
<parameter name="refresh_time" type="integer">
|
||||
<label>Refresh Time Interval</label>
|
||||
<description>Refresh time interval in seconds.</description>
|
||||
<default>600</default>
|
||||
</parameter>
|
||||
|
||||
<parameter name="precision" type="integer" min="0" max="3">
|
||||
<label>Sensor Precision</label>
|
||||
<description>Sensor precision after floating point.</description>
|
||||
<required>false</required>
|
||||
<default>3</default>
|
||||
</parameter>
|
||||
|
||||
</config-description>
|
||||
</thing-type>
|
||||
|
||||
<channel-type id="temperature">
|
||||
<item-type>Number:Temperature</item-type>
|
||||
<label>Temperature</label>
|
||||
<description>Indicates the temperature read from one wire gpio sensor</description>
|
||||
<state readOnly="true" pattern="%.3f %unit%"/>
|
||||
</channel-type>
|
||||
|
||||
</thing:thing-descriptions>
|
||||
Reference in New Issue
Block a user