Sunday, August 15, 2010

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

0 comments
[value] is not a predefined token you can use in commands. So if you
change the capture group to be called "[value]" then it will set a
token on the button called [value] and it should then work as
expected.
You also do not need to define an on and off value if the captured
value is actually a 1 or 0.

In the next release coming soon, you could set your command like this
(assuming button is on digital join 10):
SE 6/0/0=0{{1-[@d10]:0}}\x0A

Jarrod

On Aug 16, 7:29 am, Alexandre Liduena <a.lidu...@domotic-
xperience.com> wrote:
> 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.
>
> Alexandre Liduena
> Pépinière d'Entreprises COBAS - Zone d'Activités
> 1010 avenue de l'Europe - 33260 La Teste de Buch
> a.lidu...@domotic-xperience.com
> +33 (6) 99 24 33 34     +33 (5) 57 15 23 93http://www.domotic-xperience.comhttp://www.facebook.com/pages/Domotic-Xperience/120903511289340

--
You received this message because you are subscribed to the Google Groups "CommandFusion" group.
To post to this group, send email to commandfusion@googlegroups.com.
To unsubscribe from this group, send email to commandfusion+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/commandfusion?hl=en.

Comments

0 comments to "Re: 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