exio2x4 analog and applescript
Posted: Sat Mar 15, 2008 9:24 am
Can applescript change the ON/OFF values of the analog inputs?
Software Support and Home Automation Forum
https://forums.indigodomo.com/
anode wrote:Can applescript change the ON/OFF values of the analog inputs?
set secondBinaryInput to item 2 of (get binary inputs of device "EZIO8T")
set firstAnalogInput to item 1 of (get analog inputs of device "EZIO8T")
support wrote:You can read the input values out as either binary or analog. Here is a binary example:
And here is an analog (integer) example:
- Code: Select all
set firstAnalogInput to item 1 of (get analog inputs of device "EZIO8T")
Regards,
Matt
tell app "IndigoServer"
end tell
using terms from application "IndigoServer"
tell application "IndigoServer"
set firstAnalogInput to item 1 of (get analog inputs of device "LyncIO")
set (value of variable "LyncTEMP1") to firstAnalogInput
set firstAnalogInput to item 2 of (get analog inputs of device "LyncIO")
set (value of variable "LyncTEMP2") to firstAnalogInput
end tell
end using terms from
tell application "IndigoServer"
get device "LightSensor"
end tell