-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
Return LightEntityFeature(0) zero value in supported_features when there are no effects #826
base: main
Are you sure you want to change the base?
Conversation
Works fine for me. Thank you! |
Hi, Thanks for your contribution. Indeed, changing from 0 to list, brought the light entity back to HASS. However, on my L530 entities that are part of a group (e.g. three L530 grouped as "Living room"), the entity is still unavailable. The error I see is:
Any ideas? Thank you! |
As above, where the entities are part of a group, they are identified as "Unavailable" although it appears that selecting the group triggers the default action for the group (turning on and off). |
For my particular case, since all my lights are 530E, I simply replaced lines 54-56 with |
I am also having issue's with a group of 3 L630 spotlight's, the change to light.py does resolve the individual bulbs not showing up however the entity which has all three grouped is no longer recognised. Deleting the group and setting up again causes the group to fail to setup correctly. Any ideas's on how to fix this? |
Change mentioned by pgarciafc seems to have also done the trick for me, light groups have returned to working and everything seems to be working okay so far |
I've updated the PR to return Does this fix the issue with the groups? |
Have just updated the config to the new code you have posted in the PR and restarted however that does not allow the light groups to work unfortunately, after changing the code back to that noted by pgarciafc the groups are working again |
Exactly, and probably that's due to () representing tuples while LightEntityFeature's type is enum. Just want to highlight that my solution is likely going to bring other hidden issues / lack of functionalities especially to those with multiple light types. It just works for me (and others in this thread) because 1) we run the same lights model or 2) we are just validating very basic functionalities. |
I wonder if there's something broken/changed with these two lines
because just setting
suggests to me |
I've moved this PR to Draft for the time being until we can get to the proper fix. |
…ere are no effects Fixes petretiandrea#825
I've updated the PR again to return but the issue aroudn groups etc - I've not got the setup to test it and not sure what's going wrong, I think we need to figure out what |
@djhworld I've retested your latest PR and it resolves the issue with the lights individually but also retains the functionality of the light groups. Also noted (coincidence?) that an updated version of HACS seems to have resolved the display of percentages instead of 0-255. |
@Adagis-MC just to confirm, latest change works for the groups case? |
@djhworld Correct. the latest change works for the groups case. |
Nice! OK I'll move the PR out of draft state. |
For reference looks like this issue was caused by this home-assistant/core#132371 |
Can confirm this has also resolved the issue for myself :) |
This worked for me as well. I have eight Tapo L630 lights in two separate groups. I can control each device and per group with this fix. |
Works like a charm for my L530 lamps! |
Thank you, this made it simpler for me, opened my prompt, and found the light.py file, edited the mentioned line and voilá! 👍 |
You are welcome but the solution provided by @djhworld through this Pull Request is probably the best one! |
Sorry to ask, but any idea when a solution might be published? Appreciate the work that goes into this project. |
HA 2025.1.1 and we are back to square one. Light entity not recognized. |
It looks like they reverted the change around deprecating the constants |
Does this mean we should revert the changes made to light.py if wanting to upgrade to 2025.1.1 |
I've just updated to 2025.1.1 with the changes from this PR and my lights still work Given the HA repo has had this change reverted I think we could just go back to returning |
@indomitorum Do you see an exception in the logs? I just updated and things are still working. |
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.
LGTM 👍
Just updated to 2025.1.3 and the problem is back... Updated light py with: Seems to work again. Any idea when long term fix will be push out. I take it 3.1.5? |
Fixes #825
In HA 2025.1 support for using integers in
supported_features
was removed home-assistant/core#132371