mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
fix: disable beim FHEM-start beachten
git-svn-id: https://svn.fhem.de/fhem/trunk@8890 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b7a92e948f
commit
4546af94cf
@ -203,7 +203,7 @@ SYSMON_Define($$)
|
|||||||
|
|
||||||
#$hash->{DEF_TIME} = time() unless defined($hash->{DEF_TIME});
|
#$hash->{DEF_TIME} = time() unless defined($hash->{DEF_TIME});
|
||||||
|
|
||||||
SYSMON_updateCurrentReadingsMap($hash);
|
#SYSMON_updateCurrentReadingsMap($hash);
|
||||||
|
|
||||||
RemoveInternalTimer($hash);
|
RemoveInternalTimer($hash);
|
||||||
InternalTimer(gettimeofday()+$hash->{INTERVAL_BASE}, "SYSMON_Update", $hash, 0);
|
InternalTimer(gettimeofday()+$hash->{INTERVAL_BASE}, "SYSMON_Update", $hash, 0);
|
||||||
@ -242,6 +242,11 @@ sub
|
|||||||
SYSMON_updateCurrentReadingsMap($) {
|
SYSMON_updateCurrentReadingsMap($) {
|
||||||
my ($hash) = @_;
|
my ($hash) = @_;
|
||||||
my $name = $hash->{NAME};
|
my $name = $hash->{NAME};
|
||||||
|
|
||||||
|
if( AttrVal($name, "disable", "") eq "1" ) {
|
||||||
|
return undef;
|
||||||
|
}
|
||||||
|
|
||||||
my $rMap;
|
my $rMap;
|
||||||
|
|
||||||
# Map aktueller Namen erstellen
|
# Map aktueller Namen erstellen
|
||||||
|
Loading…
x
Reference in New Issue
Block a user