zerop Posted June 19, 2015 Posted June 19, 2015 (edited) I'm trying to use Tasker to send an HTTP Post command but it doesn't seem to be working. I'm triggering the task manually in Tasker so it is running, so it's not a Tasker issue. I'm using the following format for the HTTP Post command http://username:password@xxx.xxx.xxx.xxx:yyyyy/3?0262zzzzzz0F11FF=I=3 I am on my network locally so I am using my internal IP address (xxx.xxx.xxx.xxx) and port (yyyy) and the Insteon device ID zzzzzz but it doesn't seem to work. I'm wondering if it isn't working because my password has an "@" in it. Is the command getting screwed up because it sees the @ in my password and is looking for the IP address directly after that when in reality there is more of my password after that initial @? Another question I have is can you send a HTTP Post command to trigger a program rather than a device? How about to trigger a state variable? If so what is the command to do this? Tasker version: 4.7u1m ISY 994i/Pro firmware: 4.2.18 Edited June 19, 2015 by zerop
MWareman Posted June 20, 2015 Posted June 20, 2015 (edited) An @ in the password will almost certainly cause it to fail. Instead, you'd need to be able do the base64 encoding and add an 'Authorization' header, but the HTTP Get action in Tasker does not allow the addition of arbitrary headers. There are many characters that are 'illegal' as part of the URL, and you'd need to avoid them in any username or password for the URL representation to work. Running programs and setting variables are all supported thru the REST API. They are all documented at http://wiki.universal-devices.com/index.php?title=ISY_Developers:API:REST_Interface Edited June 20, 2015 by MWareman
ISYhbsh01 Posted June 21, 2015 Posted June 21, 2015 If you are trying to send REST commands to the ISY you need to use HTTP Get, not Post.
zerop Posted June 21, 2015 Author Posted June 21, 2015 If you are trying to send REST commands to the ISY you need to use HTTP Get, not Post. Yes, I was trying to send REST commands. I figured this out, thanks! I also found out (for anyone else wondering) the @ in my password did not make a difference. I got it to work. I found this on the wiki that helped a lot. Not sure how I didn't find this before posting my question. Thanks for the help though. http://wiki.universal-devices.com/index.php?title=ISY-99i_Series_INSTEON:Networking:Tasker
Recommended Posts