diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 8437daa54..a8ac45845 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -155,6 +155,7 @@ sub setGlobalAttrBeforeFork($); sub setReadingsVal($$$$); sub setAttrList($$); sub setDevAttrList($;$); +sub setDisableNotifyFn($$); sub setNotifyDev($$); sub toJSON($); sub utf8ToLatin1($); @@ -5606,6 +5607,20 @@ notifyRegexpChanged($$;$) } } +sub +setDisableNotifyFn($$) +{ + my ($hash, $doit) = @_; + + if($doit) { + delete($hash->{NOTIFYDEV}); + $hash->{disableNotifyFn} = 1 + } else { + delete($hash->{disableNotifyFn}); + } + %ntfyHash = (); +} + sub setNotifyDev($$) {