PLEG: XBMCstate and turning lights off...

Triggers
LivingRoomXBMCVideoStart Video is starting
LivingRoomXBMCVideoStopped Video is stopped

Conditions
LivingRoomMovieLightsOff No LivingRoomXBMCVideoStart
LivingRoomMovieLightsOn No LivingRoomXBMCVideoStopped

Actions for Condition: LivingRoomMovieLightsOff
Living Room Fireplace Light
SetLoadLevelTarget newLoadlevelTarget=0
Living Room Lights
SetLoadLevelTarget newLoadlevelTarget=0

Actions for Condition: LivingRoomMovieLightsOn
Living Room Fireplace Light
SetLoadLevelTarget newLoadlevelTarget=50
Living Room Lights
SetLoadLevelTarget newLoadlevelTarget=50

So what happens is that lights turn off when movie started, come on when stopped. What I’d like to do is when them come on because of them being turned off because the movie starts, turn off after 5 mins.

So if I turn them on manually, I want them to stay on. But if they are turned on because of the movie state, only stay on for 5 mins.

Where would I put the schedule? Or the condition?

Add:

Input Schedule:
AutoOffTimer On: Self ReTrigger Off: Interval 5:00

Add the following action to LivingRoomMovieLightsOn
In the advanced tab for this action … Add the PLEG device … the action is StartTimer … the TimerName is AutoOffTimer

Modify the condition:
LivingRoomMovieLightsOff LivingRoomXBMCVideoStart OR (LivingRoomMovieLightsOn; !AutoOffTimer)

Cheers Richard. That’s perfect!