############################################################################### # # Developed with VSCodium and richterger perl plugin # # (c) 2016-2021 Copyright: Marko Oldenburg (fhemdevelopment at cooltux dot net) # All rights reserved # # This script is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # any later version. # # The GNU General Public License can be found at # http://www.gnu.org/copyleft/gpl.html. # A copy is found in the textfile GPL.txt and important notices to the license # from the author is found in LICENSE.txt distributed with these scripts. # # This script is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # # $Id$ # ############################################################################### ################################# ######### Wichtige Hinweise und Links ################# ## Beispiel für Logausgabe # https://forum.fhem.de/index.php/topic,55756.msg508412.html#msg508412 ## # ################################ package FHEM::NUKIBridge; use strict; use warnings; use FHEM::Meta; require FHEM::Devices::Nuki::Bridge; use GPUtils qw(GP_Import); BEGIN { # Import from main context GP_Import(qw( readingFnAttributes )); } sub ::NUKIBridge_Initialize { goto &Initialize } sub Initialize { my ($hash) = @_; # Provider $hash->{WriteFn} = \&FHEM::Devices::Nuki::Bridge::Write; $hash->{Clients} = ':NUKIDevice:'; $hash->{MatchList} = { '1:NUKIDevice' => '^{.*}$' }; my $webhookFWinstance = join( ",", ::devspec2array('TYPE=FHEMWEB:FILTER=TEMPORARY!=1') ); # Consumer $hash->{SetFn} = \&FHEM::Devices::Nuki::Bridge::Set; $hash->{GetFn} = \&FHEM::Devices::Nuki::Bridge::Get; $hash->{DefFn} = \&FHEM::Devices::Nuki::Bridge::Define; $hash->{UndefFn} = \&FHEM::Devices::Nuki::Bridge::Undef; $hash->{NotifyFn} = \&FHEM::Devices::Nuki::Bridge::Notify; $hash->{AttrFn} = \&FHEM::Devices::Nuki::Bridge::Attr; $hash->{AttrList} = 'disable:1 ' . 'port ' . 'webhookFWinstance:' . $webhookFWinstance . ' ' . 'webhookHttpHostname ' . $readingFnAttributes; return FHEM::Meta::InitMod( __FILE__, $hash ); } 1; =pod =item device =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

NUKIBridge

=end html =begin html_DE

NUKIBridge

=end html_DE =for :application/json;q=META.json 73_NUKIBridge.pm { "abstract": "Modul to control the Nuki Smartlock's over the Nuki Bridge", "x_lang": { "de": { "abstract": "Modul to control the Nuki Smartlock's over the Nuki Bridge" } }, "keywords": [ "fhem-mod-device", "fhem-core", "Smartlock", "Nuki", "Control" ], "release_status": "stable", "license": "GPL_2", "version": "v2.0.2", "x_apiversion": "1.13.0", "author": [ "Marko Oldenburg " ], "x_fhem_maintainer": [ "CoolTux" ], "x_fhem_maintainer_github": [ "LeonGaultier" ], "prereqs": { "runtime": { "requires": { "FHEM": 5.00918799, "perl": 5.024, "Meta": 0, "JSON": 0, "Date::Parse": 0 }, "recommends": { }, "suggests": { } } } } =end :application/json;q=META.json =cut