mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-13 17:26:34 +00:00
31_HUEDevice.pm: added desired internal
git-svn-id: https://svn.fhem.de/fhem/trunk@11397 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a9c228d44e
commit
f679566a66
@ -640,10 +640,16 @@ HUEDevice_Set($@)
|
||||
HUEDevice_SetParam($name, \%obj, $cmd, $value, $value2);
|
||||
}
|
||||
|
||||
if( %obj && !defined($obj{transitiontime} ) ) {
|
||||
my $transitiontime = AttrVal($name, "transitiontime", undef);
|
||||
if( %obj ) {
|
||||
if( defined($obj{on}) ) {
|
||||
$hash->{desired} = $obj{on}?1:0;
|
||||
}
|
||||
|
||||
$obj{transitiontime} = 0 + $transitiontime if( defined( $transitiontime ) );
|
||||
if( !defined($obj{transitiontime}) ) {
|
||||
my $transitiontime = AttrVal($name, "transitiontime", undef);
|
||||
|
||||
$obj{transitiontime} = 0 + $transitiontime if( defined( $transitiontime ) );
|
||||
}
|
||||
}
|
||||
|
||||
# if( $hash->{helper}->{update_timeout} == -1 ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user