fishbigger / TapoP100

A module for controlling the TP-Link Tapo P100 Plugs
MIT License
566 stars 138 forks source link

can i turn off and on my bulb L530 with this code? #111

Closed Blesivec closed 1 year ago

Blesivec commented 1 year ago

Hello, I am trying to have python code that can turn on and off my bulb L530. I tried: l530.setBrightness(0) but it gave me error: KeyError: '-1008'

Edwin-LAC commented 1 year ago

Hello Blesivec, I think this is what you are looking for:

l530.turnOff() #turn bulb off

l530.turnOn() #turn bulb on

Blesivec commented 1 year ago

Thanks a lot man, i am dumb i didnt see it