1
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-05-04 22:19:38 +00:00

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

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

View File

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