Sunday, August 15, 2010

Help needed - One button to send two different commands depending on current state

0 comments
Dear support,

I would like to use one button only to send two different commands depending on current state:
  • current state=Off, switching to On:
    • the command should be: SE 6/0/0=01\x0A
    • feedback is: eE 6/0/0=01
  • current state=On, switching to Off:
    • the command should be: SE 6/0/0=00\x0A
    • the feedback is: eE 6/0/0=00

For this, I'm using:
  • a button not simulating feedback
  • a command whose value is defined as: SE 6/0/0=0{{1-[value]:0}}\x0A
  • a feedback defined as: Regex=eE 6/0/0=0(.), Data Type=Target Type=Digital, Token type=Both, Off value=0, On value=1

The feedback works as expected and toggles the button state as expected, but mathematical expression remains not interpreted.

Where could be my mistake?

Best regards,

Alexandre Liduena.

Pépinière d'Entreprises COBAS - Zone d'Activités
1010 avenue de l'Europe - 33260 La Teste de Buch
+33 (6) 99 24 33 34 +33 (5) 57 15 23 93




Comments

0 comments to "Help needed - One button to send two different commands depending on current state"

Post a Comment

 

Copyright 2008 All Rights Reserved Revolution Two Church theme by Brian Gardner Converted into Blogger Template by Bloganol dot com