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.
|
# 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
|
# 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,
|
- feature: 76_SolarForecast: change Attr setupBatteryDev to setupBatteryDev01,
|
||||||
new getter valBattery
|
new getter valBattery
|
||||||
- bugfix: 88_HMCCU: Role STATUS_INDICATOR
|
- bugfix: 88_HMCCU: Role STATUS_INDICATOR
|
||||||
|
@ -121,6 +121,7 @@ BEGIN {
|
|||||||
|
|
||||||
# Versions History intern (Versions history by Heiko Maaz)
|
# Versions History intern (Versions history by Heiko Maaz)
|
||||||
my %vNotesIntern = (
|
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.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.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 ",
|
"1.0.0" => "24.08.2024 implement pylon groups ",
|
||||||
@ -527,18 +528,16 @@ sub manageUpdate {
|
|||||||
InternalTimer ($new, "FHEM::PylonLowVoltage::manageUpdate", $hash, 0); # Wiederholungsintervall
|
InternalTimer ($new, "FHEM::PylonLowVoltage::manageUpdate", $hash, 0); # Wiederholungsintervall
|
||||||
|
|
||||||
$hash->{OPMODE} = 'Automatic';
|
$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);
|
delete $hash->{HELPER}{BKRUNNING} if(defined $hash->{HELPER}{BKRUNNING} && $hash->{HELPER}{BKRUNNING}{pid} =~ /DEAD/xs);
|
||||||
|
|
||||||
for my $dev ( devspec2array ('TYPE=PylonLowVoltage') ) {
|
for my $dev ( devspec2array ('TYPE=PylonLowVoltage') ) {
|
||||||
if (defined $defs{$dev}->{HELPER}{BKRUNNING} || defined $defs{$dev}->{HELPER}{GWSESSION}) {
|
if (defined $defs{$dev}->{HELPER}{BKRUNNING} || defined $defs{$dev}->{HELPER}{GWSESSION}) {
|
||||||
$hash->{POSTPONED} += 1;
|
|
||||||
|
|
||||||
RemoveInternalTimer ($hash);
|
RemoveInternalTimer ($hash);
|
||||||
$new = gettimeofday() + 1;
|
$new = gettimeofday() + rand (6);
|
||||||
InternalTimer (gettimeofday() + 1, "FHEM::PylonLowVoltage::manageUpdate", $hash, 0);
|
InternalTimer ($new, "FHEM::PylonLowVoltage::manageUpdate", $hash, 0);
|
||||||
|
|
||||||
$readings->{nextCycletime} = FmtTime ($new);
|
$readings->{nextCycletime} = FmtTime ($new);
|
||||||
$readings->{state} = "cycle postponed due to active gateway connection of $dev";
|
$readings->{state} = "cycle postponed due to active gateway connection of $dev";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user