Sending data to Tasker from outside world

1,046 views
Skip to first unread message

Marcin Szumiło

unread,
Feb 24, 2014, 7:56:35 AM2/24/14
to tas...@googlegroups.com
Hello,

I am trying to integrate Tasker with my home automation - Fibaro,
Now I am able to control it from Tasker.
Small problem is when I need to update statuses.

I am doing requests from Tasker to Fibaro and getting responses about system statuses.
Then I have to do it periodically what is causing high data transmission between devices.

I am wondering if there is any possibility to send data from Fibaro only when it is required.
Fibaro supports HTTP,TCP,UDP sockets which I can use to establish link with other devices.

Is there any possibility for Tasker or their plugins to receive such data?

Thank you in advance for support

Marcin

Scott

unread,
Feb 24, 2014, 9:43:28 AM2/24/14
to tas...@googlegroups.com
The description for the Fibaro app claims it can do push notifications.  Depending on what you can do with that you may be able to use that feature and capture the notifications using AutoNotification.

aweber1nj

unread,
Feb 26, 2014, 12:05:50 PM2/26/14
to tas...@googlegroups.com
Similar to Scott's response (and coincidentally from the same dev), you could look at AutoRemote.  There's a feature to send notifications to Tasker via HTTP (which then uses Google Cloud Messaging).

Scott

unread,
Feb 26, 2014, 2:56:12 PM2/26/14
to tas...@googlegroups.com
Good call.  If you can do it, the AutoRemote way is probably better. 

Marcin Szumiło

unread,
Mar 3, 2014, 4:51:51 AM3/3/14
to tas...@googlegroups.com
Hello,

Thats right Fibaro can send push notifications. And this is one of ways to do it.
But now I can see I can send status request directly to Fibaro and then I am receiving status in JSON format.
I will have to learn how to handle this in Tasker but should not be a big problem.

Now to establish full integration I need to figure out way to send data from Tasker to Fibaro.
Now I can just send commands to turn on and off lights or start scenes.

Unfortunately there is no official way to set Fibaro variable but I found a way to set it with HTTP PUT command from my PC.

What I am dreaming about is to set autovoice recognized words to be set in Fibaro.

I think there should be a  way to get those words being set automatically in Tasker variable
And then need to make profile with task to send this via HTTP PUT towards Fibaro.

I see HTTP PUT is not supported in Tasker yet but I believe I can write JavaScript in Tasker to do so.

Anyone have already experience with such setup?

Regards

Marcin

Евгений Сикиржицкий

unread,
Jun 4, 2014, 9:10:20 AM6/4/14
to tas...@googlegroups.com

Pent

unread,
Jun 4, 2014, 9:18:37 AM6/4/14
to tas...@googlegroups.com
Just to mention that there are UDP and TCP send/receive plugins for Tasker.

Pent

Handy Trisakti

unread,
Jun 10, 2014, 12:32:43 AM6/10/14
to tas...@googlegroups.com
about handling the JSON, here's my example.. 
I am reading JSON from my server php that contains phone numbers & SMS texts.. 
--
A4: HTTP Post [ Server:Port:myserver.net/ Path:hsheetsms/jsontest1.php Data / File:url=%Gsurl Cookies: Timeout:10 Content Type: Output File:gsheeturl.txt Trust Any Certificate:Off ] 
A5: Read File [ File:gsheeturl.txt To Var:%Gsjson ] 
A6: JavaScriptlet [ Code:var ok= writeFile('gsheetsms.txt', '', false) ;
var Arr = JSON.parse( global('Gsjson') );
for (var i = 0; i < Arr.length; i++) {    
    var str1 = i+"|"+ Arr[i].sendTo +"|"+ Arr[i].PhoneNum +"|"+ Arr[i].sms +"\n";
    var ok= writeFile('gsheetsms.txt', str1, true) ;

} Libraries: Auto Exit:On Timeout (Seconds):45 ] 


this should get you started with reading JSON..

David Stone

unread,
Jun 21, 2014, 10:26:14 PM6/21/14
to tas...@googlegroups.com
On Wednesday, June 4, 2014 6:18:37 AM UTC-7, Pent wrote:
Just to mention that there are UDP and TCP send/receive plugins for Tasker.

Pent

Send/Expect is a TCP plugin that I recently published and am supporting.

Malvin Jun

unread,
Jun 26, 2014, 12:49:02 AM6/26/14
to tas...@googlegroups.com
Hi Marcin,

I can send status request directly to Fibaro but Fibaro returns me the status in JSON format. How do you handle that in tasker? Mind teaching me?

Thanks,
Malvin

Handy Trisakti

unread,
Jun 26, 2014, 2:01:57 AM6/26/14
to tas...@googlegroups.com
send us a sample of json, 
I've done a bit with json parsing in Tasker Javascriptlet.. 

Marcin Szumiło

unread,
Nov 29, 2014, 6:43:52 PM11/29/14
to tas...@googlegroups.com
Hey,

Great just installed Send/Expect on my Android Device.
But as I can see it is only available as task plugin?

Or it can work also to trigger profiles in Tasker?

What I would like to achieve is whenever Fibaro is establishing TCP socket and sends message it triggers profile and then execute Task?

Is it possible to achieve?

Best Regrads

Marcin

Marcin Szumiło

unread,
Nov 29, 2014, 6:45:11 PM11/29/14
to tas...@googlegroups.com
Malvin,

As Handy says you have to handle it in JavaScript.

Best Regards

Marcin

Marcin Szumiło

unread,
Nov 29, 2014, 6:47:13 PM11/29/14
to tas...@googlegroups.com
Hey,

Thats correct but it uses HTTPS which is not supported by FIbaro :(

David Stone

unread,
Nov 30, 2014, 1:25:17 AM11/30/14
to tas...@googlegroups.com
On Saturday, November 29, 2014 3:43:52 PM UTC-8, Marcin Szumiło wrote:

Great just installed Send/Expect on my Android Device.
But as I can see it is only available as task plugin?

Or it can work also to trigger profiles in Tasker?

Send/Expect is an Action (Task) plugin only.

David 

Paul Loader

unread,
Nov 30, 2014, 5:31:58 AM11/30/14
to tas...@googlegroups.com
Slightly off topic, but I use a vera lite to control my home automation system and have the autovera plugin installed. This sends any required updates directly to my phone as they happen. Tasker then acts on these and I use a zoom widget to show the status of all my devices on the home screen. It's still a work in progress, but the results are fantastic.

Alex Zimmermann

unread,
Apr 25, 2015, 7:27:39 AM4/25/15
to tas...@googlegroups.com

Dear Marcin,

Did you have success to send Fibaro commands to Tasker and to trigger tasks?

I have the same problem and would appreciate if you could share your progress.

Best regards, Alex

Reply all
Reply to author
Forward
0 new messages