[remoteopenhab] Remote openHAB binding - initial contributionn (#8791)

Fix #8407

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo
2020-10-26 22:39:19 +01:00
committed by GitHub
parent 08405233ae
commit 4646ea68c3
28 changed files with 1804 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<binding:binding id="remoteopenhab" 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>Remote openHAB Binding</name>
<description>The Remote openHAB binding allows to communicate with remote openHAB servers.</description>
<author>Laurent Garnier</author>
</binding:binding>

View File

@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="remoteopenhab"
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="server">
<label>Remote openHAB Server</label>
<description>A remote openHAB server.</description>
<representation-property>host</representation-property>
<config-description>
<parameter name="host" type="text">
<context>network-address</context>
<label>Server Address</label>
<description>The host name or IP address of the remote openHAB server.</description>
<required>true</required>
</parameter>
<parameter name="port" type="integer">
<label>Server HTTP Port</label>
<description>The HTTP port to be used to communicate with the remote openHAB server.</description>
<required>true</required>
<default>8080</default>
<advanced>true</advanced>
</parameter>
<parameter name="restPath" type="text">
<label>REST API Path</label>
<description>The subpath of the REST API on the remote openHAB server.</description>
<required>true</required>
<default>/rest</default>
<advanced>true</advanced>
</parameter>
<parameter name="token" type="text">
<context>password</context>
<label>Token</label>
<description>The token to use when the remote openHAB server is setup to require authorization to run its REST API.</description>
<required>false</required>
<advanced>true</advanced>
</parameter>
</config-description>
</bridge-type>
</thing:thing-descriptions>