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.
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:
Activity
rytilahti commented on Nov 19, 2021
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?
cinghialino commented on Nov 19, 2021
2500K-6500K says the box.
I don't know how to run the script you linked (I know, I should know) sorry
rytilahti commented on Nov 19, 2021
Okay, thanks for the confirmation! To run the script, simply clone the repository (or download the file) and execute:
It will show you the data it collected and ask if you want to save it into a file.
cinghialino commented on Nov 19, 2021
it says theres an error at line 85:
File "dump_devinfo.py", line 85 async def _run_query(): ^ SyntaxError: invalid syntaxrytilahti commented on Nov 19, 2021
Oh, looks like it is probably trying to run it as a python2 script, so try to execute it with python3.
cinghialino commented on Nov 19, 2021
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'rytilahti commented on Nov 19, 2021
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:
inside a git checkout of this repository.
Prepare 0.4.1
Prepare 0.4.1 (#288)
Prepare 0.4.1 (python-kasa#288)