Page | 521
19.1.7
Retrieving ISY Variables into a Tasker variable
This is how to get the content of an ISY variable with Tasker - and store the results in
Tasker Global Variables.
section. This is so you get nice, fast API access
on the same LAN as your ISY - but secure remote access (either directly, or via the ISY
Portal) while away from home.
19.1.8
Master Variable Retrieval Task
First - a master task that will be called by others... I called mine 'ISY-GetStatus-Var'.
•
'Anchor' - 'start_request'
•
'HTTP Get' - Server:Port='%IsyUrl' -
Path='%URLPrefix/rest/vars/get/%par1/%par2' - Continue Task After
Error='Checked' (If direct and self signed cert, check 'Trust Any Certificate')
•
'Wait' - 'Seconds'=2 - If %HTTPR eq -1
•
'Goto' - Type='Action Label' - Label='start_request' - If %HTTPR eq -1
•
'JavaScriptlet' - Paste the 'Code' from the next box...
•
'Return' - Value='%varLastVal' - Stop=Checked
The content of the JavaScriptlet is:
•
var parser = new DOMParser();
•
var xmlDoc = parser.parseFromString(global('HTTPD'),"text/xml");
•
var varHeader = xmlDoc.getElementsByTagName("var")[0];
•
setGlobal("varLastType",varHeader.getAttribute("type"));
•
setGlobal("varLastID",varHeader.getAttribute("id"));
•
setGlobal("varLastSet",xmlDoc.getElementsByTagName("ts")[0].childNodes[0].node
Value);
•
setGlobal("varLastVal",xmlDoc.getElementsByTagName("val")[0].childNodes[0].nod
eValue);
•
setGlobal("varLastInit",xmlDoc.getElementsByTagName("init")[0].childNodes[0].no
deValue);
19.1.9
Retrieve value using master variable retrieval task
I have a variable I wish to retrieve... 'FR-Temp'. It is a 'State' variable with ID 124.
This is the task you create to get this variable:
•
'Perform Task' Name='ISY-GetStatus-Var' - Parameter 1='2' - Parameter 2='124' -
Return Value Variable='%var_val'
Содержание ISY-994i Series
Страница 1: ...The ISY 994i Home Automation Cookbook ...
Страница 35: ...Page 12 Figure 6 UDAjax Main Screen ...
Страница 36: ...Page 13 Figure 7 UDAjax Devices Scenes Screen ...
Страница 68: ...Page 45 Figure 44 NodeServer Configuration popup 5 2 5 Tools Menu Figure 45 Tools Menu ...
Страница 98: ...Page 75 You should now see local weather information as shown below Figure 73 Local Weather Information ...
Страница 102: ...Page 79 6 6 3 2Activate My OpenADR Portlet Figure 77 OpenADR My OpenADR Menu Option ...
Страница 103: ...Page 80 6 6 3 3Configure OpenADR Settings Figure 78 OpenADR Settings Menu Option ...
Страница 104: ...Page 81 Figure 79 OpenADR Settings Display ...
Страница 108: ...Page 85 6 6 3 7Issue an Event Figure 84 OpenADR Issue and Event ...
Страница 109: ...Page 86 Figure 85 OpenADR Events You can use the Event Viewer to see the operational status of ISY and OpenADR events ...
Страница 110: ...Page 87 Figure 86 OpenADR Event Viewer ...
Страница 116: ...Page 93 Figure 92 ElkRP2 Account Details M1XEP Setup Button In the M1XEP Setup Window ...
Страница 267: ...Page 244 Figure 189 State Variables ...
Страница 268: ...Page 245 Figure 190 Programs and Folders ...
Страница 292: ...Page 269 Figure 192 Irrigation Folders Figure 193 Irrigation Devices ...
Страница 376: ...Page 353 Figure 209 Save Topology File ...
Страница 433: ...Page 410 Figure 242 X 10 recognized as Living Room East Device ...
Страница 461: ...Page 438 Figure 259 HAM Weather Data 17 2 2 Irrigation Module s Settings Figure 260 Irrigation Cycle Calculator ...
Страница 531: ...Page 508 Figure 342 Base Task Dependencies 1 Click the bottom center of screen In the Filter type http Touch HTTP Get ...
Страница 536: ...Page 513 Figure 349 In Car Detection 5 Figure 350 In Car Detection 6 In the filter type BT and then select BT Connected ...
Страница 540: ...Page 517 Figure 357 In Car Detection 12 Figure 358 In Car Detection 13 ...
Страница 602: ...Page 579 Figure 382 SecureCRT SSH Raspberry PI Session ...
Страница 620: ...Page 597 Figure 397 HyperTerminal Login The ISY Shell is displayed All input to the ISY shell must be in UPPER CASE ...
Страница 660: ...Page 637 Figure 420 ISY Select file Your ISY will now update the firmware and reboot when it is finished ...
Страница 675: ...Page 652 create surges at power on such as traditional fluorescent lights and general purpose electrical sockets ...
Страница 685: ......