added migrated 2.x add-ons

Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
Kai Kreuzer
2020-09-21 01:58:32 +02:00
parent bbf1a7fd29
commit 6df6783b60
11662 changed files with 1302875 additions and 11 deletions

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<binding:binding id="opensprinkler" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:binding="https://openhab.org/schemas/binding/v1.0.0"
xsi:schemaLocation="https://openhab.org/schemas/binding/v1.0.0 https://openhab.org/schemas/binding-1.0.0.xsd">
<name>OpenSprinkler Binding</name>
<description>This is the binding for OpenSprinkler.</description>
<author>Chris Graham</author>
</binding:binding>

View File

@@ -0,0 +1,125 @@
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="opensprinkler"
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="http">
<label>OpenSprinkler HTTP Interface</label>
<description>A connection to a stand alone OpenSprinkler device which communicates over HTTP.</description>
<config-description>
<parameter name="hostname" type="text">
<label>Hostname</label>
<description>The host name or IP address of the OpenSprinkler Web API interface. It may or may not start with the
protocol, e.g. in order to use https:// instead of the default http://.</description>
<default>localhost</default>
</parameter>
<parameter name="port" type="integer" min="1" max="65535">
<label>Port</label>
<description>Port of the OpenSprinkler Web API interface.</description>
<default>80</default>
</parameter>
<parameter name="password" type="text">
<label>Password</label>
<description>The admin password used to access the Web API interface.</description>
<default>opendoor</default>
</parameter>
<parameter name="refresh" type="integer">
<label>Refresh Interval</label>
<description>Specifies the refresh interval in seconds.</description>
<default>60</default>
</parameter>
<parameter name="basicUsername" type="text">
<label>Basic Auth Username</label>
<description>Used if the OpenSprinkler device is behind a basic auth protected reverse proxy.</description>
<advanced>true</advanced>
</parameter>
<parameter name="basicPassword" type="text">
<label>Basic Auth Password</label>
<description>Used if the OpenSprinkler device is behind a basic auth protected reverse proxy.</description>
<advanced>true</advanced>
</parameter>
</config-description>
</bridge-type>
<thing-type id="station">
<supported-bridge-type-refs>
<bridge-type-ref id="http"/>
</supported-bridge-type-refs>
<label>OpenSprinkler Station</label>
<description>Controls a station connected to the OpenSprinkler device.</description>
<channels>
<channel id="stationState" typeId="stationState"></channel>
<channel id="queued" typeId="queued"></channel>
<channel id="remainingWaterTime" typeId="remainingWaterTime"></channel>
<channel id="nextDuration" typeId="nextDuration"></channel>
</channels>
<config-description>
<parameter name="stationIndex" type="integer" required="true">
<label>Station Index</label>
<description>The index of the station, starting with 0, of the station.</description>
</parameter>
</config-description>
</thing-type>
<thing-type id="device">
<supported-bridge-type-refs>
<bridge-type-ref id="http"/>
</supported-bridge-type-refs>
<label>OpenSprinkler Device</label>
<description>A thing that receives data from the OpenSprinkler device directly.</description>
<channels>
<channel id="rainsensor" typeId="rainsensor"></channel>
<channel id="waterlevel" typeId="waterlevel"></channel>
</channels>
</thing-type>
<channel-type id="rainsensor">
<item-type>Switch</item-type>
<label>Rain</label>
<description>Provides feedback on whether the OpenSprinkler device has detected rain or not.</description>
<category>Sensor</category>
<state readOnly="true"/>
</channel-type>
<channel-type id="waterlevel">
<item-type>Number:Dimensionless</item-type>
<label>Water Level</label>
<description>The current water level in percent</description>
<state readOnly="true"/>
</channel-type>
<channel-type id="stationState">
<item-type>Switch</item-type>
<label>Station</label>
<description>Controls a station on the OpenSprinkler device.</description>
<category>Switch</category>
</channel-type>
<channel-type id="queued">
<item-type>Switch</item-type>
<label>Queued</label>
<description>Indicates if the station is queued to be turned on. Can be removed from the queue by turning off. ON is
read-only.</description>
<category>Switch</category>
</channel-type>
<channel-type id="remainingWaterTime">
<item-type>Number:Time</item-type>
<label>Remaining Water Time</label>
<description>Read-only property of the remaining water time of the station.</description>
<state readOnly="true" pattern="%.0f min"/>
</channel-type>
<channel-type id="nextDuration">
<item-type>Number:Time</item-type>
<label>Next Open Duration</label>
<description>The duration the station will be opened the next time it is switched on.</description>
<state readOnly="false" pattern="%.0f s"/>
</channel-type>
</thing:thing-descriptions>