Jump to content

A few things I've done with Mobilinc and Tasker


abuttino

Recommended Posts

Posted
Do variable splits EXACTLY like I did above. If you paste that code into Tasker, it should create all the actions. If not, I'll export the xml for you

 

Sent from my XT1060 using Tapatalk

 

Thanks.

 

I tried the code below just to test if variable but this did not change from ON to OFF or vice versa.

 

  A3: HTTP Get [ Server:Port:%HALURL Path:/rest/status/%NODEFDOOR Attributes: Cookies: Timeout:10 Mime Type: Output File: Trust Any Certificate:Off ] 
  A4: Variable Set [ Name:%status To:%HTTPD Do Maths:Off Append:Off ] 
  A5: Variable Split [ Name:%status Splitter:<?xml version="1.0" encoding="UTF-8"?>

 

Do I have the correct output format? What is best "variable split" format should I use?

 

Thanks.

Posted

Did you use my task? The variable splits were already written to use the XML that it creates when you address any node on the isy via the rest API..

 

You have to split the output 3 times to get the proper values. And anything with more than 0 is sets the Tasker variable %HALFDOOR to ON

 

Sent from my XT1060 using Tapatalk

Posted
Did you use my task? The variable splits were already written to use the XML that it creates when you address any node on the isy via the rest API..

 

You have to split the output 3 times to get the proper values. And anything with more than 0 is sets the Tasker variable %HALFDOOR to ON

 

Sent from my XT1060 using Tapatalk

 

Yes, I used your task and I did not get the correct results. I was thinking that maybe because my HTTPD format was different from yours? What do you think?

Posted
can you get on google hangouts?

 

My user name here @gmail.com

 

Sent from my XT1060 using Tapatalk

 

Ok. will message you now.

 

Or would you be able to send me your XML file.

Posted



1371767176158
1401806636236
277
NFC/AV-Front Door
10

118
%HALURL
/rest/nodes/%NODEFDOOR/cmd/DON



text/xml




%HALFDOOR
0
OFF




118
%HALURL
/rest/nodes/%NODEFDOOR/cmd/DOF



text/xml




%HALFDOOR
0
ON




66
Light Control
Front Door Icon

/mnt/sdcard/Tasker/icons/landscapeLightsOFF-44x44@2x.png



%HALFDOOR
0
OFF




38


28490


Set HAL-Patio Light PowerToggle to on
java.lang.String
varID state
java.lang.String
true
java.lang.Boolean
true
java.lang.String
HAL-Patio Light PowerToggle
java.lang.String


com.painless.pc
Modify PowerToggle state



%HALFDOOR
0
ON




28490


Set HAL-Patio Light PowerToggle to off
java.lang.String
varID state
java.lang.String
true
java.lang.Boolean
false
java.lang.String
HAL-Patio Light PowerToggle
java.lang.String


com.painless.pc
Modify PowerToggle state



%HALFDOOR
0
OFF




31664


#TFdoor# = %HALFDOOR
java.lang.String
org.zooper.zw.tasker.var.extra.STRING_TEXT
java.lang.String
true
java.lang.Boolean
1
java.lang.Integer
%HALFDOOR
java.lang.String
Fdoor
java.lang.String


org.zooper.zwpro
Zooper Widget Pro Variable



300
End


118
Front Door
%HALURL
/rest/status/%NODEFDOOR








547
%status
%HTTPD




590
%status
<?xml version="1.0" encoding="UTF-8"?><properties><property id="ST" value="



590
%status2
" formatted="



547
%HALFDOOR
ON




%status21
3
0




547
%HALFDOOR
OFF




%status21
2
1




37


%HALSCN
0
ON




66
Light Control
Front Door Icon

/mnt/sdcard/Tasker/icons/landscapeLightsON-44x44@2x.png



%HALFDOOR
0
ON




hd_aaa_ext_bulb



 

Sent from my XT1060 using Tapatalk

Posted

This should be better:

 



1371767176158
1402022884210
243
NFC/AV-Front Door 2Share
10

118
%HALURL
/rest/nodes/%NODEFDOOR/cmd/DON



text/xml




%HALFDOOR
0
OFF




118
%HALURL
/rest/nodes/%NODEFDOOR/cmd/DOF



text/xml




%HALFDOOR
0
ON




118
Front Door
%HALURL
/rest/status/%NODEFDOOR








547
%status
%HTTPD




590
%status
<?xml version="1.0" encoding="UTF-8"?><properties><property id="ST" value="



590
%status2
" formatted="



547
%HALFDOOR
ON




%status21
3
0




547
%HALFDOOR
OFF




%status21
2
1




300
End


hd_aaa_ext_bulb



 

Put that code in a file and call it tasksample.tsk.xml

 

Place it in sdcard/Tasker/tasks then use Tasker to import it by going to the tasks tab then long press the tasks tab and import

 

 

Sent from my XT1060 using Tapatalk

  • 3 weeks later...
Posted

Who's Wes? Those icon's look good.

 

I'm following along this post, almost got it. Just working out network resources sending URL to autoremotejoaomgcd.com. Keeps coming back TCP client request failed. I can manually send them from the PC and the cell phone acts accordingly. Just not from ISY.

 

Also was wondering, how you are using the tasker scene? Is tasker scene changing the icon from on to off, or zooper widget?

Posted

Wes is the creator of mobilinc..

 

Show me a screenshot of one of your network objects to send a message to the phone.

 

Of course, blur out the api keys.

 

Zooper is on the main screen that makes a call to send the on/off code, then, the ISY sends a msg back to the phone to reflect its new status..

 

Message: lightstatus=:=lrlamp=:=on

 

Profile:

auto remote message: lightstatus

 

Task:

If %arcomm2 = on

Variable set %LRLAMP to ON if

 

%arcomm1 = lrlamp

 

Keep adding to that task for each light.

 

This should be a good starter.

 

Sent from my Moto X

Posted

I'm trying to get rid of repetitive tasks/code. I like your code of tasks you posted earlier, gave me a good starting point.

Your %%arcomm(1) = %arcomm(2) was genius and will cut down on repetitive code.

 

I'm trying to see if Zooper Widget Variable plugin can handle the same thing but without luck so far.

example

#T%HouseRoom# = %onoff

I don't want to do IF statements for each room/light.

 

Question on your changing icons to show on/off. Do you use Zooper bitmap icon set, or can tasker change the icon right from the task?

Posted

Zooper widgets are written as #Tlrlamp# . No percent in those..

 

Let me export my profile.. This took me days to develop.

 

Sent from my Moto X

Posted
Zooper widgets are written as #Tlrlamp# . No percent in those..

 

Ya I am trying to find a way to pass a Tasker variable that contains the name of the ZW variable.

Just like we could in Tasker with %% reference.

 

Tasker

%HouseRoom = "bedroom"

%onoff = "on"

 

ZW plug-in

#T%HouseRoom# = %onoff

Which would equate to #Tbedroom# = on

 

That way I don't have to have 100 of IF/ElseIf states for each ZW variable.

Thanks, I'm starting to look into your code.!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...