Weekdaytimer lässt fhem abstürzen

Begonnen von doman75, 22 Dezember 2016, 08:06:46

Vorheriges Thema - Nächstes Thema

doman75

Hallo,

letzte Nacht 23:15 waren das die letzten log Einträge dann war fhem abgestürzt:

Can't use an undefined value as an ARRAY reference at ./FHEM/98_WeekdayTimer.pm line 1029.
2016.12.21 23:15:00.001 1: PERL WARNING: Use of uninitialized value $epoch in concatenation (.) or string at ./FHEM/98_WeekdayTimer.pm line 851.
2016.12.21 23:15:00.001 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/98_WeekdayTimer.pm line 851.
2016.12.21 23:15:00.001 1: PERL WARNING: Use of uninitialized value $epoch in addition (+) at ./FHEM/98_WeekdayTimer.pm line 850.
2016.12.21 23:15:00.001 1: PERL WARNING: Use of uninitialized value $epoch in subtraction (-) at ./FHEM/98_WeekdayTimer.pm line 848.
2016.12.21 23:15:00.001 1: PERL WARNING: Use of uninitialized value $param in pattern match (m//) at ./FHEM/98_WeekdayTimer.pm line 970.
2016.12.21 23:15:00.000 1: PERL WARNING: Use of uninitialized value $param in pattern match (m//) at ./FHEM/98_WeekdayTimer.pm line 954.

Hatte das schon mal jemand? Wo suche ich den Fehler am besten , ich habe gar kein Weekdaytimer der 23:15 arbeitet.

Ich habe gestern allerdings das Heating_Control für einen Heizthermostat in betrieb genommen, aber auch das schaltet erst am Sonntag. Das HCS läuft auch nebenbei seit gestern. Das sind die Veränderungen von gestern.

Grüße

Doman

Dietmar63

Heating_Control ruft intern WeekdayTimer auf. HC und WDT arbeiten manchmal auch dann, wenn keine Schaltzeit vorgegeben wurde.
Bitte mal die Definition veröffentlichen.
Gruß Dietmar
FB7390, CUL, 2 FHT, FS20
modules: 98_WOL.pm, 98_Heating_Control.pm,   98_WeekdayTimer.pm, 98_RandomTimer.pm, 59_Twilight.pm

doman75

#2
Das erste Listing:
Internals:
   COMMAND
   CONDITION
   DEF        bau_FB_Wandthermostat de 0|15:00|26 0|21:00|auto
   DEVICE     bau_FB_Wandthermostat
   GlobalDaylistSpec
   LANGUAGE   de
   NAME       BUFH_Timer
   NR         608
   Profil 0: Sonntag 15:00:00 26, 21:00:00 auto
   STATE      inactive
   STILLDONETIME 0
   TYPE       Heating_Control
   Readings:
     2016-12-22 08:28:00   currValue       auto
     2016-12-22 08:28:00   nextUpdate      2016-12-25 15:00:00
     2016-12-22 08:28:00   nextValue       26
     2016-12-22 08:27:55   state           inactive
   SWITCHINGTIMES:
     0|15:00|26
     0|21:00|auto
   Timer:
     Bufh_timer_1:
       HASH       BUFH_Timer
       MODIFIER   1
       NAME       BUFH_Timer_1
     Bufh_timer_2:
       HASH       BUFH_Timer
       MODIFIER   2
       NAME       BUFH_Timer_2
       immerSchalten 1
     Bufh_timer_settimerofday:
       HASH       BUFH_Timer
       MODIFIER   SetTimerOfDay
       NAME       BUFH_Timer_SetTimerOfDay
       SETTIMERATMIDNIGHT 1
     Bufh_timer_delayed:
       HASH       BUFH_Timer
       MODIFIER   delayed
       NAME       BUFH_Timer_delayed
   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:
         15:00:00   26
         21:00:00   auto
       1:
       2:
       3:
       4:
       5:
       6:
   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      1482415200
       PARA       26
       TIME       15:00
       TAGE:
         0
     2:
       EPOCH      1482436800
       PARA       auto
       TIME       21:00
       TAGE:
         0
   Profile_idx:
     0:
       15:00:00   1
       21:00:00   2
   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:
   room       Tests

Das 2te:
Internals:
   COMMAND
   CONDITION
   DEF        bau_HKL_Thermostat de 0|15:00|26 0|21:00|auto
   DEVICE     bau_HKL_Thermostat
   GlobalDaylistSpec
   LANGUAGE   de
   NAME       BUHK_Timer
   NR         609
   Profil 0: Sonntag 15:00:00 26, 21:00:00 auto
   STATE      inactive
   STILLDONETIME 0
   TYPE       Heating_Control
   Readings:
     2016-12-22 08:28:00   currValue       auto
     2016-12-22 08:28:00   nextUpdate      2016-12-25 15:00:00
     2016-12-22 08:28:00   nextValue       26
     2016-12-22 08:27:55   state           inactive
   SWITCHINGTIMES:
     0|15:00|26
     0|21:00|auto
   Timer:
     Buhk_timer_1:
       HASH       BUHK_Timer
       MODIFIER   1
       NAME       BUHK_Timer_1
     Buhk_timer_2:
       HASH       BUHK_Timer
       MODIFIER   2
       NAME       BUHK_Timer_2
       immerSchalten 1
     Buhk_timer_settimerofday:
       HASH       BUHK_Timer
       MODIFIER   SetTimerOfDay
       NAME       BUHK_Timer_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:
         15:00:00   26
         21:00:00   auto
       1:
       2:
       3:
       4:
       5:
       6:
   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      1482415200
       PARA       26
       TIME       15:00
       TAGE:
         0
     2:
       EPOCH      1482436800
       PARA       auto
       TIME       21:00
       TAGE:
         0
   Profile_idx:
     0:
       15:00:00   1
       21:00:00   2
   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:
   room       Tests

und das 3te:
Internals:
   CHANGED
   DEF        IT_F0FFFFFF0F
   NAME       HZControl
   NEXTCHECK  08:42:52
   NR         610
   STATE      idle
   TYPE       HCS
   Readings:
     2016-12-22 08:37:52   an_Thermostat   idle
     2016-12-22 08:37:52   an_ThermostatS  idle
     2016-12-22 08:37:52   bao_FB_Thermostat idle
     2016-12-22 08:37:52   bao_HK_Thermostat idle
     2016-12-22 08:37:52   bau_FB_Thermostat idle
     2016-12-22 08:37:52   bau_HKL_Thermostat idle
     2016-12-22 08:37:52   bau_HKR_Thermostat idle
     2016-12-22 08:27:52   device          IT_F0FFFFFF0F
     2016-12-22 08:04:58   devicestate     off
     2016-12-22 08:37:52   eco             off
     2016-12-22 08:37:52   fee_Thermostat  idle
     2016-12-22 08:37:52   fl_Thermostat   idle
     2016-12-22 08:37:52   fz_Thermostat   idle
     2016-12-22 08:37:52   ku_Thermostat   idle
     2016-12-22 08:37:52   locked          00:00:00
     2016-12-22 08:37:52   mz_Thermostat   idle
     2016-12-22 08:37:52   overdrive       off
     2016-12-22 08:37:52   st_Thermostat_links idle
     2016-12-22 08:37:52   st_Thermostat_rechts idle
     2016-12-22 08:37:52   state           idle
     2016-12-22 08:37:52   sz_Thermostat   idle
     2016-12-22 08:37:52   wc_Thermostat   idle
     2016-12-22 08:37:52   wf_Thermostat   idle
   Helper:
     Device:
       An_thermostat:
         actuator   6
         demand     0
         excluded   0
         ignored    0
         tempDesired 21.0
         tempMeasured 21.1
         type       MAX
       An_thermostats:
         actuator   19
         demand     0
         excluded   0
         ignored    0
         tempDesired 21.0
         tempMeasured 21.1
         type       MAX
       Bao_fb_thermostat:
         actuator   0
         demand     0
         excluded   0
         ignored    0
         tempDesired 19.0
         tempMeasured 22.1
         type       MAX
       Bao_hk_thermostat:
         actuator   0
         demand     0
         excluded   0
         ignored    0
         tempDesired 17.0
         tempMeasured 21.9
         type       MAX
       Bau_fb_thermostat:
         actuator   0
         demand     0
         excluded   0
         ignored    0
         tempDesired 19.0
         tempMeasured 20.5
         type       MAX
       Bau_hkl_thermostat:
         actuator   0
         demand     0
         excluded   0
         ignored    0
         tempDesired 17.0
         tempMeasured 18.4
         type       MAX
       Bau_hkr_thermostat:
         actuator   0
         demand     0
         excluded   0
         ignored    0
         tempDesired 17.0
         tempMeasured 20.2
         type       MAX
       Fee_thermostat:
         actuator   0
         demand     0
         excluded   0
         ignored    0
         tempDesired 19.0
         tempMeasured 23.7
         type       MAX
       Fl_thermostat:
         actuator   0
         demand     0
         excluded   0
         ignored    0
         tempDesired 18.5
         tempMeasured 21.1
         type       MAX
       Fz_thermostat:
         actuator   0
         demand     0
         excluded   0
         ignored    0
         tempDesired 21.5
         tempMeasured 22.5
         type       MAX
       Ku_thermostat:
         actuator   0
         demand     0
         excluded   0
         ignored    0
         tempDesired 18.0
         tempMeasured 21.1
         type       MAX
       Mz_thermostat:
         actuator   0
         demand     0
         excluded   0
         ignored    0
         tempDesired 19.0
         tempMeasured 19.8
         type       MAX
       St_thermostat_links:
         actuator   3
         demand     0
         excluded   0
         ignored    0
         tempDesired 21.5
         tempMeasured 21.8
         type       MAX
       St_thermostat_rechts:
         actuator   5
         demand     0
         excluded   0
         ignored    0
         tempDesired 21.5
         tempMeasured 21.8
         type       MAX
       Sz_thermostat:
         actuator   0
         demand     0
         excluded   0
         ignored    0
         tempDesired 6.0
         tempMeasured 12.1
         type       MAX
       Wc_thermostat:
         actuator   0
         demand     0
         excluded   0
         ignored    0
         tempDesired 19.5
         tempMeasured 21.3
         type       MAX
       Wf_thermostat:
         actuator   0
         demand     0
         excluded   0
         ignored    0
         tempDesired 19.0
         tempMeasured 20.3
         type       MAX
Attributes:
   deviceCmdOff off
   deviceCmdOn on
   event-on-change-reading state,devicestate,eco,overdrive
   idleperiod 10
   interval   5
   mode       thermostat
   room       Tests
   thermostatThresholdOff 0.5
   thermostatThresholdOn 0.5
   valveThresholdOff 40
   valveThresholdOn 35

Dietmar63

bitte die Definitionszeile veröffentlichen
und mal stacktrace einschalten verbose 5 auf den HCs einschalten und den output aus dem Logging veröffentlichen.
Gruß Dietmar
FB7390, CUL, 2 FHT, FS20
modules: 98_WOL.pm, 98_Heating_Control.pm,   98_WeekdayTimer.pm, 98_RandomTimer.pm, 59_Twilight.pm

doman75

#4
define 1:
define BUFH_Timer Heating Control bau_FB_Wandthermostat de 0|15:00|26 0|21:00|auto

define 2:
define BUHK_Timer Heating Control bau_HKL_Thermostat de 0|15:00|26 0|21:00|auto

Verbose5 auf beiden ist jetzt an, Stacktrace ist auf 1.




Dietmar63

Gruß Dietmar
FB7390, CUL, 2 FHT, FS20
modules: 98_WOL.pm, 98_Heating_Control.pm,   98_WeekdayTimer.pm, 98_RandomTimer.pm, 59_Twilight.pm

Dietmar63

um was für Thermostate handelt es sich?
Gruß Dietmar
FB7390, CUL, 2 FHT, FS20
modules: 98_WOL.pm, 98_Heating_Control.pm,   98_WeekdayTimer.pm, 98_RandomTimer.pm, 59_Twilight.pm

doman75

Beides sind MAX Thermostate, das eine ein Wandthermostat und das andere ein Heizkörperthermostat.