mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 13:24:56 +00:00
74_Unifi: Fixed multiple client-ids in clients-hash when using controller v3.x
git-svn-id: https://svn.fhem.de/fhem/trunk@9198 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0dacab3435
commit
8b11980629
@ -510,8 +510,8 @@ sub Unifi_GetClients_Receive($) {
|
||||
|
||||
$hash->{unifi}->{connectedClients} = undef;
|
||||
for my $h (@{$data->{data}}) {
|
||||
$hash->{unifi}->{connectedClients}->{$h->{_id}} = 1;
|
||||
$hash->{clients}->{$h->{_id}} = $h;
|
||||
$hash->{unifi}->{connectedClients}->{$h->{user_id}} = 1;
|
||||
$hash->{clients}->{$h->{user_id}} = $h;
|
||||
}
|
||||
}
|
||||
else { Unifi_ReceiveFailure($hash,$data->{meta}); }
|
||||
@ -1261,7 +1261,7 @@ Or you can use the other readings or set and get features to control your unifi-
|
||||
<li><code>set <name> archiveAlerts</code><br>
|
||||
Archive all unarchived Alerts. </li>
|
||||
<br>
|
||||
<li><code>set <name> disconnectClient <all|_id|controllerAlias|hostname|devAlias></code><br>
|
||||
<li><code>set <name> disconnectClient <all|user_id|controllerAlias|hostname|devAlias></code><br>
|
||||
Disconnect one ore all clients. </li>
|
||||
<br>
|
||||
<li><code>set <name> restartAP <all|_id|name|ip></code><br>
|
||||
@ -1279,7 +1279,7 @@ Or you can use the other readings or set and get features to control your unifi-
|
||||
<ul>
|
||||
<code>Note: Some getters are not available if no data is available for them.</code><br>
|
||||
<br>
|
||||
<li><code>get <name> clientData <all|_id|controllerAlias|hostname|devAlias></code><br>
|
||||
<li><code>get <name> clientData <all|user_id|controllerAlias|hostname|devAlias></code><br>
|
||||
Show more details about clients.</li>
|
||||
<br>
|
||||
<li><code>get <name> events</code><br>
|
||||
@ -1293,9 +1293,9 @@ Or you can use the other readings or set and get features to control your unifi-
|
||||
<h4>Attributes</h4>
|
||||
<ul>
|
||||
<li>attr devAlias<br>
|
||||
Can be used to rename device names in the format <code><_id|controllerAlias|hostname>:Aliasname.</code><br>
|
||||
Can be used to rename device names in the format <code><user_id|controllerAlias|hostname>:Aliasname.</code><br>
|
||||
Separate using blank to rename multiple devices.<br>
|
||||
Example (_id):<code> attr unifi devAlias 5537d138e4b033c1832c5c84:iPhone-Claudiu</code><br>
|
||||
Example (user_id):<code> attr unifi devAlias 5537d138e4b033c1832c5c84:iPhone-Claudiu</code><br>
|
||||
Example (controllerAlias):<code> attr unifi devAlias iPhoneControllerAlias:iPhone-Claudiu</code><br>
|
||||
Example (hostname):<code> attr unifi devAlias iphone:iPhone-Claudiu</code><br></li>
|
||||
<br>
|
||||
|
Loading…
x
Reference in New Issue
Block a user