98_structure.pm: set state (Forum #46868)

git-svn-id: https://svn.fhem.de/fhem/trunk@10382 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2016-01-06 16:21:13 +00:00
parent a58a2ee1a7
commit edb7eea8a9

View File

@@ -363,7 +363,7 @@ structure_Set($@)
my $filter;
if($list[1] ne "?") {
$hash->{STATE} = join(" ", @list[1..@list-1]);
readingsSingleUpdate($hash, "state", @list[1..@list-1], 1);
if( $hash->{STATE} =~ /^\[(FILTER=.*)]/ ) {
delete($hash->{INSET}); # Experimental, Forum #35382