[quote=“RichardTSchaefer, post:48, topic:173496”]Maybe also make sure there is no extra spaces, tabs, new lines, … after the variable names in the input editor.
I thought I checked for that … but maybe I did not.
Maybe start with the default input names …
See if it works that way …
You can rename your variables later in the input editor … it will update the condition expressions for you.
I a thinking that there is some strange non visible non ascii character that it’s hitting.
Start with a simple expression:
EnableBMHeat = ItsWinter
Then:
EnableBMHeat = t1BasementOff
Then:
EnableBMHeat = ItsWinter AND t1BasementOff
See if you can narrow down where the problem is.[/quote]
Spent the past 24 hours “fixing” vera. Renamed every scene & device to ensure none of them started with a digit (and took the opportunity to standardize my naming conventions). Deleted triggers created for PLEG, then the PLEG devices themselves. Deleted the PLCore device & then rm’ed the PLEG files in /etc/cmh-ludl/. Rebooted my Vera3 and started by installing PLCore & PLEG.
Created the first PLEG device and created 2 triggers (leveraging the Google Latitude & the Combination Switch plugins to create a presence “sensor”). This device has 2 triggers: HouseOccupied= ComboSwitch for “present” is active and HouseUnOccupied= ‘NOT HouseOccupied’.
Then created a 2nd PLEG device & created 4 triggers (also leveraging the Combination Switch plugin).
Triggers:
AllLightsOff_1st = Triggered when CombSwitch is on (which it is when all of the lights it monitors are ‘off’)
AllLightsOff_2nd = Same as above trigger but for 2nd floor lights
AllLightsOff_Basement = Same as above trigger but for basement lights
IsWinter = Triggers whenever the SummerMode vSwitch is off.
Restarted a number of times w/o any error messages, etc.
Then I created a condition (well, I created 3). And I got the same error message (“Invalid Value token”) again.
At this point, I’m thinking there’s a bug in PLEG (or PLCore). For some reason, the ConditionMap variable doesn’t get updated correctly (it always contains ‘[]’ when this error occurs). And from then on, it seems to be impossible to create any new working condition in any new PLEG device.
Not sure how/where you save the data (beyond in the devices themselves), but if it’s stored somewhere persistent (other than in the devices), that data store appears to be corrupted in my case(s).