2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 07:19:24 +00:00

31_HUEDevice.pm: don't greate rgb reading vor switch & dimmer devices

git-svn-id: https://svn.fhem.de/fhem/trunk@11355 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2016-04-30 23:16:18 +00:00
parent 0ebe3d6919
commit d8de18b49f

View File

@ -1154,9 +1154,11 @@ HUEDevice_Parse($$)
readingsEndUpdate($hash,1); readingsEndUpdate($hash,1);
if( defined($colormode) ) {
my $rgb = CommandGet("","$name rgb"); my $rgb = CommandGet("","$name rgb");
if( $rgb ne $hash->{helper}{rgb} ) { readingsSingleUpdate($hash,"rgb", $rgb,1); }; if( $rgb ne $hash->{helper}{rgb} ) { readingsSingleUpdate($hash,"rgb", $rgb,1); };
$hash->{helper}{rgb} = $rgb; $hash->{helper}{rgb} = $rgb;
}
$hash->{helper}->{update_timeout} = -1; $hash->{helper}->{update_timeout} = -1;
RemoveInternalTimer($hash); RemoveInternalTimer($hash);