ferdies Posted June 6, 2014 Posted June 6, 2014 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.
abuttino Posted June 6, 2014 Author Posted June 6, 2014 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
ferdies Posted June 6, 2014 Posted June 6, 2014 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?
abuttino Posted June 6, 2014 Author Posted June 6, 2014 can you get on google hangouts? My user name here @gmail.com Sent from my XT1060 using Tapatalk
ferdies Posted June 6, 2014 Posted June 6, 2014 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.
abuttino Posted June 6, 2014 Author Posted June 6, 2014 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
abuttino Posted June 6, 2014 Author Posted June 6, 2014 Let me strip all my addins out and send that again Sent from my XT1060 using Tapatalk
abuttino Posted June 6, 2014 Author Posted June 6, 2014 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
MolsonB Posted June 24, 2014 Posted June 24, 2014 Where did you find the icons for Zooper? I'm looking all over google images for something.
MolsonB Posted June 25, 2014 Posted June 25, 2014 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?
abuttino Posted June 25, 2014 Author Posted June 25, 2014 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
MolsonB Posted June 26, 2014 Posted June 26, 2014 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?
abuttino Posted June 26, 2014 Author Posted June 26, 2014 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
abuttino Posted June 26, 2014 Author Posted June 26, 2014 File is better.. https://docs.google.com/file/d/0B06w1aG ... cslist_api Import that profile
MolsonB Posted June 26, 2014 Posted June 26, 2014 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.!
abuttino Posted June 26, 2014 Author Posted June 26, 2014 What you want to do isn't possible with the zw plugin.. They won't even allow you to use local variables Sent from my Moto X
Recommended Posts
Archived
This topic is now archived and is closed to further replies.