*tapo L535E

Controlling the light. I bought a smart light bulb because I thought it might have some unknown usefulness. There were options like Philips, Xiaomi, and TP-Link, and since I was already using a TP-Link product, I went with that.

It seems the Kasa brand has evolved into the cloud-based Tapo brand, but in any case, the L535E model cannot be controlled with the existing Kasa Python library. I didn't verify it, but I was able to find the Tapo devices on the local network and get their IP addresses.

After some trial and error, I was able to control it with the code below. The Tapo Python library requires logging in with an email and password, and an internet connection is necessary for authentication.

The code simply turns the light on and off, adjusting the brightness and color. To run it, you need to set the environment variables for the login credentials.

When I tried it, I didn't have a light socket, so I used a plant lamp I had at home, and got scolded by my family.

2026.01.28. 12:39