diff --git a/fhem/FHEM/91_notify.pm b/fhem/FHEM/91_notify.pm index fdb32fbf8..40924d6bc 100644 --- a/fhem/FHEM/91_notify.pm +++ b/fhem/FHEM/91_notify.pm @@ -245,6 +245,8 @@ notify_State($$$$) { my ($hash, $tim, $vt, $val) = @_; + $hash->{STATE} = $val if($vt eq "STATE" && !$init_done); + return undef if($vt ne "state" || $val ne "inactive"); readingsSingleUpdate($hash, "state", "inactive", 1); return undef;