How to run only on certain day of the year anually?

How would one go about setting up a PLEG scene to only run during a specified range of days but annually? For example, the 4th of July every year. I have been thinking about virtual switches but given the potential of PLEG there very well may be a more elegant way of doing it which I’m completely unaware of.

I imagine that as time moves on and the year changes once or so more people are going to be thinking about this type of scenario. … Thanks to PLEG

Oh, and I just noticed that this is my 666th post. So if you’re thinking of responding you probably shouldn’t, lest you suffer an eternity burning in Hades or the like. At the very least your Vera will turn your kitchen lights on at 2:00 AM for no reason, like mine has on occasion for the last several years. :confused:

Hello,

Don’t you want to use the “Google calendar switch” ? You’d just need to add its output to your PL conditions.

Strange… it smells sulfur ! ;D
Now that I have broken the curse, others may answer !

Yes I certainly could do that but I was trying to find out if there was a way to do it without adding other devices. I already have a lot of devices and I don’t want to tax Vera any more than necessary.

Don’t need PLEG for this one at all… Simply a scene scheduled to run every day and a one line Luup code which returns false unless it is the correct day.

Well, let me explain in a little more detail what I’m trying to do ATM. I have scenes which run for each PIN code that is entered. So for example my daughter comes home from school, enters her PIN, I get a Vera Alerts message on my phone notifying me, the house Vera Alerts phone says stuff to her, etc. What I’m after is to have a different set of scenes which only run on the week or so leading up to Halloween that incorporate seasonal noises into the alerts and so on.

I have it on the list … I though you just wanted somebody (thing) to remember your birthday :wink:

Well, that would be nice too.

I can just use Google Calendar until you get time to make the addition.

Thanks

Ummm. Am I doing something wrong here?

It runs the specified scene when the gcal switch isn’t active but once it is active the specified scene doesn’t run.

I’d love to use the report but alas both the report and status windows are blank…

Triggers

Halloween_Time Halloween Time: Armed calendar event is Active

Conditions X_Entered and Halloween_Time

Actions Run scene number xx

This new version of PLEG seems to have introduced a bunch of elusive bugs.

EDIT:

Crazy. I just removed the calendar entry which I’d had there for experimentation and the non Halloween scene immediately ran.

Check the status … your condition was probably already true and triggered.

Yes, it seems that the last PIN entered remains true and the last condition met remains true. I am using “A PIN Code Is Entered” and then entering the appropriate number. I get the same failure if I change a PIN is entered to a light is turned on. Is there something wrong with my condition then? It’s the same as I’m using for other situations I’ve had running for a while.

Also, when I deleted the input for testing with a light switch I wasn’t able to name the new input the same. I entered the same text but there was a 1 automatically appended to it.

EDIT:
Weird. After refreshing the page I can change the name of the condition but the expressions I had modified to reflect the additional 1 had reverted…

If a condition never goes false … but you want it to to trigger every time it is evaluated to true … then place an underscore in the name of the condition … i.e. _AllwaysTriggerOnTrueConditionName

This was changed as part of 4.2+ … previously I was inconsistent (based on what triggerd the conditions to be evaluated) and in some cases I would Always triggers and others I would not. Now the behavior is controlled via the underscore prefix to the condition name.