From 1aaf2d55fe5f96a7b0200a2dfdf986c5e594ebbc Mon Sep 17 00:00:00 2001 From: martinp876 <> Date: Sun, 21 Feb 2021 17:26:32 +0000 Subject: [PATCH] CUL_HM:remove bug in trigLast reading git-svn-id: https://svn.fhem.de/fhem/trunk@23796 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_CUL_HM.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fhem/FHEM/10_CUL_HM.pm b/fhem/FHEM/10_CUL_HM.pm index 61c35e3cf..0edef2c2e 100755 --- a/fhem/FHEM/10_CUL_HM.pm +++ b/fhem/FHEM/10_CUL_HM.pm @@ -7791,9 +7791,8 @@ sub CUL_HM_statCntRfresh($) {# update statistic once a day sub CUL_HM_trigLastEvent($$$$$){#set trigLast for central setting commands my ($dst,$mTp,$p01,$p02,$chn) = @_; - my $name = CUL_HM_id2Name($dst.$chn); - return if (!defined $defs{$name}); - CUL_HM_UpdtReadSingle($defs{$name},"trigLast","fhem:".$p01,1); + my $hash = CUL_HM_id2Hash($dst.$chn); + CUL_HM_UpdtReadSingle($hash,"trigLast","fhem:".$p01,1); } sub CUL_HM_respPendRm($) {#del response related entries in messageing entity