Intent Receiver/Sender

Function to receive and send system intent broadcasts.
With this function it is possible to give other apps (e.g. Tasker) access to the building automation.


RECEIVE (FORWARD)

If a broadcast intent at.asp1.woli.RECEIVER with (String)Extras Data, GA and DPT is received, the Data will be sent as the given DPT  to the specified group address GA.
If the extras Data, Adress and Port are received, Data is sent to the IP-address Adress on port Port via UDP.


Example based on Tasker

in WOLi:
aktivate Intent Receiver
in Tasker:
+new Task // System // Send Intent

[Action] at.asp1.woli.RECEIVER
[Destination] Broadcast Receiver
[Extras] Data, GA and DPT as String

e.g. 99,9 to 9/9/9 as temperature °C
[Extra] Data:(String)99,9
[Extra] GA:(String)9/9/9
[Extra] DPT:(String)9.001

or OFF to 1/1/1 as switch (1.001)
[Extra] Data:(String)off
[Extra] GA:(String)1/1/1
[Extra] DPT:(String)1.001


send Intent (funktion)

WOLi sends the intent at.asp1.woli.SENDER with a string extra woli_value.  If this is triggered via KNX, additionally the GA is sent in extra woli_ga. If the DPT is specified for the KNX function, data is interpreted accordingly, otherwise the byte value (as a string) is transmitted.


Example based on Tasker

in WOLi:
KNX-Settings // Add GA // SendIntent
in Tasker:
+ Receive System / Intent event

[action] at.asp1.woli.SENDER
 ... no further settings

The variables %woli_value and %woli_ga are available to the triggered task.