mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
74_Unifi: fixed Reading for newClients
git-svn-id: https://svn.fhem.de/fhem/trunk@19012 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
fce9655038
commit
3976dc7961
@ -1252,13 +1252,14 @@ sub Unifi_SetClientReadings($) {
|
||||
}
|
||||
|
||||
|
||||
if (defined $hash->{unifi}->{connectedClients}->{$clientID}) {
|
||||
readingsBulkUpdate($hash,$clientName,'connected');
|
||||
|
||||
if (defined $hash->{unifi}->{connectedClients}->{$clientID}) {
|
||||
if (! defined ReadingsVal($hash->{NAME},$clientName,undef)){
|
||||
$newClients.=$sep.$clientName;
|
||||
$sep=",";
|
||||
}
|
||||
|
||||
readingsBulkUpdate($hash,$clientName,'connected');
|
||||
|
||||
# altes Standardverhalten kann man auch ohne RegEx-Auswertungen beibehalten
|
||||
if(AttrVal($name,"customClientReadings",$defaultClientReadings) eq $defaultClientReadings){
|
||||
readingsBulkUpdate($hash,$clientName."_hostname",(defined $clientRef->{hostname}) ? $clientRef->{hostname} : (defined $clientRef->{ip}) ? $clientRef->{ip} : 'Unknown');
|
||||
|
Loading…
Reference in New Issue
Block a user