Re: Insteon - Ysi99 - Would like some help!

149 views
Skip to first unread message

Pent

unread,
Dec 2, 2012, 2:20:22 AM12/2/12
to Tasker
Those look more likely to be HTTP Get URLs to me.

Pent

Ruy Aguilar

unread,
Dec 3, 2012, 8:07:32 PM12/3/12
to tas...@googlegroups.com
Thanks for your help Pent. I tried HTTP Get but it still does not work. Sorry to bug you but can you help me further.

I would really appreciate it.

Pent

unread,
Dec 4, 2012, 2:02:51 AM12/4/12
to Tasker
> Thanks for your help Pent. I tried HTTP Get but it still does not work.

Nevertheless, it's almost certainly HTTP Get. Maybe you're putting
the parts of the URL in the wrong fields ? Try exporting the task
description (not XML) here (long-click on task).

Pent

Ruy Aguilar

unread,
Dec 4, 2012, 8:55:00 AM12/4/12
to tas...@googlegroups.com
This is the description I got .


A1: HTTP Get [ Server:Port:username:pass...@192.168.1.xx:xxx Path:WEB/INDEX.HTM#/nodes/1D A6 79 1/cmd/DOF Attributes: Cookies: Timeout:10 Mime Type: Output File: ]

Ruy

Ruy Aguilar

unread,
Dec 5, 2012, 12:41:58 PM12/5/12
to tas...@googlegroups.com
Pent:

My friend thanks a lot for your help. I was able to make this work. i actually was using the wrong paths. Found the right ones here http://www.universal-devices.com/mwiki/index.php?title=ISY-99i_Series_INSTEON:REST_Interface
 If you can help me. I am not very proficient with tasker. I am learning as I go and reading forums and how tos. But now I have made it work. With this

To turn OFF device 1D A6 79 (A Lamp)

A1: HTTP Get [ Server:Port:username:pass...@xx.xxx.x.xxx:xxx Path:/rest/nodes/1D A6 79 1/cmd/DOF Attributes: Cookies: Timeout:10 Mime Type: Output File: ]

To turn ON

A1: HTTP Get [ Server:Port:username:pass...@xx.xxx.x.xxx:xxx Path:/rest/nodes/1D A6 79 1/cmd/DON Attributes: Cookies: Timeout:10 Mime Type: Output File: ]

Now this are 2 separate tasks and I have to trigger one or the other depending on if the lamp is on or off.

I would like to have the one single task that can trigger the right command depending on the state of the device using this

/rest/status/<node> -- returns the status for the given node

So if the status of 1D A6 79 is On it will trigger the command

To turn OFF device 1D A6 79 (A Lamp)

A1: HTTP Get [ Server:Port:username:pass...@xx.xxx.x.xxx:xxx Path:/rest/nodes/1D A6 79 1/cmd/DOF Attributes: Cookies: Timeout:10 Mime Type: Output File: ]

If is off it will trigger the other task

I would really appreciate your help.

Thanks.

On Tuesday, December 4, 2012 8:55:00 AM UTC-5, Ruy Aguilar wrote:
This is the description I got .


A1: HTTP Get [ Server:Port:username:password@192.168.1.xx:xxx Path:WEB/INDEX.HTM#/nodes/1D A6 79 1/cmd/DOF Attributes: Cookies: Timeout:10 Mime Type: Output File: ]

Matt R

unread,
Dec 5, 2012, 1:34:13 PM12/5/12
to tas...@googlegroups.com
Just add each action to one task:
 
A1: HTTP Get status action
A2: If %HTTPD ~ on ( <--- you'll need to check what actually gets returned in %HTTPD)
A3: HTTP Get off action
A4: Else
A5: HTTP Get on action
A6: Endif
 
*Note If, Else, and Endif are found in the Task category.
 
Matt

Ruy Aguilar

unread,
Dec 5, 2012, 3:21:32 PM12/5/12
to tas...@googlegroups.com
How can I check what the reponse is for HTTP GET status ( <--- you'll need to check what actually gets returned in %HTTPD) ?

GermainZ

unread,
Dec 5, 2012, 4:16:36 PM12/5/12
to tas...@googlegroups.com
Output %HTTPD using a Toast/Popup/Scene.

Ruy Aguilar

unread,
Dec 5, 2012, 4:33:21 PM12/5/12
to tas...@googlegroups.com

Thanks. Hopefully I will get this all done sometime :)

This is the response I get when I run the HTTP Get to get the status of the device

<?xml version="1.0"
encoding=UTF-8"?><properties><property id="ST" value="0"
formatted="Off" uom="on/off"/></properties>

How should I use this reponse on the If action to just look at the formatted=on/off and act based on that?

Thanks

Matt R

unread,
Dec 5, 2012, 5:22:53 PM12/5/12
to tas...@googlegroups.com
You can use * (asterisk) as a wildcard, so just do If %HTTPD ~ *formatted="Off"*.
 
Matt

Ruy Aguilar

unread,
Dec 5, 2012, 6:54:55 PM12/5/12
to tas...@googlegroups.com
Matt, Germain and Pent:

You guys are awesome. I have accomplished what I wanted. Could not have done it without your help. I will keep on working with tasker and probably will have more questions in the future.

Thanks again.
Reply all
Reply to author
Forward
0 new messages