Jon,
I guess I was very lucky if it only works one way and I found that way by chance! (For once it seemed to me like something works out of the box :-)
So first I followed these excellent instructions:
http://wiki.linuxmce.com/index.php/X10and setup the motion detector with EK_AlertType set to 4 (for motion events)
Then in Security->Active Sensors, I set the sensor to "movement" for all house modes (so that I don't have a problem with house modes initially. I can always restrict that later on.)
Then in Events, I respond to the Event "Movement is detected" (And not "sensor is tripped", which probably makes a difference). I turn on the light, then add a DCE Delay command (value in minutes as you pointed out), and then an off command.
Is this how you have it?
To answer asplodzor, I did actually find how to reset the Delay on further movement after reading through some threads on the forum.
It's not very user friendly though. I have to look at the table EventHandler in the database pluto_main. There I find the record corresponding to the event I'm building for this motion detector, and find its FK_CommandGroup value.
Then at the beginning of the list of commands in my Event (meaning before the on/delay/off sequence) I add the command DCE->Stop Pending COmmand group and put the PK_COmmandGroup value there in field 28.
So basically whenever this detector is triggered, it first stops any other command sequence from this same event (which if it was pending, would be waiting for "Delay"), so that sequence never gets to turning the light off, until my newest sequence does so (if not killed by a following sequence and so on).
It seems to work (although I only tested it once since it was freezing outside). There might be a way to identify the command group by its description rather than by its ID, but I have not tried that.
Notification was what I was going to try next. Does anyone have an idea how this event can trigger Orbiters in the house to show me a camera that's next to this motion detector?
It seems very easy to set up this kind of notification on the symbian mobile phone orbiter, but I didn't find how to do it easily for the orbiters inside my house? This would be usefull also for a motion detector at the front door for example, so that my TV would pause and show me the video when someone approaches the front door (which I always thought was a basic feature of LMCE).
Jon: when I come back from vacations (in Australia :-) I want to try and create a template for my Rain8 X10 based irrigation controller. Looks like you;re the right person to ask if I need help?
Jean