💡 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

I’ve resolved it by re-installing the integration from HACS, restarted HA and it’s fine again now.

I have found that when using this component with a z-wave dimmer and adjusting the dimmer with the manual control it doesn’t trigger the take_over_control and disable Adaptive Lighting.

Thanks for this work! Will give it a go, exactly what I’ve been looking for.

Was a bit hard to find though, googled for several hours until I gave up and started another thread before someone pointed me in the right direction. Adaptive lighting wasn’t my intuitive google phrase, I looked at things like dim light over time, gradually adjust light in relation to time of day and so forth.

Just my opinion, but think this should be a part of the standard kit in HA. Like OP says, its scientifically proven to have an impact and something I think many are interested in. I could definitely be mistaken, but trying to accomplish this yourself does seem to be pretty complicated with the available components. Its easy to start a light and have it dim over time. But I got a house with 3 kids, many lights goes on and off all the time. You want lights to both dim over time and have a set value when you turn them on.

I just wanted to come back with some input after having tried this component.

It’s really perfect in all areas. The readme instructions are perfect. Installin it is as simple as it gets. Setting it up is really intuitive and easy. And everything works perfectly. 10/10.

@basnijholt ; thank you for this custom component. I’m still learning it. Is there a way to disable brightness control? I would like to control only color temperature, as I’m setting brightness using an automation.

Set the min and max brightness to the same value?

Find out that in the automations the brightness can be set. The min/max is only used when opening the lights manually e.g. with a switch.

A better way is this: turn off the brightness related switch.

Per light(group) two switches are created: one for color and one for brightness. Only when the switch is on, then the color/brightness is being adapted.

Thx. Didn’t know about this switch…

Question for this group, I am trying to set my default levels of my z-wave switches (inovelli) automatically as the brightness changes. I am trying to get some Node Red input to see when the brightness changes (rounded to the nearest integer).

Would I create a template light, then automate setting that light via AL brightness, then take that light’s level changing as my input for setting the switch parameters?

Is there an easier way I am missing? Maybe integer helper?

Tired of turning on switches to 100% then them immediately dimming back down to 1% during sleep mode.

I noticed a small problem with color temperature control. Light is fixed to warmest color all the time. I noticed that the light (manufacturer Eglo/Awox) uses different range for color temp. I can set temperature between 1-127 (1=6500K, 127=2800K). Nedis bulbs (temp. range 154-3xx) are working fine.
Is there any solution for this problem? I suppose that Eglo does not use mired temperature control…
Screenshot 2021-05-17 18.02.32~2

I’ve installed this integration but it does not show up under:
ConfigurationIntegrations

Any help?

Have you restarted HA? perhaps clear browser cache?

I had restarted but now when I looked it was there. Not sure what was wrong

It strictly depends on your lights abilities.
If your lights allow to set their brightness while are off, then you can feed them with brightness data all the time, then toggle when needed. if applicable however, feeding must be done custom way since HA light entities don’t support that. Unfortunately I know only 2 brands which makes it possible: Shelly and Lifx. You need to check out your lights native api (not this provided by HA integration)

Otherwise it’s impossible. the only idea is to somehow set brightness always to minimum value and then final value. But if you turn on lights with physical switch, there will be always corner cases.

BTW funny is how many users claimed in the past that such flashing at night is acceptable.

I had that in the past, for some unknown reason it takes a while before HA knowns the integration is there.

Thanks @maxym I am actually looking to use this to set the default levels WHEN turned on both from z-wave command and local command.

This is built into my parameter settings of the switch, but I need to get the integer value of the brightness somehow. I can get the parameter set once I get out the rounded integer from AL.

So you installed via HACS, but have you installed an instance in Home Assistant yet? If not, select add integration, and Adaptive Lighting should now be an option, then you can set up from there.

Basically you are adding via HACS, but integrating via HA, if that makes sense?

Hey all, just wanted to post up that I FINALLY got a working solution to set default levels based on adaptive lighting component called “default levels”. I’ve tested it for a few days and it works really well. It also uses an “only if changed” rbe node to keep the z-wave traffic to a minimum. Figured I would share and solicit for improvement.

Largest bummer is that it has to use a polling node since the on/off is the only “state” that changes on the switch. I haven’t been able to figure out how to get a trigger to fire when an attribute of an entity changes:

