31_Aurora.pm: fixed effect list for new api

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@14962 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2017-08-26 18:10:59 +00:00
parent cd48741af2
commit 4a1968f60c

View File

@ -283,7 +283,7 @@ Aurora_dispatch($$$;$)
InternalTimer(gettimeofday()+1, "Aurora_GetUpdate", $hash, 0); InternalTimer(gettimeofday()+1, "Aurora_GetUpdate", $hash, 0);
} }
} elsif( $param->{type} eq 'effects' ) { } elsif( $param->{type} eq 'effects' ) {
$hash->{helper}{effects} = $json->{list}; $hash->{helper}{effects} = $json->{effectsList};
if( my $effect = $json->{select} ) { if( my $effect = $json->{select} ) {
if( $effect ne $hash->{helper}{effect} ) { readingsSingleUpdate($hash, 'effect', $effect, 1 ) }; if( $effect ne $hash->{helper}{effect} ) { readingsSingleUpdate($hash, 'effect', $effect, 1 ) };
$hash->{helper}{effect} = $effect; $hash->{helper}{effect} = $effect;