Python script Enable/ Disable device Indigo Communication

Posted on
Fri Oct 18, 2019 8:15 am
McJohn offline
User avatar
Posts: 631
Joined: Dec 18, 2012
Location: The Netherlands

Python script Enable/ Disable device Indigo Communication

Is there a way with a Python Script to Enable / Disable the Indigo communication of an Indigo Device?

Posted on
Fri Oct 18, 2019 11:08 am
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Python script Enable/ Disable device Indigo Communicatio

Yes, complete with optional arguments to delay and auto-toggle it back to the previous state. Example that will disable a device in 2 seconds for 3 seconds:

Code: Select all
dev = indigo.devices[SOME_DEV_ID]
indigo.device.enable(dev, False, delay=2, duration=3)

Image

Posted on
Fri Oct 18, 2019 2:10 pm
McJohn offline
User avatar
Posts: 631
Joined: Dec 18, 2012
Location: The Netherlands

Re: Python script Enable/ Disable device Indigo Communicatio

Thank you so much Master!
(Now we could enable / disable some beautiful IndigoPlotD devices with a Schedule, so it spares some plot/cpu energy in the night :D )

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests