Closed AquaCobell closed 1 year ago
No way to toggle, as brightness value must be passed when turning on.
You could use a simple if statement to toggle however.
This will turn the light off if it's on, otherwise turn on at 100 brightness:
light.on = 0 if light.on else 100
something like light.toggle() and when they're on they go off and vice versa