mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-26 16:19:32 +00:00
31_HUEDevice.pm: possible fix for lightify plug
git-svn-id: https://svn.fhem.de/fhem/trunk@11368 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f55e1dc1c8
commit
90dc6b3d2a
@ -336,7 +336,7 @@ HUEDevice_SetParam($$@)
|
||||
|
||||
if($cmd eq 'on') {
|
||||
$obj->{'on'} = JSON::true;
|
||||
$obj->{'bri'} = 254 if( $name && ReadingsVal($name,"bri","0") eq 0 );
|
||||
$obj->{'bri'} = 254 if( $name && ReadingsVal($name,"bri","0") eq 0 && AttrVal($name, 'subType', 'dimmer') ne 'switch' );
|
||||
$obj->{'transitiontime'} = $value * 10 if( defined($value) );
|
||||
|
||||
} elsif($cmd eq 'off') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user