*Brain freeze* Need help with PLEG Activity

I’m not sure why but my brain isn’t hitting its logic stride at the moment.

What I need to happen:

I have a virtual switch. I have the Day/Night plug in. I have 3 light switches.

When the virtual switch is triggered ON and the Day/Night is currently showing “Day”, I need Vera to wait until Day/Night turns “Night” and then turn on the three lights and then turn the vitual switch to OFF.
When the virtual switch is triggered ON and the Day/Night is currently showing “Night”, I need Vera to turn on the three lights and then turn the virtual switch to OFF.

Any help would be appreciated.

You can use a schedule in PLEG that looks at sunrise/sunset directly and not use the Day/Night plug-in.

Thanks Don. I just got it figured out. The second one was pretty straight forward. The second one was a little trickier but I created a second virtual switch. Then I was able to create to separate conditions. If the first virtual switch triggered when Day/Night was on Day. It would turn on the second switch. Then I could create a second action that said if the second switch and Day/Night was on Night then execute.

By the way, Rigpapa created a new type of virtual switch he calls switchboard. I have not tried it but others are raving about it.
http://forum.micasaverde.com/index.php/topic,120149.0.html

[quote=“Don Phillips, post:4, topic:200521”]By the way, Rigpapa created a new type of virtual switch he calls switchboard. I have not tried it but others are raving about it.
http://forum.micasaverde.com/index.php/topic,120149.0.html[/quote]

I installed it and it works very well. Very easy to use and the Alexa app discovered it immediately. So far so good! I like that the main switchboard shows up as an app in which to create new virtual switches although others may not like that as it just adds to the chaos but I don’t mind it. When it creates it shows up as a light switch instead of just an on/off toggle.

Best Home Automation shopping experience. Shop at getvera!

© 2021 Ezlo Innovation, All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules