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?
Serial output of RFlink and rules
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 88
- Joined: 01 May 2017, 20:35
Re: Serial output of RFlink and rules
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.
I think your if statement at least needs some quotes around the value you're testing.
Re: Serial output of RFlink and rules
Something like this should work:
Code: Select all
on !RFLink#NewKaku;ID=12345678;SWITCH=a;CMD=ON; do
// do something
endon
-
- Normal user
- Posts: 66
- Joined: 16 Feb 2017, 09:23
Re: Serial output of RFlink and rules
Thanks! That works indeed:)
Who is online
Users browsing this forum: Anthropic Claude Bot [bot] and 24 guests