From the documentation - it says Indigo ships with scripts that include variables? However my list of variables are totally empty?
How do I get that list of variables populated?
tell application "IndigoServer"
set frontDoor to on state of (device named "doorStatusFront")
set kitchenDoor to on state of (device named "doorStatusKitchen")
set poolDoor to on state of (device named "doorStatusPool")
set backDoor to on state of (device named "doorStatusBack")
set doorsTryCount to value of variable ("doorsTryCount")
end tell
if doorsTryCount > 4 then
tell application "IndigoServer"
set value of variable "doorsTryCount" to "0"
end tell
else
if (frontDoor and kitchenDoor and poolDoor and backDoor) then
tell application "IndigoServer"
set value of variable "doorsTryCount" to "0"
end tell
return
else
tell application "IndigoServer"
execute group "lockDoors"
end tell
end if
end if
Users browsing this forum: No registered users and 1 guest