basnijholt / adaptive-lighting

Adaptive Lighting custom component for Home Assistant
https://basnijholt.github.io/adaptive-lighting/
Apache License 2.0
1.94k stars 139 forks source link

Take Over Brightness Option #889

Open zpriddy opened 10 months ago

zpriddy commented 10 months ago

A friend and I have the same issue..

sometimes we want to make it darker or brighter in the room that we are in and have it stay at the set brightness.. however we would like AL to keep adapting the color of the lights, but not the brightness..

This can be achieved by looking for manual events where the brightness is set.. and switch off the AL Adapt Brightness switch.. but this is a big pain to do..

Would it be possible to have an option like Take Over Control - but only prevents AL from changing the brightness (or turns off the adapt brightness switch) if the brightness is manually controlled?

kinda in the same topic but can be a different request.. it would be nice if there was a manual control switch , or if when taking over control (existing) it turns off the adaptive lighting switch.. it’s kinda hard to know when you are still taking over control.. but like I said a different request.. but it would be nice for take over brightness to use that kind of logic ..

basnijholt commented 10 months ago

There is a switch you will have to do what you want, see the 3rd and 4th points here https://github.com/basnijholt/adaptive-lighting?tab=readme-ov-file#bulb-features

You can also easily create the switch you mentioned using 2 automations which call adaptive_lighting.set_manual_control.

zpriddy commented 10 months ago

It would be two automations per zone, looking for turn on events with brightness, across 7 zones.. it ends up being a lot to add in.. but it AL is already listing to events to figure out if manual control is overriding the AL, it seems like I could be a check added into AL without much overhead.. I think there would be a large benefit to many to have this feature implemented.. but that is just my opinion.

HAkegel commented 10 months ago

I Agree with zpriddy. Most people don't change the color temperatures of there lamps manually. Having a checkbox with 'Keep colortemperature synced' would be an awesome feature.

zpriddy commented 10 months ago

@basnijholt I was trying to setup some automation for this.. However the only solution would be to trigger off of every state_changed event or any. state change event from every adaptive lighting switch. Then add a condition to the automation to see if there are any lights in the manual control config.. and if there are.. then set the color temp to the value in the trigger event/switch value using the transition period in the event..

However that is a LOT of events that get sent depending on the number and configuration of your AL setup.. Im not quite sure its very feasible to take that approach.. At the very least its a lot of automation triggers to be running..

dusanjencik commented 10 months ago

Hi, I join the group who would appreciate the independence of brightness and color temperature adaptivity. For now I use this set up as a workaround, hopefully it will help others as an idea.

Goal

Set up

Known limitations

antonok-edm commented 8 months ago

I have one LED strip which I normally leave at 50% brightness because it is overall much brighter than my other bulbs. adaptive_lighting.apply turns everything to the same brightness whenever it's activated; I'd prefer if it didn't touch the brightness control at all. Having brightness controlled manually, while color control is still automatically managed, would be super useful for me.