diff --git a/fhem/FHEM/57_Calendar.pm b/fhem/FHEM/57_Calendar.pm index 3a9018bf9..8d866f1e9 100644 --- a/fhem/FHEM/57_Calendar.pm +++ b/fhem/FHEM/57_Calendar.pm @@ -1461,7 +1461,6 @@ sub Calendar_Initialize($) { $hash->{GetFn} = "Calendar_Get"; $hash->{SetFn} = "Calendar_Set"; $hash->{AttrFn} = "Calendar_Attr"; - $hash->{NOTIFYDEV} = "global"; $hash->{NotifyFn}= "Calendar_Notify"; $hash->{AttrList}= "hideOlderThan hideLaterThan onCreateEvent $readingFnAttributes"; } @@ -1480,6 +1479,7 @@ sub Calendar_Define($$) { " define Calendar ical file [interval]" if(($#a < 4 && $#a > 5) || ($a[2] ne 'ical') || (($a[3] ne 'url') && ($a[3] ne 'file'))); + $hash->{NOTIFYDEV} = "global"; readingsSingleUpdate($hash, "state", "initialized", 1); my $name = $a[0]; diff --git a/fhem/FHEM/59_Weather.pm b/fhem/FHEM/59_Weather.pm index 16a90f8f0..8a750c382 100755 --- a/fhem/FHEM/59_Weather.pm +++ b/fhem/FHEM/59_Weather.pm @@ -87,7 +87,6 @@ sub Weather_Initialize($) { $hash->{GetFn} = "Weather_Get"; $hash->{SetFn} = "Weather_Set"; $hash->{AttrList}= $readingFnAttributes; - $hash->{NOTIFYDEV} = "global"; $hash->{NotifyFn}= "Weather_Notify"; #Weather_DebugCodes('de'); @@ -419,6 +418,7 @@ sub Weather_Define($$) { return "syntax: define Weather [interval [en|de|nl]]" if(int(@a) < 3 && int(@a) > 5); + $hash->{NOTIFYDEV} = "global"; $hash->{STATE} = "Initialized"; $hash->{fhem}{interfaces}= "temperature;humidity;wind";