For example:
- Code: Select all
indigo.device.turnOn(controller, duration=10)
When run on it's own with nothing else happening it will run for the 10 seconds and work properly, but if I have another device follow it then it will be somewhat random between 1 and 5 seconds before it quits. The obvious answer is "make this run by itself" or "don't control other devices afterwards" but I have 2-3 of these devices that each need to run for a few seconds at the same time.
I have tried:
- Code: Select all
time.sleep(10)
But that doesn't really seem to do anything.
Is there a proper way to insure that a device command gets it's full time span?