From 41d2f20c981496d9733cd07efd36057c07887530 Mon Sep 17 00:00:00 2001 From: Ellert <> Date: Thu, 6 Jul 2017 13:07:10 +0000 Subject: [PATCH] 98_DOIFtools.pm: fixed detailFn for DOIF if empty git-svn-id: https://svn.fhem.de/fhem/trunk@14656 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_DOIFtools.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/98_DOIFtools.pm b/fhem/FHEM/98_DOIFtools.pm index c8b1fbe01..b937727f2 100644 --- a/fhem/FHEM/98_DOIFtools.pm +++ b/fhem/FHEM/98_DOIFtools.pm @@ -640,7 +640,7 @@ sub DOIFtools_Notify($$) { CommandSave(undef,undef); } # Event monitor in DOIF FW_detailFn - if ($modules{DOIF}{LOADED} and $modules{DOIF}->{FW_detailFn} and $modules{DOIF}->{FW_detailFn} ne "DOIFtools_eM" and $sn eq "global" and $event =~ "^INITIALIZED\$" ) { + if ($modules{DOIF}{LOADED} and (!$modules{DOIF}->{FW_detailFn} or $modules{DOIF}->{FW_detailFn} and $modules{DOIF}->{FW_detailFn} ne "DOIFtools_eM") and $sn eq "global" and $event =~ "^INITIALIZED\$" ) { readingsBeginUpdate($hash); readingsBulkUpdate($hash,".DOIF_detailFn",$modules{DOIF}->{FW_detailFn}); $modules{DOIF}->{FW_detailFn} = "DOIFtools_eM";