mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
FRITZBOX: added: mac-devices get WLAN-tag
git-svn-id: https://svn.fhem.de/fhem/trunk@10576 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
3b4fa04635
commit
447c9affba
@ -1232,7 +1232,7 @@ sub FRITZBOX_Readout_Run_Web($)
|
||||
my $queryStr = "&radio=configd:settings/WEBRADIO/list(Name)"; # Webradio
|
||||
$queryStr .= "&box_dect=dect:settings/enabled"; # DECT Sender
|
||||
$queryStr .= "&handset=dect:settings/Handset/list(User,Manufacturer,Model,FWVersion)"; # DECT Handsets
|
||||
$queryStr .= "&lanDevice=landevice:settings/landevice/list(ip,name,mac,active)"; # LAN devices
|
||||
$queryStr .= "&lanDevice=landevice:settings/landevice/list(ip,name,mac,active,wlan)"; # LAN devices
|
||||
$queryStr .= "&wlanList=wlan:settings/wlanlist/list(state,is_guest,mac)"; # WLAN devices
|
||||
$queryStr .= "&init=telcfg:settings/Foncontrol"; # Init
|
||||
$queryStr .= "&box_stdDialPort=telcfg:settings/DialPort"; #Dial Port
|
||||
@ -1371,13 +1371,14 @@ sub FRITZBOX_Readout_Run_Web($)
|
||||
foreach ( @{ $result->{lanDevice} } ) {
|
||||
my $dIp = $_->{ip};
|
||||
my $dName = $_->{name};
|
||||
$dName .= " (WLAN)" if $_->{wlan} == 1;
|
||||
FRITZBOX_Readout_Add_Reading $hash, \@roReadings, "fhem->landevice->$dIp", $dName;
|
||||
$landevice{$dIp}=$dName;
|
||||
my $rName = "mac_".$_->{mac};
|
||||
$rName =~ s/:/_/g;
|
||||
# Create a reading if a landevice is connected
|
||||
if ($_->{active} == 1) {
|
||||
FRITZBOX_Readout_Add_Reading $hash, \@roReadings, $rName, $_->{name};
|
||||
FRITZBOX_Readout_Add_Reading $hash, \@roReadings, $rName, $dName;
|
||||
}
|
||||
# if the device is not online anymore, set the mac readings to 'inactive' and delete at next readout
|
||||
elsif (exists $hash->{READINGS}{$rName}) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user