[remoteopenhab] Introduce things for the remote things and add support for HTTPS (#8909)

* [remoteopenhab] Introduce things for the remote things

Signed-off-by: Laurent Garnier <lg.hc@free.fr>

* Adapt code to change in core

Signed-off-by: Laurent Garnier <lg.hc@free.fr>

* Review comment: scheduler.execute

Signed-off-by: Laurent Garnier <lg.hc@free.fr>

* Fixed tables in README

Signed-off-by: Laurent Garnier <lg.hc@free.fr>

* Review comment: ThingHandlerService

Signed-off-by: Laurent Garnier <lg.hc@free.fr>

* Add support for HTTPS communication

Signed-off-by: Laurent Garnier <lg.hc@free.fr>

* Few changes to satisfy build

Signed-off-by: Laurent Garnier <lg.hc@free.fr>

* Avoid SSE timeout exception after one minute when no event received

Fix #8977

Signed-off-by: Laurent Garnier <lg.hc@free.fr>

* Check connection job: do nothing when the thing was ONLINE and the REST API is still reachable

Signed-off-by: Laurent Garnier <lg.hc@free.fr>

* Review comment: super.deactivate

Signed-off-by: Laurent Garnier <lg.hc@free.fr>

* Review comments: README

Signed-off-by: Laurent Garnier <lg.hc@free.fr>

* Review comment: buildChannels parameter renamed

Signed-off-by: Laurent Garnier <lg.hc@free.fr>

* Imrpoved logging when the REST API is failing

Signed-off-by: Laurent Garnier <lg.hc@free.fr>

* Review comment: fasle

Signed-off-by: Laurent Garnier <lg.hc@free.fr>

* Review comment: deprecated "required" tag for channel parameter

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo
2020-11-15 10:59:38 +01:00
committed by GitHub
parent d055c057d7
commit 07abbafadc
27 changed files with 1249 additions and 232 deletions

View File

@@ -18,14 +18,32 @@
<required>true</required>
</parameter>
<parameter name="useHttps" type="boolean">
<label>Use HTTPS</label>
<description>Set it to true in case you want to use HTTPS to communicate with the remote openHAB server. Default is
false.</description>
<required>false</required>
<default>false</default>
<advanced>true</advanced>
</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>
<description>The HTTP port to use to communicate with the remote openHAB server.</description>
<required>true</required>
<default>8080</default>
<advanced>true</advanced>
</parameter>
<parameter name="trustedCertificate" type="boolean">
<label>Trust SSL Certificate</label>
<description>Set it to true in case you want to use HTTPS even without a valid SSL certificate provided by your
remote server.</description>
<required>false</required>
<default>false</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>
@@ -44,4 +62,43 @@
</config-description>
</bridge-type>
<thing-type id="thing">
<supported-bridge-type-refs>
<bridge-type-ref id="server"/>
</supported-bridge-type-refs>
<label>Remote Thing</label>
<description>A thing from the remote openHAB server.</description>
<representation-property>thingUID</representation-property>
<config-description>
<parameter name="thingUID" type="text">
<label>Remote Thing UID</label>
<description>The thing UID in the remote openHAB server.</description>
<required>true</required>
</parameter>
<parameter name="buildTriggerChannels" type="boolean">
<label>Automatic Trigger Channels Building</label>
<description>If set to true, a trigger channel will be automatically created and linked to each trigger channel from
the remote thing.</description>
<required>false</required>
<default>true</default>
<advanced>true</advanced>
</parameter>
</config-description>
</thing-type>
<channel-type id="trigger">
<kind>trigger</kind>
<label>Trigger Channel</label>
<config-description>
<parameter name="channelUID" type="text" required="true">
<label>Remote Channel UID</label>
<description>The channel UID in the remote openHAB server.</description>
</parameter>
</config-description>
</channel-type>
</thing:thing-descriptions>