Comfort Home Automation/ Security System Forums Home
Home Search search Menu menu Not logged in - Login | Register

Pause between X10 commands
 Moderated by: adlim
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Saturday Mar 3rd, 2012 05:37 am
   PM  Quote  Reply 
1st Post
HenleyBranch
UCM Pi Users
 

Joined: Saturday Apr 30th, 2011
Location: United Kingdom
Posts: 75
Status: 
Offline

  back to top

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



 Posted: Saturday Mar 3rd, 2012 07:07 am
   PM  Quote  Reply 
2nd Post
ident
Administrator


Joined: Wednesday Aug 9th, 2006
Location: Singapore
Posts: 3493
Status: 
Offline

  back to top

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



 Posted: Saturday Mar 3rd, 2012 10:37 am
   PM  Quote  Reply 
3rd Post
HenleyBranch
UCM Pi Users
 

Joined: Saturday Apr 30th, 2011
Location: United Kingdom
Posts: 75
Status: 
Offline

  back to top

Thanks Ident. Very helpful.

Henley



 Posted: Tuesday Mar 6th, 2012 03:21 pm
   PM  Quote  Reply 
4th Post
TheMax74
Member


Joined: Monday Jul 16th, 2007
Location: Italy
Posts: 247
Status: 
Offline

  back to top

Very helpful, thanks.



 Current time is 08:08 am
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems