mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-25 03:44:52 +00:00
70_PylonLowVoltage: internal code change (use random time delay)
git-svn-id: https://svn.fhem.de/fhem/trunk@29459 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d9021d0de5
commit
98b6b1eb3a
@ -1,5 +1,6 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it
|
||||
- change: 70_PylonLowVoltage: internal code change (use random time delay)
|
||||
- feature: 76_SolarForecast: change Attr setupBatteryDev to setupBatteryDev01,
|
||||
new getter valBattery
|
||||
- bugfix: 88_HMCCU: Role STATUS_INDICATOR
|
||||
|
@ -121,6 +121,7 @@ BEGIN {
|
||||
|
||||
# Versions History intern (Versions history by Heiko Maaz)
|
||||
my %vNotesIntern = (
|
||||
"1.2.1" => "29.12.2024 manageUpdate: use random time delay ",
|
||||
"1.2.0" => "05.10.2024 _composeAddr: bugfix of effective battaery addressing ",
|
||||
"1.1.0" => "25.08.2024 manage time shift for active gateway connections of all defined devices ",
|
||||
"1.0.0" => "24.08.2024 implement pylon groups ",
|
||||
@ -527,18 +528,16 @@ sub manageUpdate {
|
||||
InternalTimer ($new, "FHEM::PylonLowVoltage::manageUpdate", $hash, 0); # Wiederholungsintervall
|
||||
|
||||
$hash->{OPMODE} = 'Automatic';
|
||||
$readings->{nextCycletime} = FmtTime($new);
|
||||
$readings->{nextCycletime} = FmtTime ($new);
|
||||
}
|
||||
|
||||
delete $hash->{HELPER}{BKRUNNING} if(defined $hash->{HELPER}{BKRUNNING} && $hash->{HELPER}{BKRUNNING}{pid} =~ /DEAD/xs);
|
||||
|
||||
for my $dev ( devspec2array ('TYPE=PylonLowVoltage') ) {
|
||||
if (defined $defs{$dev}->{HELPER}{BKRUNNING} || defined $defs{$dev}->{HELPER}{GWSESSION}) {
|
||||
$hash->{POSTPONED} += 1;
|
||||
|
||||
RemoveInternalTimer ($hash);
|
||||
$new = gettimeofday() + 1;
|
||||
InternalTimer (gettimeofday() + 1, "FHEM::PylonLowVoltage::manageUpdate", $hash, 0);
|
||||
$new = gettimeofday() + rand (6);
|
||||
InternalTimer ($new, "FHEM::PylonLowVoltage::manageUpdate", $hash, 0);
|
||||
|
||||
$readings->{nextCycletime} = FmtTime ($new);
|
||||
$readings->{state} = "cycle postponed due to active gateway connection of $dev";
|
||||
|
Loading…
x
Reference in New Issue
Block a user