2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

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
This commit is contained in:
justme-1968 2013-12-17 11:26:34 +00:00
parent 233485fe50
commit 007895013f

View File

@ -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" );