mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-23 08:36:24 +00:00
36_ShellyMonitor: TTL fuer Flood & WT wird ueberschrieben
git-svn-id: https://svn.fhem.de/fhem/trunk@23570 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c9da186e6e
commit
48dfac2475
@ -241,6 +241,11 @@ my %DEVID_ATTRS = (
|
|||||||
"SHBDUO-1" => "widgetOverride ct:colorpicker,CT,2700,10,6500"
|
"SHBDUO-1" => "widgetOverride ct:colorpicker,CT,2700,10,6500"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
my %DEVID_TTL_OVERRIDE = (
|
||||||
|
"SHWT-1" => 90000,
|
||||||
|
"SHHT-1" => 90000
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
# SHWT-1 = Shelly Flood, should go to generic
|
# SHWT-1 = Shelly Flood, should go to generic
|
||||||
|
|
||||||
@ -489,13 +494,13 @@ sub ShellyMonitor_DoRead
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ( @devrefs ) {
|
|
||||||
$_->{expires} = time()+$validity;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Header parsed, processing data...
|
# Header parsed, processing data...
|
||||||
my ($devtype, $devid, $devversion) = split (/#/, $global_devid);
|
my ($devtype, $devid, $devversion) = split (/#/, $global_devid);
|
||||||
|
|
||||||
|
foreach ( @devrefs ) {
|
||||||
|
$_->{expires} = time() + ( $DEVID_TTL_OVERRIDE{$devtype} // $validity );
|
||||||
|
}
|
||||||
|
|
||||||
# Handle ignoring of devices
|
# Handle ignoring of devices
|
||||||
my $ignoreRegexp = $hash->{".ignoreDevices"};
|
my $ignoreRegexp = $hash->{".ignoreDevices"};
|
||||||
if ($ignoreRegexp) {
|
if ($ignoreRegexp) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user