Trying to Understand PLEG, Will this work for Thermostat Scheduling?

Hello,

New to PLEG and trying to setup a weekly schedule for my Honeywell thermostat with PLEG instead of the built in scheduler on the thermostat. Can someone look over my PLEG report and let me know if it looks ok before I activate it?

Report:

Schedules

Name	Type	Time	Days	Random On Delay	Off After Type	Off Time	Off Days	Random Off Delay
WeekdayWake	Weekly	07:00:00	1,2,3,4,5	None	None			None
WeekdayLeave	Weekly	08:00:00	1,2,3,4,5	None	None			None
WeekdayReturn	Weekly	16:00:00	1,2,3,4,5	None	None			None
WeekdaySleep	Weekly	23:00:00	1,2,3,4,5	None	None			None
Conditions

Name	Expression
WeekdayWake	WeekdayWake
WeekdayLeave	WeekdayLeave
WeekdayReturn	WeekdayReturn
WeekdaySleep	WeekdaySleep
Actions

Actions for Condition: WeekdayWake

Immediate

Device	Action	Arguments
Thermostat	SetCurrentSetpoint	 NewCurrentSetpoint=67
Actions for Condition: WeekdayLeave

Immediate

Device	Action	Arguments
Thermostat	SetCurrentSetpoint	 NewCurrentSetpoint=64
Actions for Condition: WeekdayReturn

Immediate

Device	Action	Arguments
Thermostat	SetCurrentSetpoint	 NewCurrentSetpoint=67
Actions for Condition: WeekdaySleep

Immediate

Device	Action	Arguments
Thermostat	SetCurrentSetpoint	 NewCurrentSetpoint=65

Since you did not specify an OFF event the Schedules will always be true when they are evaluated. As a result … the conditions will always be true.

You need to place an underscore as the first letter of each condition … so that it will fire the actions even if the condition is already true.

Pretty simple/straight forward use case.

Richard, is the underscore combined with an Off schedule the method to have PLEG evaluate a condition for the duration of a schedule as opposed to just at the On time? Assuming yes, how often is the action then fired for that duration?