Serial output of RFlink and rules

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
ewaldharmsen
Normal user
Posts: 66
Joined: 16 Feb 2017, 09:23

Serial output of RFlink and rules

#1 Post by ewaldharmsen » 06 Feb 2018, 21:23

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?

wim16
Normal user
Posts: 88
Joined: 01 May 2017, 20:35

Re: Serial output of RFlink and rules

#2 Post by wim16 » 06 Feb 2018, 22:11

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.

Martinus

Re: Serial output of RFlink and rules

#3 Post by Martinus » 07 Feb 2018, 08:04

Something like this should work:

Code: Select all

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

ewaldharmsen
Normal user
Posts: 66
Joined: 16 Feb 2017, 09:23

Re: Serial output of RFlink and rules

#4 Post by ewaldharmsen » 08 Feb 2018, 13:21

Thanks! That works indeed:)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 25 guests