Comfort Automation/ Security System Forums
Pause between X10 commands - Printable Version

+- Comfort Automation/ Security System Forums (https://www.comfortforums.com)
+-- Forum: Third Party (interfacing to Comfort) (https://www.comfortforums.com/forum-5.html)
+--- Forum: X10 (https://www.comfortforums.com/forum-33.html)
+--- Thread: Pause between X10 commands (/thread-2756.html)



- HenleyBranch - 03-03-2012

I have noticed that if multiple x10 commands are sent on a response - the X10 commands *can* be unreliable. They are more reliable if sent in sequence with a gap between them (which is the default case with Indigo for Mac when programming lighting control). Obviously I could use Timers, but that involves setting a response for each X10 action, and then Doing each response after the timer expires. Is there an easy way in a response, of Comfort simply pausing, before executing the next line of code? The following code sets night lights and turns off bedside lights in children\'s bedrooms.

If Security Mode <> VacationMode Or SecurityMode <> Away Mode Then
X10 Extended 1 49
X10 B4 Extended 1
X10 B2 Extended 1
X10 B6 Extended 1
X10 B1 Off
X10 B3 Off
End if

Also, does anyone know a way of clipping code from the Response Source window to paste onto this forum. I just had to retype that.

Henley


- ident - 03-03-2012

The end of every x10 signal has a silence of 3 cycles of 50hz as required by the X10 specification

another way of generating a delay between successive x10 commands is to insert a pulsed output command in between. eg pulse Output X for 2 units of 50 ms means there will be a 100 ms delay due to the pulse action  Use an unused output for the pulse action


You can copy the actions in a Response by Right-clicking a Response and selecting Edit Response Manuallly
Then copy and paste the text



- HenleyBranch - 03-03-2012

Thanks Ident. Very helpful.

Henley


- TheMax74 - 03-06-2012

Very helpful, thanks.