diff --git a/73_NUKIBridge.pm b/73_NUKIBridge.pm
index 417094d..cd354cf 100644
--- a/73_NUKIBridge.pm
+++ b/73_NUKIBridge.pm
@@ -34,7 +34,7 @@ use JSON;
#use Time::HiRes qw(gettimeofday);
use HttpUtils;
-my $version = "0.2.0";
+my $version = "0.2.1";
my $bridgeAPI = "1.0.2";
@@ -102,7 +102,6 @@ sub NUKIBridge_Define($$) {
$hash->{TOKEN} = $token;
$hash->{INTERVAL} = $interval;
$hash->{VERSION} = $version;
- $hash->{BRIDGEAPI} = $bridgeAPI;
@@ -465,6 +464,7 @@ sub NUKIBridge_Autocreate($$;$) {
readingsBulkUpdate( $hash, "smartlockCount", $autocreated );
}
+ readingsBulkUpdate( $hash, "bridgeAPI", $bridgeAPI );
readingsEndUpdate( $hash, 1 );
@@ -483,7 +483,7 @@ sub NUKIBridge_Autocreate($$;$) {
=pod
=item device
-=item summary
+=item summary Modul to control the Nuki Smartlock's over the Nuki Bridge.
=item summary_DE Modul zur Steuerung des Nuki Smartlock über die Nuki Bridge.
=begin html
@@ -491,7 +491,50 @@ sub NUKIBridge_Autocreate($$;$) {
NUKIBridge
-
+ NUKIBridge - controls the Nuki Smartlock over the Nuki Bridge
+
+ The Nuki Bridge module connects FHEM to the Nuki Bridge and then reads all the smartlocks available on the bridge. Furthermore, the detected Smartlocks are automatically created as independent devices.
+
+
+ Define
+
+ define <name> NUKIBridge <HOST> <API-TOKEN>
+
+ Example:
+
+ define NBridge1 NUKIBridge 192.168.0.23 F34HK6
+
+
+ This statement creates a NUKIBridge device with the name NBridge1 and the IP 192.168.0.23 as well as the token F34HK6.
+ After the bridge device is created, all available Smartlocks are automatically placed in FHEM.
+
+
+
+ Readings
+
+ - 0_nukiId - ID of the first found Nuki Smartlock
+ - 0_name - Name of the first found Nuki Smartlock
+ - smartlockCount - number of all found Smartlocks
+ - bridgeAPI - API Version of bridge
+
+ The preceding number is continuous, starts with 0 und returns the properties of one Smartlock.
+
+
+
+ Set
+
+ - autocreate - Prompts to re-read all Smartlocks from the bridge and if not already present in FHEM, create the autimatic.
+ - statusRequest - starts a checkAlive of the bridge, it is determined whether the bridge is still online
+
+
+
+
+ Attributes
+
+ - disable - disables the Nuki Bridge
+ - interval - changes the interval for the CheckAlive
+
+
=end html
@@ -524,6 +567,7 @@ sub NUKIBridge_Autocreate($$;$) {
0_nukiId - ID des ersten gefundenen Nuki Smartlocks
0_name - Name des ersten gefunden Nuki Smartlocks
smartlockCount - Anzahl aller gefundenen Smartlock
+ bridgeAPI - API Version der Bridge
Die vorangestellte Zahl ist forlaufend und gibt beginnend bei 0 die Eigenschaften Eines Smartlocks wieder.
diff --git a/74_NUKIDevice.pm b/74_NUKIDevice.pm
index 8e92e8f..a6ad8e6 100644
--- a/74_NUKIDevice.pm
+++ b/74_NUKIDevice.pm
@@ -33,7 +33,7 @@ use warnings;
use JSON;
#use Time::HiRes qw(gettimeofday);
-my $version = "0.2.0";
+my $version = "0.2.1";
@@ -383,7 +383,7 @@ sub NUKIDevice_Parse($$) {
=pod
=item device
-=item summary
+=item summary Modul to control the Nuki Smartlock's
=item summary_DE Modul zur Steuerung des Nuki Smartlocks.
=begin html
@@ -391,7 +391,54 @@ sub NUKIDevice_Parse($$) {
NUKIDevice
-
+ NUKIDevice - Controls the Nuki Smartlock
+
+ The Nuki module connects FHEM over the Nuki Bridge with a Nuki Smartlock. After that, it´s possible to lock and unlock the Smartlock.
+ Normally the Nuki devices are automatically created by the bridge module.
+
+
+ Define
+
+ define <name> NUKIDevice <Nuki-Id> <IODev-Device>
+
+ Example:
+
+ define Frontdoor NUKIDevice 1 NBridge1
+
+
+ This statement creates a NUKIDevice with the name Frontdoor, the NukiId 1 and the IODev device NBridge1.
+ After the device has been created, the current state of the Smartlock is automatically read from the bridge.
+
+
+
+ Readings
+
+ - state - Status of the Smartlock or error message if any error.
+ - lockState - current lock status uncalibrated, locked, unlocked, unlocked (lock ‘n’ go), unlatched, locking, unlocking, unlatching, motor blocked, undefined.
+ - succes - true, false Returns the status of the last closing command. Ok or not Ok.
+ - batteryCritical - Is the battery in a critical state? True, false
+ - battery - battery status, ok / low
+
+
+
+ Set
+
+ - statusRequest - retrieves the current state of the smartlock from the bridge.
+ - lock - lock
+ - unlock - unlock
+ - unlatch - unlock / open Door
+ - locknGo - lock when gone
+ - locknGoWithUnlatch - lock after the door has been opened
+
+
+
+
+ Attributes
+
+ - disable - disables the Nuki device
+ - interval - changes the interval for the statusRequest
+
+
=end html