mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
structure: more details for debugging (Forum #25833)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6349 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2e64afd1c8
commit
b92e5be9e0
@ -127,7 +127,7 @@ sub structure_Notify($$)
|
|||||||
$s = "" if(!defined($s));
|
$s = "" if(!defined($s));
|
||||||
if($s =~ m/^RENAMED ([^ ]*) ([^ ]*)$/) {
|
if($s =~ m/^RENAMED ([^ ]*) ([^ ]*)$/) {
|
||||||
my ($old, $new) = ($1, $2);
|
my ($old, $new) = ($1, $2);
|
||||||
if( defined($hash->{CONTENT}{$old}) ) {
|
if( exists($hash->{CONTENT}{$old}) ) {
|
||||||
|
|
||||||
$hash->{DEF} =~ s/(\s+)$old(\s*)/$1$new$2/;
|
$hash->{DEF} =~ s/(\s+)$old(\s*)/$1$new$2/;
|
||||||
|
|
||||||
@ -137,7 +137,7 @@ sub structure_Notify($$)
|
|||||||
} elsif($s =~ m/^DELETED ([^ ]*)$/) {
|
} elsif($s =~ m/^DELETED ([^ ]*)$/) {
|
||||||
my ($name) = ($1);
|
my ($name) = ($1);
|
||||||
|
|
||||||
if( defined($hash->{CONTENT}{$name}) ) {
|
if( exists($hash->{CONTENT}{$name}) ) {
|
||||||
|
|
||||||
$hash->{DEF} =~ s/(\s+)$name(\s*)/ /;
|
$hash->{DEF} =~ s/(\s+)$name(\s*)/ /;
|
||||||
$hash->{DEF} =~ s/^ //;
|
$hash->{DEF} =~ s/^ //;
|
||||||
@ -153,7 +153,7 @@ sub structure_Notify($$)
|
|||||||
|
|
||||||
#pruefen ob Devices welches das notify ausgeloest hat Mitglied dieser
|
#pruefen ob Devices welches das notify ausgeloest hat Mitglied dieser
|
||||||
# Struktur ist
|
# Struktur ist
|
||||||
return "" if (!$hash->{CONTENT}->{$dev->{NAME}});
|
return "" if (! exists $hash->{CONTENT}->{$dev->{NAME}});
|
||||||
|
|
||||||
# lade das Verhalten, Standard ist absolute
|
# lade das Verhalten, Standard ist absolute
|
||||||
my $behavior = AttrVal($me, "clientstate_behavior", "absolute");
|
my $behavior = AttrVal($me, "clientstate_behavior", "absolute");
|
||||||
@ -236,6 +236,7 @@ sub structure_Notify($$)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$hash->{CONTENT}{$d} = $devstate;
|
||||||
}
|
}
|
||||||
|
|
||||||
my $newState = "undefined";
|
my $newState = "undefined";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user