PLEG light timer help please

Richard,
This example is using a virtual switch to signify when one is on vacation or not, as UI 7 now has the following modes;

[ul][li]Home[/li]
[li]Away[/li]
[li]Night[/li]
[li]Vacation[/li][/ul]

would it not be better to use use them? and if so how would one use them with this PLEG example, I assume it would no longer be a device property but rather a My Modes > Vacation with a unique name? Mike

Nice work Richard. I just tweaked wilme2’s plan to match yours and testing.

Tell me what starts the sRandomOnOff sched? Testing it and the status report shows it to be false. All else is true, but no lights are turning on.

Also is the condition SunsetTo2300_s1 AND RandomOnOff_s2 ? 1 : 0 ?1:0?

Just a followup on the test of Richards tweak…

I have it working fine. Been testing all day and it is doing fine. So disregard my previous post.

Thank you all for helping me out with this. I think you should include the as an example in your PLEG docs. A lot of people would benefit from this function.

If you want to use MCV modes … you PLEG allows you.
I do not plan on using Vera Modes …
For me I can have
Vacataion, and Vaction + Night, Away, and Away + Night, Home, Home + Night

Alright Richard,
I’m being a little thick… ::), Instead of using the Vera Mode your using virtual switches or are these PLEG inputs for each of you modes?

[ul][li]Vacation,[/li]
[li]Vacation + Night,[/li]
[li]Away,[/li]
[li]Away + Night,[/li]
[li]Home, [/li]
[li]Home + Night[/li][/ul]

I use a Multi-Switch to set modes … that means I can have more than 1 mode active at a time.

Vera’s definition of House modes … being only 1 mode active at a time is to restrictive for me.

Richard,
Thanxs for clarification, I’m assuming that when your on Vacation that you select both; Vacation and Vacation + Night? I would have thought that Vacation + Night could have been solved within a condition statement using Day/Night as an Input, obviously I’m missing something?

The reason I’m asking fundamental questions is that for the novices of us not all things are totally clear (I’m not always seeing the blonde amongst the one’s & Zero’s - Matrix) any help from you is greatly appreciate and helps us make a better HA solution. That’s why I will ask others to post their latest PLEG solutions as they are great working examples/resources to used and modified. Mike

I downloaded DeusExMachina from the official VERA app store, but I’m pretty sure it screwed up my PLEGs. They all came up empty with the error message “ says Error Reading Data”. I restored a backup taken shortly before I installed Deus and the PLEGs came back to normal.

Not Deus, or anything else… PLEG updated itself and there may be issues, see here:

Sincerely sorry @Rigpapa, it was the PLEG 9.1 update that caused the problem and not your Dues.
I have rolled back to PLEG 8.11 using a backup taken a couple of days ago & turned off PLEG auto-update, as per thread.https://community.getvera.com/t/urgent-help-oh-pleg-just-died/215638/2

Please accept my apologies for maligning Dues incorrectly, it was just one of life’s unfortunate co-incidences that it happened immediately after I installed your plugin :blush: (or maybe the downloading of any app triggered the update of another app?)

No worries! I just wanted to make sure you had the info and were aware of the ongoing discussion elsewhere.

It is a curious fact of our world, though, that often the last car over a bridge gets blamed when the bridge collapses…

So true! :thinking: