Disable interface via action or script

Posted on
Mon Oct 16, 2017 12:52 pm
mattmcd offline
Posts: 2
Joined: Oct 16, 2017

Disable interface via action or script

Hi,

I'm curious if/how I can disable/enable my INSTEON interface (2413U) from a script (python or applescript) or an action from a trigger or schedule.

I'm running Indigo 6 on an older Mac with OS 10.6 and I find that the 2413U has trouble recovering from a power failure. However, I have discovered that disabling the interface soon after the Mac detects it's running on UPS then enabling the interface once power is restored solves the problem. I'd like to do this automatically rather than manually from the Indigo GUI.

I have a software tool that will execute a script when a switch to/from UPS is detected but I haven't found how to script disabling/enabling of the interface in Indigo.

Cheers,

Posted on
Tue Oct 17, 2017 11:20 am
jay (support) offline
Site Admin
User avatar
Posts: 18219
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Disable interface via action or script

This is one of those cases where AppleScript is required (we'll have that fixed for 7.2). To disable the Insteon interface:

Code: Select all
tell application "IndigoServer"
   set online to false
end tell


To enable it:

Code: Select all
tell application "IndigoServer"
   set online to true
end tell

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests