I have a mixed Insteon/X10 environment. For my outside lights the load is controlled by an Insteon device the control is from an X10 transmitter (address E3).
If
From Sunset
To 11:00:00PM (same day)
Or (
X10 'E3/On (3)' is Received
And X10 'E3/Off (11)' is not Received
)
Then
Set 'Outside Lights' On
Else
Set 'Outside Lights' Off
Outside of Sunset to 11pm the X10 transmitter turns off and on the light, but between sunset and 11pm it will not (overridden by the sunset to 11pm condition)