mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
30_HUEBridge.pm: use new modifyscene api for firmware versions >1.11
git-svn-id: https://svn.fhem.de/fhem/trunk@16173 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bba7e3ffaa
commit
4a35503b21
@ -632,7 +632,11 @@ HUEBridge_Set($@)
|
|||||||
HUEDevice_SetParam(undef, \%obj, $cmd, $value, $value2);
|
HUEDevice_SetParam(undef, \%obj, $cmd, $value, $value2);
|
||||||
}
|
}
|
||||||
|
|
||||||
my $result = HUEBridge_Call($hash, undef, "scenes/$arg/lights/$light/state", \%obj, 'PUT');
|
my $result;
|
||||||
|
if( $hash->{helper}{apiversion} && $hash->{helper}{apiversion} >= (1<<16) + (11<<8) ) {
|
||||||
|
$result = HUEBridge_Call($hash, undef, "scenes/$arg/lights/$light/state", \%obj, 'PUT');
|
||||||
|
else
|
||||||
|
$result = HUEBridge_Call($hash, undef, "scenes/$arg/lightstates/$light", \%obj, 'PUT');
|
||||||
return $result->{error}{description} if( $result->{error} );
|
return $result->{error}{description} if( $result->{error} );
|
||||||
|
|
||||||
return undef;
|
return undef;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user