- Code: Select all
if Chandelier.onState == True:
indigo.dimmer.setBrightness(Chandelier, value=5)
else:
indigo.server.log("Chandelier - Attic is already OFF. No pre off possible'")
But this is not exactly what I want. Because if the level is at 1%, it will actually increase in the "pre off" period.
So, what would the syntax for a grater than expression be?
- Code: Select all
if Chandelier.Brightness > 5:
indigo.dimmer.setBrightness(Chandelier, value=5)
else:
indigo.server.log("Chandelier - Attic is already OFF. No pre off possible'")
Something like the above, but with the right syntax. Anyone that can give me a hint?
And if this is documented in the indigo documentation, where would that be?