diff --git a/fhem/CHANGED b/fhem/CHANGED index 5b20ea514..51f83722e 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. + - feature: FB_CALLMONITOR: new set command rereadCache - feature: SYSMON: new reading: cpu_core_count - feature: SYSMON: Allows to suppress reading certain information. - change: 14_CUL_TCM97001: Add support for ABS700, NC_WS, GT-WT-02 and AURIOL sensors diff --git a/fhem/FHEM/72_FB_CALLMONITOR.pm b/fhem/FHEM/72_FB_CALLMONITOR.pm index 02be96f92..f832f2312 100755 --- a/fhem/FHEM/72_FB_CALLMONITOR.pm +++ b/fhem/FHEM/72_FB_CALLMONITOR.pm @@ -158,7 +158,7 @@ FB_CALLMONITOR_Get($@) return "argument missing" if(int(@arguments) < 2); - if($arguments[1] eq "search") + if($arguments[1] eq "search" and int(@arguments) == 3) { return FB_CALLMONITOR_reverseSearch($hash, $arguments[2]); } @@ -238,6 +238,7 @@ FB_CALLMONITOR_Set($@) my @sets = (); push @sets, "rereadPhonebook" if(defined($hash->{helper}{PHONEBOOK}) or AttrVal($name, "reverse-search" , "") =~ /(all|phonebook|internal)/); + push @sets, "rereadCache" if(defined(AttrVal($name, "reverse-search-cache-file" , undef))); push @sets, "password" if($hash->{helper}{PWD_NEEDED}); $usage = "Unknown argument ".$a[1].", choose one of ".join(" ", @sets) if(scalar @sets > 0); @@ -247,6 +248,11 @@ FB_CALLMONITOR_Set($@) FB_CALLMONITOR_readPhonebook($hash); return undef; } + elsif($a[1] eq "rereadCache") + { + FB_CALLMONITOR_loadCacheFile($hash); + return undef; + } elsif($a[1] eq "password") { return FB_CALLMONITOR_storePassword($hash, $a[2]) if($hash->{helper}{PWD_NEEDED}); @@ -955,6 +961,10 @@ sub FB_CALLMONITOR_loadCacheFile($;$) Log3 $name, 3, "FB_CALLMONITOR ($name) - could not open cache file: $err"; } } + else + { + Log3 $name, 3, "FB_CALLMONITOR ($name) - unable to access cache file: $file"; + } } ##################################### @@ -1338,6 +1348,7 @@ sub FB_CALLMONITOR_readPassword($;$) Set