From 5e37e8ac33c41a57a4d35407b55f68872a257e3b Mon Sep 17 00:00:00 2001 From: LeonGaultier Date: Fri, 17 Dec 2021 11:43:10 +0000 Subject: [PATCH] 73_NUKIBridge: 74_NUKIDevice: add all new features of API Version 1.13 git-svn-id: https://svn.fhem.de/fhem/trunk@25350 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 2 + fhem/FHEM/73_NUKIBridge.pm | 52 ++- fhem/FHEM/74_NUKIDevice.pm | 213 +++++++---- fhem/lib/FHEM/Devices/Nuki/Bridge.pm | 551 +++++++++++++++------------ fhem/lib/FHEM/Devices/Nuki/Device.pm | 184 ++++----- 5 files changed, 589 insertions(+), 413 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index ccc0ab63b..ed04065cb 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,7 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - feature: 73_NUKIBridge: 74_NUKIDevice: add all new features of API Version + 1.13 - bugfix: 88_HMCCU: Several improvements and bug fixes - feature: 93_DbRep: Pragma query possible in sqlCmd, new getter initData minor fixes diff --git a/fhem/FHEM/73_NUKIBridge.pm b/fhem/FHEM/73_NUKIBridge.pm index 2434332fe..4719c8e61 100644 --- a/fhem/FHEM/73_NUKIBridge.pm +++ b/fhem/FHEM/73_NUKIBridge.pm @@ -1,6 +1,6 @@ ############################################################################### # -# Developed with Kate +# Developed with VSCodium and richterger perl plugin # # (c) 2016-2021 Copyright: Marko Oldenburg (fhemdevelopment at cooltux dot net) # All rights reserved @@ -43,6 +43,14 @@ 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 { @@ -68,7 +76,7 @@ sub Initialize { . 'webhookFWinstance:' . $webhookFWinstance . ' ' . 'webhookHttpHostname ' - . $::readingFnAttributes; + . $readingFnAttributes; return FHEM::Meta::InitMod( __FILE__, $hash ); } @@ -85,13 +93,27 @@ sub Initialize {

NUKIBridge