We have moved at community.getvera.com

Author Topic: Simple (?) Scheduling Issue  (Read 5425 times)

Offline tbully

  • Sr. Member
  • ****
  • Posts: 285
  • Karma: +1/-1
Simple (?) Scheduling Issue
« on: February 27, 2014, 09:06:31 am »
Hello Everyone -

I'm posting this on behalf of my (slightly less technical) father-in-law (careful - he is watching!).  He is also just getting starting in HA and has a very simple setup.

He's running a VeraLite and one GE switch to control his outside garage lights.

We have two scenes setup.
1) Turns the garage lights on at Sunset
2) Turns the garage lights off at Sunrise

His location (city) is set properly and when I SSH in to the box I can see the timezone and internal clock is set correctly.  The "lights on" scene fires just fine at sunset but the "off" scene fails to fire at sunrise.

If you look at the upcoming schedules area of the "overview", it is calculating the on/off schedules accordingly.

However, if you go to the schedule setup where the "last run" area is, I can see the "ON" fired as expected but the "OFF" schedule in the off scene has nothing listed (i.e. it never executed).

Interestingly, his device came with UI6 and he ended up running in to that username/password issue between his device, cp.mios.com, and home.getvera.com.  We downgraded his device to UI5 yesterday to 1) fix the login issue and 2) hopefully fix this issue.  It fixed #1 but obviously we're still having sunrise issues.

I know I could do this with Sunset/Sunrise and PLEG plugins but I'm trying to let him get his feet wet with a "simple" scene setup first.  So much for that!  haha!

So, before we get MCV involved, does anyone have any ideas?




Offline RichardTSchaefer

  • Community Beta
  • Master Member
  • ******
  • Posts: 10091
  • Karma: +764/-143
Re: Simple (?) Scheduling Issue
« Reply #1 on: February 27, 2014, 09:28:21 am »
If it does not work properly for a scene ... it will probably be a problem for the Day or Night plugin or the PLEG plugin.
These all depend on Vera's internal scheduler.

Is it possible that Vera is restarting/rebooting around that time ?
 

Offline RexBeckett

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3891
  • Karma: +483/-12
Re: Simple (?) Scheduling Issue
« Reply #2 on: February 27, 2014, 09:29:58 am »
Did you try installing the DayTime plugin? Even if you don't use it as a trigger, it would be interesting to see if it switched at the correct times.
 

Offline Z-Waver

  • Master Member
  • *******
  • Posts: 4437
  • Karma: +249/-120
Re: Simple (?) Scheduling Issue
« Reply #3 on: February 27, 2014, 10:10:16 am »
If Vera is properly calculating the next scheduled time, but the scene is not "triggering" at that time; my assumption would be that there was something wrong with the scene. I would:

 1. Make sure that the schedule was Enabled.

2. Delete the scene and recreate it from scratch. When creating make sure to choose Day of week based and to check every day's checkbox.

Offline tbully

  • Sr. Member
  • ****
  • Posts: 285
  • Karma: +1/-1
Re: Simple (?) Scheduling Issue
« Reply #4 on: February 27, 2014, 12:04:41 pm »
@Richard - I don't know how to check the uptime of the box without directly logging in to it.  Since I'm not at his house and lacking VPN, that will be difficult.  I will check in to it though.  Good thought.

@Rex - Good idea.  I will install the plugin to see if it "flips"

@Z - The schedule(s) were enabled.  We essentially did have to recreate the scene when we downgraded to UI5.  However, it failed again this morning.  (First morning on UI5)

He ended up calling MCV and they suggested to recreate the scene again.  :-)   He did so and I guess we will wait until tomorrow morning. 

Either way, I will be sure to report back to hopefully help someone else "searching" in the future.

Thanks.

Offline tbully

  • Sr. Member
  • ****
  • Posts: 285
  • Karma: +1/-1
Re: Simple (?) Scheduling Issue
« Reply #5 on: February 28, 2014, 11:21:57 am »
Plot thickens.

I used the day/night plugin to send me a notification when night came last night (worked!) and day came this morning (also worked!) but the scene (created by MCV) did not fire.

Argh!

Offline Z-Waver

  • Master Member
  • *******
  • Posts: 4437
  • Karma: +249/-120
Re: Simple (?) Scheduling Issue
« Reply #6 on: February 28, 2014, 11:47:05 am »
This is either a really interesting problem, or a really stupid mistake.

Offline tbully

  • Sr. Member
  • ****
  • Posts: 285
  • Karma: +1/-1
Re: Simple (?) Scheduling Issue
« Reply #7 on: February 28, 2014, 11:52:59 am »
The second, no doubt.   :-)

Offline RichardTSchaefer

  • Community Beta
  • Master Member
  • ******
  • Posts: 10091
  • Karma: +764/-143
Re: Simple (?) Scheduling Issue
« Reply #8 on: February 28, 2014, 11:56:50 am »
Do you have any LUA code attached to the scene ?
If so please specify.

Offline tbully

  • Sr. Member
  • ****
  • Posts: 285
  • Karma: +1/-1
Re: Simple (?) Scheduling Issue
« Reply #9 on: February 28, 2014, 11:59:23 am »
Nope. 

This is the father-in-law's Veralite and is about as simple as it can get.

Two Z-Wave devices
No Plugins (besides Day/Night)
Two Scenes each having their own schedule (one to turn lights on at sunset and one to turn them off at sunrise)

I'm with Z-Waver.  It's such a simple implementation that I'm betting that I (and MCV) are missing something simple.


Offline BulldogLowell

  • Hero Member
  • *****
  • Posts: 1576
  • Karma: +191/-85
Re: Simple (?) Scheduling Issue
« Reply #10 on: February 28, 2014, 12:25:57 pm »
And I imagine that you deleted the scenes and recreated them already, yes?


Offline tbully

  • Sr. Member
  • ****
  • Posts: 285
  • Karma: +1/-1
Re: Simple (?) Scheduling Issue
« Reply #11 on: February 28, 2014, 12:35:13 pm »
Yessir.  Both MCV and we did that on separate occasions (as well as recreating the schedules).


Offline RichardTSchaefer

  • Community Beta
  • Master Member
  • ******
  • Posts: 10091
  • Karma: +764/-143
Re: Simple (?) Scheduling Issue
« Reply #12 on: February 28, 2014, 12:44:43 pm »
Please post the output from the following:

http://Your.Vera.IP.Address:3480/data_request?id=user_data

Note: the :3480 is required.

Since you do not have much ... it should not take much to review the file.
This dumps the internal state of your Vera. I would be happy to look it over and see I I see anything weird.

Offline BulldogLowell

  • Hero Member
  • *****
  • Posts: 1576
  • Karma: +191/-85
Re: Simple (?) Scheduling Issue
« Reply #13 on: February 28, 2014, 01:01:52 pm »
and one more silly question... sorry.

Pressing the On/Off button on the UI will affect the lights, right?  So, there is no zwave connectivity problem, yes?  You visually verified that the light came on, not just witness the UI display the status change.

Sorry for these questions but it may make sense to rule out the network.


Offline tbully

  • Sr. Member
  • ****
  • Posts: 285
  • Karma: +1/-1
Re: Simple (?) Scheduling Issue
« Reply #14 on: February 28, 2014, 01:48:02 pm »
Richard -
I'll do this ASAP.  I don't have VPN in to his network so I will have to use Teamviewer (or something) to grab it.

Bulldog -
ZWave is fine.  The schedule "late ran:" time is blank for the sunrise schedule so it appears that it isn't firing there.