As you already know, I have only one PLEG with more than 80 conditions of all types: lights, security, music, presence… I am thinking of splitting them into three PLEGs in categories:
[li]Security and Presence[/li]
Not exactly, but I think that I could have like 30 conditions for each PLEG. But many triggers would be in every PLEG, for example, I always check the status of a light for turning other lights (lights PLEG), the same light is checked when opening the lock (Security and Presence PLEG) and the same light is checked with a schedule to see if music should be turned on or not (Music PLEG). Do you think that I would have a performance improvement? I don’t worry about ‘organization’ and that, as you remember, I use pretty long names, although it is weird, but it let me find my way very easy in my actual > 80 conditions in only one PLEG.
May I ask how many Plegs do you use? What type of Vera do you have? I have VeraLite with USB logging.
If I do it, I found a way (I think) to make the splitting a little ‘easier’:
[ol][li]From my actual 80 conditions PLEG, in the advanced tab, I copy in a safe place the value of triggers, condition map, schedules, properties and actions. I am ignoring the Object Status Map as I don’t see any sense in saving it.[/li]
[li]I create two new instances of PLEG[/li]
[li]I do the Vera Dance, (reload, ctrl+f5)[/li]
[li]I create on each new PLEG instance an arbitrary input, schedule, property, condition and action so the variables are created in the advanced tab (they do not appear at first).[/li]
[li]I delete the contents and paste on each new instance of PLEG the values backed up in step 1 into the advanced tab[/li]
[li]Save and Vera Dance[/li]
[li]Now I have three identical instances of PLEG[/li]
[li]Start deleting the triggres, schedules, properties and conditions in each PLEG so I only leave the ones I need in each category[/li]
[li]Save and Vera Dance[/li][/ol]
I know it works, I tried, my question is more inclined to the performance effects that I would have. Should they improve? I am looking more for an opinion.
Thanks as always.