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

In a scene where certain lights are turned off, moving the brightness slider turns those lights on even when sliding the brightness down #261

Open
recklessnl opened this issue Sep 7, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@recklessnl
Copy link

recklessnl commented Sep 7, 2024

This is also a very annoying bug in Home Assistant itself - imagine a room with ceiling lights and a desk lamp. In one Hue scene, all the ceiling lights are turned off, but the desk lamp is on. When I activate the scene through Hass or the lovelace-hue-like-light-card, it works perfectly - the desk lamp is on, the ceiling lights all off.

However, when I then want to change the brightness using the slider, it will turn all the ceiling light on, to that brightness. This is really annoying because it's not how Hue works in the app. In the app, using the brightness slider will only affect the brightness of the lights that are currently on (in this case, the desk lamp). This is the functionality I want - using the brightness slider to change the brightness of the desk lamp, and not the lamps that are specifically turned off in that scene.

Is this possible at all?

@transce080
Copy link

transce080 commented Oct 9, 2024

I agree 100%. In order to be a hue-like control, it needs to work the way the original sliders work.

To restate what @recklessnl said in more formal terms, the logic should be

  • Given that all the lights in the group are "off"
  • When a new lighting value is selected (eg. slider control activated)
  • Then all the lights will be set to the new value

and

  • Given that at least one light in the group is "on"
  • When a new lighting value is selected (eg. slider control activated)
  • Then (only) the lights which are "on" will be set to the slider value

@vipzzzzzz
Copy link

This! Drove myself crazy trying to figure out what I was doing wrong...

I have an area called 'living area' which includes the lights in the master bedroom. When dimming that area the lights in the master bedroom are turned back on when they were turned off, which is really annoying when one of us goes to bed early and the other just wants to hang out a bit longer in one of the other living area's.

This works fine when using a homekit dashboard, but since i've switched all my dashboards in the home to HA, with this (amazing) card to control lights/scenes the behaviour is different and I haven't been able to figure out a solution.

@transce080
Copy link

transce080 commented Dec 29, 2024

@vipzzzzzz I don't think there is a solution except to fix the logic in the code. I don't know the specifics yet but making the required change should not be terribly difficult. As a developer, I should be able to make the changes, however I have limited time available so I would like to hear @Gh61 's opinion before starting any work to make sure it's something he would accept a PR for.

@Gh61 Gh61 added this to the v 1.8.0 - 2025 Release milestone Dec 30, 2024
@Gh61 Gh61 added the bug Something isn't working label Dec 30, 2024
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