2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

fhem.pl: delete CHANGED for do_not_notify (Forum #74770)

git-svn-id: https://svn.fhem.de/fhem/trunk@14834 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-08-02 07:20:36 +00:00
parent 7ee8791795
commit 60c3a783eb

View File

@ -3318,7 +3318,12 @@ DoTrigger($$@)
} }
my $max = int(@{$hash->{CHANGED}}); my $max = int(@{$hash->{CHANGED}});
return "" if(defined($attr{$dev}) && defined($attr{$dev}{do_not_notify})); if(AttrVal($dev, "do_not_notify", 0)) {
delete($hash->{CHANGED});
delete($hash->{CHANGETIME});
delete($hash->{CHANGEDWITHSTATE});
return "";
}
my $now = TimeNow(); my $now = TimeNow();
################ ################