Announcement

Collapse
No announcement yet.

Errors with schedules

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Errors with schedules

    Spud;

    I finally got around to setting up quite a few schedules. As I added the schedules I started getting these errors when HomeSeer is started.

    Mar-20 12:08:26 PM EasyTrigger ERROR System.NullReferenceException: Object reference not set to an instance of an object. at HSPI_EasyTrigger.HSTimeSpan.CompareTo(HSTimeSpan other) at HSPI_EasyTrigger.ScheduleTime.CompareTo(ScheduleTime other) at HSPI_EasyTrigger.ScheduleTimeSlot.IsDateTimeInSlot(DateTime dt) at HSPI_EasyTrigger.Schedule.IsEnteringTimeSlot(DateTime prevDt, DateTime currDt) at HSPI_EasyTrigger.EasyTriggerApp.CheckScheduleTriggers()
    Mar-20 12:07:56 PM EasyTrigger ERROR System.NullReferenceException: Object reference not set to an instance of an object. at HSPI_EasyTrigger.HSTimeSpan.CompareTo(HSTimeSpan other) at HSPI_EasyTrigger.ScheduleTime.CompareTo(ScheduleTime other) at HSPI_EasyTrigger.ScheduleTimeSlot.IsDateTimeInSlot(DateTime dt) at HSPI_EasyTrigger.Schedule.IsEnteringTimeSlot(DateTime prevDt, DateTime currDt) at HSPI_EasyTrigger.EasyTriggerApp.CheckScheduleTriggers()
    Mar-20 12:07:26 PM EasyTrigger ERROR System.NullReferenceException: Object reference not set to an instance of an object. at HSPI_EasyTrigger.HSTimeSpan.CompareTo(HSTimeSpan other) at HSPI_EasyTrigger.ScheduleTime.CompareTo(ScheduleTime other) at HSPI_EasyTrigger.ScheduleTimeSlot.IsDateTimeInSlot(DateTime dt) at HSPI_EasyTrigger.Schedule.IsEnteringTimeSlot(DateTime prevDt, DateTime currDt) at HSPI_EasyTrigger.EasyTriggerApp.CheckScheduleTriggers()
    Mar-20 12:06:56 PM EasyTrigger ERROR System.NullReferenceException: Object reference not set to an instance of an object. at HSPI_EasyTrigger.HSTimeSpan.CompareTo(HSTimeSpan other) at HSPI_EasyTrigger.ScheduleTime.CompareTo(ScheduleTime other) at HSPI_EasyTrigger.ScheduleTimeSlot.IsDateTimeInSlot(DateTime dt) at HSPI_EasyTrigger.Schedule.IsEnteringTimeSlot(DateTime prevDt, DateTime currDt) at HSPI_EasyTrigger.EasyTriggerApp.CheckScheduleTriggers()
    Mar-20 12:06:26 PM EasyTrigger ERROR System.NullReferenceException: Object reference not set to an instance of an object. at HSPI_EasyTrigger.HSTimeSpan.CompareTo(HSTimeSpan other) at HSPI_EasyTrigger.ScheduleTime.CompareTo(ScheduleTime other) at HSPI_EasyTrigger.ScheduleTimeSlot.IsDateTimeInSlot(DateTime dt) at HSPI_EasyTrigger.Schedule.IsEnteringTimeSlot(DateTime prevDt, DateTime currDt) at HSPI_EasyTrigger.EasyTriggerApp.CheckScheduleTriggers()
    Mar-20 12:06:25 PM EasyTrigger ERROR System.NullReferenceException: Object reference not set to an instance of an object. at HSPI_EasyTrigger.EasyTriggerApp.RandomTriggerFireAndReset(Ob ject sender, ElapsedEventArgs e)
    Mar-20 12:05:56 PM EasyTrigger ERROR System.NullReferenceException: Object reference not set to an instance of an object. at HSPI_EasyTrigger.HSTimeSpan.CompareTo(HSTimeSpan other) at HSPI_EasyTrigger.ScheduleTime.CompareTo(ScheduleTime other) at HSPI_EasyTrigger.ScheduleTimeSlot.IsDateTimeInSlot(DateTime dt) at HSPI_EasyTrigger.Schedule.IsEnteringTimeSlot(DateTime prevDt, DateTime currDt) at HSPI_EasyTrigger.EasyTriggerApp.CheckScheduleTriggers()



    In addition to the errors I have some events that are not working properly on using schedules as triggers or conditions. Most are working correctly, some of the problems have been of my own making, but there are a couple of events that are not working, but use the same logic and schedules that other working events are using.

    I cannot tell from the errors above what schedules might be the problem. Do you have any suggestions as to how I can track them down?

    I attached the EasyTrigger config file.
    Attached Files
    HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

    #2
    does this error keeps popping up every 30 secs or is it just when HS starts and then it stops?

    do you have the same error if you restart the plugin only without restarting HS?

    Comment


      #3
      It only happens when HomeSeer is first started. It does not repeat. When I disable/enable the plug-in I get a whole new set of warnings:

      Mar-20 4:53:48 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces OFF by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:48 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 1% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:48 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 20% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:47 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces OFF by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:47 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 1% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:47 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 20% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:46 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces OFF by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:46 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 1% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:46 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 20% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:45 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces OFF by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:45 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 1% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:45 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 20% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:44 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces OFF by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:44 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 1% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:44 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 20% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:43 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces OFF by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:43 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 1% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:43 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 20% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:42 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Randys Office Lights ON by motion: Object reference not set to an instance of an object.
      Mar-20 4:53:42 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces OFF by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:42 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 1% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:42 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 20% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:41 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces OFF by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:41 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 1% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:41 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 20% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:40 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces OFF by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:40 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 1% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:40 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 20% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:39 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces OFF by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:39 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 1% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:39 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 20% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:38 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces OFF by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:38 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 1% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:38 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 20% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:37 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces OFF by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:37 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 1% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:37 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 20% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:36 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces OFF by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:36 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 1% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:36 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 20% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:35 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces OFF by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:35 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 1% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:35 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 20% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:34 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces OFF by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:34 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 1% by NO Motion: Object reference not set to an instance of an object.
      Mar-20 4:53:34 PM Warning Exception attempting to evaluate a plug-in trigger in event Lighting Controls - Motion/Occupancy Driveway Sconces 20% by NO Motion: Object reference not set to an instance of an object.


      Most of the warnings all reference three different events that look at two schedules. There is a single warning referencing a different event and schedule. The same warnings appear each time I disable/enable the plug-in. The events are below. The schedules look correct and were included in the config file I attached above.
      Attached Files
      HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

      Comment


        #4
        The warnings you got when you disable/enable the plugin are thrown by the HS event engine not by the plugin. They are due to the fact that you are using some "for at least" triggers in your event so the associated conditions are constantly evaluated, and during the short moment when the plugin is not running the conditions can't be evaluated hence the warning. I don't think there is anything wrong with that.

        Regarding the errors you got when HS starts, I can't reproduce any of that even using your ini file, but I guessed what could be the problem, so please install version .23 attached, set the log level to debug, and try to restart HS again.

        On your system how much time does it take for HS3 to initialize completely? Does the errors show up while HS3 is still being initialized or after?
        Attached Files

        Comment


          #5
          Originally posted by spud View Post
          The warnings you got when you disable/enable the plugin are thrown by the HS event engine not by the plugin. They are due to the fact that you are using some "for at least" triggers in your event so the associated conditions are constantly evaluated, and during the short moment when the plugin is not running the conditions can't be evaluated hence the warning. I don't think there is anything wrong with that.

          Regarding the errors you got when HS starts, I can't reproduce any of that even using your ini file, but I guessed what could be the problem, so please install version .23 attached, set the log level to debug, and try to restart HS again.

          On your system how much time does it take for HS3 to initialize completely? Does the errors show up while HS3 is still being initialized or after?
          I installed the update and set the debug level. What I failed to notice yesterday was that the errors occurred at shutdown, NOT at startup. When they occurred it was a restart of HomeSeer which is a shutdown, followed immediately by a startup. I failed to notice that the errors occurred during the shutdown phase, I made an assumption without carefully looking at the log.

          It takes HomeSeer about 3 minutes to complete startup. This time is affected greatly by plug-ins.

          With the new version installed, there were no errors at startup, but they were still there during the shutdown. I did a restart and the errors are still there. I have attached the log snippet in an attached text file so the post isn't a mile long. This set of log entries ends when HomeSeer has fully shutdown - most recent log entries at top.

          I apologize for incorrectly stating when the errors occurred. With them happening at shutdown, I really am not concerned about them. As I said, all of the schedules seem to be working. These errors didn't start until I built an array of schedules. I had one test schedule in place since last year with no errors.
          Attached Files
          HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

          Comment


            #6
            Still getting these errors every time I shut down HomeSeer. Schedule based triggers and conditions are all working normally. Is there anything I should check, or just ignore the errors?

            Mar-24 11:41:24 AM EasyTrigger ERROR System.NullReferenceException: Object reference not set to an instance of an object. at HSPI_EasyTrigger.HSTimeSpan.CompareTo(HSTimeSpan other) at HSPI_EasyTrigger.WeekScheduleTime.CompareTo(WeekScheduleTime other) at HSPI_EasyTrigger.WeekScheduleTimeSlot.IsDateTimeInSlot(DateT ime dt) at HSPI_EasyTrigger.WeekSchedule.IsEnteringTimeSlot(DateTime prevDt, DateTime currDt) at HSPI_EasyTrigger.EasyTriggerApp.CheckScheduleTriggers()
            Mar-24 11:40:54 AM EasyTrigger ERROR System.NullReferenceException: Object reference not set to an instance of an object. at HSPI_EasyTrigger.HSTimeSpan.CompareTo(HSTimeSpan other) at HSPI_EasyTrigger.WeekScheduleTime.CompareTo(WeekScheduleTime other) at HSPI_EasyTrigger.WeekScheduleTimeSlot.IsDateTimeInSlot(DateT ime dt) at HSPI_EasyTrigger.WeekSchedule.IsEnteringTimeSlot(DateTime prevDt, DateTime currDt) at HSPI_EasyTrigger.EasyTriggerApp.CheckScheduleTriggers()
            Mar-24 11:40:24 AM EasyTrigger ERROR System.NullReferenceException: Object reference not set to an instance of an object. at HSPI_EasyTrigger.HSTimeSpan.CompareTo(HSTimeSpan other) at HSPI_EasyTrigger.WeekScheduleTime.CompareTo(WeekScheduleTime other) at HSPI_EasyTrigger.WeekScheduleTimeSlot.IsDateTimeInSlot(DateT ime dt) at HSPI_EasyTrigger.WeekSchedule.IsEnteringTimeSlot(DateTime prevDt, DateTime currDt) at HSPI_EasyTrigger.EasyTriggerApp.CheckScheduleTriggers()
            Mar-24 11:39:54 AM EasyTrigger ERROR System.NullReferenceException: Object reference not set to an instance of an object. at HSPI_EasyTrigger.HSTimeSpan.CompareTo(HSTimeSpan other) at HSPI_EasyTrigger.WeekScheduleTime.CompareTo(WeekScheduleTime other) at HSPI_EasyTrigger.WeekScheduleTimeSlot.IsDateTimeInSlot(DateT ime dt) at HSPI_EasyTrigger.WeekSchedule.IsEnteringTimeSlot(DateTime prevDt, DateTime currDt) at HSPI_EasyTrigger.EasyTriggerApp.CheckScheduleTriggers()
            Mar-24 11:39:24 AM EasyTrigger ERROR System.NullReferenceException: Object reference not set to an instance of an object. at HSPI_EasyTrigger.HSTimeSpan.CompareTo(HSTimeSpan other) at HSPI_EasyTrigger.WeekScheduleTime.CompareTo(WeekScheduleTime other) at HSPI_EasyTrigger.WeekScheduleTimeSlot.IsDateTimeInSlot(DateT ime dt) at HSPI_EasyTrigger.WeekSchedule.IsEnteringTimeSlot(DateTime prevDt, DateTime currDt) at HSPI_EasyTrigger.EasyTriggerApp.CheckScheduleTriggers()
            Mar-24 11:38:54 AM EasyTrigger ERROR System.NullReferenceException: Object reference not set to an instance of an object. at HSPI_EasyTrigger.HSTimeSpan.CompareTo(HSTimeSpan other) at HSPI_EasyTrigger.WeekScheduleTime.CompareTo(WeekScheduleTime other) at HSPI_EasyTrigger.WeekScheduleTimeSlot.IsDateTimeInSlot(DateT ime dt) at HSPI_EasyTrigger.WeekSchedule.IsEnteringTimeSlot(DateTime prevDt, DateTime currDt) at HSPI_EasyTrigger.EasyTriggerApp.CheckScheduleTriggers()
            HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

            Comment


              #7
              these errors are harmless, they are caused by the plugin not being shutdown properly, but please test version .24 attached this should fix the problem.

              thanks
              Attached Files

              Comment


                #8
                Originally posted by spud View Post
                these errors are harmless, they are caused by the plugin not being shutdown properly, but please test version .24 attached this should fix the problem.

                thanks
                Cured!
                HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

                Comment

                Working...
                X