Skip to content

Regression? Latest kasa cli turns light on when setting brightness. #1532

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
viperk1 opened this issue Apr 30, 2025 · 4 comments
Open

Regression? Latest kasa cli turns light on when setting brightness. #1532

viperk1 opened this issue Apr 30, 2025 · 4 comments

Comments

@viperk1
Copy link

viperk1 commented Apr 30, 2025

Hi there, I'm trying to set the brightness of a dimmer switch without turning it on. The latest version always turns on the light when setting the brightness via the command kasa --host master-bathroom-toilet-light --type dimmer brightness 25

If I revert to 0.6.2.1 then it works as expected by changing the brightness without turning on the light.

@epicIDOR
Copy link

epicIDOR commented May 4, 2025

It looks like it's been a known issues since last year, but issue was closed without solving. I also find it very frustrating not having this ability.

Issue #1066

@viperk1
Copy link
Author

viperk1 commented May 4, 2025

I had to use a workaround by spinning up 0.6.2.1 in a container with a rest api and then I call it using a rest_api action in home assistant. Took me a few hours to do since I didn’t know what I was doing. 😬

@abraha2d
Copy link

abraha2d commented May 5, 2025

0.7.0.dev0...0.7.0.dev1 is the change that broke it.

...looks like the IotDimmer._set_brightness code still exists in the latest versions, though... hmm...

@abraha2d
Copy link

abraha2d commented May 5, 2025

@viperk1 I have a custom component I am using to set the brightness of a Kasa dimmer from Home Assistant without turning it on.

Just updated it to use the latest version of python-kasa (was using 0.6.2.1 previously), and published it: https://github.com/abraha2d/ha_kasa_helper

(first time publishing a home assistant component... I'll try to get it HACS compatible at some point)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants