2
0
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:
justme-1968 2016-05-02 19:38:56 +00:00
parent f55e1dc1c8
commit 90dc6b3d2a

View File

@ -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') {