Need help with ewelink API

487 views
Skip to first unread message

Rich D

unread,
Nov 27, 2020, 2:08:10 PM11/27/20
to Tasker Google Groups Post
Is it possible to access the ewelink api from tasker?  The docs on the site seem to indicate you need to run it through a Javascript node.I  found the below info on github for accessing the API.  I have been able to get a node.js working with termux and running a few test scripts However I can not get the project in the link to work.  Is it possible to run this code with tasker or do I need to use termux? I have Been trying with termux for a while now but no luck so far...     



Thank,  Rich

Duckredbeard

unread,
Dec 1, 2020, 11:10:40 AM12/1/20
to Tasker
I would also like to get this going.  It seems we could use Tasker to control ewelink (sonoff) devices directly, without using IFTTT.  

João Dias

unread,
Dec 2, 2020, 4:10:23 AM12/2/20
to tas...@googlegroups.com
Javascript is just a different way of doing HTTP requests, so if it works there it should work with the HTTP Request action too :) If you can find a good specification of an API call should look like, I can probably help translate it into Tasker...

Thank you for your contact.

   Join: connect multiple devices (send pushes, remote SMS, notifications) on Android, Windows, Mac, Linux
   Tasker: customize/automate anything on your phone!
   AutoApps: add advanced functionality to Tasker via plugins

     

João Dias


Rich D

unread,
Dec 2, 2020, 5:31:37 AM12/2/20
to Tasker Google Groups Post

Javascript is just a different way of doing HTTP requests, so if it works there it should work with the HTTP Request action too :) If you can find a good specification of an API call should look like, I can probably help translate it into Tasker...

HI João,
It might be best if you just took a quick look at the API web site to see if Tasker integration might be possible. 


I would guess we would start with the "quick start" section.... 

Thanks for looking into this... Rich. 

João Dias

unread,
Dec 2, 2020, 5:40:07 AM12/2/20
to tas...@googlegroups.com
Unfortunately that's just using their javascript library. What's really needed is for example a REST API specification or something similar where they show how to perform the raw HTTP requests...

whitedavidp

unread,
Apr 7, 2022, 8:07:28 PM4/7/22
to Tasker
I too want to use this. Has anyone managed it? Tips/tricks? Thanks

Rich D

unread,
Apr 8, 2022, 6:06:12 AM4/8/22
to Tasker Google Groups Post
I never did find a way to use the API. I simply use Alexa with Auto voice integration now. It handles all my automation needs and I can still use the Google Assistant as before on my device. 

ico

unread,
Dec 24, 2022, 3:38:58 PM12/24/22
to Tasker
It seems like in 2022 there is something called DIY mode for select devices/models. HTTP RESTful API.
Reply all
Reply to author
Forward
0 new messages