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

When controlling one of multiple entities, the light being controlled gets switched to add an additional light #253

Open
prabhjotsbhatia-ca opened this issue Aug 25, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@prabhjotsbhatia-ca
Copy link

prabhjotsbhatia-ca commented Aug 25, 2024

screen-20240825-001742.2.mov

I'm going to attach a screen-recording on this one as a screenshot wouldn't be able to do justice. I see the following problem:

Say I have three lights in the kitchen (plus the group entity). If I want to control Kitchen Light 1 only, I expect to click on it and then adjust the brightness or change the color for that light only.

Expected: Light being controlled is correctly adjusted.
Actual : if I'm not quick enough to change the brightness after selecting the light, some other light also gets selected automatically at random, and the brightness/color for that light also gets changed.
I've been noticing this happening since v1.7 was released.

This is causing multiple problems:

  1. The lighting that I was trying to control is not correctly controlled.
  2. If an unrelated light is off, it gets turned on if the light randomly selected happens to be the group entity.
@Gh61
Copy link
Owner

Gh61 commented Aug 27, 2024

Thank you for reporting. I see, that this issue occurs, when two lights are set around the same color.
You select single light (you're excluding it from the group of 2 lights with the same color), but refresh happens and they're joined back together.

I'll definitely look into this.
I've been really busy these days and I hope in the coming days/weeks I will get some more free time to resolve some issues that occurred and will release new version.

@Gh61 Gh61 added the bug Something isn't working label Aug 27, 2024
@prabhjotsbhatia-ca
Copy link
Author

Thank you for looking!

Yes, to be honest, having all the lights the same color is the most commonly used behaviour - I switch them on, and they will be either daylight or warm white depending on the time of the day.

This bug makes it pretty hard to set them to different colors too, since the refresh happens very quickly and they get joined together.

@guilfoos
Copy link

guilfoos commented Sep 4, 2024

I just came to file this bug; discovered and installed this card today and it's great! A workaround for this is to turn off one light in that pair, then you can manipulate the other individually. Fine when you have a small group, but I have one with 8 bulbs and the default scenes put them all in the same color, so going in to individually manipulate them is difficult with this.

Interesting that the original reporter had slightly different behavior with lights being off. Still, great card and not a majorly impactful bug.

@prabhjotsbhatia-ca
Copy link
Author

prabhjotsbhatia-ca commented Sep 4, 2024

Interesting that the original reporter had slightly different behavior with lights being off. Still, great card and not a majorly impactful bug.

I think I know why the behaviour is different on mine, (and I think you could replicate it too). In one of the scenarios the group entity gets added to the selection automatically when the refresh happens. See in the video - When I select Light 1, it also selects the group entity, and when I select Light 3, it also selects Light 2 (if it is On).
So when I change the brightness of light 1, the group entity is also impacted, which would impact all lights, including the ones that are off.

@guilfoos
Copy link

guilfoos commented Sep 6, 2024

Oh, I see. Yeah, I didn't include a group entity on the card, just the individual bulbs. So I wasn't getting that behavior, but it makes sense.

@sunedall
Copy link

Is this issue (the video) the same as the one mentioned here?

ScreenRecording_10-18-2024.15-31-10_1.mov

I'm fairly new on Home Assistant in general and also this card. I have a room with 3 groups of lights, and whenever I try to change them together with the card it behaves weird. No real way to reproduce, to me it's random what it does, but it's consistent in not being correct. Changes from coloured to cold/warm white, grouping the lights to ungrouping the lights, changing the position randomly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants