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

Kasa Smart Bulb KL135 - Unknown color temperature range error · Issue #252 · python-kasa/python-kasa · GitHub

Repository navigation

Kasa Smart Bulb KL135 - Unknown color temperature range error #252

Closed

Description

I just added my new KL135 to my Home Assistant, it got discovered no problem but I keep getting an error in the log:

Logger: kasa.smartbulb
Source: /usr/local/lib/python3.9/site-packages/kasa/smartbulb.py:152
First occurred: 9:00:10 PM (2 occurrences)
Last logged: 9:00:10 PM

Unknown color temperature range, fallback to 2700-5000

please let me know if I can submit any additional info to help solve this issue.

Activity

  1. rytilahti commented on Nov 19, 2021

    Member

    The supported ct range is 2500-6500, can you confirm?

    Also, would you mind creating a PR to add a fixture file (using devtools/dump_devinfo.py in this repo) to our test suite at https://github.com/python-kasa/python-kasa/tree/master/kasa/tests/fixtures?

  2. cinghialino commented on Nov 19, 2021

    Author

    2500K-6500K says the box.

    I don't know how to run the script you linked (I know, I should know) sorry

  3. rytilahti commented on Nov 19, 2021

    Member

    Okay, thanks for the confirmation! To run the script, simply clone the repository (or download the file) and execute:

    python dump_devinfo.py <ip address of the device>
    

    It will show you the data it collected and ask if you want to save it into a file.

  4. cinghialino commented on Nov 19, 2021

    Author

    python dump_devinfo.py

    it says theres an error at line 85:

      File "dump_devinfo.py", line 85
        async def _run_query():
                ^
    SyntaxError: invalid syntax
    
  5. rytilahti commented on Nov 19, 2021

    Member

    Oh, looks like it is probably trying to run it as a python2 script, so try to execute it with python3.

  6. cinghialino commented on Nov 19, 2021

    Author

    nope: if I run it as

    python3 dump_devinfo.py 10.22.38.187
    I get

    Traceback (most recent call last):
      File "dump_devinfo.py", line 17, in <module>
        import click
    ModuleNotFoundError: No module named 'click'
    
  7. rytilahti commented on Nov 19, 2021

    Member

    Oh, looks like the requirements are not installed. That command requires some dependencies (including click and python-kasa), so the simplest way is likely to do the following inside a python-kasa checkout:

    virtualenv venv -p python3
    source venv/bin/activate
    pip install .
    python devtools/dump_devinfo.py <addr>
    

    inside a git checkout of this repository.

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

    No labels
    No 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