mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 08:11:44 +00:00
30_HUEBridge.pm: changed order of createsensor parameters
git-svn-id: https://svn.fhem.de/fhem/trunk@11889 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f9304ea116
commit
e3a06b4a58
@ -469,15 +469,15 @@ HUEBridge_Set($@)
|
||||
return undef;
|
||||
|
||||
} elsif($cmd eq 'createsensor') {
|
||||
return "usage: createsensor <name> <modelid> <swversion> <type> <uniqueid>" if( @args < 5 );
|
||||
return "usage: createsensor <name> <type> <uniqueid> <swversion> <modelid>" if( @args < 5 );
|
||||
|
||||
return "usage: type must be one of: Switch OpenClose Presence Temperature Humidity GenericFlag GenericStatus " if( @args[@args-2] !~ m/Switch|OpenClose|Presence|Temperature|Humidity|GenericFlag|GenericStatus/ );
|
||||
|
||||
my $obj = { 'name' => join( ' ', @args[0..@args-5]),
|
||||
'modelid' => @args[@args-4],
|
||||
'swversion' => @args[@args-3],
|
||||
'type' => "CLIP@args[@args-2]",
|
||||
'uniqueid' => @args[@args-1],
|
||||
'type' => "CLIP@args[@args-4]",
|
||||
'uniqueid' => @args[@args-3],
|
||||
'swversion' => @args[@args-2],
|
||||
'modelid' => @args[@args-1],
|
||||
'manufacturername' => 'FHEM-HUE',
|
||||
};
|
||||
|
||||
@ -1464,7 +1464,7 @@ HUEBridge_Attr($$$)
|
||||
Modifys the given scene in the bridge.</li>
|
||||
<li>scene <id><br>
|
||||
Recalls the scene with the given id.</li>
|
||||
<li>createsensor <name> <modelid> <swversion> <type> <uniqueid><br>
|
||||
<li>createsensor <name> <type> <uniqueid> <swversion> <modelid><br>
|
||||
Creates a new CLIP (IP) sensor in the bridge.</li>
|
||||
<li>deletesensor <id><br>
|
||||
Deletes the given sensor in the bridge and deletes the associated fhem device.</li>
|
||||
|
Loading…
x
Reference in New Issue
Block a user