[wolfsmartset] Initial contribution (#10751)

Signed-off-by: Bo Biene <openhab.github@biene.eu>
This commit is contained in:
Bo Biene
2021-09-25 21:07:54 +02:00
committed by GitHub
parent 277c65f43a
commit 8440745ceb
38 changed files with 3882 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<binding:binding id="wolfsmartset" 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>WolfSmartset Binding</name>
<description>This is the binding for WolfSmartset smart systems.</description>
</binding:binding>

View File

@@ -0,0 +1,47 @@
<config-description:config-descriptions
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:config-description="https://openhab.org/schemas/config-description/v1.0.0"
xsi:schemaLocation="https://openhab.org/schemas/config-description/v1.0.0 https://openhab.org/schemas/config-description-1.0.0.xsd">
<config-description uri="thing-type:wolfsmartset:account">
<parameter name="username" type="text" required="false">
<label>Username</label>
</parameter>
<parameter name="password" type="text" required="false">
<label>Password</label>
<context>password</context>
</parameter>
<parameter name="refreshIntervalStructure" type="integer" min="2" required="false" unit="m">
<label>Structure Refresh Interval</label>
<description>Specifies the refresh interval in minutes</description>
<default>10</default>
<advanced>true</advanced>
</parameter>
<parameter name="refreshIntervalValues" type="integer" min="2" required="false" unit="s">
<label>States Refresh Interval</label>
<description>Specifies time in seconds to refresh states</description>
<default>15</default>
<advanced>true</advanced>
</parameter>
<parameter name="discoveryEnabled" type="boolean" required="false">
<label>Background Discovery</label>
<description>Enable/disable automatic discovery</description>
<default>true</default>
</parameter>
</config-description>
<config-description uri="thing-type:wolfsmartset:system">
<parameter name="systemId" type="text" required="true">
<label>System ID</label>
<description>System ID assigned to this system by WolfSmartset</description>
</parameter>
</config-description>
<config-description uri="thing-type:wolfsmartset:unit">
<parameter name="unitId" type="text" required="true">
<label>Unit Id</label>
<description>Id assigned to this unit (e.g. rs:101)</description>
</parameter>
</config-description>
</config-description:config-descriptions>

View File

@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="wolfsmartset"
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 ACCOUNT -->
<bridge-type id="account">
<label>WolfSmartset Account</label>
<description>Represents an account at WolfSmartset</description>
<config-description-ref uri="thing-type:wolfsmartset:account"/>
</bridge-type>
<!-- THING TYPE SYSTEM -->
<bridge-type id="system">
<supported-bridge-type-refs>
<bridge-type-ref id="account"/>
</supported-bridge-type-refs>
<label>WolfSmartset System</label>
<description>An WolfSmartset system</description>
<representation-property>systemId</representation-property>
<config-description-ref uri="thing-type:wolfsmartset:system"/>
</bridge-type>
<!-- THING TYPE UNIT -->
<thing-type id="unit">
<supported-bridge-type-refs>
<bridge-type-ref id="system"/>
</supported-bridge-type-refs>
<label>WolfSmartset Unit</label>
<description>An WolfSmartset remote unit</description>
<representation-property>unitId</representation-property>
<config-description-ref uri="thing-type:wolfsmartset:unit"/>
</thing-type>
<channel-type id="number">
<item-type>Number</item-type>
<label>Number</label>
<state readOnly="true" pattern="%.1f %unit%"/>
</channel-type>
<channel-type id="contact">
<item-type>Contact</item-type>
<label>Contact</label>
<state readOnly="true" pattern="%.1f %unit%"/>
</channel-type>
<channel-type id="temperature">
<item-type>Number:Temperature</item-type>
<label>Temperature</label>
<state readOnly="true" pattern="%.1f %unit%"/>
</channel-type>
<channel-type id="string">
<item-type>String</item-type>
<label>String</label>
<state readOnly="true" pattern="%s"/>
</channel-type>
<channel-type id="datetime">
<item-type>DateTime</item-type>
<label>Date Time</label>
<state readOnly="true"/>
</channel-type>
<channel-type id="barometric-pressure">
<item-type>Number:Pressure</item-type>
<label>Pressure</label>
<state readOnly="true" pattern="%.1f %unit%"/>
</channel-type>
</thing:thing-descriptions>