SOLVED: RULES: syntax of SENDtoUDP ? How to debug Rules

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

SOLVED: RULES: syntax of SENDtoUDP ? How to debug Rules

#1 Post by tozett » 26 Apr 2016, 09:17

hi,
i started playin with rules, found an example here.
the MQTT is working, the device is working. IR is ok.

but the rule is not working for me.
how do i debug rules? the log dont show execution of my ruleset ... log-level 6 is not enough?

there seems some typo-bug or inconsistency of syntax in the wiki/rules-section. i attach screenshot.

i tried with comma and without, rule is not working at the moment...
do i need quotes for the IP in SendToUDP?
can i send the payload as message, or only a fixed string?

i wanted to try with IR-Codes, and if working, than with RFID.
Attachments
Zwischenablage04.png
Zwischenablage04.png (167.39 KiB) Viewed 2649 times
Last edited by tozett on 26 Apr 2016, 09:28, edited 1 time in total.

tozett
Normal user
Posts: 734
Joined: 22 Dec 2015, 15:46
Location: Germany

SOLVED mostly: Re: RULES: syntax of SENDtoUDP ? How to debug Rules

#2 Post by tozett » 26 Apr 2016, 09:19

found the bug myself in the screenshot. rule is now working.
Question still remains: can is send only fixed strings, or payload (IR-code/RFID-tag-nr?)

this one works:

Code: Select all

on tsop#IR=3772803223 do
  SendToUDP,192.168.14.235,3434,remote-blue
endon
edit: i took my time to read the wiki again and found, that must also be working (will try later)...YES, working ...!yeah

Code: Select all

on tsop#IR do
  SendToUDP,192.168.14.235,3434,[tsop#IR]
endon

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 12 guests