From 8da3902919a9c91eb1f2a744f51862c58d646ab0 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sat, 22 Jan 2022 09:21:18 +0000 Subject: [PATCH] fhem.pl: add setNotifyDev (Forum #125381) git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@25541 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/fhem.pl b/fhem.pl index 21c946f33..47547b37f 100755 --- a/fhem.pl +++ b/fhem.pl @@ -155,6 +155,7 @@ sub setGlobalAttrBeforeFork($); sub setReadingsVal($$$$); sub setAttrList($$); sub setDevAttrList($;$); +sub setNotifyDev($$); sub toJSON($); sub utf8ToLatin1($); @@ -5604,6 +5605,19 @@ notifyRegexpChanged($$;$) } } +sub +setNotifyDev($$) +{ + my ($hash, $ntfydev) = @_; + + if($ntfydev) { + $hash->{NOTIFYDEV} = $ntfydev; + } else { + delete($hash->{NOTIFYDEV}); + } + %ntfyHash = (); +} + sub configDBUsed() {