diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 21c946f33..47547b37f 100755 --- a/fhem/fhem.pl +++ b/fhem/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() {