Turn off device with delay not working

This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
Forum rules
This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo
User avatar
bob
Posts: 500
Joined: Wed Jun 14, 2006 7:55 am

Turn off device with delay not working

Post by bob »

I wanted the following script to turn ON the spotlight and Brighten by 60. This parts works fine but I want to turn it OFF after 30 seconds, but it is turning OFF as soon as it comes ON, why is it not seeing the 30 second delay?

I am following the example in the device class of the documentation.

Code: Select all

if avgDaylight_ == 'false':
        indigo.dimmer.brighten('spotlight', by=60, delay=0)
        indigo.device.turnOff('spotlight', delay=30)

bob
User avatar
matt (support)
Site Admin
Posts: 21542
Joined: Mon Jan 27, 2003 1:17 pm
Location: Texas
Contact:

Re: Turn off device with delay not working

Post by matt (support) »

Unfortunately, that is a bug (delay argument was ignored by turnOff) . I found it the other day and it will be fixed in Indigo 5.1.7 once it is released.
Image
Locked

Return to “Extending Indigo with Plugins and Python”