-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add KL135 color temperature range (#256)
- Loading branch information
Showing
2 changed files
with
2 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a468d52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I stumbled upon this commit when trying to troubleshoot lots of warning messages in Home Assistant about 'Unknown color temperature range, fallback to 2700-5000'. Looking at the source code and this commit, it looks like in my case the problem is that my KL135 bulb has a model number: "KL135(US)".
I see that some other bulbs have this region suffix so does that mean an entry is required for 'KL135(US)'?
a468d52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The region suffix is only necessary for devices that have different color temperature settings on different markets, but the problem you are seeing will go away as soon as new python-kasa gets released and homeassistant gets a version bump.
If you want to fix it locally until that happens (there hasn't been enough interest nor changes to warrant a new release), simply add that single line to your local smartbulb.py and you'll get colder color temperatures and less warnings :-)
a468d52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the response, just getting back to this now. I notice that the affected file is located inside my Home Assistant container. I can go ahead and change it for now in there, but does that mean the change will be overwritten every time I update my Home Assistant container?
a468d52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so, until a new python-kasa gets released and the homeassistant dependency gets bumped.