Problem mit Weekdaytimer

Begonnen von Kai-Alfonso, 22 März 2016, 11:53:24

Vorheriges Thema - Nächstes Thema

Kai-Alfonso

Moin,

ich habe einen Weekdaytimer definiert, der meinen Homeserver herunterfährt und neu startet. Am Wochenende geht das auch problemlos (dort wird er um 01:00 heruntergefahren), nur in der Woche geht das nicht (dort ist 0:00 eingestellt). Der Start Befehlt geht immer, egal ob am WE oder in der Woche

Weiß jemand, wo das Problem ist? Im Logfile steht auch nicht, das er es ausgeführt hat um 0 Uhr.

Internals:
   COMMAND
   CONDITION
   DEF        MicroServer $we|08:00|Start $we|01:00|Stop !$we|07:00|Start !$we|00:00|Stop
   DEVICE     MicroServer
   GlobalDaylistSpec
   LANGUAGE   de
   NAME       MicroServer_ZeitschaltUhr
   NR         194
   Profil 0: Sonntag 01:00:00 Stop, 08:00:00 Start
   Profil 1: Montag 00:00:00 Stop, 07:00:00 Start
   Profil 2: Dienstag 00:00:00 Stop, 07:00:00 Start
   Profil 3: Mittwoch 00:00:00 Stop, 07:00:00 Start
   Profil 4: Donnerstag 00:00:00 Stop, 07:00:00 Start
   Profil 5: Freitag 00:00:00 Stop, 07:00:00 Start
   Profil 6: Samstag 01:00:00 Stop, 08:00:00 Start
   Profil 7: Wochenende 01:00:00 Stop, 08:00:00 Start
   Profil 8: Werktags 00:00:00 Stop, 07:00:00 Start
   STATE      Start
   STILLDONETIME 0
   TYPE       WeekdayTimer
   Readings:
     2016-03-21 08:00:00   currValue       Start
     2016-03-16 20:22:28   disabled        0
     2016-03-21 08:00:00   nextUpdate      2016-03-22 00:00:00
     2016-03-21 08:00:00   nextValue       Stop
     2016-03-21 07:00:00   state           Start
   SWITCHINGTIMES:
     $we|08:00|Start
     $we|01:00|Stop
     !$we|07:00|Start
     !$we|00:00|Stop
   Timer:
     Microserver_zeitschaltuhr_1:
       HASH       MicroServer_ZeitschaltUhr
       MODIFIER   1
       NAME       MicroServer_ZeitschaltUhr_1
     Microserver_zeitschaltuhr_2:
       HASH       MicroServer_ZeitschaltUhr
       MODIFIER   2
       NAME       MicroServer_ZeitschaltUhr_2
     Microserver_zeitschaltuhr_3:
       HASH       MicroServer_ZeitschaltUhr
       MODIFIER   3
       NAME       MicroServer_ZeitschaltUhr_3
     Microserver_zeitschaltuhr_settimerofday:
       HASH       MicroServer_ZeitschaltUhr
       MODIFIER   SetTimerOfDay
       NAME       MicroServer_ZeitschaltUhr_SetTimerOfDay
       SETTIMERATMIDNIGHT 1
   Daynumber:
     !$we       8
     $we        7
     di         2
     do         4
     fr         5
     mi         3
     mo         1
     sa         6
     so         0
   Helper:
     daysRegExp (so|mo|di|mi|do|fr|sa|\$we|\!\$we)
     daysRegExpMessage (so|mo|di|mi|do|fr|sa|$we|!$we)
     Switchingtime:
       0:
         01:00:00   Stop
         08:00:00   Start
       1:
         00:00:00   Stop
         07:00:00   Start
       2:
         00:00:00   Stop
         07:00:00   Start
       3:
         00:00:00   Stop
         07:00:00   Start
       4:
         00:00:00   Stop
         07:00:00   Start
       5:
         00:00:00   Stop
         07:00:00   Start
       6:
         01:00:00   Stop
         08:00:00   Start
       7:
         01:00:00   Stop
         08:00:00   Start
       8:
         00:00:00   Stop
         07:00:00   Start
   Longdays:
     de:
       Sonntag
       Montag
       Dienstag
       Mittwoch
       Donnerstag
       Freitag
       Samstag
       Wochenende
       Werktags
     en:
       Sunday
       Monday
       Tuesday
       Wednesday
       Thursday
       Friday
       Saturday
       weekend
       weekdays
     fr:
       Dimanche
       Lundi
       Mardi
       Mercredi
       Jeudi
       Vendredi
       Samedi
       weekend
       jours de la semaine
   Profil:
     1:
       EPOCH      1458543600
       PARA       Start
       TIME       08:00
       TAGE:
         7
     2:
       EPOCH      1458518400
       PARA       Stop
       TIME       01:00
       TAGE:
         7
     3:
       EPOCH      1458540000
       PARA       Start
       TIME       07:00
       TAGE:
         8
     4:
       EPOCH      1458514800
       PARA       Stop
       TIME       00:00
       TAGE:
         8
   Profile_idx:
     0:
       01:00:00   2
       08:00:00   1
     1:
       00:00:00   4
       07:00:00   3
     2:
       00:00:00   4
       07:00:00   3
     3:
       00:00:00   4
       07:00:00   3
     4:
       00:00:00   4
       07:00:00   3
     5:
       00:00:00   4
       07:00:00   3
     6:
       01:00:00   2
       08:00:00   1
     7:
       01:00:00   2
       08:00:00   1
     8:
       00:00:00   4
       07:00:00   3
   Shortdays:
     de:
       so
       mo
       di
       mi
       do
       fr
       sa
       $we
       !$we
     en:
       su
       mo
       tu
       we
       th
       fr
       sa
       $we
       !$we
     fr:
       di
       lu
       ma
       me
       je
       ve
       sa
       $we
       !$we
