mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +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:
parent
233485fe50
commit
007895013f
@ -119,6 +119,8 @@ readingsGroup_updateDevices($)
|
|||||||
|
|
||||||
$hash->{CONTENT} = \%list;
|
$hash->{CONTENT} = \%list;
|
||||||
$hash->{DEVICES} = \@devices;
|
$hash->{DEVICES} = \@devices;
|
||||||
|
|
||||||
|
$hash->{fhem}->{last_update} = gettimeofday();
|
||||||
}
|
}
|
||||||
|
|
||||||
sub readingsGroup_Define($$)
|
sub readingsGroup_Define($$)
|
||||||
@ -213,6 +215,13 @@ readingsGroup_2html($)
|
|||||||
|
|
||||||
return undef if( !$hash );
|
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 $d = $hash->{NAME};
|
||||||
|
|
||||||
my $show_heading = !AttrVal( $d, "noheading", "0" );
|
my $show_heading = !AttrVal( $d, "noheading", "0" );
|
||||||
|
Loading…
Reference in New Issue
Block a user