I’m trying to create a single PLEG to handle Occupancy & Security - all variations
Likely my misunderstanding of how PLEG works is causing me issues.
I have multiple conditions… when I set Actions, if I’ve used a Device in another action it will not allow me to use it again? Event when trying to use Advanced. It does not save anything I add.
I’m using a few Variable Containers to store the states of occupancy. I will use Virtual Switches (and later Scenes) to be triggered by NFC to tell Vera when we are entering/exiting and by what entryway (LR, FD, etc)
Out of the 5 Conditions only two had a problem. After a reboot, only one had a problem. The Action would not add ANY device - but the other Actions were fine.
I deleted the Action and re-added it… it now works.
I suspect this is not a PLEG issue… Vera OS is just crappy.
Sorry to post a false alarm.
I’m working on the syntax now… I think I’m getting the hang of it but I may have some questions soon.
Richard,
I ran into this again on a brand new, never used, PLEG device.
I have almost nothing in it…
Reset NFC vSwitches
Device ID: 1772013-11-09 13:44:29.338 PLC Version: 5.2
Triggers
Name Description Last Trigger State
Aaron_nfc_FD Aaron_nfc_FD is turned on 2013-11-09 12:50:21.513 false
Aaron_nfc_LR Aaron_nfc_LR is turned on 0 false
Conditions
Name Expression Last True State
ON Aaron_nfc_FD or Aaron_nfc_LR 2013-11-09 12:50:21.514 false
… when I try to add Actions nothing saves when I select Finished.
I tried it 4 times… only after I selected the 2 original devices (not related to any devices I had problems with in the other PLEG device), selected Finished, went back into Actions and selected another different device did it save the devices in the config.
Can you use Chrome ?
Before saving …
Put mouse in Window.
Type “Control Shift I” at the same time.
This opens the developers tools. Select the console tab.
Now do your “finished” and see if there are any error messages there.
Next time I need to build a PLEG device I will since I spent 3 hours today, on 30 minutes of actual work) getting this one going. I had to create the device 3 times… the first one had a bug I could not kill (would not set a Variable Container value to true) - I built another and after re inputting everything, it only saved the triggers! The third one finally worked properly.
I’m quickly tiring of the all the Vera issues - and I don’t do anything that complex.
Made a small addition to the PLEG, and used Chrome. The Action itself is being saved when created, no problem.
Problem: new Actions added are only partly being competed. Setting a virtual device works fine, setting a Variable Container variable value is not being set - by either action. The PLEG state/status is accurate, looks like the settings are failing.