Running an action only once a day and only in the morning

Hi Guys,

Sorry to have to ask this, I know the answer is somewhere in the forum (as i have used it before) but after a lot of searching i cant find it so hear goes:

I would like to run an action (some Lua) when a motion sensor detects movement. However I want to do this only between the hours of 6am and 11am and only once a day.

The basic condition is simple: (06:00:00; HallwayMovement; 11:00:00)

However i cant remember how to make it only happen once a day. I seem to remember doing something like adding on 5 hours to another input or something, but not sure…

Thanks in advance.

ConditionName: (06:00:00; HallwayMovement; 11:00:00) and (ConditionName; HallwayMovement > 5:00:00)

The second part means that the HallwayMovement must be at least 5 hours since the last time the condition was true.

Thats it. Perfect thank you so much Richard.