šŸ’” Adaptive Lighting automatically adapts the brightness and color of your lights based on the sun's temperature but stops when you manually make a change

Hello,

Iā€™ve been on HA since new years and Iā€™ve been successfully running 4 instances of adaptive lighting without issue. I was wondering how feasible it is to ask for the sleep config to be set to red. I have 37 accent light strips that are at red/1% all night. Obviously I can do this a zillion ways and Iā€™m doing that, I just thought it would be nice to be able to configure it within the app so I can use the sleep function.

Itā€™s my understanding that sleep mode can only be configā€™d to kelvin; If thatā€™s wrong, please let me know.

I saw a few PRā€™s and I do see where work has been done recently on the app, I didnā€™t want to be a nuisance with this feature request if itā€™s not a realistic ask. Love the app, btw (as a person obsessed with making sure the CT is always right in a room).

Hi,

Iā€™m running a bunch of white tunable Ikea and Hue bulbs with integration into HA with deConz. I also have the Hue Wall Switch Modules behind my light switches set up to control the lights in Phoscon. Most of my on/off activity is through the wall switches and only some programmatic automations through HA.

Does AL treat the on/off commands issues by deConz as external to HA or internal for the purpose of taking control?

Most of the time AL works fine, but if I play with the switches (night mode etc), change birghtness in Lovelace, the bulbs seem to regularly get stuck in some fixed brightness when I turn then on/off at the wall. As if AL does not take back control.

If itā€™s external, does this mean that I should actually create a bunch of automations tracking the wall switches (through the deConz events they send to HA) to keep track of when to give back AL automatic control through the a_l.apply/manual services?

I posted this on the Github repository, but it doesnā€™t seem like a lot of discussions go on there so I thought Iā€™d share it in this thread as well.

When turning my LIFX lights on it can take AL a few seconds to apply the change. This can be jarring especially late at night.

LIFX supports changing the brightness and color of a bulb without changing its power state with the lifx.set_state service. It would be great if AL could be configured to take advantage of that and update them throughout the day regardless of their on/off state.

If they are issued completely outside of home-assistant, they are external. At least thatā€™s my understanding and experience.

So I have a Zigbee switch which sends a deConz event every time it is flipped. It is bound to the bulbs, so switches them on/off by itself without HA. I then have an automation set up to watch for on/off/on to sends the brightness to max if I need it at night: calls ā€˜light.turn_onā€™ with ā€˜brightness_pct: 100ā€™. This makes the light manual.

I understand now that when I switch the light off at the switch and then back on later, it is stuck on manual ā€“ the only way to bring it back to AL control is to go to lovelace and cycle it a couple of times. How can I make this automatic?

Is the optimal solution to have another automation watch for a smingle off deconz_event (which will independently power down bound the bulbs) and then call adaptive_light.set_manual_control to "manual_control: false`?

Anyone else having problems lately with the adaptive lighting integration? The Attributes seem to have stopped updating. They always stay the same (Brightness, Color Temp, etcā€¦)

I am running nearly 20 instances of adaptive lighting and Iā€™ve not noticed any problems with that. Just a bunch of trash in the logs.

I would DEFINITELY notice if mine wasnā€™t working.

well problem solved, sleep mode switch was on, never used it before and i have no automation or script turning that on or offā€¦ :roll_eyes:

2 Likes

New to HA and am having a hard time figuring out how to turn of AL with an automation. I have a helper dropdown setup. If the option for the dropdown is set to one of my options, I want to turn of the AL ā€œswitchā€ so that it stops applying the effect. But I do not see the AL entities (sleep, brightness, color, switch) as a device so that I can set it to off. How do I control those entities within an automation?

I responded to another user here and it kinda lays it all out: Trying to setup adaptive light add-on - #2 by Sergeantpup

I did see your post but it doesnā€™t help me in my current issue. I am coming from SmarThings with CL so I knew the basics of AL. Your outline did solidify that my understanding of AL was correct. In the end what I had to do in HA was for the action, call the service to turn a switch off and then I selected the AL switch that enables it or not. I was expecting the AL switch to show up as a device, just like my other actual light switches show up. After I used the service, I was able to do the automation that I needed.
I set mood lighting when I am watching tv so I needed an automation to turn of the AL switch when my Logitech Harmony TV mode was on so that it didnā€™t affect what I did to my bulbs using a different automation.

My light always turns on at 90% brightness, shouldnā€™t it rise / fall throughout the day?

Hello everyone! First - thank you @basnijholt for this integration. I find it to be one of the most useful integrations there are!

Quick question to whoever can help me - how can I manually set color of my RGB lights? I need the evening/night light to bee blood-red but day should be white as usual and something in between.

I have 20 instances of AL and I have not found a way to do this inside AL because I have the same requirement. I asked for it to be added as a setting to sleep mode as a feature request. In the meantime, Iā€™ve just had to rely on clever switches, timing, and automations to give me the blood red at night.

Iā€™ve had trouble with the manual override staying put so at 9:45P I turn OFF AL and then set the lights to red and then the motion sensors will just on/off them until the next house awake cycle that kicks the AL back on the next morning. Certainly not elegant but it definitely works. Iā€™m following along in case somebody else has solved for this in AL in a way I canā€™t see.

1 Like

I see. Thank you for letting me know. I will do the same for now.

For some reason my sleep_mode switches turn automatically on at 7 oā€™clock in the morning. Can I somehow prevent this?

Look at the trace and see what caused it. This doesnā€™t happen within AL, it has no automation/script functionality.

I installed this ages ago but never set it up, it just got lost in the mix of cool components to play with. I finally enabled it last week and itā€™s really cool and plays well with my desire to reduce my electrical footprint as the dimmer lighting in the evening takes considerably less power. Thanks for writing this!

hello, iā€™ve been using adaptive lighting for quite a while and i love it because my eyes really struggle with bright lights. However there is one thing i havent been able to fix.

I donā€™t have smart light switches, only bulbs, and it seems that when lights are switched off via the dumb light switches, the following morning when switched on they do not reintegrate to the adaptive lighting schedule. i need to switch the bulb off and on again via HA and then it picks up the schedule again. i do have one room that i pretty consistently turn off at night via HA and when i turn them back on in the morning via HA its straight into the schedule.

There must be a simple workaround to this and i canā€™t be the only person still dealing with dumb light switches. does anyone have any tips for me?

thanks!

This sounds like its working as itā€™s intended.

When you sever the power to the bulbs, upon restore theyā€™ll need to grab a connection before the adaptive lighting can take over. AL basically canā€™t see the turn on command to your bulbs because they are coming from a disconnected state so its not intervening with the adjustment. After you send a new turn on command upon re-establishing the connection, then AL will see it and intervene with settings.

You can automate your way around this but it wonā€™t be graceful. Set up an automation that runs after the light establishes a connection to turn the adaptive light switch on for this bulb which basically forces the AL take over. Add a couple second wait delay and it should work.

One thing I do for some of my lights is Iā€™ve altered the turn OFF sequence. Instead of automations just turning off the lights, they set them to 1% for 1 sec then turn off. To the eye, it just looks like theyā€™re turning off but the benefit is whenever the lights turn on, no matter what the last adaptive lighting state was, the light will start on at 1%, then adapt from there. It prevents that brightness fluctuation at turn on if they were last at a daytime brightness.