Switchlinc relay double and triple tap events

View: New views
1 Messages — Rating Filter:   Alert me  

Switchlinc relay double and triple tap events

by Jeff Siddall :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I recently discovered that the Smarthome Switchlinc relay 2-way modules
  send unique X10 data for double tap and triple tap.  Cool, I thought,
and tried to add some code to do different things depending on how many
"taps" I used.  Unfortunately I can't get it working.  The manual for
the module says:

When the top rocker is tapped twice the PLC transmission is: Housecode &
Unit Code (once) Housecode & ON (twice)

I assume that means that if the module was using address A10 I would get
X10 data like XAAAJAJ

Likewise when the top rocker is tapped three times the PLC transmission
is: Housecode & Unit Code (twice) Housecode & ON (3 times)

I assume that means that if the module was using address A10 I would get
X10 data like XAAAAAJAJAJ

So I expected that if I set a serial item to "XAAAJAJ" I could use
state_now on that item to do something when I receive a double tap on.

Unfortunately none of this seems to work.  Instead I get this in the
logs when I double tap on:

07/03/08 11:50:25 PM XAA: Kitchen_WS manual
07/03/08 11:50:25 PM X10: Incoming data=XAA
07/03/08 11:50:26 PM X10: Incoming data=XAJ
07/03/08 11:50:26 PM X10: Merged string data=XAAAJ
07/03/08 11:50:26 PM X10: Event found for merged data=XAAAJ
07/03/08 11:50:26 PM XAAAJ: Kitchen_WS on
07/03/08 11:50:26 PM X10: Incoming data=XAAAJ
07/03/08 11:50:26 PM X10: Merged string data=XAAAAAJ
07/03/08 11:50:26 PM X10: Duplicate data ignored data=XAJ time=428.91015625

Everything looks like it is going good until the "merged string
data=XAAAAAJ" log entry.  Where did the two extra AA's come from?  And
why is the second "XAJ" being ignored even though I have an "XAAAJAJ"
serial item that should match?

Any advice would be appreciated.

Thanks,

Jeff

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365

LightInTheBox - Buy quality products at wholesale price