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,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<binding:binding id="nuki" 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>Nuki Binding</name>
<description>The Nuki Binding allows simple and fast integration of Nuki Smart Locks into openHAB. This binding needs
the Nuki Smart Lock(s) to be paired via Bluetooth with a Nuki Bridge to function correctly.</description>
<author>Markus Katter</author>
</binding:binding>

View File

@@ -0,0 +1,122 @@
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="nuki"
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">
<!-- Nuki Bridge (Bridge Type) -->
<bridge-type id="bridge">
<label>Nuki Bridge</label>
<description>This bridge represents a Nuki Bridge on your local network. Nuki Smart Locks have to be paired via
Bluetooth with it.</description>
<config-description>
<parameter name="ip" type="text" required="true">
<label>IP Address</label>
<context>network-address</context>
<description>The IP address of the Nuki Bridge. Look it up on your router. It is recommended to set a static IP
address lease for the Nuki Bridge (and for your openHAB server too) on your router.</description>
</parameter>
<parameter name="port" type="integer" required="false">
<label>Port</label>
<description>The Port which you configured during Initial Bridge setup
(https://nuki.io/en/support/bridge/bridge-setup/initial-bridge-setup/).</description>
<default>8080</default>
</parameter>
<parameter name="apiToken" type="text" required="true">
<label>API Token</label>
<context>password</context>
<description>The API Token which you configured during Initial Bridge setup
(https://nuki.io/en/support/bridge/bridge-setup/initial-bridge-setup/).</description>
</parameter>
<parameter name="manageCallbacks" type="boolean" required="false">
<label>Manage Nuki Bridge Callbacks</label>
<description>Let the Nuki Binding manage the callback on the Nuki Bridge.</description>
<default>true</default>
</parameter>
</config-description>
</bridge-type>
<!-- Nuki Smart Lock (Thing Type) -->
<thing-type id="smartlock">
<supported-bridge-type-refs>
<bridge-type-ref id="bridge"/>
</supported-bridge-type-refs>
<label>Nuki Smart Lock</label>
<description>Nuki Smart Lock which is paired via Bluetooth to a Nuki Bridge.</description>
<channels>
<channel id="lock" typeId="smartlockLock"/>
<channel id="lockState" typeId="smartlockState"/>
<channel id="lowBattery" typeId="system.low-battery"/>
<channel id="doorsensorState" typeId="smartlockDoorState"/>
</channels>
<config-description>
<parameter name="nukiId" type="text" required="true">
<label>Nuki ID</label>
<description>The 8-digit hexadecimal string that identifies the Nuki Smart Lock. Look it up on the sticker on the
back of the Nuki Smart Lock (remove mounting plate).</description>
</parameter>
<parameter name="unlatch" type="boolean" required="false">
<label>Unlatch</label>
<description>If switched to On (or set to true) the Nuki Smart Lock will unlock the door but then also automatically
pull the latch of the door lock. Usually, if the door hinges are correctly adjusted, the door will then swing open.</description>
<default>false</default>
</parameter>
</config-description>
</thing-type>
<!-- Channel Type -->
<channel-type id="smartlockLock">
<item-type>Switch</item-type>
<label>Lock</label>
<description>Use this channel with a Switch Item to unlock and lock the door. Configure "Unlatch" to true if your Nuki
Smart Lock is mounted on a door lock with a knob on the outside.</description>
<category>Door</category>
<state>
<options>
<option value="OFF">Unlocks the door</option>
<option value="ON">Locks the door</option>
</options>
</state>
</channel-type>
<channel-type id="smartlockState">
<item-type>Number</item-type>
<label>Lock State</label>
<description>Use this channel if you want to execute other supported lock actions or to display the current lock
state.</description>
<category>Door</category>
<state>
<options>
<option value="0">Uncalibrated</option>
<option value="1">Locked</option>
<option value="2">Unlocking</option>
<option value="3">Unlocked</option>
<option value="4">Locking</option>
<option value="5">Unlatched</option>
<option value="6">Unlocked (Lock 'n' Go)</option>
<option value="7">Unlatching</option>
<option value="1002">Unlocking (Lock 'n' Go)</option>
<option value="1007">Unlatching (Lock 'n' Go)</option>
<option value="254">Motor blocked</option>
<option value="255">UNDEFINED</option>
</options>
</state>
</channel-type>
<channel-type id="smartlockDoorState">
<item-type>Number</item-type>
<label>Door State</label>
<description>Use this channel to display the current state of the door sensor</description>
<category>Door</category>
<state>
<options>
<option value="0">Unavailable</option>
<option value="1">Deactivated</option>
<option value="2">Closed</option>
<option value="3">Open</option>
<option value="4">Unknown</option>
<option value="5">Calibrating</option>
</options>
</state>
</channel-type>
</thing:thing-descriptions>