Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add control for colour temperature and colour and fix brightness jumping #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arrival-spring
Copy link

Fixes #7

I have a couple of L530 bulbs and wanted to get the colour changing working through Home Assistant.

This relies on the PR I put in for TapoP100 (so required version of PyP100 will need upping in the manifest, but I haven't done that yet).

It turns out there was quite a lot to do to make it work properly, so there are quite a few changes here.

It's all working for me, but I don't have any L510 bulbs to test it with. It would be good for someone else to confirm that it works as expected with those bulbs.

The only slight annoyance is that after you set the brightness, colour or colour temperature, it then jumps and jumps back after half a second, I haven't worked out how to fix this yet (but it does now jump back to where it was originally set).

Quite a lot of inspiration and code was taken from the yeelight integration which seems to be under the HA core license of Apache 2.0. Not sure if that's compatible, or if the license of this needs updating.

@nologin789
Copy link

I have three lamps L510. Two with firmware 1.0.12, the brightness control works, but the slider in the HA does not move. One with firmware 1.1.8 brightness doesnt control work and slider not move.

@letchworth letchworth mentioned this pull request Jun 27, 2021
Copy link

@Silvrav Silvrav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cant seem to change colors on the L530 - it only adjust brightness

@vihman
Copy link
Contributor

vihman commented Nov 3, 2021

Nice! Merged this pull request with current origin HEAD inside my fork, incorporated @artorlov2003 pull request from PyP100, did few fixes and made it working with my L510 (switch, brightness) and L530 (switch, brightness, color, temperature) on homeassistant: 2021.10.7, Tapo firmware 1.1.9 .
Not creating another pull request as it's not a clean solution. Rather a quick hack, because I didn't want to fork PyP100. Impatient users can borrow light.py.
EDIT: + homeasistant 2021.11.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New Feature Request : L530 Bulbs
4 participants