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

31_HUEDevice.pm: possible fix for lightify plug

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11368 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2016-05-02 19:38:56 +00:00
parent d2c1e4e5a7
commit da9ac741cb

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