Page 1 of 1

Serial output of RFlink and rules

Posted: 06 Feb 2018, 21:23
by ewaldharmsen
Hi all,

I want a rule based on incoming serial text: !RFLink#TriState;ID=0a8aaa;SWITCH=2;CMD=ON;

So I tried this ruleset:
On [rflink#TriState] do
if [%eventvalue%]=!RFLink#TriState;ID=0a8aaa;SWITCH=2;CMD=ON;
SOME COMMAND
endif
endon

The on statement does work, the if statement doesnt.
I have verified that the eventvalue date indeed is !RFLink#TriState;ID=0a8aaa;SWITCH=2;CMD=ON;

Anybody knows if this is even possible?

Re: Serial output of RFlink and rules

Posted: 06 Feb 2018, 22:11
by wim16
Do you see the eventvalue in the log (after =)?
I think your if statement at least needs some quotes around the value you're testing.

Re: Serial output of RFlink and rules

Posted: 07 Feb 2018, 08:04
by Martinus
Something like this should work:

Code: Select all

on !RFLink#NewKaku;ID=12345678;SWITCH=a;CMD=ON; do
  // do something
endon

Re: Serial output of RFlink and rules

Posted: 08 Feb 2018, 13:21
by ewaldharmsen
Thanks! That works indeed:)