FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Regression? Latest kasa cli turns light on when setting brightness. · Issue #1532 · python-kasa/python-kasa · GitHub

Repository navigation

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

Open

Description

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.

Activity

  1. 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

  2. viperk1 commented on May 4, 2025

    Author

    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. 😬

  3. 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...

  4. 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!

  5. 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.

  6. 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

  7. 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.

  8. 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.

  9. abraha2d commented on Nov 16, 2025

    This is still an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL