fishbigger / TapoP100

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

Set device status to 'on' when setting color, color temp or brightness #85

Closed pnuu closed 2 years ago

pnuu commented 2 years ago

If one turns on the L530 bulb by using setBrightness(), setColor() or setColorTemp() calls, the device info still says the lamp is turned off. This means that the call to turnOff() doesn't work without turnOn() has been called.

This PR fixes this issue by adding the device status to the payload of these three calls.

fishbigger commented 2 years ago

Looks good :)