From 75ee8464d81d40b94541848a5391318c5fbec632 Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Mon, 2 Sep 2013 13:54:50 +0000 Subject: [PATCH] update device list on global REREADCFG git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3839 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/33_readingsGroup.pm | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/FHEM/33_readingsGroup.pm b/FHEM/33_readingsGroup.pm index 63af9643c..1bec9e6eb 100644 --- a/FHEM/33_readingsGroup.pm +++ b/FHEM/33_readingsGroup.pm @@ -290,7 +290,7 @@ readingsGroup_2html($) } $ret .= ""; $ret .= ""; - $ret .= "
"; + #$ret .= "
"; return $ret; } @@ -312,6 +312,10 @@ readingsGroup_Notify($$) readingsGroup_updateDevices($hash); return undef; } + elsif( grep(m/^REREADCFG$/, @{$dev->{CHANGED}}) ) { + readingsGroup_updateDevices($hash); + return undef; + } return if($dev->{NAME} eq $name); @@ -401,9 +405,15 @@ sub readingsGroup_Set($@) { my ($hash, $name, $cmd, $param, @a) = @_; - my $ret = ""; - return undef; + my $list = "refresh:noArgs"; + + if( $cmd eq "refresh" ) { + readingsGroup_updateDevices($hash); + return undef; + } + + return "Unknown argument $cmd, choose one of $list"; } sub