[{“id”:“a980282e.2b4478”,“type”:“tab”,“label”:“Default Lighting Levels”,“disabled”:false,“info”:“”},{“id”:“8fb229d5.b2d418”,“type”:“api-call-service”,“z”:“a980282e.2b4478”,“name”:“Set Dining Room Dimmer”,“server”:“86db4bb5.5e7458”,“version”:1,“debugenabled”:false,“service_domain”:“zwave_js”,“service”:“set_config_parameter”,“entityId”:“light.dining_room_dimmer_current_value”,“data”:“{"parameter":"{{parameter}}","value":"{{value}}"}”,“dataType”:“json”,“mergecontext”:“”,“output_location”:“”,“output_location_type”:“none”,“mustacheAltTags”:false,“x”:1510,“y”:100,“wires”:[]},{“id”:“97b45e5a.f00ad”,“type”:“change”,“z”:“a980282e.2b4478”,“name”:“for Dimmers Default Local”,“rules”:[{“t”:“set”,“p”:“parameter”,“pt”:“msg”,“to”:“9”,“tot”:“num”}],“action”:“”,“property”:“”,“from”:“”,“to”:“”,“reg”:false,“x”:830,“y”:480,“wires”:[[“397599e7.35b066”]]},{“id”:“1d807676.744dea”,“type”:“change”,“z”:“a980282e.2b4478”,“name”:“for Dimmers Default Z-wave”,“rules”:[{“t”:“set”,“p”:“parameter”,“pt”:“msg”,“to”:“10”,“tot”:“num”}],“action”:“”,“property”:“”,“from”:“”,“to”:“”,“reg”:false,“x”:840,“y”:560,“wires”:[[“397599e7.35b066”]]},{“id”:“f95b0ac4.2768b8”,“type”:“api-call-service”,“z”:“a980282e.2b4478”,“name”:“Set Master Hallway Dimmer”,“server”:“86db4bb5.5e7458”,“version”:1,“debugenabled”:false,“service_domain”:“zwave_js”,“service”:“set_config_parameter”,“entityId”:“light.master_hall_dimmer_current_value”,“data”:“{"parameter":"{{parameter}}","value":"{{value}}"}”,“dataType”:“json”,“mergecontext”:“”,“output_location”:“”,“output_location_type”:“none”,“mustacheAltTags”:false,“x”:1520,“y”:880,“wires”:[]},{“id”:“e49e7da5.3490a”,“type”:“api-call-service”,“z”:“a980282e.2b4478”,“name”:“Set Master Bathroom Dimmer”,“server”:“86db4bb5.5e7458”,“version”:1,“debugenabled”:false,“service_domain”:“zwave_js”,“service”:“set_config_parameter”,“entityId”:“light.master_bathroom_dimmer_current_value”,“data”:“{"parameter":"{{parameter}}","value":"{{value}}"}”,“dataType”:“json”,“mergecontext”:“”,“output_location”:“”,“output_location_type”:“none”,“mustacheAltTags”:false,“x”:1530,“y”:160,“wires”:[]},{“id”:“76b76ed7.6d776”,“type”:“api-call-service”,“z”:“a980282e.2b4478”,“name”:“Set Master Bedroom Dimmer”,“server”:“86db4bb5.5e7458”,“version”:1,“debugenabled”:false,“service_domain”:“zwave_js”,“service”:“set_config_parameter”,“entityId”:“light.master_bedroom_dimmer_current_value”,“data”:“{"parameter":"{{parameter}}","value":"{{value}}"}”,“dataType”:“json”,“mergecontext”:“”,“output_location”:“”,“output_location_type”:“none”,“mustacheAltTags”:false,“x”:1520,“y”:220,“wires”:[]},{“id”:“625969e1.7e0dc8”,“type”:“api-call-service”,“z”:“a980282e.2b4478”,“name”:“Set Living Room Hallway Dimmer”,“server”:“86db4bb5.5e7458”,“version”:1,“debugenabled”:false,“service_domain”:“zwave_js”,“service”:“set_config_parameter”,“entityId”:“light.living_room_hallway_dimmer_current_value”,“data”:“{"parameter":"{{parameter}}","value":"{{value}}"}”,“dataType”:“json”,“mergecontext”:“”,“output_location”:“”,“output_location_type”:“none”,“mustacheAltTags”:false,“x”:1540,“y”:280,“wires”:[]},{“id”:“6f9012f7.8caf3c”,“type”:“api-call-service”,“z”:“a980282e.2b4478”,“name”:“Set Dining Room Track Dimmer”,“server”:“86db4bb5.5e7458”,“version”:1,“debugenabled”:false,“service_domain”:“zwave_js”,“service”:“set_config_parameter”,“entityId”:“light.dining_room_track_dimmer_current_value”,“data”:“{"parameter":"{{parameter}}","value":"{{value}}"}”,“dataType”:“json”,“mergecontext”:“”,“output_location”:“”,“output_location_type”:“none”,“mustacheAltTags”:false,“x”:1530,“y”:340,“wires”:[]},{“id”:“e46a69d3.61be08”,“type”:“api-call-service”,“z”:“a980282e.2b4478”,“name”:“Set Dining Room Dimmer”,“server”:“86db4bb5.5e7458”,“version”:1,“debugenabled”:false,“service_domain”:“zwave_js”,“service”:“set_config_parameter”,“entityId”:“light.dining_room_dimmer_current_value”,“data”:“{"parameter":"{{parameter}}","value":"{{value}}"}”,“dataType”:“json”,“mergecontext”:“”,“output_location”:“”,“output_location_type”:“none”,“mustacheAltTags”:false,“x”:1510,“y”:400,“wires”:[]},{“id”:“9b5a0021.a5238”,“type”:“api-call-service”,“z”:“a980282e.2b4478”,“name”:“Set Living Room Entry Dimmer”,“server”:“86db4bb5.5e7458”,“version”:1,“debugenabled”:false,“service_domain”:“zwave_js”,“service”:“set_config_parameter”,“entityId”:“light.living_room_entry_dimmer_current_value”,“data”:“{"parameter":"{{parameter}}","value":"{{value}}"}”,“dataType”:“json”,“mergecontext”:“”,“output_location”:“”,“output_location_type”:“none”,“mustacheAltTags”:false,“x”:1530,“y”:460,“wires”:[]},{“id”:“b9586f8d.171b1”,“type”:“api-call-service”,“z”:“a980282e.2b4478”,“name”:“Set Living Room Dimmer”,“server”:“86db4bb5.5e7458”,“version”:1,“debugenabled”:false,“service_domain”:“zwave_js”,“service”:“set_config_parameter”,“entityId”:“light.living_room_dimmer_current_value”,“data”:“{"parameter":"{{parameter}}","value":"{{value}}"}”,“dataType”:“json”,“mergecontext”:“”,“output_location”:“”,“output_location_type”:“none”,“mustacheAltTags”:false,“x”:1510,“y”:520,“wires”:[]},{“id”:“a8433b92.2825c8”,“type”:“api-call-service”,“z”:“a980282e.2b4478”,“name”:“Set Upstairs Main Hall Dimmer”,“server”:“86db4bb5.5e7458”,“version”:1,“debugenabled”:false,“service_domain”:“zwave_js”,“service”:“set_config_parameter”,“entityId”:“light.upstairs_main_hall_dimmer_current_value”,“data”:“{"parameter":"{{parameter}}","value":"{{value}}"}”,“dataType”:“json”,“mergecontext”:“”,“output_location”:“”,“output_location_type”:“none”,“mustacheAltTags”:false,“x”:1530,“y”:580,“wires”:[]},{“id”:“5d2e345b.34c9ec”,“type”:“api-call-service”,“z”:“a980282e.2b4478”,“name”:“Set Upstairs Hallway Dimmer”,“server”:“86db4bb5.5e7458”,“version”:1,“debugenabled”:false,“service_domain”:“zwave_js”,“service”:“set_config_parameter”,“entityId”:“light.upstairs_hallway_dimmer_current_value”,“data”:“{"parameter":"{{parameter}}","value":"{{value}}"}”,“dataType”:“json”,“mergecontext”:“”,“output_location”:“”,“output_location_type”:“none”,“mustacheAltTags”:false,“x”:1520,“y”:640,“wires”:[]},{“id”:“19b921da.8ef03e”,“type”:“api-call-service”,“z”:“a980282e.2b4478”,“name”:“Set Guest Bathroom Dimmer”,“server”:“86db4bb5.5e7458”,“version”:1,“debugenabled”:false,“service_domain”:“zwave_js”,“service”:“set_config_parameter”,“entityId”:“light.guest_bathroom_dimmer_current_value”,“data”:“{"parameter":"{{parameter}}","value":"{{value}}"}”,“dataType”:“json”,“mergecontext”:“”,“output_location”:“”,“output_location_type”:“none”,“mustacheAltTags”:false,“x”:1520,“y”:700,“wires”:[]},{“id”:“370a48e8.03f408”,“type”:“api-call-service”,“z”:“a980282e.2b4478”,“name”:“Set Guest Bathroom Shower Dimmer”,“server”:“86db4bb5.5e7458”,“version”:1,“debugenabled”:false,“service_domain”:“zwave_js”,“service”:“set_config_parameter”,“entityId”:“light.guest_bathroom_shower_dimmer_current_value”,“data”:“{"parameter":"{{parameter}}","value":"{{value}}"}”,“dataType”:“json”,“mergecontext”:“”,“output_location”:“”,“output_location_type”:“none”,“mustacheAltTags”:false,“x”:1550,“y”:760,“wires”:[]},{“id”:“53e0658.15b269c”,“type”:“api-call-service”,“z”:“a980282e.2b4478”,“name”:“Set Guest Bathroom Sconces Dimmer”,“server”:“86db4bb5.5e7458”,“version”:1,“debugenabled”:false,“service_domain”:“zwave_js”,“service”:“set_config_parameter”,“entityId”:“light.guest_bathroom_sconces_dimmer_current_value”,“data”:“{"parameter":"{{parameter}}","value":"{{value}}"}”,“dataType”:“json”,“mergecontext”:“”,“output_location”:“”,“output_location_type”:“none”,“mustacheAltTags”:false,“x”:1550,“y”:820,“wires”:[]},{“id”:“397599e7.35b066”,“type”:“split”,“z”:“a980282e.2b4478”,“name”:“”,“splt”:“\n”,“spltType”:“str”,“arraySplt”:1,“arraySpltType”:“len”,“stream”:false,“addname”:“”,“x”:1090,“y”:480,“wires”:[[“8fb229d5.b2d418”,“e49e7da5.3490a”,“76b76ed7.6d776”,“625969e1.7e0dc8”,“6f9012f7.8caf3c”,“e46a69d3.61be08”,“9b5a0021.a5238”,“b9586f8d.171b1”,“a8433b92.2825c8”,“5d2e345b.34c9ec”,“19b921da.8ef03e”,“370a48e8.03f408”,“53e0658.15b269c”,“f95b0ac4.2768b8”]]},{“id”:“df4b7f5b.f9405”,“type”:“comment”,“z”:“a980282e.2b4478”,“name”:“Fan/Light Light”,“info”:“”,“x”:1520,“y”:1000,“wires”:},{“id”:“22c88ced.46c2f4”,“type”:“api-call-service”,“z”:“a980282e.2b4478”,“name”:“Set Guest Bedroom Light”,“server”:“86db4bb5.5e7458”,“version”:1,“debugenabled”:false,“service_domain”:“zwave_js”,“service”:“set_config_parameter”,“entityId”:“light.guest_bedroom_light_current_value”,“data”:“{"parameter":"{{parameter}}","value":"{{value}}"}”,“dataType”:“json”,“mergecontext”:“”,“output_location”:“”,“output_location_type”:“none”,“mustacheAltTags”:false,“x”:1520,“y”:1080,“wires”:[]},{“id”:“563f9ec1.7a39a”,“type”:“api-call-service”,“z”:“a980282e.2b4478”,“name”:“Set Living Room Light”,“server”:“86db4bb5.5e7458”,“version”:1,“debugenabled”:false,“service_domain”:“zwave_js”,“service”:“set_config_parameter”,“entityId”:“light.living_room_light_current_value”,“data”:“{"parameter":"{{parameter}}","value":"{{value}}"}”,“dataType”:“json”,“mergecontext”:“”,“output_location”:“”,“output_location_type”:“none”,“mustacheAltTags”:false,“x”:1510,“y”:1140,“wires”:[]},{“id”:“5f10e2f8.a91e2c”,“type”:“api-call-service”,“z”:“a980282e.2b4478”,“name”:“Set Kendrick Light”,“server”:“86db4bb5.5e7458”,“version”:1,“debugenabled”:false,“service_domain”:“zwave_js”,“service”:“set_config_parameter”,“entityId”:“light.kendrick_bedroom_light_current_value”,“data”:“{"parameter":"{{parameter}}","value":"{{value}}"}”,“dataType”:“json”,“mergecontext”:“”,“output_location”:“”,“output_location_type”:“none”,“mustacheAltTags”:false,“x”:1500,“y”:1200,“wires”:[]},{“id”:“8909f930.774b88”,“type”:“split”,“z”:“a980282e.2b4478”,“name”:“”,“splt”:“\n”,“spltType”:“str”,“arraySplt”:1,“arraySpltType”:“len”,“stream”:false,“addname”:“”,“x”:1090,“y”:1080,“wires”:[[“22c88ced.46c2f4”,“563f9ec1.7a39a”,“5f10e2f8.a91e2c”]]},{“id”:“7edb80dc.1d9b7”,“type”:“change”,“z”:“a980282e.2b4478”,“name”:“for Fan/Light Light Default Local”,“rules”:[{“t”:“set”,“p”:“parameter”,“pt”:“msg”,“to”:“12”,“tot”:“num”}],“action”:“”,“property”:“”,“from”:“”,“to”:“”,“reg”:false,“x”:860,“y”:1080,“wires”:[[“8909f930.774b88”]]},{“id”:“c908a988.a55948”,“type”:“change”,“z”:“a980282e.2b4478”,“name”:“for Fan/Light Light Default Z-wave”,“rules”:[{“t”:“set”,“p”:“parameter”,“pt”:“msg”,“to”:“13”,“tot”:“num”}],“action”:“”,“property”:“”,“from”:“”,“to”:“”,“reg”:false,“x”:870,“y”:1160,“wires”:[[“8909f930.774b88”]]},{“id”:“d1cac810.6713c8”,“type”:“comment”,“z”:“a980282e.2b4478”,“name”:“Dimmers”,“info”:“”,“x”:1500,“y”:40,“wires”:},{“id”:“b71b80fa.f25e2”,“type”:“debug”,“z”:“a980282e.2b4478”,“name”:“”,“active”:true,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“value”,“targetType”:“msg”,“statusVal”:“”,“statusType”:“auto”,“x”:1010,“y”:120,“wires”:},{“id”:“63b6f51e.8d235c”,“type”:“change”,“z”:“a980282e.2b4478”,“name”:“”,“rules”:[{“t”:“set”,“p”:“value”,“pt”:“msg”,“to”:“data.attributes.brightness_pct”,“tot”:“msg”}],“action”:“”,“property”:“”,“from”:“”,“to”:“”,“reg”:false,“x”:200,“y”:240,“wires”:[[“e0744d53.92f9b”]]},{“id”:“272052b1.1f615e”,“type”:“change”,“z”:“a980282e.2b4478”,“name”:“”,“rules”:[{“t”:“change”,“p”:“value”,“pt”:“msg”,“from”:“100”,“fromt”:“num”,“to”:“99”,“tot”:“num”}],“action”:“”,“property”:“”,“from”:“”,“to”:“”,“reg”:false,“x”:530,“y”:240,“wires”:[[“b71b80fa.f25e2”,“f300bac.e67db48”]]},{“id”:“e0744d53.92f9b”,“type”:“function”,“z”:“a980282e.2b4478”,“name”:“”,“func”:“msg.value = Math.round(msg.value)\nreturn msg;”,“outputs”:1,“noerr”:0,“initialize”:“”,“finalize”:“”,“libs”:,“x”:360,“y”:240,“wires”:[[“272052b1.1f615e”]]},{“id”:“779de8c1.e73bf8”,“type”:“poll-state”,“z”:“a980282e.2b4478”,“name”:“Default Level Switch”,“server”:“86db4bb5.5e7458”,“version”:1,“exposeToHomeAssistant”:false,“haConfig”:[{“property”:“name”,“value”:“”},{“property”:“icon”,“value”:“”}],“updateinterval”:“5”,“updateIntervalUnits”:“minutes”,“outputinitially”:true,“outputonchanged”:true,“entity_id”:“switch.adaptive_lighting_default_levels”,“state_type”:“str”,“halt_if”:“on”,“halt_if_type”:“str”,“halt_if_compare”:“is”,“outputs”:2,“x”:130,“y”:80,“wires”:[[“63b6f51e.8d235c”,“57eb3ce9.468d64”],]},{“id”:“57eb3ce9.468d64”,“type”:“debug”,“z”:“a980282e.2b4478”,“name”:“”,“active”:false,“tosidebar”:true,“console”:false,“tostatus”:false,“complete”:“true”,“targetType”:“full”,“statusVal”:“”,“statusType”:“auto”,“x”:640,“y”:120,“wires”:},{“id”:“f300bac.e67db48”,“type”:“rbe”,“z”:“a980282e.2b4478”,“name”:“Is Changed?”,“func”:“rbe”,“gap”:“”,“start”:“”,“inout”:“out”,“septopics”:true,“property”:“value”,“x”:510,“y”:340,“wires”:[[“97b45e5a.f00ad”,“1d807676.744dea”,“7edb80dc.1d9b7”,“c908a988.a55948”]]},{“id”:“86db4bb5.5e7458”,“type”:“server”,“name”:“Home Assistant”,“addon”:true}]

I have a nanoleaf light. I want it to change brightness with the rest of the lights. But I don’t want it to change color temperature like the rest. Cause that makes the color effect go away. Is it possible to turn off changing color temperature for just the nanoleaf lightpanels. I’m sure there is some clever automation to fix this. But is there something I can easily change in the configuration. When I used the Circadian Lighting component I was able to set it to only change brightness on specific lights.