adaptive-lighting icon indicating copy to clipboard operation
adaptive-lighting copied to clipboard

Master switch and user configurable light modes

Open RubenKelevra opened this issue 3 years ago • 11 comments

While the automatic is great, there's quite some amount of boilerplating necessary for a real world setup right now.

Master Switch

It would be nice to have a master switch, which could just be linked with a 1:1 automation to the light switches which turns on/off all configured lights.

Profiles

It would be nice to have something like scenes with a name, brightness setting and color temperature and the standard "auto" as a drop down list instead of just an on/off switch.

This way we could create an interface similar to the one used for climate, which has profiles and automatic / manual and off.

Screenshot_20210608-000802622.jpg

Screenshot_20210608-001014135.jpg

Manual just overrides and gives the user manual control over the whole "lightgroup" Adaptive Lighting is controlling with the usual butter smooth transitions, switching back to auto will start changing it back to the calculated automatic.

We already have one profile: night/sleep mode.

The user would just enter his own the brightness percent and the Kelvin in a list with a name and those will be available to select.

Limiter

This would allow pretty rapid changes in light temperature, which isn't really healthy.

I would recommend to add a limiter which calculates how large the difference is in perceived color temperature change (mired) and slows it down if it's too fast.

RubenKelevra avatar Jun 07 '21 22:06 RubenKelevra

I'm currently in the process of doing version 2. This will be added/fixed.

Keep this ticket open until you can verify that it's properly working in the upcoming version 2.

RubenKelevra avatar Jan 08 '22 01:01 RubenKelevra

this doesn’t include automatic scene detection from #12 that you closed, am I right?

PizzaPino avatar Jan 08 '22 06:01 PizzaPino

Hey @PizzaPino,

Just to make sure: Closed doesn't mean "we won't do this".

I just try to sort out stuff that hasn't been answered for a long time while there's not enough information to include it in the development.


To answer your question: There are build-in "profiles/scenes" on the roadmap (which is not yet published). They are intended to have more attributes than regular HA scenes, so it's not possible to use them.

The idea is to have rules for a light and a ruleset makes up a scene. You can for example set a fixed color temperature for some lights as a rule. If you activate it AL will shift the color temperature of those lights while they stay under automatic control for brightness.

If you switch out of the scene they would shift back to the normal color temperature.

I'm not fully convinced that's what @blueshiftlabs needs or wanted, so I closed it as stale instead of putting it on the Version 2 Milestone

RubenKelevra avatar Jan 08 '22 08:01 RubenKelevra

Thanks for the explanation! I think that's almost what I'd love to have. For me it's important that scenes are detected from the Philips Hue app. Right now when I start a scene on the app AL takes over and brings them to the AL state unless I turn the scene on a second time and the manual mode kicks in. If it would kick right after the first time that would be perfect.

PizzaPino avatar Jan 08 '22 10:01 PizzaPino

@PizzaPino well, that whole "external changes" code would be revisited again. Since there's an new module planned which does all the output signals to the lights. It should notice that the light is not in the expected state and follow the user configuration:

  • Jump to manual override (which is a state which will be held until you deactivate it again)
  • override the changes

On the other hand: I'm curious, what's so special about the Philips Hue app scenes? :)

RubenKelevra avatar Jan 08 '22 23:01 RubenKelevra

@RubenKelevra oh I see. The Hue app just has a better scene editor for on-the-fly changes. Also you can correctly set colors for the new Gradient Lightstrips which is not possible inside HA (nor anywhere else). It's only possible to activate a scene with the correct colors of a Gradient Lightstrip.

PizzaPino avatar Jan 12 '22 07:01 PizzaPino

@RubenKelevra oh I see. The Hue app just has a better scene editor for on-the-fly changes. Also you can correctly set colors for the new Gradient Lightstrips which is not possible inside HA (nor anywhere else). It's only possible to activate a scene with the correct colors of a Gradient Lightstrip.

Ah so a compatibility issue with the hardware, gotcha.

RubenKelevra avatar Jan 12 '22 08:01 RubenKelevra

@RubenKelevra will automatic scene detection from the hue app be included in v2? I haven’t seen it in the new roadmap.

PizzaPino avatar Aug 06 '22 08:08 PizzaPino

I am not sure if it already possible and I just missed it, but will this enhancement also allow to only use brightness based on room presence? In the documentation it still seems to me that when the brightness switch is turned on, the lights will be on all day between, only changing the brighness% (is that correct?). If this is the case, does it need to be configured by disabling 'brightness control' whenever a room isn't occupied or are there any other best-practices?

I currently use this component for color temp only, but having profiles and a good way to use this for occupied rooms only would be a major game-changer for me.

Patrick1610 avatar Aug 21 '23 08:08 Patrick1610

@Patrick1610, I do not think I understand what you’re asking for. Adaptive lighting does not take any precense or sensors into account.

basnijholt avatar Aug 22 '23 17:08 basnijholt

@basnijholt I see I interpreted the function of the brightness wrong. I didn't understand that it could intercept the light.turn_on call and only changed the brightness when a light is turned on (or is still on), so it seemed that the lights where always on when the brightnes control switch was on. Now I understand.

I think with the improvement of profiles I will definitly be trying to use the brightness feature next to the color temp!

Patrick1610 avatar Aug 24 '23 13:08 Patrick1610