mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +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,
|
isDefined => 0,
|
||||||
model => $model,
|
model => $model,
|
||||||
expires => time()+$validity,
|
expires => time()+$validity,
|
||||||
attrs => $DEVID_ATTRS{$shellyCoIoTModel}
|
attrs => $DEVID_ATTRS{$shellyCoIoTModel},
|
||||||
|
mcastName => $shellyCoIoTModel
|
||||||
);
|
);
|
||||||
push @devrefs, \%d;
|
push @devrefs, \%d;
|
||||||
$hash->{".ip2device"}->{$sending_ip} = [ @devrefs ];
|
$hash->{".ip2device"}->{$sending_ip} = [ @devrefs ];
|
||||||
@ -769,6 +770,9 @@ sub ShellyMonitor_detailFn {
|
|||||||
} else {
|
} else {
|
||||||
$nstate .= " $dev->{mode}" if (defined $dev->{mode});
|
$nstate .= " $dev->{mode}" if (defined $dev->{mode});
|
||||||
}
|
}
|
||||||
|
if ($dev->{model} eq "generic" && defined $dev->{mcastName}) {
|
||||||
|
$nstate .= " (" . $dev->{mcastName} . ")";
|
||||||
|
}
|
||||||
if ($dev->{isDefined}) {
|
if ($dev->{isDefined}) {
|
||||||
$nstate .= "</td><td></td></tr>";
|
$nstate .= "</td><td></td></tr>";
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user