Schedule executing at the wrong time

Posted on
Mon Nov 01, 2021 2:21 pm
jroach offline
Posts: 254
Joined: Oct 29, 2010

Schedule executing at the wrong time

I noticed that in the AM I have some lights on that shouldn't be and vice versa. I've attached a screen shot of my schedules and the event log.

Two things I can see:
- Two of the schedules execute at the wrong time ; "Turn off - evening" and "Turn off morning"
- When "Turn off morning" schedule executes then at the same time the evening executes.

The time (under preferences) is set to a specific long/lat and checked that the server was showing the correct time.
I've disabled all my triggers, just in case.

Any thoughts would be appreciated.
Attachments
Screen Shot 2021-11-01 at 10.52.00 AM.png
Screen Shot 2021-11-01 at 10.52.00 AM.png (102.68 KiB) Viewed 2989 times
Screen Shot 2021-11-01 at 10.53.35 AM.png
Screen Shot 2021-11-01 at 10.53.35 AM.png (62.71 KiB) Viewed 2989 times

Posted on
Tue Nov 02, 2021 8:21 am
ryanbuckner offline
Posts: 1080
Joined: Oct 08, 2011
Location: Northern Virginia

Re: Schedule executing at the wrong time

Can you post a screen shot of the schedule config? For example, do you have anything in the Randomize ?

Posted on
Tue Nov 02, 2021 9:30 am
jroach offline
Posts: 254
Joined: Oct 29, 2010

Re: Schedule executing at the wrong time

Ryan, thanks... I do have "randomize" checked for turn off evening, at +-5min.
Turn off morning
, while not randomized has a +-1min in the "Sunrise".
I've attached screen shots.
Attachments
Screen Shot 2021-11-02 at 8.22.57 AM.png
Screen Shot 2021-11-02 at 8.22.57 AM.png (71.68 KiB) Viewed 2937 times
Screen Shot 2021-11-02 at 8.22.07 AM.png
Screen Shot 2021-11-02 at 8.22.07 AM.png (81.59 KiB) Viewed 2937 times

Posted on
Tue Nov 02, 2021 1:17 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Schedule executing at the wrong time

That is really strange. Does your Event Log show any errors before that log chunk? Also, are there any messages in the Event Log related to macOS trying to sleep?

Image

Posted on
Tue Nov 02, 2021 2:18 pm
ryanbuckner offline
Posts: 1080
Joined: Oct 08, 2011
Location: Northern Virginia

Re: Schedule executing at the wrong time

jroach wrote:
Ryan, thanks... I do have "randomize" checked for turn off evening, at +-5min.
Turn off morning
, while not randomized has a +-1min in the "Sunrise".
I've attached screen shots.


Really strange. Looks like a straightforward schedule. It's not going to tell you why it's happening, but I'd delete and recreate both schedules to see if it keeps happening.

Posted on
Tue Nov 02, 2021 8:56 pm
jroach offline
Posts: 254
Joined: Oct 29, 2010

Re: Schedule executing at the wrong time

Matt,

I've attached the event log a few minutes prior to that event. Nothing remarkable. I also checked the settings to make certain the Mac wasn't trying to sleep (also attached image of Power settings).

Ryan,

I'll delete and rebuild and see what happens....but first...

Matt, Ryan,

