Page 1 of 2

Schedule executing at the wrong time

PostPosted: Mon Nov 01, 2021 2:21 pm
by jroach
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.

Re: Schedule executing at the wrong time

PostPosted: Tue Nov 02, 2021 8:21 am
by ryanbuckner
Can you post a screen shot of the schedule config? For example, do you have anything in the Randomize ?

Re: Schedule executing at the wrong time

PostPosted: Tue Nov 02, 2021 9:30 am
by jroach
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.

Re: Schedule executing at the wrong time

PostPosted: Tue Nov 02, 2021 1:17 pm
by matt (support)
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?

Re: Schedule executing at the wrong time

PostPosted: Tue Nov 02, 2021 2:18 pm
by ryanbuckner
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.

Re: Schedule executing at the wrong time

PostPosted: Tue Nov 02, 2021 8:56 pm
by jroach
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)?

Re: Schedule executing at the wrong time

PostPosted: Tue Nov 02, 2021 9:06 pm
by jroach
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?

Re: Schedule executing at the wrong time

PostPosted: Wed Nov 03, 2021 6:50 am
by ryanbuckner
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()

Re: Schedule executing at the wrong time

PostPosted: Wed Nov 03, 2021 8:18 am
by jroach
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.

Re: Schedule executing at the wrong time

PostPosted: Wed Nov 03, 2021 10:53 am
by ryanbuckner
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

Re: Schedule executing at the wrong time

PostPosted: Wed Nov 03, 2021 2:21 pm
by matt (support)
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)?

Re: Schedule executing at the wrong time

PostPosted: Wed Nov 03, 2021 8:29 pm
by jroach
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.

Re: Schedule executing at the wrong time

PostPosted: Thu Nov 04, 2021 9:23 am
by jroach
as of this AM the exterior lights worked as they should. No issues in the event log.

Re: Schedule executing at the wrong time

PostPosted: Thu Nov 04, 2021 12:53 pm
by ryanbuckner
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?

Re: Schedule executing at the wrong time

PostPosted: Thu Nov 04, 2021 1:21 pm
by jroach
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).