Add light.adjust
service call
#537
Replies: 8 comments 14 replies
-
I feel the need is there for light groups. I miss that same ability. I'm not fully sure how many other types of integrations could benefit from it. |
Beta Was this translation helpful? Give feedback.
-
I think this would also be good for lights that support adjusting parameters while off. I can't find the old issue at the moment, but I know I've seen requests before to be able to send color temps, brightness, etc. without turning on a light. |
Beta Was this translation helpful? Give feedback.
-
Groups can be expanded to get to this.
This is not going to solve it fully (or better said, may cause unexpected behavior), as it is not universal / behaves as expected in many cases. For example, some lights need polling to get the correct state (are read-only). Thus this would be acting on a assumed state. IMHO, the proposal is currently too limited to solve generic in our Light entity component. |
Beta Was this translation helpful? Give feedback.
-
Just to add weight to this issue, there's lots of people in the community looking for a fix to this, one way or another: See: I would perhaps debate @chishm 's point 2 in their original proposal. But even if it's just points 1 and 3, I think there's a strong case for a fix here? |
Beta Was this translation helpful? Give feedback.
-
Heads up I started a similar proposal here, Its not received the warmest of receptions so far but perhaps with some input from some more people we can come to a solution to the problem at hand |
Beta Was this translation helpful? Give feedback.
-
Just wanted to drop in and say that the ability to adjust ONLY the lights that are already on would be excellent. 🍻 |
Beta Was this translation helpful? Give feedback.
-
+1 in strong support of this. This is the killer feature for my household to be able to switch over from Hue (which does this natively). |
Beta Was this translation helpful? Give feedback.
-
I recently filed a bug here that touches upon this issue: home-assistant/core#118009 I would like to spend some time figuring out how to move forward, since this functionality is related to several improvements I need to make before moving away from native Lutron and native Hue controls. |
Beta Was this translation helpful? Give feedback.
-
I'd like to add a new service call to
LightEntity
s to change the state (brightness, color, effect, etc.) of lights that are already on, without turning on lights that are off. The default implementation in theLightEntity
base class would be:This is how scripts can implement such a feature at the moment, with something like:
Benefits over the above approach
1. Light groups can be adjusted without turning on all members
For example, I could have a light group containing all the lights in my house. At night I could change the color temperature to something warm, but only for the lights that are on.
Not all "light groups" expose their individual members (e.g. Zigbee groups), so it is currently impossible to adjust only the members that are currently on.
2. More efficient implementation for some integrations
Zigbee supports addressing an entire group with one adjust message. To replicate this currently requires a message to each on light individually.
3. Simpler scripts
The above script could be simplified to:
For scripts controlling many lights, this removes the need for looping over them, as the list of lights could be supplied in the
entity_id
parameter.What I would do
LightEntity
.deCONZ
integration.Beta Was this translation helpful? Give feedback.
All reactions