From 523830ad89feb9b7378a0dd5d9fa750e353ae839 Mon Sep 17 00:00:00 2001 From: markusbloch Date: Sun, 22 Oct 2017 11:32:19 +0000 Subject: [PATCH] PRESENCE: don't overwrite STATE in mode "event" (Forum: #69423) git-svn-id: https://svn.fhem.de/fhem/trunk@15302 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/73_PRESENCE.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/73_PRESENCE.pm b/fhem/FHEM/73_PRESENCE.pm index 75233ef47..fa65c7c05 100755 --- a/fhem/FHEM/73_PRESENCE.pm +++ b/fhem/FHEM/73_PRESENCE.pm @@ -183,7 +183,7 @@ PRESENCE_Define($$) $hash->{MODE} = "event"; $hash->{EVENT_ABSENT} = $a[3]; $hash->{EVENT_PRESENT} = $a[4]; - $hash->{STATE} = "Initialized"; + $hash->{STATE} = "Initialized" if($init_done); InternalTimer(gettimeofday(), "PRESENCE_setNotfiyDev", $hash); }