WeekdayTimer: can not compute past switching time

Begonnen von ToKa, 08 Dezember 2016, 10:46:21

Vorheriges Thema - Nächstes Thema

ToKa

Hallo zusammen,

seit ein paar Tagen findet sich nach dem Neustart von fhem die nachfolgende Meldung:

2016.12.08 10:35:26.691 3: [KG.hz.ZS.Zirkulationspumpe.tim.wt] can not compute past switching time
2016.12.08 10:35:26.691 1: PERL WARNING: Use of uninitialized value in localtime at fhem.pl line 2998.


Wenn ich mir dann den WeekdayTimer anschaue sehe ich an der fhem Oberfläche

Steuerung Zirkulationspumpe (Woche)
nächste Schaltung: 1970-01-01 01:00:00 off ==> on


Die Konfiguration sieht wie folgt aus:
defmod KG.hz.ZS.Zirkulationspumpe.tim.wt WeekdayTimer KG.hz.ZS.Zirkulationspumpe de !$we|04:30|on !$we|06:00|off !$we|16:30|on !$we|18:00|off
attr KG.hz.ZS.Zirkulationspumpe.tim.wt alias Steuerung Zirkulationspumpe (Woche)
attr KG.hz.ZS.Zirkulationspumpe.tim.wt group Zeitsteuerung Heizung
attr KG.hz.ZS.Zirkulationspumpe.tim.wt room Zentrale Steuerung
attr KG.hz.ZS.Zirkulationspumpe.tim.wt stateFormat nächste Schaltung: nextUpdate currValue ==> nextValue

setstate KG.hz.ZS.Zirkulationspumpe.tim.wt nächste Schaltung: 1970-01-01 01:00:00 off ==> on
setstate KG.hz.ZS.Zirkulationspumpe.tim.wt 2016-12-08 10:32:49 currValue off
setstate KG.hz.ZS.Zirkulationspumpe.tim.wt 2016-12-08 10:35:26 nextUpdate 1970-01-01 01:00:00
setstate KG.hz.ZS.Zirkulationspumpe.tim.wt 2016-12-08 10:32:49 nextValue on
setstate KG.hz.ZS.Zirkulationspumpe.tim.wt 2016-12-08 10:35:26 state active


Wenn ich die Definition neu speichere, wird auch die nächste Schaltzeit wieder korrekt berechnet. Liegt der Fehler in meiner Konfiguration oder an fhem selbst?

Beste Grüße

Torsten
RaspberryPi3 mit RaZberry2 und Conbee II
Fibaro: FGWPE/F-101 Switch & FIBARO System FGWPE/F Wall Plug Gen5, FGSD002 Smoke Sensor
EUROtronic: SPIRIT Wall Radiator Thermostat Valve Control
Shelly2.5 Rollladenaktoren
Zipato Bulb 2, Osram und InnrLight

Beta-User

Hallo Torsten,

meinst Du mit "Neustart von FHEM" einen Neustart des PI?

Mit der Meldung
Zitatnächste Schaltung: 1970-01-01 01:00:00 off ==> on
würde ich darauf tippen, dass beim FHEM-start die Systemzeit noch nicht stimmt.
Taucht hier im Forum immer mal wieder auf, ggf. mal im Bereich Einplatinencomputer suchen, weiteres Stichwort: "Systemd".

Gruß,

Beta User
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: ZigBee2mqtt, MiLight@ESP-GW, BT@OpenMQTTGw | ZWave | SIGNALduino | MapleCUN | RHASSPY
svn: u.a Weekday-&RandomTimer, Twilight,  div. attrTemplate-files, MySensors

ToKa

Hallo BetaUser,

nein kein Neustart des Pi, sondern ein "shutdown restart" von fhem.

Gruß

Torsten
RaspberryPi3 mit RaZberry2 und Conbee II
Fibaro: FGWPE/F-101 Switch & FIBARO System FGWPE/F Wall Plug Gen5, FGSD002 Smoke Sensor
EUROtronic: SPIRIT Wall Radiator Thermostat Valve Control
Shelly2.5 Rollladenaktoren
Zipato Bulb 2, Osram und InnrLight

ToKa

Habe den WeekdayTimer neu angelegt und jetzt ist der Fehler weg...
RaspberryPi3 mit RaZberry2 und Conbee II
Fibaro: FGWPE/F-101 Switch & FIBARO System FGWPE/F Wall Plug Gen5, FGSD002 Smoke Sensor
EUROtronic: SPIRIT Wall Radiator Thermostat Valve Control
Shelly2.5 Rollladenaktoren
Zipato Bulb 2, Osram und InnrLight