mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-15 04:20:56 +00:00
98_structure.pm: read STATE if no state present (Forum #43876)
git-svn-id: https://svn.fhem.de/fhem/trunk@9862 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
dda0b2e89c
commit
6fbe6dcc0b
@ -219,6 +219,7 @@ structure_Notify($$)
|
||||
|
||||
} elsif(@value == 2) { # state:value[0] -> value[1]
|
||||
$devstate = ReadingsVal($d, "state", undef);
|
||||
$devstate = $defs{$d}{STATE} if(!defined($devstate));
|
||||
if(defined($devstate) && $devstate =~ m/^$value[0]/){
|
||||
$devstate = $value[1];
|
||||
$i=99999; # RKO: ??
|
||||
@ -248,6 +249,7 @@ structure_Notify($$)
|
||||
|
||||
} else {
|
||||
$devstate = ReadingsVal($d, "state", undef);
|
||||
$devstate = $defs{$d}{STATE} if(!defined($devstate));
|
||||
if(defined($devstate)) {
|
||||
if(!$priority{$devstate} && $behavior eq "relativeKnown") {
|
||||
delete($hash->{INNTFY});
|
||||
|
Loading…
x
Reference in New Issue
Block a user