mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
22_HOMEMODE: fix for not checking RESIDENTS events for state before applying state
git-svn-id: https://svn.fhem.de/fhem/trunk@15854 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1551041001
commit
de6e2f2332
@ -1168,10 +1168,9 @@ sub HOMEMODE_RESIDENTS($;$)
|
||||
{
|
||||
foreach (@{$events})
|
||||
{
|
||||
my $m = $_;
|
||||
$m =~ s/.*:\s//;
|
||||
next if (!grep /^$m$/,split /,/,$HOMEMODE_UserModesAll);
|
||||
$mode = $m;
|
||||
next unless ($_ =~ /^state:.(.*)$/ && grep /^$1$/,split /,/,$HOMEMODE_UserModesAll);
|
||||
$mode = $1;
|
||||
Log3 $name,5,"$name: HOMEMODE_RESIDENTS mode: $mode";
|
||||
}
|
||||
}
|
||||
if ($mode && $devtype eq "RESIDENTS")
|
||||
|
Loading…
Reference in New Issue
Block a user