Sunset Time?

I have a lamp scheduled to turn on at 20m before Sunset. I set that up with a Start time of Before Sunset with an offset of 20m and a Stop time of 19m before sunset. For some reason, the lamp comes on way before it is supposed to. The status shows the correct time for Last Start/Stop, but the notification I get shows the way early time.

I setup an outdoor module for Sunset, but I used an interval to Stop the on schedule. That seems to work fine.

So, I guess my question is what is the best way to set this up? On at 20m before sunset and off at 3am? Should I use interval instead of theoffset from Before Sunset? I just changed teh Stop time to an interval of ten seconds instead of the Before Sunset option. I’ll see what happens tonight.

Thanks,

Tony

Have you set up your location correctly? If Vera thinks you are somewhere else, then it will use the sunset/sunrise time for that location. This can be found in Setup > Location. Start there and see if everything is right.

If you are going to use Sunrise/Subset options you must make sure your Vera is configured properly with the correct Timezone and location so that it can compute the sunrise/subset for your location.

And it also must have the correct time set. It can have the wrong time if your Vera rebooted (from a power cycle) while your network was down.

I do have it setup for the correct location. The other schduled operations all work correctly. I noticed that I have a lamp module programmed via the regular Vera schedules to turn on at exactly the same time. Could that be casusing a conflict? Just for kicks, I set the non PLEG schedule to a few minutes after the PLEG event to see what happens tonight.

Thanks for the help.

Tony

I was just digging around and found a trigger that turns on the same module at the time that it is coming on…imagine that! I guess it was there from when I first started playing around with all of this a couple of weeks ago. I bet everything works as planned tomorrow!

Thanks,

Tony :stuck_out_tongue:

Nope, that wasn’t it. And this morning, the lamp didn’t turn on at all! This is getting frustrating! My goal is to turn the lamp module on M-F from 5:15 am to 6:30 am. Also, turn the lamp on daily from 20 min. before Sunset and off at 9. Seems simple enough, but darned if I can get it to work. It usually comes on early and like I said, it didn’t come on this morning after I fiddled with things last night. The landscape light module is working as planned. My setup is correct (geographically) and the time is set correctly. Thansk for any help.

Tony

I think your problem is caused by your style of programming coupled with your use of Do it now for testing.

The condition BedtorWakeupOn515 did not fire … because it was already true when the schedule fired.
Actions only fire when the corresponding condition transitions from false to true, unless the repeat flag is set.

To clean up you code replace your 6 schedules with 3.

i.e. use the following as a template:

BedroomNite: On M-S Sunset, Off M-S at 21:00

Then your conditions become:
BedroomLiteOn BedroomNite
BedroomLiteOff Not BedroomNite
[hr]

Thanks. I’ll give that a shot.

I appreaciate your patience and help. Hopefully, I’ll get the hang of this before too long.

Tony

Ok, now I’m trying to setup as suggested. When I attempted the landscape lights setup (sunset until 3am), I have issues. Then, I tried to go back to my original setup that worked, I keep getting an error “err getting status of LandscapeOff” condition.

That’s because you forgot to change:
LandscapeNightOff

to
Not LanscapeNightOn

There is no LanscapeNightOff anymore.
When you see an error about some token … just try to find it on the Status report … this usually means you mis-spelled the name … or deleted it and forgot to change the reference.

Now you can test by clicking the:
Do It Now
Button in the schedules editor … each time you click it … it will simulate the timer getting to the next timestamp.
Make sure you leave the timers in the correct state when you are done testing.
Then it’s always good to save/restart your Vera so it’s staring off with a clean slate.

DO you really only want the Lanscape night light on for 10 minutes ?

Well, this stuff is still giving me fits. What I had setup for the landscape lights was to turn on at sunset and turn off at 3 am. What I thought I had setup was the ON scheduled time to be true for an interval of 10 seconds and the Off schedule to be true for an interval of ten seconds (based on something I read in another thread). That has been working and seems to be working tonight.

The bedroom light, however, still came on way early. I have it set to sunset -20, but it comes on around 7pm when it should be around 8. The landscape lights are set to turn on at sunset and they turn on at sunset for my location. What is really weird is that the status shows that the lights on schedule happened at the correct time. That makes me think there could be something wrong with the before sunset option. The lights turned off at 9pm as expected.

Thanks again for the help.

Tony

[quote=“Tony-Memphis, post:13, topic:181639”]Well, this stuff is still giving me fits. What I had setup for the landscape lights was to turn on at sunset and turn off at 3 am. What I thought I had setup was the ON scheduled time to be true for an interval of 10 seconds and the Off schedule to be true for an interval of ten seconds (based on something I read in another thread). That has been working and seems to be working tonight.

The bedroom light, however, still came on way early. I have it set to sunset -20, but it comes on around 7pm when it should be around 8. The landscape lights are set to turn on at sunset and they turn on at sunset for my location. What is really weird is that the status shows that the lights on schedule happened at the correct time. That makes me think there could be something wrong with the before sunset option. The lights turned off at 9pm as expected.

Thanks again for the help.

Tony[/quote]

are you using a ten second interval, for your schedules? if so, you may not want to do that.

for the landscape lights, why not use a single schedule that starts at sunset -20 and ends at 3:00am?

Schedules
LandscapeLightSchedule = a schedule that starts around sunset and ends at 03:00

Conditions
LandscapeLightsOn = LandscapeLightSchedule
LandscapeLightsOff = NOT LandscapeLightSchedule

Same thing with your bedroom light…

also, your name suggests you are in Tennessee, which as you then know has two timezones. Perhaps you need to double check your vera’s settings to make sure you are properly in the correct city and timezone?

Thanks. I had tried that setup on the landscape lights and something got messed up? so I reverted back to the current way. It actually is working. But I noticed tonight that my bedroom light still came on way early (almost an hour). My settings are correct. The landscape lights are set to sunset and they are turning on at the correct time (8:17ish in Memphis right now). I’ll keep working on it.

I was just checking my schedule and I had it set for sunset, but they still came on early but the other module didn’t. I may try disabling PLEG tomorrow to see if the lights come on! I don’t have any schedules in regular Vera that I can see. I don’t have but three modules hooked up right now anyway. I wonder if my remote is somehow turning them on? I started with a GE remote before I bought the Veralite. I’ll take the batteries out of it tomorrow.

I sure appreciate everybody’s help and patience!

Tony

Thanks to all for the help. I learned a lot via this little excercise. Once I got the setup correct and it still didn’t work, I then had the idea about the remote…and that seems to have been it (unless I missed somethign else). I removed the batteries from the GE remote that I had been using before I got the VeraLite to get my feet wet and things started working as designed. Not sure I understand how the remote was able to do that, but disabling it seems to have worked.

Anyway,thank you. I’m still trying to get a handle on PLEG. It hasn’t clicked yet. I get the basic concepts, but I’m still studying examples in hopes that I’ll get it soon!

Tony