I am making a more involved light randomizer for when we are away and it is dark out. I would like to, in Python, set the brightness of certain lights AND the duration for them to be on in one line. I know you can set the duration with a "turnOn" command, but with the "setBrightness" command it seems you cannot. I suppose I could do the following:
- Code: Select all
indigo.dimmer.setBrightness(123, value=75)
indigo.device.turnOff(123, delay=300)
But as always I'm looking for less lines whenever possible and I'm also interested in other ways to do this that I might not be aware of. Thanks in advance for any comments!