I realize that I can put more and more logic into a PLEG.
Lately I have been having some memory challenges. The Vera memory seams to drop slowly until the box restarts.
So I have tried to do some cleanup, remove some plugins and put more logic in one PLEG etc.
I have also been looking at the conditions for a PLEG . Is there some arguments that I should avoid? Can some arguments be so heavy that they drain my system?
I often have to choose to use Trigger or Device properties to define my logic. Is one of them better to use than another?
Have you installed a USB memory stick and enable logging to it ?
That’s the first performance/reliability improvement everyone should do!
In PLEG the only thing I try to limit my use of is the use of the NOW keyword.
When you use this … you are creating a 1 minute interval timer. But there are times when it is needed to achieve your logic requirements.
Remember, all conditions are evaluated when ANY input changes. If you put a lot of conditions in the same PLEG, you will be evaluating many conditions that are not needed. So there is some CPU tax for wasted evaluation by having a large number of conditions in the same PLEG.
I have installed two USB memory sticks.
One for Vera logs and one for DataMine.
To reduce potential faults I have currently removed DataMine.
Is there a way to avoid the NOW keyword if you want something to happen x minutes after something else happened?
That is what I was afraid of. Then I need the ones I have…
I guess that using the delay function in the scenes is something one should avoid due to potential Vera restarts?
Is triggers more efficient than device properties? Or are they evaluated equally?