It should work if you put the System Time.TimeAndDate property first in the condition test.
It may not be explained clearly in the online help, but for each Task, HouseBot keeps a list of Properties that it is monitoring for changes. Whenever one of these Properties changes, it tests all of the conditions of the Task to see if it should execute it. For the Property list that it is watching, it generally uses the left value of the condition statements. So if you put something that's constant on the left side of the condition statement, the Task will
probably not even get evaluated. I say
probably because if there are other conditions in the task block (like ANDing or ORing conditions), the Task conditions may get evaluated more frequently due to another Property evaluated as the left part of a condition.
So:
Code: Select all
if ('System Time.Sunset Time' is Equal '9/22/2008 8:04 pm' ) Then
will only get evaluated/checked when the HouseBot updates the Sunset Time property value (at midnight).
However this:
Code: Select all
if ('System Time.TimeAndDate' is Equal '9/22/2008 8:04 pm' ) Then
will get evaluated/checked every time the TimeAndDate Property changes (every second).