Hi -
I am having trouble configuring PLEG, and wonder if someone could point me in the right direction?
I have a Fan in my Garage, and I’d like the following:
IF the Garage Door is closed
AND If the Garage Temperature is > 80 degrees OR the Garage Humidity is above 70%
AND If it is between 9am and 9pm
Then
Immediate - Turn on Garage Fan
In 45 minutes - Turn off Garage Fan
Here is what I have:
Triggers
Name Description Last Trigger State
Garage_Humidity_65 Humidity reported by Garage Humidity go above 65 0 false
Garage_Temp_80 Garage Temp temperature goes above 80 degrees 0 false
Schedules
Name Type Time Days Random On Delay Off After Type Off Time Off Days Random Off Delay State Last Schedule
9am_9pm Weekly 09:00:00 1,2,3,4,5,6,7 None Weekly 21:00:00 1,2,3,4,5,6,7 None false 0
Device Properties
Name Device Name Device Variable Last Change Value
garage_door_tripped Garage Door Sensor Tripped 0 false
Conditions
Name Expression Last True State
c1 (NOT Garage_Door_Tripped) and 9am_9pm and (Garage_Humidity_65 OR Garage_Temp_80) 2013-10-02 10:41:32.233 null
I think I may have multiple syntax issues, but the error reported is:
Program Logic : (NOT Garage_Door_Tripped) and 9am_9pm and (Garage_Humidity_65 OR Garage_Temp_80): Invalid Expression Operator: AM_9PM in: TMP_2 and 9am_9pm and TMP_4
Any help is appreciated!