{"id":77,"date":"2016-09-30T02:20:23","date_gmt":"2016-09-30T00:20:23","guid":{"rendered":"http:\/\/woli.asp1.at\/?p=77"},"modified":"2017-10-05T22:26:59","modified_gmt":"2017-10-05T20:26:59","slug":"intent-receiversender","status":"publish","type":"post","link":"http:\/\/woli.asp1.at\/en\/intent-receiversender\/","title":{"rendered":"Intent Receiver\/Sender"},"content":{"rendered":"<p>Function to receive and send system intent broadcasts.<br \/>\nWith this function it is possible to give\u00a0other apps (e.g. Tasker) access to the building automation.<\/p>\n<p><!--more--><\/p>\n<hr \/>\n<h5>RECEIVE (FORWARD)<\/h5>\n<p style=\"text-align: left; padding-left: 60px;\">If a broadcast intent\u00a0<strong><em>at.asp1.woli.RECEIVER<\/em><\/strong>\u00a0with (String)Extras\u00a0<em>Data<\/em>, <em>GA a<\/em>nd\u00a0<em>DPT is received<\/em>, the\u00a0<em>Data<\/em>\u00a0will\u00a0be sent as the given\u00a0<em>DPT<\/em>\u00a0 to the specified group address GA.<br \/>\nIf the\u00a0extras <em>Data<\/em>, <em>Adress<\/em>\u00a0and <em>Port<\/em>\u00a0are received, Data is sent to the IP-address Adress on port Port via UDP.<\/p>\n<hr \/>\n<p style=\"text-align: left; padding-left: 120px;\">Example based on\u00a0<b><a href=\"https:\/\/play.google.com\/store\/apps\/details?id=net.dinglisch.android.taskerm&amp;hl=de\" target=\"_blank\" rel=\"nofollow\">Tasker<\/a><\/b><\/p>\n<h6 style=\"padding-left: 120px;\"><em><strong>in WOLi:<\/strong><\/em><\/h6>\n<pre style=\"padding-left: 120px;\">aktivate Intent Receiver<\/pre>\n<h6 style=\"padding-left: 120px;\"><strong><em>in Tasker:<\/em><\/strong><\/h6>\n<pre style=\"padding-left: 120px;\">+new Task \/\/ System \/\/ Send Intent\r\n\r\n[Action] at.asp1.woli.RECEIVER\r\n[Destination] Broadcast Receiver\r\n[Extras] Data, GA and DPT as String<\/pre>\n<p style=\"padding-left: 120px;\"><span style=\"font-size: 8pt;\"><strong><em>e.g. 99,9 to 9\/9\/9 as temperature \u00b0C<\/em><\/strong><\/span><br \/>\n<span style=\"font-size: 8pt;\">[Extra] Data:(String)99,9<\/span><br \/>\n<span style=\"font-size: 8pt;\">[Extra] GA:(String)9\/9\/9<\/span><br \/>\n<span style=\"font-size: 8pt;\">[Extra] DPT:(String)9.001<\/span><\/p>\n<p style=\"padding-left: 120px;\"><span style=\"font-size: 8pt;\"><em><strong>or OFF to 1\/1\/1 as switch (1.001)<\/strong><\/em><\/span><br \/>\n<span style=\"font-size: 8pt;\">[Extra] Data:(String)off<\/span><br \/>\n<span style=\"font-size: 8pt;\">[Extra] GA:(String)1\/1\/1<\/span><br \/>\n<span style=\"font-size: 8pt;\">[Extra] DPT:(String)1.001<\/span><\/p>\n<hr \/>\n<h5>send Intent (funktion)<\/h5>\n<p style=\"padding-left: 60px;\"><span style=\"font-family: helvetica,arial,sans-serif;\">WOLi<\/span>\u00a0sends the intent <em><strong>at.asp1.woli.SENDER<\/strong><\/em>\u00a0with a string extra <em>woli_value.\u00a0 If this is triggered via KNX, additionally the GA is sent in extra<\/em>\u00a0<em>woli_ga<\/em>. If the DPT is specified for the KNX function, data is\u00a0interpreted accordingly, otherwise the byte value (as a string) is transmitted.<\/p>\n<hr style=\"padding-left: 30px;\" \/>\n<p style=\"padding-left: 120px;\">Example based on <b><a href=\"https:\/\/play.google.com\/store\/apps\/details?id=net.dinglisch.android.taskerm&amp;hl=de\" target=\"_blank\" rel=\"nofollow\">Tasker<\/a><\/b><\/p>\n<h6 style=\"padding-left: 120px;\"><strong><em>in WOLi:<\/em><\/strong><\/h6>\n<pre style=\"padding-left: 120px;\">KNX-Settings \/\/ Add GA \/\/ SendIntent<\/pre>\n<h6 style=\"padding-left: 120px;\"><em><strong>in Tasker:<\/strong><\/em><\/h6>\n<pre style=\"padding-left: 120px;\">+ Receive System \/ Intent event\r\n\r\n[action] at.asp1.woli.SENDER\r\n ... no further settings<\/pre>\n<p style=\"padding-left: 120px;\">The variables <strong>%woli_value<\/strong>\u00a0and <strong>%woli_ga<\/strong>\u00a0are available to the triggered task.<\/p>\n<p style=\"text-align: left; padding-left: 60px;\"><em>\u00a0<\/em><\/p>\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Sorry, this entry is only available in German. For the sake of viewer convenience, the content is shown below in the alternative language. You may click the link to switch the active language.Funktion um System Intent-Broadcasts\u00a0zu empfangen und zu versenden. Mit dieser Funktion ist es m\u00f6glich anderen Apps (z.B. Tasker) den Zugriff auf die Geb\u00e4ude-Automation [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[24,30],"tags":[],"amp_enabled":true,"_links":{"self":[{"href":"http:\/\/woli.asp1.at\/en\/wp-json\/wp\/v2\/posts\/77"}],"collection":[{"href":"http:\/\/woli.asp1.at\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/woli.asp1.at\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/woli.asp1.at\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/woli.asp1.at\/en\/wp-json\/wp\/v2\/comments?post=77"}],"version-history":[{"count":16,"href":"http:\/\/woli.asp1.at\/en\/wp-json\/wp\/v2\/posts\/77\/revisions"}],"predecessor-version":[{"id":584,"href":"http:\/\/woli.asp1.at\/en\/wp-json\/wp\/v2\/posts\/77\/revisions\/584"}],"wp:attachment":[{"href":"http:\/\/woli.asp1.at\/en\/wp-json\/wp\/v2\/media?parent=77"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/woli.asp1.at\/en\/wp-json\/wp\/v2\/categories?post=77"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/woli.asp1.at\/en\/wp-json\/wp\/v2\/tags?post=77"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}