2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-22 20:24:36 +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:
justme-1968 2016-08-04 08:00:39 +00:00
parent f9304ea116
commit e3a06b4a58

View File

@ -469,15 +469,15 @@ HUEBridge_Set($@)
return undef; return undef;
} elsif($cmd eq 'createsensor') { } 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/ ); 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]), my $obj = { 'name' => join( ' ', @args[0..@args-5]),
'modelid' => @args[@args-4], 'type' => "CLIP@args[@args-4]",
'swversion' => @args[@args-3], 'uniqueid' => @args[@args-3],
'type' => "CLIP@args[@args-2]", 'swversion' => @args[@args-2],
'uniqueid' => @args[@args-1], 'modelid' => @args[@args-1],
'manufacturername' => 'FHEM-HUE', 'manufacturername' => 'FHEM-HUE',
}; };
@ -1464,7 +1464,7 @@ HUEBridge_Attr($$$)
Modifys the given scene in the bridge.</li> Modifys the given scene in the bridge.</li>
<li>scene &lt;id&gt;<br> <li>scene &lt;id&gt;<br>
Recalls the scene with the given id.</li> Recalls the scene with the given id.</li>
<li>createsensor &lt;name&gt; &lt;modelid&gt; &lt;swversion&gt; &lt;type&gt; &lt;uniqueid&gt;<br> <li>createsensor &lt;name&gt; &lt;type&gt; &lt;uniqueid&gt; &lt;swversion&gt; &lt;modelid&gt;<br>
Creates a new CLIP (IP) sensor in the bridge.</li> Creates a new CLIP (IP) sensor in the bridge.</li>
<li>deletesensor &lt;id&gt;<br> <li>deletesensor &lt;id&gt;<br>
Deletes the given sensor in the bridge and deletes the associated fhem device.</li> Deletes the given sensor in the bridge and deletes the associated fhem device.</li>