diff --git a/fhem/CHANGED b/fhem/CHANGED index 53effb66e..c75426911 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # 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. + - bugfix: 70_ZoneMinder: fix afterInitialized (thx GeberNehmer) - bugfix: 73_AutoShuttersControl: change shading reading message - feature: 76_SMAPortal: upgrade to V3. This version is not compatible to prior V2. Attributes and Readings are changed. diff --git a/fhem/FHEM/70_ZoneMinder.pm b/fhem/FHEM/70_ZoneMinder.pm index 982b09395..3fac34976 100755 --- a/fhem/FHEM/70_ZoneMinder.pm +++ b/fhem/FHEM/70_ZoneMinder.pm @@ -99,7 +99,12 @@ sub ZoneMinder_Define { my $triggerPortState = $hash->{STATE}; ZoneMinder_updateState( $hash, $triggerPortState, 'n/a' ); - ZoneMinder_afterInitialized($hash); + if (!$init_done) { + InternalTimer(gettimeofday()+5, "ZoneMinder_afterInitialized", $hash, 0); + } + else { + ZoneMinder_afterInitialized($hash); + } return undef; }