From 007895013ffea2fd0191a55eec28c61756e36e52 Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Tue, 17 Dec 2013 11:26:34 +0000 Subject: [PATCH] force regualar updateDevices for readingsGroups with devices selected by internal values git-svn-id: https://svn.fhem.de/fhem/trunk@4408 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/33_readingsGroup.pm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/fhem/FHEM/33_readingsGroup.pm b/fhem/FHEM/33_readingsGroup.pm index 452df19bc..b037ef8b1 100644 --- a/fhem/FHEM/33_readingsGroup.pm +++ b/fhem/FHEM/33_readingsGroup.pm @@ -119,6 +119,8 @@ readingsGroup_updateDevices($) $hash->{CONTENT} = \%list; $hash->{DEVICES} = \@devices; + + $hash->{fhem}->{last_update} = gettimeofday(); } sub readingsGroup_Define($$) @@ -213,6 +215,13 @@ readingsGroup_2html($) return undef if( !$hash ); + if( $hash->{DEF} =~ m/=/ ) { + if( !$hash->{fhem}->{last_timeout} + || gettimeofday() - $hash->{fhem}->{last_timeout} > 600 ) { + readingsGroup_updateDevices($hash); + } + } + my $d = $hash->{NAME}; my $show_heading = !AttrVal( $d, "noheading", "0" );