Open zpriddy opened 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
.
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.
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.
@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..
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
take_over_control
.
In the instance entities I disable Adapting Color switch.input_number.virtual_light_brightness
, input_number.virtual_light_color_temp
, input_boolean.virtual_light_state
).
light:
color_temp
.color_temp
of any light when turned on, or when Virtual light color_temp
has changed.
alias: "Update color temp by Virtual light"
description: ""
trigger:
- platform: state
entity_id:
- light.virtual_light
attribute: color_temp_kelvin
id: Color update
- platform: state
entity_id:
- light.kitchen_dinner_table_light_1
- light.kitchen_dinner_table_light_2
- light.kitchen_dinner_table_light_3
- light.kitchen_dinner_table_light_4
- light.kitchen_spot_light_1
- .... // define your list of all lights. It's needed to keep it descriptive here, otherwise you would need to listen to all events which might be too crazy.
from: "off"
to: "on"
id: Some light is turned on
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- Color update
sequence:
- service: script.set_color_if_lights_on
data:
kelvin: "{{ state_attr('light.virtual_light', 'color_temp_kelvin') }}"
entity_ids:
- light.kitchen_dinner_table_light_1
- light.kitchen_dinner_table_light_2
- light.kitchen_dinner_table_light_3
- light.kitchen_dinner_table_light_4
- light.kitchen_spot_light_1
- ... // define your list of all lights
- conditions:
- condition: trigger
id:
- Some light is turned on
sequence:
- service: script.set_color_if_lights_on
data:
kelvin: "{{ state_attr('light.virtual_light', 'color_temp_kelvin') }}"
entity_ids: "{{ trigger.entity_id }}"
enabled: true
mode: queued
max: 10
alias: Set Color if Lights On
sequence:
- variables:
kelvin: "{{ kelvin }}"
light_entities: "{{ entity_ids }}"
entities_to_regulate: >
{{ expand(light_entities) | selectattr('state', 'eq', 'on') |
map(attribute='entity_id') | list }}
- condition: template
value_template: "{{ entities_to_regulate | count > 0 }}"
- service: light.turn_on
data_template:
entity_id: "{{ entities_to_regulate | join(', ') }}"
data:
kelvin: "{{ kelvin }}"
mode: queued
max: 10
input_number.virtual_light_color_temp
, so I can change the color temperature of all lights on the house if needed.Known limitations
color_temp
, which causes no update of the manually changed color of any light back to the correct Virtual light value.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.
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 ..