Is it possible to have an IF statement in a PLEG’s list of actions?
Let’s say I have a condition that is triggered when we go to sleep.
When it is triggered it closes all shutters except the shutter in the parents room.
I would like that last shutter to be closed as well if it is “winter”, i.e. between October 1st and May 31st.
Can I somehow check this condition as part of the actions of the “GoingToSleep” condition (without using LUUP code)?
Is the best approach to add another condition which is “GoingToSleep AND OctoberToMay” (OctoberToMay being a long timer)?
Will such a long timer affect VeraLite performance in any way? (I am already in a problematic situation with my VeraLite memory)
[quote=“C4Vette, post:2, topic:185741”]PLEG has schedules. Create it under inputs with a start date and an end date.
While the schedule is true it is your ‘IF’.[/quote]
As I wrote above, this means creating 2 condition: One with the “winter” timer for the parents shutter and one without the timer for all other shutters.
I just noticed that when I create a schedule with start type “Absolute” on October 1st, I can’t have an interval of 8 months.
Of course I can use a stop type “Absolute”, but it is recommended to use stop type interval, for cases when Vera restarts.
@RichardTSchaefer (or anyone else) - How would you recommend me to implement this schedule, to make sure a Vera restart will not prevent the “Winter” schedule from turning off?
You will need to still use an absolute schedule … I suggest you do this around 5:00 AM or just before you normally awake in the morning …
Chances are Vera is not very active (After the nightly heal) and likely not to restart during that time.
Best Home Automation shopping experience. Shop at Ezlo!