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.
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. 😬
Unfortunately, this only works with older dimmers (e.g. HS220 HW3.0). Newer ones (e.g. HS220 HW4.6) use a different protocol, and it seems the device automatically turns itself on when getting a new brightness.
EDIT: While true, since the newer ones use set_device_info, one can just pass both a brightness value and a device_on value to keep the device off while adjusting the brightness! Support incoming...
There hasn't been any activity on this issue recently. This issue has been automatically marked as stale because of that. It will be closed if no further activity occurs.
Please make sure to update to the latest python-kasa version and check if that solves the issue.
Thank you for your contributions.
There hasn't been any activity on this issue recently. This issue has been automatically marked as stale because of that. It will be closed if no further activity occurs.
Please make sure to update to the latest python-kasa version and check if that solves the issue.
Thank you for your contributions.
Activity
epicIDOR commented on 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 commented on 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 commented on 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 commented on 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 puiblished an updated version that uses the latest version of python-kasa (was using 0.6.2.1 previously): 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) It has a shiny new HACS button now!
epicIDOR commented on May 6, 2025
Awesome! I just set it up a few hour ago, but will definitely switch to the HACS version. It's working for me.
abraha2d commented on May 16, 2025
Unfortunately, this only works with older dimmers (e.g. HS220 HW3.0). Newer ones (e.g. HS220 HW4.6) use a different protocol, and it seems the device automatically turns itself on when getting a new brightness.
EDIT: While true, since the newer ones use set_device_info, one can just pass both a brightness value and a device_on value to keep the device off while adjusting the brightness! Support incoming...
EDIT 2: Done! https://github.com/abraha2d/ha_kasa_helper/releases/tag/v0.2.0
github-actions commented on Aug 15, 2025
There hasn't been any activity on this issue recently. This issue has been automatically marked as stale because of that. It will be closed if no further activity occurs.
Please make sure to update to the latest python-kasa version and check if that solves the issue.
Thank you for your contributions.
github-actions commented on Nov 14, 2025
There hasn't been any activity on this issue recently. This issue has been automatically marked as stale because of that. It will be closed if no further activity occurs.
Please make sure to update to the latest python-kasa version and check if that solves the issue.
Thank you for your contributions.
abraha2d commented on Nov 16, 2025
This is still an issue.
Only re-assert device_on when device is already on
Only re-assert device_on when device is already on