Attributes:
   disable    0
   room       Zeitpläne
Raspi2|nanoCul433|nanoCul868|CCU2
Energie-USBZähler|homebrew HM Devices
DBLog|DBRep|Homematic|Baumarktsteckdosen
Hue|Webcams mit DS-Station (Synology)|Bewegungsmelder|Rollladen|Schalter (IT|HM)

Dietmar63

Stell mal eine Minute nach Mitternacht ein. Kann mich im Moment nicht kümmern. Mit verbose 5 kannst du prüfen was passiert
Gruß Dietmar
FB7390, CUL, 2 FHT, FS20
modules: 98_WOL.pm, 98_Heating_Control.pm,   98_WeekdayTimer.pm, 98_RandomTimer.pm, 59_Twilight.pm

Kai-Alfonso

Zitat von: Dietmar63 am 22 März 2016, 16:55:03
Stell mal eine Minute nach Mitternacht ein. Kann mich im Moment nicht kümmern. Mit verbose 5 kannst du prüfen was passiert


Hallo Dietmar,

mache ich und meld mich morgen dann mit den Ergebnissen.

Vielen Dank

Gruß

Kai
Raspi2|nanoCul433|nanoCul868|CCU2
Energie-USBZähler|homebrew HM Devices
DBLog|DBRep|Homematic|Baumarktsteckdosen
Hue|Webcams mit DS-Station (Synology)|Bewegungsmelder|Rollladen|Schalter (IT|HM)

Kai-Alfonso

Moin,


so, habs jetzt mal getestet. Nur die Ausführungszeit von 0:00 auf 0:01 geändert und schon läuft es, wie es soll. Ist es evtl ein Bug, das es um 0:00 nicht geht?

Logeinträge mit Verbose 5

