mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
36_ShellyMonitor: Device-Prefix anzeigen
git-svn-id: https://svn.fhem.de/fhem/trunk@23555 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e1100a604c
commit
8a8cdf5a2b
@ -597,7 +597,8 @@ sub ShellyMonitor_DoRead
|
||||
isDefined => 0,
|
||||
model => $model,
|
||||
expires => time()+$validity,
|
||||
attrs => $DEVID_ATTRS{$shellyCoIoTModel}
|
||||
attrs => $DEVID_ATTRS{$shellyCoIoTModel},
|
||||
mcastName => $shellyCoIoTModel
|
||||
);
|
||||
push @devrefs, \%d;
|
||||
$hash->{".ip2device"}->{$sending_ip} = [ @devrefs ];
|
||||
@ -769,6 +770,9 @@ sub ShellyMonitor_detailFn {
|
||||
} else {
|
||||
$nstate .= " $dev->{mode}" if (defined $dev->{mode});
|
||||
}
|
||||
if ($dev->{model} eq "generic" && defined $dev->{mcastName}) {
|
||||
$nstate .= " (" . $dev->{mcastName} . ")";
|
||||
}
|
||||
if ($dev->{isDefined}) {
|
||||
$nstate .= "</td><td></td></tr>";
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user