I might have found something else (clue). I went to the front door to check on the light before sending this email. When I opened the door the porch light went on. I had a trigger setup using a Hue motion sensor at the front door but this trigger has been disabled for a long time (see attached image). When the porch light went on I checked the logs.... nothing about the trigger, just an event that said the status had changed. (I've attached an image of the log from that time).

Could I have some sort of duplicate indiDb file? I did a search but didn't find anything. Something corrupted (more than the triggers or schedules)?
Attachments
Screen Shot 2021-11-02 at 7.50.25 PM.png
Screen Shot 2021-11-02 at 7.50.25 PM.png (91.56 KiB) Viewed 2870 times
Screen Shot 2021-11-02 at 7.48.36 PM.png
Screen Shot 2021-11-02 at 7.48.36 PM.png (57.96 KiB) Viewed 2870 times
Screen Shot 2021-11-02 at 7.36.27 PM.png
Screen Shot 2021-11-02 at 7.36.27 PM.png (73.31 KiB) Viewed 2870 times
Screen Shot 2021-11-02 at 7.35.50 PM.png
Screen Shot 2021-11-02 at 7.35.50 PM.png (152.83 KiB) Viewed 2870 times

Posted on
Tue Nov 02, 2021 9:06 pm
jroach offline
Posts: 254
Joined: Oct 29, 2010

Re: Schedule executing at the wrong time

I did notice that I have two old versions (7.4 and 7.5). Is it possible that my Indigo 2021.1 is executing off of a previous version of the indiDb?
When I look at Activity Monitor I see that I'm running 2021.1.
How do I check Indigo to see what file it is using?

Posted on
Wed Nov 03, 2021 6:50 am
ryanbuckner offline
Posts: 1080
Joined: Oct 08, 2011
Location: Northern Virginia

Re: Schedule executing at the wrong time

jroach wrote:
I did notice that I have two old versions (7.4 and 7.5). Is it possible that my Indigo 2021.1 is executing off of a previous version of the indiDb?
When I look at Activity Monitor I see that I'm running 2021.1.
How do I check Indigo to see what file it is using?


You can open the Indigo Scripting Shell from the machine where the Indigo Server is running: Plugins -> Open Scripting Shell

And execute this in the terminal that is launched:

Code: Select all
indigo.server.getDbFilePath()

Posted on
Wed Nov 03, 2021 8:18 am
jroach offline
Posts: 254
Joined: Oct 29, 2010

Re: Schedule executing at the wrong time

Ryan, thanks again for your help.
The results were:
u'/Users/jobs2/Desktop/Roach House v2021.1.indiDb'

Something in the logs from last night, executes at the wrong time, .sunset here is at 5:59 but it executed again at 8:23PM.
I turned off the "override" in the Sunset/Sunrise tab. They were pretty close to the same but just in case there was an issue.

Posted on
Wed Nov 03, 2021 10:53 am
ryanbuckner offline
Posts: 1080
Joined: Oct 08, 2011
Location: Northern Virginia

Re: Schedule executing at the wrong time

jroach wrote:
Ryan, thanks again for your help.
The results were:
u'/Users/jobs2/Desktop/Roach House v2021.1.indiDb'

Something in the logs from last night, executes at the wrong time, .sunset here is at 5:59 but it executed again at 8:23PM.
I turned off the "override" in the Sunset/Sunrise tab. They were pretty close to the same but just in case there was an issue.


Did you check your Databases folder to see if there was another copy of the database? I also noticed that at some point my database was copied to the Desktop

Code: Select all
/Library/Application Support/Perceptive Automation/Indigo 2021.1/Databases

Posted on
Wed Nov 03, 2021 2:21 pm
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Schedule executing at the wrong time

It shouldn't be possible to have more than one instance of the Indigo Server running on your Mac.

That said, do you have more than one macOS user account? And do you have more than one Mac (possibly running the Indigo Server in the background)?

Image

Posted on
Wed Nov 03, 2021 8:29 pm
jroach offline
Posts: 254
Joined: Oct 29, 2010

Re: Schedule executing at the wrong time

Matt, Ryan,

Only one instance of Indigo running, I only have the one account.
There wasn't another copy of the 2021.1 Db but there was an old 7.5 version. I deleted it last eve and as I look at the logs it looks like the schedules are working today/tonight.
Even if the 7.5 version was the copy that was running it was the copy I was making changes too.

Strange.

Posted on
Thu Nov 04, 2021 9:23 am
jroach offline
Posts: 254
Joined: Oct 29, 2010

Re: Schedule executing at the wrong time

as of this AM the exterior lights worked as they should. No issues in the event log.

Posted on
Thu Nov 04, 2021 12:53 pm
ryanbuckner offline
Posts: 1080
Joined: Oct 08, 2011
Location: Northern Virginia

Re: Schedule executing at the wrong time

jroach wrote:
as of this AM the exterior lights worked as they should. No issues in the event log.


And you've made no changes? Or did you delete and recreate those schedules?

Posted on
Thu Nov 04, 2021 1:21 pm
jroach offline
Posts: 254
Joined: Oct 29, 2010

Re: Schedule executing at the wrong time

No changes. Things got better after deleting the old 7.5 file. Looking back through the logs to see if I could find the day when things went wrong but it goes back to first log (a few weeks back).

Who is online

Users browsing this forum: No registered users and 4 guests