I never thought about that aspect! …which is why I do not use the lux sensors that are in my motion sensors! Without a lot of finagling, the light would be toggling on, off, on, off, on…
I only use an outdoor lux sensor to trigger blinds and to disable motion activated lighting during the day.
I did actually do it and it was working ok, but required calculating the lux provided at certain light percentages with all doors/curtains shut and at night. But I take your point, I think what I’ll do it have an automation that triggers the lights to come on to minimum when the lux drops to a certain level if the room is occupied.
Like I said, it will take a bit of finagling! Where there’s a will there’s a way…
These add-ons don’t always provide a solution. I have a somewhat complex node-red routine for my living room motion activated lighting. Entity-controller, AL and CL couldn’t do what I wanted so I created my own automation in NR. I originally started in HA but it got too convoluted for even me to understand…
I’m also using a NR routine for my circadian lighting now…
There is an easy fix for this which I use. I have a condition that if the light is on then allow retriggering of the light despite the light level being over that which would normally warrant triggering the light.
alias: 'Passage downlights auto'
mode: restart
trigger:
- platform: state
entity_id: binary_sensor.passage_ms6_motion
from: 'off'
to: 'on'
- platform: state
entity_id: binary_sensor.paradox_z5_living_pir
to: 'on'
condition:
condition: or
conditions:
- condition: template
value_template: "{{ states('sensor.passage_ms6_illuminance') | int < states('input_number.passage_min_lux') | int }}"
- condition: state
entity_id: light.passage_lights
state: 'on'
action:
- service: light.turn_on
data_template:
entity_id: light.passage_lights
brightness_pct: "{{ state_attr('switch.adaptive_lighting_passage', 'brightness_pct') | int }}"
rgb_color: "{{ state_attr('switch.adaptive_lighting_passage', 'rgb_color') }}"
white_value: 0
- delay: '00:0{{ states.input_number.passage_lights_auto_off_time.state | int }}:00'
- service: light.turn_off
entity_id: light.passage_lights
It’s a simple fix and works really well. I use this same code for a few lights in my house. They never turn off while motion keeps retriggering even thought the light has caused the light level to rise above the low lux setting. Once motion stops retriggering it, the delay turns the light off. If the lux level is above the setting (set via an input_number
for easy GUI adjustment) then the light doesn’t turn on at all.
Thanks for that! I have motion controlled lighting in Garage (always dark so I want to always turn on), Office (I always want them to turn on since ambient natural lighting is insufficient at my desk), Bedroom (I want motion activated lighting disabled when I tell Alexa Good Night), Master Ensuite (same as garage…it’s always dark) and Living Room where I have additional conditions like if TV is on don’t turn the motion controlled light off). The only place I could use Lux is Living Room and Bedroom but my exterior Lux sensor works quite well for them. I might play with it for the Living Room so that if other lights are on it won’t trigger except that where the sensor is located there is likely minimal change in its luix level. Something to play with…
Really scratching my head here. The docs say configuration, after adding repo via HACS, is via Configuration → Integrations → Adaptive Lighting, Adaptive Lighting → Options
I don’t see Adaptive Lighting in my Integrations and it’s not found if I “Add Integration” and search for adaptive???
Running 2021.7.4
For some strange reason it takes a while until a new integration added via HACS appears in the “Add Integration” search results. I have encountered the same a few times in the past.
Try a few hours later, that’s what I did and then it was there.
No luck - left it over night and even did a second re-start of HA. No errors in logs.
I had removed mine since I’m now using routines in NR but just for the hell of it I re-added the integration in HACS, restarted HA and it was immediately (re)available…
Try refreshing / clearing your browser cashe
I did not have to but yes, that can fix a myriad of issues…
Yep, that did it.
Cheers
I recall that there was a way to set adjust brightness only (not RGB or Kelvins), but I cannot find this anymore. Installing in a second house which has Warm to Dim style LED lights that auto-adjust color based on brightness levels. The adaptive lighting component does not seem to be turning on lights and setting brightness.
For each Adaptive Lighting entity that you create you can select if it has colour and / or brightness adjustments. You then get a set of switches, eg:
switch.adaptive_lighting_dining
switch.adaptive_lighting_adapt_brightness_dining
switch.adaptive_lighting_adapt_color_dining
The first one is the overall on/off for the Al entity, the others enable / disable the brightness and colour control.
I am noticing strange behavior with 2 new color led bulbs w/ adaptive lighting.
the other white/tunable led bulbs are being set to ‘warm’ where the color bulbs are being set to ‘cool’ through adaptive lighting… actually it seems that the color led are simply dimming and not changing color/temperature.
anything thoughts?
Any suggestions for how to make the transition to sleep mode longer?
I have the transition between light levels set to the default, however when you turn on sleep mode it just jumps to the sleep light level.
Could be related to the lights I’m using? Or is this not currently an option?
Thanks in advance!
Try increasing the initial transition time (in seconds). That should affects also the transition to the sleep mode.
I’ve been using this integration for several months now after previously moving on from the circadian_lighting integration. I started having issues a few days ago; I can’t seem to make any changes anymore via the Integration UI. I’m trying to add bulbs with the drop down menu, but every time I select “Submit” I get the following error message up top: “User input malformed”
Any ideas?