2016.03.23 01:00:00 5: [MicroServer_ZeitschaltUhr] result of condition:0
2016.03.23 01:00:00 5: [MicroServer_ZeitschaltUhr] condition: {my $days={};;map{$days->{$_}=1}();;;;( 1 && (defined $days->{$wday} ||  $we))}
2016.03.23 01:00:00 4: [MicroServer_ZeitschaltUhr] condition: - Tage:7
2016.03.23 01:00:00 5: [MicroServer_ZeitschaltUhr] list of window sensors found: 'MicroServer_ZeitschaltUhr'
2016.03.23 01:00:00 5: [MicroServer_ZeitschaltUhr] result of delayedExecutionCond:0
2016.03.23 01:00:00 5: [MicroServer_ZeitschaltUhr] delayedExecutionCond:0
2016.03.23 00:01:00 2: MicroServer.aus.DOIF: {system "/opt/fhem/scripts/microserver.stop&"}: -1
2016.03.23 00:01:00 4: [MicroServer_ZeitschaltUhr] command: 'set $NAME  $EVENT' executed with %EVENT=>Stop,%NAME=>MicroServer
2016.03.23 00:01:00 4: [MicroServer_ZeitschaltUhr] aktParam: newParam:Stop - is  not disabled
2016.03.23 00:01:00 4: [MicroServer_ZeitschaltUhr] device type dummy: recognized, setModifier:
2016.03.23 00:01:00 4: [MicroServer_ZeitschaltUhr] Update   - timer seems to be active today: 8|00:01|Stop
2016.03.23 00:01:00 5: [MicroServer_ZeitschaltUhr] result of condition:1
2016.03.23 00:01:00 5: [MicroServer_ZeitschaltUhr] condition: {my $days={};;map{$days->{$_}=1}();;;;( 1 && (defined $days->{$wday} || !$we))}
2016.03.23 00:01:00 4: [MicroServer_ZeitschaltUhr] condition: - Tage:8
2016.03.23 00:01:00 5: [MicroServer_ZeitschaltUhr] list of window sensors found: 'MicroServer_ZeitschaltUhr'
2016.03.23 00:01:00 5: [MicroServer_ZeitschaltUhr] result of delayedExecutionCond:0
2016.03.23 00:01:00 5: [MicroServer_ZeitschaltUhr] delayedExecutionCond:0
2016.03.23 00:00:05 5: [MicroServer_ZeitschaltUhr] setting  Timer: MicroServer_ZeitschaltUhr_SetTimerOfDay 2016-03-24 00:00:05
2016.03.23 00:00:05 5: [MicroServer_ZeitschaltUhr] removing Timer: MicroServer_ZeitschaltUhr_SetTimerOfDay
2016.03.23 00:00:05 5: [MicroServer_ZeitschaltUhr] setting  Timer: MicroServer_ZeitschaltUhr_4 2016-03-23 00:01:00
2016.03.23 00:00:05 4: [MicroServer_ZeitschaltUhr] setTimer - timer seems to be active today: 8|00:01|Stop
2016.03.23 00:00:05 5: [MicroServer_ZeitschaltUhr] result of condition:1
2016.03.23 00:00:05 5: [MicroServer_ZeitschaltUhr] condition: {my $days={};;map{$days->{$_}=1}();;;;( 1 && (defined $days->{$wday} || !$we))}
2016.03.23 00:00:05 4: [MicroServer_ZeitschaltUhr] condition: - Tage:8
2016.03.23 00:00:05 5: [MicroServer_ZeitschaltUhr] setting  Timer: MicroServer_ZeitschaltUhr_3 2016-03-23 07:00:00
2016.03.23 00:00:05 4: [MicroServer_ZeitschaltUhr] setTimer - timer seems to be active today: 8|07:00|Start
2016.03.23 00:00:05 5: [MicroServer_ZeitschaltUhr] result of condition:1
2016.03.23 00:00:05 5: [MicroServer_ZeitschaltUhr] condition: {my $days={};;map{$days->{$_}=1}();;;;( 1 && (defined $days->{$wday} || !$we))}
2016.03.23 00:00:05 4: [MicroServer_ZeitschaltUhr] condition: - Tage:8
2016.03.23 00:00:05 5: [MicroServer_ZeitschaltUhr] setting  Timer: MicroServer_ZeitschaltUhr_2 2016-03-23 01:00:00
2016.03.23 00:00:05 4: [MicroServer_ZeitschaltUhr] setTimer - timer seems to be NOT active today: 7|01:00|Stop
2016.03.23 00:00:05 5: [MicroServer_ZeitschaltUhr] result of condition:0
2016.03.23 00:00:05 5: [MicroServer_ZeitschaltUhr] condition: {my $days={};;map{$days->{$_}=1}();;;;( 1 && (defined $days->{$wday} ||  $we))}
2016.03.23 00:00:05 4: [MicroServer_ZeitschaltUhr] condition: - Tage:7
2016.03.23 00:00:05 5: [MicroServer_ZeitschaltUhr] setting  Timer: MicroServer_ZeitschaltUhr_1 2016-03-23 08:00:00
2016.03.23 00:00:05 4: [MicroServer_ZeitschaltUhr] setTimer - timer seems to be NOT active today: 7|08:00|Start
2016.03.23 00:00:05 5: [MicroServer_ZeitschaltUhr] result of condition:0
2016.03.23 00:00:05 5: [MicroServer_ZeitschaltUhr] condition: {my $days={};;map{$days->{$_}=1}();;;;( 1 && (defined $days->{$wday} ||  $we))}
2016.03.23 00:00:05 4: [MicroServer_ZeitschaltUhr] condition: - Tage:7
2016.03.23 00:00:05 4: [MicroServer_ZeitschaltUhr] device type dummy: recognized, setModifier:
2016.03.23 00:00:05 4: [MicroServer_ZeitschaltUhr] 00:01:00 Stop, 07:00:00 Start (Profil 8: Werktags)
2016.03.23 00:00:05 4: [MicroServer_ZeitschaltUhr] 01:00:00 Stop, 08:00:00 Start (Profil 7: Wochenende)
2016.03.23 00:00:05 4: [MicroServer_ZeitschaltUhr] 01:00:00 Stop, 08:00:00 Start (Profil 6: Samstag)
2016.03.23 00:00:05 4: [MicroServer_ZeitschaltUhr] 00:01:00 Stop, 07:00:00 Start (Profil 5: Freitag)
2016.03.23 00:00:05 4: [MicroServer_ZeitschaltUhr] 00:01:00 Stop, 07:00:00 Start (Profil 4: Donnerstag)
2016.03.23 00:00:05 4: [MicroServer_ZeitschaltUhr] 00:01:00 Stop, 07:00:00 Start (Profil 3: Mittwoch)
2016.03.23 00:00:05 4: [MicroServer_ZeitschaltUhr] 00:01:00 Stop, 07:00:00 Start (Profil 2: Dienstag)
2016.03.23 00:00:05 4: [MicroServer_ZeitschaltUhr] 00:01:00 Stop, 07:00:00 Start (Profil 1: Montag)
2016.03.23 00:00:05 4: [MicroServer_ZeitschaltUhr] 01:00:00 Stop, 08:00:00 Start (Profil 0: Sonntag)
2016.03.23 00:00:05 4: [MicroServer_ZeitschaltUhr] 05:50:49 19:23:19 Mittwoch
Raspi2|nanoCul433|nanoCul868|CCU2
Energie-USBZähler|homebrew HM Devices
DBLog|DBRep|Homematic|Baumarktsteckdosen
Hue|Webcams mit DS-Station (Synology)|Bewegungsmelder|Rollladen|Schalter (IT|HM)

marvin78

Das sieht so aus ;)

Aber wie Dietmar63 schon sagte, ist er aktuell nicht für Änderungen verfügbar. So lange brauchst du den Workaround.

Kai-Alfonso

Zitat von: marvin78 am 23 März 2016, 12:02:22
Das sieht so aus ;)

Aber wie Dietmar63 schon sagte, ist er aktuell nicht für Änderungen verfügbar. So lange brauchst du den Workaround.

Das ist kein Problem für mich, mit dem Workaround kann ich gut leben. Dachte nur,das ich was falsch gemacht hatte.
Raspi2|nanoCul433|nanoCul868|CCU2
Energie-USBZähler|homebrew HM Devices
DBLog|DBRep|Homematic|Baumarktsteckdosen
Hue|Webcams mit DS-Station (Synology)|Bewegungsmelder|Rollladen|Schalter (IT|HM)

Dietmar63

Ab Anfang April kümmere ich mich wieder darum
Gruß Dietmar
FB7390, CUL, 2 FHT, FS20
modules: 98_WOL.pm, 98_Heating_Control.pm,   98_WeekdayTimer.pm, 98_RandomTimer.pm, 59_Twilight.pm