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.
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