Help I’m Stuck… 
I’m getting this error.
Program Logic : OutletOff ModeState eq %u2018Idle%u2019 : Invalid Expression Operator: MODESTATE in:OutletOff ModeState eq %u2018Idle%u2019
What I am trying to do is turn the outlet off if the AC is Idle and turn on the outlet if the AC is cooling. This is what I have done so far.
Sorry for the confusion.
Offen in the examples a condition is written as
ConditionName Condition Expression
In your case the Condition name is: OutletOff
and the Expression should be: ModeState eq ‘Idle’
What you have for the condition expression is:
OutletOff ModeState eq ‘Idle’
And that’s not legal syntax.
Just delete the OutletOn and OutletOff from your expressions.
I changed it but it still not working.
I’m getting:
Program Logic : ModeState eq %u2018Idle%u2019 : Invalid Expression Operator: U2018IDLE in:ModeState eq %u2018Idle%u2019
I can tell from your screen shots that you are running an old version of PLEG.
I had some problems with String variables earlier that I fixed.
You need to upgrade:
See:
http://forum.micasaverde.com/index.php/topic,14446.msg114092.html#new
After upgrading … Edit each condition. Add a couple characters then remove them.
Then Save.
I updated but still having the same problem.
Program Logic : ModeState eq %u2018Idle%u2019: Invalid Expression Operator: U2018IDLE in:ModeState eq %u2018Idle%u2019
I deleted it and started over but the same error.
I updated the Vera Firmware to 1.5.622
I deleted and started over again.
Same error.
Program Logic : ModeState eq %u2018Cooling%u2019 : Invalid Expression Operator: U2018COOLING in:ModeState eq %u2018Cooling%u2019
You need to update the version of the Program Logic Event Generateror and Program Logic Core plugins … using the instructions in the formum topic I referenced earlier.
Last night I did what the thread said. After each one the browser said ok and Vera restarted.
So am I to assume it didn’t work?
Thanks
Jim
At the end … did you restart the browser ?
Still did not work.
- Opened IE browser. Lets call it Window 1.
- Opened another IE browser window not a tab. Lets call it Window 2.
- In windows 1 I opened UI5.
- In window 2 I put http://192.168.1.210:3480/data_request?id=update_plugin&Plugin=3018
Window 2 said ok. The UI5 in window 1 said Unit Busy. I waited until it was done. About 15 seconds.
- In window 2 I put http://192.168.1.210:3480/data_request?id=update_plugin&Plugin=3066
Window 2 said ok. The UI5 in window 1 said Unit Busy. I waited until it was done. About 15 seconds.
- In window 2 I put http://192.168.1.210:3480/data_request?id=update_plugin&Plugin=3086
Window 2 said ok. The UI5 in window 1 said Unit Busy. I waited until it was done. About 15 seconds.
- I clicked reload in UI5. Then I closed all the browsers and reopened it and loaded Vera.
Vera says version 4.2 is installed. What is the current version?
I must be doing something wrong or missing something…
Can’t I just uninstall and install the newer version?
Jim
Sorry for all of the updates, that was needed anyway …
I just notices that you did not use that same quote mark to open and close the literal string.
You can wrap a literal string, i.e. Cooling, Heating, and Idle, with a single quote ’ or a double quote ". They must be the same quote for both the beginning and end of the string. You used the ` quote which is a backwards single quote. That’s not recognized.